Can you please post an example of how to receive the file that is being send? How did you test the receiving side? I tried HyperTerminal in Win XP and that did not do the trick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This library aim is to provide a small and fast tool to get a file from an embeded device through serial port. This embeded device must allow ZModem file transfert through serial port.
Currently, ZModem4dotNET only manage the receiver part of the transfert.
So if you want to use the library, you need to connect 2 devices:
First device is usually an embedded device. It has a file you want. It's the sender.
Second device is usually a computer that receive the file (Receiver).
Once your 2 devices are connected and communicate together through serial port, from the receiver, you run the following minimum code:
ZModem_Protocol.ZModem zmodem = new ZModem_Protocol.ZModem(sp);
MemoryStream ms = zmodem.ZModemTransfert(FileName, 10);
And it will get the file through serial port, and set it inside a memory stream.
A complete example is available inside the code files : Test UI.cs
Under HyperTerminal, if you enter "sz filename", it will do the same as ZModem4dotNET...
Can you describe a little bit more what you doing?
Thank you,
PH FRANCOIS
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great code.
Can you please post an example of how to receive the file that is being send? How did you test the receiving side? I tried HyperTerminal in Win XP and that did not do the trick.
Hi fweinrebe,
This library aim is to provide a small and fast tool to get a file from an embeded device through serial port. This embeded device must allow ZModem file transfert through serial port.
Currently, ZModem4dotNET only manage the receiver part of the transfert.
So if you want to use the library, you need to connect 2 devices:
First device is usually an embedded device. It has a file you want. It's the sender.
Second device is usually a computer that receive the file (Receiver).
Once your 2 devices are connected and communicate together through serial port, from the receiver, you run the following minimum code:
ZModem_Protocol.ZModem zmodem = new ZModem_Protocol.ZModem(sp);
MemoryStream ms = zmodem.ZModemTransfert(FileName, 10);
And it will get the file through serial port, and set it inside a memory stream.
A complete example is available inside the code files : Test UI.cs
Under HyperTerminal, if you enter "sz filename", it will do the same as ZModem4dotNET...
Can you describe a little bit more what you doing?
Thank you,
PH FRANCOIS