I’m having trouble getting my ofApp to detect/establish communication.
I’m using the simple windows firmata example,
ofArduinoInst.connect ( “COM5”, 9600 );
ofAddListener (ofArduinoInst.EInitialized, this, &ofApp::SetupArduino);
When I run the debugger, the console prints ‘found 1 devices,  = COM5’, but the breakpoint I have on setupArduino never hits, as if it never gets the startup data from the arduino, and so ofApp just sits waiting for Arduino to be ready.
As a simple test, instead of an Arudino I connected a winxp machine, to the computer running ofApp. On both machines I open hyperterminal and I can see communication on the opposite computer when I type. So I know both computers can send/receive with serial data @9600bps.
Then on the ofApp machine, I close Hyperterminal and run ofApp. As it’s waiting for communication from an “Arduino”, I type on my winxp computer hyperterminal, and yet still nothing happens on ofApp. It doesn’t seem to get the data that I know is being sent.
Anyone have any idea why? Where does ofArduinoInst.EInitialized get set? Maybe the startup data I’m sending is not correct (0xF9 0x2 0x3)?
I originally tried the default baud, but when that didn’t work, I slowed it down just in case it’s a speed issue…
I’ve seen some examples that use ofSerial (without ‘EInitialized’) instead of ofArduino… I would think that ofArduino came later and is the preferred way of doing it, but is that true? Or is there no advantage to ofSerial?
Also, haven’t found where ‘EInitialized’ gets set, anyone know the file that it’s in?
can you run the ofFirmata example that comes with OF and also wire it up similar to the picture when you run the app (and make sure standard firmata is installed)? The baud rate should definitely be changed…