
Originally Posted by
Sonicxtacy02
At this point neither
RRFusion or Centrafusion is ready for V6 really. I've got RRFusion talking to my v6 via the virtual serial port, but honestly i havent tested it enough to call it reliable with all of the existing functions of the
software.
The zip you uploaded is working fine to me. I took a look at the .cs expecting to see some connection routines, but i'm assuming that is being done by one of the referenced .dlls in this case?
I was sort of waiting for the API connection routines to become public, but honestly the fact that the VCP allows bidirectional communication on the fly kinda makes me want to primarily support that method.
Yes the FB_USB_2011.dll is doing the work.
And the new USB protocol allows for bidirectional on the fly too. You can send only the digital output commands you want when you want, or never. And you can read the analogue inputs anytime you want, and whenever.
Code:
byte[] _toSendArray = new byte[3];
_toSendArray[0] = 0x21;
_toSendArray[1] = (byte)(port_i++ << 3);
_toSendArray[2] = 0x01;
MainUSBClass.allFusionBrains[0].SendDataToFusionBrain(_toSendArray, 0x01);
byte[] _allDigitalOutputReadStates = new byte[64];
byte[] _allAnalogues = new byte[1024];
MainUSBClass.allFusionBrains[0].ReadDataFromFusionBrain(ref _allDigitalOutputReadStates, 0x01);
MainUSBClass.allFusionBrains[0].ReadDataFromFusionBrain(ref _allAnalogues, 0x02);
Note that you can read as many analoglue inputs past values as you want by using a larger buffer like 1024 instead of 64.
The reading and writing can be done asynchronously, but not at the same time. So you cannot interrupt a read to do a write.
---------- Post added at 11:41 AM ---------- Previous post was at 11:30 AM ----------
Also the *.cs file is being called from within a button. It shows that a GUI object can "own" it's own little code segment that does ANYTHING. In this case the GUI object is listening into an event that the Digital Output port raises everytime a new signal is received.
I believe this to be a much more free way of styling. Seriously, any object in the program can be passed into these little extra code files and manipulated. All settings and images are all derived from a single dynamic class and can be accessed by anything. I am a little stunned that I was able to pull it off. 
So Sonic (and anyone else who has tried the *.zip), what sort of CPU usage did you get on what hardware? And did the button correctly turn on/off the LED?
Bookmarks