I would like to send and read data from Arduino Duemilanove.
I've established a connection via mscomm control but it's difficult: "if I send a command...let's say "P5O" arduino reads only one character.
I would like Arduino to read commands and respond to them.
I also tried FirmdataVB with limited success: I could activate a pin to light a LED but not set his value/voltage. I also could not read from analog pins. FirmdataVB looks like the way to go with the protocol, but it's not providing all the basic functions.
VB.NET might be hard, but that doesn't qualify as a reason for posting in the hardware section.
There are plenty of examples for how to read more than a single byte from the serial port. zoomkat and I have both posted ways to do it. A little time with the search field and button would go a long way towards finding you answers.
I would prefer using firmdataVB as I don't have to write the protocol myself.
Defining a protocol is easy. Implementing it is not much more challenging. Getting a string of characters sent and read is the hard part, and there are plenty of examples (search for "started && ended", for example).
Parsing the string is pretty easy, too. Some ways of formatting the string are easier than others. "<8:1>" to turn on pin 8 is a bit easier to parse than "Hey, what say you turn pin eight on".
If you get stuck, make a list of the things that the VB app wants the Arduino to do, and post it here.