CN104184553B - Low-power consumption bluetooth data transmission method, device and equipment - Google Patents

Low-power consumption bluetooth data transmission method, device and equipment Download PDF

Info

Publication number
CN104184553B
CN104184553B CN201410442927.0A CN201410442927A CN104184553B CN 104184553 B CN104184553 B CN 104184553B CN 201410442927 A CN201410442927 A CN 201410442927A CN 104184553 B CN104184553 B CN 104184553B
Authority
CN
China
Prior art keywords
data
numerical value
packet
agreement
agreement numerical
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
CN201410442927.0A
Other languages
Chinese (zh)
Other versions
CN104184553A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410442927.0A priority Critical patent/CN104184553B/en
Publication of CN104184553A publication Critical patent/CN104184553A/en
Application granted granted Critical
Publication of CN104184553B publication Critical patent/CN104184553B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of low-power consumption bluetooth data transmission method, device and equipment, wherein low-power consumption bluetooth transmission method includes:It is at least two packets by the data file segmentation of pre-transmission;Agreement numerical value packet is disposably sent to data receiver, the agreement numerical value is set before packet is sent;If receiving the notification message that the data receiver feedback has been received by agreement numerical value packet, continue disposably to send new agreement numerical value packet to the data receiver.The invention also discloses corresponding device, and terminal device and bluetooth peripheral apparatus including said apparatus.Technical scheme disclosed in the embodiment of the present invention can effectively reduce the data-bag lost situation in low-power consumption bluetooth data transmission procedure, improve the stability of data transfer.

Description

Low-power consumption bluetooth data transmission method, device and equipment
Technical field
The present invention relates to wireless data transmission technology field, more particularly to a kind of low-power consumption bluetooth data transmission method, dress Put and equipment.
Background technology
Low-power consumption bluetooth (Bluetooth Low Energy, hereinafter referred to as:BLE) technology is to aim at the terminal using battery A kind of data transmission technology of equipment design, it has the advantages of low in energy consumption, and is widely used in mobile phone, notebook computer, PAD Deng the data transfer between terminal device and bluetooth peripheral apparatus.
At present, with the development of the technologies such as wearable device, smart home, Automated condtrol, outside increasing bluetooth If equipment is carried out data transmission using BLE technologies and the terminal device with control function.But it is limited by the transmission of BLE technologies The influence of the factor such as wireless environment of bandwidth, the disposal ability of bluetooth peripheral apparatus and complexity, BLE data transmission stabilities compared with Difference, easily there is situations such as data-bag lost.Especially during large-capacity data transmission is carried out, BLE data transfers Stability problem is especially prominent.
The content of the invention
In view of this, the embodiments of the invention provide a kind of low-power consumption bluetooth data transmission method, device and equipment, energy Enough data-bag lost situations effectively reduced in low-power consumption bluetooth data transmission procedure, improve the stability of data transfer.
In a first aspect, the embodiments of the invention provide a kind of low-power consumption bluetooth data transmission method, comprise the following steps:
It is at least two packets by the data file segmentation of pre-transmission;
Agreement numerical value packet is disposably sent to data receiver, the agreement numerical value is set before packet transmission It is fixed;
If receiving the notification message that data receiver feedback has been received by agreement numerical value packet, continue to The data receiver disposably sends new agreement numerical value packet.
Second aspect, the embodiments of the invention provide another low-power consumption bluetooth data transmission method, comprise the following steps:
The packet that data sending terminal is sent is received, the packet is data text of the data sending terminal to pre-transmission Part is split to obtain;
After agreement numerical value packet is received, agreement numerical value data are had been received by data sending terminal feedback The notification message of bag, the agreement numerical value are set before packet receives;
After all packets have been received, all packets received are merged, obtain the data text of pre-transmission Part.
The third aspect, the embodiment of the present invention provide a kind of low-power consumption bluetooth data transmission device, including:
Data segmentation module, for the data of pre-transmission to be divided into at least two packets;
Data transmission blocks, for disposably sending agreement numerical value packet, the agreement numerical value to data receiver Set before packet is sent;
The data transmission blocks, if being additionally operable to receive the data receiver feedback and have been received by arranges numerical value number According to the notification message of bag, then continue disposably to send new agreement numerical value packet to the data receiver.
Fourth aspect, the embodiments of the invention provide another low-power consumption bluetooth data transmission device, including:
Data reception module, for receiving the packet of data sending terminal transmission, the packet sends for the data Hold and the data file of same pre-transmission is split to obtain;
Notification message sending module, for after agreement numerical value packet is received, being fed back to the data sending terminal The notification message of agreement numerical value packet is had been received by, the agreement numerical value is set before packet receives;
Data packet synthesis module, for after all packets have been received, all packets received to be merged, Obtain the data file of pre-transmission.
5th aspect, the embodiments of the invention provide the low-power consumption bluetooth data of a kind of terminal device, including the third aspect Transmitting device.
6th aspect, the embodiments of the invention provide a kind of bluetooth peripheral apparatus, include the low-power consumption bluetooth of fourth aspect Data transmission device.
Low-power consumption bluetooth data transmission method provided in an embodiment of the present invention, device, and terminal device and bluetooth peripheral hardware Equipment, it is at least two by a data file segmentation wherein when data sending terminal sends data file to data receiver Packet, and agreement numerical value packet is disposably sent, then wait data receiver to confirm, if to have been received by above-mentioned Arrange numerical value packet, only after data receiver has been received by and arranges numerical value packet, be further continued for sending remaining Packet.Pass through above-mentioned technical scheme, it can be ensured that during carrying out data transmission using low-power consumption bluetooth, data are sent The packet sent every time is held to be received by data receiver, so as to avoid data-bag lost, there is provided data transfer Stability.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the schematic flow sheet for the low-power consumption bluetooth data transmission method that first embodiment of the invention provides;
Fig. 2 is the schematic flow sheet for the low-power consumption bluetooth data transmission method that second embodiment of the invention provides;
Fig. 3 is the schematic flow sheet for the low-power consumption bluetooth data transmission method that third embodiment of the invention provides;
Fig. 4 is the structural representation for the low-power consumption bluetooth data transmission device that fourth embodiment of the invention provides;
Fig. 5 is the structural representation for the low-power consumption bluetooth data transmission device that fifth embodiment of the invention provides.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is only used for explaining the present invention, rather than limitation of the invention.It also should be noted that for the ease of Describe, part related to the present invention rather than full content are illustrate only in accompanying drawing.
Fig. 1 shows the first embodiment of the present invention.
Fig. 1 is the schematic flow sheet for the low-power consumption bluetooth data transmission method that first embodiment of the invention provides.This implementation It is using terminal equipment side as data sending terminal, as shown in figure 1, this method comprises the following steps in example:
Step S110, it is at least two packets by the data file segmentation of pre-transmission.
It is during being carried out data transmission using low-power consumption bluetooth, by data sending terminal by pre-transmission in this step Data file is split, and obtains at least two packets.Specifically, data sending terminal therein can be blue with low-power consumption The terminal device of tooth data-transformation facility, such as mobile phone, PAD, notebook computer, data receiver can be that bluetooth peripheral hardware is set Standby, bluetooth peripheral apparatus therein, which can be that intelligent watch, intelligent glasses, remote control etc. are various, to be entered with above-mentioned terminal device The equipment of row low-power consumption bluetooth data transfer.
Data file segmentation can be multiple packets when carrying out transmitting data file by this step, and preferably, can To set above-mentioned data file segmentation into equal-sized packet.
Step S120, agreement numerical value packet is disposably sent to data receiver, the agreement numerical value is in packet Set before sending.
In this step, data sending terminal is when splitting obtained packet into data receiver forwarding step S110 Agreement numerical value packet is disposably sent according to agreement numerical value, agreement numerical value therein is set before packet transmission.
Step S130, disappear if receiving the notice that the data receiver feedback has been received by agreement numerical value packet Breath, then continue disposably to send new agreement numerical value packet to the data receiver.
In this step, the terminal device as data sending terminal is after agreement numerical value packet has disposably been sent, temporarily The feedback sent and wait data receiver is stopped paying out, agreement numerical value data are had been received by until receiving data receiver feedback The notification message of bag, just continue to send the follow-up data bag that segmentation obtains, and still arrange numerical value number according to disposable send Performed according to the mode of bag.By the above-mentioned means, so that the packet sent every time can access the confirmation of data receiver, enter And avoid the occurrence of the situation of data-bag lost, there is provided the stability of low-power consumption bluetooth data transfer.
In addition, for having been received by agreement numerical value number still without data receiver feedback is received more than preset time period According to the situation of the notification message of bag, data sending terminal can disposably send the about fixed number being transmitted across to data receiver again Value packet.
In embodiments of the present invention, following steps be can further include before above-mentioned steps 120:
By control field to the data receiver send the agreement numerical value, the data file size, described Split any or its combination in the check value of obtained number of data packets and the data file.Wherein, above-mentioned control field Can be controlling feature value (Control Characteristic), data sending terminal is by above-mentioned control field by above-mentioned parameter It is sent to data receiver.
Specifically, data sending terminal disposably sends agreement numerical value packet in the step 120, while in step 130 In, it is necessary to confirm that data receiver has been received by the agreement numerical value packet.For data sending terminal and data receiver For, it is required for setting above-mentioned agreement numerical value in advance, can be specifically realized by two ways, first, individually in data Transmitting terminal and data receiver set above-mentioned agreement numerical value, second, above-mentioned agreement numerical value is set in data sending terminal, then by counting Data receiver is sent to according to transmitting terminal.
In addition, for above-mentioned data file size and number of data packets, data sending terminal is sent to by above-mentioned parameter After data receiver, data receiver can calculate whether received complete data file is divided into according to any of the above-described parameter All packets.And the check value of data file, it is available for data receiver to carry out error checking and correction.The step 110 of the present embodiment When the data file to pre-transmission is split, if the number of data packets that segmentation obtains is not due up the integral multiple of numerical value, It can be handled by zero padding and obtain zero-filled data bag, and ensure the number of zero-filled data bag and the number that data file segmentation obtains Integral multiple according to the number sum of bag for agreement numerical value.By the above-mentioned means, it is able to ensure that the number that data sending terminal is sent every time Fixed number value is about according to bag number, number of data packets statistics and feedback, and packet receiving terminal are carried out beneficial to data receiver When carrying out packet combining, above-mentioned zero-filled data bag can be given up to fall.
The present embodiment may apply in the application scenarios that terminal device carries out firmware upgrade to its bluetooth peripheral apparatus, this When, above-mentioned data file is firmware upgrade data file, and in above-mentioned steps 110, the terminal device as data sending terminal is The firmware upgrade data file is split to obtain more than two packets.
Fig. 2 shows the second embodiment of the present invention.
Fig. 2 is the schematic flow sheet for the low-power consumption bluetooth data transmission method that second embodiment of the invention provides.This implementation It is using bluetooth peripheral apparatus side as data receiver, as shown in Fig. 2 this method comprises the following steps in example:
Step 210, the packet that data sending terminal is sent is received, the packet is data of the data sending terminal to pre-transmission File is split to obtain.
Can be that the packet that data sending terminal sends is received by bluetooth peripheral apparatus, outside bluetooth therein in this step If equipment can be specifically earphone, intelligent watch, intelligent glasses, remote control etc. it is various can with above-mentioned terminal device carry out it is low The equipment of power consumption Bluetooth data transfer.The transmission for data file, it is by by counting in technical scheme in the present embodiment More than two packets will be divided into first with the data file of pre-transmission, be then transmitted according to transmitting terminal.
For the situation in data sending terminal by data file segmentation into equal-sized at least two packet, this step In the data package size that receives it is equal.
Step 220, after agreement numerical value packet is received, agreement numerical value is had been received by data sending terminal feedback The notification message of packet, the agreement numerical value are set before packet receives;
Packet receiving terminal counts to the packet received, and after agreement numerical value packet is received, to Data sending terminal feedback has been received by the notification message of agreement numerical value packet.Pass through above-mentioned feedback mechanism so that data Transmitting terminal can know that it sends the reception condition of packet, and the entire packet for confirming to have sent all has been successfully received Arrive.
In this step, the number for the packet being had been received by by data receiver feedback can be by data receiver Packet reception condition notify data sending terminal, and then instruct whether transmitting terminal is can to continue to send new packet , it is desired nonetheless to resend the packet being transmitted across, can effectively ensure data sending terminal send packet all by Smoothly receive, improve the stability of low-power consumption bluetooth data transfer.
Step 230, after all packets have been received, all packets received are merged, obtain pre-transmission Data file.
This step be in a step 220 data receiver by packet reception condition notify data sending terminal on the premise of, Allow packet transmitting terminal to adjust sending strategy in real time, it is ensured that by the data file segmentation of pre-transmission into each packet it is all successful Receive.Then all packets received are merged, obtains the data file with transmission.
It is corresponding with first embodiment, can also further it include before above-mentioned steps 210:
Receive the agreement numerical value, the size, described of the data file that data sending terminal is sent by control field Split any or its combination in the check value of obtained number of data packets and the data file.
Can be as the statistics foundation of step 220 specifically, wherein arranging numerical value.The agreement numerical value can also be in data Receiving terminal is directly set, and is sent without data sending terminal.In addition, the data that above-mentioned data file size, segmentation obtain Bag number, it can judge whether in above-mentioned step 230 to have been received by all packets for data receiver;Preferably, The number of data packets that segmentation obtains directly can be sent to data receiver by data sending terminal.Verification for data file Value, data receiver can carry out error checking and correction according to it.
Corresponding with first embodiment, the technical scheme of the present embodiment may apply to the bluetooth peripheral apparatus of terminal device In the application scenarios of firmware upgrade, then above-mentioned data sending terminal is terminal device, and data file is bluetooth peripheral apparatus Firmware upgrade data file.
Fig. 3 shows the third embodiment of the present invention.
Fig. 3 is the schematic flow sheet for the low-power consumption bluetooth data transmission method that third embodiment of the invention provides.This implementation It is using mobile phone as data sending terminal, the bluetooth peripheral apparatus to be connected with mobile phone by low-power consumption bluetooth is used as data in example Receiving terminal, the data file of transmission are the firmware upgrade data file of bluetooth peripheral apparatus.In the present embodiment, outside mobile phone and bluetooth If equipment supports low-power consumption bluetooth data-transformation facility, there is provided respective data transfer service, is properly termed as Transport Service, two characteristic values are provided in Transport Service, one is controlling feature value, and it is the one of control field Kind, Control Characteristic are properly termed as, mobile phone can realize that control instruction is sent by the controlling feature value, this In embodiment bluetooth peripheral apparatus is sent to using the controlling feature value by numerical value is arranged;Another is data feature values, can be with Referred to as Data Characteristic, mobile phone can realize the transmission of packet by the data feature values.
As shown in figure 3, this method comprises the following steps:
Step S310, mobile phone and bluetooth peripheral apparatus carry out bluetooth connection.After the completion of connection, mobile phone obtains bluetooth peripheral hardware and set It is standby whether to support low power consumption data transfer function, if supporting to continue executing with;
Step S320, mobile phone calculate the CRC (Cyclic of the firmware upgrade data file of pre-transmission Redundancy Check, CRC) value, in the present embodiment, it can be calculated using CRC16 algorithms, obtain firmware upgrade data file CRC16 values;
Step S330, mobile phone are split to above-mentioned firmware upgrade data file, obtain at least two packets, preferably Ground, the equal in magnitude of each packet that segmentation obtains can be set, such as it is 20 that can set the data package size after segmentation Byte (byte).And if the number of data packets that segmentation obtains is not the integral multiple of the agreement numerical value sent every time, then it can lead to The mode for crossing zero padding obtains zero-filled data bag, to cause integral multiple of the final packet total number as agreement numerical value;
Step S340, mobile phone is by the CRC16 values of firmware upgrade data file, and the number-of-packet purpose sent every time is about Fixed number value is written in controlling feature value, and is sent to bluetooth peripheral apparatus, and above-mentioned agreement numerical value can be set as n.In this step In rapid, the number of data packets that can also obtain the size of firmware upgrade data file or segmentation is also written in controlling feature value It is sent to bluetooth peripheral apparatus.Bluetooth peripheral apparatus receives and stores the CRC16 values of above-mentioned firmware upgrade data file, about fixed number The information such as value, the size of firmware upgrade data file;
Furthermore it is also possible to it is in step 320, after the crc value of firmware upgrade data file is calculated, directly to be sent out Give bluetooth peripheral apparatus.
Step S350, the packet that step 330 segmentation obtains is written in data feature values by mobile phone, and is sent to bluetooth Peripheral apparatus, and agreement numerical value packet is once only sent in this step, bluetooth peripheral apparatus is waited for after being sent completely Feedback;
Step 360, bluetooth peripheral apparatus receives the packet that mobile phone is sent, and the number of data packets to receiving is carried out Statistics, whether statistics have received agreement numerical value packet, and be fed back after agreement numerical value packet is received to mobile phone Have been received by the notification message of above-mentioned agreement numerical value packet;
If the notice for having been received by above-mentioned agreement numerical value packet that mobile phone receives bluetooth peripheral apparatus feedback disappears Breath, then it can return and perform step 350, continue to send new packet, sending method still can arrange a numerical value according to once sending Packet, the step of then waiting bluetooth peripheral apparatus feedback performs;Otherwise, if be not received by preset time period Above-mentioned feedback, then step 350 can be re-executed, the agreement numerical value packet that the last time sends is resend one time, and waits Treat the feedback of bluetooth peripheral apparatus;
Step S370, after above-mentioned steps S350 and more times of step S360 is repeated, step S330 splits obtained institute There is packet all to send to bluetooth peripheral apparatus.Now, bluetooth peripheral apparatus merges the packet received, consolidate Part upgrades data file, while crc value can be recalculated according to obtained firmware upgrade data file, carries out CRC check, if Verify successfully, then transmission success, otherwise transmit firmware upgrade data file again.During packet combining, if there is Zero-filled data bag, then zero-filled data bag can be given up according to the size of firmware upgrade data file.
The present embodiment carries out the transmission of firmware upgrade data file using low-power consumption bluetooth transmission method, and wherein mobile phone will be solid Part upgrading data file is first split, and obtains multiple packets, is then arranging numerical value packet according to once transmission Mode, the feedback of bluetooth peripheral apparatus is waited, until bluetooth peripheral apparatus feedback has been received by above-mentioned agreement numerical value data Bao Hou, it is further continued for sending new packet.Pass through above-mentioned technical proposal can effectively avoid firmware upgrade transmitting data file mistake Data-bag lost occurs in journey.
Fig. 4 shows the fourth embodiment of the present invention.
Fig. 4 is the structural representation for the low-power consumption bluetooth data transmission device that fourth embodiment of the invention provides, such as Fig. 4 institutes Show, low-power consumption bluetooth data transmission device includes:Data segmentation module 410 and data transmission blocks 420.
Wherein, data segmentation module 410 is used to the data of pre-transmission being divided at least two packets;
Data transmission blocks 420 are used to disposably send agreement numerical value packet, the about fixed number to data receiver Value is set before packet is sent;And if being additionally operable to receive the data receiver feedback and have been received by arranges numerical value The notification message of packet, then continue disposably to send new agreement numerical value packet to the data receiver.
Preferably, the device also includes:
Parameter sending module 430, for sending agreement numerical value, the data to the data receiver by control field Any or its combination in the size of file, the check value for splitting obtained number of data packets and the data file.
Preferably, the device also includes:
Zero padding processing module 440, if not being due up numerical value for the number of data packets that the data file segmentation obtains Integral multiple, then handled by zero padding and obtain zero-filled data bag, the number of data packets and the number of zero-filled data bag that above-mentioned segmentation obtains Mesh sum is the integral multiple of agreement numerical value.
In addition, if the data transmission blocks 420 in the present embodiment are additionally operable to be not received by data more than preset time period Receiving terminal feedback has been received by the notification message of agreement numerical value packet, then disposably sends and sent out to data receiver again The agreement numerical value packet passed through.
Preferably, above-mentioned data segmentation module splits the equal in magnitude of at least two obtained packets.
And further, above-mentioned data receiver is bluetooth peripheral apparatus, data file is firmware upgrade data file.
Fig. 5 shows the fifth embodiment of the present invention.
Fig. 5 is the structural representation for the low-power consumption bluetooth data transmission device that fifth embodiment of the invention provides, such as Fig. 5 institutes Show, low-power consumption bluetooth data transmission device includes:Data reception module 510, notification message sending module 520 and data inclusion into Module 530,
Data reception module 510 is used for the packet for receiving data sending terminal transmission, and the packet is sent out for the data Sending end is split to obtain to the data file of same pre-transmission;
Notification message sending module 520 is used for after agreement numerical value packet is received, anti-to the data sending terminal Feedback has been received by the notification message of agreement numerical value packet, and the agreement numerical value is set before packet receives;
Data packet synthesis module 530 is used for after all packets have been received, and all packets received are closed And obtain the data file of pre-transmission.
Preferably, the device also includes:
Parameter receiving module 540, for receiving the agreement numerical value that data sending terminal sent by control field, described Any or its group in the size of data file, the check value for splitting obtained number of data packets and the data file Close.
In addition, in the present embodiment, the packet for the data sending terminal transmission that wherein packet-receiving module 510 receives It is equal in magnitude.
Further, above-mentioned data sending terminal is terminal device, and data file is firmware upgrade data file.
The embodiment of the present invention additionally provides a kind of terminal device, including the low-power consumption bluetooth data transfer in fourth embodiment Device, the terminal device can be the equipment such as mobile phone, PAD, notebook computer.
The embodiment of the present invention also provides a kind of bluetooth peripheral apparatus, including the low-power consumption bluetooth data biography in the 5th embodiment Defeated device, the bluetooth peripheral apparatus can be that the intelligent distant controls such as wearable identification, the remote controls such as intelligent watch, intelligent glasses are set It is standby, the intelligent medical equipment such as pedometer, heart rate monitor, and the intelligentized Furniture equipment such as air-conditioning, refrigerator, light fixture.It is any can be with The equipment being connected by low-power consumption bluetooth with terminal device is bluetooth peripheral apparatus defined in the embodiment of the present invention.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Will be appreciated by those skilled in the art that above-mentioned each module of the invention or each step can use general meter Device is calculated to realize, they can be concentrated on single computing device, or are distributed in the network that multiple computing devices are formed On, alternatively, they can be realized with the program code that computer installation can perform, so as to be stored in storage Performed in device by computing device, they are either fabricated to each integrated circuit modules respectively or will be more in them Individual module or step are fabricated to single integrated circuit module to realize.So, the present invention be not restricted to any specific hardware and The combination of software.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, same or analogous part between each embodiment mutually referring to.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for those skilled in the art For, the present invention can have various changes and change.All any modifications made within spirit and principles of the present invention, it is equal Replace, improve etc., it should be included in the scope of the protection.

Claims (12)

1. a kind of low-power consumption bluetooth data transmission method, it is characterised in that methods described is applied to terminal device to bluetooth equipment The application scenarios of firmware upgrade are carried out, methods described includes:
Bluetooth connection is carried out with bluetooth peripheral apparatus, if connection is completed, obtains whether bluetooth peripheral apparatus supports low power consumption data Transfer function, if supporting to continue executing with;
It is at least two packets by the firmware upgrade data file segmentation of pre-transmission;Disposably sent about to bluetooth peripheral apparatus Fixed number value packet, pause are sent and wait the feedback of the bluetooth peripheral apparatus, and the agreement numerical value is sent in packet Preceding setting;The agreement numerical value is more than or equal to 1;Wherein, setting the agreement numerical value can realize in the following way:Exist respectively Terminal device and bluetooth peripheral apparatus setting agreement numerical value, or agreement numerical value is set in the terminal device, by described Terminal device is sent to the bluetooth peripheral apparatus by numerical value is arranged;
If the number of data packets that the data file segmentation obtains is not the integral multiple of the agreement numerical value, handled by zero padding Zero-filled data bag is obtained, the number sum for splitting obtained number of data packets and the zero-filled data bag is agreement numerical value Integral multiple;If receiving the notification message that the bluetooth peripheral apparatus feedback has been received by agreement numerical value packet, continue New agreement numerical value packet is disposably sent to the bluetooth peripheral apparatus.
2. according to the method for claim 1, it is characterised in that described that agreement numerical value is disposably sent to data receiver Also include before packet:
The agreement numerical value, the size of the data file, the segmentation are sent to the data receiver by control field Any or its combination in obtained number of data packets and the check value of the data file.
3. according to the method for claim 1, it is characterised in that also include:
If more than preset time period be not received by data receiver feedback have been received by agreement numerical value packet notice disappear Breath, then the agreement numerical value packet being disposably transmitted across to the data receiver again.
4. a kind of low-power consumption bluetooth data transmission method, it is characterised in that methods described is applied to terminal device to bluetooth peripheral hardware The application scenarios of DFU, methods described include:
The packet that receiving terminal apparatus is sent, the packet are firmware upgrade data text of the terminal device to pre-transmission Part is split to obtain;
After agreement numerical value packet is received, the logical of agreement numerical value packet is had been received by terminal device feedback Know message, the agreement numerical value is set before packet receives;The agreement numerical value is more than or equal to 1;Wherein, the agreement is set Numerical value can be realized in the following way:Respectively in terminal device and bluetooth peripheral apparatus setting agreement numerical value, or described Terminal device setting agreement numerical value, bluetooth peripheral apparatus is sent to by terminal device by numerical value is arranged;
After all packets have been received, all packets received are merged, obtain the data text of the pre-transmission Part;
Wherein, during packet combining, if there is zero-filled data bag, according to the size of firmware upgrade file by zero padding number Give up according to bag.
5. according to the method for claim 4, it is characterised in that before the packet for receiving data sending terminal and sending also Including:
Receive data sending terminal sent by control field the agreement numerical value, the size of the data file, the segmentation Any or its combination in obtained number of data packets and the check value of the data file.
A kind of 6. low-power consumption bluetooth data transmission device, it is characterised in that described device is configured at terminal device, including:
Data segmentation module, for being at least two packets by the firmware upgrade data file segmentation of pre-transmission;
Data transmission blocks, for disposably sending agreement numerical value packet to bluetooth peripheral apparatus, pause sends and waited The feedback of the bluetooth peripheral apparatus, the agreement numerical value are set before packet is sent;The agreement numerical value is more than or equal to 1; Wherein, setting the agreement numerical value can realize in the following way:Set respectively in terminal device and the bluetooth peripheral apparatus Conclude a contract or treaty fixed number value, or agreement numerical value set in the terminal device, by the terminal device will arrange numerical value be sent to it is described Bluetooth peripheral apparatus;Zero padding processing module, if not being the agreement for the number of data packets that the data file segmentation obtains The integral multiple of numerical value, then handled by zero padding and obtain zero-filled data bag, it is described to split obtained number of data packets and the zero padding The number sum of packet is the integral multiple of agreement numerical value;
The data transmission blocks, if being additionally operable to receive the bluetooth peripheral apparatus feedback and have been received by arranges numerical value data The notification message of bag, then continue disposably to send new agreement numerical value packet to the bluetooth peripheral apparatus;
Wherein, before being at least two packets by the firmware upgrade data file segmentation of pre-transmission, including:With bluetooth peripheral hardware Equipment carries out bluetooth connection, if connection is completed, obtains whether bluetooth peripheral apparatus supports low power consumption data transfer function, if branch Hold and continue executing with.
7. device according to claim 6, it is characterised in that also include:
Parameter sending module, for sending the agreement numerical value, data text to the data receiver by control field Any or its combination in the size of part, the check value for splitting obtained number of data packets and the data file.
8. device according to claim 6, it is characterised in that if the data transmission blocks are additionally operable to exceed preset time Section is not received by the notification message that data receiver feedback has been received by agreement numerical value packet, then again to the data The agreement numerical value packet that receiving terminal has disposably been transmitted across.
A kind of 9. low-power consumption bluetooth data transmission device, it is characterised in that described device is configured in bluetooth peripheral apparatus, including:
Data reception module, the packet sent for receiving terminal apparatus, the packet are the terminal device to same The firmware upgrade data file of individual pre-transmission is split to obtain;
Notification message sending module, for after agreement numerical value packet is received, having been received to terminal device feedback To the notification message of agreement numerical value packet, the agreement numerical value is set before packet receives;The agreement numerical value is more than Equal to 1;Wherein, setting the agreement numerical value can realize in the following way:Respectively in terminal device and the bluetooth peripheral hardware Equipment setting agreement numerical value, or agreement numerical value is set in the terminal device, will arrange numerical value by the terminal device sends To the bluetooth peripheral apparatus;
Data packet synthesis module, for after all packets have been received, all packets received to be merged, obtain The data file of pre-transmission.
10. device according to claim 9, it is characterised in that also include:
Parameter receiving module, for receiving the agreement numerical value, the data text that data sending terminal is sent by control field Any or its combination in the size of part, the check value for splitting obtained number of data packets and the data file.
11. a kind of terminal device, it is characterised in that including any described low-power consumption bluetooth data transfer dresses of claim 6-8 Put.
12. a kind of bluetooth peripheral apparatus, it is characterised in that including any described low-power consumption bluetooth data of claim 9 or 10 Transmitting device.
CN201410442927.0A 2014-09-02 2014-09-02 Low-power consumption bluetooth data transmission method, device and equipment Expired - Fee Related CN104184553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410442927.0A CN104184553B (en) 2014-09-02 2014-09-02 Low-power consumption bluetooth data transmission method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410442927.0A CN104184553B (en) 2014-09-02 2014-09-02 Low-power consumption bluetooth data transmission method, device and equipment

Publications (2)

Publication Number Publication Date
CN104184553A CN104184553A (en) 2014-12-03
CN104184553B true CN104184553B (en) 2018-03-23

Family

ID=51965325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410442927.0A Expired - Fee Related CN104184553B (en) 2014-09-02 2014-09-02 Low-power consumption bluetooth data transmission method, device and equipment

Country Status (1)

Country Link
CN (1) CN104184553B (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661172A (en) * 2015-01-26 2015-05-27 武汉健坤科技有限公司 Extended data transmission method and extended data transmission system based on Bluetooth low power consumption
CN105141814A (en) * 2015-08-18 2015-12-09 苏世鹏 Bluetooth wireless self-timer
CN105511606B (en) * 2015-11-27 2018-12-07 深圳还是威健康科技有限公司 Data transmission method and device
CN105516894A (en) * 2015-11-27 2016-04-20 深圳还是威健康科技有限公司 Data transmission method, terminal and wearable device
CN105513315A (en) * 2015-11-27 2016-04-20 深圳还是威健康科技有限公司 Data transmission method, terminal and wearable device
US10791521B2 (en) 2015-12-03 2020-09-29 Huawei Technologies Co., Ltd. Data sending method and apparatus, and terminal
CN106921472A (en) * 2015-12-28 2017-07-04 镇江高科信息科技有限公司 A kind of low-power consumption short-range radio technology equipment
CN106559739B (en) * 2016-09-28 2020-03-20 深圳成谷科技有限公司 Lightweight data transmission method suitable for Bluetooth low-power wireless communication system
CN107016736A (en) * 2017-05-03 2017-08-04 上海毕咨信息技术有限公司 A kind of taximeter
CN107241165A (en) * 2017-05-31 2017-10-10 徐州雷奥医疗设备有限公司 A kind of reliable transmission of data method of the wireless medical equipment based on erroneous retransmissions
CN109698736B (en) * 2017-10-24 2021-08-06 普天信息技术有限公司 Repeating data transmission method and device
CN107835040B (en) * 2017-11-30 2020-11-13 深圳市文鼎创数据科技有限公司 Data communication method, equipment and storage medium based on Bluetooth
CN108010298A (en) * 2017-12-19 2018-05-08 青岛海信移动通信技术股份有限公司 Apparatus control method and device
CN110401794A (en) * 2018-04-25 2019-11-01 杭州海康威视数字技术股份有限公司 Video camera remote upgrade method, device, electronic equipment and readable storage medium storing program for executing
CN108966187A (en) * 2018-06-06 2018-12-07 四川斐讯全智信息技术有限公司 A kind of data transmission method and system based on BLE
CN108934004A (en) * 2018-09-17 2018-12-04 成都心吉康科技有限公司 A kind of read method and device of classics blue-teeth data
CN109041036A (en) * 2018-10-29 2018-12-18 青岛海信传媒网络技术有限公司 WIFI connection method and equipment
CN109831746B (en) * 2018-11-27 2020-09-01 阿里巴巴集团控股有限公司 Method and device for data transmission based on Bluetooth broadcast and Bluetooth equipment
CN109640302A (en) * 2018-12-06 2019-04-16 上海荣泰健康科技股份有限公司 Method for updating program, electronic equipment and mobile terminal based on BLE bluetooth
CN109951842B (en) * 2019-03-19 2022-03-15 厦门市思芯微科技有限公司 Method for reserving BLE name and MAC address in Bluetooth firmware upgrade
CN111752579A (en) * 2019-10-17 2020-10-09 北京沃东天骏信息技术有限公司 Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN111065084A (en) * 2020-02-25 2020-04-24 北京百瑞互联技术有限公司 Method for improving low-power-consumption Bluetooth transmission speed
CN113078982B (en) * 2020-12-24 2022-09-13 珠海市杰理科技股份有限公司 Bluetooth data transmission method, device, circuit, electronic equipment and system
CN113543100A (en) * 2021-07-08 2021-10-22 上海瓶钵信息科技有限公司 Method and system for realizing end-to-end communication protocol based on Bluetooth
CN113890852B (en) * 2021-08-24 2024-05-28 北京旷视科技有限公司 Data transmission method, device, equipment and medium
CN115022860A (en) * 2022-07-04 2022-09-06 北京展跃芯智科技有限公司 Upgrading method and device for Bluetooth low-power-consumption equipment, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904701A (en) * 2011-07-26 2013-01-30 莱特普茵特公司 System and method for deterministic testing of packet error rate in electronic devices
CN103746727A (en) * 2014-01-24 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Bluetooth communication method and Bluetooth communication system
CN103889018A (en) * 2014-04-09 2014-06-25 尚奇浩康(北京)科技有限公司 Data transmitting method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8731493B2 (en) * 2009-10-30 2014-05-20 Apple Inc. Wireless local area network test system with forced transmit rates during protocol-based testing
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system
CN103825905B (en) * 2014-03-10 2018-05-25 云中致用(广州)信息科技有限公司 A kind of multi-medium data exchange method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904701A (en) * 2011-07-26 2013-01-30 莱特普茵特公司 System and method for deterministic testing of packet error rate in electronic devices
CN103746727A (en) * 2014-01-24 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Bluetooth communication method and Bluetooth communication system
CN103889018A (en) * 2014-04-09 2014-06-25 尚奇浩康(北京)科技有限公司 Data transmitting method and device

Also Published As

Publication number Publication date
CN104184553A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
CN104184553B (en) Low-power consumption bluetooth data transmission method, device and equipment
CN105703890B (en) Method and equipment for data transmission
CN108848163A (en) The upgrade method and TWS earphone of TWS earphone
US9264106B2 (en) Method for controlling flows of logical link layer in near field communication software stack
CN110166180A (en) A kind of method and device of determining HARQ-ACK codebook
CN103973414B (en) A kind of data transmission method and device
KR102221021B1 (en) Electronic device and method for processing packet in internet protocol based network
CN107943529A (en) Equipment pairing method and device, readable storage medium and interactive intelligent equipment
CN110063079A (en) Transport block size determines in mobile communication
CN105137842B (en) A kind of stage Adaptive matching device
CN104883611B (en) The adjustment method and system of TV screen
CN1988537A (en) Data transmission protocol
JP2010109530A (en) Wireless communication apparatus and wireless communication method
CN105472377A (en) Television debugging method and apparatus thereof
CN107798098A (en) A kind of method and device for realizing dynamic socket field
CN106302432B (en) A kind of communication device and control method based on car networking
CN106102101A (en) Processing method that a kind of WAP is connected with Radio Access Controller and system
CN107707598A (en) The method and Internet of Things communication equipment of a kind of remote control Internet of Things communication equipment
CN107222379A (en) A kind of method and apparatus of serial communication
EP2515601B1 (en) Dial-up connection method and device of mobile data terminal
CN115412890B (en) Data transmission method and device and terminal equipment
CN104714634A (en) Remote input method and system
CN113518087A (en) IOT protocol reverse docking method and device
CN106209326A (en) Method for transmitting uplink data and device
JP2008090544A (en) Remote data meter-reading method

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
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180323

CF01 Termination of patent right due to non-payment of annual fee