in reply to Re: deal data transfer
in thread deal data transfer
Hi, John M. Dlugosz Thanks for your help! here I elaborate my question.
First, the prog I intend to finish is to provide data to remote server. Data transfer could be by ethternet, serial etc.
Second, whatever way of transfer, the process runs over a request-answer-mode protocol which is defined by server side and exist already. it's like
Send:(data request packet) 68 15 15 68 73 01 00 78 01 06 01 00 0B 01 05 19 0B CA 03 06 1E 0B +CA 03 06 03 16 Receive:(confirm) E5 Step 2: Send :(request data) 10 5A 01 00 5B 16 Receive :(data) 68 15 15 68 28 01 00 78 01 07 01 00 0B 01 05 19 0B CA 03 06 1E 0B +CA 03 06 B9 16 as I mentioned in this thread before, every byte has its own meaning d +efined by protocol, e.g. length of data, checksum, end flag.
Third, I've had some experience about pack/unpack, but I've stuck most because I feel like many details about implementation of this protocol is ahead. like,
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: deal data transfer
by BrowserUk (Patriarch) on May 18, 2011 at 03:02 UTC | |
by xiaoyafeng (Deacon) on May 18, 2011 at 03:06 UTC | |
by BrowserUk (Patriarch) on May 18, 2011 at 03:09 UTC | |
by xiaoyafeng (Deacon) on May 18, 2011 at 03:37 UTC | |
by BrowserUk (Patriarch) on May 18, 2011 at 04:52 UTC | |
| |
|
Re^3: deal data transfer
by John M. Dlugosz (Monsignor) on May 18, 2011 at 12:01 UTC |