by Stephane » Wed Nov 25, 2009 12:27 am
by Stephane
Wed Nov 25, 2009 12:27 am
Hi,
0x0A turning into a 0x0D, 0x0A ... That sounds like a conversion from /n to /r/n.
Would you be sending data from a Windows machine?
If so check the options you open your COM port with. /n converted to /r/n is the typical things you have when you write into files in Microsoft OSes, and that is why the "b" exists in fopen( "file", "wb" ) when you want to write non-text data.
I hope this helps.
Stéphane
Hi,
0x0A turning into a 0x0D, 0x0A ... That sounds like a conversion from /n to /r/n.
Would you be sending data from a Windows machine?
If so check the options you open your COM port with. /n converted to /r/n is the typical things you have when you write into files in Microsoft OSes, and that is why the "b" exists in fopen( "file", "wb" ) when you want to write non-text data.
I hope this helps.
Stéphane