> Hi ...
> I am trying to port ZMODEM on uClinux/68EZ328 ...
> It's fine .. if I transfer text file ....
> But, it fail if I transfer binary file ....
> It seems serial driver (driver/char/68328serial.c) make somethings mistake
> May serial driver will eat control code , such as break/abort and so on ...
> Does anyone got the idea that port ZMODEM on uClinux/68EZ328/2.0.38 ???
> Thank you in advance ...
> This message resent by the email@example.com list server http://www.uClinux.com/
This sounds to me like the "classic" C programming library stream problem of having
opened a binary stream in a 'cooked' mode ( open ("filename", "r") ) versus 'raw'
mode ( open ("filename", "rb") ). Carefully check the mode specification under
which you opened the file stream, it sounds as if you have it opened under
'cooked'. 'cooked' mode will process any non-printable ascii characters into their
ANSI equivilants (CTRL-C = BREAK, CTRL-Z = EndOfFile, EOL = Carriage Return + Line
Feed pair, etc...).
-- Tom Walsh - Embedded Systems Consultant - tom over_at mytoys(.)com 'www.mytoys.com', 'www.openhardware.net', 'www.cyberiansoftware.com' "Windows? No thanks, I have work to do..."
This message resent by the firstname.lastname@example.org list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:33 EST