I've got the current 10.0 image running on the Pi. Actually, it boots about 50% of the time, but that's not my main problem.
I'm trying to read serial data from the RX pin. The remote end's TX bit is sending the letter X repeatedly. The ground of both devices is common. Here it is on my scope.
If you look carefully, you will see:
As you can see there is 1 stop bit, no parity, 8 bits of data, and if you do the math, a bit width of 833us works out to 1200 baud.
I think I set up the device correctly:
However reading from the port yields nothing:
I did remove the port from ttys.
Help appreciated.
I'm trying to read serial data from the RX pin. The remote end's TX bit is sending the letter X repeatedly. The ground of both devices is common. Here it is on my scope.
If you look carefully, you will see:
Code:
START 0 0 0 1 1 0 1 0 STOP
I think I set up the device correctly:
Code:
root@raspberry-pi:~ # ./ttys
speed 1200 baud; 0 rows; 0 columns;
lflags: -icanon -isig -iexten -echo -echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
-extproc
iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff ixany -imaxbel ignbrk
-brkint -inpck ignpar -parmrk
oflags: -opost onlcr -ocrnl tab0 -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb -crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
However reading from the port yields nothing:
[EMAIL]root@raspberry-pi[/EMAIL]:~ # cat /dev/ttyu0
I did remove the port from ttys.
Help appreciated.