|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
SOCKET F0/F data on the flow calibration algorithm I have devised a simple socket data packet format to ensure that the correct data transmission. A check of the package design and format of the data and calibration data acquisition, the other to receive, the same area of calibration data, and to compare the value of checking whether or not the same as to the correctness of data transmission. The question now is how the calibration data. You any good? Algorithm. Can be given directly to the function, then all the better.
Typedef struct Packets
{
Baotou */ unsigned char head[8]; LEAVES OF 13 SPECIES OF LAURACEAE
Unsigned char packet types */ type[4]; LEAVES OF 13 SPECIES OF LAURACEAE
Unsigned char word order */ code[4]; LEAVES OF 13 SPECIES OF LAURACEAE
Unsigned long int len; LEAVES OF 13 SPECIES OF LAURACEAE packet length */
Check and */ unsigned long int CheckSum; LEAVES OF 13 SPECIES OF LAURACEAE
District */ unsigned char data *Data; LEAVES OF 13 SPECIES OF LAURACEAE
Packets;) |
SOCKET F0/F data on the flow calibration algorithm Not crc algorithm? Try |
| |