[En-Nut-Discussion] UART problem with 0x0D and 0x0A characters

Giovanni Caterina gcaterina at idtech.be
Thu Mar 10 10:34:17 CET 2005


I think you have to call the ioctl function for your UART with the request UART_SETCOOKEDMODE and the value 0 (off) to avoid the EOL translation.

Hope this helps,

Giovanni Caterina

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de [mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of MarPac
Sent: dimanche 6 février 2005 9:33
To: Ethernut User Chat (English)
Subject: [En-Nut-Discussion] UART problem with 0x0D and 0x0A characters


Hi all,
I'm trying to implement a ZModem into ethernut and it seems to work well,
but there is a big problem, if receiving 0x0D and 0x0A characters (CR, LF);
If I send the 0x0D character into a device, it receives two characters, 0x0D
and 0x0A as well. The same situation is with the output. If I send 0x0D
character from the device, the terminal receives two characters, 0x0D and
0x0A :-(((

This took me such a ling time, but I couldn't find any solution, the Uart
device makes it automaticly :-(

Please, is there any solution, how to receive and transmit only one
character?

Thanks a lot, Martin Paces.

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion



More information about the En-Nut-Discussion mailing list