I need to know how to send a file in packages through the serial port. I also have to do it using a wait and stop protocol. If anyone can tell me where can i find an example i would be greatfull. Thanks
There are at least 2 Networkprotocols that could be used for that
1. Slip: Download the Trumpet winsock DLL which supports SLIP, Configure it, Assign IP - Adresses Connect the Computers and you can use the connection like a common Network.
2. PPP: Establish a RAS-Connection and you can connect the computers via Ras. All network features are then available.
The configuration is dependent on your OS in UNIX both services are directly available. You only have to enable it. The way how to do that you can find in the manpages.
hnd
hasso55@yahoo.com
Another method for transfering packets thru a serial port that are a little easier to understand, but admittedly less robust are the "older" protocols like XModem, Ymodem, or even ZModem. The source for these are readily available. It's even pretty easy to write your own protocol for packet transmission on a serial line, but you be re-inventing the wheel. For pure ascii I've written my own in the past and prefer a simple protocol like:
<SOH><ByteCount><DataToBeTransmitted><EOT><Checksum>
I am sure your protocol works, but the solution with TCP/IP on a serial line gives you the benefit to use all tools which you know from Internet, FTP, Telnet etc.... and you can route the packets even via the Internet.
It is in the forst view difficult to understand, but in the real it is easy to handle.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.