- Home /
5DT Glove- COM port not opening
Hello,
I have a 5DT glove that I wish to use with Unity. I have the wrapper included in my file, and my functions are working fine. However, my glove won't open. It's an old model (5 sensor serial) and I have it plugged in through a Serial-to-USB connector. In the Glove Manager program provided by 5DT, the glove connects and reads inputs on COM3. Here's my code:
using UnityEngine; using System.Collections; using FDTGloveUltraCSharpWrapper; using System.Runtime.InteropServices;
public class glovedriver : MonoBehaviour {
CfdGlove fdGlove;
// Use this for initialization
void Start () {
fdGlove = new CfdGlove();
fdGlove.Open("COM3");
}
// Update is called once per frame
void Update () {
if(fdGlove.IsOpen ()){
print ("Working");
}
else{
print ("Not Working");
}
}
}
Is the glove too old to work? Should I try opening on USB instead? Any help is appreciated.
Answer by JBDenton · Mar 22, 2012 at 03:48 AM
I got it to work. For some reason the port was blocked. Opening then closing it again with the GloveManager5 program fixed it.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
mono in unity 3d and .net remoting 0 Answers
Multiple Cars not working 1 Answer
A node in a childnode? 1 Answer
JIT compilation requirement for System.Reflection.PropertyInfo.GetValue? 1 Answer