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

Alexander Baranov baranov at intech21.com
Thu Mar 10 14:57:31 CET 2005


Maybe you have to open uart with option "r+b".
For example:
    uart = fopen("uart0", "r+b");
Then it won't append CR with LF.
Good luck, Alexander.
----- Original Message ----- 
From: "MarPac" <marpac at centrum.cz>
To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
Sent: Sunday, February 06, 2005 3:32 AM
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