I'm trying to set up a serial communication between my Waysmall 400-bt and
PIC microcontroller 16F877a. (My robot was driven by PIC previously and now
I'm trying to implement Gumstix to process vision data. Thus I need to
transmit data between Gumstix and PIC)
I have connected Gumstix's Rx to PIC's Tx pin. On the Gumstix side, I'm
using STUART, port ttyS2, the one rather far from the power jack.
Afterwards, I can receive data from PIC but the data received are different
from the one sent by the PIC. Eg. PIC sends a "f" and Gumstix reads it as
"&"; if PIC sends a "o" and gumstix reads it as "H".
I'm using the sample program from this link below
Both gumstix and PIC set parity as none, stop bit as 1, data bits as 8. we
have set both end the same baud rate, ranging from 9600 to 115200.
In addition, we have tested the serial connection between PIC to PC on
hyperterminal. It shows PIC sends data correctly.
I feel the communication has been set up successfully and it's just the
issue of data format.
Does gumstix has a special way of reading data?
View this message in context: http://www.nabble.com/Gumstix-doesn%27t-read-data-in-a-correct-format-tp22617380p22617380.html
Sent from the Gumstix mailing list archive at Nabble.com.