[En-Nut-Discussion] Problems sending 0x0D data to a remote server.

Ole Reinhardt ole.reinhardt at embedded-it.de
Thu Mar 25 13:36:07 CET 2010


Hi!

> stuffing with the CARRIER and LINEFEED bytes (0x0d and 0x0a),  If this is
> the problem I would know if this stuffing can be avoided indicating that
> we're sending data bytes (binary) despite text or not.

How do you open the serial port filedescriptor?

Do you use fopen? You might want to use the "b" flag in the file mode
string to open the device in binary mode. See

http://www.ethernut.de/api/group__xgCrtStdio.html#g84fc076beb69f76fa7a1796e2666bfe1

as well as

http://www.ethernut.de/nutwiki/Advanced_UART_Functions#Cooked_vs._raw_mode

Bye,

Ole Reinhardt

-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 




More information about the En-Nut-Discussion mailing list