CN107346981A - Data transmission method for uplink, method of reseptance and data sending device, reception device - Google Patents
Data transmission method for uplink, method of reseptance and data sending device, reception device Download PDFInfo
- Publication number
- CN107346981A CN107346981A CN201710344810.2A CN201710344810A CN107346981A CN 107346981 A CN107346981 A CN 107346981A CN 201710344810 A CN201710344810 A CN 201710344810A CN 107346981 A CN107346981 A CN 107346981A
- Authority
- CN
- China
- Prior art keywords
- data
- packet
- order
- mark
- length information
- 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 54
- 230000005540 biological transmission Effects 0.000 title claims abstract description 34
- 238000012545 processing Methods 0.000 claims abstract description 19
- 239000002131 composite material Substances 0.000 claims description 7
- 238000005265 energy consumption Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 239000011248 coating agent Substances 0.000 description 2
- 238000000576 coating method Methods 0.000 description 2
- 238000005194 fractionation Methods 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/40—Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
- H04B5/48—Transceivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/34—Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
- H04W28/065—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiments of the invention provide data transmission method for uplink, method of reseptance and data sending device, reception device, sending method includes:Obtain data and determine data length;Data are split as multiple packets arranged in order;The mark of addition first in the first packet of multiple packets arranged in order;The mark of addition second in multiple packets arranged in order;The packet of identified processing is sent successively.Method of reseptance includes:Receive multiple packets arranged in order after identified processing;Determine that total data length is the first length information by the first mark in multiple packets;By the second mark in multiple packets arranged in order, judge whether each packet is last packet successively;When being determined as last packet, multiple data packet groups arranged in order are combined into data;Data length and the first length information after contrast combination, judge whether the data after combination are complete according to comparing result.
Description
Technical field
The present invention relates to network communication technology field, more particularly to a kind of data transmission method for uplink, method of reseptance and data
Dispensing device, reception device.
Background technology
BLE (Bluetooth Low Energy, bluetooth low energy consumption) transmission technology be a kind of low cost, short distance, can be mutual
The wireless technology of operation, it is to possess super low-power consumption the characteristics of BLE technology maximums, therefore mobile device can be greatly reduced in data
Power consumption during transmission.
Existing BLE technologies can carry out data cutting and be divided into some small data packets to enter when transmitting big data to big data
Row transmission.But the transmission time of this data transmission method is long, when environmental disturbances or swinging of signal timing, send
Easily there is packet loss phenomenon in data, cause to be difficult to determine when that data receiver is completed when receiving data, thus can not ensure to connect
Receive the integrality of data.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of data transmission method for uplink, method of reseptance and data sending device, connect
Receiving apparatus, ensure that BLE sends and receives the integrality of data to realize.Concrete technical scheme is as follows:
A kind of data transmission method for uplink, applied to the transmitting terminal carried out data transmission by BLE agreements, including:
Obtain data and determine the length information of the data;
The data are split as multiple packets arranged in order, the multiple data package size arranged in order
It is equal;
The mark of addition first in first packet of the multiple packet arranged in order, first mark
To indicate the length information of the data;
In each packet of the multiple packet arranged in order addition second mark, it is described second mark to
Indicate whether the packet is last packet in the multiple packet arranged in order;
The multiple packet arranged in order after the identified processing is sent successively, so that receiving terminal receives institute
State multiple packets arranged in order.
Preferably, the mark of addition first in first packet of the multiple packet arranged in order,
Specifically include:
The mark of addition first in the packet header of first packet of the multiple packet arranged in order;
The mark of addition second in each packet of the multiple packet arranged in order, is specifically included:
The mark of addition second in the packet header of each packet of the multiple packet arranged in order.
A kind of data receiver method, applied to the receiving terminal carried out data transmission by BLE agreements, including:
Receive multiple packets arranged in order after identified processing;
By the first mark in the multiple packet arranged in order, the multiple number arranged in order is determined
It is the first length information according to the contained total data length of bag;
By the second mark in the multiple packet arranged in order, judge the multiple to arrange in order successively
Packet in each packet whether be last packet;
When being determined as last packet, the multiple data packet group arranged in order is combined into data;
Data length and first length information after contrast combination, judge that the data after combination are according to comparing result
It is no complete.
Preferably, it is described that the multiple data packet group arranged in order is combined into data, specifically include:
The first mark and the second mark in the multiple packet arranged in order are removed, the number after identifying will be removed
Data are combined into according to package.
Preferably, the data length after the contrast combination and first length information, according to comparing result judgement group
Whether the data after conjunction are complete, specifically include:
The length for calculating the data after combination is the second length information;
First length information and the second length information are compared, if first length information and second length
Information is consistent, judges that the data of reception are complete;
If first length information and second length information are inconsistent, judge that the data of reception are imperfect.
A kind of data sending device, the data sending device are carried out data transmission by BLE agreements, including:
Acquisition module, for obtaining data and determining the length information of the data;
Module is split, it is the multiple to arrange in order for the data to be split as into multiple packets arranged in order
The data package size of row is equal;
First add module, the first mark is added in first packet of the multiple packet arranged in order
Know, described first identifies to indicate the length information of the data;
Second add module, for the mark of addition second in each packet of the multiple packet arranged in order
Know, second mark is indicating whether the packet is last in the multiple packet arranged in order
Packet;
Sending module, for sending the multiple packet arranged in order after the identified processing successively, with
Receiving terminal is set to receive the multiple packet arranged in order.
Preferably, first add module, is specifically used for:
The mark of addition first in the packet header of first packet of the multiple packet arranged in order;
Second add module, is specifically used for:
The mark of addition second in the packet header of each packet of the multiple packet arranged in order.
A kind of data sink, the data sink are carried out data transmission by BLE agreements, including:
Receiving module, for receiving multiple packets arranged in order after identified processing;
Determining module, for by the first mark in the multiple packet arranged in order, determining the multiple
The total data length contained by packet arranged in order is the first length information;
Judge module, for being identified by second in the multiple packet arranged in order, successively described in judgement
Whether each packet in multiple packets arranged in order is last packet;
Composite module, for when being determined as last packet, by the multiple data packet group arranged in order
It is combined into data;
Contrast module, for contrasting data length and first length information after combining, judged according to comparing result
Whether the data after combination are complete.
Preferably, the composite module, is specifically used for:
The first mark and the second mark in the multiple packet arranged in order are removed, the number after identifying will be removed
Data are combined into according to package.
Preferably, the contrast module, is specifically used for:
The length for calculating the data after combination is the second length information;
First length information and the second length information are compared, if first length information and second length
Information is consistent, judges that the data of reception are complete;
If first length information and second length information are inconsistent, judge that the data of reception are imperfect.
Data transmission method for uplink, method of reseptance and data sending device provided in an embodiment of the present invention, reception device, by
Added in first packet of multiple packets arranged in order to indicate the first of the length information of data the mark,
And added in each packet of multiple packets arranged in order to indicate whether be the of last packet
Two marks, it is ensured that integrality during data is sent and received by BLE.Certainly, any product or the side of the present invention is implemented
Method must be not necessarily required to reach all the above advantage simultaneously.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of a kind of schematic flow sheet of data transmission method for uplink of the embodiment of the present invention;
Fig. 2 is a kind of another schematic flow sheet of data transmission method for uplink of the embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of data receiver method of the embodiment of the present invention;
Fig. 4 is a kind of structural representation of the data sending device of the embodiment of the present invention;
Fig. 5 is a kind of structural representation of the data sink of the embodiment of the present invention;
Fig. 6 is a kind of structural representation of the data transmitter-receiver set of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Embodiment of the method one
A kind of a kind of specific embodiment of data transmission method for uplink provided in an embodiment of the present invention, applied to by BLE discuss into
The transmitting terminal of row data transfer, such as mobile terminal, intelligent watch, Intelligent bracelet, with reference to figure 1, Fig. 1 is the embodiment of the present invention
A kind of a kind of schematic flow sheet of data transmission method for uplink, including:
S101, obtain data and determine the length information of data.
In a kind of feasible embodiment of the present invention, the data of acquisition can be, but not limited to include:Word, picture, video,
Audio, file, numeral etc..After transmitting terminal obtains data, the length of data can be confirmed, the length information of wherein data refers to data
Data volume size.By taking the pictures got as an example, it is assumed that picture actual amount of data size is 300KB, that is, illustrates the figure
The length information of sheet data is 300KB.
Optionally it is determined that the length information of data, can be confirmed by the attribute information of data in itself, specifically may be used
Think, certain section audio of acquisition, the size shown in its attribute information is 4MB, then, system can directly reads the attribute
Information, and determine that the length information of the audio is 4MB.
Alternatively, the length information of data can also be confirmed by directly calculating the size of data.For example, certain obtained
Section word, calculates the bit number shared by each word, then calculates the total bit number of this section of word, you can determines this section of word
Length information.
S102, data are split as multiple packets arranged in order.
After the length information for determining data, you can data are split as into multiple packets, to facilitate data to pass through BLE agreements
It is transmitted.Provide that packet sends for order, order receives in BLE agreements, but in transmitting procedure, due to swinging of signal
The factors such as fixed, signal interference, in fact it could happen that packet loss phenomenon, cause receiving terminal can not judge when data finish receiving, Yi Jiwu
Method determines the accuracy of data.
S103, the mark of addition first in first packet of multiple packets arranged in order, wherein, the first mark
Know to indicate the length information of data.
In the embodiment of the present invention, the first mark plays a part of indicating the length information of data, alternatively, by the first mark
It is added in first packet of multiple packets arranged in order, the purpose for the arrangement is that in order to receive number when receiving terminal
During according to bag, the data of data to be received total size can be known the very first time.Wherein, the first mark can be specifically:One
The character of individual 2 byte, the length information containing data in the character.It is of course also possible to it is used as using the character of multiple bytes
One mark, still, after being fixed due to the size of each packet, as the shared byte of the first mark increases, identical data
The data packet number of fractionation will increase.It is therefore preferred that the embodiment of the present invention indicates the premise of data length information in guarantee
Under, the shared space of the first mark is reduced as far as possible.In addition, it is generally the case that head-coating structure of first mark added to packet
In.
S104, the mark of addition second in each packet of multiple packets arranged in order, second identifies to mark
Whether bright packet is last packet in multiple packets arranged in order.
In the embodiment of the present invention, the second mark, which plays, indicates whether packet is in multiple packets arranged in order
The effect of last packet, the second mark can be one group of character string with characteristic information.Such as can be specifically:
Mark using 0x02 as last non-packet;Mark using 0x82 as last packet.Above-mentioned example is not
The restriction of pattern is identified to the second of the embodiment of the present invention, as long as can meet to distinguish in the contained characteristic information of the second mark
Whether it is last packet, belongs to the protection domain of the embodiment of the present invention.In addition, it is generally the case that by the second mark
Added in the head-coating structure of each packet of multiple packets arranged in order.
S105, multiple packets arranged in order after identified processing are sent successively, so that receiving terminal reception is multiple
The packet arranged in order.
According to BLE host-host protocols, multiple packets arranged in order after identified processing can be sent in order successively
To receiving terminal.
The inventive method embodiment one, used by being added in first packet of multiple packets arranged in order
To indicate the first of the length information of data the mark, and add and use in each packet of multiple packets arranged in order
With indicate whether be last packet second mark, can ensure by BLE send data when integrality.
Embodiment of the method two
A kind of another specific embodiment of data transmission method for uplink provided in an embodiment of the present invention, is assisted applied to by BLE
The transmitting terminal carried out data transmission, such as mobile terminal, intelligent watch, Intelligent bracelet are discussed, with reference to figure 2, Fig. 2 is implemented for the present invention
A kind of another schematic flow sheet of data transmission method for uplink of example, including:
S201, obtain data and determine the length information of data.
S202, packet is split as multiple packets with identical size arranged in order.
S203, add first in first packet of multiple packets with identical size arranged in order
Mark, wherein, first identifies to indicate the length information of data.
S204, the mark of addition second in each packet of multiple packets with identical size arranged in order
Know, the second mark is indicating whether packet is last packet in multiple packets arranged in order.
S205, send successively after identified processing there are the multiple packets arranged in order of identical, so as to receive
End receives multiple packets arranged in order.
Packet is split as multiple packets with identical size arranged in order, is favorably improved fractionation number
According to the efficiency of bag.According to the limitation of each conveying length of BLE agreements, such as can be specifically:Each packet is split as 150
Byte.
The inventive method embodiment two, by by packet be split as it is multiple arrange in order there is identical size
Packet, because each packet defines identical size, therefore system need not be torn open further according to different data contents
It is divided into different size of packet, is favorably improved the efficiency of splitting datagram,
Embodiment of the method three
A kind of specific embodiment of a kind of data receiver method provided in an embodiment of the present invention, applied to passing through BLE agreements
The receiving terminal carried out data transmission, such as mobile terminal, intelligent watch, Intelligent bracelet, with reference to figure 3, Fig. 3 is the embodiment of the present invention
A kind of data receiver method schematic flow sheet, including:
S301, receive multiple packets arranged in order after identified processing.
According to BLE host-host protocols, receiving terminal receive successively in order by transmitting terminal send identified processing after it is multiple
The packet arranged in order.
S302, by multiple packets arranged in order first mark, determine multiple data arranged in order
The contained total data length of bag is the first length information.
Because the first mark plays a part of indicating the length information of data, therefore, receiving terminal is by reading the number received
According to the first mark in bag, the length information for the whole data that can be indicated with reading first.
Alternatively, receiving terminal reads first and marked by reading the first mark in first packet received
The length information of bright whole data, is designated as the first length information.So, receiving terminal can be to receive first packet
When, just have been able to determine the size of data that will be received.
S303, by the second mark in multiple packets arranged in order, judge multiple to arrange in order successively
Whether each packet in packet is last packet.
Receiving terminal received data packet, and read the second mark in each packet successively.For example, using 0x02 as it is non-most
The mark of the latter packet, using 0x82 as during the mark of last packet, receiving terminal reads some packet
During this information of 0x02 in the second mark, because 0x02 represents the mark of non-last packet, receiving terminal can just be known
Dawn data do not finish receiving also, continue to packet;When receiving terminal is read in the second mark of last packet
During this information of 0x82, because 0x82 represents the mark of last packet, receiving terminal just understand that data are received
Complete.Therefore, receiving terminal just can interpolate that out when data have finished receiving.It is presented as in actual applications, is not in
Although transmission has been interrupted, receiving terminal also shows situation about receiving.
S304, when being determined as last packet, multiple data packet groups arranged in order are combined into data.
After packet receives, all packets received can be reassembled into data for using by receiving terminal.
Alternatively, receiving terminal removes the first mark in first packet, while by second in each packet
Mark removes, and obtains clear data.
Or alternatively, receiving terminal directly ignores the first mark and the second mark, directly extracts interior in each packet
Hold and be reassembled into data.
Data length and the first length information after S305, contrast combination, judge the data after combination according to comparing result
It is whether complete.
Receiving terminal reconfigures the packet of reception for after data, calculates the length of the data after combination, and by with
First length information is contrasted, so as to judge to receive the integrality of data.
The length of data after combination and the first length information are contrasted, are to judge to receive the complete of data
Property.Alternatively, receiving terminal calculates the length of the data after combination, is designated as the second length information.The first length that will be obtained before
Information and the second length information compare, with regard to that can judge whether reception data are complete.If the first length information and the second length
Information is consistent, illustrates that the data of reception are imperfect;If inconsistent, illustrate that the data of reception are imperfect.
The inventive method embodiment three, the first mark in the packet that receiving terminal passes through reception, it is determined that the sum received
According to length information, by the second mark in the packet of reception, judge whether each packet is last packet, can
Ensure that receiving terminal judges when data receiver is completed;By the way that the length of the data after combination and the first length information are carried out pair
Than so as to which whether the data for judging to receive are consistent with the data length of transmission, ensureing to receive the integrality of data.
Device embodiment one
A kind of specific embodiment of data sending device provided in an embodiment of the present invention, ginseng corresponding with flow shown in Fig. 1
Fig. 4 is examined, Fig. 4 is a kind of structural representation of the data sending device of the embodiment of the present invention, including:
Acquisition module 401, for obtaining data and determining the length information of data.
Module 402 is split, for data to be split as into multiple packets arranged in order.
First add module 403, the first mark is added in first packet of multiple packets arranged in order,
First identifies to indicate the length information of data.
Second add module 404, for adding the second mark in each packet of multiple packets arranged in order,
Second mark is indicating whether packet is last packet in multiple packets arranged in order.
Sending module 405, for sending multiple packets arranged in order after identified processing successively, so as to receive
End receives multiple packets arranged in order.
Wherein, module 402 is split, is further used for:By data be split as it is multiple arrange in order have identical it is big
Small packet.
First add module 403, is specifically used for:In the packet header of first packet of multiple packets arranged in order
The middle mark of addition first.
Second add module 404, is specifically used for:Add in the packet header of each packet of multiple packets arranged in order
Add the second mark.
The data sending device that apparatus of the present invention embodiment one provides is used to realize what the inventive method embodiment one provided
The transmission of data transmission method for uplink, its implementing principle and technical effect is similar, and here is omitted.
Device embodiment two
A kind of specific embodiment of data sink provided in an embodiment of the present invention, ginseng corresponding with flow shown in Fig. 3
Fig. 5 is examined, Fig. 5 is the structural representation of the data sink of the embodiment of the present invention, including:
Receiving module 501, for receiving multiple packets arranged in order after identified processing;
Determining module 502, for by multiple packets arranged in order first mark, determine it is multiple in order
Total data length contained by the packet of arrangement is the first length information;
Judge module 503, for by the second mark in multiple packets arranged in order, judging multiple press successively
Whether each packet in tactic packet is last packet;
Composite module 504, for when being determined as last packet, multiple packets arranged in order to be combined
For data;
Contrast module 505, for contrasting data length and the first length information after combining, according to comparing result judgement group
Whether the data after conjunction are complete.
Wherein, composite module 504, it is specifically used for:Remove the first mark and the in multiple packets arranged in order
Two marks, the data packet group removed after identifying is combined into data.
Contrast module 505, is specifically used for:
The length for calculating the data after combination is the second length information;
The first length information and the second length information are compared, if the first length information and the second length information are consistent, is sentenced
Surely the data received are complete;
If the first length information and the second length information are inconsistent, judge that the data of reception are imperfect.
The data sink that apparatus of the present invention embodiment two provides is used to realize what the inventive method embodiment two provided
The reception of data receiver method, its implementing principle and technical effect is similar, and here is omitted.
Device embodiment three
A kind of specific embodiment of data transmitter-receiver set provided in an embodiment of the present invention, it is real for the present invention with reference to figure 6, Fig. 6
The structural representation of the data transmitter-receiver set of example is applied, including transmitting terminal and receiving terminal, data transmitter-receiver set specifically include:
Acquisition module 401, for obtaining data and determining the length information of data.
Module 402 is split, for data to be split as into multiple packets arranged in order.
First add module 403, the first mark is added in first packet of multiple packets arranged in order,
First identifies to indicate the length information of data.
Second add module 404, for adding the second mark in each packet of multiple packets arranged in order,
Second mark is indicating whether packet is last packet in multiple packets arranged in order.
Sending module 405, for sending multiple packets arranged in order after identified processing successively, so as to receive
End receives multiple packets arranged in order.
Receiving module 501, for receiving multiple packets arranged in order after identified processing;
Determining module 502, for by multiple packets arranged in order first mark, determine it is multiple in order
Total data length contained by the packet of arrangement is the first length information;
Judge module 503, for by the second mark in multiple packets arranged in order, judging multiple press successively
Whether each packet in tactic packet is last packet;
Composite module 504, for when being determined as last packet, multiple packets arranged in order to be combined
For data;
Contrast module 505, for contrasting data length and the first length information after combining, according to comparing result judgement group
Whether the data after conjunction are complete.
The data transmitter-receiver set that apparatus of the present invention embodiment three provides, for transmitting data by BLE agreements, it is ensured that
Integrality during data is sent and received by BLE.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of data transmission method for uplink, it is characterised in that applied to the hair carried out data transmission by BLE bluetooth low energy consumption agreements
Sending end, methods described include:
Obtain data and determine the length information of the data;
The data are split as multiple packets arranged in order, the multiple data package size phase arranged in order
Deng;
In first packet of the multiple packet arranged in order addition first mark, it is described first mark to
Indicate the length information of the data;
The mark of addition second in each packet of the multiple packet arranged in order, described second identifies to indicate
Whether the packet is last packet in the multiple packet arranged in order;
The multiple packet arranged in order after the identified processing is sent successively, so that receiving terminal reception is described more
The individual packet arranged in order.
2. data transmission method for uplink according to claim 1, it is characterised in that described in the multiple number arranged in order
According to the mark of addition first in first packet of bag, specifically include:
The mark of addition first in the packet header of first packet of the multiple packet arranged in order;
The mark of addition second in each packet of the multiple packet arranged in order, is specifically included:
The mark of addition second in the packet header of each packet of the multiple packet arranged in order.
A kind of 3. data receiver method, it is characterised in that connect applied to what is carried out data transmission by BLE bluetooth low energy consumption agreements
Receiving end, methods described include:
Receive multiple packets arranged in order after identified processing;
By the first mark in the multiple packet arranged in order, the multiple packet arranged in order is determined
Contained total data length is the first length information;
By the second mark in the multiple packet arranged in order, the multiple number arranged in order is judged successively
Whether it is last packet according to each packet in bag;
When being determined as last packet, the multiple data packet group arranged in order is combined into data;
Data length and first length information after contrast combination, judge whether the data after combination are complete according to comparing result
It is whole.
4. data receiver method according to claim 3, it is characterised in that described by the multiple number arranged in order
Data are combined into according to package, are specifically included:
The first mark and the second mark in the multiple packet arranged in order are removed, the packet after identifying will be removed
It is combined as data.
5. the data receiver method according to claim 3 or 4, it is characterised in that the data length after the contrast combination
With first length information, judge whether the data after combination are complete, specifically include according to comparing result:
The length for calculating the data after combination is the second length information;
First length information and the second length information are compared, if first length information and second length information
Unanimously, judge that the data of reception are complete;
If first length information and second length information are inconsistent, judge that the data of reception are imperfect.
6. a kind of data sending device, it is characterised in that the data sending device enters line number by BLE bluetooth low energy consumption agreements
According to transmission, including:
Acquisition module, for obtaining data and determining the length information of the data;
Module is split, it is the multiple to arrange in order for the data to be split as into multiple packets arranged in order
Data package size is equal;
First add module, the first mark, institute are added in first packet of the multiple packet arranged in order
The first mark is stated to indicate the length information of the data;
Second add module, for the mark of addition second, institute in each packet of the multiple packet arranged in order
The second mark is stated to indicate whether the packet is last data in the multiple packet arranged in order
Bag;
Sending module, for sending the multiple packet arranged in order after the identified processing successively, so as to connect
Receiving end receives the multiple packet arranged in order.
7. data sending device according to claim 6, it is characterised in that first add module, be specifically used for:
The mark of addition first in the packet header of first packet of the multiple packet arranged in order;
Second add module, is specifically used for:
The mark of addition second in the packet header of each packet of the multiple packet arranged in order.
8. a kind of data sink, it is characterised in that the data sink enters line number by BLE bluetooth low energy consumption agreements
According to transmission, including:
Receiving module, for receiving multiple packets arranged in order after identified processing;
Determining module, for by the first mark in the multiple packet arranged in order, determining the multiple by suitable
Total data length contained by the packet of sequence arrangement is the first length information;
Judge module, for by the second mark in the multiple packet arranged in order, judging successively the multiple
Whether each packet in the packet arranged in order is last packet;
Composite module, for when being determined as last packet, the multiple data packet group arranged in order to be combined into
Data;
Contrast module, for contrasting data length and first length information after combining, judge to combine according to comparing result
Whether data afterwards are complete.
9. data sink according to claim 8, it is characterised in that the composite module, be specifically used for:
The first mark and the second mark in the multiple packet arranged in order are removed, the packet after identifying will be removed
It is combined as data.
10. data sink according to claim 8 or claim 9, it is characterised in that the contrast module, be specifically used for:
The length for calculating the data after combination is the second length information;
First length information and the second length information are compared, if first length information and second length information
Unanimously, judge that the data of reception are complete;
If first length information and second length information are inconsistent, judge that the data of reception are imperfect.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710344810.2A CN107346981A (en) | 2017-05-16 | 2017-05-16 | Data transmission method for uplink, method of reseptance and data sending device, reception device |
PCT/CN2018/086868 WO2018210231A1 (en) | 2017-05-16 | 2018-05-15 | Data transmitting method and receiving method, and data transmitting device and receiving device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710344810.2A CN107346981A (en) | 2017-05-16 | 2017-05-16 | Data transmission method for uplink, method of reseptance and data sending device, reception device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107346981A true CN107346981A (en) | 2017-11-14 |
Family
ID=60253599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710344810.2A Pending CN107346981A (en) | 2017-05-16 | 2017-05-16 | Data transmission method for uplink, method of reseptance and data sending device, reception device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107346981A (en) |
WO (1) | WO2018210231A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234595A (en) * | 2017-11-29 | 2018-06-29 | 山东鲁能软件技术有限公司 | Log transmission method and system |
WO2018210231A1 (en) * | 2017-05-16 | 2018-11-22 | 青岛海尔股份有限公司 | Data transmitting method and receiving method, and data transmitting device and receiving device |
CN108966187A (en) * | 2018-06-06 | 2018-12-07 | 四川斐讯全智信息技术有限公司 | A kind of data transmission method and system based on BLE |
CN109041036A (en) * | 2018-10-29 | 2018-12-18 | 青岛海信传媒网络技术有限公司 | WIFI connection method and equipment |
CN109561395A (en) * | 2018-12-07 | 2019-04-02 | 青岛海信电器股份有限公司 | A kind of blue-tooth transmission method and device |
CN110120938A (en) * | 2019-04-02 | 2019-08-13 | 视联动力信息技术股份有限公司 | It is a kind of to assist the control method and device for turning server |
CN113709055A (en) * | 2020-05-20 | 2021-11-26 | 安徽华米信息科技有限公司 | BLE-based communication method, device, equipment, system and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022523A (en) * | 2006-02-15 | 2007-08-22 | 上海晨兴电子科技有限公司 | Mobile communication terminal video and audio file recording and broadcasting method and device |
CN101056262A (en) * | 2007-03-26 | 2007-10-17 | 宝丽雅智能系统(深圳)有限公司 | Connection and switching method of the service data and network data of the application system |
CN101131816A (en) * | 2007-09-30 | 2008-02-27 | 炬力集成电路设计有限公司 | Audio file generation method, device and digital player |
CN102594490A (en) * | 2011-01-17 | 2012-07-18 | 中兴通讯股份有限公司 | Method and device for degradation rate matching |
CN104661172A (en) * | 2015-01-26 | 2015-05-27 | 武汉健坤科技有限公司 | Extended data transmission method and extended data transmission system based on Bluetooth low power consumption |
CN104850573A (en) * | 2014-11-25 | 2015-08-19 | 北汽福田汽车股份有限公司 | Data collection method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040203371A1 (en) * | 2002-10-08 | 2004-10-14 | Hewlett Packard Company | Error control in a bluetooth wireless communication system |
CN102983884B (en) * | 2011-09-05 | 2016-03-30 | 国民技术股份有限公司 | A kind of method by magnetic channel transmission data |
CN106411560A (en) * | 2016-06-01 | 2017-02-15 | 深圳市永兴元科技有限公司 | Data transmission method and device |
CN107346981A (en) * | 2017-05-16 | 2017-11-14 | 北京数科技有限公司 | Data transmission method for uplink, method of reseptance and data sending device, reception device |
-
2017
- 2017-05-16 CN CN201710344810.2A patent/CN107346981A/en active Pending
-
2018
- 2018-05-15 WO PCT/CN2018/086868 patent/WO2018210231A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022523A (en) * | 2006-02-15 | 2007-08-22 | 上海晨兴电子科技有限公司 | Mobile communication terminal video and audio file recording and broadcasting method and device |
CN101056262A (en) * | 2007-03-26 | 2007-10-17 | 宝丽雅智能系统(深圳)有限公司 | Connection and switching method of the service data and network data of the application system |
CN101131816A (en) * | 2007-09-30 | 2008-02-27 | 炬力集成电路设计有限公司 | Audio file generation method, device and digital player |
CN102594490A (en) * | 2011-01-17 | 2012-07-18 | 中兴通讯股份有限公司 | Method and device for degradation rate matching |
CN104850573A (en) * | 2014-11-25 | 2015-08-19 | 北汽福田汽车股份有限公司 | Data collection method and device |
CN104661172A (en) * | 2015-01-26 | 2015-05-27 | 武汉健坤科技有限公司 | Extended data transmission method and extended data transmission system based on Bluetooth low power consumption |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018210231A1 (en) * | 2017-05-16 | 2018-11-22 | 青岛海尔股份有限公司 | Data transmitting method and receiving method, and data transmitting device and receiving device |
CN108234595A (en) * | 2017-11-29 | 2018-06-29 | 山东鲁能软件技术有限公司 | Log transmission method and system |
CN108966187A (en) * | 2018-06-06 | 2018-12-07 | 四川斐讯全智信息技术有限公司 | A kind of data transmission method and system based on BLE |
CN109041036A (en) * | 2018-10-29 | 2018-12-18 | 青岛海信传媒网络技术有限公司 | WIFI connection method and equipment |
CN109561395A (en) * | 2018-12-07 | 2019-04-02 | 青岛海信电器股份有限公司 | A kind of blue-tooth transmission method and device |
CN110120938A (en) * | 2019-04-02 | 2019-08-13 | 视联动力信息技术股份有限公司 | It is a kind of to assist the control method and device for turning server |
CN110120938B (en) * | 2019-04-02 | 2021-11-16 | 视联动力信息技术股份有限公司 | Control method and device for cooperative server |
CN113709055A (en) * | 2020-05-20 | 2021-11-26 | 安徽华米信息科技有限公司 | BLE-based communication method, device, equipment, system and storage medium |
CN113709055B (en) * | 2020-05-20 | 2023-12-05 | 安徽华米信息科技有限公司 | BLE-based communication method, BLE-based communication device, BLE-based communication equipment, BLE-based communication system and BLE-based storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018210231A1 (en) | 2018-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107346981A (en) | Data transmission method for uplink, method of reseptance and data sending device, reception device | |
CN104135741B (en) | Method, bluetooth equipment and the system of Bluetooth Low Energy communication | |
CN101662418B (en) | Detecting method and terminal of file transmission | |
WO2009057730A3 (en) | System and method for selection of security algorithms | |
CN103703717B (en) | Counter inspection method and device | |
CN102983884B (en) | A kind of method by magnetic channel transmission data | |
WO2003073724A3 (en) | System and method for detecting and eliminating ip spoofing in a data transmission network | |
CN106973050A (en) | A kind of method and device of inter-network lock information sharing | |
CN102325322A (en) | Multi-way access gateway device supporting wireless network and certification method | |
CN106464581A (en) | Data transmission method and system and data receiving device | |
WO2013063600A9 (en) | Systems and methods for fast initial network link setup | |
MY174530A (en) | Method to identify and differentiate background traffic | |
CN106506508B (en) | A method of extension Big Dipper short message length | |
CN103415084B (en) | Mobile terminal Internet access method and mobile terminal | |
CN107820325A (en) | Wireless communications method and system, computer-readable storage medium and equipment | |
WO2004006537A3 (en) | System and method for communicating in a load balancing environment | |
CN105187332B (en) | Multi-source data transmission method based on Zigbee network | |
CN102833336A (en) | Data sub-packet processing method in separate distributed information acquisition and concurrent processing system | |
CN116418647A (en) | Method, device and equipment for receiving and transmitting network management information | |
WO2007091245A3 (en) | Dual-function wireless data terminal | |
CN105532059B (en) | Configuration indicating method and communication equipment | |
CN103441952B (en) | Based on multinuclear or the processing method of network data packets of many-core flush bonding processor | |
CN105430763A (en) | Data acquisition method and device synchronously used by WIFI (Wireless Fidelity) data and mobile data | |
CN106789387A (en) | A kind of chain circuit detecting method and device for SDN | |
EP4311248A3 (en) | Real-time detection of completion of sensor wrap completion in gnmi telemetry of a network device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171114 |
|
RJ01 | Rejection of invention patent application after publication |