Again:Transmit files by Serial Ports
-
Hi,guys three days ago I post my question about transmit files by Serial Ports here. "I have a question when I was writing the program about serial communication. It seems that most articles about serial communication are wrote to the characters transmission.But now I want to transmit files by serial ports,how could I do that.I mean "transmit files" is that copy files on a PC to another. Is there anyone could give me a method to do that? Thanks very much. " Now I have map the file to the memory ,and could write it to the cache of serial ports,and can read the content of the file.but my purpose is copy files form a PC to another.So......anyone could help me again? YES, I am here.
-
Hi,guys three days ago I post my question about transmit files by Serial Ports here. "I have a question when I was writing the program about serial communication. It seems that most articles about serial communication are wrote to the characters transmission.But now I want to transmit files by serial ports,how could I do that.I mean "transmit files" is that copy files on a PC to another. Is there anyone could give me a method to do that? Thanks very much. " Now I have map the file to the memory ,and could write it to the cache of serial ports,and can read the content of the file.but my purpose is copy files form a PC to another.So......anyone could help me again? YES, I am here.
Attach to the transmitted data header of a file and transfer all this, and let the receiver will create a file by header and will write in him data. Best regards, Eugene Pustovoyt
-
Attach to the transmitted data header of a file and transfer all this, and let the receiver will create a file by header and will write in him data. Best regards, Eugene Pustovoyt
-
Thanks your reply.but I can not understand what is "Attach to the transmitted data header of a file ".what is header? YES, I am here.
You're must from file's header create your own header (name, extension, date, attributes etc.) as data and add it to begin data from file. After this you can transmit this packet through serial port. Receiver must extract header from packet and create file on disk. And after this you must put the file's data from the packet to him. Best regards, Eugene Pustovoyt