CN110446193A - The treating method and apparatus of bluetooth data packets - Google Patents
The treating method and apparatus of bluetooth data packets Download PDFInfo
- Publication number
- CN110446193A CN110446193A CN201910576690.8A CN201910576690A CN110446193A CN 110446193 A CN110446193 A CN 110446193A CN 201910576690 A CN201910576690 A CN 201910576690A CN 110446193 A CN110446193 A CN 110446193A
- Authority
- CN
- China
- Prior art keywords
- bluetooth equipment
- bluetooth
- channel quality
- type
- equipment
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the present application provides a kind for the treatment of method and apparatus of bluetooth data packets, it include: the first bluetooth equipment before the request switch data Packet type according to the second bluetooth equipment, determine whether the channel quality for the bluetooth channel that the first bluetooth equipment and the second bluetooth devices use meets preset channel quality requirement, when channel quality meets preset channel quality requirement, type of data packet is switched into Second Type from the first kind.When the first bluetooth equipment and the second bluetooth equipment establish bluetooth connection again, the first bluetooth equipment is according to Second Type and the second bluetooth devices.This method matches the Second Type after switching with the processing capacity of the second bluetooth equipment, when the first bluetooth equipment and the second bluetooth equipment establish bluetooth connection again, first bluetooth equipment is according to Second Type and the second bluetooth devices, so as to effectively avoid the problem that leading to data-bag lost since the processing capacity of bluetooth equipment is limited.
Description
Technical field
This application involves bluetooth (Bluetooth) technology more particularly to a kind for the treatment of method and apparatus of bluetooth data packets.
Background technique
After mobile phone and bluetooth equipment (such as bluetooth headset or vehicle-mounted) are connect, the ability of bluetooth equipment support can be obtained
Feature, bluetooth equipment support ability characteristics in include bluetooth equipment support data packet type, mobile phone is according to bluetooth equipment
The size of the data packet of the type setting transmission of the data packet of support.
The type of data packet includes 1M (million), 2M and 3M at present, wherein 1M, 2M and 3M indicate the size of data packet, usually
Transmission rate is higher, and the data packet used is bigger.But the type of the data packet of mobile phone transmission may be with bluetooth equipment to data
The processing capacity of packet mismatches, and bluetooth equipment is caused packet loss phenomenon occur.
Summary of the invention
The application provides a kind for the treatment of method and apparatus of bluetooth data packets, can reduce the packet loss phenomenon of bluetooth equipment.
The application first aspect provides a kind of Bluetooth system, including the first bluetooth equipment and the second bluetooth equipment, and described
One bluetooth equipment obtains the type of data packet that second bluetooth equipment is supported, the type of data packet includes the first kind and the
Two types, it is described in response to the first trigger event according to the first kind the first data of transmission to second bluetooth equipment
Second bluetooth equipment sends the first request to first bluetooth equipment, and first request switches the first kind for requesting
Type.
In response to first request, first bluetooth equipment determines first bluetooth equipment and second bluetooth
The channel quality of bluetooth channel that equipment communication uses meets preset channel quality requirement, sends the according to the Second Type
Two data are to second bluetooth equipment, when first bluetooth equipment and second bluetooth equipment establish bluetooth connection again
When, first bluetooth equipment is according to the Second Type and second bluetooth devices.
Since the first bluetooth equipment is in the case where the channel quality of bluetooth channel meets preset channel quality requirement,
Type of data packet is switched into Second Type from the first kind, so that the processing of Second Type and the second bluetooth equipment after switching
Ability matching, when the first bluetooth equipment and the second bluetooth equipment establish bluetooth connection again, the first bluetooth equipment is according to second
Type and the second bluetooth devices, so as to effectively avoid the first bluetooth equipment and the second bluetooth equipment from establishing bluetooth again
After connection, due to the processing capacity of bluetooth equipment limited the problem of leading to data-bag lost.
In a kind of illustrative mode, in response to first request, first bluetooth equipment determines that described first is blue
The channel quality for the bluetooth channel that tooth equipment and second bluetooth devices use meets preset channel quality requirement, packet
It includes:
First bluetooth equipment obtains the channel quality information of the bluetooth channel, the channel quality information include with
At least one of lower parameter: the frequency of the received signal strength indicator RSSI of second bluetooth equipment, switch data Packet type
The Packet Error Ratio of rate, the buffer size of transmit queue, the number of retransmissions of data packet and data packet, the first bluetooth equipment root
According to the channel quality information and the channel quality requirement, determine that the channel quality of the bluetooth channel meets the channel matter
Amount requires.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
The first bluetooth equipment is stated according to the channel quality information and the channel quality requirement, determines the channel matter of the bluetooth channel
Amount meets the channel quality requirement, comprising: described when the RSSI of second bluetooth equipment is greater than preset RSSI threshold value
First bluetooth equipment determines that the channel quality of the bluetooth channel meets the channel quality requirement.
In a kind of illustrative mode, first bluetooth equipment is according to the channel quality information and the channel quality
It is required that determining that the channel quality of the bluetooth channel meets the channel quality requirement, comprising: when second bluetooth equipment
When RSSI is greater than preset RSSI threshold value, first bluetooth equipment judges the switch data Packet type of second bluetooth equipment
At least one of frequency, the buffer size of transmit queue, the number of retransmissions of data packet and the Packet Error Ratio of data packet be
It is no to meet corresponding threshold value, when the frequency of the switch data Packet type of second bluetooth equipment, the buffer area of transmit queue are big
When at least one of small, data packet number of retransmissions and the Packet Error Ratio of data packet meet corresponding threshold value, described first is blue
Tooth equipment determines that the channel quality of the bluetooth channel meets the channel quality requirement.
In a kind of illustrative mode, first bluetooth equipment obtains the data packet class that second bluetooth equipment is supported
Type, comprising: first bluetooth equipment sends the second request to second bluetooth equipment, and second request is for requesting
The ability characteristics parameter of the second bluetooth equipment support is stated, second bluetooth equipment sends described the to first bluetooth equipment
Two request responses, it is described second request response in include second bluetooth equipment support ability characteristics parameter, it is described
It include the type of data packet that second bluetooth equipment is supported in the ability characteristics parameter that second bluetooth equipment is supported.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
State the RSSI that the first bluetooth equipment obtains second bluetooth equipment, comprising: first bluetooth equipment is to second bluetooth
Equipment sends third request, RSSI of the third request for the second bluetooth equipment described in request, second bluetooth
Equipment sends the response that the third is requested to first bluetooth equipment, includes described second in the response of the third request
The RSSI of bluetooth equipment.
In a kind of illustrative mode, first bluetooth equipment sends the second data to described according to the Second Type
Before second bluetooth equipment, first bluetooth equipment sends the response of first request, institute to second bluetooth equipment
Stating includes the Second Type in the response of the first request.
In a kind of illustrative mode, when first bluetooth equipment and second bluetooth equipment are established bluetooth again and connected
Before connecing, first bluetooth equipment saves the mark and the corresponding relationship of the Second Type of second bluetooth equipment.Phase
It answers, first bluetooth equipment determines that described first is blue according to the mark of the corresponding relationship and second bluetooth equipment
The type of data packet that tooth equipment and second bluetooth devices use is the Second Type, uses the Second Type pair
The data packet answered sends data to first bluetooth equipment.
In a kind of illustrative mode, when first bluetooth equipment and second bluetooth equipment are established bluetooth again and connected
After connecing, first bluetooth equipment sends data to first bluetooth equipment using the corresponding data packet of the Second Type
Before, first bluetooth equipment sends a notification message to second bluetooth equipment, and the notification message is described for notifying
The type of data packet that first bluetooth equipment and second bluetooth devices use is the Second Type.
In a kind of illustrative mode, first bluetooth equipment includes host and Bluetooth chip controller, and described first
Bluetooth equipment obtains the channel quality information of the bluetooth channel, comprising: the Bluetooth chip controller obtains the bluetooth letter
The channel quality information of the bluetooth channel is sent to the master by the channel quality information in road, the Bluetooth chip controller
Machine, the host determine the channel quality of the bluetooth channel according to the channel quality information and the channel quality requirement
Meet the channel quality requirement.
A kind of processing method of bluetooth data packets is provided in terms of the application two, comprising: it is blue that the first bluetooth equipment obtains second
The type of data packet that tooth equipment is supported, the type of data packet includes the first kind and Second Type, according to the first kind
The first data are sent to second bluetooth equipment, receive the first request that second bluetooth equipment is sent, described first asks
It asks for requesting to switch the first kind, in response to first request, first bluetooth equipment determines that described first is blue
The channel quality for the bluetooth channel that tooth equipment and second bluetooth devices use meets preset channel quality requirement, root
The second data are sent to second bluetooth equipment according to the Second Type.When first bluetooth equipment and second bluetooth
When equipment establishes bluetooth connection again, first bluetooth equipment is logical according to the Second Type and second bluetooth equipment
Letter.
In a kind of illustrative mode, in response to first request, first bluetooth equipment determines that described first is blue
The channel quality for the bluetooth channel that tooth equipment and second bluetooth devices use meets preset channel quality requirement, packet
It includes:
First bluetooth equipment obtains the channel quality information of the bluetooth channel, the channel quality information include with
At least one of lower parameter: the frequency of the received signal strength indicator RSSI of second bluetooth equipment, switch data Packet type
The Packet Error Ratio of rate, the buffer size of transmit queue, the number of retransmissions of data packet and data packet;
First bluetooth equipment determines the bluetooth letter according to the channel quality information and the channel quality requirement
The channel quality in road meets the channel quality requirement.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
The first bluetooth equipment is stated according to the channel quality information and the channel quality requirement, determines the channel matter of the bluetooth channel
Amount meets the channel quality requirement, comprising:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, described in the first bluetooth equipment determination
The channel quality of bluetooth channel meets the channel quality requirement.
In a kind of illustrative mode, first bluetooth equipment is according to the channel quality information and the channel quality
It is required that determining that the channel quality of the bluetooth channel meets the channel quality requirement, comprising:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, described in the first bluetooth equipment judgement
The frequency of the switch data Packet type of second bluetooth equipment, the buffer size of transmit queue, data packet number of retransmissions and
Whether at least one of Packet Error Ratio of data packet meets corresponding threshold value;
Frequency, the buffer size of transmit queue, data packet when the switch data Packet type of second bluetooth equipment
Number of retransmissions and at least one of the Packet Error Ratio of data packet when meeting corresponding threshold value, first bluetooth equipment determines
The channel quality of the bluetooth channel meets the channel quality requirement.
In a kind of illustrative mode, first bluetooth equipment obtains the data packet class that second bluetooth equipment is supported
Type, comprising:
First bluetooth equipment sends the second request to second bluetooth equipment, and second request is for requesting
State the ability characteristics parameter of the second bluetooth equipment support;
First bluetooth equipment receives the response for second request that second bluetooth equipment is sent, and described second
It include the ability characteristics parameter that second bluetooth equipment is supported, the ability that second bluetooth equipment is supported in the response of request
It include the type of data packet that second bluetooth equipment is supported in characteristic parameter.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
State the RSSI that the first bluetooth equipment obtains second bluetooth equipment, comprising:
First bluetooth equipment sends third request to second bluetooth equipment, and the third request is obtained for requesting
Take the RSSI of second bluetooth equipment;
First bluetooth equipment receives the response for the third request that second bluetooth equipment is sent, the third
It include the RSSI of second bluetooth equipment in the response of request.
In a kind of illustrative mode, first bluetooth equipment sends the second data to described according to the Second Type
Before second bluetooth equipment, further includes:
First bluetooth equipment sends the response of first request, first request to second bluetooth equipment
Response in include the Second Type.
In a kind of illustrative mode, when first bluetooth equipment and second bluetooth equipment are established bluetooth again and connected
Before connecing, further includes:
First bluetooth equipment saves the mark and the corresponding relationship of the Second Type of second bluetooth equipment;
First bluetooth equipment is according to the Second Type and second bluetooth devices, comprising:
First bluetooth equipment determines described first according to the mark of the corresponding relationship and second bluetooth equipment
The type of data packet that bluetooth equipment and second bluetooth devices use is the Second Type;
First bluetooth equipment sends number to first bluetooth equipment using the corresponding data packet of the Second Type
According to.
A kind of first bluetooth equipment is provided in terms of the application three, first bluetooth equipment includes:
Module is obtained, for obtaining the type of data packet of the second bluetooth equipment support, the type of data packet includes first
Type and Second Type;
Sending module, for sending the first data to second bluetooth equipment according to the first kind;
Receiving module, the first request sent for receiving second bluetooth equipment, first request is for requesting
Switch the first kind;
Determining module, in response to first request, first bluetooth equipment to determine first bluetooth equipment
The channel quality of the bluetooth channel used with second bluetooth devices meets preset channel quality requirement;
The sending module is also used to send the second data to second bluetooth equipment according to the Second Type;
The sending module is also used to establish bluetooth company again when first bluetooth equipment and second bluetooth equipment
When connecing, according to the Second Type and second bluetooth devices.
In a kind of illustrative mode, the determining module is specifically used for:
The channel quality information of the bluetooth channel is obtained, the channel quality information includes at least one in following parameter
It is a: the received signal strength indicator RSSI of second bluetooth equipment, the frequency of switch data Packet type, the buffering of transmit queue
The Packet Error Ratio of area's size, the number of retransmissions of data packet and data packet;
According to the channel quality information and the channel quality requirement, determine that the channel quality of the bluetooth channel meets
The channel quality requirement.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
Determining module is stated to be specifically used for: when the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, first bluetooth
Equipment determines that the channel quality of the bluetooth channel meets the channel quality requirement.
In a kind of illustrative mode, the determining module is specifically used for:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, described in the first bluetooth equipment judgement
The frequency of the switch data Packet type of second bluetooth equipment, the buffer size of transmit queue, data packet number of retransmissions and
Whether at least one of Packet Error Ratio of data packet meets corresponding threshold value;
Frequency, the buffer size of transmit queue, data packet when the switch data Packet type of second bluetooth equipment
Number of retransmissions and at least one of the Packet Error Ratio of data packet when meeting corresponding threshold value, first bluetooth equipment determines
The channel quality of the bluetooth channel meets the channel quality requirement.
In a kind of illustrative mode, the acquisition module is specifically used for:
First bluetooth equipment sends the second request to second bluetooth equipment, and second request is for requesting
State the ability characteristics parameter of the second bluetooth equipment support;
First bluetooth equipment receives the response for second request that second bluetooth equipment is sent, and described second
It include the ability characteristics parameter that second bluetooth equipment is supported, the ability that second bluetooth equipment is supported in the response of request
It include the type of data packet that second bluetooth equipment is supported in characteristic parameter.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
The channel quality information that determining module obtains the bluetooth channel is stated, specifically: the second bluetooth equipment of Xiang Suoshu sends third and asks
It asks, RSSI of the third request for the second bluetooth equipment described in request receives what second bluetooth equipment was sent
The response of third request includes the RSSI of second bluetooth equipment in the response of the third request.
In a kind of illustrative mode, the sending module is also used to: sending the second data according to the Second Type
Before to second bluetooth equipment, the second bluetooth equipment of Xiang Suoshu sends the response of first request, first request
Response in include the Second Type.
In a kind of illustrative mode, further includes:
Preserving module, for saving the mark and the corresponding relationship of the Second Type of second bluetooth equipment;
The sending module is specifically used for: when first bluetooth equipment and second bluetooth equipment establish bluetooth again
Before connection, according to the mark of the corresponding relationship and second bluetooth equipment, determine first bluetooth equipment with it is described
The type of data packet that second bluetooth devices use be the Second Type, using the corresponding data packet of the Second Type to
First bluetooth equipment sends data.
The application fourth aspect provides a kind of bluetooth equipment, including processor, memory and transceiver, and the memory is used
In store instruction, the transceiver is used for and other equipment communication, and the processor is used to execute to be stored in the memory
Instruction, so that the bluetooth equipment executes the method as described in any one of the application second aspect and each exemplary approach.
The 5th aspect of the application provides a kind of computer readable storage medium, and the computer-readable recording medium storage has
Instruction, when executed, so that computer was executed such as appointing in the application second aspect and each exemplary approach
One the method.
The 6th aspect of the application provides a kind of computer program product, and the computer program product includes instruction, works as institute
It states instruction to be performed, so that computer is executed such as any the method in second aspect and each exemplary approach.
The aspect of the application the 7th provides a kind of system on chip or System on Chip/SoC, and the system on chip or System on Chip/SoC can
Applied to bluetooth equipment, the system on chip or System on Chip/SoC include: at least one communication interface, at least one processor,
At least one processor, the communication interface, memory and processor are passed through described in execution by bus bar, the processor
The instruction stored in memory, so that the bluetooth equipment is executable as in the application second aspect and each exemplary approach
Any the method.
The embodiment of the present application provides a kind of processing method of bluetooth data packets, comprising: the first bluetooth equipment is according to second
Before the request switch data Packet type of bluetooth equipment, the first bluetooth equipment and the bluetooth that the second bluetooth devices use are determined
Whether the channel quality of channel meets preset channel quality requirement, when channel quality meets preset channel quality requirement,
Type of data packet is switched into Second Type from the first kind, the second bluetooth equipment is sent data to according to Second Type, when
When one bluetooth equipment and the second bluetooth equipment establish bluetooth connection again, the first bluetooth equipment is according to Second Type and the second bluetooth
Equipment communication.This method matches the Second Type after switching with the processing capacity of the second bluetooth equipment, when the first bluetooth is set
Standby when establishing bluetooth connection again with the second bluetooth equipment, the first bluetooth equipment is logical according to Second Type and the second bluetooth equipment
Letter, after effectively avoiding the first bluetooth equipment and the second bluetooth equipment from establishing bluetooth connection again, since bluetooth is set
Standby processing capacity is limited the problem of leading to data-bag lost.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram for the network architecture that the application is applicable in;
Fig. 2 is the flow chart of the processing method for the bluetooth data packets that the embodiment of the present invention one provides;
Fig. 3 is the signaling process figure of the processing method of bluetooth data packets provided by Embodiment 2 of the present invention;
Fig. 4 is the signaling process figure of the processing method for the bluetooth data packets that the embodiment of the present invention three provides;
Fig. 5 is the schematic diagram for the first bluetooth equipment of one kind that the embodiment of the present application four provides;
Fig. 6 is the schematic diagram for the first bluetooth equipment of one kind that the embodiment of the present application five provides.
Specific embodiment
The application provides a kind of processing method of bluetooth data packets, and this method, which can be applied, is establishing the two of bluetooth connection
Between a bluetooth equipment.Fig. 1 is a kind of schematic diagram for the network architecture that the application is applicable in, as shown in Figure 1, the network architecture includes
Two bluetooth equipments: the first bluetooth equipment and the second bluetooth equipment.In framework shown in Fig. 1, the first bluetooth equipment be mobile phone, second
Bluetooth equipment is bluetooth headset, is communicated between mobile phone and bluetooth headset by bluetooth connection.
It is appreciated that the first bluetooth equipment is not limited to mobile phone, the second bluetooth equipment is also not necessarily limited to bluetooth headset.First bluetooth
Equipment and the second bluetooth equipment all can be any electronic equipments bluetooth-capable.For example, the first bluetooth equipment and second
Bluetooth equipment all can be mobile phone, tablet computer, handheld computer, laptop, Ultra-Mobile PC (Ultra-
Mobile Personal Computer, UMPC), net book, cellular phone and personal digital assistant (Personal
Digital Assistant, PDA), wearable device (such as Intelligent bracelet, smartwatch, intelligent glasses, intelligent helmet),
Mobile unit, intelligent sound box, augmented reality (augmented reality, AR) virtual reality (virtual reality, VR)
It is equipment, the wireless terminal in Industry Control (industrial control), wireless in unmanned (self driving)
Terminal, the wireless terminal in tele-medicine (remote medical), the wireless terminal in smart grid (smart grid), fortune
Wireless terminal, the wireless terminal in smart city (smart city), intelligence in defeated safety (transportation safety)
The equipment such as the wireless terminal in intelligent family (smart home).
By taking mobile phone and mobile unit as an example, mobile phone and mobile unit are established after bluetooth connection, and mobile phone is available vehicle-mounted
The ability characteristics parameter (features) that equipment is supported, ability characteristics parameter are used to characterize the energy of current Bluetooth equipment transmission data
Power.Mobile phone can be ordered by HCI Read Supported Features Complete () and obtain opposite end bluetooth equipment
Feature capabilities parameter.
The ability characteristics parameter that bluetooth equipment is supported can be indicated by form as shown in Table 1:
Table one
The title (or mark) of ability characteristics parameter | Value |
Ability characteristics parameter one | yes |
Ability characteristics parameter two | no |
…… | |
Ability characteristics parameter N | Yes |
The value of ability characteristics parameter can be that " being (yes) " or " no (no) " indicates equipment branch when value is "Yes"
The ability characteristics parameter is held, when value is "No", indicates that equipment does not support the ability characteristics parameter.
It include the type information for the data packet that the mobile unit is supported, data in the ability characteristics parameter that mobile unit is supported
The type information of packet is, for example, 1M, 2M etc..
Certainly, the ability characteristics parameter that bluetooth equipment is supported is not limited to the type of data packet of bluetooth equipment support, can be with
Including one or more in following parameter: 3 time slot data packets (3slot packets), 5 time slot data packet (3slot
Packets), role transforming (role switch), power supply control (power control), slot offset (slot offset),
Synchronization link (SOC link) etc..
Currently, the type of data packet that bluetooth equipment is supported includes 1M, 2M and 3M data packet.The opposite end bluetooth that mobile phone is got
The type information for the data packet that equipment is supported can be with are as follows: " enhanced data rate ACL 2Mbps mode (i.e. 2M data
Packet) " and/or " enhanced data rate ACL 3Mbps mode (i.e. 3M data packet) ".
If opposite end bluetooth equipment is declared in ability characteristics parameter oneself supports 3M data packet, mobile phone is according to getting
The ability characteristics parameter of bluetooth equipment, the type that the data packet sent to bluetooth equipment can be set is 3M data packet.If right
End bluetooth equipment is declared in ability characteristics parameter oneself supports 2M data packet, and mobile phone is special according to the ability of the blue equipment got
Parameter is levied, the type that the data packet sent to opposite end bluetooth equipment can be set is 2M data packet.In the class for setting data packet
After type, mobile phone sends data packet to opposite end bluetooth equipment according to the type of the data packet, and subsequent opposite end bluetooth equipment can root
According to the type of the requirement request mobile phone switch data packet of oneself.
Optionally, mobile phone and bluetooth equipment are established after connection, and mobile phone can not obtain support to opposite end bluetooth equipment
The type of data packet, but the type of the data packet sent to opposite end bluetooth equipment is set oneself.
In some scenes, although bluetooth equipment states that oneself supports 2M or 3M data packet in ability characteristics parameter,
Be, since bluetooth equipment data-handling capacity is limited, cause bluetooth equipment can not handle mobile phone transmission all data packets, thus
Abandon partial data packet.When bluetooth equipment is mobile unit, abandoning partial data packet will lead to music Caton, and user experience is not
It is good.
In the embodiment of the present application, the data-handling capacity of bluetooth equipment can be the processing speed of bluetooth equipment, processing speed
Degree is the size of the data volume handled in unit time (such as 1 second), if mobile phone is within the unit time to opposite end bluetooth equipment
The data volume of transmission is greater than processing speed, then the data volume in the buffer (buffer area) of opposite end bluetooth equipment will be more than buffer
Capacity threshold, bluetooth equipment can only lose a part of data.
In other scenes, the data packet of the size and opposite end bluetooth equipment support of the data packet of mobile phone oneself setting
Size mismatches, so as to cause data packet discarding.For example, the size of the data packet for being sent to opposite end bluetooth equipment of mobile phone setting
For 3M data packet, and bluetooth equipment is practical only supports 2M data packet, so, the data packet that mobile phone is sent can not be complete by bluetooth equipment
Portion's processing, so as to cause data packet discarding.
In a kind of possible embodiment, blacklist is can be used to limit specific bluetooth equipment, for example, working as data in mobile phone
Transmission rate compared in the slow or higher situation of packet loss, can by record specific bluetooth equipment identity (such as
The address mac, ID etc.), when mobile phone is connected to the bluetooth equipment in blacklist, mobile phone, which can directly be defaulted, sends 1M's or 2M
Data packet, even if opposite end bluetooth equipment supports the ability of 3M data packet transmission.
In order to solve the problems, such as bluetooth equipment due to the limited caused packet loss of data-handling capacity, the embodiment of the present invention one is provided
A kind of processing method of bluetooth data packets, Fig. 2 are the process of the processing method for the bluetooth data packets that the embodiment of the present invention one provides
Figure, as shown in Fig. 2, method provided in this embodiment the following steps are included:
S101, the first bluetooth equipment obtain the type of data packet that the second bluetooth equipment is supported, which includes the
One type and Second Type.
Illustratively, the first bluetooth equipment sends the second request to the second bluetooth equipment, and the second request is for requesting second
The ability characteristics parameter that bluetooth equipment is supported.
First bluetooth equipment can establish asynchronous connection (asynchronous connection- with the second bluetooth equipment
Oriented link, ACL) after link, second request is sent to the second bluetooth equipment, the ACL link, that is, bluetooth connection,
First bluetooth equipment and the second bluetooth equipment can pass through message: HCI create connection establishes ACL link.ACL
Referring to prior art, the present embodiment does not illustrate the process for establishing connection of link.
The ability characteristics that second request is supported for the second bluetooth equipment of request, which can be HCI
Read Remote Supported Features order.
Second bluetooth equipment sends the response of the second request to the first bluetooth equipment, includes second in the response of the second request
The ability characteristics parameter that bluetooth equipment is supported.
Second bluetooth equipment generates the response of the second request according to the second request, includes the in response of second request
Two bluetooth equipments support ability characteristics parameter, the second bluetooth equipment support ability characteristics parameter in include but is not limited to second
The type of data packet information that bluetooth equipment is supported, which includes but is not limited to the first kind and Second Type.Data
Packet type, that is, data packet size, the first kind can be 3M data packet, and Second Type is 2M data packet, alternatively, the first kind
For 2M data packet, Second Type is 1M data packet.
When the second request is HCI Read Remote Supported Features order, the response of second request
For HCI Read Remote Supported Features response message.
S102, the first bluetooth equipment send the first data to second the first bluetooth equipment of bluetooth equipment according to the first kind.
After first bluetooth equipment gets the type of data packet of the second bluetooth equipment support, supported according to the second bluetooth equipment
Type of data packet be arranged to the second bluetooth equipment send type of data packet, and according to the type of data packet of setting with second indigo plant
The communication of tooth equipment.
In the present embodiment, it is the first kind that the type of data packet sent to the second bluetooth equipment, which is arranged, in the first bluetooth equipment,
The first data are sent to the second bluetooth equipment using the corresponding data packet of the first kind.Under normal conditions, the first bluetooth equipment meeting
The maximum data Packet type for selecting the second bluetooth equipment to support sends data to the second bluetooth equipment.
Optionally, the first bluetooth equipment is after determining the type of data packet sent to the second bluetooth equipment, to the second indigo plant
Tooth equipment sends the type of data packet.
S103, the first bluetooth equipment receive the first request that the second bluetooth equipment is sent, which cuts for requesting
Change the first kind.
Second bluetooth equipment sends the first request to the first bluetooth equipment in response to the first trigger event.
First bluetooth equipment and the second bluetooth devices for a period of time after, the second bluetooth equipment can be received according to current
The ability of data packet, environmental disturbances degree, received signal strength indicator (received signal strength indication,
RSSI), the parameters such as packet loss determine switch data Packet type.Correspondingly, the first trigger event is that the second bluetooth equipment currently connects
It receives the parameters such as ability, environmental disturbances degree, RSSI, packet loss, the time delay of data packet and meets preset condition.
For example, the type of data packet that the second bluetooth equipment is supported is 3M, when the first bluetooth equipment and the second bluetooth equipment
After distance zooms out, bluetooth signal intensity dies down, and bluetooth signal intensity, which dies down, will lead to the first bluetooth equipment and the second bluetooth equipment
Between transmission speed reduce, after transmission rate is slack-off, the delay of 3M data packet is larger, and the time delay of data packet, which is unable to satisfy, to be wanted
It asks, the second bluetooth equipment, which is determined, is switched to 2M data packet from 3M data packet for the type of data packet.
After the first bluetooth equipment furthers at a distance from the second bluetooth equipment, bluetooth signal intensity becomes strong, and bluetooth is set at this time
It is standby the type of data packet to be switched to 3M data packet from 2M data packet.
For another example, when the first bluetooth equipment sends the data packet of 3M, since the processing speed of the second bluetooth equipment is limited, example
Data packet as sent in the first bluetooth equipment unit time is too many, and the processing of the second bluetooth equipment does not come, it is determined that by data
The type of packet is switched to 2M data packet from 3M data packet.
After second bluetooth equipment determines switch data Packet type, the first request is sent to mobile phone.Optionally, this first is asked
It may include the information for the target data Packet type that the expectation of the second bluetooth equipment is switched in asking.
Wherein, target data Packet type can be carried by 1 or multiple bits, such as include one in first message
A type of data packet field, the field occupy dibit, and dibit can indicate type in 4 altogether.For example, 00 indicates 1M data
Packet, 01 indicates 2M data packet, and 10 indicate 3M data packet, and 11 be reserved value.
First request can be the message newly defined, can also be using existing message, illustratively, which can
Think existing LMP Power Control request message, LMP Power Control request message is for requesting
The power of bluetooth equipment is tuned up into maximum or minimum, alternatively, tuning up or turning down a grade for the power of bluetooth equipment.
S104, it is requested in response to first, the first bluetooth equipment determines that the first bluetooth equipment and the second bluetooth devices make
The channel quality of bluetooth channel meets preset channel quality requirement.
In a kind of illustrative mode, the first bluetooth equipment obtains the channel quality information of bluetooth channel, the channel quality
Information includes at least one of following parameter: the RSSI of the second bluetooth equipment, the frequency of switch data Packet type, transmit queue
Buffer size, the number of retransmissions of data packet and the Packet Error Ratio of data packet, according to the channel quality information and the channel matter
Amount requires, and determines that the channel quality of bluetooth channel meets the channel quality requirement.
First bluetooth equipment and the second bluetooth equipment are in communication process, and the first bluetooth equipment can be detected and be recorded: second
The re-transmission of the frequency, the buffer size, data packet of the transmit queue of the second bluetooth equipment of bluetooth equipment switch data Packet type
The Packet Error Ratio of number and data packet.
Wherein, the frequency of the second bluetooth equipment switch data Packet type refers to the second bluetooth equipment (example within the unit time
Such as 1 minute) in switching type of data packet number.The number of retransmissions of data packet refers to the first bluetooth equipment within the unit time
The number for the data packet that (such as 1 minute) is retransmitted to the second bluetooth equipment.The Packet Error Rate of data packet refers to that the first bluetooth equipment exists
The ratio of the number of the number and total data packet for the erroneous packets that (such as 1 minute) is sent to the second bluetooth equipment in default detection time
Value.
When the channel quality information includes the RSSI of the second bluetooth equipment, the first bluetooth equipment may determine that the second bluetooth
Whether the RSSI of equipment is greater than preset RSSI threshold value, when the second bluetooth equipment RSSI be greater than preset RSSI threshold value the case where
Under, the first bluetooth equipment determines that the channel quality of bluetooth channel meets channel quality requirement.When the second bluetooth equipment RSSI not
In the case where greater than (being less than or equal to) preset RSSI threshold value, the first bluetooth equipment determines the channel quality of bluetooth channel not
Meet channel quality requirement.
The RSSI value of second bluetooth equipment is less than or equal to RSSI threshold value, illustrates that bluetooth signal intensity is weak, usual bluetooth letter
Number intensity is weak be by the distance between two bluetooth equipments it is remote caused by, the second bluetooth equipment requests switch data packet in this case
Type is far to be triggered by distance between two bluetooth equipments, rather than not due to the data-handling capacity of the second bluetooth equipment
It enough triggers, therefore, the first bluetooth equipment determines not switch data Packet type.
The RSSI value of second bluetooth equipment is greater than RSSI threshold value, illustrates that bluetooth signal intensity is strong, between two bluetooth equipments
Distance bluetooth equipment normal communication distance in.In this case, the second bluetooth equipment requests switch data Packet type, it is not
It is remote caused by the distance between mobile phone and bluetooth equipment, but since the data-handling capacity of the second bluetooth equipment not enough triggers
, therefore, the first bluetooth equipment determines switch data Packet type.
Optionally, in the case that the RSSI of the second bluetooth equipment is greater than preset RSSI threshold value, the first bluetooth equipment is sentenced
The frequency of disconnected second bluetooth equipment switch data Packet type, the buffer size of transmit queue, data packet number of retransmissions and
Whether at least one of Packet Error Ratio of data packet meets corresponding threshold value, when the switch data Packet type of the second bluetooth equipment
At least one of frequency, the buffer size of transmit queue, the number of retransmissions of data packet and Packet Error Ratio of data packet meet
When corresponding threshold value, the first bluetooth equipment determines that the channel quality of bluetooth channel meets channel quality requirement.
Illustratively, in the case where RSSI > -83dBm of TXq=28 and the second bluetooth equipment, if Fpkt >=6,
Tcnt >=12 or Err >=5%, then the first bluetooth equipment determines that the channel quality of bluetooth channel meets channel quality requirement, needs
Want switch data Packet type.Wherein, TXq indicates buffer size (the TX queue of the transmit queue of the second bluetooth equipment
Buffer size), Fpkt indicates the frequency of the second bluetooth equipment switch data Packet type, and Tcnt indicates the re-transmission time of data packet
Number, Err indicate the Packet Error Ratio of data packet.
In the present embodiment, the first bluetooth equipment can obtain the RSSI: the first indigo plant of the second bluetooth equipment in the following way
Tooth equipment sends third request to the second bluetooth equipment, and third request is used for the RSSI of the second bluetooth equipment of request.Second
Bluetooth equipment can detect RSSI, and RSSI carrying is sent to the first bluetooth equipment in the response requested according to third.First is blue
Tooth equipment receives the response for the third request that the second bluetooth equipment is sent, and obtains the second bluetooth equipment from the response that third is requested
RSSI.
In the present embodiment, the first request, the second request and third request can be using defined in existing Bluetooth protocols
Message, or newly-increased message, the present embodiment are limited not to this.
S105, the first bluetooth equipment send the second data to the second bluetooth equipment according to Second Type.
In the case that the channel quality of bluetooth channel meets preset channel quality requirement, the first bluetooth equipment is by data
Packet type switches to Second Type from the first kind, sends the second data to the second bluetooth equipment according to Second Type.Work as bluetooth
In the case that the channel quality of channel is unsatisfactory for preset channel quality requirement, the class of the first bluetooth equipment not switch data packet
Type appoints and so sends the second data to the second bluetooth equipment according to Second Type.
In the embodiment of the present application, when the data-handling capacity of the second bluetooth equipment and first kind mismatch, first is blue
Tooth equipment switch data Packet type, it is corresponding that the size of the usually corresponding data packet of Second Type after switching is less than the first kind
The size of data packet.For example, type of data packet is reduced to 2M (Second Type) by the first bluetooth equipment from 3M (first kind), or
Type of data packet is reduced to 1M (Second Type) from 2M (first kind) by person.Second Type after switching can match second
The data-handling capacity of bluetooth equipment avoids the second bluetooth equipment from leading to data-bag lost since data-handling capacity is limited.
First bluetooth equipment changes maximum transmission unit (Maximum after switch data Packet type
Transmission Unit, MTU) length, the length of the MTU after change and Second Type after switching are adapted.
Optionally, before S105, the first bluetooth equipment sends the response of the first request to the second bluetooth equipment, and first asks
It include Second Type in the response asked, to notify the second bluetooth equipment type of data packet to switch successfully.
S106, when the first bluetooth equipment and the second bluetooth equipment establish bluetooth connection again, the first bluetooth equipment according to
Second Type and the second bluetooth devices.
Optionally, before S106, the first bluetooth equipment saves or the mark and the second class of the second bluetooth equipment of record
The corresponding relationship of type, the corresponding relationship can store in the first bluetooth equipment local, also can store in remote data base.It should
Database is used to store the record for all bluetooth equipments connecting with the first bluetooth equipment, and the major key of every record sets for bluetooth
Standby mark, the field of record are type of data packet.Wherein, the mark of bluetooth equipment can be Bluetooth address, and table two is bluetooth
The schematic diagram of the corresponding relationship of address and type of data packet:
Table two
Different from the prior art, when the first bluetooth equipment and the second bluetooth equipment establish connection again, the first bluetooth is set
The standby ability characteristics parameter supported according further to the second bluetooth equipment determines the type of data packet sent to the second bluetooth equipment, this
Apply in embodiment, the first bluetooth equipment inquires whether be stored with the second bluetooth equipment and data packet from local or database
The corresponding relationship of type.
If being stored with the corresponding relationship of the second bluetooth equipment and type of data packet, the first bluetooth equipment is according to the correspondence
The mark of relationship and the second bluetooth equipment, the type of data packet for determining that the first bluetooth equipment is used with the second bluetooth devices are
Second Type, the first bluetooth equipment send data to the first bluetooth equipment using the corresponding data packet of Second Type.If no
Store the corresponding relationship of the second bluetooth equipment and type of data packet, then the first bluetooth equipment still according to the prior art mode,
Determine the type of data packet sent to the second bluetooth equipment.
Since the type of data packet stored in the corresponding relationship is matched with the processing capacity of the second bluetooth equipment, so as to
After avoiding the first bluetooth equipment and the second bluetooth equipment from establishing bluetooth connection again, due to the second bluetooth equipment processing capacity by
Limit leads to data-bag lost problem.
Optionally, the first bluetooth equipment determines the first bluetooth equipment and the type of data packet that the second bluetooth devices use
After Second Type, the first bluetooth equipment sends a notification message to the second bluetooth equipment, and the notification message is for notifying first
The type of data packet that bluetooth equipment and the second bluetooth devices use is Second Type, may include second in the notification message
The information of type.Optionally, which is HCI change connection type.
In the present embodiment, the first bluetooth equipment is before the request switch data Packet type according to the second bluetooth equipment, really
Whether the channel quality for the bluetooth channel that fixed first bluetooth equipment and the second bluetooth devices use meets preset channel matter
Amount requires, and when channel quality meets preset channel quality requirement, the first bluetooth equipment is by type of data packet from the first kind
Second Type is switched to, the second bluetooth equipment is sent data to according to Second Type, when the first bluetooth equipment and the second bluetooth are set
For when establishing bluetooth connection again, the first bluetooth equipment is according to Second Type and the second bluetooth devices.Due to the first bluetooth
Equipment is in the case where the channel quality of bluetooth channel meets preset channel quality requirement, just by type of data packet from the first kind
Type switches to Second Type, so that the Second Type after switching is matched with the processing capacity of the second bluetooth equipment, when the first bluetooth
When equipment and the second bluetooth equipment establish bluetooth connection again, the first bluetooth equipment is logical according to Second Type and the second bluetooth equipment
Letter, after effectively avoiding the first bluetooth equipment and the second bluetooth equipment from establishing bluetooth connection again, since bluetooth is set
Standby processing capacity is limited the problem of leading to data-bag lost.
On the basis of example 1, Fig. 3 is the letter of the processing method of bluetooth data packets provided by Embodiment 2 of the present invention
Enable flow chart, as shown in figure 3, method provided in this embodiment the following steps are included:
S201, the first bluetooth equipment send the second request to the second bluetooth equipment, and the second request is for requesting the second bluetooth
The ability characteristics parameter that equipment is supported.
First bluetooth equipment and the second bluetooth equipment establish asynchronous connection (asynchronous connection-
Oriented link, ACL) after link, first request message is sent, the ACL link, that is, bluetooth connection, the first bluetooth is set
Standby and the second bluetooth equipment can pass through message: HCI create connection establishes ACL link.The foundation of ACL link
The process of connection is not illustrated referring to prior art, the present embodiment.
Second request message is used for the ability characteristics that the second bluetooth equipment of request is supported, which can
Think HCI Read Remote Supported Features order.
Step S202, the second bluetooth equipment sends the response of the second request to the first bluetooth equipment, includes the in the response
The ability characteristics parameter that two bluetooth equipments are supported.
Second bluetooth equipment generates the response of the second request according to the second request, includes the in response of second request
Two bluetooth equipments support ability characteristics parameter, the second bluetooth equipment support ability characteristics parameter in include but is not limited to second
The type of data packet that bluetooth equipment is supported, which includes the first kind and Second Type.
When the second request is HCI Read Remote Supported Features order, the response of second request
For HCI Read Remote Supported Features response message.
S203, the first bluetooth equipment send the first data to the second bluetooth equipment according to the first kind.
After first bluetooth equipment gets the type of data packet of the second bluetooth equipment support, supported according to the second bluetooth equipment
Type of data packet the type of data packet sent to the second bluetooth equipment is arranged is the first kind, and according to the first kind and second
Bluetooth devices.
Step S204, in response to the first trigger event, the second bluetooth equipment sends the first request to the first bluetooth equipment.
First request is for requesting the switching first kind.
Step S205, in response to the first request, the first bluetooth equipment sends third request to the second bluetooth equipment, and third is asked
Seek the RSSI for the second bluetooth equipment of request.
Optionally, third request can use HCI_READ_RSSI message.
Step S206, the second bluetooth equipment sends the response that third is requested to the first bluetooth equipment.
It include the RSSI of the second bluetooth equipment in the response of third request.
Step S207, when the RSSI of the second bluetooth equipment is greater than preset RSSI threshold value, the first bluetooth equipment determines blue
The channel quality of tooth channel meets channel quality requirement.
Illustratively, the first bluetooth equipment judges whether the RSSI of the second bluetooth equipment is greater than preset RSSI threshold value, In
In the case that the RSSI of second bluetooth equipment is not more than RSSI threshold value, determine that the channel quality of bluetooth channel is unsatisfactory for channel quality
It is required that determining that the channel quality of bluetooth channel meets channel in the case where the RSSI of the second bluetooth equipment is greater than RSSI threshold value
Quality requirement.
In the case that the channel quality of bluetooth channel meets channel quality requirement, step S208 is executed, bluetooth channel is worked as
Channel quality be unsatisfactory for channel quality requirement in the case where, the first bluetooth equipment does not execute any operation.
Optionally, in the case that the RSSI of the second bluetooth equipment is greater than RSSI threshold value, the first bluetooth equipment is according to following
At least one of parameter judges whether the channel quality of bluetooth channel meets channel quality requirement: the second bluetooth equipment switches number
According to the frequency of Packet type, the buffer size of the transmit queue of the second bluetooth equipment, the number of retransmissions of data packet and data packet
Packet Error Ratio, the data-handling capacity for determining the second bluetooth equipment and the currently used type of data packet of the second bluetooth equipment are not
Match.
The specific implementation of this step is referring to the associated description of step S101 in embodiment one, and which is not described herein again.
It is appreciated that the distance between the first bluetooth equipment and the second bluetooth equipment are dynamic changes, in traditional technology,
It is switched to lesser data packet when distance between the two zooms out, biggish number is switched to when distance between the two furthers
According to packet, lead to therebetween frequent switching repeatedly.In the scheme of the present embodiment, described in the channel quality satisfaction of bluetooth channel
When channel quality requirement, switch data Packet type is possible to, is eliminated due to the far caused data of dragsaw between bluetooth equipment
The frequent switching of Packet type.
Step S208, the first bluetooth equipment will send the response of the first request, the sound of the first request to the second bluetooth equipment
It include Second Type in answering.
First bluetooth equipment notifies the second bluetooth equipment data by sending the first response requested to the second bluetooth equipment
Whether Packet type switches successfully.When the first request is LMP Power Control request message, the sound of first request
It should be LMP Power Control request response message.
Step S209, the first bluetooth equipment saves the mark of the second bluetooth equipment and the corresponding relationship of Second Type.
Wherein, there is no sequencings when being executed by step S208 and S209.
Step S210, when the first bluetooth equipment and the second bluetooth equipment establish connection again, the first bluetooth equipment according to
The mark of second bluetooth equipment and the corresponding relationship, determine the first bluetooth equipment and the data packet that the second bluetooth devices use
Type is Second Type.
Optionally, the first bluetooth equipment determines the first bluetooth equipment and the type of data packet that the second bluetooth devices use
After Second Type, the first bluetooth equipment sends a notification message to the second bluetooth equipment, includes Second Type in notification message.
The type of data packet that the notification message is used to that the first bluetooth equipment to be notified to send to the second bluetooth equipment.Optionally, which disappears
Breath is HCI change connection type.
S211, the first bluetooth equipment send data to the first bluetooth equipment using the corresponding data packet of Second Type.
In the present embodiment, the first bluetooth equipment meets preset channel quality requirement in the channel quality for determining bluetooth channel
In the case where, type of data packet is just switched into Second Type from the first kind, so that the Second Type and second after switching are blue
The processing capacity of tooth equipment matches, when the first bluetooth equipment and the second bluetooth equipment establish bluetooth connection again, the first bluetooth
Equipment is according to Second Type and the second bluetooth devices, so as to effectively avoid the first bluetooth equipment and the second bluetooth equipment
It establishes after bluetooth connection again, so as to avoid leading to data-bag lost since the data-handling capacity of bluetooth equipment is limited
The problem of.
Fig. 4 is the signaling process figure for the processing method of bluetooth data packets that the embodiment of the present invention three provides, in the present embodiment,
First bluetooth equipment includes two modules: HOST module and Bluetooth chip controller (controller), HOST module and bluetooth
It is communicated between chip controller by HCI.As shown in figure 4, method provided in this embodiment the following steps are included:
S301, the first bluetooth equipment HOST module to the second bluetooth equipment send second request.
Ability characteristics parameter of second request for requesting the second bluetooth equipment to be supported
S302, the second bluetooth equipment send the response of the second request to HOST module.
It include the ability characteristics parameter that the second bluetooth equipment is supported in the response of second request, the second bluetooth equipment is supported
Ability characteristics in include the second bluetooth equipment support type of data packet, type of data packet includes the first kind and the second class
Type.
S303, the first bluetooth equipment Bluetooth chip controller according to the first kind send the first data to the second bluetooth set
It is standby.
S304, in response to the first trigger event, the second bluetooth equipment sends the first request to the first bluetooth equipment.
First request is for requesting the switching first kind.
S305, the first bluetooth equipment Bluetooth chip controller to HOST module send first request.
Bluetooth chip controller records frequency, number of retransmissions and the Packet Error Rate of the second bluetooth equipment switch data packet simultaneously.
S306, the first bluetooth equipment HOST module to the second bluetooth equipment send third request.
Third request is used for the RSSI of the second bluetooth equipment of request.
S307, the second bluetooth equipment send the response that third is requested to the HOST module of the first bluetooth equipment.
It include the RSSI of the second bluetooth equipment in the response of third request.
S308, when the RSSI of the second bluetooth equipment be greater than preset RSSI threshold value when, the HOST module of the first bluetooth equipment
Determine that the channel quality of bluetooth channel meets channel quality requirement.
S309, the first bluetooth equipment HOST module switch data Packet type be Second Type, and save the second bluetooth set
The corresponding relationship of standby mark and Second Type.
Illustratively, HOST module judges whether the RSSI of the second bluetooth equipment is greater than preset RSSI threshold value, second
In the case that the RSSI of bluetooth equipment is not more than RSSI threshold value, determine that the channel quality of bluetooth channel is unsatisfactory for channel quality and wants
It asks, in the case where the RSSI of the second bluetooth equipment is greater than RSSI threshold value, determines that the channel quality of bluetooth channel meets channel matter
Amount requires.
In the case that the channel quality of bluetooth channel meets channel quality requirement, step S310 is executed, bluetooth channel is worked as
Channel quality be unsatisfactory for channel quality requirement in the case where, HOST module does not execute any operation.
Optionally, in the case that the RSSI of the second bluetooth equipment is greater than RSSI threshold value, HOST module is according to following parameter
At least one of judge whether the channel quality of bluetooth channel meets channel quality requirement: the second bluetooth equipment switch data packet
The frequency of type, the buffer size of the transmit queue of the second bluetooth equipment, the mistake of the number of retransmissions of data packet and data packet
Packet rate determines that the data-handling capacity of the second bluetooth equipment is mismatched with the currently used type of data packet of the second bluetooth equipment.
S310, the first bluetooth equipment HOST module to the second bluetooth equipment send first request response.
The response of first request is switched successfully for notification data Packet type or handover failure, and optionally, first asks
It include the second bluetooth in the response asked.
S311, after the first bluetooth equipment establishes connection with the second bluetooth equipment again, the HOST mould of the first bluetooth equipment
Root tuber determines the first bluetooth equipment and the second bluetooth according to the mark of the second bluetooth equipment of preservation and the corresponding relationship of Second Type
The type of data packet that equipment communication uses is Second Type.
S312, the first bluetooth equipment HOST module send a notification message to the second bluetooth equipment.
The type of data packet that the notification message is used to that the first bluetooth equipment to be notified to send to the second bluetooth equipment: the second class
Type.
The associated description of specific implementation the reference embodiment one and embodiment two of each step in the present embodiment, here not
It repeats again.
Switch data Packet type is judged whether by the HOST module of the first bluetooth equipment in the present embodiment, and completes subsequent number
According to the switching of Packet type.So that subsequent in transmission of data packets, HOST module is sent to Bluetooth chip controller
The type of data packet is the Second Type after switching.For example, type of data packet is switched to 2M number from 3M data packet by HOST module
According to packet, then the size of the data packet that HOST module is sent to Bluetooth chip controller is 2M, and Bluetooth chip controller is sent to the
The size of the data packet of two bluetooth equipments is also 2M.
And in the prior art, the switching of type of data packet is usually completed by Bluetooth chip controller, HOST module is not known simultaneously
Road Bluetooth chip controller has switched type of data packet, and the data packet that HOST module is sent to Bluetooth chip controller is still just
The type of data packet being arranged when the beginning, therefore, Bluetooth chip controller need the data packet sent to HOST module to carry out the place that unpacks
After reason, it can just be sent to the second bluetooth equipment.
For example, the type of data packet is switched to 2M data packet from 3M data packet by Bluetooth chip controller, and HOST module
The size of the data packet sent to Bluetooth chip control remains as 3M, and Bluetooth chip controller is sent to the second bluetooth equipment at this time
Data packet size be 2M, therefore, Bluetooth chip controller carries out processing of unpacking, and 3M data packet is split as 2M data
The second bluetooth equipment is sent to after packet.
Type of data packet switching is carried out compared to by Bluetooth chip controller, by HOST module switch data Packet type, energy
The power consumption of unpacking of Bluetooth chip controller is enough reduced, and reduces time delay.
Optionally, in the application other embodiments, a black name is also can be set in the HOST module of the first bluetooth equipment
It is single, the type of data packet for having the mark of bluetooth equipment and bluetooth equipment not to support is recorded on the blacklist.When the first bluetooth is set
It is standby establish connection with the second bluetooth equipment after, be if having indicated the type of data packet that the second bluetooth equipment is not supported on blacklist
3M data packet, then the type of HOST module setting data packet is 2M, if blacklist has indicated what the second bluetooth equipment was not supported
The type of data packet is 2M data packet, then the type of HOST module setting data packet is 1M.
In which, HOST module is after generating blacklist, if the first bluetooth equipment and the second bluetooth equipment are again
Establish connection, HOST module can not obtain the type of data packet of bluetooth equipment support, directly be arranged according to the blacklist to the
The type for the data packet that two bluetooth equipments are sent.Certainly, the HOST module data packet that also available second bluetooth equipment is supported
Type, but the data packet class sent to the second bluetooth equipment will not be set according to the type of data packet that the second bluetooth equipment is supported
The type of data packet sent to the second bluetooth equipment is arranged according further to blacklist for type.
Optionally, blacklist can be arranged on the basis of embodiment one and embodiment two in the first bluetooth equipment, for example, the
It is not the mark for saving bluetooth equipment after one bluetooth equipment is according to two method switch data Packet type of embodiment one and embodiment
With the corresponding relationship of type of data packet, but the blacklist is updated.
Fig. 5 is the schematic diagram for the first bluetooth equipment of one kind that the embodiment of the present application four provides, as shown in figure 5, described first
Bluetooth equipment includes:
Module 11 is obtained, for obtaining the type of data packet of the second bluetooth equipment support, the type of data packet includes the
One type and Second Type;
Sending module 12, for sending the first data to second bluetooth equipment according to the first kind;
Receiving module 13, the first request sent for receiving second bluetooth equipment, first request is for asking
Seek the switching first kind;
Determining module 14, in response to first request, first bluetooth equipment to determine that first bluetooth is set
The channel quality for the bluetooth channel that standby and described second bluetooth devices use meets preset channel quality requirement;
The sending module 12 is also used to send the second data to second bluetooth equipment according to the Second Type;
The sending module 12 is also used to establish bluetooth again when first bluetooth equipment and second bluetooth equipment
When connection, according to the Second Type and second bluetooth devices.
In a kind of illustrative mode, the determining module 14 is specifically used for:
The channel quality information of the bluetooth channel is obtained, the channel quality information includes at least one in following parameter
It is a: the received signal strength indicator RSSI of second bluetooth equipment, the frequency of switch data Packet type, the buffering of transmit queue
The Packet Error Ratio of area's size, the number of retransmissions of data packet and data packet;
According to the channel quality information and the channel quality requirement, determine that the channel quality of the bluetooth channel meets
The channel quality requirement.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
State determining module 14 to be specifically used for: when the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, described first is blue
Tooth equipment determines that the channel quality of the bluetooth channel meets the channel quality requirement.
In a kind of illustrative mode, the determining module 14 is specifically used for:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, described in the first bluetooth equipment judgement
The frequency of the switch data Packet type of second bluetooth equipment, the buffer size of transmit queue, data packet number of retransmissions and
Whether at least one of Packet Error Ratio of data packet meets corresponding threshold value;
Frequency, the buffer size of transmit queue, data packet when the switch data Packet type of second bluetooth equipment
Number of retransmissions and at least one of the Packet Error Ratio of data packet when meeting corresponding threshold value, first bluetooth equipment determines
The channel quality of the bluetooth channel meets the channel quality requirement.
In a kind of illustrative mode, the acquisition module 11 is specifically used for:
First bluetooth equipment sends the second request to second bluetooth equipment, and second request is for requesting
State the ability characteristics parameter of the second bluetooth equipment support;
First bluetooth equipment receives the response for second request that second bluetooth equipment is sent, and described second
It include the ability characteristics parameter that second bluetooth equipment is supported, the ability that second bluetooth equipment is supported in the response of request
It include the type of data packet that second bluetooth equipment is supported in characteristic parameter.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
The channel quality information that determining module 14 obtains the bluetooth channel is stated, specifically: the second bluetooth equipment of Xiang Suoshu sends third
Request, RSSI of the third request for the second bluetooth equipment described in request, receives second bluetooth equipment and sends
Third request response, include the RSSI of second bluetooth equipment in the response of third request.
In a kind of illustrative mode, the sending module 12 is also used to: sending the second number according to the Second Type
Before extremely second bluetooth equipment, the second bluetooth equipment of Xiang Suoshu sends the response of first request, and described first asks
It include the Second Type in the response asked.
In a kind of illustrative mode, further includes:
Preserving module, for saving the mark and the corresponding relationship of the Second Type of second bluetooth equipment;
The sending module 12 is specifically used for: when first bluetooth equipment and second bluetooth equipment establish indigo plant again
Before tooth connection, according to the mark of the corresponding relationship and second bluetooth equipment, first bluetooth equipment and institute are determined
Stating the type of data packet that the second bluetooth devices use is the Second Type, uses the corresponding data packet of the Second Type
Data are sent to first bluetooth equipment.
First bluetooth equipment of the present embodiment can be used for executing the first bluetooth equipment in any of the above-described embodiment of the method and execute
Method, specific implementation is similar with technical effect, and which is not described herein again.
Fig. 6 is the schematic diagram for the first bluetooth equipment of one kind that the embodiment of the present application five provides, as shown in fig. 6, described first
Bluetooth equipment 200 includes: processor 21, memory 22, transmitter 23 and receiver 24, the memory 22, the transmitter
23 and the transceiver 24 connected and communicated with the processor 21 by bus, the memory 22 for storing instruction, institute
Transmitter 23 is stated for sending data to other equipment, the receiver 24 is used to receive the data of other equipment transmission, described
Processor 31 is for executing the instruction stored in the memory, so that first bluetooth equipment 200 executes any of the above-described side
The method that the first bluetooth equipment executes in method embodiment.It is specific:
Processor 21, for obtaining the type of data packet of the second bluetooth equipment support, the type of data packet includes first
Type and Second Type;
Transmitter 23, for sending the first data to second bluetooth equipment according to the first kind;
Receiver 24, the first request sent for receiving second bluetooth equipment, first request is for requesting
Switch the first kind;
The processor 21 is also used to determine first bluetooth equipment and described second in response to first request
The channel quality for the bluetooth channel that bluetooth devices use meets preset channel quality requirement;
The transmitter 23 is also used to send the second data to second bluetooth equipment according to the Second Type;
The processor 21 is also used to establish bluetooth company again when first bluetooth equipment and second bluetooth equipment
When connecing, according to the Second Type and second bluetooth devices.
In a kind of illustrative mode, the processor 21 determines that first bluetooth is set in response to first request
The channel quality for the bluetooth channel that standby and described second bluetooth devices use meets preset channel quality requirement, specifically
Are as follows:
The channel quality information of the bluetooth channel is obtained, the channel quality information includes at least one in following parameter
It is a: the received signal strength indicator RSSI of second bluetooth equipment, the frequency of switch data Packet type, the buffering of transmit queue
The Packet Error Ratio of area's size, the number of retransmissions of data packet and data packet;
According to the channel quality information and the channel quality requirement, determine that the channel quality of the bluetooth channel meets
The channel quality requirement.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
Processor 21 is stated according to the channel quality information and the channel quality requirement, determines that the channel quality of the bluetooth channel is full
The foot channel quality requirement, specifically:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, the channel matter of the bluetooth channel is determined
Amount meets the channel quality requirement.
In a kind of illustrative mode, the processor 21 is wanted according to the channel quality information and the channel quality
It asks, determines that the channel quality of the bluetooth channel meets the channel quality requirement, specifically:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, cutting for second bluetooth equipment is judged
It changes in the Packet Error Ratio of the frequency of type of data packet, the buffer size of transmit queue, the number of retransmissions of data packet and data packet
At least one whether meet corresponding threshold value;
Frequency, the buffer size of transmit queue, data packet when the switch data Packet type of second bluetooth equipment
Number of retransmissions and at least one of the Packet Error Ratio of data packet when meeting corresponding threshold value, determine the letter of the bluetooth channel
Road quality meets the channel quality requirement.
In a kind of illustrative mode, the processor 21 obtains the type of data packet that second bluetooth equipment is supported,
Specifically:
The second request is sent to second bluetooth equipment by the transmitter 23, second request is for requesting
State the ability characteristics parameter of the second bluetooth equipment support;
Receive the response for second request that second bluetooth equipment is sent by the receiver 24, described second
It include the ability characteristics parameter that second bluetooth equipment is supported, the ability that second bluetooth equipment is supported in the response of request
It include the type of data packet that second bluetooth equipment is supported in characteristic parameter.
In a kind of illustrative mode, when the channel quality information includes the RSSI of second bluetooth equipment, institute
State the RSSI that processor 21 obtains second bluetooth equipment, comprising:
Third request is sent to second bluetooth equipment by the transmitter 23, the third request is obtained for requesting
Take the RSSI of second bluetooth equipment;
The response for the third request that second bluetooth equipment is sent, the third are received by the receiver 24
It include the RSSI of second bluetooth equipment in the response of request.
In a kind of illustrative mode, the transmitter 23 is also used to:
The response of first request is sent to second bluetooth equipment, includes described in the response of first request
Second Type.
In a kind of illustrative mode, the processor is also used to:
It is blue by described second before first bluetooth equipment and second bluetooth equipment establish bluetooth connection again
The mark pass corresponding with the Second Type of tooth equipment saves in the memory;
The processor 21 according to the Second Type and second bluetooth devices, specifically:
According to the mark of the corresponding relationship and second bluetooth equipment, first bluetooth equipment and described the are determined
The type of data packet that two bluetooth devices use is the Second Type;
Data are sent to first bluetooth equipment using the corresponding data packet of the Second Type.
First bluetooth equipment of the present embodiment can be used for executing the first bluetooth equipment in any of the above-described embodiment of the method and execute
Method, specific implementation is similar with technical effect, and which is not described herein again.
It is appreciated that processor used in bluetooth equipment can be central processing unit (CPU) in the embodiment of the present application, lead to
With processor, digital signal processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA) or its
His programmable logic device, transistor logic, hardware component or any combination thereof.It is may be implemented or executed in conjunction with this
Apply for various illustrative logic blocks, module and circuit described in disclosure.The processor is also possible to realize meter
The combination of function is calculated, such as is combined comprising one or more microprocessors, DSP and the combination of microprocessor etc..
Bus described in the embodiment of the present application can be industry standard architecture (Industry Standard
Architecture, ISA) bus, external equipment interconnection (Peripheral Component, PCI) bus or extension industry mark
Quasi- architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into ground
Location bus, data/address bus, control bus etc..For convenient for indicating, the bus in illustrations does not limit an only bus
Or a type of bus.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Claims (24)
1. a kind of Bluetooth system, including the first bluetooth equipment and the second bluetooth equipment characterized by comprising
First bluetooth equipment obtains the type of data packet that second bluetooth equipment is supported, the type of data packet includes the
One type and Second Type;
First bluetooth equipment sends the first data to second bluetooth equipment according to the first kind;
In response to the first trigger event, second bluetooth equipment sends the first request to first bluetooth equipment, and described the
One request switches the first kind for requesting;
In response to first request, first bluetooth equipment determines first bluetooth equipment and second bluetooth equipment
The channel quality for communicating the bluetooth channel used meets preset channel quality requirement;
First bluetooth equipment sends the second data to second bluetooth equipment according to the Second Type;
When first bluetooth equipment and second bluetooth equipment establish bluetooth connection again, the first bluetooth equipment root
According to the Second Type and second bluetooth devices.
2. system according to claim 1, which is characterized in that in response to first request, first bluetooth equipment
It is preset to determine that the channel quality for the bluetooth channel that first bluetooth equipment and second bluetooth devices use meets
Channel quality requirement, comprising:
First bluetooth equipment obtains the channel quality information of the bluetooth channel, and the channel quality information includes following ginseng
At least one of number: the received signal strength indicator RSSI of second bluetooth equipment, the frequency of switch data Packet type, hair
Send the Packet Error Ratio of the buffer size of queue, the number of retransmissions of data packet and data packet;
First bluetooth equipment determines the bluetooth channel according to the channel quality information and the channel quality requirement
Channel quality meets the channel quality requirement.
3. system according to claim 2, which is characterized in that when the channel quality information includes that second bluetooth is set
When standby RSSI, first bluetooth equipment determines the indigo plant according to the channel quality information and the channel quality requirement
The channel quality of tooth channel meets the channel quality requirement, comprising:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, first bluetooth equipment determines the bluetooth
The channel quality of channel meets the channel quality requirement.
4. system according to claim 2, which is characterized in that first bluetooth equipment is according to the channel quality information
With the channel quality requirement, determine that the channel quality of the bluetooth channel meets the channel quality requirement, comprising:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, first bluetooth equipment judges described second
Frequency, the buffer size of transmit queue, the number of retransmissions of data packet and the data of the switch data Packet type of bluetooth equipment
Whether at least one of Packet Error Ratio of packet meets corresponding threshold value;
When the weight of the frequency of the switch data Packet type of second bluetooth equipment, the buffer size of transmit queue, data packet
When biography at least one of number and the Packet Error Ratio of data packet meet corresponding threshold value, described in the first bluetooth equipment determination
The channel quality of bluetooth channel meets the channel quality requirement.
5. system described in any one of -4 according to claim 1, which is characterized in that first bluetooth equipment obtains described the
The type of data packet that two bluetooth equipments are supported, comprising:
First bluetooth equipment sends the second request to second bluetooth equipment, and second request is for requesting described the
The ability characteristics parameter that two bluetooth equipments are supported;
Second bluetooth equipment sends the response of second request, the sound of second request to first bluetooth equipment
It include the ability characteristics parameter that second bluetooth equipment is supported, the ability characteristics parameter that second bluetooth equipment is supported in answering
In include second bluetooth equipment support type of data packet.
6. the system according to any one of claim 2-4, which is characterized in that when the channel quality information includes described
When the RSSI of the second bluetooth equipment, first bluetooth equipment obtains the RSSI of second bluetooth equipment, comprising:
First bluetooth equipment sends third request to second bluetooth equipment, and the third request is used for request institute
State the RSSI of the second bluetooth equipment;
Second bluetooth equipment sends the response that the third is requested, the sound of the third request to first bluetooth equipment
It include the RSSI of second bluetooth equipment in answering.
7. system according to claim 1 to 6, which is characterized in that first bluetooth equipment is according to described
Two types are sent before the second data to second bluetooth equipment, further includes:
First bluetooth equipment sends the response of first request, the sound of first request to second bluetooth equipment
It include the Second Type in answering.
8. system described in any one of -7 according to claim 1, which is characterized in that when first bluetooth equipment and described the
Two bluetooth equipments are established before bluetooth connection again, further includes:
First bluetooth equipment saves the mark and the corresponding relationship of the Second Type of second bluetooth equipment;
First bluetooth equipment is according to the Second Type and second bluetooth devices, comprising:
First bluetooth equipment determines first bluetooth according to the mark of the corresponding relationship and second bluetooth equipment
The type of data packet that equipment and second bluetooth devices use is the Second Type;
First bluetooth equipment sends data to first bluetooth equipment using the corresponding data packet of the Second Type.
9. a kind of processing method of bluetooth data packets characterized by comprising
First bluetooth equipment obtain the second bluetooth equipment support type of data packet, the type of data packet include the first kind and
Second Type;
First bluetooth equipment sends the first data to second bluetooth equipment according to the first kind;
First bluetooth equipment receives the first request that second bluetooth equipment is sent, and first request is cut for requesting
Change the first kind;
In response to first request, first bluetooth equipment determines first bluetooth equipment and second bluetooth equipment
The channel quality for communicating the bluetooth channel used meets preset channel quality requirement;
First bluetooth equipment sends the second data to second bluetooth equipment according to the Second Type;
When first bluetooth equipment and second bluetooth equipment establish bluetooth connection again, the first bluetooth equipment root
According to the Second Type and second bluetooth devices.
10. according to the method described in claim 9, it is characterized in that, being requested in response to described first, first bluetooth equipment
It is preset to determine that the channel quality for the bluetooth channel that first bluetooth equipment and second bluetooth devices use meets
Channel quality requirement, comprising:
First bluetooth equipment obtains the channel quality information of the bluetooth channel, and the channel quality information includes following ginseng
At least one of number: the received signal strength indicator RSSI of second bluetooth equipment, the frequency of switch data Packet type, hair
Send the Packet Error Ratio of the buffer size of queue, the number of retransmissions of data packet and data packet;
First bluetooth equipment determines the bluetooth channel according to the channel quality information and the channel quality requirement
Channel quality meets the channel quality requirement.
11. according to the method described in claim 10, it is characterized in that, when the channel quality information includes second bluetooth
When the RSSI of equipment, first bluetooth equipment according to the channel quality information and the channel quality requirement, determine described in
The channel quality of bluetooth channel meets the channel quality requirement, comprising:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, first bluetooth equipment determines the bluetooth
The channel quality of channel meets the channel quality requirement.
12. according to the method described in claim 10, it is characterized in that, first bluetooth equipment is believed according to the channel quality
Breath and the channel quality requirement, determine that the channel quality of the bluetooth channel meets the channel quality requirement, comprising:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, first bluetooth equipment judges described second
Frequency, the buffer size of transmit queue, the number of retransmissions of data packet and the data of the switch data Packet type of bluetooth equipment
Whether at least one of Packet Error Ratio of packet meets corresponding threshold value;
When the weight of the frequency of the switch data Packet type of second bluetooth equipment, the buffer size of transmit queue, data packet
When biography at least one of number and the Packet Error Ratio of data packet meet corresponding threshold value, described in the first bluetooth equipment determination
The channel quality of bluetooth channel meets the channel quality requirement.
13. the method according to any one of claim 9-12, which is characterized in that described in first bluetooth equipment obtains
The type of data packet that second bluetooth equipment is supported, comprising:
First bluetooth equipment sends the second request to second bluetooth equipment, and second request is for requesting described the
The ability characteristics parameter that two bluetooth equipments are supported;
First bluetooth equipment receives the response for second request that second bluetooth equipment is sent, second request
Response in include ability characteristics parameter that second bluetooth equipment is supported, the ability characteristics that second bluetooth equipment is supported
It include the type of data packet that second bluetooth equipment is supported in parameter.
14. method described in any one of 0-12 according to claim 1, which is characterized in that when the channel quality information includes
When the RSSI of second bluetooth equipment, first bluetooth equipment obtains the RSSI of second bluetooth equipment, comprising:
First bluetooth equipment sends third request to second bluetooth equipment, and the third request is used for request institute
State the RSSI of the second bluetooth equipment;
First bluetooth equipment receives the response for the third request that second bluetooth equipment is sent, the third request
Response in include second bluetooth equipment RSSI.
15. the method according to any one of claim 9-14, which is characterized in that first bluetooth equipment is according to
Second Type is sent before the second data to second bluetooth equipment, further includes:
First bluetooth equipment sends the response of first request, the sound of first request to second bluetooth equipment
It include the Second Type in answering.
16. the method according to any one of claim 9-15, which is characterized in that when first bluetooth equipment with it is described
Second bluetooth equipment is established before bluetooth connection again, further includes:
First bluetooth equipment saves the mark and the corresponding relationship of the Second Type of second bluetooth equipment;
First bluetooth equipment is according to the Second Type and second bluetooth devices, comprising:
First bluetooth equipment determines first bluetooth according to the mark of the corresponding relationship and second bluetooth equipment
The type of data packet that equipment and second bluetooth devices use is the Second Type;
First bluetooth equipment sends data to first bluetooth equipment using the corresponding data packet of the Second Type.
17. a kind of first bluetooth equipment characterized by comprising
Processor, for obtain the second bluetooth equipment support type of data packet, the type of data packet include the first kind and
Second Type;
Transmitter, for sending the first data to second bluetooth equipment according to the first kind;
Receiver, the first request sent for receiving second bluetooth equipment, first request is for requesting switching institute
State the first kind;
The processor is also used to determine that first bluetooth equipment and second bluetooth are set in response to first request
The channel quality for the bluetooth channel that standby communication uses meets preset channel quality requirement;
The transmitter is also used to send the second data to second bluetooth equipment according to the Second Type;
The processor is also used to when first bluetooth equipment establishes bluetooth connection again with second bluetooth equipment,
According to the Second Type and second bluetooth devices.
18. equipment according to claim 17, which is characterized in that the processor response is determined in first request
The channel quality for the bluetooth channel that first bluetooth equipment and second bluetooth devices use meets preset channel
Quality requirement, specifically:
The channel quality information of the bluetooth channel is obtained, the channel quality information includes at least one of following parameter:
The received signal strength indicator RSSI of second bluetooth equipment, the frequency of switch data Packet type, transmit queue buffer area
The Packet Error Ratio of size, the number of retransmissions of data packet and data packet;
According to the channel quality information and the channel quality requirement, determine described in the channel quality satisfaction of the bluetooth channel
Channel quality requirement.
19. equipment according to claim 18, which is characterized in that when the channel quality information includes second bluetooth
When the RSSI of equipment, the processor determines the bluetooth letter according to the channel quality information and the channel quality requirement
The channel quality in road meets the channel quality requirement, specifically:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, determine that the channel quality of the bluetooth channel is full
The foot channel quality requirement.
20. equipment according to claim 18, which is characterized in that the processor is according to the channel quality information and institute
Channel quality requirement is stated, determines that the channel quality of the bluetooth channel meets the channel quality requirement, specifically:
When the RSSI of second bluetooth equipment is greater than preset RSSI threshold value, the switching number of second bluetooth equipment is judged
According in the Packet Error Ratio of the frequency of Packet type, the buffer size of transmit queue, the number of retransmissions of data packet and data packet extremely
Whether few one meet corresponding threshold value;
When the weight of the frequency of the switch data Packet type of second bluetooth equipment, the buffer size of transmit queue, data packet
When biography at least one of number and the Packet Error Ratio of data packet meet corresponding threshold value, the channel matter of the bluetooth channel is determined
Amount meets the channel quality requirement.
21. equipment described in any one of 7-20 according to claim 1, which is characterized in that the processor obtains described second
The type of data packet that bluetooth equipment is supported, specifically:
The second request is sent to second bluetooth equipment by the transmitter, second request is for requesting described second
The ability characteristics parameter that bluetooth equipment is supported;
The response for second request that second bluetooth equipment is sent is received by the receiver, second request
It include the ability characteristics parameter that second bluetooth equipment is supported in response, the ability characteristics ginseng that second bluetooth equipment is supported
It include the type of data packet that second bluetooth equipment is supported in number.
22. equipment described in any one of 8-20 according to claim 1, which is characterized in that when the channel quality information includes
When the RSSI of second bluetooth equipment, the processor obtains the RSSI of second bluetooth equipment, comprising:
Third request is sent to second bluetooth equipment by the transmitter, the third request is for described in request
The RSSI of second bluetooth equipment;
The response for the third request that second bluetooth equipment is sent is received by the receiver, the third request
It include the RSSI of second bluetooth equipment in response.
23. equipment described in any one of 7-22 according to claim 1, which is characterized in that the transmitter is also used to:
The response of first request is sent to second bluetooth equipment, includes described second in the response of first request
Type.
24. equipment described in any one of 7-23 according to claim 1, which is characterized in that the processor is also used to:
Before first bluetooth equipment and second bluetooth equipment establish bluetooth connection again, second bluetooth is saved
The mark and the corresponding relationship of the Second Type of equipment;
The processor according to the Second Type and second bluetooth devices, specifically:
According to the mark of the corresponding relationship and second bluetooth equipment, first bluetooth equipment and second indigo plant are determined
The type of data packet that the communication of tooth equipment uses is the Second Type;
Data are sent to first bluetooth equipment using the corresponding data packet of the Second Type.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2019103395157 | 2019-04-25 | ||
CN201910339515 | 2019-04-25 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110446193A true CN110446193A (en) | 2019-11-12 |
CN110446193B CN110446193B (en) | 2020-12-01 |
Family
ID=68428827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910576690.8A Active CN110446193B (en) | 2019-04-25 | 2019-06-28 | Processing method and device of Bluetooth data packet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110446193B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111277930A (en) * | 2020-03-05 | 2020-06-12 | 展讯通信(上海)有限公司 | Single-ear far detection method of multi-ear Bluetooth headset and Bluetooth headset |
CN111542038A (en) * | 2020-05-14 | 2020-08-14 | 浙江强脑科技有限公司 | Bluetooth networking system with time synchronization function |
CN113078926A (en) * | 2021-03-19 | 2021-07-06 | 维沃移动通信有限公司 | Data transmission method and device and electronic equipment |
CN116095780A (en) * | 2023-04-10 | 2023-05-09 | 深圳市通恒伟创科技有限公司 | 4G and wifi synchronous communication method, system, equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841394A (en) * | 2010-06-09 | 2010-09-22 | 中南大学 | Method for measuring and calculating document transmission energy consumption of Bluetooth equipment and device thereof |
CN104092825A (en) * | 2014-07-07 | 2014-10-08 | 深圳市微思客技术有限公司 | Bluetooth voice control method and device and intelligent terminal |
CN104135741A (en) * | 2014-07-08 | 2014-11-05 | 福建联迪商用设备有限公司 | Method of Bluetooth low energy communication, Bluetooth devices and system |
CN106470472A (en) * | 2015-08-18 | 2017-03-01 | Gn瑞声达A/S | The method exchanging different size packet between the first and second portable communication devices |
CN106559737A (en) * | 2015-09-28 | 2017-04-05 | 展讯通信(上海)有限公司 | Bluetooth operating mode switching control method and device |
CN106792462A (en) * | 2016-12-22 | 2017-05-31 | 深圳Tcl数字技术有限公司 | Bluetooth audio frequency transmits method of adjustment and device |
CN109561416A (en) * | 2018-12-24 | 2019-04-02 | 福建联迪商用设备有限公司 | A kind of method and terminal reducing Bluetooth communication power consumption |
-
2019
- 2019-06-28 CN CN201910576690.8A patent/CN110446193B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841394A (en) * | 2010-06-09 | 2010-09-22 | 中南大学 | Method for measuring and calculating document transmission energy consumption of Bluetooth equipment and device thereof |
CN104092825A (en) * | 2014-07-07 | 2014-10-08 | 深圳市微思客技术有限公司 | Bluetooth voice control method and device and intelligent terminal |
CN104135741A (en) * | 2014-07-08 | 2014-11-05 | 福建联迪商用设备有限公司 | Method of Bluetooth low energy communication, Bluetooth devices and system |
CN106470472A (en) * | 2015-08-18 | 2017-03-01 | Gn瑞声达A/S | The method exchanging different size packet between the first and second portable communication devices |
CN106559737A (en) * | 2015-09-28 | 2017-04-05 | 展讯通信(上海)有限公司 | Bluetooth operating mode switching control method and device |
CN106792462A (en) * | 2016-12-22 | 2017-05-31 | 深圳Tcl数字技术有限公司 | Bluetooth audio frequency transmits method of adjustment and device |
CN109561416A (en) * | 2018-12-24 | 2019-04-02 | 福建联迪商用设备有限公司 | A kind of method and terminal reducing Bluetooth communication power consumption |
Non-Patent Citations (1)
Title |
---|
BLUETOOTH: "Bluetooth Core Specification v 5.0", 《SPECIFICATION OF THE BLUETOOTH SYSTEM》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111277930A (en) * | 2020-03-05 | 2020-06-12 | 展讯通信(上海)有限公司 | Single-ear far detection method of multi-ear Bluetooth headset and Bluetooth headset |
CN111542038A (en) * | 2020-05-14 | 2020-08-14 | 浙江强脑科技有限公司 | Bluetooth networking system with time synchronization function |
CN113078926A (en) * | 2021-03-19 | 2021-07-06 | 维沃移动通信有限公司 | Data transmission method and device and electronic equipment |
CN116095780A (en) * | 2023-04-10 | 2023-05-09 | 深圳市通恒伟创科技有限公司 | 4G and wifi synchronous communication method, system, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110446193B (en) | 2020-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110446193A (en) | The treating method and apparatus of bluetooth data packets | |
CN111836329B (en) | Data transmission method and related device | |
US20210360650A1 (en) | Packet offloading method, mobile terminal, and storage medium | |
WO2020207229A1 (en) | Data transmission method and related apparatus | |
US8055306B2 (en) | Mobile phone alert system and method | |
CN109246671A (en) | Data transmission method, apparatus and system | |
CN111385828B (en) | Method, terminal and system for receiving and transmitting data in wireless local area network and network access equipment | |
CN109151212B (en) | Equipment control method and device and electronic equipment | |
CN108886677A (en) | System and method for bluetooth equipment discovery | |
JP4847085B2 (en) | Wireless communication method and wireless communication terminal device | |
CN104135339A (en) | Bluetooth low-power-consumption communication method, Bluetooth equipment and system | |
CN109120524B (en) | Link aggregation method and related equipment | |
CN109495880A (en) | Data transmission method and relevant apparatus | |
CN109547897B (en) | Wireless earphone connection method, device and system and wireless earphone box | |
CN112995829B (en) | Audio processing assembly for wireless communication and signal processing method thereof | |
CN113038440A (en) | Communication channel switching method and device, computer equipment and readable storage medium | |
JPWO2019161112A5 (en) | ||
WO2018230091A1 (en) | Communication control device, communication terminal, method for controlling communication terminal, control program, and data structure | |
JP2000004469A (en) | Radio communication system, base station device and method for optimizing radio transmission channel | |
CN112383948A (en) | Data transmission method, device, storage medium and electronic equipment | |
JP3435908B2 (en) | Digital wireless communication device | |
CN106713171A (en) | Server and delay-queue-based current-limiting protection system and method | |
CN111083120A (en) | Data transmission method and device, electronic equipment and storage medium | |
CN112788622A (en) | Configuration method, device and equipment of sensing window | |
CN112866965B (en) | Intelligent glasses |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |