[En-Nut-Discussion] UART problem with 0x0D and 0x0A characters
Giovanni Caterina
gcaterina at idtech.be
Fri Mar 11 09:41:38 CET 2005
Yes, you are right.
It's more elegant than my ioctl.
Giovanni Caterina
-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Alexander
Baranov
Sent: jeudi 10 mars 2005 14:58
To: Ethernut User Chat (English)
Subject: Re: [En-Nut-Discussion] UART problem with 0x0D and 0x0A
characters
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
>
>
_______________________________________________
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