CN107592655A - A kind of data divided stator frame system and method - Google Patents
A kind of data divided stator frame system and method Download PDFInfo
- Publication number
- CN107592655A CN107592655A CN201710868450.6A CN201710868450A CN107592655A CN 107592655 A CN107592655 A CN 107592655A CN 201710868450 A CN201710868450 A CN 201710868450A CN 107592655 A CN107592655 A CN 107592655A
- Authority
- CN
- China
- Prior art keywords
- bag
- packet
- data
- starting
- code
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000005540 biological transmission Effects 0.000 abstract description 15
- 238000010586 diagram Methods 0.000 description 3
- 101000911390 Homo sapiens Coagulation factor VIII Proteins 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 102000057593 human F8 Human genes 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 229940047431 recombinate Drugs 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of data divided stator frame method, comprises the following steps:Obtain data to be transmitted and data to be transmitted is packaged into order bag;One starting bag of generation, multiple packets, an end packet and bag identification code when the data volume of order bag is more than preset data amount;Starting bag, multiple packets and end packet are filled successively;Starting bag, multiple packets and end packet by filling is sent to receiving terminal successively;Starting bag, multiple packets and end packet by filling is parsed and recombinated to regenerate order bag.Data divided stator frame method provided by the invention can realize the big data transmission based on ZigBee-network.The present invention also provides a kind of data divided stator frame system.
Description
【Technical field】
The present invention relates to ZigBee transmission technique fields, more particularly to a kind of data divided stator frame system and method.
【Background technology】
ZigBee is the low-power consumption LAN protocol based on IEEE802.15.4 standards, have closely, low complex degree, from
The characteristics of tissue, low-power consumption, low transmission rate and low cost.The basic composition structure of its data message is relatively simple, physics
The byte of layer data maximum transmitted 127, wherein, MAC (media access control) layer takes 11 bytes, Internets and at least takes 8
Byte, application layer take 8 bytes, and therefore, the application layer data that a packet most multipotency carries is 100 bytes.However,
In actual application, User Defined data may be far longer than 100 bytes, and then cause using ZigBee transmission skills
Art can not meet the needs of user's big data transmission.
In consideration of it, real be necessary to provide a kind of new data divided stator frame system and method to overcome drawbacks described above.
【The content of the invention】
It is an object of the invention to provide a kind of data subpackage biography for the big data transmission that can be realized based on ZigBee-network
Defeated system and method.
To achieve these goals, the present invention provides a kind of data divided stator frame system, including transmitting terminal and receiving terminal;Institute
Stating transmitting terminal includes acquisition module, generation module, filling module and the first sending module;The receiving terminal includes parsing module;
The acquisition module is used to obtain data to be transmitted and the data to be transmitted is packaged into order bag;The generation module is used for
It is described order bag data volume be more than preset data amount when, generation one originate bag, multiple packets, an end packet and
Bag identification code;The filling module is used to successively be filled starting bag, the multiple packet and the end packet;
First sending module is used to send starting bag, multiple packets and the end packet by filling to the reception successively
End;The parsing module be used for it is described by filling starting bag, multiple packets and end packet parsed and recombinate with
Regenerate the order bag.
The present invention also provides a kind of data divided stator frame method, and applied in data divided stator frame system, the data are divided
Packet transmission system includes transmitting terminal and receiving terminal;The data divided stator frame method comprises the following steps:
Obtain data to be transmitted and the data to be transmitted is packaged into order bag;
When the data volume of the order bag is more than preset data amount, a starting bag, multiple packets, a knot are generated
Beam bag and bag identification code;
Starting bag, the multiple packet and the end packet are filled successively;
Starting bag, multiple packets and end packet by filling is sent to the receiving terminal successively;
Starting bag, multiple packets and the end packet by filling is parsed and recombinated be described to regenerate
Order bag.
Data divided stator frame system and method provided by the present invention, applied in ZigBee data transfers, when to be transmitted
When the data volume of data is more than preset data amount, data to be transmitted is split to multiple packets and transmitted by transmitting terminal, receiving terminal pair
The data received carry out parsing restructuring to obtain order bag, and then realize ZigBee big data transmission, better meet
The demand of user.
【Brief description of the drawings】
Fig. 1 is the functional block diagram of the data divided stator frame system provided in the embodiment of the present invention.
Fig. 2 is the flow chart of the data divided stator frame method provided in the embodiment of the present invention.
【Embodiment】
In order that the purpose of the present invention, technical scheme and advantageous effects become apparent from understanding, below in conjunction with accompanying drawing and
Embodiment, the present invention will be described in further detail.It should be appreciated that the specific implementation described in this specification
Mode is not intended to limit the present invention just for the sake of explaining the present invention.
Referring to Fig. 1, it is the functional block diagram of data divided stator frame system 100 in the embodiment of the present invention.The data
Divided stator frame system 100 includes transmitting terminal 10 and receiving terminal 20.Wherein, the transmitting terminal 10 includes acquisition module 11, generation mould
Block 12, filling module 13, the first sending module 14 and judge module 15.The receiving terminal 20 includes parsing module 21, feedback mould
The sending module 23 of block 22 and second.It is to be appreciated that above-mentioned each functional module can be stored in storage in form of software programs
In device, and by computing device.Or with specific function hardware, for example, burning have particular software application chip or
Person has the circuit of specific function.
Above-mentioned each functional module is described in detail with reference to Fig. 2.
As shown in Fig. 2 it is the flow chart of data divided stator frame method in the embodiment of the present invention.It should be noted that this
The method of invention is not limited to the order of following step, and in other embodiment, method of the invention can only include following
A portion of the step, or part steps therein can be deleted.
Step S01, the acquisition module 11 are used to obtain data to be transmitted and the data to be transmitted is packaged into order
Bag.
Specifically, the acquisition module 11 is used to handle the data waiting for transmission to form order bag, wherein,
The structure attribute of the order bag meets the host-host protocol of ZigBee technology.
Step S02, the generation module 12 are used for when the data volume of the order bag is more than preset data amount, generation one
Individual starting bag, multiple packets, an end packet and bag identification code.
Knowable to the basic composition structure of the data message transmitted according to ZigBee technology, what a packet most multipotency carried
Application layer data is 100 bytes, and therefore, the preset data amount in the present embodiment is 100 bytes.Specifically, packet
Depending on quantity can be according to the data length for being actually subjected to send.It is appreciated that there is packet in the multiple packet
Data volume is less than the preset data amount, or the data volume of multiple packets is preset data amount.It is actually subjected to send out for example, working as
When the data volume sent is 300 bytes, then three packets can be generated, and each packet takes 100 bytes;When
When the data volume for being actually subjected to send is 270 bytes, then three packets can be generated, one of packet accounts for 70
Byte, other two packets account for 100 bytes.
Further, bag identification code is also generated with to institute while generation starting bag, multiple packets and end packet
Starting bag, multiple packets and end packet is stated to be marked.It is appreciated that the packet identifier wraps for the starting, is described
The unique mark of multiple packets and the end packet, it represents the starting bag, multiple splitted out in ZigBee-network
The data source of packet and end packet.In the present embodiment, the bag identification code is (real-time according to the RTC of current system
Clock, Real-Time Clock) generation at random, because the RTC of system is in real time in change, therefore, the bag identification code bag
Contain time factor, and then ensure that the unique combinations for originating bag, multiple packets and end packet of same time generation,
The situation for avoiding composition error occurs, and improves the degree of accuracy of data transfer.
Step S03, the filling module 13 are used for successively to starting bag, the multiple packet and the end packet
It is filled.
The structure of the starting bag is as shown in table 1.
Table 1
As shown in Table 1, the content that the starting bag needs to fill includes starting bag mark, bag identification code, starting bag and compiled
Number, packet bag number, data packet length and starting bag check code.In the present embodiment, the starting bag check code passes through
To the starting bag mark of the transmission data Layer of the starting bag, packet identifier, starting bag packet number, packet bag number and packet
Length carries out checking treatment and generated.It is appreciated that for the ease of the combination of packet, the packet number for originating bag is defaulted as 0.This
The check code being previously mentioned in embodiment is CRC (Cyclic Redundancy Check, CRC).
The structure of each packet is as shown in table 2.
Table 2
As shown in Table 2, the content that each packet needs to fill includes package identification, bag identification code, packet bag and compiled
Number, packet bag number, data to be transmitted and packet check code.In the present embodiment, the packet check code passes through
Checking treatment is carried out to the package identification, bag identification code, packet packet number, packet bag number, data to be transmitted and given birth to
Into.It is appreciated that the packet packet number starts setting up and successively plus 1 from 1.The packet packet number is used as described to be passed
Transmission of data is split and the bag sequence number of restructuring index, for preventing that it is out of order that the data to be transmitted restructuring from occurring.
The structure of the end packet is as shown in table 3.
Table 3
As shown in Table 3, the content that the end packet needs to fill includes end packet mark, bag identification code and integrity checking
Code.Wherein, the integrity checking code to the starting bag and each packet by carrying out checking treatment to generate.
Step S04, first sending module 14 be used for will by filling starting bag, multiple packets and end packet according to
It is secondary to send to the receiving terminal 20.
Step S05, the parsing module 21 are used to enter starting bag, multiple packets and the end packet by filling
Row is parsed and recombinated to regenerate the order bag.
It is appreciated that the parsing module 21 is respectively to starting bag, the multiple packet and the end packet
Parsed and recombinated according to bag identification code and packet number to regenerate the order bag.If it is appreciated that passing
There is no mistake during defeated, the order bag regenerated should be identical with initial command bag, if it is different, then showing in transmitting procedure
There is mistake.
Step S06, the feedback module 22 are used to carry out checking treatment to the order bag regenerated to generate instead
Present code.
Step S07, second sending module 23 are used to send the feedback code to the transmitting terminal 10.
Step S08, the judge module 15 are used to judge whether the feedback code is correct;If the feedback code is correct,
Perform step S01;If the feedback code is incorrect, step S04 is performed.
Specifically, if the feedback code is consistent with the integrity checking code, show that feedback code is correct, and then show to transmit number
Do not occur mistake during, therefore, other data to be sent can be sent;If the feedback code and the integrity checking code
It is inconsistent, then show that feedback code is incorrect, and then show occur mistake in data transmission procedure, therefore, it is necessary to the starting
Bag, the multiple packet and the end packet are sent after being refilled, untill feedback code is correct.
Data divided stator frame system 100 and method provided by the invention, applied in ZigBee data transfers, when to be transmitted
When the data volume of data is more than preset data amount, data to be transmitted is split to multiple packets and transmitted by transmitting terminal 10, receiving terminal
20 pairs of data received carry out restructuring generation data to be transmitted, and the data to be transmitted after restructuring is tested, to ensure
Data it is accurate, complete, and then realize ZigBee big data transmission, better met the demand of user.
Further, in other embodiments, the feedback module 22 is additionally operable to verify the starting bag after parsing
To generate starting bag identifying code, second sending module 23 is additionally operable to send the starting bag identifying code to the hair for processing
Sending end 10.The judge module 15 is additionally operable to judge whether the starting bag identifying code and the starting bag check code are identical, if
It is identical, then followed by the multiple packet is sent, if it is different, then directly performing step S04.Similarly, multiple data are being sent
Similarly handled during bag, if packet authentication code is identical with packet check code, continue to send, if it is different, then performing step
S04, that is, in transmission process successively, each bag is fed back, followed by transmission if feedback is correct, if feedback is wrong
By mistake, then resend, and then saved the time of data transfer, fed back one by one in transmitting procedure, also further improved
The precision of data transfer.
The present invention is not restricted to described in specification and embodiment, therefore for the personnel of familiar field
Additional advantage and modification is easily achieved, therefore in the essence of the universal limited without departing substantially from claim and equivalency range
In the case of refreshing and scope, the present invention is not limited to specific details, representational equipment and shown here as the diagram with description
Example.
Claims (10)
1. a kind of data divided stator frame system, including transmitting terminal and receiving terminal;It is characterized in that:The transmitting terminal includes obtaining mould
Block, generation module, filling module and the first sending module;The receiving terminal includes parsing module;The acquisition module is used to obtain
Take data to be transmitted and the data to be transmitted is packaged into order bag;The generation module is used for the data in the order bag
When amount is more than preset data amount, a starting bag, multiple packets, an end packet and bag identification code are generated;The filling
Module is used to successively be filled starting bag, the multiple packet and the end packet;First sending module
For starting bag, multiple packets and the end packet by filling to be sent to the receiving terminal successively;The parsing module is used
Parsed and recombinated to regenerate the order by starting bag, multiple packets and the end packet filled in described
Bag.
2. data divided stator frame system as claimed in claim 1, it is characterised in that:The receiving terminal also include feedback module and
Second sending module;The transmitting terminal also includes judge module;The feedback module is used for the order bag regenerated
Checking treatment is carried out to generate feedback code;Second sending module is used to send the feedback code to the transmitting terminal;Institute
Judge module is stated to be used to judge whether the feedback code is correct;If the feedback code is incorrect, the first sending module weight
Newly starting bag, multiple packets and the end packet by filling are sent to the receiving terminal successively.
3. data divided stator frame system as claimed in claim 1, it is characterised in that:The bag identification code is according to current system
RTC is generated at random, so that starting bag, the multiple packet and the end packet to be marked.
4. data divided stator frame system as claimed in claim 1, it is characterised in that:The starting bag needs the content bag filled
Include starting bag mark, the bag identification code, starting bag packet number, packet bag number and data packet length;Each data
Bag needs the content filled to include package identification, the bag identification code, packet packet number, packet bag number and to be transmitted
Data;The content that the end packet needs to fill includes end packet mark, the bag identification code and integrity checking code.
5. data divided stator frame system as claimed in claim 4, it is characterised in that:If the feedback code and the integrity checking code
It is inconsistent, then judge that the feedback code is incorrect.
6. a kind of data divided stator frame method, applied in data divided stator frame system, the data divided stator frame system includes
Transmitting terminal and receiving terminal;It is characterized in that:The data divided stator frame method comprises the following steps:
Obtain data to be transmitted and the data to be transmitted is packaged into order bag;
When the data volume of the order bag is more than preset data amount, starting bag, multiple packets, an end packet are generated
And bag identification code;
Starting bag, the multiple packet and the end packet are filled successively;
Starting bag, multiple packets and end packet by filling is sent to the receiving terminal successively;
Starting bag, multiple packets and the end packet by filling is parsed and recombinated to regenerate the order
Bag.
7. data divided stator frame method as claimed in claim 6, it is characterised in that:The data divided stator frame method also includes
Following steps:
Checking treatment is carried out to generate feedback code to the order bag regenerated;
The feedback code is sent to the transmitting terminal;
Judge whether the feedback code is correct;
If the feedback code is incorrect, again by by filling starting bag, multiple packets and end packet send successively to
The receiving terminal.
8. data divided stator frame method as claimed in claim 6, it is characterised in that:The bag identification code is according to current system
RTC is generated at random, so that starting bag, the multiple packet and the end packet to be marked.
9. data divided stator frame method as claimed in claim 6, it is characterised in that:Described " successively to the starting bag, institute
State multiple packets and the end packet be filled " step in, the starting bag needs the content filled to include starting to wrap
Mark, the bag identification code, starting bag packet number, packet bag number and data packet length;Each packet needs to fill out
The content filled includes package identification, the bag identification code, packet packet number, packet bag number and data to be transmitted;Institute
The content that stating end packet needs to fill includes end packet mark, the bag identification code and integrity checking code.
10. data divided stator frame method as claimed in claim 9, it is characterised in that:If the feedback code and the integrity checking
Code is inconsistent, then judges that the feedback code is incorrect.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710868450.6A CN107592655A (en) | 2017-09-22 | 2017-09-22 | A kind of data divided stator frame system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710868450.6A CN107592655A (en) | 2017-09-22 | 2017-09-22 | A kind of data divided stator frame system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107592655A true CN107592655A (en) | 2018-01-16 |
Family
ID=61047787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710868450.6A Pending CN107592655A (en) | 2017-09-22 | 2017-09-22 | A kind of data divided stator frame system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107592655A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213020A (en) * | 2019-05-31 | 2019-09-06 | 杭州涂鸦信息技术有限公司 | Data transmission method, terminal, system and device based on bluetooth peripheral hardware |
CN110868420A (en) * | 2019-11-19 | 2020-03-06 | 成都亿佰特电子科技有限公司 | Single-packet transparent transmission data transmission method and system for ZigBee transparent transmission module |
CN112769939A (en) * | 2021-01-13 | 2021-05-07 | 北京机电工程总体设计部 | Big data reliable transmission method for real-time communication |
CN112968907A (en) * | 2021-03-25 | 2021-06-15 | 北京鼎事兴教育咨询有限公司 | Data transmission method, data storage method, data query method, medium, and device |
CN114465966A (en) * | 2022-01-23 | 2022-05-10 | 山东云海国创云计算装备产业创新中心有限公司 | Data packet recombination control system and data packet recombination method |
CN117041186A (en) * | 2023-10-07 | 2023-11-10 | 苏州仰思坪半导体有限公司 | Data transmission method, chip system, computing device and storage medium |
-
2017
- 2017-09-22 CN CN201710868450.6A patent/CN107592655A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213020A (en) * | 2019-05-31 | 2019-09-06 | 杭州涂鸦信息技术有限公司 | Data transmission method, terminal, system and device based on bluetooth peripheral hardware |
CN110868420A (en) * | 2019-11-19 | 2020-03-06 | 成都亿佰特电子科技有限公司 | Single-packet transparent transmission data transmission method and system for ZigBee transparent transmission module |
CN112769939A (en) * | 2021-01-13 | 2021-05-07 | 北京机电工程总体设计部 | Big data reliable transmission method for real-time communication |
CN112769939B (en) * | 2021-01-13 | 2023-03-21 | 北京机电工程总体设计部 | Big data reliable transmission method for real-time communication |
CN112968907A (en) * | 2021-03-25 | 2021-06-15 | 北京鼎事兴教育咨询有限公司 | Data transmission method, data storage method, data query method, medium, and device |
CN112968907B (en) * | 2021-03-25 | 2023-04-28 | 北京鼎事兴教育咨询有限公司 | Data transmission method, data storage method, data query method, medium and device |
CN114465966A (en) * | 2022-01-23 | 2022-05-10 | 山东云海国创云计算装备产业创新中心有限公司 | Data packet recombination control system and data packet recombination method |
CN114465966B (en) * | 2022-01-23 | 2024-05-28 | 山东云海国创云计算装备产业创新中心有限公司 | Data packet reorganization control system and data packet reorganization method |
CN117041186A (en) * | 2023-10-07 | 2023-11-10 | 苏州仰思坪半导体有限公司 | Data transmission method, chip system, computing device and storage medium |
CN117041186B (en) * | 2023-10-07 | 2024-01-30 | 苏州仰思坪半导体有限公司 | Data transmission method, chip system, computing device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107592655A (en) | A kind of data divided stator frame system and method | |
CN113411313B (en) | Data transmission method, device and system | |
CN107682052A (en) | A kind of data divided stator frame method and system | |
CN109392187A (en) | Transmit method, access network equipment and the terminal device of random access response | |
CN101645883A (en) | Data transmitting method, a data sending method and a data receiving method | |
CN109905205B (en) | Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system | |
CN104660308A (en) | File transfer method and file transfer system based on Bluetooth low power consumption technology | |
CN105101435B (en) | The method and apparatus of data transmission | |
CN108848025A (en) | Gateway, internet of things equipment and system, register method and information processing method | |
CN106464581A (en) | Data transmission method and system and data receiving device | |
WO2018059250A1 (en) | Feedback information processing method, device and system, and base station and terminal | |
CN117202406A (en) | Method for message processing and associated device and apparatus | |
CN109314597A (en) | Real-time segmentation | |
CN102318282B (en) | Method and apparatus for compressed data packet transmission | |
CN104429013B (en) | Method, user equipment and the base station of transmitting feedback information | |
CN106911428B (en) | Information transmission method and device | |
CN109156002A (en) | Terminal installation, base station apparatus and communication means | |
CN101453479A (en) | Fast document transmission system | |
CN110519008A (en) | Wireless sensor network data transmission method and device, readable storage medium storing program for executing | |
CN111106900B (en) | Method for realizing data mapping transmission and related product | |
CN110012546A (en) | A kind of transmission method, base station and the terminal of protocol Data Unit PDU | |
CN106686410A (en) | HLS streaming media transmission method and apparatus | |
CN109587730A (en) | A kind of information indicating method, user equipment and base station | |
CN109348513A (en) | A kind of data pack transmission method, terminal and computer storage medium | |
EP3995962A1 (en) | Relay node and method for encapsulating a packet based on tunneling protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180116 |
|
WD01 | Invention patent application deemed withdrawn after publication |