UART output doubled?
Posted: Thu Apr 07, 2011 6:41 pm
I went to test that my serial port was working after loading OpenWRT and saw garbled output at 115200, 8N1. Looking at the Hex values for the output though shows that the values are doubled. For example, if I echo "0123\n" > /dev/ttyS0 on the Asus, I see 60 62 64 66 1A 14 in the hex output. I would have expected 30 31 32 33 0d 0a. Which means that everything is showing up doubled. Another example: F should be 0x46. When I send FF to ttyS0 I see 8C 8C not 46 46. So to get an F ascii to show up, i would need to put in what ever is half of F (0x23) which is #. Sure enough sending #### displays FFFF on the screen and 46 46 46 46 in hex.
What is causing this and is there anything I can do to fix it before I hook up the display and controls?
Thanks
What is causing this and is there anything I can do to fix it before I hook up the display and controls?
Thanks