LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Linux sends additional binary at the end of serial message (https://www.linuxquestions.org/questions/linux-hardware-18/linux-sends-additional-binary-at-the-end-of-serial-message-319883/)

TsaLLgood 05-03-2005 08:29 PM

Linux sends additional binary at the end of serial message
 
I was trying to figure out why I can't get my serial device to work with linux... So I probed the serial TX with an o'scope... And Surprise!! Linux adds 000110100101001011111000 at the end of anyything it sends :confused:
I tried using a terminal named TK... then I tried a less fancy way to send through serial: I typed "echo A>/dev/ttyS0" and it adds something again but different this time: 00010100 .. again :confused:

I did the same thing on WinXP with hyperterminal and as expected nothing is added.

Any explanation why linux adds stuff at the end of my sentence and How to get rid of that stuff???

Any help I can get here would be greatly appreciated!;)

davidsrsb 05-05-2005 09:36 AM

Looks like the uart transmit fifo has junk in it after the end of your message. This is probably because the wrong driver is being used. On most PCs the uart is part of the SuperI/O chip, also doing parallel and IrDA. Linux support for some of the Chinese origin examples of these is a bit patchy. These are mainly found in laptops.

TsaLLgood 05-05-2005 05:03 PM

chinese laptop you said??
 
Chines laptop you said... well, I am using a Toshiba laptop... this would explain the junk...
I guess to find the proper uart/ superI/O chip driver would be a pain in the b...??
Any idea how to indentify my I/O chip model and find its driver?

Thnaks for answering by the way! :D

davidsrsb 05-05-2005 10:22 PM

Not easy without taking the machine apart, Windows does not tell you much, even tools like Sisoft Sandra or Belarc normally just report "16550" when in fact it is a Winbond chip

Try a livecd like slax with a 2.6.11 kernel that may be better at identifying the hardware than your distribution


All times are GMT -5. The time now is 04:20 PM.