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

Gediminas Simanskis gedas at tvk.lt
Sun Feb 6 09:42:17 CET 2005



> 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 :-(((

You need open sream in binary mode:

stream = _fdopen((int) sock, "r+b");






More information about the En-Nut-Discussion mailing list