CN104135339A - Bluetooth low-power-consumption communication method, Bluetooth equipment and system - Google Patents

Bluetooth low-power-consumption communication method, Bluetooth equipment and system Download PDF

Info

Publication number
CN104135339A
CN104135339A CN201410323063.0A CN201410323063A CN104135339A CN 104135339 A CN104135339 A CN 104135339A CN 201410323063 A CN201410323063 A CN 201410323063A CN 104135339 A CN104135339 A CN 104135339A
Authority
CN
China
Prior art keywords
bluetooth equipment
bluetooth
data
transmission unit
maximum transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410323063.0A
Other languages
Chinese (zh)
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.)
Fujian Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Priority to CN201410323063.0A priority Critical patent/CN104135339A/en
Publication of CN104135339A publication Critical patent/CN104135339A/en
Pending legal-status Critical Current

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/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
    • 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)

Abstract

The invention provides a Bluetooth low-power-consumption communication method, Bluetooth equipment and a system. The method is applied to communication among the Bluetooth equipment. The method comprises the following steps: acquiring the maximum transmission unit value of second Bluetooth equipment by using first Bluetooth equipment, judging whether the size of data to be transmitted is greater than a transmission reference value which is a smaller one in the maximum transmission unit value of the second Bluetooth equipment and the maximum transmission unit value of the first Bluetooth equipment during transmission of data from the first Bluetooth equipment to the second Bluetooth equipment, and if not, directly transmitting the data to be transmitted; and otherwise, partitioning the data to be transmitted into data blocks, wherein circularly transmitting the partitioned data blocks, wherein the size of each partitioned data block is smaller than or equal to the transmission reference value. By adopting the Bluetooth low-power-consumption communication method, the Bluetooth equipment and the system, the influence of failure in receiving of the second Bluetooth equipment due to an overlarge transmission value on the transmission speed is eliminated; or prolonging of the transmission time due to transmission of an excessively small value is avoided, and the Bluetooth low-power-consumption communication speed is increased.

Description

A kind of method, bluetooth equipment and system of bluetooth low power loss communication
Technical field
The present invention relates to technical field of bluetooth communication, relate in particular to a kind of method, bluetooth equipment and system of bluetooth low power loss communication.
Background technology
Bluetooth low energy consumption (Bluetooth Low Energy, being called for short BLE) technology is the robustness wireless technology of low cost, short distance, interoperable, this technology is a key function of Bluetooth4.0, is operated in the 2.4GHz ISM radio frequency band of exempting from license.It is designed to super low-power consumption (ULP) wireless technology from the beginning.It makes many intelligent means can reduce to greatest extent power consumption.
Bluetooth low energy consumption technologies adopts variable connect hours interval, and this interval can not be set to several milliseconds to several seconds not etc. according to concrete application.In addition, because BLE technology adopts connected mode very fast, therefore at ordinary times can be in " disconnected " state (the saving energy), now both link ends is just known the other side each other, only have and just open where necessary link, then within the short as far as possible time, close link.
The mode of operation of BLE technology is suitable for transmitting data from micro wireless sensor (every half second exchange one secondary data) or other peripheral hardware such as remote controller of using full asynchronous communication very much.The data volume considerably less (common several bytes) that these equipment send, and transmission times also seldom (for example per second arrive several times once per minute, even still less).
Existing mobile device (as Android equipment and ios device) has all increased the support to bluetooth Low-power Technology, realize data interaction by bluetooth Low-power Technology, but realizing in process of the present invention, inventor finds that in prior art, there are the following problems: the transmission of bluetooth low power consumption data is slow, speed is in 0.5KB/s left and right, inefficiency, in the time of the data volume of million grades of byte-sized of transmission, the time that its transmission consumes needs dozens of minutes, cannot meet the rapid response to customer's need of larger data amount communication.
Summary of the invention
For this reason, need to provide the technical scheme that solves the slow problem of communication speed in bluetooth low power consumption data transmitting procedure.
For achieving the above object, inventor provides a kind of method, bluetooth equipment and system of bluetooth low power loss communication, and implementation is as follows:
Comprise step: the first bluetooth equipment obtains the maximum transmission unit value of the second bluetooth equipment, and taking less of sending reference value in the maximum transmission unit value of the second bluetooth equipment and the maximum transmission unit value of the first bluetooth equipment;
The first bluetooth equipment, in the time sending data to the second bluetooth equipment, first judges whether size of data to be sent is greater than transmission reference value, if be not more than transmission reference value, directly sends data to be sent; Otherwise Data Segmentation to be sent is become to data block, and the size of the each data block after cutting apart is less than or equal to transmission reference value, then circulation sends the data block after cutting apart.
Further, the concrete steps that described the first bluetooth equipment obtains the maximum transmission unit value of the second bluetooth equipment comprise: the first bluetooth equipment is connecting in the registration feature step of process with the second bluetooth equipment, the second bluetooth equipment feeds back the second bluetooth equipment maximum transmission unit value feature, and the first bluetooth equipment obtains the second bluetooth equipment maximum transmission unit value after reading the second bluetooth equipment maximum transmission unit value feature.
Further, the second bluetooth equipment receives after the data block that the first bluetooth equipment sends, and the second bluetooth equipment is counted data block and count results is replied to the first bluetooth equipment.
Further, the data bit that described count results takies is 1-8 position.
Further, the second bluetooth equipment receives after the data block that the first bluetooth equipment sends, and the size information of the data block receiving is replied to the first bluetooth equipment by the second bluetooth equipment.
Further, the data bit that the size information of described data block takies is 6-15 position.
Further, the number of the data block after Data Segmentation to be sent is: after the byte number of data to be sent is added to the byte number of transmission reference value and deducts one, obtain median byte number, the number of data block is that median byte number is except obtain the value of the integer part of result in the byte number that sends reference value.
Above method is in the time being respectively used to the first bluetooth equipment and the second bluetooth equipment; The method of the bluetooth low power loss communication of the first bluetooth equipment comprises the steps that (as shown in Figure 1): step S001 obtains and the maximum transmission unit value of the bluetooth equipment of this devices communicating, step S002 taking less of transmission reference value in the maximum transmission unit value of the maximum transmission unit value that gets and this equipment;
Step S003 is in the time sending data to the bluetooth equipment of this devices communicating, and first step S004 judges whether size of data to be sent is greater than transmission reference value, if be not more than transmission reference value, step S005 directly sends data to be sent; Otherwise Data Segmentation to be sent is become data block by step S006, the size of the each data block after cutting apart is less than or equal to transmission reference value, and then step S007 circulation sends the data block after cutting apart.
Further, obtain with the concrete steps of the maximum transmission unit value of the bluetooth equipment of this devices communicating and comprise: this equipment is connecting in the registration feature step of process with the bluetooth equipment of communicating by letter, read with the bluetooth equipment maximum transmission unit value feature of this devices communicating after obtain and the maximum transmission unit value of the bluetooth equipment of this devices communicating.
Further, the number of the data block after Data Segmentation to be sent is: after the byte number of data to be sent is added to the byte number of transmission reference value and deducts one, obtain median byte number, the number of data block is that median byte number is except obtain the value of the integer part of result in the byte number that sends reference value.
And above method is in the time being used in the second bluetooth equipment; This equipment, connecting in the registration feature step of process with the bluetooth equipment of communicating by letter, feeds back the maximum transmission unit value feature of this equipment.
Further, also comprise the steps: receiving after the data block of sending with the bluetooth equipment of this devices communicating, this equipment is counted data block and count results is replied to and the bluetooth equipment of this devices communicating.
Further, the data bit that described count results takies is 1-8 position.
Further, also comprise the steps S: receiving after the data block of sending with the bluetooth equipment of this devices communicating, the size information of the data block receiving is replied to and the bluetooth equipment of this devices communicating.
Further, the data bit that the size information of described data block takies is 6-15 position.
And the present invention also provides a kind of bluetooth equipment of bluetooth low power loss communication, for other bluetooth devices, comprise the first transceiver module, maximum transmission unit value acquisition module, send reference value and choose module and data segmentation module, wherein:
The first transceiver module is for receiving with the information of the bluetooth equipment of this devices communicating and sending data to and the bluetooth equipment of this devices communicating;
Maximum transmission unit value acquisition module is for obtaining and the maximum transmission unit value of the bluetooth equipment of this devices communicating;
Send reference value choose module for taking with the maximum transmission unit value of bluetooth equipment of this devices communicating and the maximum transmission unit value of this equipment less as transmission reference value;
Data segmentation module is used in while sending data to the bluetooth equipment of this devices communicating, first judges whether size of data to be sent is greater than transmission reference value, if be not more than transmission reference value, enable the first transceiver module and sends data to be sent; Otherwise Data Segmentation to be sent is become to data block, and the size of the each data block after cutting apart is less than or equal to transmission reference value, then circulation enables the first transceiver module and sends the data block after cutting apart.
Further, described maximum transmission unit value acquisition module comprises that maximum transmission unit value feature obtains submodule: for the registration feature process of the process that connects at this equipment and other bluetooth equipments, read with the maximum transmission unit value feature of the bluetooth equipment of this devices communicating after obtain and the maximum transmission unit value of the bluetooth equipment of this devices communicating.
And the present invention also provides a kind of bluetooth equipment of bluetooth low power loss communication, for other bluetooth devices, comprise the second transceiver module and maximum transmission unit value sending module; Wherein:
The second transceiver module is for receiving with the information of the bluetooth equipment of this devices communicating and sending data to and the bluetooth equipment of this devices communicating;
Maximum transmission unit value sending module for the maximum transmission unit value that sends this equipment to the bluetooth equipment of this devices communicating.
Further, described maximum transmission unit value sending module comprises that maximum transmission unit value feature sends submodule, maximum transmission unit value feature sends the registration feature step of submodule for the process that connects at this equipment and other bluetooth equipments, feeds back the maximum transmission unit value feature of this equipment.
Further, also comprise that data block count result replys module: for receiving after the data block of sending with the bluetooth equipment of this devices communicating, data block is counted and count results is replied to and the bluetooth equipment of this devices communicating.
Further, also comprise that data block size replys module: receive after the data block of sending with the bluetooth equipment of this devices communicating, the size information of the data block receiving is replied to and the bluetooth equipment of this devices communicating.
And a kind of system of bluetooth low power loss communication, comprise the first bluetooth equipment and the second bluetooth equipment, the first described bluetooth equipment is the bluetooth equipment of above-mentioned bluetooth low power loss communication, and the second described bluetooth equipment is the bluetooth equipment of the above-mentioned bluetooth low power loss communication that is different from the first bluetooth equipment.
Be different from prior art, technique scheme tool has the following advantages: the first bluetooth equipment is by getting the MTU of the second bluetooth equipment, and the selected reference value that sends, then all be less than transmission reference value sending when data, avoided transmission value excessive and cause the failure that the second bluetooth equipment receives and affect transmission speed; Or all transmit too small value at every turn and cause the prolongation in transmission time, thereby technique scheme improves the speed of the transmission of bluetooth low-power consumption.
Brief description of the drawings
Fig. 1 is the flow chart of the present invention's the first bluetooth equipment method;
Fig. 2 is the flow chart of the inventive method embodiment;
Fig. 3 is the method flow diagram that the embodiment of the present invention is obtained the second bluetooth equipment maximum transmission unit value;
Fig. 4 is the structural representation of system embodiment of the present invention.
Description of reference numerals:
1, the first bluetooth equipment,
10, the first transceiver module,
11, maximum transmission unit value acquisition module,
110, maximum transmission unit value feature is obtained submodule,
12, send reference value and choose module,
13, data segmentation module,
2, the second bluetooth equipment,
20, the second transceiver module,
21, maximum transmission unit value sending module,
210, maximum transmission unit value feature sends submodule,
22, data block count result is replied module
23, data block size is replied module.
Embodiment
By describe in detail technical scheme technology contents, structural feature, realized object and effect, below in conjunction with specific embodiment and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 2, the present embodiment provides a kind of method of bluetooth low power loss communication, for communicating by letter between the first bluetooth equipment and the second bluetooth equipment.Common bluetooth equipment can be equipment or the annex with bluetooth communication such as earphone, mobile phone, flat board, notebook computer, POS machine, because the present embodiment is applied to bluetooth low-power consumption, bluetooth equipment should be supported bluetooth low-power consumption, bluetooth equipment can be the first bluetooth equipment or the second bluetooth equipment in bluetooth low power loss communication, in the present embodiment to send describing as the first bluetooth equipment of data to be sent.According to the agreement of Bluetooth communication, it be just can carry out after two bluetooth equipments are set up communication connection that data between bluetooth equipment send, the data sending step of the present embodiment should occur in the first bluetooth equipment and the second bluetooth equipment is set up after communication connection, the mode that two bluetooth equipments establish a communications link is known technology, and the present embodiment does not repeat them here.
The method of the present embodiment is obtained the maximum transmission unit value of the second bluetooth equipment at step S101 the first bluetooth equipment, MTU (Maximum Transmission Unit is called for short MTU) refers to certain maximum data packet size that can pass through above one deck (taking byte as unit) of a kind of communication protocol.Then taking less of sending reference value in the maximum transmission unit value of the second bluetooth equipment and the maximum transmission unit value of the first bluetooth equipment.Sending determining of reference value can be by two maximum transmission unit values being compared to a less value of rear selection, if two maximum transmission unit values are identical, and optionally one.In the present embodiment, sending determining of reference value carries out as follows: the first bluetooth equipment judges at step S102 whether the maximum transmission unit value of the second bluetooth equipment is greater than the maximum transmission unit value of the first bluetooth equipment, if be greater than, enter step S103 and select the maximum transmission unit value of less the first bluetooth equipment for sending reference value, otherwise enter step S104 taking the maximum transmission unit value of the second less bluetooth equipment as sending reference value.
After transmission reference value is determined, the first bluetooth equipment is in the time that step S105 sends data to the second bluetooth equipment, first enter step S106 and judge whether size of data to be sent is greater than transmission reference value, if be not more than transmission reference value, the first bluetooth equipment enters step S107 and directly sends data to be sent to the second bluetooth equipment.Otherwise the first bluetooth equipment enters step S108 becomes data block by Data Segmentation to be sent, the size of the each data block after wherein cutting apart is less than or equal to transmission reference value, then the first bluetooth equipment enters step S109 circulation and sends data block after cutting apart to the second bluetooth equipment, the first bluetooth equipment sends next data block after sending a data block again, and circulation sends all data blocks successively.The second bluetooth equipment, receiving after each data block of the first bluetooth equipment, can obtain by its combination the data that the first bluetooth equipment sends.For the unpacking and the data packet group generated data after tearing open is had a wide range of applications in the existing communications field of data, it is prior art.
Above-described embodiment is by the confirmation of the maximum transmission unit value to the first bluetooth equipment and the second bluetooth equipment, and obtain sending reference value, in data transmission procedure under connecing, the data that single sends are all less than transmission reference value, avoided sending the first bluetooth equipment single and sent the rear transmission speed that affects of data transmission failure excessive and that cause, the scheme of above-described embodiment has laser propagation effect relatively preferably in transmission data procedures.And when to Data Segmentation, the size of data block can be cut into and equal or be slightly less than transmission reference value, can make as much as possible the number of times of transmission reduce, can reduce the time that sends data.
In above-described embodiment, the mode that step S101 the first bluetooth equipment obtains the second bluetooth equipment can be multiple, as after setting up (communication) at the first bluetooth equipment and the second bluetooth equipment and being connected, the first bluetooth equipment is by sending after an inquiry request, and then the maximum transmission unit value of self is replied to the first bluetooth equipment by the second bluetooth equipment.And in preferred embodiment, step S101 is specifically as follows: the first bluetooth equipment is connecting in the registration feature step of process with the second bluetooth equipment, the second bluetooth equipment feeds back the second bluetooth equipment maximum transmission unit value feature, and the first bluetooth equipment obtains the second bluetooth equipment maximum transmission unit value after reading the second bluetooth equipment maximum transmission unit value feature.Wherein, the concept of feature can be with reference to the Characteristic of IOS or Android, as long as playing all in the present embodiment in the scope of feature of identity function with above-mentioned Characteristic.Bluetooth low-power consumption connection procedure below in conjunction with existing the first bluetooth equipment and the second bluetooth equipment describes, as shown in Figure 3, first enter step S121 the first bluetooth equipment and scan the second bluetooth equipment, after scanning, enter step S122 the first bluetooth equipment and connect the second bluetooth equipment.Then enter step S123 the first bluetooth equipment and obtain the second bluetooth equipment service, the first bluetooth equipment can select to obtain all services of the second bluetooth equipment, also can only obtain the service of concern, and wherein about transfer of data, relevant service should be obtained.Then enter step S124 the first bluetooth equipment and obtain the feature of the second bluetooth equipment, with service class seemingly, all features under the service of can obtaining of the first bluetooth equipment, also can only obtain the feature of concern, wherein, should obtain the feature about transfer of data.After obtaining, enter registration feature step, be step S125 the first bluetooth equipment registration feature, now the first bluetooth equipment can get the second bluetooth equipment maximum transmission unit value from the second bluetooth equipment maximum transmission unit value feature of the second bluetooth equipment feedback.After registration feature, the first bluetooth equipment can carry out other operations, as sent cutting data, sending data or packet etc.Obtain maximum transmission unit value by registration feature step, avoided additionally going for and asked and obtain the step of MTU, thereby accelerated the speed from starting to establish a connection to transfer of data.
For the verification of carrying out to the data that send over, further, in some preferred embodiment, the second bluetooth equipment receives after the data block that the first bluetooth equipment sends, and the second bluetooth equipment is counted data block and count results is replied to the first bluetooth equipment.In existing bluetooth low power loss communication process, the first bluetooth equipment sends after a data block, wait for after the return information (being the Notify notice of WriteResponse) of the second bluetooth equipment, the first bluetooth equipment can be known the situation of the data that the second bluetooth equipment receives by return information, can know the situation of the sequence that the second bluetooth equipment receives by counting the first bluetooth equipment to data block, thereby know whether the data block that the second bluetooth equipment receives is the data block sending.The first bluetooth equipment can carry out the transmission of next data block after receiving return information, then wait for the return information of next data block, circulation, until data block is sent, if verification is failed, can resends at once or wait until after all data blocks are sent and send out.The figure place of the counting of data block is minimum can be 1, adopts 1010 to loop like this counting judgement, can certainly be multidigit.But too much figure place can take larger return information figure place, thereby cause the amount of the second bluetooth equipment return information excessive and increase the time of replying, reduce the speed that data block sends, the data bit that preferably count results takies is 1-8 position.In preferred embodiment, can adopt the count results of 4 bit data positions as data block.Certainly, count results shared position in return information can be arbitrarily, as a high position or low level.To the counting of data block can be cumulative can be also regressive, the present embodiment does not limit this.
Data are in the process of sending and receiving, may be because of the interference of signal, weak and cause packet loss, the mistake etc. of data block, in order to address the above problem, in certain embodiments, the second bluetooth equipment receives after the data block that the first bluetooth equipment sends, and the size information of the data block receiving is replied to the first bluetooth equipment by the second bluetooth equipment.The first bluetooth equipment is compared and can be known whether the data block that the second bluetooth equipment receives is correct data block by the size information of the data block to the size information of replying and transmission, when the data block size that receives when the second bluetooth equipment is incorrect, the first bluetooth equipment can carry out the repeating transmission of data block, can be carry out at once or wait for after all data blocks are sent and carrying out the opportunity of retransmitting, thereby make the second bluetooth equipment receive correct data block.The data bit shared to count results is similar, the shared too large words of data bit of size information can take excessive return information figure place, and increased turnaround time, but too small words cannot send larger data, and the data bit that preferably the size information of data block takies is 6-15 position.Can adopt in a preferred embodiment 12.Equally, the present embodiment does not limit size information shared position in return information.
Above-mentioned the first bluetooth equipment is in the process of transmission data block, if when the situation that generation the first bluetooth equipment and the second bluetooth equipment disconnect, the first bluetooth equipment can be received the notice disconnecting, now can finish transmission flow, that has avoided sending waiting as long for and the resource of wasting equipment.And if due to Communication Jamming or fault; in short time, the second bluetooth equipment cannot receive data block; the second bluetooth equipment suspends return information; the first bluetooth equipment suspends data transmission; until the second bluetooth equipment is replied message can continue reception & disposal data time again, prevent that the first bluetooth equipment and the second bluetooth equipment processing speed are not reciprocity and cause loss of data.
In above-mentioned all embodiment, if the first bluetooth equipment can be as far as possible identical with transmission reference value by the data block after cutting apart in the time of partition data, become quantity few data block of trying one's best by Data Segmentation, it is less that the first bluetooth equipment sends data to time of the second bluetooth equipment, thereby make the traffic rate can be high as much as possible.Preferably scheme is when cutting apart data, all cut apart to send reference value, the data block of this scheme after cutting apart is: the byte number of data to be sent is added after sending the byte number of reference value and deducting one and obtains median byte number, and the number of data block is that median byte number is except obtain the value of the integer part of result in the byte number that sends reference value.If represent the byte number of data to be sent with M, N is the byte number that sends reference value, preferably cuts apart rear data block number for (M+N-1)/N.Can certainly adopt another partitioning scheme, the mode of on average cutting apart, becomes Data Segmentation the data block of formed objects, same, and the data block number after preferably cutting apart is also (M+N-1)/N.
To sum up, the bluetooth low power loss communication process of the above all embodiment can realize and transmit relatively efficiently result.
And the present invention also provides a kind of bluetooth equipment of bluetooth low power loss communication, as shown in Figure 4, be the first bluetooth equipment 1 in the present embodiment, be used for and other bluetooth devices, for convenience of description, other bluetooth equipments are the second bluetooth equipment 2 in the present embodiment, and the bluetooth equipment of communicating by letter with this equipment (the first bluetooth equipment 1) is that the second bluetooth equipment 2, the first bluetooth equipments 1 are also for sending data to the second bluetooth equipment 2.The first bluetooth equipment 1 comprises the first transceiver module 10, maximum transmission unit value acquisition module 11, send reference value chooses module 12 and data segmentation module 13.The first transceiver module 10, for receiving the information of the second bluetooth equipment 2 and sending data to the second bluetooth equipment 2, is bluetooth communication; Maximum transmission unit value acquisition module 11 is for obtaining the maximum transmission unit value of the second bluetooth equipment; Send reference value choose module 12 for the maximum transmission unit value of the maximum transmission unit value taking the second bluetooth equipment and the first bluetooth equipment less be transmission reference value; Data segmentation module 13 is used in while sending data to the second bluetooth equipment, first judges whether size of data to be sent is greater than transmission reference value, if be not more than transmission reference value, enable the first transceiver module and sends data to be sent; Otherwise Data Segmentation to be sent is become to data block, and the size of the each data block after cutting apart is less than or equal to transmission reference value, then circulation enables the first transceiver module and sends the data block after cutting apart.
The first bluetooth equipment 1 is sending data to the second bluetooth equipment 2, data segmentation module 13 is to becoming to be less than the maximum transmission unit value of the second bluetooth equipment 2 by Data Segmentation, avoid the excessive data of transmission and caused the failure of transmission, thereby avoid waste of time in transmitting procedure, improved transmission rate.
The first bluetooth equipment 1 can obtain by obtaining characteristic value the maximum transmission unit value of the second bluetooth equipment, and similarly, the first bluetooth equipment 1 reads the second bluetooth equipment reply message or write-in characteristic by reading characteristic value send data.Feature (Characteristic) is the substance of Bluetooth communication, bluetooth equipment receives or sends data by writing or read feature, while sending data, should there is the data of transmission feature used, reading reply message has the feature that reads reply message, and maximum transmission unit value has the feature of maximum transmission unit value.In certain embodiments, maximum transmission unit value acquisition module 11 comprises that maximum transmission unit value feature obtains submodule 110: for the connect registration feature process of process of the second bluetooth equipment, obtain the second bluetooth equipment maximum transmission unit value after reading the second bluetooth equipment maximum transmission unit value feature.In registration feature process, avoid after communication connection is set up, going again send inquiry and accept the step of replying, reduce and obtained the second bluetooth equipment maximum transmission unit value step, improve the efficiency of transmission.
And the present embodiment also provides a kind of bluetooth equipment of bluetooth low power loss communication, be the second bluetooth equipment 2 in the present embodiment, as shown in Figure 4, be used for and other bluetooth devices, for convenience of description, other bluetooth equipments are the first bluetooth equipment 1 in the present embodiment, and the bluetooth equipment of communicating by letter with this equipment (the second bluetooth equipment 2) is the first bluetooth equipment 1.Comprise the second transceiver module 20 and maximum transmission unit value sending module 21.The second transceiver module 20, for receiving the information of the first bluetooth equipment 1 and sending data to the first bluetooth equipment 1, is bluetooth communication.Maximum transmission unit value sending module 21 for the maximum transmission unit value that sends the second bluetooth equipment to the first bluetooth equipment.
The second bluetooth equipment 2 is by informing the maximum transmission unit value of the first bluetooth equipment 1 second bluetooth equipment, make the first bluetooth equipment 1 can avoid sending the data of the maximum transmission unit value that is greater than the second bluetooth equipment, avoid the failure of transmission, improve transmission reliability.
In order to reduce the step of transmission, further, in some preferred embodiment, maximum transmission unit value 21 sending modules comprise that maximum transmission unit value feature sends submodule 210, maximum transmission unit value feature sends the registration feature step of submodule 210 for the process that connects at the first bluetooth equipment and the second bluetooth equipment, feeds back the second bluetooth equipment maximum transmission unit value feature.Can save the query steps of follow-up maximum transmission unit value by the feedback of feature, save the transmission time, improve transmission speed.
And in order to realize the data message receiving of informing the first bluetooth equipment 1 second bluetooth equipment 2, in certain embodiments, the second bluetooth equipment 2 also comprises data block count result reply module 22.Data block count result reply module 22 for the data block that receives the first bluetooth equipment and send after, data block is counted and count results is replied to the first bluetooth equipment 1.If the count results of the reply that the first bluetooth equipment 1 receives with send inconsistent, can retransmit, thereby ensure the reliable of communication.
And realize the repeating transmission of data in order to there is data-bag lost when the communication failure in the situation that, in further embodiments, the second bluetooth equipment 2 also comprises data block size reply module 23: after the data block that reception the first bluetooth equipment sends, the size information of the data block receiving is replied to the first bluetooth equipment.If the size information of the reply that the first bluetooth equipment 1 receives with send inconsistent, can retransmit, ensure the reliable of communication.
And the present invention also provides a kind of system of bluetooth low power loss communication, as shown in Figure 4, comprise the first bluetooth equipment 1 and the second bluetooth equipment 2, the first bluetooth equipment 1 is that the first bluetooth equipment 1, the second bluetooth equipment 2 of above-mentioned bluetooth low power loss communication is the second bluetooth equipment 2 of above-mentioned bluetooth low power loss communication.Use the system of above-mentioned the first bluetooth equipment 1 and the second bluetooth equipment 2 to there is good data transmission credibility and higher message transmission rate.
All or part of step in the method that above-described embodiment relates to can be carried out the hardware that instruction is relevant by program and complete, described program can be stored in the storage medium that computer equipment can read, for carrying out all or part of step described in the various embodiments described above method.Described computer equipment, for example: personal computer, server, the network equipment, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, for example: RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, webserver stores, network cloud storage etc.
The foregoing is only embodiments of the invention; not thereby limit scope of patent protection of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (14)

1. a method for bluetooth low power loss communication, for communicating by letter between bluetooth equipment, is characterized in that, comprises step:
The first bluetooth equipment obtains the maximum transmission unit value of the second bluetooth equipment, and taking less of sending reference value in the maximum transmission unit value of the second bluetooth equipment and the maximum transmission unit value of the first bluetooth equipment;
The first bluetooth equipment, in the time sending data to the second bluetooth equipment, first judges whether size of data to be sent is greater than transmission reference value, if be not more than transmission reference value, directly sends data to be sent; Otherwise Data Segmentation to be sent is become to data block, and the size of the each data block after cutting apart is less than or equal to transmission reference value, then circulation sends the data block after cutting apart.
2. the method for bluetooth low power loss communication according to claim 1, it is characterized in that: the concrete steps that described the first bluetooth equipment obtains the maximum transmission unit value of the second bluetooth equipment comprise: the first bluetooth equipment is connecting in the registration feature step of process with the second bluetooth equipment, the second bluetooth equipment feeds back the second bluetooth equipment maximum transmission unit value feature, and the first bluetooth equipment obtains the second bluetooth equipment maximum transmission unit value after reading the second bluetooth equipment maximum transmission unit value feature.
3. the method for bluetooth low power loss communication according to claim 1, is characterized in that: the second bluetooth equipment receives after the data block that the first bluetooth equipment sends, and the second bluetooth equipment is counted data block and count results is replied to the first bluetooth equipment.
4. the method for bluetooth low power loss communication according to claim 3, is characterized in that: the data bit that described count results takies is 1-8 position.
5. according to the method for the bluetooth low power loss communication described in claim 1 or 3, it is characterized in that: the second bluetooth equipment receives after the data block that the first bluetooth equipment sends, and the size information of the data block receiving is replied to the first bluetooth equipment by the second bluetooth equipment.
6. the method for bluetooth low power loss communication according to claim 5, is characterized in that: the data bit that the size information of described data block takies is 6-15 position.
7. the method for bluetooth low power loss communication according to claim 1, it is characterized in that: the number of the data block after Data Segmentation to be sent is: after the byte number of data to be sent is added to the byte number of transmission reference value and deducts one, obtain median byte number, the number of data block is that median byte number is except obtain the value of the integer part of result in the byte number that sends reference value.
8. a bluetooth equipment for bluetooth low power loss communication, for other bluetooth devices, it is characterized in that: comprise the first transceiver module, maximum transmission unit value acquisition module, send reference value and choose module and data segmentation module, wherein:
The first transceiver module is for receiving with the information of the bluetooth equipment of this devices communicating and sending data to and the bluetooth equipment of this devices communicating;
Maximum transmission unit value acquisition module is for obtaining and the maximum transmission unit value of the bluetooth equipment of this devices communicating;
Send reference value choose module for taking with the maximum transmission unit value of bluetooth equipment of this devices communicating and the maximum transmission unit value of this equipment less as transmission reference value;
Data segmentation module is used in while sending data to the bluetooth equipment of this devices communicating, first judges whether size of data to be sent is greater than transmission reference value, if be not more than transmission reference value, enable the first transceiver module and sends data to be sent; Otherwise Data Segmentation to be sent is become to data block, and the size of the each data block after cutting apart is less than or equal to transmission reference value, then circulation enables the first transceiver module and sends the data block after cutting apart.
9. the bluetooth equipment of bluetooth low power loss communication according to claim 8, it is characterized in that: described maximum transmission unit value acquisition module comprises that maximum transmission unit value feature obtains submodule: for the registration feature process of the process that connects at this equipment and other bluetooth equipments, read with the maximum transmission unit value feature of the bluetooth equipment of this devices communicating after obtain and the maximum transmission unit value of the bluetooth equipment of this devices communicating.
10. a bluetooth equipment for bluetooth low power loss communication, for other bluetooth devices, it is characterized in that: comprise the second transceiver module and maximum transmission unit value sending module; Wherein:
The second transceiver module is for receiving with the information of the bluetooth equipment of this devices communicating and sending data to and the bluetooth equipment of this devices communicating;
Maximum transmission unit value sending module for the maximum transmission unit value that sends this equipment to the bluetooth equipment of this devices communicating.
The bluetooth equipment of 11. bluetooth low power loss communications according to claim 10, it is characterized in that: described maximum transmission unit value sending module comprises that maximum transmission unit value feature sends submodule, maximum transmission unit value feature sends the registration feature step of submodule for the process that connects at this equipment and other bluetooth equipments, feeds back the maximum transmission unit value feature of this equipment.
12. according to the bluetooth equipment of the bluetooth low power loss communication described in claim 10 or 11, it is characterized in that: also comprise that data block count result replys module: for receiving after the data block of sending with the bluetooth equipment of this devices communicating, data block is counted and count results is replied to and the bluetooth equipment of this devices communicating.
13. according to the bluetooth equipment of the bluetooth low power loss communication described in claim 10 or 11, it is characterized in that: also comprise that data block size replys module: receive after the data block of sending with the bluetooth equipment of this devices communicating, the size information of the data block receiving is replied to and the bluetooth equipment of this devices communicating.
The system of 14. 1 kinds of bluetooth low power loss communications, comprise the first bluetooth equipment and the second bluetooth equipment, it is characterized in that: the first described bluetooth equipment is the bluetooth equipment of the bluetooth low power loss communication described in claim 8 or 9, the second described bluetooth equipment is the bluetooth equipment of the bluetooth low power loss communication described in claim 10 to 13 any one.
CN201410323063.0A 2014-07-08 2014-07-08 Bluetooth low-power-consumption communication method, Bluetooth equipment and system Pending CN104135339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410323063.0A CN104135339A (en) 2014-07-08 2014-07-08 Bluetooth low-power-consumption communication method, Bluetooth equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410323063.0A CN104135339A (en) 2014-07-08 2014-07-08 Bluetooth low-power-consumption communication method, Bluetooth equipment and system

Publications (1)

Publication Number Publication Date
CN104135339A true CN104135339A (en) 2014-11-05

Family

ID=51807879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410323063.0A Pending CN104135339A (en) 2014-07-08 2014-07-08 Bluetooth low-power-consumption communication method, Bluetooth equipment and system

Country Status (1)

Country Link
CN (1) CN104135339A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106255047A (en) * 2016-09-20 2016-12-21 广东乐心医疗电子股份有限公司 Communication method of low-power-consumption Bluetooth self-adaptive intelligent mobile terminal
CN106255040A (en) * 2016-08-18 2016-12-21 长沙丰灼通讯科技有限公司 Improve the method for bluetooth BLE transmission speed on IOS terminal unit
CN106341445A (en) * 2015-07-06 2017-01-18 麦恩电子有限公司 Low energy data streaming service
CN106851622A (en) * 2016-12-28 2017-06-13 歌尔科技有限公司 A kind of over-the-air upgrade method, device, central apparatus and ancillary equipment
CN106921472A (en) * 2015-12-28 2017-07-04 镇江高科信息科技有限公司 A kind of low-power consumption short-range radio technology equipment
CN106936538A (en) * 2015-12-29 2017-07-07 北京大唐高鸿数据网络技术有限公司 The method that MAC layer data transmission efficiency is improved in vehicular ad hoc net
CN107071707A (en) * 2017-03-31 2017-08-18 北京小米移动软件有限公司 Data transmission method and device
CN107734002A (en) * 2017-09-25 2018-02-23 西安法士特汽车传动有限公司 The reception device and its method of a kind of blue-teeth data
CN108173984A (en) * 2016-12-08 2018-06-15 深圳玩时科技有限公司 The connection control method of machine screen separation
CN109041036A (en) * 2018-10-29 2018-12-18 青岛海信传媒网络技术有限公司 WIFI connection method and equipment
CN109246668A (en) * 2018-09-07 2019-01-18 国网江苏省电力有限公司苏州供电分公司 A kind of communication equipment and a kind of substation equipment detection system using it
CN109298846A (en) * 2018-09-30 2019-02-01 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
US10257104B2 (en) * 2015-05-28 2019-04-09 Sony Mobile Communications Inc. Terminal and method for audio data transmission
CN111065084A (en) * 2020-02-25 2020-04-24 北京百瑞互联技术有限公司 Method for improving low-power-consumption Bluetooth transmission speed
CN111417099A (en) * 2020-04-10 2020-07-14 北京百瑞互联技术有限公司 Method and system for preventing Bluetooth connection disconnection
CN112702143A (en) * 2020-12-16 2021-04-23 歌尔光学科技有限公司 Dial data management method and device, wearable device and storage medium
CN113157300A (en) * 2021-05-19 2021-07-23 深圳Tcl新技术有限公司 Data processing method, device and storage medium
CN113242539A (en) * 2021-05-12 2021-08-10 珠海极海半导体有限公司 Link control method and device, transparent transmission device and BLE chip
CN113423093A (en) * 2021-05-25 2021-09-21 江铃汽车股份有限公司 Bluetooth communication method and system based on vehicle-mounted terminal
CN114079629A (en) * 2020-08-12 2022-02-22 华为技术有限公司 Maximum Transmission Unit (MTU) determining method, device, equipment and storage medium
CN115664468A (en) * 2022-09-21 2023-01-31 深圳市酷开网络科技股份有限公司 Data transmission method and device of Bluetooth playing device, terminal device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905456A (en) * 2005-07-27 2007-01-31 华为技术有限公司 Data frame transmission processing method
WO2008006629A1 (en) * 2006-07-12 2008-01-17 Siemens Aktiengesellschaft Method for transmitting packets in a network
CN101499827A (en) * 2009-03-03 2009-08-05 青岛海信移动通信技术股份有限公司 Mobile terminal and Bluetooth communication method thereof
CN103248452A (en) * 2012-02-10 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Data sending device, data receiving device, terminal and data transmission method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905456A (en) * 2005-07-27 2007-01-31 华为技术有限公司 Data frame transmission processing method
WO2008006629A1 (en) * 2006-07-12 2008-01-17 Siemens Aktiengesellschaft Method for transmitting packets in a network
CN101499827A (en) * 2009-03-03 2009-08-05 青岛海信移动通信技术股份有限公司 Mobile terminal and Bluetooth communication method thereof
CN103248452A (en) * 2012-02-10 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Data sending device, data receiving device, terminal and data transmission method

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10257104B2 (en) * 2015-05-28 2019-04-09 Sony Mobile Communications Inc. Terminal and method for audio data transmission
CN106341445A (en) * 2015-07-06 2017-01-18 麦恩电子有限公司 Low energy data streaming service
CN106341445B (en) * 2015-07-06 2021-01-12 麦恩电子有限公司 System for low energy consumption data stream transmission service
CN106921472A (en) * 2015-12-28 2017-07-04 镇江高科信息科技有限公司 A kind of low-power consumption short-range radio technology equipment
CN106936538A (en) * 2015-12-29 2017-07-07 北京大唐高鸿数据网络技术有限公司 The method that MAC layer data transmission efficiency is improved in vehicular ad hoc net
CN106255040A (en) * 2016-08-18 2016-12-21 长沙丰灼通讯科技有限公司 Improve the method for bluetooth BLE transmission speed on IOS terminal unit
CN106255047A (en) * 2016-09-20 2016-12-21 广东乐心医疗电子股份有限公司 Communication method of low-power-consumption Bluetooth self-adaptive intelligent mobile terminal
CN108173984A (en) * 2016-12-08 2018-06-15 深圳玩时科技有限公司 The connection control method of machine screen separation
CN106851622A (en) * 2016-12-28 2017-06-13 歌尔科技有限公司 A kind of over-the-air upgrade method, device, central apparatus and ancillary equipment
CN107071707A (en) * 2017-03-31 2017-08-18 北京小米移动软件有限公司 Data transmission method and device
CN107734002B (en) * 2017-09-25 2020-07-17 西安法士特汽车传动有限公司 Bluetooth data receiving device and method thereof
CN107734002A (en) * 2017-09-25 2018-02-23 西安法士特汽车传动有限公司 The reception device and its method of a kind of blue-teeth data
CN109246668A (en) * 2018-09-07 2019-01-18 国网江苏省电力有限公司苏州供电分公司 A kind of communication equipment and a kind of substation equipment detection system using it
CN109298846A (en) * 2018-09-30 2019-02-01 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN109041036A (en) * 2018-10-29 2018-12-18 青岛海信传媒网络技术有限公司 WIFI connection method and equipment
CN111065084A (en) * 2020-02-25 2020-04-24 北京百瑞互联技术有限公司 Method for improving low-power-consumption Bluetooth transmission speed
CN111417099A (en) * 2020-04-10 2020-07-14 北京百瑞互联技术有限公司 Method and system for preventing Bluetooth connection disconnection
CN114079629A (en) * 2020-08-12 2022-02-22 华为技术有限公司 Maximum Transmission Unit (MTU) determining method, device, equipment and storage medium
CN114079629B (en) * 2020-08-12 2023-02-03 华为技术有限公司 Maximum Transmission Unit (MTU) determining method, device, equipment and storage medium
CN112702143A (en) * 2020-12-16 2021-04-23 歌尔光学科技有限公司 Dial data management method and device, wearable device and storage medium
CN113242539B (en) * 2021-05-12 2022-09-20 珠海极海半导体有限公司 Link control method and device, transparent transmission device and BLE chip
CN113242539A (en) * 2021-05-12 2021-08-10 珠海极海半导体有限公司 Link control method and device, transparent transmission device and BLE chip
CN113157300A (en) * 2021-05-19 2021-07-23 深圳Tcl新技术有限公司 Data processing method, device and storage medium
CN113423093A (en) * 2021-05-25 2021-09-21 江铃汽车股份有限公司 Bluetooth communication method and system based on vehicle-mounted terminal
CN113423093B (en) * 2021-05-25 2023-04-14 江铃汽车股份有限公司 Bluetooth communication method and system based on vehicle-mounted terminal
CN115664468A (en) * 2022-09-21 2023-01-31 深圳市酷开网络科技股份有限公司 Data transmission method and device of Bluetooth playing device, terminal device and medium
CN115664468B (en) * 2022-09-21 2023-11-21 深圳市酷开网络科技股份有限公司 Data transmission method and device of Bluetooth playing equipment, terminal equipment and medium

Similar Documents

Publication Publication Date Title
CN104135339A (en) Bluetooth low-power-consumption communication method, Bluetooth equipment and system
CN110089040B (en) Data transmission method and sending end equipment
US10868583B2 (en) Communication apparatus, communication method, and program
CN101233699B (en) Method and equipment for executing NFC
US8713585B2 (en) Communication apparatus, communication method, and program for exchanging data with a target
US9413427B2 (en) Emulation of multiple devices in an NFC device
CN104135741A (en) Method of Bluetooth low energy communication, Bluetooth devices and system
CN103503323B (en) Radio frequency communication method, device, and terminal equipment for near field communication
US9942092B2 (en) Method and an apparatus for controlling messages between host and controller
US8548001B2 (en) Method and an apparatus for controlling messages between host and controller
US10789180B2 (en) SPI-based data transmission method and device
KR102085175B1 (en) Method, apparatus, and system for adjusting data packet length in near field communication (NCF)
US9628149B2 (en) Emulation of multiple NFC devices inside a communication device
CN105101370A (en) Data connection method and device, and WIFI module
CN105550868A (en) Mobile payment method and apparatus
CN101800987A (en) Intelligent card authentication device and method
CN111405534B (en) Information transmission method, first terminal and computer storage medium
CN107636982A (en) Method, near field communication controller and the terminal of data frame route processing
CN101208918A (en) Contending for the medium with a mixture of backwards-compatible wireless devices
CN104703291A (en) MiFi-based communication method and relevant MiFi
EP3293886B1 (en) Radio frequency finding method, chip and device
US9077737B2 (en) Wireless communication system, information and communication terminal, portable telephone, reader/writer, communication method and computer program
CN107466018A (en) The data transferring method and terminal device of a kind of terminal device
CN106921425A (en) A kind of data forwarding method, device and equipment
EP2802179B1 (en) Concurrent activation and data exchange with multiple NFC-A devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141105

RJ01 Rejection of invention patent application after publication