CN105162734B - Multi-source data Transmission system based on Zigbee network - Google Patents

Multi-source data Transmission system based on Zigbee network Download PDF

Info

Publication number
CN105162734B
CN105162734B CN201510474229.3A CN201510474229A CN105162734B CN 105162734 B CN105162734 B CN 105162734B CN 201510474229 A CN201510474229 A CN 201510474229A CN 105162734 B CN105162734 B CN 105162734B
Authority
CN
China
Prior art keywords
data
frame
module
data frame
transmission
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.)
Expired - Fee Related
Application number
CN201510474229.3A
Other languages
Chinese (zh)
Other versions
CN105162734A (en
Inventor
王昱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Senyan Science & Technology Co Ltd
Original Assignee
Wuhan Senyan Science & Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Senyan Science & Technology Co Ltd filed Critical Wuhan Senyan Science & Technology Co Ltd
Priority to CN201510474229.3A priority Critical patent/CN105162734B/en
Publication of CN105162734A publication Critical patent/CN105162734A/en
Application granted granted Critical
Publication of CN105162734B publication Critical patent/CN105162734B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/60Software-defined switches
    • H04L49/608ATM 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 multi-source data Transmission system based on Zigbee network that the invention discloses a kind of being related to wireless data transmission field, the data of the transmitting terminal acquisition sensor of the system, and handled according to the format of interchangeable frame, is packaged into several data frames;Judge each data frame length whether 32 bytes of >, if so, data frame is split, again framing, arrangement;Frame check is carried out to the data frame of the byte of length≤32 successively;Transmit the data frame after frame check;Receiving terminal receives data frame, and detects:When detecting the frame head of data field, judge whether the postamble for detecting data field, if it is not, repeating to receive detection, if so, data of the reduction by replacement processing, and store, until receiving all data frames, and detect, restore, finally obtains the data of transmitting terminal acquisition.The present invention realizes the uniform transmission of Multiple Source Sensor information, improves the adaptability to Multiple Source Sensor, reduces complexity when back-end server parsing data.

Description

Multi-source data Transmission system based on Zigbee network
Technical field
The present invention relates to wireless data transmission fields, and in particular to a kind of multi-source data transmission system based on Zigbee network System.
Background technology
Zigbee is translated into " purple honeybee " in China, a kind of emerging short distance, low-power consumption, low cost, low complex degree, from The wireless communication technique of tissue, it is similar with bluetooth, it is mainly suitable for, for automatically controlling and remote control field, to be embedded in various Equipment.
Currently, in Zigbee network, the type of sensor is more, and traditional data transfer mode is a kind of sensor pair A kind of transmission method is answered, that is, is directed to each different types of sensor, the data which acquires is sealed by specific protocol After dress, then it is transferred to back-end server, this data transfer mode is difficult to adapt to Multiple Source Sensor, and increases back-end services Device parses complexity when data.
Invention content
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of multi-sources based on Zigbee network Data transmission system realizes the uniform transmission of Multiple Source Sensor information, improves the adaptability to Multiple Source Sensor, reduces rear end clothes Complexity when device parsing data of being engaged in.To achieve the above objectives, the technical solution adopted by the present invention is that:One kind being based on Zigbee nets The multi-source data Transmission system of network, including transmitting terminal and receiving terminal, the transmitting terminal include acquisition processing module, frame length judgement Module, framing module, correction verification module and transmission module, the receiving terminal include detection module and recovery module, wherein:
The acquisition processing module is used for:The data of sensor are acquired, and are handled according to the format of interchangeable frame:It is general Frame includes data field, and gathered data is loaded into the data field of interchangeable frame, and the frame of the data field to the interchangeable frame after load Head, postamble are replaced processing respectively, several first data frames are packaged into, by all first data frames according to the suitable of gathered data Sequence is arranged;
The frame length judgment module is used for:According to putting in order for the first data frame, each first data are judged successively The length of frame whether 32 bytes of >, if so, the first data frame of 32 bytes of length > is sent to framing module;If it is not, then First data frame is named as the second data frame, and the second data frame is sent to correction verification module;
The framing module is used for:When receiving the first data frame of 32 bytes of length >, according to the sequence of gathered data, First data frame of reception is split, according still further to format framing, the arrangement again of interchangeable frame, obtains several second data Frame, the byte of the length of each second data frame≤32, and the second data frame is sent to correction verification module;
The correction verification module is used for:When receiving the second data frame, according to putting in order for the second data frame, successively to Two data frames carry out frame check, obtain several third data frames, and all third data frames are sent to transmission module;
The transmission module is used for:When receiving third data frame, according to putting in order for third data frame, by third number It is transmitted to the detection module of receiving terminal successively according to frame;
The detection module is used for:Third data frame is received successively, and the third data frame received is detected successively Operation:When detecting the frame head of data field of third data frame, judge whether the frame for detecting the data field of third data frame Tail, if so, the third data frame for the postamble for detecting data field is sent to recovery module;If it is not, then continuing to third Data frame, and it is detected operation;
The recovery module is used for:When receiving the third data frame that detection module is sent, to the data of third data frame Restoring operation is carried out by replacing the data of processing in domain, and is stored, until receiving all third numbers that detection module is sent It according to frame, and restores, finally obtains the data of sensor.
Based on the above technical solution, the format of the interchangeable frame is:Serial number in frame head+frame identification+present frame frame+ Remainder in present frame frame+from node short address+data field+CRC check+postamble.
Based on the above technical solution, the acquisition processing module includes acquisition submodule, segmentation submodule, load Submodule and replacement submodule, wherein:
The acquisition submodule is used for:The data for acquiring sensor, segmentation submodule is sent to by gathered data;
The segmentation submodule is used for:Gathered data is divided into several subdatas according to its sequence, and is sent to and adds Carrier module;
The load submodule is used for:Every subdata is loaded into successively in the data field of corresponding interchangeable frame;
The replacement submodule is used for:Processing is replaced respectively to frame head, the postamble of data field, is packaged into several first Data frame arranges all first data frames according to the sequence of gathered data.
Based on the above technical solution, the process that the framing module obtains several second data frames is:By first Subdata in the data field of digital frame is divided into several divided datas, and every divided data is loaded into corresponding interchangeable frame respectively It in data field, and is arranged according to the sequence of subdata, obtains several second data frames.
Based on the above technical solution, frame of the acquisition processing module to the data field of the interchangeable frame after load Head, postamble are replaced the process of processing respectively:There are 0xff in the frame head of the data field of interchangeable frame after load, postamble Or when 0xfe, the 0xff in the frame head of the data field of the interchangeable frame after load, postamble is replaced with into 0xfe 0x00,0xfe is replaced It is changed to 0xfe0xf1.
Based on the above technical solution, the recovery module is handled passing through replacement in the data field of third data frame Data carry out restoring operation process be:By the 0xfe in the data by replacing processing in the data field of third data frame 0x00 is reduced to 0xff, and 0xfe 0xf1 are reduced to 0xfe.
Based on the above technical solution, the process of the transmission module transmission third data frame is:Transmission module is every One third data frame of secondary transmission:Transmission module includes serial ports, transmission chip and antenna, and transmission module is by serial ports by third Data frame passes to transmission chip, and the single byte of third data frame is sent to receiving terminal by transmission chip successively by antenna Detection module, until all bytes of third data frame are sent by transmission chip.
Based on the above technical solution, the transmission module is additionally operable to the first safety time of setting, if transmission module The first safety times of time > for sending third data frame then terminate to send third data frame.
Based on the above technical solution, the detection module is additionally operable to the second safety time of setting, if detection module The second safety times of time > for receiving third data frame then stop receiving third data frame.
Based on the above technical solution, second safety time is 20 milliseconds.
Compared with the prior art, the advantages of the present invention are as follows:
(1) data of sensor are loaded into the data field of interchangeable frame by the present invention, and to the number of the interchangeable frame after load It is replaced processing respectively according to the frame head in domain, postamble, is packaged into several first data frames.This mode is by Multiple Source Sensor information It is uniformly processed according to the format of interchangeable frame, improves the adaptability of Multiple Source Sensor;Using tunnel transmission mode, at unified Multiple Source Sensor information after reason is transferred to receiving terminal (back-end server), reduces complexity when back-end server parsing data Degree.
(2) different for the type of sensor in the present invention, the format of corresponding sensor information is different, devises not The interchangeable frame of fixed length, the transport protocol of this variable word length adapt to the transmission of multiple sensors information, the i.e. biography of multi-source data It is defeated, it especially adapts in the hydrology and articles from the storeroom message transmitting procedure, data length is uncontrollable caused by sensor is various Situation.
(3) in the present invention, when in the frame head of the data field of the interchangeable frame after load, postamble there are when 0xff or 0xfe, will 0xff in the frame head of the data field of interchangeable frame after load, postamble replaces with 0xfe 0x00, and 0xfe is replaced with 0xfe 0xf1, this is because the other parts of data field are also likely to be present 0xff or 0xfe, to the data field of the interchangeable frame after load Frame head, postamble are replaced processing, the phenomenon that can preventing frame head, the postamble of misidentification data field.
(4) present invention is before transmission data frame, judge successively each first data frame length whether 32 bytes of >, if the The byte of the length of one data frame≤32, then be named as the second data frame, if the length > 32 of the first data frame by the first data frame Byte is then split the first data frame, according still further to format framing, the arrangement again of interchangeable frame, obtains several length≤32 Second data frame of byte ensures length≤32 byte of each second data frame, to ensure data frame transfer process Reliability.
Description of the drawings
Fig. 1 is the flow diagram of the multi-source data transmission method based on Zigbee network in the embodiment of the present invention;
Fig. 2 is the flow diagram of step S1 in Fig. 1.
Specific implementation mode
Invention is further described in detail with reference to the accompanying drawings and embodiments.
The embodiment of the present invention provides a kind of multi-source data Transmission system based on Zigbee network, including transmitting terminal and reception End, transmitting terminal includes acquisition processing module, frame length judgment module, framing module, correction verification module and transmission module, the reception End includes detection module and recovery module, wherein:
Acquisition processing module is used for:The data of sensor are acquired, and are handled according to the format of interchangeable frame:Interchangeable frame packet Data field is included, gathered data is loaded into the data field of interchangeable frame, and to the frame head of the data field of the interchangeable frame after load, frame Tail is replaced processing respectively, is packaged into several first data frames, by all first data frames according to gathered data sequence into Row arrangement;
Wherein, the format of interchangeable frame is:Remainder in serial number+present frame frame in frame head+frame identification+present frame frame+from section Point short address+data field+CRC check+postamble.
Acquisition processing module is replaced frame head, the postamble of the data field of the interchangeable frame after load the process of processing respectively For:When in the frame head of the data field of the interchangeable frame after load, postamble there are when 0xff or 0xfe, by the number of the interchangeable frame after load 0xfe 0x00 are replaced with according to the 0xff in the frame head in domain, postamble, 0xfe is replaced with into 0xfe 0xf1.
Frame length judgment module is used for:According to putting in order for the first data frame, each first data frame is judged successively Length whether 32 bytes of >, if so, the first data frame of 32 bytes of length > is sent to framing module;If it is not, then should First data frame is named as the second data frame, and the second data frame is sent to correction verification module.
Framing module is used for:When receiving the first data frame of 32 bytes of length >, according to the sequence of gathered data, docking The first data frame received is split, and according still further to format framing, the arrangement again of interchangeable frame, obtains several second data frames, often The byte of the length of a second data frame≤32, and the second data frame is sent to correction verification module.
Correction verification module is used for:When receiving the second data frame, according to putting in order for the second data frame, counted successively to second Frame check is carried out according to frame, obtains several third data frames, and all third data frames are sent to transmission module.
Transmission module is used for:When receiving third data frame, according to putting in order for third data frame, by third data frame It is transmitted to the detection module of receiving terminal successively,
Wherein, the process of transmission module transmission third data frame is:Transmission module only sends a third data frame every time: Transmission module includes serial ports, transmission chip and antenna, and third data frame is passed to transmission chip by transmission module by serial ports, hair The detection module for sending chip that the single byte of third data frame is sent to receiving terminal successively by antenna, up to transmission chip will All bytes of third data frame are sent.
Transmission module is additionally operable to the first safety time of setting, if the time > first that transmission module sends third data frame pacifies Full-time, then terminate to send third data frame.
Detection module is used for:Third data frame is received successively, and operation is detected successively to the third data frame received: When detecting the frame head of data field of third data frame, judge whether the postamble for detecting the data field of third data frame, if It is that the third data frame for the postamble for detecting data field is then sent to recovery module;If it is not, then continuing to third data Frame, and it is detected operation.
Detection module is additionally operable to the second safety time of setting, if the time > second that detection module receives third data frame pacifies Full-time, then stop receiving third data frame.In the present embodiment, the second safety time is set as 20 milliseconds.
Recovery module is used for:When receiving the third data frame that detection module is sent, in the data field of third data frame Data by replacing processing carry out restoring operation, and store, until all third data frames that detection module is sent are received, And restore, finally obtain the data of sensor.
Wherein, mistake of the recovery module to the data progress restoring operation by replacing processing in the data field of third data frame Cheng Wei:0xfe 0x00 in data by replacing processing in the data field of third data frame are reduced to 0xff, by 0xfe 0xf1 is reduced to 0xfe.
Further, acquisition processing module includes acquisition submodule, segmentation submodule, load submodule and replaces submodule Block, wherein:
Acquisition submodule is used for:The data for acquiring sensor, segmentation submodule is sent to by gathered data;
Segmentation submodule is used for:Gathered data is divided into several subdatas according to its sequence, and is sent to load Module;
Load submodule is used for:Every subdata is loaded into successively in the data field of corresponding interchangeable frame;
Submodule is replaced to be used for:Processing is replaced respectively to frame head, the postamble of data field, is packaged into several first data Frame arranges all first data frames according to the sequence of gathered 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, packet Include following steps:
S1. the data of transmitting terminal acquisition sensor, and handled according to the format of interchangeable frame:Interchangeable frame includes data Gathered data is loaded into the data field of interchangeable frame by domain, and is distinguished the frame head of the data field of the interchangeable frame after load, postamble It is replaced processing, is packaged into several first data frames, all first data frames are arranged according to the sequence of gathered data.
Wherein, the format of interchangeable frame is:Serial number (1 byte) in frame head (3 byte)+frame identification (1 byte)+present frame frame+ Remainder (1 byte) in present frame frame+from node short address (2 byte)+data field (bytes of n≤18)+CRC check (2 byte)+ Postamble (3 byte), n is positive integer.In order to realize different functions, the format of interchangeable frame can be different.
The process for being replaced processing respectively to frame head, the postamble of the data field of the interchangeable frame after load is:After load The frame head of data field of interchangeable frame, in postamble there are when 0xff (character) or 0xfe (character), after load 0xff in the frame head of the data field of interchangeable frame, postamble replaces with 0xfe 0x00 (two characters), and 0xfe is replaced with 0xfe 0xf1 (two characters).This is because the other parts of data field are also likely to be present 0xff or 0xfe, to the interchangeable frame after load Frame head, the postamble of data field the phenomenon that being replaced processing, frame head, the postamble of misidentification data field can be prevented.
Shown in Figure 2, step S1 includes the following steps:
S101. the data of transmitting terminal acquisition sensor, several subdatas are divided by gathered data;
Subdata is loaded into the data field of corresponding interchangeable frame by S102. transmitting terminal putting in order by subdata successively;
S103. transmitting terminal is replaced processing respectively to frame head, the postamble of data field, is packaged into several first data frames, All first data frames are arranged according to the sequence of gathered data.
S2. data transmission procedure can not then be ensured when 32 bytes of length > of transmission data according to ZigBee module agreement Reliability.Transmitting terminal puts in order according to the first data frame, judge successively each first data frame length whether > 32 Byte, if so, the i.e. maximum length of the length > transmission datas of first data frame, then go to step S3;If it is not, then by this One data frame is named as the second data frame, goes to step S4.
S3. transmitting terminal is split the first data frame according to the sequence of gathered data, according still further to the format weight of interchangeable frame New framing, arrangement, obtain several second data frames, and the byte of the length of each second data frame≤32 goes to step S4.
Wherein, the process for obtaining several second data frames is:Subdata in the data field of first digital frame is divided into Divided data is loaded into the data field of corresponding interchangeable frame, obtains according to putting in order for divided data by several divided datas successively Several second data frames.
S4. transmitting terminal putting in order according to the second data frame carries out frame check, i.e., to second to the second data frame successively Data frame carries out CRC (Cyclic Redundancy Check, cyclic redundancy check code) and verifies, and obtains frame check code, and by its It is put into the CRC check of second data frame, obtains several third data frames, go to step S5.
S5. transmitting terminal putting in order according to third data frame transmits third data frame, goes to step S6 successively.Transmission The process of third data frame is:Transmitting terminal only sends a third data frame every time:Transmitting terminal includes serial ports, transmission chip and day Third data frame is passed to transmission chip by line, transmitting terminal by serial ports, and transmission chip is by antenna successively by third data frame Single byte be sent to receiving terminal, until all bytes of third data frame are sent by transmission chip.
Step S5 is further comprising the steps of:The first safety time is arranged in the transmitting terminal, if transmitting terminal transmits third data The first safety times of time > of frame, then transmitting terminal terminate transmit third data frame.
S6. receiving terminal receives third data frame successively, and operation is detected successively to the third data frame received:When connecing When receiving end detects the frame head of the data field of third data frame, judge whether the postamble for detecting the data field of third data frame, If so, going to step S7;If it is not, then repeating step S6.
Step S6 is further comprising the steps of:The second safety time is arranged in the receiving terminal, if receiving terminal receives third data The second safety times of time > of frame, then receiving terminal stopping receive third data frame, prevent the receive process in third data frame In, system endless loop is caused because there is garbled-reception.
S7. data progress restoring operation of the receiving terminal to being handled by replacement in the data field of third data frame, and according to The reception sequence of third data frame, by all data storage in the data field of the third data frame after reduction to specific storage In space, until receiving terminal receives all third data frames, and by detection operation, restoring operation, final memory space In all data formed a complete sensing data to get the data acquired to transmitting terminal.
To being by the process for replacing the data handled progress restoring operation in the data field of third data frame:By third number It is inversely reduced to 0xff according to the 0xfe 0x00 in the data by replacing processing in the data field of frame, inversely also by 0xfe 0xf1 Originally it was 0xfe.
Below in conjunction with 3 specific embodiments, invention is further described in detail.
Embodiment 1
Embodiment 1 provides a kind of multi-source data transmission method based on Zigbee network, includes the following steps:
S1. the data of transmitting terminal acquisition sensor, and handled according to the format of interchangeable frame:Interchangeable frame includes data Gathered data is loaded into the data field of interchangeable frame by domain, and is distinguished the frame head of the data field of the interchangeable frame after load, postamble It is replaced processing, is packaged into several first data frames, all first data frames are arranged according to the sequence of gathered data.
The format of interchangeable frame is:Serial number (1 byte)+present frame in frame head (3 byte)+frame identification (1 byte)+present frame frame Remainder (1 byte) in frame+from node short address (2 byte)+data field (bytes of n≤18)+CRC check (2 byte)+postamble (3 Byte), n is positive integer.
The first obtained data frame is as follows:
First data frame 1 (23 byte of data length)
First data frame 2 (17 byte of data length)
First data frame 3 (21 byte of data length)
First data frame 4 (31 byte of data length)
First data frame 5 (30 byte of data length)
First data frame 6 (30 byte of data length)
First data frame 7 (14 byte of data length)
S2. transmitting terminal putting in order according to the first data frame, judge successively each first data frame length whether > 32 bytes, if so, going to step S3;If it is not, first data frame is then named as the second data frame, step S4 is gone to;
S3. transmitting terminal is split the first data frame according to the sequence of gathered data, according still further to the format weight of interchangeable frame New framing, arrangement, obtain several second data frames, and the byte of the length of each second data frame≤32 goes to step S4;
S4. transmitting terminal putting in order according to the second data frame carries out frame check to the second data frame successively, obtains several Third data frame goes to step S5;
S5. transmitting terminal putting in order according to third data frame transmits third data frame, goes to step S6 successively;
S6. receiving terminal receives third data frame successively, and operation is detected successively to the third data frame received:When connecing When receiving end detects the frame head of the data field of third data frame, judge whether the postamble for detecting the data field of third data frame, If so, going to step S7;If it is not, then repeating step S6;
S7. receiving terminal by replacing the data of processing in the data field of third data frame to carrying out restoring operation, and stores, Until receiving terminal receives all third data frames, and by detection operation, restoring operation, finally obtain transmitting terminal acquisition Data.
Embodiment 2
Embodiment 2 provides a kind of multi-source data transmission method based on Zigbee network, in addition to general in step S1, S3 The format of frame is different from embodiment 1, remaining step all same.
In order to realize that inspection function, the format of the interchangeable frame in embodiment 2 be:Frame head (3 byte)+frame identification (1 byte)+ Remainder (1 byte) in serial number (1 byte)+present frame frame in present frame frame+from node short address (2 byte)+data field (n≤ 18 bytes)+CRC check (2 byte)+postamble (3 byte), n is positive integer, the data field packet of the first data frame of first obtained Including Transaction Mode (trafficwise), Transaction Mode are for selecting function to be achieved, in the present embodiment, Transaction Mode selection inspection functions.
First data frame of gained is as follows:
First data frame 1 (19 byte of data length)
First data frame 2 (31 byte of data length)
First data frame 3 (30 byte of data length)
First data frame 4 (30 byte of data length)
First data frame 5 (14 byte of data length)
First data frame 6 (data length 11+n bytes)
First data frame 7 (20 byte of data length)
Embodiment 3
Embodiment 3 provides a kind of multi-source data transmission method based on Zigbee network, in addition to general in step S1, S3 The format of frame is different from embodiment 1, remaining step all same.
In order to realize that communication function, the format of the interchangeable frame in embodiment 3 be:Frame head (3 byte)+data field length (1 word Section)+data field (n bytes)+CRC check (2 byte)+postamble (3 byte), n is positive integer.
First data frame of gained is as follows:
Data length Field Remarks
3 Frame head 5A5A5A
1 Data field length The data length N of transmission
N Data field The data of transmission
2 CRC check CRC check is carried out to data field
3 Postamble A5A5A5
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as the protection of the present invention Within the scope of.The content not being described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (9)

1. a kind of multi-source data Transmission system based on Zigbee network, including transmitting terminal and receiving terminal, it is characterised in that:It is described Transmitting terminal includes acquisition processing module, frame length judgment module, framing module, correction verification module and transmission module, the receiving terminal Including detection module and recovery module, wherein:
The acquisition processing module is used for:The data of sensor are acquired, and are handled according to the format of interchangeable frame:Interchangeable frame packet Data field is included, gathered data is loaded into the data field of interchangeable frame, and to the frame head of the data field of the interchangeable frame after load, frame Tail is replaced processing respectively, is packaged into several first data frames, by all first data frames according to gathered data sequence into Row arrangement;
The frame length judgment module is used for:According to putting in order for the first data frame, each first data frame is judged successively Length whether 32 bytes of >, if so, the first data frame of 32 bytes of length > is sent to framing module;If it is not, then should First data frame is named as the second data frame, and the second data frame is sent to correction verification module;
The framing module is used for:When receiving the first data frame of 32 bytes of length >, according to the sequence of gathered data, docking The first data frame received is split, and according still further to format framing, the arrangement again of interchangeable frame, obtains several second data frames, often The byte of the length of a second data frame≤32, and the second data frame is sent to correction verification module;
The correction verification module is used for:When receiving the second data frame, according to putting in order for the second data frame, counted successively to second Frame check is carried out according to frame, obtains several third data frames, and all third data frames are sent to transmission module;
The transmission module is used for:When receiving third data frame, according to putting in order for third data frame, by third data frame It is transmitted to the detection module of receiving terminal successively;
The detection module is used for:Third data frame is received successively, and operation is detected successively to the third data frame received: When detecting the frame head of data field of third data frame, judge whether the postamble for detecting the data field of third data frame, if It is that the third data frame for the postamble for detecting data field is then sent to recovery module;If it is not, then continuing to third data Frame, and it is detected operation;
The recovery module is used for:When receiving the third data frame that detection module is sent, in the data field of third data frame Data by replacing processing carry out restoring operation, and store, until all third data frames that detection module is sent are received, And restore, finally obtain the data of sensor;The format of the interchangeable frame is:Serial number in frame head+frame identification+present frame frame+when Remainder in previous frame frame+from node short address+data field+CRC check+postamble.
2. the multi-source data Transmission system based on Zigbee network as described in claim 1, it is characterised in that:At the acquisition Module is managed to include acquisition submodule, segmentation submodule, load submodule and replace submodule, wherein:
The acquisition submodule is used for:The data for acquiring sensor, segmentation submodule is sent to by gathered data;
The segmentation submodule is used for:Gathered data is divided into several subdatas according to its sequence, and is sent to load Module;
The load submodule is used for:Every subdata is loaded into successively in the data field of corresponding interchangeable frame;
The replacement submodule is used for:Processing is replaced respectively to frame head, the postamble of data field, is packaged into several first data Frame arranges all first data frames according to the sequence of gathered data.
3. the multi-source data Transmission system based on Zigbee network as claimed in claim 2, it is characterised in that:The framing mould The process that block obtains several second data frames is:Subdata in the data field of first data frame is divided into several scores According to every divided data being loaded into respectively in the data field of corresponding interchangeable frame, and arranged according to the sequence of subdata, is obtained Several second data frames.
4. the multi-source data Transmission system based on Zigbee network as described in claim 1, it is characterised in that:At the acquisition Reason module is replaced frame head, the postamble of the data field of the interchangeable frame after load the process of processing and is respectively:After load There are when 0xff or 0xfe in the frame head of the data field of interchangeable frame, postamble, by the frame head of the data field of the interchangeable frame after load, frame 0xff in tail replaces with 0xfe 0x00, and 0xfe is replaced with 0xfe 0xf1.
5. the multi-source data Transmission system based on Zigbee network as claimed in claim 4, it is characterised in that:The reduction mould Block to being by the process for replacing the data handled progress restoring operation in the data field of third data frame:By third data frame The 0xfe 0x00 in data in data field by replacing processing are reduced to 0xff, and 0xfe 0xf1 are reduced to 0xfe.
6. the multi-source data Transmission system based on Zigbee network as described in claim 1, which is characterized in that the transmission mould Block transmission third data frame process be:Transmission module only sends a third data frame every time:Transmission module includes serial ports, hair Send chip and antenna, third data frame is passed to transmission chip by transmission module by serial ports, transmission chip by antenna successively The single byte of third data frame is sent to the detection module of receiving terminal, until transmission chip is by all words of third data frame Section is sent.
7. the multi-source data Transmission system based on Zigbee network as described in claim 1, it is characterised in that:The transmission mould Block is additionally operable to the first safety time of setting to be terminated if transmission module sends the first safety times of time > of third data frame Send third data frame.
8. the multi-source data Transmission system based on Zigbee network as described in claim 1, it is characterised in that:The detection mould Block is additionally operable to the second safety time of setting to be stopped if detection module receives the second safety times of time > of third data frame Receive third data frame.
9. the multi-source data Transmission system based on Zigbee network as claimed in claim 8, it is characterised in that:Second peace Full-time is 20 milliseconds.
CN201510474229.3A 2015-08-05 2015-08-05 Multi-source data Transmission system based on Zigbee network Expired - Fee Related CN105162734B (en)

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 CN105162734A (en) 2015-12-16
CN105162734B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
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
CN112825513B (en) * 2019-11-21 2023-08-22 深圳市中兴微电子技术有限公司 Method, device, equipment and storage medium for transmitting multipath data
CN112887277B (en) * 2021-01-12 2022-07-08 昆高新芯微电子(江苏)有限公司 Conversion method and device of field bus and Ethernet and computer storage medium
CN114389895B (en) * 2022-02-15 2024-01-23 北京国基科技股份有限公司 Ethernet frame safe transmission method, device and system
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

Citations (7)

* Cited by examiner, † Cited by third party
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
CN104639532A (en) * 2014-12-25 2015-05-20 国家电网公司 Collection system applied to electricity consumption information and data transmission method collection system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015024062A1 (en) * 2013-08-23 2015-02-26 University Of South Australia Enhanced automatic identification system

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
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)

* Cited by examiner, † Cited by third party
Title
基于虚拟仪器的无线传感器网络监控平台;李永战等;《仪表技术与传感器》;20080715;第32-33页 *

Also Published As

Publication number Publication date
CN105162734A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105162734B (en) Multi-source data Transmission system based on Zigbee network
CN105187332B (en) Multi-source data transmission method based on Zigbee network
US8787389B2 (en) Low power media access control protocol
CN105975424B (en) A kind of principal and subordinate's serial communication protocol
CN111327687B (en) Data transmission method and device, electronic equipment and storage medium
CN104794089B (en) The method, apparatus and system to be communicated suitable for the modified UART of single-chip microcomputer
CN204376951U (en) Many equipment information collections system
EP3820110A1 (en) Data sending method, data receiving method, device, and system
KR20190086711A (en) Method for transmitting and receiving network management information, transceiver, transmitter and receiver
CN106851803A (en) A kind of wireless senser awakening method
CN103365810B (en) The method and apparatus that flash memory devices programming time is reduced in C.A.N. buses
CN110213756A (en) A kind of data transmission method, device and its relevant device
CN103002550B (en) A kind of control station point carries out dormant method and website
CN106789387A (en) A kind of chain circuit detecting method and device for SDN
CN207906699U (en) Detecting robot of pipe
CN108011923B (en) Beacon sensor device
CN106452894A (en) Fault connection detection method and apparatus
CN103178924B (en) A kind of data transmission method and terminal
US9455929B2 (en) Device and method for block data transfer over wireless coexistence interface
CN105577694B (en) A kind of method of transmission packet
CN111083646A (en) Method and system for transmitting physical sign data with low power consumption
CN109640303A (en) A kind of wireless communication system realizing packet data and uploading
CN102651703A (en) Family network control method, system and device
CN108135010A (en) A kind of communication data transmission method, the apparatus and system of Internet of Things network interface card
CN104599468B (en) The information gathering control method of more equipment

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