From: Nate W <del...@gm...> - 2005-10-07 08:44:26
|
Here's my configuration: gumstix mounted on robostix removed the getty for ttyS0 from /etc/inittab stty -F /dev/9600 ispeed 9600 ospeed 9600 raw stty -F /dev/ttyS0 cs8 -parenb -cstopb -ixon -ixoff I have bluetooth PAN set up, and I log in to the gumstix via ssh the robostix ttyS0 header goes to a level shifter and a USB-serial interfac= e I have teraterm running on my windows box, 9600 8N1, no flow control Good news: if I run the getty manually, I can log in and use the gumstix over the serial line More good news: if i run sertest -p /dev/ttyS0 -d -v I can type in my ssh window or terminal window and watch characters going in both directions Bad news: if I run "echo abcdef > /dev/ttyS0" only the "abc" appears in the terminal window. Even if I do this right after running sertest to (theoretically) configure the serial port. I've tried this all with /dev/ttyS2 as well, with almost the same results: sertest works, but when I use echo, only the first 2.5 characters come through: ab=E3. I tried the gpio adjustments shown on the tips-and-tricks wiki page for ttys2, but no luck. I also have a small C program that writes stuff to the serial port, and again only the first 3 bytes come out the other end. If I could just squeeze FIVE bytes through with each write to the serial port, I'd be happy. :-) But I'm stuck at 3 bytes max (occasionally 4), and I'm totally stumped. Anyone have suggestions? Thanks, Nate Waddoups Redmond WA USA http://www.natew.com/ <=3D=3D for nerds http://www.featherforum.com/ <=3D=3D for birds |