CN105162734A - Multi-source data transmission system based on Zigbee network - Google Patents
Multi-source data transmission system based on Zigbee network Download PDFInfo
- Publication number
- CN105162734A CN105162734A CN201510474229.3A CN201510474229A CN105162734A CN 105162734 A CN105162734 A CN 105162734A CN 201510474229 A CN201510474229 A CN 201510474229A CN 105162734 A CN105162734 A CN 105162734A
- Authority
- CN
- China
- Prior art keywords
- frame
- data
- module
- data field
- interchangeable
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 claims abstract description 59
- 230000008569 process Effects 0.000 claims abstract description 42
- 238000001514 detection method Methods 0.000 claims abstract description 33
- 238000009432 framing Methods 0.000 claims abstract description 18
- 238000012795 verification Methods 0.000 claims abstract description 15
- 238000012937 correction Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 12
- 238000011084 recovery Methods 0.000 claims description 12
- 230000011218 segmentation Effects 0.000 claims description 9
- 238000007405 data analysis Methods 0.000 abstract 1
- 238000004806 packaging method and process Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 5
- 238000012546 transfer Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 241000256844 Apis mellifera Species 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/60—Software-defined switches
- H04L49/608—ATM switches adapted to switch variable length packets, e.g. IP packets
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a multi-source data transmission system based on a Zigbee network and relates to the field of wireless data transmission. A sending end of the system collects data of a sensor and processes the data according to a format of a general frame for packaging the data into a plurality of data frames; judges whether the length of each data frame is greater than 32 bits or not, divides, re-framing and arranging the data frames whose lengths are greater than 32 bits and performs frame verification of the data frames whose lengths are smaller than or equal to 32 bits; and transmits the data frames subjected to frame verification. A receiving end receives and detects the data frames; judges whether the frame footer of a data domain is detected or not, repeats receiving detection if no frame footer is detected, restores the data subjected to replacement treatment and stores if the frame footer is detected until all the data frames are received, detected and restored. Finally, the data collected by the sending end is acquired. According to the invention, uniform transmission of multi-source sensor information is realized, adaptability to the multi-source sensor is improved and complexity in data analysis of a rear-end server is reduced.
Description
Technical field
The present invention relates to Wireless Data Transmission field, be specifically related to a kind of multi-source data transmission system based on Zigbee network.
Background technology
Zigbee, is translated into " purple honeybee " in China, and the wireless communication technology of a kind of emerging short distance, low-power consumption, low cost, low complex degree, self-organizing is similar with bluetooth, is mainly suitable for automatically controlling and remote control field, can embed various equipment.
At present, in Zigbee network, the type of transducer is more, traditional data transfer mode is the corresponding a kind of transmission method of a kind of transducer, namely for often kind of dissimilar transducer, after the data gathered by this transducer are encapsulated by specific protocol, then back-end server is transferred to, this data transfer mode is difficult to adapt to Multiple Source Sensor, and complexity when adding back-end server resolution data.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide a kind of multi-source data transmission system based on Zigbee network, realize the uniform transmission of Multiple Source Sensor information, improve the adaptability to Multiple Source Sensor, reduce complexity during back-end server resolution data.For reaching above object, the technical scheme that the present invention takes is: a kind of multi-source data transmission system based on Zigbee network, comprise transmitting terminal and receiving terminal, described transmitting terminal comprises acquisition processing module, frame length judge module, framing module, correction verification module and transport module, described receiving terminal comprises detection module and recovery module, wherein:
Described acquisition processing module is used for: the data of pick-up transducers, and process according to the form of interchangeable frame: interchangeable frame comprises data field, image data is loaded in the data field of interchangeable frame, and the frame head of data field of the interchangeable frame after loading, postamble are carried out replacements respectively and processed, be packaged into some first Frames, all first Frames are arranged according to the order of image data;
Described frame length judge module is used for: according to putting in order of the first Frame, judge length whether > 32 byte of each first Frame successively, if so, then by the first dataframe of length > 32 byte to framing module; If not, then by this first Frame called after second Frame, and by the second dataframe to correction verification module;
Described framing module is used for: when receiving the first Frame of length > 32 byte, according to the order of image data, the first Frame received is split, again according to form framing, the arrangement again of interchangeable frame, obtain some second Frames, length≤32 byte of each second Frame, and by the second dataframe to correction verification module;
Described correction verification module is used for: when receiving the second Frame, according to putting in order of the second Frame, carries out frame check successively to the second Frame, obtains some 3rd Frames, and by all 3rd dataframe to transport module;
Described transport module is used for: when receiving the 3rd Frame, according to putting in order of the 3rd Frame, the 3rd Frame is transferred to successively the detection module of receiving terminal;
Described detection module is used for: receive the 3rd Frame successively, successively detection operation is carried out to the 3rd Frame received: when the frame head of data field of the 3rd Frame being detected, judge whether the postamble of the data field the 3rd Frame being detected, if so, then will detect that the 3rd dataframe of the postamble of data field is to recovery module; If not, then continue reception the 3rd Frame, and carry out detection operation;
Described recovery module is used for: when receiving the 3rd Frame that detection module sends, carry out restoring operation in the data field of the 3rd Frame through the data of replacing process, and to store, until receive all 3rd Frames that detection module sends, and reduce, finally obtain the data of transducer.
On the basis of technique scheme, the form of described interchangeable frame is: remainder in sequence number+present frame frame in frame head+frame identification+present frame frame+and from node short address+data field+CRC check+postamble.
On the basis of technique scheme, described acquisition processing module comprises collection submodule, segmentation submodule, loads submodule and replace submodule, wherein:
Described collection submodule is used for: the data of pick-up transducers, image data is sent to segmentation submodule;
Described segmentation submodule is used for: image data is divided into some subdatas according to its order, and is sent to loading submodule;
Described loading submodule is used for: be loaded in the data field of corresponding interchangeable frame successively by every bar subdata;
Described replacement submodule is used for: carry out replacement process respectively to the frame head of data field, postamble, be packaged into some first Frames, arranged by all first Frames according to the order of image data.
On the basis of technique scheme, the process that described framing module obtains some second Frames is: the subdata in the data field of the first digital frame is divided into some divided data, every bar divided data is loaded in the data field of corresponding interchangeable frame respectively, and arrange according to the order of subdata, obtain some second Frames.
On the basis of technique scheme, described acquisition processing module to the process that the frame head of data field of the interchangeable frame after loading, postamble carry out replacing process is respectively: when there is 0xff or 0xfe in the frame head, postamble of the data field of the interchangeable frame after loading, 0xff in the frame head of the data field of the interchangeable frame after loading, postamble is replaced with 0xfe0x00,0xfe is replaced with 0xfe0xf1.
On the basis of technique scheme, described recovery module to the process of carrying out restoring operation in the data field of the 3rd Frame through replacing the data processed is: the 0xfe0x00 in the data field of the 3rd Frame in the data of replacing process is reduced to 0xff, 0xfe0xf1 is reduced to 0xfe.
On the basis of technique scheme, the process of described transport module transmission the 3rd Frame is: transport module only sends the 3rd Frame at every turn: transport module comprises serial ports, sends chip and antenna, 3rd Frame is passed to transmission chip by serial ports by transport module, send the single byte of the 3rd Frame is sent to receiving terminal by chip successively detection module by antenna, until send chip, all bytes of the 3rd Frame are sent.
On the basis of technique scheme, described transport module, also for arranging the first safety time, if transport module sends time > first safety time of the 3rd Frame, then terminates transmission the 3rd Frame.
On the basis of technique scheme, described detection module is also for arranging the second safety time, if detection module receives time > second safety time of the 3rd Frame, then stops reception the 3rd Frame.
On the basis of technique scheme, described second safety time is 20 milliseconds.
Compared with prior art, the invention has the advantages that:
(1) the present invention is by the Data import of transducer in the data field of interchangeable frame, and the frame head of data field of the interchangeable frame after loading, postamble is carried out to replacements respectively and processes, and is packaged into some first Frames.Multiple Source Sensor information carries out unifying process according to the form of interchangeable frame by this mode, improves the adaptability of Multiple Source Sensor; Adopt tunnel transmission mode, by the Multiple Source Sensor information transmission after unified process to receiving terminal (back-end server), reduce complexity during back-end server resolution data.
(2) in the present invention, type for transducer is different, the form of corresponding sensor information is different, devise the interchangeable frame of random length, the host-host protocol of this variable word length, adapts to the transmission of multiple sensors information, i.e. the transmission of multi-source data, especially adapt in the hydrology and articles from the storeroom message transmitting procedure, the uncontrollable situation of the data length caused because transducer is various.
(3) in the present invention, when there is 0xff or 0xfe in the frame head, postamble of the data field of the interchangeable frame after loading, 0xff in the frame head of the data field of the interchangeable frame after loading, postamble is replaced with 0xfe0x00,0xfe is replaced with 0xfe0xf1, this is because also may 0xff or 0xfe be there is in other parts of data field, the frame head of data field of the interchangeable frame after loading, postamble are carried out replacements and processed, the frame head of misidentification data field, the phenomenon of postamble can be prevented.
(4) the present invention is before transmission Frame, judge length whether > 32 byte of each first Frame successively, if length≤32 byte of the first Frame, then by the first Frame called after second Frame, if length > 32 byte of the first Frame, then the first Frame is split, again according to form framing, the arrangement again of interchangeable frame, obtain the second Frame of some length≤32 byte, ensure the length of each second Frame all≤32 bytes, thus ensure the reliability of data frame transfer process.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet based on the multi-source data transmission method of Zigbee network in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of step S1 in Fig. 1.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
The embodiment of the present invention provides a kind of multi-source data transmission system based on Zigbee network, comprise transmitting terminal and receiving terminal, transmitting terminal comprises acquisition processing module, frame length judge module, framing module, correction verification module and transport module, described receiving terminal comprises detection module and recovery module, wherein:
Acquisition processing module is used for: the data of pick-up transducers, and process according to the form of interchangeable frame: interchangeable frame comprises data field, image data is loaded in the data field of interchangeable frame, and the frame head of data field of the interchangeable frame after loading, postamble are carried out replacements respectively and processed, be packaged into some first Frames, all first Frames are arranged according to the order of image data;
Wherein, the form of interchangeable frame is: remainder in sequence number+present frame frame in frame head+frame identification+present frame frame+and from node short address+data field+CRC check+postamble.
Acquisition processing module to the process that the frame head of data field of the interchangeable frame after loading, postamble carry out replacing process is respectively: when there is 0xff or 0xfe in the frame head, postamble of the data field of the interchangeable frame after loading, 0xff in the frame head of the data field of the interchangeable frame after loading, postamble is replaced with 0xfe0x00,0xfe is replaced with 0xfe0xf1.
Frame length judge module is used for: according to putting in order of the first Frame, judge length whether > 32 byte of each first Frame successively, if so, then by the first dataframe of length > 32 byte to framing module; If not, then by this first Frame called after second Frame, and by the second dataframe to correction verification module.
Framing module is used for: when receiving the first Frame of length > 32 byte, according to the order of image data, the first Frame received is split, again according to form framing, the arrangement again of interchangeable frame, obtain some second Frames, length≤32 byte of each second Frame, and by the second dataframe to correction verification module.
Correction verification module is used for: when receiving the second Frame, according to putting in order of the second Frame, carries out frame check successively to the second Frame, obtains some 3rd Frames, and by all 3rd dataframe to transport module.
Transport module is used for: when receiving the 3rd Frame, according to putting in order of the 3rd Frame, the 3rd Frame is transferred to successively the detection module of receiving terminal,
Wherein, the process of transport module transmission the 3rd Frame is: transport module only sends the 3rd Frame at every turn: transport module comprises serial ports, sends chip and antenna, 3rd Frame is passed to transmission chip by serial ports by transport module, send the single byte of the 3rd Frame is sent to receiving terminal by chip successively detection module by antenna, until send chip, all bytes of the 3rd Frame are sent.
Transport module, also for arranging the first safety time, if transport module sends time > first safety time of the 3rd Frame, then terminates transmission the 3rd Frame.
Detection module is used for: receive the 3rd Frame successively, successively detection operation is carried out to the 3rd Frame received: when the frame head of data field of the 3rd Frame being detected, judge whether the postamble of the data field the 3rd Frame being detected, if so, then will detect that the 3rd dataframe of the postamble of data field is to recovery module; If not, then continue reception the 3rd Frame, and carry out detection operation.
Detection module is also for arranging the second safety time, if detection module receives time > second safety time of the 3rd Frame, then stops reception the 3rd Frame.In the present embodiment, the second safety time is set to 20 milliseconds.
Recovery module is used for: when receiving the 3rd Frame that detection module sends, carry out restoring operation in the data field of the 3rd Frame through the data of replacing process, and to store, until receive all 3rd Frames that detection module sends, and reduce, finally obtain the data of transducer.
Wherein, recovery module to the process of carrying out restoring operation in the data field of the 3rd Frame through replacing the data processed is: the 0xfe0x00 in the data field of the 3rd Frame in the data of replacing process is reduced to 0xff, 0xfe0xf1 is reduced to 0xfe.
Further, acquisition processing module comprises collection submodule, segmentation submodule, loads submodule and replace submodule, wherein:
Collection submodule is used for: the data of pick-up transducers, image data is sent to segmentation submodule;
Segmentation submodule is used for: image data is divided into some subdatas according to its order, and is sent to loading submodule;
Loading submodule is used for: be loaded in the data field of corresponding interchangeable frame successively by every bar subdata;
Replacement submodule is used for: carry out replacement process respectively to the frame head of data field, postamble, be packaged into some first Frames, arranged by all first Frames according to the order of image data.
Shown in Figure 1, the embodiment of the present invention also provides a kind of multi-source data transmission method based on Zigbee network, comprises the following steps:
S1. the data of transmitting terminal pick-up transducers, and process according to the form of interchangeable frame: interchangeable frame comprises data field, image data is loaded in the data field of interchangeable frame, and the frame head of data field of the interchangeable frame after loading, postamble are carried out replacements respectively and processed, be packaged into some first Frames, all first Frames are arranged according to the order of image data.
Wherein, the form of interchangeable frame is: remainder (1 byte) in sequence number (1 byte)+present frame frame in frame head (3 byte)+frame identification (1 byte)+present frame frame+and from node short address (2 byte)+data field (n≤18 byte)+CRC check (2 byte)+postamble (3 byte), n is positive integer.In order to realize different functions, the form of interchangeable frame can be different.
The process of the frame head of data field of the interchangeable frame after loading, postamble being carried out replacing respectively to process is: when there is 0xff (character) or 0xfe (character) in the frame head, postamble of the data field of the interchangeable frame after loading, 0xff in the frame head of the data field of the interchangeable frame after loading, postamble is replaced with 0xfe0x00 (two characters), 0xfe is replaced with 0xfe0xf1 (two characters).This is because other parts of data field also may exist 0xff or 0xfe, the frame head of data field of the interchangeable frame after loading, postamble are carried out replacements and processed, the frame head of misidentification data field, the phenomenon of postamble can be prevented.
Shown in Figure 2, step S1 comprises the following steps:
S101. the data of transmitting terminal pick-up transducers, are divided into some subdatas by image data;
S102. transmitting terminal putting in order by subdata, is loaded in the data field of corresponding interchangeable frame successively by subdata;
S103. transmitting terminal carries out replacement process respectively to the frame head of data field, postamble, is packaged into some first Frames, is arranged by all first Frames according to the order of image data.
S2. according to ZigBee module agreement, when sending length > 32 byte of data, then the reliability of data transmission procedure cannot be ensured.Transmitting terminal puts in order according to the first Frame, judge length whether > 32 byte of each first Frame successively, if so, namely the length > of this first Frame sends the maximum length of data, then forward step S3 to; If not, then by this first Frame called after second Frame, step S4 is forwarded to.
S3. transmitting terminal is according to the order of image data, splits the first Frame, then according to form framing, the arrangement again of interchangeable frame, obtain some second Frames, length≤32 byte of each second Frame, forwards step S4 to.
Wherein, the process obtaining some second Frames is: the subdata in the data field of the first digital frame is divided into some divided data, putting in order according to divided data, is loaded into successively by divided data in the data field of corresponding interchangeable frame, obtains some second Frames.
S4. transmitting terminal putting in order according to the second Frame, successively frame check is carried out to the second Frame, namely CRC (CyclicRedundancyCheck is carried out to the second Frame, cyclic redundancy check (CRC) code) verification, obtain frame check code, and put it in the CRC check of this second Frame, obtain some 3rd Frames, forward step S5 to.
S5. transmitting terminal putting in order according to the 3rd Frame, transmits the 3rd Frame successively, forwards step S6 to.The process transmitting the 3rd Frame is: transmitting terminal only sends the 3rd Frame at every turn: transmitting terminal comprises serial ports, sends chip and antenna, 3rd Frame is passed to transmission chip by serial ports by transmitting terminal, send chip and successively the single byte of the 3rd Frame is sent to receiving terminal by antenna, until send chip, all bytes of the 3rd Frame are sent.
Step S5 is further comprising the steps of: described transmitting terminal arranges the first safety time, if time > first safety time of transmitting terminal transmission the 3rd Frame, then transmitting terminal terminates transmission the 3rd Frame.
S6. receiving terminal receives the 3rd Frame successively, successively detection operation is carried out to the 3rd Frame received: when receiving terminal detects the frame head of the data field of the 3rd Frame, judge whether the postamble of the data field the 3rd Frame being detected, if so, then forward step S7 to; If not, then repeated execution of steps S6.
Step S6 is further comprising the steps of: described receiving terminal arranges the second safety time, if receiving terminal receives time > second safety time of the 3rd Frame, then receiving terminal stops reception the 3rd Frame, prevent from, in the receiving course of the 3rd Frame, causing system endless loop because there is garbled-reception.
S7. receiving terminal carries out restoring operation in the data field of the 3rd Frame through the data of replacing process, and according to the 3rd Frame reception order, all data in the data field of the 3rd Frame after reduction are stored in specific memory space, until receiving terminal receives the 3rd all Frames, and through detecting operation, restoring operation, all data in final memory space form a complete sensing data, namely obtain the data that transmitting terminal gathers.
To the process of carrying out restoring operation in the data field of the 3rd Frame through replacing the data processed be: be reduced to 0xff by reverse for the 0xfe0x00 in the data field of the 3rd Frame in the data of replacing process, be reduced to 0xfe by reverse for 0xfe0xf1.
Below in conjunction with 3 specific embodiments, the present invention is described in further detail.
Embodiment 1
Embodiment 1 provides a kind of multi-source data transmission method based on Zigbee network, comprises the following steps:
S1. the data of transmitting terminal pick-up transducers, and process according to the form of interchangeable frame: interchangeable frame comprises data field, image data is loaded in the data field of interchangeable frame, and the frame head of data field of the interchangeable frame after loading, postamble are carried out replacements respectively and processed, be packaged into some first Frames, all first Frames are arranged according to the order of image data.
The form of interchangeable frame is: remainder (1 byte) in sequence number (1 byte)+present frame frame in frame head (3 byte)+frame identification (1 byte)+present frame frame+and from node short address (2 byte)+data field (n≤18 byte)+CRC check (2 byte)+postamble (3 byte), n is positive integer.
The first Frame obtained is as follows:
First Frame 1 (data length 23 byte)
First Frame 2 (data length 17 byte)
First Frame 3 (data length 21 byte)
First Frame 4 (data length 31 byte)
First Frame 5 (data length 30 byte)
First Frame 6 (data length 30 byte)
First Frame 7 (data length 14 byte)
S2. transmitting terminal putting in order according to the first Frame, judges length whether > 32 byte of each first Frame successively, if so, then forwards step S3 to; If not, then by this first Frame called after second Frame, step S4 is forwarded to;
S3. transmitting terminal is according to the order of image data, splits the first Frame, then according to form framing, the arrangement again of interchangeable frame, obtain some second Frames, length≤32 byte of each second Frame, forwards step S4 to;
S4. transmitting terminal putting in order according to the second Frame, carries out frame check to the second Frame successively, obtains some 3rd Frames, forwards step S5 to;
S5. transmitting terminal putting in order according to the 3rd Frame, transmits the 3rd Frame successively, forwards step S6 to;
S6. receiving terminal receives the 3rd Frame successively, successively detection operation is carried out to the 3rd Frame received: when receiving terminal detects the frame head of the data field of the 3rd Frame, judge whether the postamble of the data field the 3rd Frame being detected, if so, then forward step S7 to; If not, then repeated execution of steps S6;
S7. receiving terminal carries out restoring operation in the data field of the 3rd Frame through the data of replacing process, and stores, until receiving terminal receives the 3rd all Frames, and through detecting operation, restoring operation, finally obtains the data that transmitting terminal gathers.
Embodiment 2
Embodiment 2 provides a kind of multi-source data transmission method based on Zigbee network, and except the form of the interchangeable frame in step S1, S3 is different from embodiment 1, all the other steps are all identical.
In order to realize inspection function, the form of the interchangeable frame in embodiment 2 is: remainder (1 byte) in sequence number (1 byte)+present frame frame in frame head (3 byte)+frame identification (1 byte)+present frame frame+from node short address (2 byte)+data field (n≤18 byte)+CRC check (2 byte)+postamble (3 byte), n is positive integer, the data field of first the first Frame obtained comprises TransactionMode (trafficwise), TransactionMode is for selecting function to be achieved, in the present embodiment, TransactionMode selects inspection function.
First Frame of gained is as follows:
First Frame 1 (data length 19 byte)
First Frame 2 (data length 31 byte)
First Frame 3 (data length 30 byte)
First Frame 4 (data length 30 byte)
First Frame 5 (data length 14 byte)
First Frame 6 (data length 11+n byte)
First Frame 7 (data length 20 byte)
Embodiment 3
Embodiment 3 provides a kind of multi-source data transmission method based on Zigbee network, and except the form of the interchangeable frame in step S1, S3 is different from embodiment 1, all the other steps are all identical.
In order to realize communication function, the form of the interchangeable frame in embodiment 3 is: frame head (3 byte)+data field length (1 byte)+data field (n byte)+CRC check (2 byte)+postamble (3 byte), n is positive integer.
First Frame of gained is as follows:
Data length | Field | Remarks |
3 | Frame head | 5A5A5A |
1 | Data field length | The data length N transmitted |
N | Data field | The data transmitted |
2 | CRC check | CRC check is carried out to data field |
3 | Postamble | A5A5A5 |
The present invention is not limited to above-mentioned execution mode, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.
Claims (10)
1. the multi-source data transmission system based on Zigbee network, comprise transmitting terminal and receiving terminal, it is characterized in that: described transmitting terminal comprises acquisition processing module, frame length judge module, framing module, correction verification module and transport module, described receiving terminal comprises detection module and recovery module, wherein:
Described acquisition processing module is used for: the data of pick-up transducers, and process according to the form of interchangeable frame: interchangeable frame comprises data field, image data is loaded in the data field of interchangeable frame, and the frame head of data field of the interchangeable frame after loading, postamble are carried out replacements respectively and processed, be packaged into some first Frames, all first Frames are arranged according to the order of image data;
Described frame length judge module is used for: according to putting in order of the first Frame, judge length whether > 32 byte of each first Frame successively, if so, then by the first dataframe of length > 32 byte to framing module; If not, then by this first Frame called after second Frame, and by the second dataframe to correction verification module;
Described framing module is used for: when receiving the first Frame of length > 32 byte, according to the order of image data, the first Frame received is split, again according to form framing, the arrangement again of interchangeable frame, obtain some second Frames, length≤32 byte of each second Frame, and by the second dataframe to correction verification module;
Described correction verification module is used for: when receiving the second Frame, according to putting in order of the second Frame, carries out frame check successively to the second Frame, obtains some 3rd Frames, and by all 3rd dataframe to transport module;
Described transport module is used for: when receiving the 3rd Frame, according to putting in order of the 3rd Frame, the 3rd Frame is transferred to successively the detection module of receiving terminal;
Described detection module is used for: receive the 3rd Frame successively, successively detection operation is carried out to the 3rd Frame received: when the frame head of data field of the 3rd Frame being detected, judge whether the postamble of the data field the 3rd Frame being detected, if so, then will detect that the 3rd dataframe of the postamble of data field is to recovery module; If not, then continue reception the 3rd Frame, and carry out detection operation;
Described recovery module is used for: when receiving the 3rd Frame that detection module sends, carry out restoring operation in the data field of the 3rd Frame through the data of replacing process, and to store, until receive all 3rd Frames that detection module sends, and reduce, finally obtain the data of transducer.
2., as claimed in claim 1 based on the multi-source data transmission system of Zigbee network, it is characterized in that: the form of described interchangeable frame is: remainder in sequence number+present frame frame in frame head+frame identification+present frame frame+from node short address+data field+CRC check+postamble.
3. as claimed in claim 1 based on the multi-source data transmission system of Zigbee network, it is characterized in that: described acquisition processing module comprises collection submodule, segmentation submodule, loads submodule and replace submodule, wherein:
Described collection submodule is used for: the data of pick-up transducers, image data is sent to segmentation submodule;
Described segmentation submodule is used for: image data is divided into some subdatas according to its order, and is sent to loading submodule;
Described loading submodule is used for: be loaded in the data field of corresponding interchangeable frame successively by every bar subdata;
Described replacement submodule is used for: carry out replacement process respectively to the frame head of data field, postamble, be packaged into some first Frames, arranged by all first Frames according to the order of image data.
4. as claimed in claim 3 based on the multi-source data transmission system of Zigbee network, it is characterized in that: the process that described framing module obtains some second Frames is: the subdata in the data field of the first digital frame is divided into some divided data, every bar divided data is loaded in the data field of corresponding interchangeable frame respectively, and arrange according to the order of subdata, obtain some second Frames.
5. as claimed in claim 1 based on the multi-source data transmission system of Zigbee network, it is characterized in that: described acquisition processing module to the process that the frame head of data field of the interchangeable frame after loading, postamble carry out replacing process is respectively: when there is 0xff or 0xfe in the frame head, postamble of the data field of the interchangeable frame after loading, 0xff in the frame head of the data field of the interchangeable frame after loading, postamble is replaced with 0xfe0x00,0xfe is replaced with 0xfe0xf1.
6. as claimed in claim 5 based on the multi-source data transmission system of Zigbee network, it is characterized in that: described recovery module to the process of carrying out restoring operation in the data field of the 3rd Frame through replacing the data processed is: the 0xfe0x00 in the data field of the 3rd Frame in the data of replacing process is reduced to 0xff, 0xfe0xf1 is reduced to 0xfe.
7. as claimed in claim 1 based on the multi-source data transmission system of Zigbee network, it is characterized in that, the process of described transport module transmission the 3rd Frame is: transport module only sends the 3rd Frame at every turn: transport module comprises serial ports, sends chip and antenna, 3rd Frame is passed to transmission chip by serial ports by transport module, send the single byte of the 3rd Frame is sent to receiving terminal by chip successively detection module by antenna, until send chip, all bytes of the 3rd Frame are sent.
8. as claimed in claim 1 based on the multi-source data transmission system of Zigbee network, it is characterized in that: described transport module is also for arranging the first safety time, if transport module sends time > first safety time of the 3rd Frame, then terminate transmission the 3rd Frame.
9. as claimed in claim 1 based on the multi-source data transmission system of Zigbee network, it is characterized in that: described detection module is also for arranging the second safety time, if detection module receives time > second safety time of the 3rd Frame, then stop reception the 3rd Frame.
10., as claimed in claim 9 based on the multi-source data transmission system of Zigbee network, it is characterized in that: described second safety time is 20 milliseconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510474229.3A CN105162734B (en) | 2015-08-05 | 2015-08-05 | Multi-source data Transmission system based on Zigbee network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510474229.3A CN105162734B (en) | 2015-08-05 | 2015-08-05 | Multi-source data Transmission system based on Zigbee network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105162734A true CN105162734A (en) | 2015-12-16 |
CN105162734B CN105162734B (en) | 2018-08-28 |
Family
ID=54803490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510474229.3A Expired - Fee Related CN105162734B (en) | 2015-08-05 | 2015-08-05 | Multi-source data Transmission system based on Zigbee network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105162734B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106850149A (en) * | 2017-04-21 | 2017-06-13 | 深圳怡化电脑股份有限公司 | A kind of data transmission method, device, equipment and storage medium |
CN106887129A (en) * | 2017-01-10 | 2017-06-23 | 成都体育学院 | Free combat the contest data concentrator and its transmission method of electronics protector |
CN110084971A (en) * | 2019-04-25 | 2019-08-02 | 益逻触控系统公司 | The operating method and self-service terminal of self-service terminal |
CN112783827A (en) * | 2019-11-11 | 2021-05-11 | 北京京邦达贸易有限公司 | Multi-sensor data storage method and device |
WO2021098449A1 (en) * | 2019-11-21 | 2021-05-27 | 深圳市中兴微电子技术有限公司 | Multi-path data transmission method and apparatus, device and storage medium |
CN112887277A (en) * | 2021-01-12 | 2021-06-01 | 昆高新芯微电子(江苏)有限公司 | Conversion method and device of field bus and Ethernet and computer storage medium |
CN114389895A (en) * | 2022-02-15 | 2022-04-22 | 北京国基科技股份有限公司 | Ethernet frame secure transmission method, device and system |
CN117499994A (en) * | 2023-12-29 | 2024-02-02 | 南京市计量监督检测院 | Compression and restoration method for differential data recording and transmission of GNSS (Global navigation satellite System) locator |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1748381A (en) * | 2003-02-12 | 2006-03-15 | 思科技术公司 | Efficient framing procedure for variable length packets |
CN101902772A (en) * | 2009-05-25 | 2010-12-01 | 北京时代凌宇科技有限公司 | Method and system for fusion of multi-source monitoring data based on heterogeneous clustering wireless sensor network |
CN102571291A (en) * | 2012-02-27 | 2012-07-11 | 杭州星纬物联技术有限公司 | Method for data transmission between wireless sensor network nodes |
CN102647252A (en) * | 2012-03-26 | 2012-08-22 | 航天东方红卫星有限公司 | Serial communication method |
CN103914419A (en) * | 2012-12-29 | 2014-07-09 | 北京谊安医疗系统股份有限公司 | Communication method and system among board-level MCUs |
CN104268617A (en) * | 2014-09-04 | 2015-01-07 | 浙江托普仪器有限公司 | RFID-based plant data integrated management system |
WO2015024062A1 (en) * | 2013-08-23 | 2015-02-26 | University Of South Australia | Enhanced automatic identification system |
CN104639532A (en) * | 2014-12-25 | 2015-05-20 | 国家电网公司 | Collection system applied to electricity consumption information and data transmission method collection system |
-
2015
- 2015-08-05 CN CN201510474229.3A patent/CN105162734B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1748381A (en) * | 2003-02-12 | 2006-03-15 | 思科技术公司 | Efficient framing procedure for variable length packets |
CN101902772A (en) * | 2009-05-25 | 2010-12-01 | 北京时代凌宇科技有限公司 | Method and system for fusion of multi-source monitoring data based on heterogeneous clustering wireless sensor network |
CN102571291A (en) * | 2012-02-27 | 2012-07-11 | 杭州星纬物联技术有限公司 | Method for data transmission between wireless sensor network nodes |
CN102647252A (en) * | 2012-03-26 | 2012-08-22 | 航天东方红卫星有限公司 | Serial communication method |
CN103914419A (en) * | 2012-12-29 | 2014-07-09 | 北京谊安医疗系统股份有限公司 | Communication method and system among board-level MCUs |
WO2015024062A1 (en) * | 2013-08-23 | 2015-02-26 | University Of South Australia | Enhanced automatic identification system |
CN104268617A (en) * | 2014-09-04 | 2015-01-07 | 浙江托普仪器有限公司 | RFID-based plant data integrated management system |
CN104639532A (en) * | 2014-12-25 | 2015-05-20 | 国家电网公司 | Collection system applied to electricity consumption information and data transmission method collection system |
Non-Patent Citations (1)
Title |
---|
李永战等: "基于虚拟仪器的无线传感器网络监控平台", 《仪表技术与传感器》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106887129A (en) * | 2017-01-10 | 2017-06-23 | 成都体育学院 | Free combat the contest data concentrator and its transmission method of electronics protector |
CN106850149A (en) * | 2017-04-21 | 2017-06-13 | 深圳怡化电脑股份有限公司 | A kind of data transmission method, device, equipment and storage medium |
CN110084971A (en) * | 2019-04-25 | 2019-08-02 | 益逻触控系统公司 | The operating method and self-service terminal of self-service terminal |
CN112783827A (en) * | 2019-11-11 | 2021-05-11 | 北京京邦达贸易有限公司 | Multi-sensor data storage method and device |
WO2021098449A1 (en) * | 2019-11-21 | 2021-05-27 | 深圳市中兴微电子技术有限公司 | Multi-path data transmission method and apparatus, device and storage medium |
CN112887277A (en) * | 2021-01-12 | 2021-06-01 | 昆高新芯微电子(江苏)有限公司 | Conversion method and device of field bus and Ethernet and computer storage medium |
CN112887277B (en) * | 2021-01-12 | 2022-07-08 | 昆高新芯微电子(江苏)有限公司 | Conversion method and device of field bus and Ethernet and computer storage medium |
CN114389895A (en) * | 2022-02-15 | 2022-04-22 | 北京国基科技股份有限公司 | Ethernet frame secure transmission method, device and system |
CN114389895B (en) * | 2022-02-15 | 2024-01-23 | 北京国基科技股份有限公司 | Ethernet frame safe transmission method, device and system |
CN117499994A (en) * | 2023-12-29 | 2024-02-02 | 南京市计量监督检测院 | Compression and restoration method for differential data recording and transmission of GNSS (Global navigation satellite System) locator |
CN117499994B (en) * | 2023-12-29 | 2024-03-19 | 南京市计量监督检测院 | Compression and restoration method for differential data recording and transmission of GNSS (Global navigation satellite System) locator |
Also Published As
Publication number | Publication date |
---|---|
CN105162734B (en) | 2018-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105162734A (en) | Multi-source data transmission system based on Zigbee network | |
CN105187332A (en) | Multi-source data transmission method based on Zigbee network | |
US10873429B1 (en) | Data frame error recovery for multi-node systems | |
WO2016000371A1 (en) | Multi-channel synchronisation method, synchronisation device and system, and computer storage medium | |
CN106850046A (en) | A kind of spaceborne remote-control romote-sensing terminal, system and method based on FPGA | |
KR20190086711A (en) | Method for transmitting and receiving network management information, transceiver, transmitter and receiver | |
CN104507148A (en) | Low-power-consumption wireless sensor network | |
CN103118097A (en) | Data transmission method in wireless sensor network | |
CN105337991A (en) | Integrated message flow searching and updating method | |
WO2020082986A1 (en) | Data sending method, data receiving method, device, and system | |
CN103281805B (en) | A kind of method of wireless sensor node and RFID data fusion | |
CN105791777A (en) | FPGA-based gigabit Ethernet video multipath acquisition and transmission system | |
CN105302753A (en) | Multi-channel HDLC data processing device based on FPGA and FIFO chips | |
CN110213756A (en) | A kind of data transmission method, device and its relevant device | |
CN105635317A (en) | Wireless communication method and system applied to bridge detection | |
CN103873448A (en) | High-speed Internet specification protocol solving method and system for embedded system | |
CN106598543A (en) | Data process system of image sensor | |
CN102905281B (en) | Wireless sensing network (WSN) combined sensing device and working method thereof | |
CN102594871B (en) | A kind of data encapsulation method, system, adapter and Internet of things middleware | |
US20130156050A1 (en) | Data transfer apparatus, data transfer method, and inter-chip communication system | |
CN103340608B (en) | The differentiation processing method of the data format of family endowment health account | |
CN109632842A (en) | A kind of the CT detector and its application method of module serial structure | |
CN105206028A (en) | Information acquisition device and system based on internet of things | |
CN107302532B (en) | RAW image data transmission system | |
CN102523198B (en) | Multi-path data collection card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180828 |
|
CF01 | Termination of patent right due to non-payment of annual fee |