Writing files to serial port...in C
How do i write files (like a .jpg) to the serial port and have a pretty reliable stream of data that will go to another serial port? I'm looking to transfer about 1MB of data with no restrictions on time, however data has to be accurate. I'm thinking that it would be easy to have hardware flow control (i'm thinking that this will get handled automatically by the OS if it is enabled in the code) as a means of data integrity and making sure there are no buffer problems. Please help me with what direction i should take this.
I have read many articles on the internet which led me to libcurl and ftplib. I was thinking of using the libraries, but when it came down to it, i would probably have to write my own serial driver. Basically, all i want is data to be passed from one terminal to another through a serial port.
|