I recieved my MAKE Controller a few days ago and I've been having fun getting a feel for the kit.
If I run the MAKE Controller Helper program I'm able to send OSD commands over USB like /appled/0/state 1 to turn on an LED.
However when I run *any* of the C# examples like MCTest or QuickTest they just don't work! I've also tried writing my own C# program from scratch but no luck there either.
I run the following code in my program:
usbPacket = new UsbPacket(); usbPacket.Open(); MessageBox.Show(usbPacket.PortIsOpen().ToString());
But it never returns the port as being open :(
Then if I run:
if (usbPacket.IsOpen()) USBSend("/appled/0/state 1"); else MessageBox.Show("Not open");
it always returns "Not open", so the USB port connection is never made.
I know that the MAKE Controller is connected on COM4, but I can't see a way to tell the system that this is the COM port in use.
Documentation for the C# way of talking to the MAKE Controller seems very light, can anyone please share their knowledge on this issue?
There's a private method which queries the Windows registery and loops through the available COM ports looking for the signature of the MAKE Controller. I'm guessing, for whatever reason, this method is failing.
I'm planning on compiling my own version of this assembly with the ability to set the COM port in code, I believe that will make it work.
I've created a modified version of the MakeControllerOsc.dll with an overloaded version of the Open() method, you can now manually pass in the COM port of the MAKE Controller