CN110446193B - Processing method and device of Bluetooth data packet - Google Patents

Processing method and device of Bluetooth data packet Download PDF

Info

Publication number
CN110446193B
CN110446193B CN201910576690.8A CN201910576690A CN110446193B CN 110446193 B CN110446193 B CN 110446193B CN 201910576690 A CN201910576690 A CN 201910576690A CN 110446193 B CN110446193 B CN 110446193B
Authority
CN
China
Prior art keywords
bluetooth device
bluetooth
type
channel quality
data packet
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.)
Active
Application number
CN201910576690.8A
Other languages
Chinese (zh)
Other versions
CN110446193A (en
Inventor
牛永民
唐能福
李哲
索亚运
赵吟斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN110446193A publication Critical patent/CN110446193A/en
Application granted granted Critical
Publication of CN110446193B publication Critical patent/CN110446193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services 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 application provides a processing method and a processing device for a Bluetooth data packet, and the processing method comprises the following steps: the first Bluetooth device determines whether the channel quality of a Bluetooth channel used by the first Bluetooth device and the second Bluetooth device for communication meets a preset channel quality requirement before switching the data packet type according to the request of the second Bluetooth device, and switches the data packet type from the first type to the second type when the channel quality meets the preset channel quality requirement. And when the first Bluetooth device establishes Bluetooth connection with the second Bluetooth device again, the first Bluetooth device communicates with the second Bluetooth device according to the second type. The method enables the switched second type to be matched with the processing capacity of the second Bluetooth device, and when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type, so that the problem of data packet loss caused by limited processing capacity of the Bluetooth device can be effectively avoided.

Description

Processing method and device of Bluetooth data packet
Technical Field
The present application relates to Bluetooth (Bluetooth) technology, and in particular, to a method and an apparatus for processing a Bluetooth packet.
Background
After the mobile phone is connected with a bluetooth device (such as a bluetooth headset or a vehicle), capability features supported by the bluetooth device are acquired, the capability features supported by the bluetooth device include types of data packets supported by the bluetooth device, and the size of a data packet to be transmitted is set by the mobile phone according to the types of the data packets supported by the bluetooth device.
The types of the current data packets include 1M (mega), 2M and 3M, wherein 1M, 2M and 3M represent the size of the data packets, and generally, the higher the transmission rate, the larger the data packets are used. However, the type of the data packet sent by the mobile phone may not match with the processing capability of the bluetooth device for the data packet, so that the bluetooth device may generate a packet loss phenomenon.
Disclosure of Invention
The application provides a processing method and device of a Bluetooth data packet, which can reduce the packet loss phenomenon of Bluetooth equipment.
A first aspect of the present application provides a bluetooth system, including a first bluetooth device and a second bluetooth device, where the first bluetooth device acquires a packet type supported by the second bluetooth device, where the packet type includes a first type and a second type, and according to the first type, sends a first data to the second bluetooth device, and in response to a first trigger event, the second bluetooth device sends a first request to the first bluetooth device, where the first request is used to request for switching the first type.
And responding to the first request, the first Bluetooth device determines that the channel quality of a Bluetooth channel used by the first Bluetooth device and the second Bluetooth device for communication meets a preset channel quality requirement, sends second data to the second Bluetooth device according to the second type, and when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type.
The first Bluetooth device switches the type of the data packet from the first type to the second type under the condition that the channel quality of the Bluetooth channel meets the preset channel quality requirement, so that the switched second type is matched with the processing capacity of the second Bluetooth device, and when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type, and therefore the problem that the data packet is lost due to the fact that the processing capacity of the Bluetooth device is limited after the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again can be effectively avoided.
In an exemplary manner, in response to the first request, the first bluetooth device determining that the channel quality of a bluetooth channel used by the first bluetooth device for communication with the second bluetooth device satisfies a preset channel quality requirement includes:
the first Bluetooth device obtains channel quality information of the Bluetooth channel, wherein the channel quality information comprises at least one of the following parameters: the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the first bluetooth device determining that the channel quality of the bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement includes: and when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the determining, by the first bluetooth device, that the channel quality of the bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement includes: when the RSSI of the second Bluetooth device is larger than a preset RSSI threshold value, the first Bluetooth device judges whether at least one of the frequency of the type of the switching data packet of the second Bluetooth device, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet meets a corresponding threshold value, and when at least one of the frequency of the type of the switching data packet of the second Bluetooth device, the size of the buffer area of the sending queue, the retransmission times of the data packet and the packet error rate of the data packet meets a corresponding threshold value, the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the acquiring, by the first bluetooth device, the packet types supported by the second bluetooth device includes: the first Bluetooth device sends a second request to the second Bluetooth device, where the second request is used to request the capability feature parameters supported by the second Bluetooth device, the second Bluetooth device sends a response of the second request to the first Bluetooth device, the response of the second request includes the capability feature parameters supported by the second Bluetooth device, and the capability feature parameters supported by the second Bluetooth device includes the packet types supported by the second Bluetooth device.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the obtaining, by the first bluetooth device, the RSSI of the second bluetooth device includes: the first Bluetooth device sends a third request to the second Bluetooth device, the third request is used for requesting to acquire the RSSI of the second Bluetooth device, the second Bluetooth device sends a response of the third request to the first Bluetooth device, and the response of the third request comprises the RSSI of the second Bluetooth device.
In an exemplary manner, before the first bluetooth device sends the second data to the second bluetooth device according to the second type, the first bluetooth device sends a response of the first request to the second bluetooth device, where the response of the first request includes the second type.
In an exemplary manner, before the first bluetooth device establishes bluetooth connection with the second bluetooth device again, the first bluetooth device stores a correspondence between the identifier of the second bluetooth device and the second type. Correspondingly, the first bluetooth device determines the type of the data packet used by the first bluetooth device for communicating with the second bluetooth device to be the second type according to the corresponding relationship and the identifier of the second bluetooth device, and sends data to the first bluetooth device by using the data packet corresponding to the second type.
In an exemplary manner, after the first bluetooth device and the second bluetooth device establish bluetooth connection again, before the first bluetooth device sends data to the first bluetooth device by using the data packet corresponding to the second type, the first bluetooth device sends a notification message to the second bluetooth device, where the notification message is used to notify the first bluetooth device that the type of the data packet used for communication between the first bluetooth device and the second bluetooth device is the second type.
In an exemplary manner, the first bluetooth device includes a host and a bluetooth chip controller, and the acquiring, by the first bluetooth device, channel quality information of the bluetooth channel includes: the Bluetooth chip controller acquires the channel quality information of the Bluetooth channel, the Bluetooth chip controller sends the channel quality information of the Bluetooth channel to the host, and the host determines that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement.
In a second aspect of the present application, a method for processing a bluetooth packet is provided, including: the method comprises the steps that a first Bluetooth device obtains data packet types supported by a second Bluetooth device, the data packet types comprise a first type and a second type, first data are sent to the second Bluetooth device according to the first type, a first request sent by the second Bluetooth device is received, the first request is used for requesting to switch the first type, the first Bluetooth device determines that the channel quality of a Bluetooth channel used by the first Bluetooth device and the second Bluetooth device in communication meets the preset channel quality requirement in response to the first request, and second data are sent to the second Bluetooth device according to the second type. And when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type.
In an exemplary manner, in response to the first request, the first bluetooth device determining that the channel quality of a bluetooth channel used by the first bluetooth device for communication with the second bluetooth device satisfies a preset channel quality requirement includes:
the first Bluetooth device obtains channel quality information of the Bluetooth channel, wherein the channel quality information comprises at least one of the following parameters: the received signal strength indicator RSSI of the second Bluetooth equipment, the frequency of the type of the switched data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet;
and the first Bluetooth equipment determines that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the first bluetooth device determining that the channel quality of the bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement includes:
and when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the determining, by the first bluetooth device, that the channel quality of the bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement includes:
when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment judges whether at least one of the frequency of switching the data packet type, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth equipment meets the corresponding threshold value or not;
and when at least one of the frequency of switching the data packet types, the size of a buffer area of a sending queue, the retransmission times of the data packets and the packet error rate of the data packets of the second Bluetooth device meets a corresponding threshold value, the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the acquiring, by the first bluetooth device, the packet types supported by the second bluetooth device includes:
the first Bluetooth device sends a second request to the second Bluetooth device, wherein the second request is used for requesting the capability feature parameters supported by the second Bluetooth device;
and the first Bluetooth device receives a response of the second request sent by the second Bluetooth device, wherein the response of the second request comprises the capability feature parameters supported by the second Bluetooth device, and the capability feature parameters supported by the second Bluetooth device comprise the data packet types supported by the second Bluetooth device.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the obtaining, by the first bluetooth device, the RSSI of the second bluetooth device includes:
the first Bluetooth device sends a third request to the second Bluetooth device, wherein the third request is used for requesting to acquire the RSSI of the second Bluetooth device;
and the first Bluetooth device receives a response of the third request sent by the second Bluetooth device, wherein the response of the third request comprises the RSSI of the second Bluetooth device.
In an exemplary manner, before the first bluetooth device sends the second data to the second bluetooth device according to the second type, the method further includes:
and the first Bluetooth device sends a response of the first request to the second Bluetooth device, wherein the response of the first request comprises the second type.
In an exemplary manner, before the first bluetooth device and the second bluetooth device establish a bluetooth connection again, the method further includes:
the first Bluetooth device stores the corresponding relation between the identifier of the second Bluetooth device and the second type;
the first Bluetooth device communicating with the second Bluetooth device according to the second type, including:
the first Bluetooth device determines the type of a data packet used by the first Bluetooth device for communicating with the second Bluetooth device to be the second type according to the corresponding relation and the identifier of the second Bluetooth device;
and the first Bluetooth device sends data to the first Bluetooth device by using the data packet corresponding to the second type.
An aspect of the present application provides a first bluetooth device, including:
the acquisition module is used for acquiring data packet types supported by second Bluetooth equipment, wherein the data packet types comprise a first type and a second type;
the sending module is used for sending first data to the second Bluetooth equipment according to the first type;
a receiving module, configured to receive a first request sent by the second bluetooth device, where the first request is used to request to switch the first type;
the determining module is used for responding to the first request, and the first Bluetooth device determines that the channel quality of a Bluetooth channel used by the first Bluetooth device and the second Bluetooth device for communication meets a preset channel quality requirement;
the sending module is further configured to send second data to the second bluetooth device according to the second type;
the sending module is further configured to communicate with the second bluetooth device according to the second type when the first bluetooth device and the second bluetooth device establish bluetooth connection again.
In an exemplary manner, the determining module is specifically configured to:
acquiring channel quality information of the Bluetooth channel, wherein the channel quality information comprises at least one of the following parameters: the received signal strength indicator RSSI of the second Bluetooth equipment, the frequency of the type of the switched data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet;
and determining that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement.
In an exemplary manner, when the channel quality information includes an RSSI of the second bluetooth device, the determining module is specifically configured to: and when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the determining module is specifically configured to:
when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment judges whether at least one of the frequency of switching the data packet type, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth equipment meets the corresponding threshold value or not;
and when at least one of the frequency of switching the data packet types, the size of a buffer area of a sending queue, the retransmission times of the data packets and the packet error rate of the data packets of the second Bluetooth device meets a corresponding threshold value, the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the obtaining module is specifically configured to:
the first Bluetooth device sends a second request to the second Bluetooth device, wherein the second request is used for requesting the capability feature parameters supported by the second Bluetooth device;
and the first Bluetooth device receives a response of the second request sent by the second Bluetooth device, wherein the response of the second request comprises the capability feature parameters supported by the second Bluetooth device, and the capability feature parameters supported by the second Bluetooth device comprise the data packet types supported by the second Bluetooth device.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the determining module obtains the channel quality information of the bluetooth channel, specifically: sending a third request to the second bluetooth device, where the third request is used to request to acquire the RSSI of the second bluetooth device, and receiving a response of the third request sent by the second bluetooth device, where the response of the third request includes the RSSI of the second bluetooth device.
In an exemplary manner, the sending module is further configured to: and sending a response of the first request to the second Bluetooth device before sending second data to the second Bluetooth device according to the second type, wherein the response of the first request comprises the second type.
In an exemplary manner, the method further comprises:
the storage module is used for storing the corresponding relation between the identifier of the second Bluetooth device and the second type;
the sending module is specifically configured to: before the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, determining the type of a data packet used by the first Bluetooth device and the second Bluetooth device for communication to be the second type according to the corresponding relationship and the identifier of the second Bluetooth device, and sending data to the first Bluetooth device by using the data packet corresponding to the second type.
A fourth aspect of the present application provides a bluetooth device comprising a processor, a memory for storing instructions, and a transceiver for communicating with other devices, the processor being configured to execute the instructions stored in the memory to cause the bluetooth device to perform the method according to the second aspect of the present application and any one of the exemplary manners.
A fifth aspect of the present application provides a computer-readable storage medium having stored thereon instructions that, when executed, cause a computer to perform a method according to the second aspect of the present application and any one of the exemplary manners.
A sixth aspect of the present application provides a computer program product comprising instructions which, when executed, cause a computer to perform the method of the second aspect and any of the example approaches.
A seventh aspect of the present application provides a system-on-chip or system-on-chip, where the system-on-chip or system-on-chip is applicable to a bluetooth device, and the system-on-chip or system-on-chip includes: at least one communication interface, at least one processor, at least one memory, the communication interface, the memory and the processor interconnected by a bus, the processor causing the bluetooth device to perform the method according to the second aspect of the present application and any of the exemplary methods by executing instructions stored in the memory.
The embodiment of the application provides a processing method of a Bluetooth data packet, which comprises the following steps: the method comprises the steps that before switching data packet types according to a request of a second Bluetooth device, a first Bluetooth device determines whether channel quality of a Bluetooth channel used by the first Bluetooth device and the second Bluetooth device for communication meets a preset channel quality requirement or not, when the channel quality meets the preset channel quality requirement, the data packet types are switched from a first type to a second type, data are sent to the second Bluetooth device according to the second type, and when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type. The method enables the switched second type to be matched with the processing capacity of the second Bluetooth device, and when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type, so that the problem that data packets are lost due to the fact that the processing capacity of the Bluetooth device is limited after the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again can be effectively avoided.
Drawings
FIG. 1 is a schematic diagram of a network architecture suitable for use in the present application;
fig. 2 is a flowchart of a processing method of bluetooth packets according to an embodiment of the present invention;
fig. 3 is a signaling flowchart of a processing method of bluetooth packets according to a second embodiment of the present invention;
fig. 4 is a signaling flowchart of a processing method of a bluetooth packet according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a first bluetooth device according to a fourth embodiment of the present application;
fig. 6 is a schematic diagram of a first bluetooth device according to a fifth embodiment of the present application.
Detailed Description
The application provides a processing method of a Bluetooth data packet, which can be applied between two Bluetooth devices establishing Bluetooth connection. Fig. 1 is a schematic diagram of a network architecture suitable for the present application, and as shown in fig. 1, the network architecture includes two bluetooth devices: a first bluetooth device and a second bluetooth device. In the structure shown in fig. 1, the first bluetooth device is a mobile phone, the second bluetooth device is a bluetooth headset, and the mobile phone and the bluetooth headset communicate with each other through bluetooth connection.
It is to be understood that the first bluetooth device is not limited to a handset, nor is the second bluetooth device limited to a bluetooth headset. The first Bluetooth device and the second Bluetooth device can be any electronic device with Bluetooth function. For example, the first bluetooth device and the second bluetooth device may be a mobile phone, a tablet Computer, a handheld Computer, a notebook Computer, an Ultra-mobile Personal Computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), a wearable device (such as a smart band, a smart watch, smart glasses, a smart helmet, etc.), an in-vehicle device, a smart speaker, an Augmented Reality (AR) \ Virtual Reality (VR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like.
Taking a mobile phone and a vehicle-mounted device as an example, after the bluetooth connection is established between the mobile phone and the vehicle-mounted device, the mobile phone may obtain capability feature parameters (features) supported by the vehicle-mounted device, and the capability feature parameters are used for representing the capability of the current bluetooth device for transmitting data. The mobile phone can acquire the feature capability parameters of the opposite-end Bluetooth device through the HCI Read Supported Features Complete () command.
The capability feature parameters supported by the bluetooth device may be represented in the form shown in table one:
watch 1
Name (or identification) of capability feature parameter Value taking
Capability characteristic parameter one yes
Capability characteristic parameter two no
……
Capability characteristic parameter N Yes
The value of the capability feature parameter may be "yes" or "no", and when the value is "yes", it indicates that the device supports the capability feature parameter, and when the value is "no", it indicates that the device does not support the capability feature parameter.
The capability feature parameters supported by the vehicle-mounted device include type information of a data packet supported by the vehicle-mounted device, and the type information of the data packet is, for example, 1M, 2M, and the like.
Of course, the capability feature parameters supported by the bluetooth device are not limited to the packet types supported by the bluetooth device, and may also include one or more of the following parameters: a 3slot packet (3 slots), a 5 slot packet (3 slots), a role switch (role switch), a power control (power control), a slot offset (slot offset), a synchronous link (SOC link), and the like.
Currently, the types of data packets supported by bluetooth devices include 1M, 2M and 3M data packets. The type information of the data packet supported by the peer bluetooth device, which is acquired by the mobile phone, may be: "enhanced data rate ACL 2Mbps mode (i.e., 2M packet)" and/or "enhanced data rate ACL 3Mbps mode (i.e., 3M packet)".
If the peer bluetooth device declares that the peer bluetooth device supports the 3M data packet in the capability characteristic parameters, the mobile phone may set the type of the data packet sent to the bluetooth device to be the 3M data packet according to the acquired capability characteristic parameters of the bluetooth device. If the peer bluetooth device declares that it supports 2M data packets in the capability characteristic parameters, the mobile phone may set the type of the data packet sent to the peer bluetooth device to be a 2M data packet according to the acquired capability characteristic parameters of the bluetooth device. After the type of the data packet is set, the mobile phone sends the data packet to the opposite-end Bluetooth device according to the type of the data packet, and the subsequent opposite-end Bluetooth device can request the mobile phone to switch the type of the data packet according to the requirement of the subsequent opposite-end Bluetooth device.
Optionally, after the mobile phone establishes a connection with the bluetooth device, the mobile phone may set the type of the data packet sent to the peer bluetooth device instead of obtaining the type of the supported data packet from the peer bluetooth device.
In some scenarios, although the bluetooth device declares itself to support 2M or 3M packets in the capability characterization parameter, the bluetooth device cannot process all packets sent by the mobile phone due to limited data processing capability of the bluetooth device, so that a part of the packets are discarded. When the Bluetooth device is a vehicle-mounted device, the music card is pause due to the fact that a part of data packets are discarded, and user experience is not good.
In this embodiment, the data processing capability of the bluetooth device may be a processing speed of the bluetooth device, where the processing speed is a size of a data amount processed in a unit time (e.g., 1 second), and if the data amount sent to the peer bluetooth device in the unit time by the mobile phone is greater than the processing speed, the data amount in a buffer of the peer bluetooth device will exceed a capacity threshold of the buffer, and the bluetooth device can only discard a part of data.
In other scenarios, the size of the packet set by the handset itself does not match the size of the packet supported by the peer bluetooth device, resulting in packet dropping. For example, the size of a data packet sent to the bluetooth device of the opposite end set by the mobile phone is a 3M data packet, and the bluetooth device actually supports only a 2M data packet, so that the data packet sent by the mobile phone cannot be completely processed by the bluetooth device, thereby causing the data packet to be discarded.
In one possible embodiment, the handset may use the blacklist to define a specific bluetooth device, for example, by recording an identity (e.g., mac address, ID, etc.) of the specific bluetooth device when the data transmission rate is slow or the packet loss rate is high, the handset may directly default to sending 1M or 2M data packets when the handset is connected to the bluetooth device in the blacklist, even if the peer bluetooth device supports the capability of 3M data packet transmission.
In order to solve the problem of packet loss caused by limited data processing capability of a bluetooth device, an embodiment of the present invention provides a method for processing a bluetooth data packet, and fig. 2 is a flowchart of the method for processing the bluetooth data packet according to the embodiment of the present invention, as shown in fig. 2, the method provided by this embodiment includes the following steps:
s101, the first Bluetooth device obtains data packet types supported by the second Bluetooth device, wherein the data packet types comprise a first type and a second type.
Illustratively, the first bluetooth device sends a second request to the second bluetooth device, the second request requesting capability feature parameters supported by the second bluetooth device.
After the first bluetooth device may establish an asynchronous connection-oriented link (ACL) link with the second bluetooth device, the ACL link is a bluetooth connection, and the first bluetooth device and the second bluetooth device may send the second request to the second bluetooth device through a message: HCI create connection, establishing ACL link. The process of establishing connection of ACL links refers to the prior art, and this embodiment is not specifically described.
The second request is used for requesting to acquire the capability Features Supported by the second bluetooth device, and the second request may be an HCI Read Remote Supported feeds command.
And the second Bluetooth device sends a response of the second request to the first Bluetooth device, wherein the response of the second request comprises the capability characteristic parameters supported by the second Bluetooth device.
And the second Bluetooth device generates a response of the second request according to the second request, wherein the response of the second request comprises the capability feature parameters supported by the second Bluetooth device, and the capability feature parameters supported by the second Bluetooth device comprise but are not limited to the packet type information supported by the second Bluetooth device, and the packet type comprises but is not limited to the first type and the second type. The data packet type is the size of the data packet, and the first type may be a 3M data packet and the second type is a 2M data packet, or the first type is a 2M data packet and the second type is a 1M data packet.
When the second request is an HCI Read Remote Supported feeds command, the response of the second request is an HCI Read Remote Supported feeds response message.
S102, the first Bluetooth device sends first data to the second Bluetooth device according to the first type.
After the first Bluetooth device acquires the data packet types supported by the second Bluetooth device, the first Bluetooth device sets the data packet types sent to the second Bluetooth device according to the data packet types supported by the second Bluetooth device, and communicates with the second Bluetooth device according to the set data packet types.
In this embodiment, the first bluetooth device sets the type of the data packet sent to the second bluetooth device to be the first type, and sends the first data to the second bluetooth device by using the data packet corresponding to the first type. Typically, a first bluetooth device will select the maximum number of packet types supported by a second bluetooth device to send data to the second bluetooth device.
Optionally, after determining the type of the data packet sent to the second bluetooth device, the first bluetooth device sends the type of the data packet to the second bluetooth device.
S103, the first Bluetooth device receives a first request sent by the second Bluetooth device, wherein the first request is used for requesting to switch the first type.
The second bluetooth device sends a first request to the first bluetooth device in response to the first trigger event.
After the first bluetooth device communicates with the second bluetooth device for a period of time, the second bluetooth device may determine the type of the switched data packet according to parameters such as the current capability of receiving the data packet, the environmental interference level, the Received Signal Strength Indication (RSSI), the packet loss rate, and the like. Correspondingly, the first trigger event is that parameters such as the current data packet receiving capability of the second bluetooth device, the environmental interference degree, the RSSI, the packet loss rate and the time delay meet preset conditions.
For example, the type of the data packet supported by the second bluetooth device is 3M, when the distance between the first bluetooth device and the second bluetooth device is increased, the bluetooth signal strength is weakened, which may cause the transmission speed between the first bluetooth device and the second bluetooth device to decrease, after the transmission speed is slowed, the delay of the 3M data packet is large, the delay of the data packet cannot meet the requirement, and the second bluetooth device determines to switch the type of the data packet from the 3M data packet to the 2M data packet.
After the distance between the first Bluetooth device and the second Bluetooth device is shortened, the Bluetooth signal intensity is strengthened, and at the moment, the Bluetooth device can switch the type of the data packet from the 2M data packet to the 3M data packet.
For another example, when the first bluetooth device transmits a 3M packet, the second bluetooth device determines to switch the type of the packet from the 3M packet to the 2M packet because the processing speed of the second bluetooth device is limited, for example, the first bluetooth device transmits too many packets per unit time and the second bluetooth device does not process the packets.
And after determining the type of the switching data packet, the second Bluetooth device sends a first request to the mobile phone. Optionally, the first request may include information of a target packet type to which the second bluetooth device desires to switch.
The target packet type may be carried by 1 or more bits, for example, the first message includes a packet type field, the field occupies two bits, and the two bits may collectively represent a type of 4. For example, 00 indicates a 1M packet, 01 indicates a 2M packet, 10 indicates a 3M packet, and 11 is a reserved value.
The first request may be a newly defined message or an existing message, and for example, the first request may be an existing LMP Power Control request message, where the LMP Power Control request message is used to request that the Power of the bluetooth device is increased by a maximum or minimum value, or the Power of the bluetooth device is increased by a level or decreased by a level.
And S104, responding to the first request, and determining that the channel quality of a Bluetooth channel used by the first Bluetooth device and the second Bluetooth device for communication meets the preset channel quality requirement by the first Bluetooth device.
In one exemplary approach, the first bluetooth device obtains channel quality information for the bluetooth channel, the channel quality information including at least one of the following parameters: and the RSSI of the second Bluetooth device, the frequency of the type of the switched data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet determine that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement.
In the communication process of the first Bluetooth device and the second Bluetooth device, the first Bluetooth device can detect and record: the second Bluetooth equipment switches the frequency of the type of the data packet, the size of a buffer area of a sending queue of the second Bluetooth equipment, the retransmission times of the data packet and the packet error rate of the data packet.
The frequency of switching the packet type by the second bluetooth device refers to the number of times the second bluetooth device switches the packet type within a unit time (e.g., 1 minute). The number of retransmissions of a data packet refers to the number of retransmissions of the data packet by the first bluetooth device to the second bluetooth device per unit time (e.g., 1 minute). The packet error rate of the data packets refers to a ratio of the number of error packets sent by the first bluetooth device to the second bluetooth device within a preset detection time (e.g., 1 minute) to the total number of data packets.
When the channel quality information includes the RSSI of the second bluetooth device, the first bluetooth device may determine whether the RSSI of the second bluetooth device is greater than a preset RSSI threshold, and when the RSSI of the second bluetooth device is greater than the preset RSSI threshold, the first bluetooth device determines that the channel quality of the bluetooth channel meets the channel quality requirement. In the case where the RSSI of the second bluetooth device is not greater than (i.e., less than or equal to) the preset RSSI threshold, the first bluetooth device determines that the channel quality of the bluetooth channel does not meet the channel quality requirement.
The RSSI value of the second bluetooth device is less than or equal to the RSSI threshold, indicating that the bluetooth signal strength is weak, which is usually caused by the distance between the two bluetooth devices, in which case the request of the second bluetooth device to switch the packet type is triggered by the distance between the two bluetooth devices, rather than triggered by insufficient data processing capability of the second bluetooth device, and therefore the first bluetooth device determines not to switch the packet type.
The RSSI value of the second Bluetooth device is larger than the RSSI threshold value, which shows that the Bluetooth signal strength is strong, and the distance between the two Bluetooth devices is within the normal communication distance of the Bluetooth devices. In this case, the second bluetooth device requests switching of the packet type, which is not caused by a long distance between the handset and the bluetooth device but is triggered due to insufficient data processing capability of the second bluetooth device, and thus the first bluetooth device determines switching of the packet type.
Optionally, when the RSSI of the second bluetooth device is greater than the preset RSSI threshold, the first bluetooth device determines whether at least one of the frequency of switching the packet type, the size of the buffer of the transmission queue, the retransmission times of the packet, and the packet error rate of the packet of the second bluetooth device satisfies the corresponding threshold, and when at least one of the frequency of switching the packet type, the size of the buffer of the transmission queue, the retransmission times of the packet, and the packet error rate of the packet of the second bluetooth device satisfies the corresponding threshold, the first bluetooth device determines that the channel quality of the bluetooth channel satisfies the channel quality requirement.
For example, in the case of TXq ═ 28 and RSSI > -83dBm of the second bluetooth device, if Fpkt > -6, Tcnt > -12 or Err > -5%, the first bluetooth device determines that the channel quality of the bluetooth channel meets the channel quality requirement, requiring a switch of packet type. Wherein TXq represents the buffer size (TX queue buffer size) of the transmission queue of the second bluetooth device, Fpkt represents the frequency of switching the packet type of the second bluetooth device, Tcnt represents the retransmission times of the packet, and Err represents the packet error rate of the packet.
In this embodiment, the first bluetooth device may obtain the RSSI of the second bluetooth device in the following manner: and the first Bluetooth device sends a third request to the second Bluetooth device, wherein the third request is used for requesting to acquire the RSSI of the second Bluetooth device. The second bluetooth device detects the RSSI, and sends the RSSI to the first bluetooth device in a response according to the third request. And the first Bluetooth device receives a response of a third request sent by the second Bluetooth device, and acquires the RSSI of the second Bluetooth device from the response of the third request.
In this embodiment, the first request, the second request, and the third request may all adopt messages defined in an existing bluetooth protocol, or may be newly added messages, which is not limited in this embodiment.
And S105, the first Bluetooth device sends second data to the second Bluetooth device according to the second type.
And when the channel quality of the Bluetooth channel meets the preset channel quality requirement, the first Bluetooth device switches the type of the data packet from the first type to the second type, and sends second data to the second Bluetooth device according to the second type. And under the condition that the channel quality of the Bluetooth channel does not meet the preset channel quality requirement, the first Bluetooth equipment does not switch the type of the data packet, and second data is sent to the second Bluetooth equipment according to the second type.
In this embodiment of the application, when the data processing capability of the second bluetooth device is not matched with the first type, the first bluetooth device switches the packet type, and the size of the switched packet corresponding to the second type is usually smaller than the size of the switched packet corresponding to the first type. For example, the first bluetooth device reduces the packet type from 3M (first type) to 2M (second type), or reduces the packet type from 2M (first type) to 1M (second type). The switched second type can be matched with the data processing capacity of the second Bluetooth device, and data packet loss caused by limited data processing capacity of the second Bluetooth device is avoided.
The first bluetooth device changes the length of a Maximum Transmission Unit (MTU) after switching the packet type, and the changed length of the MTU is adapted to the switched second type.
Optionally, before S105, the first bluetooth device sends a response of the first request to the second bluetooth device, where the response of the first request includes the second type, so as to notify the second bluetooth device that the packet type switching is successful.
And S106, when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type.
Optionally, before S106, the first bluetooth device stores or records a correspondence between the identifier of the second bluetooth device and the second type, where the correspondence may be stored locally in the first bluetooth device or stored in a remote database. The database is used for storing records of all Bluetooth devices connected with the first Bluetooth device, the main key of each record is the identifier of the Bluetooth device, and the field of the record is the type of a data packet. The identifier of the bluetooth device may be a bluetooth address, and the table two is a schematic diagram of a corresponding relationship between the bluetooth address and the data packet type:
watch two
Figure BDA0002112229400000101
Different from the prior art, when the first bluetooth device and the second bluetooth device establish connection again, the first bluetooth device still determines the type of the data packet sent to the second bluetooth device according to the capability feature parameter supported by the second bluetooth device.
And if the corresponding relation between the second Bluetooth equipment and the data packet type is stored, the first Bluetooth equipment determines that the data packet type used by the communication between the first Bluetooth equipment and the second Bluetooth equipment is the second type according to the corresponding relation and the identification of the second Bluetooth equipment, and the first Bluetooth equipment sends data to the first Bluetooth equipment by using the data packet corresponding to the second type. If the correspondence of the second bluetooth device to the packet type is not stored, the first bluetooth device still determines the packet type to be sent to the second bluetooth device in the manner of the prior art.
Because the type of the data packet stored in the corresponding relation is matched with the processing capacity of the second Bluetooth device, the problem that the data packet is lost due to the limited processing capacity of the second Bluetooth device after the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again can be avoided.
Optionally, after the first bluetooth device determines that the type of the data packet used by the first bluetooth device for communicating with the second bluetooth device is the second type, the first bluetooth device sends a notification message to the second bluetooth device, where the notification message is used to notify that the type of the data packet used by the first bluetooth device for communicating with the second bluetooth device is the second type, and the notification message may include information of the second type. Optionally, the notification message is an HCI change connection type.
In this embodiment, before switching the packet type according to the request of the second bluetooth device, the first bluetooth device determines whether the channel quality of the bluetooth channel used for the communication between the first bluetooth device and the second bluetooth device meets the preset channel quality requirement, when the channel quality meets the preset channel quality requirement, the first bluetooth device switches the packet type from the first type to the second type, sends data to the second bluetooth device according to the second type, and when the first bluetooth device and the second bluetooth device establish a bluetooth connection again, the first bluetooth device communicates with the second bluetooth device according to the second type. The first Bluetooth device switches the type of the data packet from the first type to the second type under the condition that the channel quality of the Bluetooth channel meets the preset channel quality requirement, so that the switched second type is matched with the processing capacity of the second Bluetooth device, and when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type, and therefore the problem that the data packet is lost due to the fact that the processing capacity of the Bluetooth device is limited after the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again can be effectively avoided.
On the basis of the first embodiment, fig. 3 is a signaling flowchart of a processing method of a bluetooth data packet according to a second embodiment of the present invention, and as shown in fig. 3, the method according to the present embodiment includes the following steps:
s201, the first Bluetooth device sends a second request to the second Bluetooth device, wherein the second request is used for requesting the capability feature parameters supported by the second Bluetooth device.
After establishing an asynchronous connection-oriented link (ACL) link between the first bluetooth device and the second bluetooth device, sending the first request message, where the ACL link is a bluetooth connection, and the first bluetooth device and the second bluetooth device may transmit a first request message through the messages: HCI create connection, establishing ACL link. The process of establishing connection of ACL links refers to the prior art, and this embodiment is not specifically described.
The second request message is used for requesting to acquire a capability feature Supported by the second bluetooth device, and may be an HCI Read Remote Supported feeds command.
Step S202, the second Bluetooth device sends a response of the second request to the first Bluetooth device, wherein the response comprises the capability feature parameters supported by the second Bluetooth device.
And the second Bluetooth device generates a response of the second request according to the second request, wherein the response of the second request comprises the capability feature parameters supported by the second Bluetooth device, and the capability feature parameters supported by the second Bluetooth device comprise, but are not limited to, the packet types supported by the second Bluetooth device, and the packet types comprise the first type and the second type.
When the second request is an HCI Read Remote Supported feeds command, the response of the second request is an HCI Read Remote Supported feeds response message.
S203, the first Bluetooth device sends first data to the second Bluetooth device according to the first type.
After the first Bluetooth device acquires the data packet types supported by the second Bluetooth device, the first Bluetooth device sets the data packet types sent to the second Bluetooth device to be the first type according to the data packet types supported by the second Bluetooth device, and communicates with the second Bluetooth device according to the first type.
Step S204, responding to the first trigger event, the second Bluetooth device sends a first request to the first Bluetooth device.
The first request is for requesting a handover of a first type.
Step S205, in response to the first request, the first bluetooth device sends a third request to the second bluetooth device, where the third request is used to request to acquire the RSSI of the second bluetooth device.
Alternatively, the third request may employ an HCI _ READ _ RSSI message.
And step S206, the second Bluetooth device sends a response of the third request to the first Bluetooth device.
The third request includes the RSSI of the second bluetooth device in the response.
Step S207, when the RSSI of the second bluetooth device is greater than the preset RSSI threshold, the first bluetooth device determines that the channel quality of the bluetooth channel meets the channel quality requirement.
For example, the first bluetooth device determines whether the RSSI of the second bluetooth device is greater than a preset RSSI threshold, determines that the channel quality of the bluetooth channel does not meet the channel quality requirement when the RSSI of the second bluetooth device is not greater than the RSSI threshold, and determines that the channel quality of the bluetooth channel meets the channel quality requirement when the RSSI of the second bluetooth device is greater than the RSSI threshold.
Step S208 is performed when the channel quality of the bluetooth channel satisfies the channel quality requirement, and the first bluetooth device does not perform any operation when the channel quality of the bluetooth channel does not satisfy the channel quality requirement.
Optionally, when the RSSI of the second bluetooth device is greater than the RSSI threshold, the first bluetooth device determines whether the channel quality of the bluetooth channel meets the channel quality requirement according to at least one of the following parameters: and the second Bluetooth equipment switches the frequency of the type of the data packet, the size of a buffer area of a sending queue of the second Bluetooth equipment, the retransmission times of the data packet and the packet error rate of the data packet, and determines that the data processing capacity of the second Bluetooth equipment is not matched with the type of the data packet currently used by the second Bluetooth equipment.
The specific implementation manner of this step refers to the related description of step S101 in the first embodiment, and is not described herein again.
It can be understood that the distance between the first bluetooth device and the second bluetooth device is dynamically changed, and in the conventional technology, when the distance between the first bluetooth device and the second bluetooth device is increased, the smaller data packet is switched to, and when the distance between the first bluetooth device and the second bluetooth device is decreased, the larger data packet is switched to, so that the switching between the first bluetooth device and the second bluetooth device is repeated frequently. In the scheme of the embodiment, when the channel quality of the bluetooth channel meets the channel quality requirement, the packet type switching is possible, and frequent switching of the packet type caused by the remote sawing between the bluetooth devices is eliminated.
Step S208, the first bluetooth device sends a response of the first request to the second bluetooth device, where the response of the first request includes the second type.
And the first Bluetooth device informs the second Bluetooth device whether the data packet type is successfully switched or not by sending a response of the first request to the second Bluetooth device. When the first request is an LMP Power Control request message, the response of the first request is an LMP Power Control request response message.
Step S209, the first bluetooth device stores the corresponding relationship between the identifier of the second bluetooth device and the second type.
The steps S208 and S209 are not performed in a sequential order.
Step S210, when the first bluetooth device and the second bluetooth device establish connection again, the first bluetooth device determines, according to the identifier of the second bluetooth device and the corresponding relationship, that the type of the data packet used for communication between the first bluetooth device and the second bluetooth device is the second type.
Optionally, after the first bluetooth device determines that the type of the data packet used by the first bluetooth device for communicating with the second bluetooth device is the second type, the first bluetooth device sends a notification message to the second bluetooth device, where the notification message includes the second type. The notification message is used for notifying the first Bluetooth device of the type of the data packet sent to the second Bluetooth device. Optionally, the notification message is an HCI change connection type.
S211, the first Bluetooth device sends data to the first Bluetooth device by using the data packet corresponding to the second type.
In this embodiment, the first bluetooth device switches the type of the data packet from the first type to the second type only when it is determined that the channel quality of the bluetooth channel meets the preset channel quality requirement, so that the switched second type matches the processing capability of the second bluetooth device, and when the first bluetooth device and the second bluetooth device establish bluetooth connection again, the first bluetooth device communicates with the second bluetooth device according to the second type, thereby effectively avoiding the problem that the data packet is lost due to the limitation of the data processing capability of the bluetooth device after the first bluetooth device and the second bluetooth device establish bluetooth connection again.
Fig. 4 is a signaling flowchart of a processing method of a bluetooth packet according to a third embodiment of the present invention, in this embodiment, a first bluetooth device includes two modules: the HOST module and a Bluetooth chip controller (controller) are communicated through HCI. As shown in fig. 4, the method provided by this embodiment includes the following steps:
s301, the HOST module of the first Bluetooth device sends a second request to the second Bluetooth device.
The second request is for requesting capability feature parameters supported by the second Bluetooth device
And S302, the second Bluetooth device sends a response of the second request to the HOST module.
The response of the second request comprises the capability feature parameters supported by the second Bluetooth device, the capability features supported by the second Bluetooth device comprise the data packet types supported by the second Bluetooth device, and the data packet types comprise a first type and a second type.
S303, the Bluetooth chip controller of the first Bluetooth device sends the first data to the second Bluetooth device according to the first type.
S304, responding to the first trigger event, the second Bluetooth device sends a first request to the first Bluetooth device.
The first request is for requesting a handover of a first type.
S305, the Bluetooth chip controller of the first Bluetooth device sends a first request to the HOST module.
And simultaneously, the Bluetooth chip controller records the frequency, retransmission times and packet error rate of the switching data packet of the second Bluetooth equipment.
S306, the HOST module of the first Bluetooth device sends a third request to the second Bluetooth device.
The third request is for requesting to obtain RSSI of the second bluetooth device.
And S307, the second Bluetooth device sends a response of the third request to the HOST module of the first Bluetooth device.
The third request includes the RSSI of the second bluetooth device in the response.
S308, when the RSSI of the second Bluetooth device is larger than a preset RSSI threshold value, the HOST module of the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
S309, switching the data packet type of the HOST module of the first Bluetooth device to be a second type, and storing the corresponding relation between the identifier of the second Bluetooth device and the second type.
For example, the HOST module determines whether the RSSI of the second bluetooth device is greater than a preset RSSI threshold, determines that the channel quality of the bluetooth channel does not meet the channel quality requirement when the RSSI of the second bluetooth device is not greater than the RSSI threshold, and determines that the channel quality of the bluetooth channel meets the channel quality requirement when the RSSI of the second bluetooth device is greater than the RSSI threshold.
Step S310 is executed when the channel quality of the bluetooth channel meets the channel quality requirement, and the HOST module does not execute any operation when the channel quality of the bluetooth channel does not meet the channel quality requirement.
Optionally, when the RSSI of the second bluetooth device is greater than the RSSI threshold, the HOST module determines whether the channel quality of the bluetooth channel meets the channel quality requirement according to at least one of the following parameters: and the second Bluetooth equipment switches the frequency of the type of the data packet, the size of a buffer area of a sending queue of the second Bluetooth equipment, the retransmission times of the data packet and the packet error rate of the data packet, and determines that the data processing capacity of the second Bluetooth equipment is not matched with the type of the data packet currently used by the second Bluetooth equipment.
And S310, the HOST module of the first Bluetooth device sends a response of the first request to the second Bluetooth device.
The response of the first request is used to notify the packet type of the successful or failed handover, and optionally, the response of the first request includes the second bluetooth.
S311, after the first Bluetooth device establishes connection with the second Bluetooth device again, the HOST module of the first Bluetooth device determines that the type of the data packet used for communication between the first Bluetooth device and the second Bluetooth device is the second type according to the stored corresponding relation between the identifier of the second Bluetooth device and the second type.
And S312, the HOST module of the first Bluetooth device sends a notification message to the second Bluetooth device.
The notification message is used for notifying the first bluetooth device of the type of the data packet sent to the second bluetooth device: and a second type.
The specific implementation manner of each step in this embodiment refers to the description related to the first embodiment and the second embodiment, and is not described herein again.
In this embodiment, the HOST module of the first bluetooth device determines whether to switch the data packet type, and completes the switching of the subsequent data packet types. Therefore, in the subsequent data packet transmission process, the type of the data packet sent to the Bluetooth chip controller by the HOST module is the second type after switching. For example, if the HOST module switches the type of the data packet from a 3M data packet to a 2M data packet, the size of the data packet sent by the HOST module to the bluetooth chip controller is 2M, and the size of the data packet sent by the bluetooth chip controller to the second bluetooth device is also 2M.
However, in the prior art, the bluetooth chip controller usually completes the switching of the data packet types, the HOST module does not know that the bluetooth chip controller switches the data packet types, and the data packet sent by the HOST module to the bluetooth chip controller is still the initially set data packet type, so that the bluetooth chip controller needs to unpack the data packet sent by the HOST module before sending the data packet to the second bluetooth device.
For example, the bluetooth chip controller switches the type of the data packet from a 3M data packet to a 2M data packet, and the size of the data packet sent to the bluetooth chip by the HOST module is still 3M, at this time, the size of the data packet sent to the second bluetooth device by the bluetooth chip controller is 2M, so the bluetooth chip controller needs to perform unpacking processing, and split the 3M data packet into the 2M data packet and send the 2M data packet to the second bluetooth device.
Compared with the Bluetooth chip controller for switching the data packet types, the HOST module switches the data packet types, so that the unpacking power consumption of the Bluetooth chip controller can be reduced, and the time delay is reduced.
Optionally, in other embodiments of the present application, the HOST module of the first bluetooth device may also set a blacklist, where the blacklist records an identifier of the bluetooth device and a packet type that is not supported by the bluetooth device. After the first Bluetooth device and the second Bluetooth device are connected, if the blacklist indicates that the type of the data packet which is not supported by the second Bluetooth device is a 3M data packet, the HOST module sets the type of the data packet to be 2M, and if the blacklist indicates that the type of the data packet which is not supported by the second Bluetooth device is a 2M data packet, the HOST module sets the type of the data packet to be 1M.
In this way, after the HOST module generates the blacklist, if the first bluetooth device and the second bluetooth device establish connection again, the HOST module may set the type of the data packet sent to the second bluetooth device directly according to the blacklist without acquiring the type of the data packet supported by the bluetooth device. Of course, the HOST module may also obtain the packet type supported by the second bluetooth device, but may not set the packet type to be sent to the second bluetooth device according to the packet type supported by the second bluetooth device, and still set the packet type to be sent to the second bluetooth device according to the blacklist.
Optionally, the first bluetooth device may set a blacklist on the basis of the first and second embodiments, for example, after the first bluetooth device switches the packet type according to the first and second embodiments, the blacklist is updated instead of storing the correspondence between the identifier of the bluetooth device and the packet type.
Fig. 5 is a schematic diagram of a first bluetooth device according to a fourth embodiment of the present application, and as shown in fig. 5, the first bluetooth device includes:
an obtaining module 11, configured to obtain a data packet type supported by a second bluetooth device, where the data packet type includes a first type and a second type;
a sending module 12, configured to send first data to the second bluetooth device according to the first type;
a receiving module 13, configured to receive a first request sent by the second bluetooth device, where the first request is used to request to switch the first type;
a determining module 14, configured to, in response to the first request, determine, by the first bluetooth device, that a channel quality of a bluetooth channel used by the first bluetooth device and the second bluetooth device for communication meets a preset channel quality requirement;
the sending module 12 is further configured to send second data to the second bluetooth device according to the second type;
the sending module 12 is further configured to communicate with the second bluetooth device according to the second type when the first bluetooth device and the second bluetooth device establish bluetooth connection again.
In an exemplary manner, the determining module 14 is specifically configured to:
acquiring channel quality information of the Bluetooth channel, wherein the channel quality information comprises at least one of the following parameters: the received signal strength indicator RSSI of the second Bluetooth equipment, the frequency of the type of the switched data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet;
and determining that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the determining module 14 is specifically configured to: and when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the determining module 14 is specifically configured to:
when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment judges whether at least one of the frequency of switching the data packet type, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth equipment meets the corresponding threshold value or not;
and when at least one of the frequency of switching the data packet types, the size of a buffer area of a sending queue, the retransmission times of the data packets and the packet error rate of the data packets of the second Bluetooth device meets a corresponding threshold value, the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the obtaining module 11 is specifically configured to:
the first Bluetooth device sends a second request to the second Bluetooth device, wherein the second request is used for requesting the capability feature parameters supported by the second Bluetooth device;
and the first Bluetooth device receives a response of the second request sent by the second Bluetooth device, wherein the response of the second request comprises the capability feature parameters supported by the second Bluetooth device, and the capability feature parameters supported by the second Bluetooth device comprise the data packet types supported by the second Bluetooth device.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the determining module 14 obtains the channel quality information of the bluetooth channel, specifically: sending a third request to the second bluetooth device, where the third request is used to request to acquire the RSSI of the second bluetooth device, and receiving a response of the third request sent by the second bluetooth device, where the response of the third request includes the RSSI of the second bluetooth device.
In an exemplary manner, the sending module 12 is further configured to: and sending a response of the first request to the second Bluetooth device before sending second data to the second Bluetooth device according to the second type, wherein the response of the first request comprises the second type.
In an exemplary manner, the method further comprises:
the storage module is used for storing the corresponding relation between the identifier of the second Bluetooth device and the second type;
the sending module 12 is specifically configured to: before the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, determining the type of a data packet used by the first Bluetooth device and the second Bluetooth device for communication to be the second type according to the corresponding relationship and the identifier of the second Bluetooth device, and sending data to the first Bluetooth device by using the data packet corresponding to the second type.
The first bluetooth device of this embodiment may be configured to execute the method executed by the first bluetooth device in any of the method embodiments, and specific implementation and technical effects are similar and will not be described herein again.
Fig. 6 is a schematic diagram of a first bluetooth device according to a fifth embodiment of the present application, and as shown in fig. 6, the first bluetooth device 200 includes: the first bluetooth device 200 comprises a processor 21, a memory 22, a transmitter 23 and a receiver 24, wherein the memory 22, the transmitter 23 and the transceiver 24 are connected to and communicate with the processor 21 through a bus, the memory 22 is used for storing instructions, the transmitter 23 is used for transmitting data to other devices, the receiver 24 is used for receiving data transmitted by other devices, and the processor 31 is used for executing the instructions stored in the memory, so that the first bluetooth device 200 executes the method executed by the first bluetooth device in any of the above method embodiments. Specifically, the method comprises the following steps:
a processor 21, configured to obtain data packet types supported by a second bluetooth device, where the data packet types include a first type and a second type;
a transmitter 23 for transmitting first data to the second bluetooth device according to the first type;
a receiver 24, configured to receive a first request sent by the second bluetooth device, where the first request is used to request to switch the first type;
the processor 21 is further configured to determine, in response to the first request, that the channel quality of a bluetooth channel used by the first bluetooth device and the second bluetooth device for communication meets a preset channel quality requirement;
the transmitter 23 is further configured to transmit second data to the second bluetooth device according to the second type;
the processor 21 is further configured to communicate with the second bluetooth device according to the second type when the first bluetooth device and the second bluetooth device establish bluetooth connection again.
In an exemplary manner, in response to the first request, the processor 21 determines that the channel quality of a bluetooth channel used by the first bluetooth device and the second bluetooth device for communication meets a preset channel quality requirement, specifically:
acquiring channel quality information of the Bluetooth channel, wherein the channel quality information comprises at least one of the following parameters: the received signal strength indicator RSSI of the second Bluetooth equipment, the frequency of the type of the switched data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet;
and determining that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the processor 21 determines, according to the channel quality information and the channel quality requirement, that the channel quality of the bluetooth channel meets the channel quality requirement, specifically:
and when the RSSI of the second Bluetooth device is greater than a preset RSSI threshold value, determining that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the processor 21 determines, according to the channel quality information and the channel quality requirement, that the channel quality of the bluetooth channel meets the channel quality requirement, specifically:
when the RSSI of the second Bluetooth device is greater than a preset RSSI threshold value, judging whether at least one of the frequency of switching the type of the data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth device meets the corresponding threshold value;
and when at least one of the frequency of switching the data packet type, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth device meets a corresponding threshold value, determining that the channel quality of the Bluetooth channel meets the channel quality requirement.
In an exemplary manner, the processor 21 obtains the packet type supported by the second bluetooth device, specifically:
sending a second request to the second bluetooth device through the transmitter 23, the second request requesting capability feature parameters supported by the second bluetooth device;
receiving, by the receiver 24, a response to the second request sent by the second bluetooth device, where the response to the second request includes capability feature parameters supported by the second bluetooth device, and the capability feature parameters supported by the second bluetooth device includes a packet type supported by the second bluetooth device.
In an exemplary manner, when the channel quality information includes the RSSI of the second bluetooth device, the processor 21 obtains the RSSI of the second bluetooth device, including:
sending a third request to the second bluetooth device through the transmitter 23, where the third request is used to request to acquire the RSSI of the second bluetooth device;
receiving, by the receiver 24, a response of the third request sent by the second bluetooth device, where the response of the third request includes the RSSI of the second bluetooth device.
In an exemplary manner, the transmitter 23 is further configured to:
and sending a response of the first request to the second Bluetooth device, wherein the response of the first request comprises the second type.
In one exemplary approach, the processor is further configured to:
before the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, storing the identifier of the second Bluetooth device and the corresponding relation of the second type in the memory;
the processor 21 communicates with the second bluetooth device according to the second type, specifically:
determining the type of a data packet used for the communication between the first Bluetooth device and the second Bluetooth device to be the second type according to the corresponding relation and the identifier of the second Bluetooth device;
and transmitting data to the first Bluetooth device by using the data packet corresponding to the second type.
The first bluetooth device of this embodiment may be configured to execute the method executed by the first bluetooth device in any of the method embodiments, and specific implementation and technical effects are similar and will not be described herein again.
It is understood that the processor used in the bluetooth device in the embodiments of the present application may be a Central Processing Unit (CPU), a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The bus described in the embodiments of the present application may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced industrial Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Claims (15)

1. A bluetooth system comprising a first bluetooth device and a second bluetooth device, comprising:
the first Bluetooth device acquires data packet types supported by the second Bluetooth device, wherein the data packet types comprise a first type and a second type; the size of the data packet corresponding to the second type is smaller than that of the data packet corresponding to the first type;
the first Bluetooth device sends first data to the second Bluetooth device according to the first type;
in response to a first trigger event, the second bluetooth device sending a first request to the first bluetooth device, the first request requesting to switch the first type;
in response to the first request, the first Bluetooth device determining that the channel quality of a Bluetooth channel used by the first Bluetooth device and the second Bluetooth device for communication meets a preset channel quality requirement;
the first Bluetooth device sends second data to the second Bluetooth device according to the second type;
when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type;
in response to the first request, the first bluetooth device determining that the channel quality of a bluetooth channel used by the first bluetooth device for communication with the second bluetooth device meets a preset channel quality requirement, including:
the first Bluetooth device obtains channel quality information of the Bluetooth channel, wherein the channel quality information comprises at least one of the following parameters: the received signal strength indicator RSSI of the second Bluetooth equipment, the frequency of the type of the switched data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet; the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement;
the first bluetooth device determining that the channel quality of the bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement, including:
when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment judges whether at least one of the frequency of switching the data packet type, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth equipment meets the corresponding threshold value or not; and when at least one of the frequency of switching the data packet types, the size of a buffer area of a sending queue, the retransmission times of the data packets and the packet error rate of the data packets of the second Bluetooth device meets a corresponding threshold value, the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
2. The system of claim 1, wherein the obtaining, by the first bluetooth device, the packet types supported by the second bluetooth device comprises:
the first Bluetooth device sends a second request to the second Bluetooth device, wherein the second request is used for requesting the capability feature parameters supported by the second Bluetooth device;
and the second Bluetooth device sends a response of the second request to the first Bluetooth device, wherein the response of the second request comprises the capability feature parameters supported by the second Bluetooth device, and the capability feature parameters supported by the second Bluetooth device comprise the data packet types supported by the second Bluetooth device.
3. The system of claim 2, wherein when the channel quality information comprises the RSSI of the second bluetooth device, the first bluetooth device obtaining the RSSI of the second bluetooth device comprises:
the first Bluetooth device sends a third request to the second Bluetooth device, wherein the third request is used for requesting to acquire the RSSI of the second Bluetooth device;
and the second Bluetooth device sends a response of the third request to the first Bluetooth device, wherein the response of the third request comprises the RSSI of the second Bluetooth device.
4. The system of any of claims 1-3, wherein before the first Bluetooth device transmits second data to the second Bluetooth device according to the second type, further comprising:
and the first Bluetooth device sends a response of the first request to the second Bluetooth device, wherein the response of the first request comprises the second type.
5. The system according to any of claims 1-3, further comprising, before the first Bluetooth device reestablishes Bluetooth connectivity with the second Bluetooth device:
the first Bluetooth device stores the corresponding relation between the identifier of the second Bluetooth device and the second type;
the first Bluetooth device communicating with the second Bluetooth device according to the second type, including:
the first Bluetooth device determines the type of a data packet used by the first Bluetooth device for communicating with the second Bluetooth device to be the second type according to the corresponding relation and the identifier of the second Bluetooth device;
and the first Bluetooth device sends data to the first Bluetooth device by using the data packet corresponding to the second type.
6. A processing method of Bluetooth data packets is characterized by comprising the following steps:
the method comprises the steps that a first Bluetooth device obtains data packet types supported by a second Bluetooth device, wherein the data packet types comprise a first type and a second type; the size of the data packet corresponding to the second type is smaller than that of the data packet corresponding to the first type;
the first Bluetooth device sends first data to the second Bluetooth device according to the first type;
the first Bluetooth device receives a first request sent by the second Bluetooth device, wherein the first request is used for requesting to switch the first type;
in response to the first request, the first Bluetooth device determining that the channel quality of a Bluetooth channel used by the first Bluetooth device and the second Bluetooth device for communication meets a preset channel quality requirement;
the first Bluetooth device sends second data to the second Bluetooth device according to the second type;
when the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, the first Bluetooth device communicates with the second Bluetooth device according to the second type;
in response to the first request, the first bluetooth device determining that the channel quality of a bluetooth channel used by the first bluetooth device for communication with the second bluetooth device meets a preset channel quality requirement, including:
the first Bluetooth device obtains channel quality information of the Bluetooth channel, wherein the channel quality information comprises at least one of the following parameters: the received signal strength indicator RSSI of the second Bluetooth equipment, the frequency of the type of the switched data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet;
the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement;
the first bluetooth device determining that the channel quality of the bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement, including:
when the RSSI of the second Bluetooth equipment is greater than a preset RSSI threshold value, the first Bluetooth equipment judges whether at least one of the frequency of switching the data packet type, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth equipment meets the corresponding threshold value or not;
and when at least one of the frequency of switching the data packet types, the size of a buffer area of a sending queue, the retransmission times of the data packets and the packet error rate of the data packets of the second Bluetooth device meets a corresponding threshold value, the first Bluetooth device determines that the channel quality of the Bluetooth channel meets the channel quality requirement.
7. The method of claim 6, wherein the obtaining, by the first Bluetooth device, the packet types supported by the second Bluetooth device comprises:
the first Bluetooth device sends a second request to the second Bluetooth device, wherein the second request is used for requesting the capability feature parameters supported by the second Bluetooth device;
and the first Bluetooth device receives a response of the second request sent by the second Bluetooth device, wherein the response of the second request comprises the capability feature parameters supported by the second Bluetooth device, and the capability feature parameters supported by the second Bluetooth device comprise the data packet types supported by the second Bluetooth device.
8. The method of claim 6, wherein when the channel quality information comprises the RSSI of the second Bluetooth device, the first Bluetooth device obtaining the RSSI of the second Bluetooth device comprises:
the first Bluetooth device sends a third request to the second Bluetooth device, wherein the third request is used for requesting to acquire the RSSI of the second Bluetooth device;
and the first Bluetooth device receives a response of the third request sent by the second Bluetooth device, wherein the response of the third request comprises the RSSI of the second Bluetooth device.
9. The method of any of claims 6-8, wherein before the first Bluetooth device transmits second data to the second Bluetooth device according to the second type, further comprising:
and the first Bluetooth device sends a response of the first request to the second Bluetooth device, wherein the response of the first request comprises the second type.
10. The method according to any of claims 6-8, further comprising, before the first bluetooth device reestablishes the bluetooth connection with the second bluetooth device:
the first Bluetooth device stores the corresponding relation between the identifier of the second Bluetooth device and the second type;
the first Bluetooth device communicating with the second Bluetooth device according to the second type, including:
the first Bluetooth device determines the type of a data packet used by the first Bluetooth device for communicating with the second Bluetooth device to be the second type according to the corresponding relation and the identifier of the second Bluetooth device;
and the first Bluetooth device sends data to the first Bluetooth device by using the data packet corresponding to the second type.
11. A first bluetooth device, comprising:
the processor is used for acquiring data packet types supported by the second Bluetooth equipment, and the data packet types comprise a first type and a second type; the size of the data packet corresponding to the second type is smaller than that of the data packet corresponding to the first type;
a transmitter for transmitting first data to the second Bluetooth device according to the first type;
a receiver, configured to receive a first request sent by the second bluetooth device, where the first request is used to request to switch the first type;
the processor is further configured to determine, in response to the first request, that the channel quality of a bluetooth channel used by the first bluetooth device and the second bluetooth device for communication meets a preset channel quality requirement;
the transmitter is further configured to transmit second data to the second bluetooth device according to the second type;
the processor is further configured to communicate with the second bluetooth device according to the second type when the first bluetooth device and the second bluetooth device establish bluetooth connection again;
the processor, in response to the first request, determines that channel quality of a bluetooth channel used for communication between the first bluetooth device and the second bluetooth device meets a preset channel quality requirement, specifically: acquiring channel quality information of the Bluetooth channel, wherein the channel quality information comprises at least one of the following parameters: the received signal strength indicator RSSI of the second Bluetooth equipment, the frequency of the type of the switched data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet; determining that the channel quality of the Bluetooth channel meets the channel quality requirement according to the channel quality information and the channel quality requirement;
the processor determines, according to the channel quality information and the channel quality requirement, that the channel quality of the bluetooth channel meets the channel quality requirement, specifically:
when the RSSI of the second Bluetooth device is greater than a preset RSSI threshold value, judging whether at least one of the frequency of switching the type of the data packet, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth device meets the corresponding threshold value;
and when at least one of the frequency of switching the data packet type, the size of a buffer area of a sending queue, the retransmission times of the data packet and the packet error rate of the data packet of the second Bluetooth device meets a corresponding threshold value, determining that the channel quality of the Bluetooth channel meets the channel quality requirement.
12. The device according to claim 11, wherein the processor obtains the packet types supported by the second bluetooth device, specifically:
sending, by the transmitter, a second request to the second Bluetooth device, the second request requesting capability feature parameters supported by the second Bluetooth device;
and receiving a response of the second request sent by the second bluetooth device through the receiver, wherein the response of the second request includes capability feature parameters supported by the second bluetooth device, and the capability feature parameters supported by the second bluetooth device include a data packet type supported by the second bluetooth device.
13. The device of claim 11, wherein when the channel quality information comprises the RSSI of the second bluetooth device, the processor obtains the RSSI of the second bluetooth device, comprising:
sending a third request to the second Bluetooth device through the transmitter, wherein the third request is used for requesting to acquire the RSSI of the second Bluetooth device;
and receiving a response of the third request sent by the second Bluetooth device through the receiver, wherein the response of the third request comprises the RSSI of the second Bluetooth device.
14. The apparatus of any of claims 11-13, wherein the transmitter is further configured to:
and sending a response of the first request to the second Bluetooth device, wherein the response of the first request comprises the second type.
15. The apparatus according to any one of claims 11-13, wherein the processor is further configured to:
before the first Bluetooth device and the second Bluetooth device establish Bluetooth connection again, storing the corresponding relation between the identifier of the second Bluetooth device and the second type;
the processor communicates with the second bluetooth device according to the second type, specifically:
determining the type of a data packet used for the communication between the first Bluetooth device and the second Bluetooth device to be the second type according to the corresponding relation and the identifier of the second Bluetooth device;
and transmitting data to the first Bluetooth device by using the data packet corresponding to the second type.
CN201910576690.8A 2019-04-25 2019-06-28 Processing method and device of Bluetooth data packet Active CN110446193B (en)

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 CN110446193A (en) 2019-11-12
CN110446193B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277930B (en) * 2020-03-05 2022-08-23 展讯通信(上海)有限公司 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
CN113078926B (en) * 2021-03-19 2023-01-03 维沃移动通信有限公司 Data transmission method and device and electronic equipment
CN116095780B (en) * 2023-04-10 2023-06-27 深圳市通恒伟创科技有限公司 4G and wifi synchronous communication method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135741B (en) * 2014-07-08 2018-06-19 福建联迪商用设备有限公司 Method, bluetooth equipment and the system of Bluetooth Low Energy communication
CN106792462B (en) * 2016-12-22 2020-05-22 深圳Tcl数字技术有限公司 Bluetooth audio transmission adjusting method and device
CN109561416B (en) * 2018-12-24 2022-05-03 福建联迪商用设备有限公司 Method and terminal for reducing power consumption of Bluetooth communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN110446193A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110446193B (en) Processing method and device of Bluetooth data packet
WO2020164520A1 (en) Data packet distribution method and apparatus, mobile terminal, and storage medium
WO2020207229A1 (en) Data transmission method and related apparatus
CN108881012B (en) Link aggregation method and related product
CN109151212B (en) Equipment control method and device and electronic equipment
CN113644995B (en) Signal strength measurement method and device
JP6144430B2 (en) Power-saving techniques in computing devices
EP2765483B1 (en) Method and device for controlling shutdown of terminal
US8296455B2 (en) Method for mitigating adverse processor loading in a personal computer implementation of a wireless local area network adapter
CN113038440B (en) Communication channel switching method and device, computer equipment and readable storage medium
CN112821963B (en) Method and device for reducing interference to loudspeaker and electronic equipment
CN111356156B (en) Measurement control method, device, terminal equipment and computer storage medium
EP2852101A1 (en) Method and device for data transmission in wireless local area network
US11903054B2 (en) Method for establishing communication connection and related products
US20210266996A1 (en) Device to device-based communication method and terminal
CN104871610B (en) A kind of method and device controlling transmission power
WO2018230091A1 (en) Communication control device, communication terminal, method for controlling communication terminal, control program, and data structure
CN111615143B (en) Information reporting method, information receiving method, terminal and network control entity
CN114143659A (en) Earphone data sending method, terminal equipment, master earphone, slave earphone and system
TW201911791A (en) Method for determining length of feedback response information and related products
CN111836311B (en) Capability negotiation method, terminal and network equipment
US10250478B2 (en) Communication device, communication control method, and communication system
CN112203338B (en) Networking method and device for wireless terminal
CN111314852B (en) Data transmission method, device, storage medium and electronic terminal
CN114363943A (en) Method and electronic device for determining transmission delay

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