probably not the code you are looking for but python makes it very easy to
test serial ports.
also of note make sure you realize it is a uart not true rs232 serial-
implications for voltage levels.
assuming you have python installed, pyserial installed.
and you have pin 9, shorted to pin 10 for test purposes
start python in interactive mode
>ser.port = 0
>ser.port = '/dev/ttyS0' #alternate
test #should get test as echo
obviously if that works you can try your device. if you are sending binary
to/from your device python struct will help you .
> I am currently having problems reading from the two wire serial ports on
> the overo.
> I am currently using /dev/ttyS0 (pins 9 and 10) to communicate with an
> ultrasonic sensor, however when I attempt to read from this port I get an
> EAGAIN error indicating that the port is not ready to be read (I think). I
> am able to write code to read this device from my development machine but
> I have been struggling to get the Overo to read anything at all.
> Would someone be able to post some sample code which reads from the Overo
> serial ports exposed by the Summit expansion ports?
> Kind Regards,
View this message in context: http://www.nabble.com/GumStix-Serial-Issues-tp23175425p23207928.html
Sent from the Gumstix mailing list archive at Nabble.com.
Get latest updates about Open Source Projects, Conferences and News.