Bluetooth communication method, system and electronic device

By including bandwidth indication information in the frame header of the Bluetooth packet, dynamic bandwidth adjustment of Bluetooth connection is achieved, solving the problem of insufficient bandwidth of the existing Bluetooth protocol, and improving the connection efficiency and supported traffic scale.

CN115086924BActive Publication Date: 2025-05-13HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110272348.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-12
Publication Date
2025-05-13
Estimated Expiration
2041-03-12

AI Technical Summary

Technical Problem

The maximum supported transmission bandwidth of the existing Bluetooth protocol is 2M, which cannot support application scenarios with large traffic, resulting in low Bluetooth connection efficiency between devices.

Method used

By including bandwidth indication information in the frame header of the Bluetooth data packet, the first electronic device is allowed to indicate the transmission bandwidth of the second electronic device frame body in real time, thereby realizing dynamic bandwidth adjustment.

Benefits of technology

It reduces the number of interactions in bandwidth adjustment of electronic devices, improves resource utilization and bandwidth adjustment efficiency, and supports application scenarios with larger traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086924B_ABST
    Figure CN115086924B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a Bluetooth communication method, system, and electronic device. The method includes: a frame header portion of a Bluetooth data packet sent by a first electronic device to a second electronic device includes bandwidth indication information for indicating the transmission bandwidth of the frame body. This allows the second electronic device to switch the receiving bandwidth based on the bandwidth indication information obtained from the frame header to receive the frame body portion of the Bluetooth data packet at the corresponding bandwidth. The present application provides a real-time, dynamic way of adjusting the transmission bandwidth by indicating the transmission bandwidth in the frame header of the Bluetooth data packet, thereby reducing the number of signaling interactions between electronic devices, thereby saving channel overhead, and improving resource utilization and bandwidth adjustment efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communications, and in particular to a Bluetooth communication method, system and electronic device. Background Art

[0002] With the rapid development of communication technology, the application scenarios of Bluetooth networks are becoming more and more extensive. At present, the Bluetooth connection between devices is maintained based on the existing Bluetooth protocol. The maximum transmission bandwidth supported by the existing Bluetooth protocol is 2M. However, due to bandwidth limitations, the existing Bluetooth protocol cannot support application scenarios with large traffic. Summary of the invention

[0003] In order to solve the above technical problems, the present application provides a Bluetooth communication method, system and electronic device. In this method, a first electronic device can indicate the transmission bandwidth of a frame body to a second electronic device through a frame header, so as to provide a real-time bandwidth adjustment method, reduce the number of interactions of bandwidth adjustment of electronic devices, and improve resource utilization and bandwidth adjustment efficiency.

[0004] In the first aspect, an embodiment of the present application provides a Bluetooth communication system. The system includes a first electronic device and a second electronic device, and the first electronic device and the second electronic device perform data exchange via a Bluetooth connection. The first electronic device is used to send a first Bluetooth data packet to the second electronic device; the first Bluetooth data packet includes a frame header and a frame body, and the frame header of the first Bluetooth data packet includes first bandwidth indication information, and the first bandwidth indication information is used to indicate the first transmission bandwidth of the frame body of the first Bluetooth data packet. The second electronic device is used to receive the first Bluetooth data packet; and the second electronic device obtains the first bandwidth indication information in the frame header of the first Bluetooth data packet. And, the second electronic device receives the frame body of the first Bluetooth data packet on the first transmission bandwidth according to the first bandwidth indication information. In this way, an embodiment of the present application provides a real-time bandwidth adjustment method, and the first electronic device can indicate the transmission bandwidth of the frame body to the second electronic device through the frame header of the Bluetooth data packet, so that the second electronic device can obtain the transmission bandwidth of the frame body after reading the frame header. Thereby, dynamic adjustment of the transmission bandwidth is realized, the number of interactions of bandwidth adjustment of electronic devices is reduced, and resource utilization and bandwidth adjustment efficiency are improved.

[0005] Exemplarily, the first electronic device and the second electronic device may be any electronic device having a Bluetooth function.

[0006] Exemplarily, the length of the first bandwidth indication information is 1 bit.

[0007] Exemplarily, the modulation modes of the frame header and the frame body of the first Bluetooth data packet may be the same or different.

[0008] Exemplarily, the transmission bandwidth of the frame header of the first Bluetooth data packet is 1 MHz or 2 MHz. The transmission bandwidth of the frame header and the transmission bandwidth of the frame body may be the same or different.

[0009] According to the first aspect, the first electronic device is further used to send a second Bluetooth data packet to the second electronic device, the second Bluetooth data packet includes a frame header and a frame body, the frame header of the second Bluetooth data packet includes second bandwidth indication information, and the second bandwidth indication information is used to indicate the second transmission bandwidth of the frame body of the second Bluetooth data packet; wherein the first transmission bandwidth is different from the second transmission bandwidth. The second electronic device is also used to receive the second Bluetooth data packet. The second electronic device obtains the second bandwidth indication information in the frame header of the second Bluetooth data packet. The second electronic device receives the frame body of the second Bluetooth data packet on the second transmission bandwidth according to the second bandwidth indication information. In this way, the first electronic device can indicate the transmission bandwidth of the frame body of the currently transmitted Bluetooth data packet to the second electronic device through the frame header of each Bluetooth data packet, thereby realizing dynamic and real-time adjustment of the transmission bandwidth.

[0010] Exemplarily, the transmission bandwidth of the frame header of each Bluetooth data packet is the same.

[0011] Exemplarily, the transmission bandwidth of the frame body of the Bluetooth data packet sent each time may be the same or different.

[0012] Exemplarily, the first electronic device may receive a user instruction, and in response to the received user instruction, perform an operation of switching the transmission bandwidth, that is, send a Bluetooth data packet carrying the second transmission bandwidth to the second electronic device.

[0013] Exemplarily, the first electronic device may adaptively adjust the transmission bandwidth based on current transmission conditions and / or the amount of data to be transmitted.

[0014] According to the first aspect, or any implementation of the first aspect above, the frame header of the first Bluetooth data packet also includes first modulation indication information, and the first modulation indication information is used to indicate the modulation mode of the frame body. The second electronic device is also used to obtain the first modulation indication information. The second electronic device demodulates the frame body of the first Bluetooth data packet according to the modulation mode indicated by the first modulation indication information. In this way, the first electronic device can indicate the modulation mode of the frame body to the second electronic device through the frame header of each Bluetooth data packet, so that the second electronic device can obtain the modulation mode of the frame body when reading the frame header, thereby realizing real-time and dynamic adjustment of the modulation mode. This reduces the number of signaling interactions when adjusting the modulation mode, thereby saving channel resources, improving resource utilization, and improving the efficiency of adjusting the adjustment mode.

[0015] According to the first aspect, or any implementation of the first aspect above, the first modulation indication information and the first bandwidth indication information are carried in a physical layer indication field of a frame header of a first Bluetooth data packet. In this way, by carrying the bandwidth indication information and the modulation indication information in a designated field, a preset device can obtain the corresponding bandwidth indication and modulation indication when reading the designated field.

[0016] According to the first aspect, or any implementation of the first aspect above, the frame body of the first Bluetooth data packet includes a header field and a data field, the Header field includes first power indication information, and the first power indication information is used to indicate the transmission power of the second electronic device; the data field includes Bluetooth data. In this way, by carrying the power indication information in the Header field, the opposite device can obtain the corresponding power indication when reading the Header field, thereby reducing the number of signaling interactions when adjusting the power, providing a real-time and dynamic power adjustment method, while improving resource utilization and improving power adjustment efficiency.

[0017] Exemplarily, the second electronic device may adjust the transmission power based on the received power indication information. Exemplarily, the second electronic device may send a Bluetooth data packet to the first electronic device based on the power indicated by the power indication information.

[0018] Exemplarily, the first electronic device may determine the transmission power of the second electronic device for the next transmission of a Bluetooth data packet based on the received Bluetooth data packet sent by the second electronic device.

[0019] Exemplarily, the frame body of the first Bluetooth data packet may also not include the data field. In addition to including the first power indication information, the Header field is also used to indicate that the length of the data field is 0, that is, the Bluetooth data packet does not include the data field.

[0020] According to the first aspect, or any implementation of the first aspect above, the frame body of the first Bluetooth data packet includes multiple data fields and multiple check fields, wherein the multiple data fields correspond to the multiple check fields one by one, and each data field includes Bluetooth data. In this way, through the multiple check fields, the other end can check the corresponding data fields separately based on each check field during the check, thereby improving the check efficiency.

[0021] According to the first aspect, or any implementation of the first aspect above, the second electronic device is further configured to verify the corresponding data field based on each check field in the multiple check fields.

[0022] According to the first aspect, or any implementation of the first aspect above, the second electronic device is further used to send a third Bluetooth data packet to the first electronic device when at least one of the multiple data fields fails to be checked; the third Bluetooth data packet includes a frame header and a frame body, the frame header of the third Bluetooth data packet includes third bandwidth indication information and first receiving indication information, the third bandwidth indication information is used to indicate the third transmission bandwidth of the frame body of the third Bluetooth data packet; the first receiving indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet. The first electronic device is also used to receive the third Bluetooth data packet. The first electronic device obtains the third bandwidth indication information and the first receiving indication information in the frame header of the third Bluetooth data packet. The first electronic device receives the frame body of the third Bluetooth data packet on the third transmission bandwidth according to the third bandwidth indication information; and the first electronic device sends a fourth Bluetooth data packet to the second electronic device according to the first receiving indication information, the frame body of the fourth Bluetooth data packet includes multiple data fields and multiple check fields, and the multiple data fields include at least one data field that fails to be checked. In this way, the electronic device can reply NACK information and Bluetooth data to the opposite end at the same time in the Bluetooth data packet, thereby reducing the number of signaling interactions.

[0023] According to the first aspect, or any implementation of the first aspect above, the second electronic device is further used to receive a fourth Bluetooth data packet. In response to the received fourth Bluetooth data packet, the second electronic device performs a combined check based on at least one data field in the fourth Bluetooth data packet and other data fields that have been successfully checked in multiple data fields; when the combined check is successful, the Bluetooth data in the multiple data fields is obtained. In this way, by setting multiple check fields, when the electronic device fails to check any of the data fields, a combined check can be performed based on the data field in the retransmitted data packet that failed the last check, so as to improve the efficiency of the combined check.

[0024] According to the first aspect, or any implementation of the first aspect above, the second electronic device is further used to send a fifth Bluetooth data packet to the first electronic device when at least one of the multiple data fields fails to be verified; the fifth Bluetooth data packet includes a frame header, the frame header of the fifth Bluetooth data packet includes second reception indication information, the second reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet, and the fifth Bluetooth data packet does not include a frame body; the first electronic device is also used to receive the fifth Bluetooth data packet; the first electronic device obtains the second reception indication information in the frame header of the fifth Bluetooth data packet. The first electronic device sends a sixth Bluetooth data packet to the second electronic device according to the second reception indication information, the frame body of the sixth Bluetooth data packet includes multiple data fields and multiple verification fields, and the multiple data fields include at least one data field that fails to be verified. In this way, by setting a special indication method, the frame body can be omitted in the Bluetooth data packet. The second electronic device can obtain NACK information by reading the frame header part without receiving the frame body. Thereby further improving resource utilization.

[0025] According to the first aspect, or any implementation of the first aspect above, the second electronic device is further configured to receive a sixth Bluetooth data packet; in response to the received sixth Bluetooth data packet, perform a combined verification based on at least one data field in the sixth Bluetooth data packet and other data fields in the multiple data fields that have been successfully verified. When the combined verification is successful, obtain the Bluetooth data in the multiple data fields.

[0026] According to the first aspect, or any implementation of the first aspect above, the second electronic device is further used to send a seventh Bluetooth data packet to the first electronic device when multiple data fields are successfully verified; the seventh Bluetooth data packet includes a frame header and a frame body, the frame header of the seventh Bluetooth data packet includes fourth bandwidth indication information and third reception indication information, the fourth bandwidth indication information is used to indicate the fourth transmission bandwidth of the frame body of the seventh Bluetooth data packet; the third reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet. The first electronic device is also used to receive the seventh Bluetooth data packet. The first electronic device obtains the fourth bandwidth indication information and the third reception indication information in the frame header of the seventh Bluetooth data packet.

[0027] The first electronic device receives the frame body of the seventh Bluetooth data packet on the fourth transmission bandwidth according to the fourth bandwidth indication information; and the first electronic device determines that the second electronic device correctly receives the first Bluetooth data packet according to the third reception indication information. In this way, the electronic device can reply ACK information and Bluetooth data to the other end in the Bluetooth data packet at the same time, thereby reducing the number of signaling interactions.

[0028] According to the first aspect, or any implementation of the first aspect above, the second electronic device is further used to send an eighth Bluetooth data packet to the first electronic device when multiple data fields are successfully verified; the eighth Bluetooth data packet includes a frame header, and the frame header of the eighth Bluetooth data packet includes fourth reception indication information, the fourth reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet, and the eighth Bluetooth data packet does not include a frame body. The first electronic device is also used to receive the eighth Bluetooth data packet. The first electronic device obtains the fourth reception indication information in the frame header of the eighth Bluetooth data packet. The first electronic device determines that the second electronic device correctly receives the first Bluetooth data packet based on the fourth reception indication information. In this way, by setting a special indication method, the frame body can be omitted in the Bluetooth data packet. The second electronic device can obtain ACK information by reading the frame header part without receiving the frame body. Thereby further improving resource utilization.

[0029] According to the first aspect, or any implementation of the first aspect, the first electronic device and the second electronic device are preset electronic devices.

[0030] Exemplarily, the first electronic device and the second electronic device may confirm whether the other end is a preset electronic device during the process of establishing a Bluetooth connection.

[0031] Exemplarily, if either end is not a preset electronic device, data interaction is performed according to an existing Bluetooth protocol.

[0032] According to the first aspect, or any implementation of the first aspect above, the first transmission bandwidth is 1 MHz, 2 MHz, 4 MHz or 5 MHz. In this way, the embodiment of the present application can expand the bandwidth to achieve data interaction in a large data volume transmission scenario.

[0033] In a second aspect, an embodiment of the present application provides a Bluetooth communication method. The method is applied to a first electronic device, and the method includes sending a first Bluetooth data packet to a second electronic device; the first Bluetooth data packet includes a frame header and a frame body, the frame header of the first Bluetooth data packet includes first bandwidth indication information, and the first bandwidth indication information is used to indicate a first transmission bandwidth of the frame body of the first Bluetooth data packet.

[0034] According to the second aspect, the method also includes a first electronic device receiving a first user instruction, and the first electronic device sending a second Bluetooth data packet to a second electronic device in response to the received first user instruction, the second Bluetooth data packet including a frame header and a frame body, the frame header of the second Bluetooth data packet including second bandwidth indication information, and the second bandwidth indication information is used to indicate a second transmission bandwidth of the frame body of the second Bluetooth data packet; wherein the first transmission bandwidth is different from the second transmission bandwidth.

[0035] According to the second aspect, or any implementation of the second aspect above, the frame header of the first Bluetooth data packet further includes first modulation indication information, and the first modulation indication information is used to indicate a modulation mode of the frame body.

[0036] According to the second aspect, or any implementation of the second aspect, the first modulation indication information and the first bandwidth indication information are carried in a physical layer indication field of a frame header of the first Bluetooth data packet.

[0037] According to the second aspect, or any implementation of the second aspect above, the frame body of the first Bluetooth data packet includes a header field and a data field, the Header field includes first power indication information, and the first power indication information is used to indicate the transmission power of the second electronic device; the data field includes Bluetooth data.

[0038] According to the second aspect, or any implementation of the second aspect above, the frame body of the first Bluetooth data packet includes multiple data fields and multiple check fields, wherein the multiple data fields correspond one-to-one to the multiple check fields, and each data field includes Bluetooth data.

[0039] According to the second aspect, or any implementation of the second aspect above, the method further includes: the first electronic device receives a third Bluetooth data packet sent by the second electronic device; the third Bluetooth data packet is sent when the second electronic device checks the corresponding data field based on each check field in the multiple check fields, and at least one of the multiple data fields fails to check; the third Bluetooth data packet includes a frame header and a frame body, the frame header of the third Bluetooth data packet includes third bandwidth indication information and first reception indication information, the third bandwidth indication information is used to indicate the third transmission bandwidth of the frame body of the third Bluetooth data packet; the first reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet. The first electronic device obtains the third bandwidth indication information and the first reception indication information in the frame header of the third Bluetooth data packet. The first electronic device receives the frame body of the third Bluetooth data packet on the third transmission bandwidth according to the third bandwidth indication information; and the first electronic device sends a fourth Bluetooth data packet to the second electronic device according to the first reception indication information, the frame body of the fourth Bluetooth data packet includes multiple data fields and multiple check fields, and the multiple data fields include at least one data field that fails to check.

[0040] According to the second aspect, or any implementation of the second aspect above, the method further includes: the first electronic device receives a fifth Bluetooth data packet sent by the second electronic device; the fifth Bluetooth data packet is sent when the second electronic device verifies the corresponding data field based on each check field in the multiple check fields, and at least one of the multiple data fields fails to be checked; the fifth Bluetooth data packet includes a frame header, the frame header of the fifth Bluetooth data packet includes second reception indication information, the second reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet, and the fifth Bluetooth data packet does not include a frame body. The first electronic device obtains the second reception indication information in the frame header of the fifth Bluetooth data packet. The first electronic device sends a sixth Bluetooth data packet to the second electronic device according to the second reception indication information, the frame body of the sixth Bluetooth data packet includes multiple data fields and multiple check fields, and the multiple data fields include at least one data field that fails to be checked.

[0041] According to the second aspect, or any implementation of the second aspect above, the method further includes: the first electronic device receives the seventh Bluetooth data packet sent by the second electronic device; the fifth Bluetooth data packet is sent when the second electronic device verifies the corresponding data field based on each check field in the multiple check fields and the multiple data fields are successfully checked; the seventh Bluetooth data packet includes a frame header and a frame body, the frame header of the seventh Bluetooth data packet includes fourth bandwidth indication information and third reception indication information, the fourth bandwidth indication information is used to indicate the fourth transmission bandwidth of the frame body of the seventh Bluetooth data packet; the third reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet. The first electronic device obtains the fourth bandwidth indication information and the third reception indication information in the frame header of the seventh Bluetooth data packet. The first electronic device receives the frame body of the seventh Bluetooth data packet on the fourth transmission bandwidth according to the fourth bandwidth indication information; and the first electronic device determines that the second electronic device correctly receives the first Bluetooth data packet according to the third reception indication information.

[0042] According to the second aspect, or any implementation of the second aspect above, the method also includes: the first electronic device receives an eighth Bluetooth data packet sent by the second electronic device; the eighth Bluetooth data packet is sent when the second electronic device checks the corresponding data field based on each check field in multiple check fields and the multiple data fields are checked successfully; the eighth Bluetooth data packet includes a frame header, the frame header of the eighth Bluetooth data packet includes fourth reception indication information, the fourth reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet, and the eighth Bluetooth data packet does not include a frame body; the first electronic device obtains the fourth reception indication information in the frame header of the eighth Bluetooth data packet; the first electronic device determines that the second electronic device correctly receives the first Bluetooth data packet based on the fourth reception indication information.

[0043] According to the second aspect, or any implementation of the second aspect, the first electronic device and the second electronic device are preset electronic devices.

[0044] According to the second aspect, or any implementation of the second aspect, the first transmission bandwidth is 1 MHz, 2 MHz, 4 MHz or 5 MHz.

[0045] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0046] In a third aspect, an embodiment of the present application provides a Bluetooth communication method. The method is applied to a second electronic device, and the method includes: the second electronic device receives a first Bluetooth data packet sent by a first electronic device; wherein the first Bluetooth data packet includes a frame header and a frame body, the frame header of the first Bluetooth data packet includes first bandwidth indication information, and the first bandwidth indication information is used to indicate a first transmission bandwidth of the frame body of the first Bluetooth data packet; the second electronic device obtains the first bandwidth indication information in the frame header of the first Bluetooth data packet; the second electronic device receives the frame body of the first Bluetooth data packet on the first transmission bandwidth according to the first bandwidth indication information.

[0047] According to the third aspect, the method further includes: the second electronic device receives a second Bluetooth data packet sent by the first electronic device; the second Bluetooth data packet includes a frame header and a frame body, the frame header of the second Bluetooth data packet includes second bandwidth indication information, and the second bandwidth indication information is used to indicate a second transmission bandwidth of the frame body of the second Bluetooth data packet; wherein the first transmission bandwidth is different from the second transmission bandwidth. The second electronic device obtains the second bandwidth indication information in the frame header of the second Bluetooth data packet; the second electronic device receives the frame body of the second Bluetooth data packet on the second transmission bandwidth according to the second bandwidth indication information.

[0048] According to the third aspect, or any implementation method of the third aspect above, the frame header of the first Bluetooth data packet also includes first modulation indication information, and the first modulation indication information is used to indicate the modulation method of the frame body; the method also includes: the second electronic device obtains the first modulation indication information; the second electronic device demodulates the frame body of the first Bluetooth data packet according to the modulation method indicated by the first modulation indication information.

[0049] According to the third aspect, or any implementation of the third aspect, the first modulation indication information and the first bandwidth indication information are carried in a physical layer indication field of a frame header of the first Bluetooth data packet.

[0050] According to the third aspect, or any implementation of the third aspect above, the frame body of the first Bluetooth data packet includes a header field and a data field, the Header field includes first power indication information, and the first power indication information is used to indicate the transmission power of the second electronic device; the data field includes Bluetooth data.

[0051] According to the third aspect, or any implementation of the third aspect above, the frame body of the first Bluetooth data packet includes multiple data fields and multiple check fields, wherein the multiple data fields correspond one-to-one to the multiple check fields, and each data field includes Bluetooth data.

[0052] According to the third aspect, or any implementation of the third aspect above, the method further includes: the second electronic device verifies the corresponding data field based on each check field in the multiple check fields.

[0053] According to the third aspect, or any implementation of the third aspect above, the method also includes: when at least one data field among the multiple data fields fails to be checked, sending a third Bluetooth data packet to the first electronic device; the third Bluetooth data packet includes a frame header and a frame body, the frame header of the third Bluetooth data packet includes third bandwidth indication information and first reception indication information, the third bandwidth indication information is used to indicate the third transmission bandwidth of the frame body of the third Bluetooth data packet; the first reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet.

[0054] According to the third aspect, or any implementation of the third aspect above, the method also includes: the second electronic device receives a fourth Bluetooth data packet sent by the first electronic device; the frame body of the fourth Bluetooth data packet includes multiple data fields and multiple check fields, and the multiple data fields include at least one data field that fails the check; the second electronic device performs a combined check based on at least one data field in the fourth Bluetooth data packet and other data fields in the multiple data fields that succeeded in the check; when the combined check is successful, the Bluetooth data in the multiple data fields is obtained.

[0055] According to the third aspect, or any implementation of the third aspect above, the method also includes: when at least one data field among the multiple data fields fails to be checked, sending a fifth Bluetooth data packet to the first electronic device; the fifth Bluetooth data packet includes a frame header, the frame header of the fifth Bluetooth data packet includes second reception indication information, the second reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet, and the fifth Bluetooth data packet does not include a frame body.

[0056] According to the third aspect, or any implementation method of the third aspect above, the second electronic device receives a sixth Bluetooth data packet sent by the first electronic device; the frame body of the sixth Bluetooth data packet includes multiple data fields and multiple check fields, and the multiple data fields include at least one data field that fails the check; the second electronic device performs a combined check based on at least one data field in the sixth Bluetooth data packet and other data fields in the multiple data fields that succeeded the check; when the combined check is successful, the Bluetooth data in the multiple data fields is obtained.

[0057] According to the third aspect, or any implementation method of the third aspect above, when multiple data fields are checked successfully, a seventh Bluetooth data packet is sent to the first electronic device; the seventh Bluetooth data packet includes a frame header and a frame body, the frame header of the seventh Bluetooth data packet includes fourth bandwidth indication information and third reception indication information, the fourth bandwidth indication information is used to indicate the fourth transmission bandwidth of the frame body of the seventh Bluetooth data packet; the third reception indication information is used to indicate the second electronic device to correctly receive the first Bluetooth data packet.

[0058] According to the third aspect, or any implementation method of the third aspect above, when multiple data fields are checked successfully, an eighth Bluetooth data packet is sent to the first electronic device; the eighth Bluetooth data packet includes a frame header, the frame header of the eighth Bluetooth data packet includes fourth reception indication information, the fourth reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet, and the eighth Bluetooth data packet does not include a frame body.

[0059] According to the third aspect, or any implementation of the third aspect, the first electronic device and the second electronic device are preset electronic devices.

[0060] According to the third aspect, or any implementation of the third aspect, the first transmission bandwidth is 1 MHz, 2 MHz, 4 MHz or 5 MHz.

[0061] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0062] In a fourth aspect, an embodiment of the present application provides an electronic device. The electronic device includes a memory and a processor, the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the Bluetooth communication method executed by the first electronic device in the second aspect or any possible implementation of the second aspect.

[0063] In a fifth aspect, an embodiment of the present application provides an electronic device. The electronic device includes a memory and a processor, the memory is coupled to the processor; the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the Bluetooth communication method executed by the second electronic device in the third aspect or any possible implementation of the third aspect.

[0064] In a fifth aspect, an embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the second aspect or any possible implementation of the second aspect.

[0065] In a sixth aspect, an embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the third aspect or any possible implementation of the third aspect.

[0066] In a seventh aspect, an embodiment of the present application provides a computer program comprising instructions for executing the method in the second aspect or any possible implementation of the second aspect.

[0067] In an eighth aspect, an embodiment of the present application provides a computer program comprising instructions for executing the method in the third aspect or any possible implementation of the third aspect.

[0068] In a ninth aspect, an embodiment of the present application provides a chip, the chip comprising a processing circuit and a transceiver pin, wherein the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the second aspect or any possible implementation of the second aspect to control the receiving pin to receive a signal, and to control the sending pin to send a signal.

[0069] In a tenth aspect, an embodiment of the present application provides a chip, the chip comprising a processing circuit and a transceiver pin. The transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the third aspect or any possible implementation of the third aspect to control the receiving pin to receive a signal and control the sending pin to send a signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 is a schematic diagram of the hardware structure of an electronic device shown as an example;

[0071] Figure 2 A schematic diagram of the software structure of an electronic device is shown as an example;

[0072] Figure 3 is a schematic diagram of an application scenario shown as an example;

[0073] Figure 4a to Figure 4cA schematic diagram of an exemplary user interface;

[0074] Figure 5 is a schematic diagram showing an exemplary interaction between a mobile phone and a wireless headset;

[0075] Figure 6a is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0076] Figure 6b is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0077] Figure 7 A schematic diagram of an exemplary user interface;

[0078] Figure 8 A schematic diagram of a flow chart of bandwidth update is shown as an example;

[0079] Figure 9a to Figure 9b is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0080] Fig.10 is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0081] Figure 11a to Figure 11b is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0082] Fig.12 is a schematic diagram showing an exemplary NESN field and an SN field;

[0083] Fig.13 is a schematic diagram of an application scenario shown as an example;

[0084] Figure 14a to Figure 14b is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0085] Fig.15 is a schematic diagram showing an exemplary data transmission method;

[0086] Fig.16 is a schematic diagram showing an exemplary interaction between a mobile phone and a wireless headset;

[0087] Fig.17 is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0088] Fig.18 is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0089] Fig.19 is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0090] Fig.20ais a schematic diagram showing an exemplary interaction between a mobile phone and a wireless headset;

[0091] Fig.20b The figure is a schematic diagram of a data retransmission process between a mobile phone and a wireless headset;

[0092] Fig.21 is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0093] Fig. 22 is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0094] Fig.23 is a schematic diagram showing an exemplary format of a Bluetooth data packet;

[0095] Fig.24 Schematic diagram of the structure of the device shown as an example. DETAILED DESCRIPTION

[0096] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0097] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0098] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0099] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0100] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0101] Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. It should be understood that Figure 1 The illustrated electronic device 100 is merely one example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have a different configuration of components. Figure 1 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0102] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0103] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0104] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0105] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0106] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0107] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0108] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0109] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0110] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0111] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0112] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0113] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0114] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0115] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0116] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0117] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0118] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0119] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0120] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0121] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0122] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0123] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0124] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0125] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0126] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0127] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0128] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0129] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0130] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0131] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0132] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0133] Figure 2 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0134] The layered architecture of the electronic device 100 divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.

[0135] The application layer can include a series of application packages.

[0136] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0137] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0138] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0139] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0140] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0141] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0142] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0143] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0144] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0145] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0146] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0147] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0148] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0149] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0150] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0151] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0152] A 2D graphics engine is a drawing engine for 2D drawings.

[0153] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, Wi-Fi driver, etc.

[0154] Understandably, Figure 2 The components included in the system framework layer, system library and runtime layer shown do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine some components, or split some components, or arrange the components differently.

[0155] Figure 3 FIG. 1 is a schematic diagram of an exemplary application scenario. Figure 3As shown, the application scenario includes a mobile phone and a wireless headset. Exemplarily, the mobile phone and the wireless headset exchange data via a Bluetooth connection. It should be noted that the embodiment of the present application is only described by taking the data interaction between a mobile phone and a wireless headset as an example. The Bluetooth communication method in the embodiment of the present application can also be applied to communication scenarios between other electronic devices. For example, the Bluetooth communication method in the embodiment of the present application can also be applied to communication between electronic devices with Bluetooth functions, such as mobile phones, tablets, wearable devices, notebooks, Bluetooth speakers, and televisions. Figure 3 The device types and quantities shown in the figure are merely illustrative examples and are not limited in this application.

[0156] Combination Figure 3 , Figures 4a to 4c FIG. 1 is a schematic diagram of a user interface for exemplarily showing a mobile phone and a wireless headset establishing a Bluetooth connection. Figure 4a As shown, illustratively, the display interface of the mobile phone displays the main page 402. The main page 402 includes one or more controls. The controls include, but are not limited to: application controls, network controls, Bluetooth controls 404, battery power display controls, etc. Among them, the Bluetooth control 404 is used to indicate that the Bluetooth function of the mobile phone is turned on. Optionally, the user can start the Bluetooth function of the mobile phone through the drop-down menu bar, or through the setting application to start the Bluetooth function, which is not limited in this application.

[0157] Please continue to refer to Figure 4a , exemplarily, in the embodiment of the present application, the initial pairing of a wireless headset and a mobile phone is taken as an example for explanation. It should be noted that the initial pairing may optionally be a process in which the wireless headset and the mobile phone have never been paired (i.e., a Bluetooth connection has never been established), or a process in which the wireless headset and / or the mobile phone need to be re-paired after being reset (i.e., a Bluetooth connection has been established). It can also be understood that neither the mobile phone nor the wireless headset stores the fingerprint information required to establish a Bluetooth connection. Optionally, the fingerprint information may include but is not limited to Bluetooth address information, device identification information, etc. Exemplarily, during the initial pairing process, the mobile phone displays a prompt box 410. Optionally, the prompt box 410 includes prompt information, a cancel option 408, and a connection option 410. Exemplarily, the prompt information includes but is not limited to the identification information of the electronic device to be connected. For example, the identification information may include but is not limited to the device name, device model, device icon, etc. of the electronic device (i.e., the wireless headset). Exemplarily, the cancel option 408 is used to indicate the cancellation of the Bluetooth connection with the electronic device. Exemplarily, the connection option 410 is used to indicate that a Bluetooth connection with the electronic device is allowed.

[0158] Exemplarily, the user clicks on the connect option 410. Figure 4bAs shown, in response to the received user operation, the mobile phone establishes a Bluetooth connection with the wireless headset. After the Bluetooth connection is successfully established, the mobile phone displays a prompt box 412. Optionally, the prompt box 412 includes prompt information, which is used to indicate that the wireless headset has been connected.

[0159] After the mobile phone establishes a Bluetooth connection with the wireless headset, the mobile phone can exchange data with the wireless headset through the Bluetooth connection. In the embodiment of the present application, a music scene is taken as an example. For example, Figure 4c As shown, the mobile phone displays a music application interface 414 in response to the user's operation. Optionally, the music application interface 414 includes a song title, a song poster, etc. Exemplarily, the mobile phone can display a sound quality adjustment option box 416 in response to the user's operation. Optionally, the sound quality condition option box 416 includes one or more controls, including but not limited to: a standard quality control, a high quality control, and a lossless quality control. It should be noted that the different qualities (also referred to as sound quality) described in the embodiments of the present application can be understood as different amounts of data in the encoded audio file. Among them, the higher the quality, the larger the amount of data, and the larger the transmission bandwidth required for its transmission. Optionally, in order from small to large according to the required bandwidth, they are: standard quality, high quality, and lossless quality.

[0160] For example, the user clicks on the standard quality control. Accordingly, the mobile phone generates a corresponding Bluetooth data packet (also called a data frame, an audio frame, a Bluetooth message, etc.) in response to the user's operation, and sends the generated Bluetooth data packet to the wireless headset through the Bluetooth connection between the wireless headset and the wireless headset.

[0161] Figure 5 FIG. 1 is a schematic diagram showing an exemplary interaction between a mobile phone and a wireless headset. Figure 5 As shown, specifically including:

[0162] S101, the wireless headset sends a Discovery Request message to the mobile phone.

[0163] Exemplarily, after the wireless headset starts pairing, it sends a DiscoveryRequest message in a broadcasting manner through the Bluetooth interface.

[0164] Optionally, the Discovery Request message includes but is not limited to: identification information of the wireless headset, Bluetooth address of the wireless headset, etc. Exemplarily, the identification information of the wireless headset may be a device name of the wireless headset, etc., which is not limited in this application.

[0165] S102, the mobile phone sends a Discovery Response message to the wireless headset.

[0166] For example, after the mobile phone receives the Discovery Request message sent by the wireless headset, the interface of the mobile phone is as follows: Figure 4a shown.

[0167] For example, Figure 4a As shown, the mobile phone receives the user's operation of clicking the connection option 410, and the mobile phone sends a Discovery Response message to the wireless headset to indicate the establishment of a Bluetooth connection with the wireless headset. Exemplarily, the Discovery Response includes but is not limited to: identification information of the mobile phone, Bluetooth address of the mobile phone and other information.

[0168] S103, the wireless headset establishes a Bluetooth connection with the mobile phone.

[0169] Exemplarily, the wireless headset and the mobile phone transmit information required to establish a Bluetooth connection through multiple Bluetooth signaling interactions. For example, a Bluetooth encryption key can be negotiated in multiple interactions in S103, and the encryption key can be used to encrypt Bluetooth data during data transmission. The specific interaction process and content are described in the Bluetooth protocol, and this application will not repeat them.

[0170] S104, the wireless headset transmits data to the mobile phone.

[0171] Exemplarily, the wireless headset and the mobile phone can perform data interaction based on the established Bluetooth connection. For example, the mobile phone can send a Bluetooth data packet to the wireless headset, wherein the Bluetooth data packet includes audio data.

[0172] It should be noted that the Bluetooth connection between the mobile phone and the wireless headset described in the embodiment of the present application can be established with S101 as the starting time of the Bluetooth connection process and S103 as the completion time of the Bluetooth connection establishment. In other embodiments, the Bluetooth connection between the mobile phone and the wireless headset can also be established with S102 or S103 as the starting time, which is not limited in the present application.

[0173] Optionally, the Bluetooth connection between the mobile phone and the wireless headset can be maintained through the BLE (Bluetooth LowEnergy) protocol. Optionally, the Bluetooth connection between the mobile phone and the wireless headset can be maintained through the classic Bluetooth protocol, including BR (basic rate) and EDR (enhanced date rate). It should be noted that the Bluetooth connection maintained by the BLE protocol supports transmission rates of 1Mbps, 2Mbps, 500Kbps and 125Kbps, and the supported bandwidth is 1MHz or 2MHz. The Bluetooth connection maintained by the BR / EDR protocol supports a maximum transmission rate of 3Mbps and a supported bandwidth of 1MHz.

[0174] Figure 6a FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet in the BLE protocol. Figure 6a As shown, the Bluetooth data packet includes but is not limited to: Preamble field, Access Code field, PDU (Protocol Data Unit) field, CRC (Cyclic Redundancy Check) field and CTE (Constant Tone Extension) field. Exemplarily, the PDU field includes but is not limited to: Header field, Payload field, etc. Exemplarily, taking the Bluetooth data packet sent by the mobile phone to the wireless headset as an example, the PDU field is used to carry the data sent by the mobile phone to the wireless headset. The Header field can be used to carry control information.

[0175] Figure 6b FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet in the BR protocol. Figure 6b As shown, the Bluetooth data packet includes but is not limited to: Access Code field, Header field, Payload HDR field, User Payload field, MIC field and CRC field. For example, still taking the Bluetooth data packet sent by the mobile phone to the wireless headset as an example, the Header field is used to carry control information, and the User Payload field is used to carry data sent by the mobile phone to the wireless headset.

[0176] Exemplarily, the mobile phone and the wireless headset can transmit data in a specified format based on the Bluetooth connection between the two, such as BLE Bluetooth data packets, BR Bluetooth data packets, or EDR Bluetooth data packets. For example, the Bluetooth connection between the mobile phone and the wireless headset is a BLE Bluetooth connection, that is, a Bluetooth connection maintained based on the BLE protocol, and the current transmission bandwidth is 1MHz. It should be noted that the initial transmission bandwidth can be 1MHz or 2MHz, which is not limited in this application. Figure 7 As shown in FIG. 4 , during the data exchange between the mobile phone and the wireless headset via the Bluetooth connection, the user clicks the lossless quality control in the sound quality adjustment option box 416. Accordingly, in response to the received user operation, the mobile phone will generate an audio frame corresponding to the lossless quality and a Bluetooth data packet containing the audio frame. As described above, different qualities correspond to different amounts of encoded data. Figure 7For example, when the music playback time is the same, the audio file size corresponding to standard quality, that is, the data size, is 3.9MB, the audio file size corresponding to high quality is 9.8MB, and the audio file size corresponding to lossless quality is 30.2MB. For example, if the music playback time is 1 minute, the lossless quality requires that within 1 minute, the mobile phone transmits a 30.2MB audio file to the wireless headset. To meet the transmission rate requirements, the mobile phone can switch the current 1MHz bandwidth to the maximum bandwidth supported by the BLE connection, that is, 2M bandwidth, to increase the bandwidth and rate requirements for data transmission. Figure 8 FIG. 1 is a schematic diagram of an exemplary bandwidth update process. Figure 8 As shown, specifically including:

[0177] S201, the mobile phone sends a bandwidth update request message to the wireless headset.

[0178] Exemplarily, in response to the received user operation, the mobile phone sends a bandwidth update request message to the wireless headset to instruct to update the current bandwidth (eg, 1 MHz) to 2 MHz.

[0179] For example, Figure 9a FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Figure 9a As shown, the Header field in the PDU field in the bandwidth update request message sent by the mobile phone includes signaling indication information, which is used to indicate that the message is a control message. The Payload field includes bandwidth switching indication information. Exemplarily, the bandwidth switching indication information is used to indicate the switching bandwidth. For example, if the current transmission bandwidth between the mobile phone and the wireless headset is 1MHz, the wireless headset can determine to switch the current 1MHz bandwidth to 2MHz based on the bandwidth switching indication information. If the current transmission bandwidth between the mobile phone and the wireless headset is 2MHz, the wireless headset can determine to switch the current 2MHz bandwidth to 1MHz bandwidth based on the bandwidth switching indication information. In this embodiment, the example that the current transmission bandwidth between the mobile phone and the wireless headset is 1MHz and the bandwidth after switching is 2MHz is used for explanation.

[0180] S202, the wireless headset sends a bandwidth update response message to the mobile phone.

[0181] Exemplarily, after receiving the bandwidth update request message sent by the mobile phone, the wireless headset sends a bandwidth update response message to the mobile phone, indicating that the wireless headset can be updated based on the bandwidth indicated by the wireless headset.

[0182] S203, the mobile phone sends a bandwidth update confirmation message to the wireless headset.

[0183] For example, after receiving the bandwidth update response message sent by the wireless headset, the mobile phone can send a bandwidth update confirmation message to the wireless headset to indicate the specific time of switching the bandwidth, so that the wireless headset can receive the Bluetooth data packet sent by the mobile phone at the specified bandwidth at the specified time.

[0184] S204, the wireless headset updates bandwidth configuration.

[0185] Exemplarily, the wireless headset updates the bandwidth configuration to receive the Bluetooth data packet sent by the mobile phone on a specified bandwidth (eg, 2 MHz bandwidth) at a specified time.

[0186] As mentioned above, the maximum bandwidth supported by the current Bluetooth protocol is 2MHz. In the embodiment of the present application, the file size corresponding to lossless quality is 30MB, and the music playback time is 1 minute. For example, the current 2MHz bandwidth is sufficient to support the transmission of the above-mentioned lossless quality audio. However, if the music playback time is also 1 minute, the lossless quality audio file is larger, for example, 100MB (that is, the required bandwidth is greater than 2MHz), or, in other scenarios with large-scale transmission, the bandwidth of the existing BLE protocol and BR protocol cannot support data transmission requirements. For example, in an audio scenario, due to the bandwidth limitation between the mobile phone and the wireless headset, it may be impossible to play lossless quality music with a large bandwidth requirement through the wireless headset.

[0187] It should be noted that Figure 8 The flowchart of the upper layer signaling interaction between the mobile phone and the wireless headset shown in . In the physical layer interaction process between the mobile phone and the wireless headset, taking the wireless headset as an example, after receiving a message (or signaling) sent by the mobile phone, the wireless headset performs corresponding processing on the message, such as decapsulation, verification, etc., and replies to the mobile phone on the specified bandwidth (i.e. the updated bandwidth, such as 2MHz) ACK (Acknowledgement) information or NACK (NegativeAcknowledgement) information to indicate whether the wireless headset has correctly received the message.

[0188] For example, a wireless headset sends an ACK message to a mobile phone. Figure 9b FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Figure 9bAs shown, the Header field in the PDU field of the Bluetooth data packet carries ACK information. Accordingly, the mobile phone receives the data packet, and after decoding, decrypting, and decapsulating the data packet, obtains the ACK information carried by the Header field in the PDU field to determine that the wireless headset successfully received the last sent Bluetooth data packet. The mobile phone can continue to send the next Bluetooth data packet. The sending of NACK information is similar. The mobile phone can respond to the received NACK information and resend the last sent Bluetooth data packet.

[0189] It should be noted that the embodiments of the present application only use bandwidth switching as an example. In the existing Bluetooth protocol, the power switching method is similar to the bandwidth switching method. Both use separate indications, that is, separately sending a signal indicating the power switching, and completing the bandwidth or power switching in a multiple interactive manner.

[0190] The embodiment of the present application provides a Bluetooth communication method in which both communicating parties use Bluetooth data packets with a set format to achieve data transmission in a large bandwidth scenario, effectively improve the switching efficiency of bandwidth and / or power, and improve resource utilization.

[0191] The Bluetooth communication method of the embodiment of the present application is described in detail below with reference to several specific embodiments.

[0192] Scene 1

[0193] Specifically, the mobile phone establishes a Bluetooth connection with the wireless headset. The specific process of establishing a Bluetooth connection can be referred to Figure 5 The relevant description is not repeated here. Exemplarily, during the establishment of the Bluetooth connection, the mobile phone and the wireless headset exchange their respective capability information to indicate whether it is a preset device. Among them, the preset device is optionally a device that supports the Bluetooth protocol in the embodiment of the present application. It can also be understood that the communicating parties determine whether the other party can generate and send a Bluetooth data packet with a set format, and / or correctly receive and parse a Bluetooth data packet with a set format.

[0194] Optionally, any message of the mobile phone and the wireless headset in Bluetooth communication may include capability information. For example, the mobile phone and the wireless headset may send their respective capability information during the detection phase. Optionally, the capability information is carried in a DiscoveryRequest message or a Discovery Response message.

[0195] Optionally, the capability information may also be carried in any message during multiple message interactions in S103, which is not limited in this application.

[0196] Exemplarily, if the mobile phone and the wireless headset disconnect the Bluetooth connection, the mobile phone and the wireless headset reconnect to Bluetooth. In one example, if the mobile phone and the wireless headset store the fingerprint information of the last Bluetooth connection (the concept can be seen above), and the fingerprint information stored in the mobile phone includes information indicating that the wireless headset is a preset device, and the fingerprint information stored in the wireless headset includes information indicating that the mobile phone is a preset device. Exemplarily, during the signaling interaction process between the mobile phone and the wireless headset to establish a Bluetooth connection, each signaling can be based on the Bluetooth data packet with a set format described in the embodiment of the present application. And, after the Bluetooth connection is completed, the Bluetooth data packet with a set format described in the embodiment of the present application is interacted. Exemplarily, in the signaling interaction between the mobile phone and the wireless headset to establish a Bluetooth connection, it can also be based on the Bluetooth data packet format in the existing Bluetooth protocol. Optionally, during the connection establishment process, it is no longer necessary to transmit information on whether the electronic device is a preset device. And after the Bluetooth connection is completed, the Bluetooth data packet with a set format described in the embodiment of the present application is interacted.

[0197] Fig.10 FIG. 1 is a schematic diagram showing the structure of a Bluetooth data packet. Fig.10 As shown, taking a wireless headset as an example, the wireless headset broadcasts a Discovery Request message. The PDU field of the message carries information on whether it is a preset device. In the embodiment of the present application, the wireless headset and the mobile phone are both preset devices. In other embodiments, if any of the wireless headset and the mobile phone is a non-preset device, that is, any of the wireless headset and the mobile phone does not support the Bluetooth protocol in the embodiment of the present application, the mobile phone and the wireless headset still perform Bluetooth communication according to the existing Bluetooth protocol.

[0198] Exemplarily, after the mobile phone receives the Discovery Request message sent by the wireless headset, it can determine that the wireless headset is a preset device. Correspondingly, the Discovery Response message sent by the mobile phone to the wireless headset carries information for indicating that the mobile phone is a preset device. The wireless headset can determine that the mobile phone is a preset device based on the received Discovery Response. After the Bluetooth connection is successfully established, the wireless headset and the mobile phone can exchange data based on the Bluetooth protocol proposed in the embodiment of the present application.

[0199] Fig.11a and 11b FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Fig.11aAs shown, the format of the Bluetooth data packet includes but is not limited to: Preamble field, Access Code field, PHY_IND (physical identify, physical layer indication) field, HEC (Header Error Check, frame header error check) field, Guard (guard interval), sync (synchronization) field, Header field, at least one payload field, at least one CRC field. Optionally, the Bluetooth data packet may also include a Tailer field.

[0200] Exemplarily, the Preamble field, AccessCode field, PHY_IND field, HEC field, and Guard field are optionally referred to as control fields (or frame headers). At least one payload field, at least one CRC field, and Tailer field are optionally referred to as data fields (or frame bodies).

[0201] The following is a detailed description of each field:

[0202] Exemplarily, the length of the Access Code field is 32 bits. Its modulation mode adopts 1Mbps GFSK (Gauss frequency shift keying) modulation. The description of the Access Code field can refer to the description in the existing Bluetooth protocol, and this application will not repeat it. Optionally, the Preamble field and the Access Code field are not encoded.

[0203] Exemplarily, the length of the PHY_IND field is 10 bits, and its modulation mode adopts 1Mbps GFSK modulation, including: BW (bandwidth) field, MCS (Modulation and Coding Scheme) field, NESN (Next Expected Sequence Number) field and SN (Sequence Number) field. Exemplarily, the length of the HEC field is 16 bits, and the 1Mbps GFSK modulation mode is also adopted.

[0204] Optionally, the PHY_IND field and the HEC field are encoded into a code block using the Polar code with N=64, that is, the encoded length is 64 bits.

[0205] The BW field is 3 bits long and is used to indicate the bandwidth of the frame body (ie, the data field). For example, the mapping of the BW field is shown in Table 1:

[0206] Table 1

[0207] BW Bandwidth (MHz) 0 1 1 2 2 4 3 5 4 reserve 5 reserve 6 reserve 7 reserve

[0208] Referring to Table 1, illustratively, when the BW field carries information of 0, that is, when the binary value is 000, the bandwidth is indicated to be 1 MHz. When the BW field carries information of 1, that is, when the binary value is 001, the bandwidth is indicated to be 2 MHz. When the BW field carries information of 2, that is, when the binary value is 010, the bandwidth is indicated to be 4 MHz. When the BW field carries information of 3, that is, when the binary value is 011, the bandwidth is indicated to be 5 MHz. Exemplarily, the bandwidths corresponding to other indication information may be reserved for use as extensions in subsequent protocols.

[0209] That is to say, the Bluetooth protocol of the embodiment of the present application can support 1MHz, 2MHz, 4MHz and 5MHz bandwidths. In addition, the BW field is included in the control field. Accordingly, after receiving a Bluetooth data packet containing the BW field, the receiving end (which can be a mobile phone or a wireless headset) can obtain the bandwidth information in the control field without decapsulating or verifying the data field, and can determine the bandwidth corresponding to the subsequent Bluetooth data transmission.

[0210] Exemplarily, the Bluetooth data packet includes a BW field and a data field. Accordingly, the transmitting end (which can be a mobile phone or a wireless headset) can control the bandwidth conversion in real time through this format without sending a separate message for indicating bandwidth switching (or updating), so as to effectively save resources. Moreover, compared with the problem that multiple interactions are required to complete bandwidth switching (or power switching) in the existing Bluetooth protocol, the Bluetooth communication method in the embodiment of the present application can effectively shorten the switching time. The specific usage will be described in detail in the following embodiments.

[0211] Please continue to refer to Fig.11a , exemplarily, the length of the MCS field is 5 bits, which is used to indicate the modulation mode and coding rate used by the frame body (ie, the data field). Exemplarily, the mapping method of the MCS field is shown in Table 2:

[0212] Table 2

[0213]

[0214] Optionally, the BW field and the MCS field can be combined to indicate the bandwidth, modulation mode and coding rate. For example, the specific mapping method is shown in Table 3:

[0215] Table 3

[0216]

[0217]

[0218] It should be noted that the mapping methods in Table 1, Table 2 and Table 3 are only illustrative examples and are not limited in this application.

[0219] Please continue to refer to Fig.11a Exemplarily, the length of the NESN field and the SN field is 1 bit respectively, and the total length of the two fields is 2 bits, which is used to indicate that the data packet is a new packet or a retransmitted data packet, and can also be used to indicate ACK information or NACK information.

[0220] Exemplarily, in asymmetric service scenarios such as audio playback, that is, scenarios where the receiving end (such as wireless headphones) only needs to reply ACK information or NACK information, the embodiment of the present application also provides a simple ACK or NACK reply method, optionally, by setting the 8 bits of the BW field and the MCS field to all 1 (i.e., 11111111) or all 0 (i.e., 00000000), to indicate that the Bluetooth data packet transmitted this time has only the frame header part (i.e., the control field), and what is transmitted is ACK information or NACK information. Compared with the existing Bluetooth protocol in which ACK information or NACK information is carried in the data field, the receiving end needs to parse from the frame header and parse until the PDU field to obtain the ACK information or NACK information. The embodiment of the present application provides a more efficient reply method, and the receiving end (such as a mobile phone) can obtain the ACK information or NACK information by reading the control field. In addition, for the sending end, it only needs to transmit the frame header part carrying the ACK information or NACK information, without transmitting the frame body part, which can effectively save the transmission overhead.

[0221] It should be noted that the NESN field and the SN field indicate whether a data packet is a new packet or a retransmitted data packet, and the manner in which the ACK information or the NACK information is indicated is the same as the indication manner in the existing Bluetooth protocol. Fig.12 The following is a schematic diagram showing the indication of the NESN field and the SN field, and briefly explains the indication method of the NESN field and the SN field:

[0222] 1) Determine ACK information or NACK information.

[0223] Take a mobile phone as an example. The mobile phone locally stores the value of the NESN field (hereinafter referred to as local NESN) and the value of the SN field (hereinafter referred to as local SN). Fig.12As shown in (1), illustratively, a mobile phone receives a Bluetooth data packet sent by a wireless headset. The mobile phone compares the NESN field in the Bluetooth data packet with the local SN. In one example, if the NESN field in the Bluetooth data packet is the same as the local SN, the mobile phone can determine that the wireless headset sends a NACK message. In other words, the wireless headset request failed to successfully receive the data sent by the mobile phone last time, and requests the mobile phone to resend the data sent last time through the NACK message. Optionally, if the mobile phone is configured with a retransmission function, the mobile phone can respond to the NACK message and resend the data sent last time to the wireless headset.

[0224] In another example, if the NESN field in the Bluetooth data packet is different from the local SN, the mobile phone can determine that the wireless headset sends an ACK message. In other words, the wireless headset has successfully received the data sent by the mobile phone last time. Accordingly, the mobile phone adds 1 to the value of the local SN. For example, if the local SN value currently stored locally is 0, then after the mobile phone obtains the ACK information, the value of the local SN becomes 1. In addition, the mobile phone can send new data to the wireless headset in response to the received ACK information.

[0225] It should be noted that the NESN field and the SN field in the Bluetooth data packet sent by the mobile phone are the same as the local NESN and the local SN respectively.

[0226] 2) Determine whether it is a new packet or a retransmitted packet.

[0227] Still taking the mobile phone as an example. Fig.12 As shown in (2), illustratively, the mobile phone receives a Bluetooth data packet sent by a wireless headset. The mobile phone compares the SN field in the Bluetooth data packet with the local NESN. In one example, if the SN field in the Bluetooth data packet is the same as the local NESN, the mobile phone can determine that the data packet transmits new data. Accordingly, the mobile phone receives the new data, and the mobile phone increases the local NESN value by 1.

[0228] In another example, if the SN field in the Bluetooth data packet is the same as the local NESN, the mobile phone can determine that the data packet transmits old data, that is, the wireless headset sends the data sent last time. Exemplarily, if the mobile phone detects that the last reply of the wireless headset is ACK information, that is, the mobile phone has successfully received the data sent by the wireless headset last time, then the mobile phone may not perform any processing on the old data received this time. Exemplarily, if the mobile phone detects that the last reply is NACK information, that is, the mobile phone did not successfully receive the data sent by the wireless headset last time. In other words, the wireless headset resends the data in response to the NACK information sent by the mobile phone. The mobile phone can receive the old data and process the old data accordingly. The specific processing process will be described in detail in the following embodiments.

[0229] Please continue to refer to Fig.11a . Exemplarily, since the modulation modes of the frame header and the frame body of the Bluetooth data packet are different, for example, the frame header adopts the GFSK modulation mode, and the frame body adopts the GPSK modulation mode. Therefore, a Guard field is included between the frame header and the frame body. Exemplarily, the description of the Guard field and the sync field can be referred to in the existing Bluetooth protocol, and this application will not repeat the description.

[0230] Exemplarily, the Header field length is optionally 24 bits. It uses the same bandwidth and modulation as the data field, and, optionally, is encoded as a code block using a Polar code of N=128 (i.e., a length of 128 bits). Depending on the type of data packet, the content carried by the Header field is different. Exemplarily, the types of data packets include: ACL (Asynchronous Connection link), CIS (Connected Isochronous Stream), BIS (broadcast isochronous stream), and TWS (True Wireless Stereo) (TWS refers to the data transmission stream between the two earphones of a TWS headset). It should be noted that for different types of data frames, the bit width and specific meaning of the specific fields of the Header may be different, but the total length is a fixed value (e.g., 24 bits).

[0231] Exemplarily, the Header fields of the ACL data type include an LLID (logical link identify) field, a Length field, an MD (more data) field, a CP (CTEInfo Present) field, an APC (auto power contorl) field, and an RFU (Reserved for future use) field.

[0232] For example, the length of the APC field is 2 bits, which is used to indicate the power value to be increased or decreased by the other end based on the current power. The mapping method is shown in Table 4:

[0233]

[0234]

[0235] Referring to Table 4, exemplarily, when the APC field carries a character of 0, that is, 00, it is used to indicate that the current power is still used. Exemplarily, when the APC field carries a character of 1, that is, 01, it is used to indicate a reduction of 1dB based on the current power. Exemplarily, when the APC field carries a character of 2, that is, 10, it is used to indicate an increase of 1dB based on the current power. Exemplarily, when the APC field carries a character of 3, that is, 11, it is used to indicate an increase of 3dB based on the current power. Similar to the bandwidth indication, the embodiment of the present application can indicate the power switching of the electronic device through the APC field in the Bluetooth data packet, so that the opposite device can send a Bluetooth data packet based on the power indicated by the received APC field. Compared with the existing Bluetooth protocol that needs to indicate power switching separately and perform multiple signaling interactions, the embodiment of the present application provides a real-time power switching method, which can indicate power switching when transmitting data, that is, it can reduce signaling overhead and improve power switching efficiency by multiplexing signaling.

[0236] In a possible implementation, when indicating power switching, the Bluetooth data packet may not include a data field. Exemplarily, the Length field in the Header field may indicate that the length of the data field is 0, indicating that the Bluetooth data packet does not include a data field.

[0237] It should be noted that the description of other fields of the Header field can refer to the existing Bluetooth protocol and will not be repeated in this application.

[0238] For example, the data field in the embodiment of the present application may be encoded using Polar code or no code. Fig.11a As shown, the transmitting end divides the data into multiple data blocks (ie, data blocks carried by the payload1 field to the payload n field) according to the coding rate. Exemplarily, each data block is generated by separate channel coding.

[0239] It should be noted that the length of each data block can be set according to actual needs, and this application does not limit it. Exemplarily, each data block corresponds to a CRC field. The specific use of multiple data blocks and multiple CRC checks will be described in detail in the following embodiments.

[0240] like Fig.11b is an exemplary Bluetooth data packet format. Fig.11bThe Bluetooth data packet shown is generated by using convolutional coding as the encoding method. Exemplarily, the Bluetooth data packet includes: a Preamble field, an Access Code field, a PHY_IND field, an FEC 1 / 2 field, a Guard field, a sync field, a Header field, a HEC field, an FEC 1 / 2 field, at least one payload field, at least one CRC field, at least one term field, and a Tailer field.

[0241] Among them, the FEC1 / 2 field is a channel coding with a code rate of 1 / 2. After encoding, the data length will increase. In the embodiment of the present application, the bits after encoding with a code rate of 1 / 2 are doubled.

[0242] The term field is a field specific to convolutional coding. It is attached to the end of the coding block, and its percentage is related to the coding parameters.

[0243] Exemplarily, the Header field includes: Blocklen (number of blocks) field, payload field, MD field, LLID field, APC field and RFU field. Among them, the Blocklen field is used to indicate the number of blocks of the CRC block. The payload field is used to indicate the length of the data packet. Other undescribed fields can refer to the relevant content of the existing Bluetooth protocol, and this application does not limit them.

[0244] The Bluetooth communication method in the embodiments of the present application is described in detail below with reference to several specific embodiments.

[0245] Scene 1

[0246] Fig.13 FIG. 1 is a schematic diagram of an exemplary application scenario. Fig.13 As shown in (1), the mobile phone establishes a Bluetooth connection with the wireless headset. For example, the process of establishing a Bluetooth connection between the mobile phone and the wireless headset can refer to Figure 4a to Figure 4c ,as well as Figure 5 The relevant description will not be repeated here.

[0247] Exemplarily, the embodiment of the present application takes the initial bandwidth of the mobile phone and the wireless headset as 1MHz as an example for explanation. Optionally, the initial bandwidth can be determined after negotiation during the connection process. Optionally, the initial bandwidth can also be set in the Bluetooth protocol, for example, each electronic device can be pre-configured with an initial bandwidth, and the initial bandwidth configured for each electronic device is the same (for example, all are 1MHz).

[0248] For example, in the embodiment of the present application, when the mobile phone and the wireless headset are establishing a Bluetooth connection, the other end is determined to be a preset device, that is, a device that supports the Bluetooth data packet of the embodiment of the present application. Therefore, the mobile phone and the wireless headset can exchange data based on the Bluetooth data packet with a set format proposed in the embodiment of the present application.

[0249] It should be noted that, in other embodiments, when both the mobile phone and the wireless headset are preset devices, the mobile phone and the wireless headset can also perform data exchange based on the existing Bluetooth protocol, and when the set conditions are triggered, the Bluetooth protocol proposed in the embodiment of the present application is used, that is, data exchange is performed based on Bluetooth data packets with a set format. Optionally, the set condition can be that the application started by the mobile phone is a music application. Optionally, the set condition can also be that the bandwidth required for the file to be transmitted is greater than a set threshold (for example, it can be 1MHz). Of course, it can also be other conditions, which are not limited by the present application.

[0250] Please refer to Fig.13 (2), exemplarily, the mobile phone and the wireless headset exchange data via a Bluetooth connection. Exemplarily, the current Bluetooth communication bandwidth between the mobile phone and the wireless headset is 1 MHz. Fig.14a FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Fig.14a As shown, the Bluetooth data packet sent by the mobile phone includes but is not limited to: Preamble field, AcessCode field, PHY_IND field and other fields.

[0251] Exemplarily, the characters carried in the BW field in the PHY_IND field are 000. According to the mapping relationship shown in Table 1, the bandwidth corresponding to 000 is 1 MHz.

[0252] Exemplarily, the character carried in the MCS field is 00001. According to the mapping relationship shown in Table 2, the modulation mode indicated by 00001 is GFSK and the coding rate is 1.

[0253] It should be noted that this embodiment is only for better illustrating the bandwidth switching process, and the indication method of the NESN field and the SN field will be described in the following embodiments.

[0254] For example, Fig.15 FIG. 1 is a schematic diagram showing an exemplary data transmission method. Fig.15 As shown in (1), the wireless headset receives the control field on the specified frequency band. For example, in the embodiment of the present application, the bandwidth of the control field is 1MHz, and its center frequency is fc. It should be noted that the center frequency is negotiated between the mobile phone and the wireless headset during the process of establishing a Bluetooth connection, or after the Bluetooth connection is established. The specific negotiation process can refer to the existing protocol, and this application will not repeat it.

[0255] For example, the wireless headset receives a signal in a frequency band with a center frequency of fc and a bandwidth of 1 MHz. Fig.14a The control field in the Bluetooth data packet shown. Exemplarily, the wireless headset processes the control field accordingly. Exemplarily, the wireless headset can read the information carried by the Preamble field and the Access Code field, and perform corresponding processing. Exemplarily, the wireless headset reads the PHY_IND field to obtain the information carried in the BW field (i.e., 000). Moreover, the wireless headset can determine that the transmission bandwidth of the data field is 1MHz based on the BW field. Exemplarily, the wireless headset can obtain the modulation mode of the data field based on the MCS field.

[0256] Please continue to refer to Fig.15 (1), exemplarily, the wireless headset can determine that the bandwidth of the data field is 1MHz based on the BW field carried in the control field. Accordingly, the wireless headset can receive the data field in the Bluetooth data packet sent by the mobile phone in a frequency band with a center frequency of fc and a bandwidth of 1MHz. Exemplarily, the wireless headset can process the data field accordingly based on the encoding method indicated by the MCS field to obtain the information or data carried in the data field. For example, the wireless headset can obtain the audio data carried by the data field. Then, the wireless headset can play the obtained audio data. It should be noted that the processing of the data field will be described in the following embodiments, and this embodiment only describes the bandwidth switching scenario.

[0257] like Fig.13 As shown in (3), illustratively, during the interaction between the wireless headset and the mobile phone via a Bluetooth connection with a bandwidth of 1 MHz, the mobile phone can interact with the wireless headset for data based on a larger bandwidth, such as 4 MHz, in response to received user operations.

[0258] For example, the mobile phone responds to the received user operation (eg Figure 7 As shown), it is determined that the bandwidth needs to be switched to 4MHz. The mobile phone generates a Bluetooth data packet. The format of the Bluetooth data packet is as follows Fig.14b Please refer to Fig.14b, exemplarily, the BW field in the PHY_IND field carries information of 010. According to the mapping relationship shown in Table 1, the bandwidth indicated by 010 is 4MHz. The MCS field carries information of 00001, which is used to indicate that the modulation mode is GFSK and the coding rate is 1. It should be noted that in the embodiment of the present application, only the method of user-indicated switching of bandwidth is used as an example. In other embodiments, the mobile phone can adaptively switch the transmission bandwidth based on the amount of data transmitted and / or the current transmission conditions (also referred to as Bluetooth communication conditions). For example, if the distance between the mobile phone and the headset is close (for example, less than 2 meters), the interference received between the mobile phone and the headset is small, and the Bluetooth communication conditions are better. The mobile phone can choose to communicate with the headset through Bluetooth through a larger bandwidth (for example, 5MHz). The selection of bandwidth and the judgment conditions can be set according to actual needs, and this application is not limited.

[0259] For example, Fig.15 As shown in (2), Fig.15 As shown in (2), the wireless headset receives the control field on the specified frequency band. For example, in the embodiment of the present application, the bandwidth of the control field is 1 MHz, and its center frequency is fc. It should be noted that in the embodiment of the present application, only Fig.15 (1) and Fig.15 In other embodiments, during the Bluetooth communication between the mobile phone and the wireless headset, the center frequency may be variable, which is not limited in this application.

[0260] For example, the wireless headset receives a signal in a frequency band with a center frequency of fc and a bandwidth of 1 MHz. Fig.14b The control field in the Bluetooth data packet shown in the figure. The wireless headset can read the information carried in the Preamble field and the Access Code field and perform corresponding processing.

[0261] Exemplarily, the wireless headset reads the PHY_IND field and obtains the information carried in the BW field (i.e., 010). The wireless headset can determine that the transmission bandwidth of the data field in the Bluetooth data packet is 4MHz based on the BW field. Exemplarily, the wireless headset can obtain the modulation mode of the data field based on the MCS field. In addition, the wireless headset can determine that the current Bluetooth data packet is transmitting new data based on the NESN field and the SN field.

[0262] Please continue to refer to Fig.15(2), exemplarily, the wireless headset can determine that the bandwidth of the data field is 4 MHz based on the BW field carried in the control field. Accordingly, the wireless headset can receive the data field in a frequency band with a center frequency of fc and a bandwidth of 4 MHz. Exemplarily, the wireless headset can decode the data field based on the encoding method indicated by the MCS field to obtain information or data carried in the data field, for example, the wireless headset can obtain audio data carried in the data field. Then, the wireless headset can play the obtained audio data.

[0263] It should be noted that if Fig.15 As shown in (1), if the data amount of the data field is the same, when the 1MHz bandwidth is used for transmission, the transmission time of the data field is 1ms. Fig.15 As shown in (2), when 4 MHz bandwidth is used for transmission, the transmission duration of the data field is 0.25 ms. In the embodiment of the present application, the Bluetooth protocol can support transmission modes with bandwidths of 4 MHz and above, which can effectively improve the transmission efficiency of Bluetooth data packets.

[0264] It should be further noted that in the embodiments of the present application, the initial bandwidth of the electronic device is 1 MHz as an example, that is, the control field is transmitted on the agreed 1 MHz bandwidth, so that the control field can be correctly read between electronic devices. In other embodiments, if the initial bandwidth agreed by the electronic device is 2 MHz, the transmission bandwidth of the control field can also be 2 MHz, which is not limited in the present application.

[0265] It should be further explained that, in the embodiment of the present application, only the mobile phone sends a Bluetooth data packet to the wireless headset, and the bandwidth switching is indicated by the Bluetooth data packet as an example. Exemplarily, the wireless headset can also send a Bluetooth data packet to the mobile phone in the above manner, and indicate the bandwidth corresponding to the data field in the control field of the Bluetooth data packet. In one example, the bandwidth indicated by the wireless headset to the mobile phone may be the same as the bandwidth indicated by the mobile phone to the wireless headset. In another example, the bandwidth indicated by the wireless headset to the mobile phone may be different from the bandwidth indicated by the mobile phone to the wireless headset. For example, the bandwidth indicated by the mobile phone to the wireless headset is 4MHz, that is, the bandwidth occupied by the data field sent by the mobile phone is 4MHz. The bandwidth indicated by the wireless headset to the mobile phone is 1MHz, that is, the bandwidth occupied by the data field sent by the wireless headset is 1MHz. Therefore, when the amount of data sent by the wireless headset is small, the Bluetooth data packet can be transmitted with a smaller bandwidth to further save transmission resources.

[0266] It should be further explained that only one bandwidth switching is taken as an example in the embodiment of the present application. In fact, through the communication method in the embodiment of the present application, the mobile phone and the wireless headset can dynamically determine their respective transmission bandwidths based on parameters such as network conditions, data volume, and application requirements. For example, when the lossless music played this time is finished, switch to the next music. Moreover, the data volume of the next music is relatively small, for example, only 2MHz bandwidth is required. Accordingly, the BW field in the data packet sent by the mobile phone to the wireless headset can indicate that the data field transmission bandwidth is 2MHz. Thus, through a flexible bandwidth switching method, the bandwidth can be switched dynamically and in real time according to user instructions or actual needs, so as to effectively save resources and improve resource utilization.

[0267] Scene 2

[0268] Fig.16 FIG. 1 is a schematic diagram showing an exemplary interaction between a mobile phone and a wireless headset. Fig.16 As shown, exemplary, specifically include:

[0269] S301, the wireless headset receives a Bluetooth data packet sent by the mobile phone.

[0270] For example, to better illustrate the reply method of ACK information or NACK information in the embodiment of the present application. In this embodiment, the first data interaction between the wireless headset and the mobile phone, that is, the first Bluetooth data packet sent to the wireless headset after the mobile phone and the wireless headset establish a Bluetooth connection, is used as an example for explanation. For other data packets in the Bluetooth communication process between the mobile phone and the wireless headset, the method in the embodiment of the present application can be adopted, and this application will not repeat the description.

[0271] Exemplarily, as described above, the mobile phone and the wireless headset respectively store the value of the NESN field and the value of the SN field, that is, the local NESN and the local SN. Exemplarily, in the embodiment of the present application, the local initial NESN value configured by the mobile phone and the wireless headset is 1, and the local initial SN value is 1. Optionally, the initial values ​​of the local NESN and the local SN can be negotiated during the connection establishment process, or can be pre-configured, and this application does not limit it. It can also be understood that only after the mobile phone and the wireless headset determine the local NESN and local SN stored by each other, can the values ​​of the NESN field and the SN field in the data packet be modified to indicate whether the data packet transmits new data or old data, and / or, indicates ACK information or NACK information.

[0272] like Fig.17 FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Fig.17As shown, the description of the BW field and the MCS field can be referred to above and will not be repeated here. As described above, the NESN field and the SN field in the Bluetooth data packet are the same as the local NESN and the local SN currently stored in the mobile phone. Exemplarily, in the embodiment of the present application, the local NESN value currently stored in the mobile phone is 1, and the local SN value is 1. Correspondingly, the NESN field value in the Bluetooth data packet sent by the mobile phone is 1, and the SN field value is 1.

[0273] Exemplarily, the wireless headset receives a Bluetooth data packet and obtains the control field. The processing of the BW field and the MCS field in the control field can be referred to above and will not be repeated here. Exemplarily, the wireless headset reads the NESN field and the SN field.

[0274] In the embodiment of the present application, the local NESN value currently stored in the wireless headset is 1, and the SN value is 1. Exemplarily, according to the indication method of the NESN field and the SN field described above. The wireless headset determines that the value in the SN field in the Bluetooth data packet (i.e., 1) is the same as the value of the local NESN (i.e., 1). Accordingly, the wireless headset can determine that the Bluetooth data packet currently received transmits new data. In addition, the wireless headset adds 1 to the value of the local NESN (i.e., 1), and the updated value of the local NESN is 0.

[0275] Optionally, in this embodiment, an asymmetric service is described as follows, that is, the wireless headset only receives data sent by the mobile phone, but does not need to send data to the mobile phone. In other words, the wireless headset has never sent data to the mobile phone, and the mobile phone does not need to send ACK information or NACK information to the wireless headset. Therefore, the wireless headset does not need to perform the judgment process of ACK information or NACK information.

[0276] Exemplarily, after the wireless headset determines that the data packet carries new data, the wireless headset can receive the data field of the Bluetooth data packet on a specified frequency band based on the indications of the BW field and the MCS field.

[0277] Please continue to refer to Fig.17 The data field in the Bluetooth data packet received by the wireless headset includes three data blocks and corresponding three CRC fields. Among them, the three data blocks are carried in the payload1 field, the payload2 field and the payload3 field respectively. The three CRC fields are the CRC1 field, the CRC2 field and the CRC3 field respectively. Among them, the CRC1 field corresponds to the data block in the payload1 field. The CRC2 field corresponds to the data block in the payload2 field. The CRC3 field corresponds to the data block in the payload3 field.

[0278] The description of other fields can refer to the relevant content of the above embodiment and will not be repeated here.

[0279] S302a, the wireless headset checks the payload1 field based on the CRC1 field.

[0280] S302b, the wireless headset checks the payload2 field based on the CRC2 field.

[0281] S302c, the wireless headset checks the payload3 field based on the CRC3 field.

[0282] Exemplarily, the wireless headset receives the data field in a frequency band with a center frequency of fc and a bandwidth of 4 MHz. The wireless headset can demodulate the data field based on the modulation mode indicated by the MCS field to obtain each field in the data field. The following only describes the processing process of the wireless headset for the payload field and the CRC field. For other fields, reference can be made to the existing Bluetooth protocol, and this application does not limit it.

[0283] Exemplarily, the wireless headset can verify the data block carried in the payload1 field based on the CRC1 field to determine whether the data block in the payload1 field is correctly received. Optionally, correct reception optionally means that the length, sequence, and specific numbers of multiple characters corresponding to the received data are correct. Exemplarily, the wireless headset verifies the payload2 field and the payload3 field respectively based on the received CRC2 field and CRC3 field.

[0284] S303, the wireless headset determines that the verification of the CRC1 field to the CRC3 field is successful, and obtains data of the payload1 field to the payload3 field.

[0285] Exemplarily, the wireless headset successfully verifies the payload1 field to the payload3 field based on the CRC1 to CRC3 fields, that is, the wireless headset determines that the payload1 field to the payload3 field are correctly received. Exemplarily, the wireless headset obtains the data included in the payload1 field to the payload3 field (i.e., the data block described above). For example, for example, the wireless headset can merge the obtained multiple data blocks (including the data block included in the payload1 field, the data block included in the payload2 field, and the data block included in the payload3 field) in the order of the data blocks to obtain the corresponding audio frame. The wireless headset can further process the audio frame to play the audio data corresponding to the audio frame. In the embodiment of the present application, only the transmission scenario of audio data is used as an example for explanation. In other embodiments, the transmission process of other types of data is the same as that of audio data. The difference may be the processing process of the wireless headset end. For example, the wireless headset end needs to perform audio decoding on the audio frame to obtain the corresponding audio data. If it is another type of frame, such as an image frame, the wireless headset needs to perform image decoding on the image frame to obtain the corresponding image data, and this application will not illustrate them one by one.

[0286] S304, the wireless headset sends an ACK message to the mobile phone.

[0287] Exemplarily, after the wireless headset determines that the payload1 field to the payload3 field are correctly received, it can send an ACK message to the mobile phone based on the Bluetooth address information of the mobile phone (the information is obtained during the Bluetooth connection establishment process).

[0288] For example, Fig.18 FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Fig.18 As shown, the Bluetooth data packet includes: a Preamble field, an Access Code field and a PHY_IND field. The description of the Preamble field and the Access Code field can be referred to above and will not be repeated here.

[0289] Exemplarily, the PHY_IND field includes a BW field, an MCS field, a NESN field, and an SN field. Exemplarily, 8 bits in the BW field and the MCS field are all 1, indicating that the Bluetooth data packet only includes a frame header (ie, does not carry a data field).

[0290] Exemplarily, as described above, the NESN field and SN field in the Bluetooth data packet sent by the wireless headset are the same as the NESN field and SN field currently stored in the wireless headset. Exemplarily, the value of the local NESN currently stored in the wireless headset is 0, and the value of the local SN is 1. Correspondingly, Fig.16As shown, the NESN field in the Bluetooth data packet is 0 and the SN field is 1.

[0291] For example, the mobile phone receives Fig.18 The Bluetooth data packet shown. The mobile phone reads the BW field and the MCS field, detects that the 8 bits of the BW field and the MCS field are all 1, and determines that the Bluetooth data packet only includes the frame header, does not include the frame body, and is used to indicate ACK information or NACK information. The mobile phone can further determine that the Bluetooth data packet indicates ACK information by reading the NESN field and the SN field (the specific judgment method can be referred to above, and will not be repeated below). Correspondingly, the mobile phone can determine that the wireless headset correctly received the data sent by the mobile phone last time. As described above, the mobile phone has determined that the Bluetooth data packet does not include the data field, and the mobile phone does not need to further receive the data field, thereby achieving the purpose of saving power consumption. Compared with the existing Bluetooth protocol, which requires parsing the data field to obtain the ACK information or NACK information, the electronic device (such as a mobile phone) in the embodiment of the present application can more quickly determine whether the wireless headset has correctly received the data. After the mobile phone quickly determines whether the wireless headset has correctly received the data, the mobile phone can determine whether the data needs to be resent or new data needs to be sent based on the reception result of the wireless headset. Thereby improving the data processing and transmission efficiency of the mobile phone.

[0292] It should be noted that in the audio transmission scenario of the embodiment of the present application, that is, in the asymmetric service scenario, the wireless headset only needs to reply ACK information or NACK information. In other embodiments, such as call scenarios, the wireless headset and the mobile phone need to exchange data and ACK information (or NACK information).

[0293] For example, a mobile phone sends a Bluetooth data packet including voice data to a wireless headset. After the wireless headset successfully receives the Bluetooth data packet sent by the mobile phone, the wireless headset optionally sends an ACK message to the mobile phone. For example, the wireless headset obtains voice data through a microphone. The wireless headset optionally sends the obtained voice data to the mobile phone.

[0294] In one example, a wireless headset may be based on Fig.18 The Bluetooth data packet shown in the figure sends an ACK message to the mobile phone. Then, the wireless headset Fig.11a Or the Bluetooth data packet shown in 11b, sending voice data to the mobile phone.

[0295] In another example, the wireless headset may send a Bluetooth data packet containing an ACK message and voice data to the mobile phone. Fig.19 FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Fig.19As shown, the Bluetooth data packet includes a Preamble field, an Access Code field, a PHY_IND field, and a data field. Exemplarily, the 8 bits of the BW field and the MCS field in the PHY_IND field are not all 1. The mobile phone can determine that the Bluetooth data packet contains a data field. The mobile phone can further determine the bandwidth and modulation method of the data field by reading the BW field and the MCS field. The specific details can be referred to the relevant content above, which will not be repeated here. Exemplarily, the mobile phone can determine that the wireless headset replies with an ACK message based on the NESN field and the SN field, and that the Bluetooth data packet carries new data. The specific judgment method can be referred to above, which will not be repeated here, and will not be repeated below.

[0296] Exemplarily, the data field includes a payload1 field, a CRC1 field, etc. The mobile phone can process the data field to obtain the voice data sent by the wireless headset. The specific processing process can be referred to above and will not be repeated here.

[0297] Scene 3

[0298] Fig.20a FIG. 1 is a schematic diagram showing an exemplary interaction between a mobile phone and a wireless headset. Fig.20a As shown, exemplary, specifically include:

[0299] S401, the wireless headset receives a Bluetooth data packet sent by the mobile phone.

[0300] For example, Fig.16 Taking the Bluetooth data packet shown as an example, the specific description can refer to S301, which will not be repeated here.

[0301] S402a, the wireless headset checks the payload1 field based on the CRC1 field.

[0302] S402b, the wireless headset checks the payload2 field based on the CRC2 field.

[0303] S402c, the wireless headset checks the payload3 field based on the CRC3 field.

[0304] The description of S402a to S402c may refer to the relevant contents of S302a to S302c, which will not be repeated here.

[0305] S403, the wireless headset determines that the CRC1 field and the CRC2 field are successfully checked, and obtains data of the payload1 field and the payload2 field. The wireless headset determines that the CRC3 field fails to be checked, and waits for retransmission.

[0306] Exemplarily, the wireless headset verifies the payload1 field to the payload3 field based on the CRC1 to CRC3 fields. The verification result is: the CRC1 field and the CRC2 field are successfully verified, and the CRC3 field fails to be verified. The wireless headset can obtain the data field that has been successfully verified, that is, the data of the payload1 field and the payload2 field.

[0307] Exemplarily, after determining that the CRC3 field check fails, the wireless headset caches the payload1 field to the payload3 field in the memory.

[0308] For other contents not described, please refer to S303 and will not be described in detail here.

[0309] S404, the wireless headset sends a NACK message to the mobile phone.

[0310] Exemplarily, the wireless headset determines that the payload3 field is not received correctly. The wireless headset can send a NACK message to the mobile phone based on the Bluetooth address information of the mobile phone. In other words, if any payload field in the data field in the Bluetooth data packet sent by the mobile phone fails to be received, it is determined that the data field fails to be received.

[0311] For example, Fig.21 FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Fig.21 As shown in FIG. 1 , the Bluetooth data packet includes: a Preamble field, an Access Code field, and a PHY IND field. The description of the Preamble field and the Access Code field can be referred to above and will not be repeated here.

[0312] Exemplarily, the PHY IND field includes a BW field, an MCS field, a NESN field, and an SN field, wherein the 8 bits in the BW field and the MCS field are all 1, indicating that the Bluetooth data packet only includes a frame header (ie, a control field) but does not include a frame body (ie, a data field).

[0313] For example, the wireless headset does not receive data correctly, and the wireless headset does not update the local NESN and local SN values. That is, the local NESN value currently stored in the wireless headset is 1, and the local SN value is 1. In this embodiment, the wireless headset needs to feedback NACK information to the mobile phone. For example, the NESN field and SN field in the Bluetooth data packet sent by the wireless headset are the same as the NESN field and SN field currently stored in the wireless headset. Fig.21 As shown, exemplarily, the NESN field in the Bluetooth data packet is 1 and the SN field is 1.

[0314] For example, the mobile phone receives Fig.21The Bluetooth data packet shown. The mobile phone reads the BW field and the MCS field, detects that the 8 bits of the BW field and the MCS field are all 1, and determines that the Bluetooth data packet only includes the frame header and is used to indicate ACK information or NACK information. The mobile phone can further determine that the Bluetooth data packet indicates NACK information (that is, the value of the local SN is the same as the value in the NESN field in the data packet) by reading the NESN field and the SN field and based on the value of the local NESN (that is, 1) and the value of the local SN (that is, 1). Accordingly, the mobile phone can determine that the wireless headset has not correctly received the data sent by the mobile phone.

[0315] Exemplarily, when the mobile phone determines that the wireless headset has correctly received the data sent by the mobile phone, the mobile phone can detect a preset retransmission mechanism. Optionally, the preset retransmission mechanism of the mobile phone can set the number of retransmissions, for example, it can be set to retransmit once or retransmit three times, which is not limited in this application.

[0316] In a possible implementation, if the mobile phone transmits the data stream in a broadcasting manner, or if the mobile phone is not provided with a retransmission mechanism, the headset optionally does not need to reply with an ACK message or a NACK message.

[0317] like Fig.20b FIG. 1 is a schematic diagram showing an exemplary data retransmission process between a mobile phone and a wireless headset. Fig.20b As shown, exemplary, specifically include:

[0318] S501, the wireless headset receives the Bluetooth data packet retransmitted by the mobile phone.

[0319] Exemplarily, in an embodiment of the present application, after the mobile phone determines that the wireless headset has not successfully received the Bluetooth data sent last time, the mobile phone resends the Bluetooth data to the headset. Fig. 22 FIG. 1 is a schematic diagram showing the structure of a retransmitted Bluetooth data packet. Fig. 22 As shown, the values ​​of the NESN field and the SN field in the Bluetooth data packet are the same as the values ​​of the local NESN field (i.e. 1) and the local SN field (i.e. 1) currently stored in the mobile phone. For information on other fields, refer to Fig.11b The description in will not be repeated here.

[0320] Exemplarily, the wireless headset receives a Bluetooth data packet sent by a mobile phone. The value of the local NESN currently stored in the wireless headset is 0, and the value of the local SN is 1. Exemplarily, the wireless headset can determine that the Bluetooth data packet is transmitted in the old data transmitted last time based on the value of the local NESN (i.e., 0) and the value of the SN field in the Bluetooth data packet (i.e., 1). In addition, if the wireless headset detects that the wireless headset responded with NACK information last time, the wireless headset receives the data field and executes subsequent processing steps.

[0321] S502: The wireless headset performs a combined check on the payload3 field received for the first time and the payload3 field received for the second time based on the CRC3 field.

[0322] Exemplarily, the wireless headset can obtain the data of the payload3 field received for the first time from the memory. The wireless headset can combine and check the data in the payload3 field received for the first time and the data in the payload3 field received for the second time (i.e., currently received) based on the CRC field. The specific method of combining and checking can refer to the CRC check method of the prior art, and this application will not repeat the description. The data field in the Bluetooth data packet in the embodiment of the present application includes multiple data blocks. When any data block is received incorrectly, the receiving end (such as a wireless headset) can only combine and check the data packet received in error last time after receiving the retransmitted data packet. There is no need to combine and check the entire data field as in the existing Bluetooth protocol. This effectively improves the data reception efficiency and reduces the processing pressure on the receiving end.

[0323] S503, the wireless headset determines that the CRC3 field check is successful, and obtains data in the payload1 field to the payload3 field.

[0324] Exemplarily, after the wireless headset successfully merges and verifies the payload3 field, the wireless headset can obtain the data of the payload1 field and the payload2 field obtained last time, as well as the data of the payload3 field obtained this time. Among them, the data of the payload3 field refers to the data obtained after two merge verifications are successful. Exemplarily, the wireless headset performs corresponding processing on the data of the payload1 field to the payload3 field. The specific description can be referred to S303, which will not be repeated here.

[0325] S504, the wireless headset sends an ACK message to the mobile phone.

[0326] For example, after the wireless headset determines that the payload1 field to the payload3 field are correctly received, it can send an ACK message to the mobile phone based on the Bluetooth address information of the mobile phone (the information is obtained during the Bluetooth connection establishment process). Specific details can be found in S304, which will not be repeated here.

[0327] It should be noted that the above description is based on the example of a Bluetooth data packet including multiple payload fields and CRC fields. In an embodiment of the present application, the data in the Bluetooth data packet may also be divided into only one data block and carried in the payload field, which may correspond to a CRC field. In other words, the frame header part in the embodiment of the present application can be combined with the frame body part in the existing Bluetooth protocol, that is, the frame body including only one payload field and one CRC field. It can be understood that the bandwidth indication method, ACK / NACK indication method, power indication method, and multiple payload fields and CRC fields in the embodiment of the present application can be used independently or in any combination, and the present application does not limit it.

[0328] As described above, in a symmetric service scenario, the wireless headset optionally exchanges data and ACK information (or NACK information) with the mobile phone. Still taking the call scenario as an example, the mobile phone sends a Bluetooth data packet including voice data to the wireless headset. The wireless headset fails to correctly receive at least one data field sent by the mobile phone, and the wireless headset optionally sends a NACK message to the mobile phone. Exemplarily, the wireless headset obtains voice data through a microphone. The wireless headset optionally sends the obtained voice data to the mobile phone.

[0329] In one example, a wireless headset may be based on Fig.21 The Bluetooth data packet shown in the figure sends a NACK message to the mobile phone. Then, the wireless headset Fig.11a Or the Bluetooth data packet shown in 11b, sending voice data to the mobile phone.

[0330] In another example, the wireless headset may send a Bluetooth data packet containing a NACK message and voice data to the mobile phone. Fig.23 FIG. 1 is a schematic diagram showing the format of a Bluetooth data packet. Fig.23 As shown, the Bluetooth data packet includes a Preamble field, an Access Code field, a PHY IND field, and a data field. Exemplarily, the 8 bits of the BW field and the MCS field in the PHY IND field are not all 1. The mobile phone can determine that the Bluetooth data packet contains a data field. The mobile phone can further determine the bandwidth and modulation mode of the data field by reading the BW field and the MCS field. The specific details can be referred to the relevant content above, which will not be repeated here.

[0331] Please continue to refer to Fig.23 , exemplarily, the NESN field is 0, and the SN field is 1. Exemplarily, the mobile phone can determine that the wireless headset does not correctly receive the voice data based on the NESN field and the SN field, and the data carried in the data packet is new data.

[0332] Exemplarily, the data field includes a payload1 field, a CRC1 field, etc. The mobile phone can process the data field to obtain the voice data sent by the wireless headset. The specific processing process can be referred to above and will not be repeated here.

[0333] Exemplarily, if the mobile phone correctly receives all data fields sent by the wireless headset. The mobile phone needs to send an ACK message to the wireless headset. Exemplarily, as described above, the mobile phone has determined that the wireless headset did not correctly receive the Bluetooth data sent last time. The mobile phone simultaneously sends an ACK message and retransmits the Bluetooth data to the wireless headset. Optionally, the mobile phone can send a Bluetooth data packet including the ACK message and the retransmitted Bluetooth data to the wireless headset. This application is not limited.

[0334] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0335] In one example, Fig.24 A schematic block diagram of a device 2400 according to an embodiment of the present application is shown. The device 2400 may include: a processor 2401 and a transceiver / transceiver pin 2402 , and optionally, a memory 2403 .

[0336] The components of the device 2400 are coupled together via a bus 2404, wherein the bus 2404 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, all buses are referred to as bus 2404 in the figure.

[0337] Optionally, the memory 2403 may be used for instructions in the aforementioned method embodiment. The processor 2401 may be used to execute instructions in the memory 2403, and control the receiving pin to receive a signal, and control the sending pin to send a signal.

[0338] The device 2400 may be the electronic device or a chip of the electronic device in the above method embodiment.

[0339] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0340] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the Bluetooth communication method in the above-mentioned embodiment.

[0341] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the Bluetooth communication method in the above-mentioned embodiment.

[0342] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the Bluetooth communication method in the above-mentioned method embodiments.

[0343] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0344] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0345] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0346] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0347] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0348] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of the present application.

[0349] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0350] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0351] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disk (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0352] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0353] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A Bluetooth communication system, characterized in that: The device comprises a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device perform data exchange via a Bluetooth connection; The first electronic device is used for: Sending a first Bluetooth data packet to the second electronic device; the first Bluetooth data packet includes a frame header and a frame body, the frame header of the first Bluetooth data packet includes first bandwidth indication information, and the first bandwidth indication information is used to indicate a first transmission bandwidth of the frame body of the first Bluetooth data packet; The second electronic device is used for: receiving the first Bluetooth data packet; Acquire the first bandwidth indication information in the frame header of the first Bluetooth data packet; receiving a frame body of the first Bluetooth data packet on the first transmission bandwidth according to the first bandwidth indication information; The frame body of the first Bluetooth data packet includes a header field and a data field, the header field includes first power indication information, and the first power indication information is used to indicate the transmission power of the second electronic device; the data field includes Bluetooth data; The frame body of the first Bluetooth data packet includes a plurality of data fields and a plurality of check fields, wherein the plurality of data fields correspond to the plurality of check fields one by one, and each data field includes Bluetooth data.

2. The system according to claim 1, characterized in that The first electronic device is further used for: Sending a second Bluetooth data packet to the second electronic device, the second Bluetooth data packet comprising a frame header and a frame body, the frame header of the second Bluetooth data packet comprising second bandwidth indication information, the second bandwidth indication information being used to indicate a second transmission bandwidth of the frame body of the second Bluetooth data packet; wherein the first transmission bandwidth is different from the second transmission bandwidth; The second electronic device is further used for: receiving the second Bluetooth data packet; Acquire second bandwidth indication information in a frame header of the second Bluetooth data packet; The frame body of the second Bluetooth data packet is received on the second transmission bandwidth according to the second bandwidth indication information.

3. The system according to claim 1, characterized in that The frame header of the first Bluetooth data packet further includes first modulation indication information, where the first modulation indication information is used to indicate a modulation mode of the frame body; The second electronic device is further used for: Acquire the first modulation indication information; The frame body of the first Bluetooth data packet is demodulated according to the modulation mode indicated by the first modulation indication information.

4. The system according to claim 3, characterized in that The first modulation indication information and the first bandwidth indication information are carried in a physical layer indication field of a frame header of the first Bluetooth data packet.

5. The system according to claim 1, characterized in that The second electronic device is further used for: Based on each check field in the plurality of check fields, a corresponding data field is checked.

6. The system according to claim 5, characterized in that The second electronic device is further used for: When at least one of the multiple data fields fails to be checked, a third Bluetooth data packet is sent to the first electronic device; the third Bluetooth data packet includes a frame header and a frame body, the frame header of the third Bluetooth data packet includes third bandwidth indication information and first reception indication information, the third bandwidth indication information is used to indicate a third transmission bandwidth of the frame body of the third Bluetooth data packet; the first reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet; The first electronic device is further used for: Receiving the third Bluetooth data packet; Acquire the third bandwidth indication information and the first receiving indication information in the frame header of the third Bluetooth data packet; receiving a frame body of the third Bluetooth data packet on the third transmission bandwidth according to the third bandwidth indication information; and According to the first reception indication information, a fourth Bluetooth data packet is sent to the second electronic device, wherein the frame body of the fourth Bluetooth data packet includes the multiple data fields and the multiple check fields, and the multiple data fields include the at least one data field that fails the check.

7. The system according to claim 6, characterized in that The second electronic device is further used for: Receiving the fourth Bluetooth data packet; In response to the received fourth Bluetooth data packet, performing a combined verification based on the at least one data field in the fourth Bluetooth data packet and other data fields in the multiple data fields that have been successfully verified; When the combined verification succeeds, the Bluetooth data in the multiple data fields is obtained.

8. The system according to claim 5, characterized in that The second electronic device is further used for: When at least one of the plurality of data fields fails to be checked, a fifth Bluetooth data packet is sent to the first electronic device; the fifth Bluetooth data packet includes a frame header, the frame header of the fifth Bluetooth data packet includes second reception indication information, the second reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet, and the fifth Bluetooth data packet does not include a frame body; The first electronic device is further used for: receiving the fifth Bluetooth data packet; Acquire the second receiving indication information in the frame header of the fifth Bluetooth data packet; According to the second reception indication information, a sixth Bluetooth data packet is sent to the second electronic device, wherein the frame body of the sixth Bluetooth data packet includes the multiple data fields and the multiple check fields, and the multiple data fields include the at least one data field that fails the check.

9. The system according to claim 8, characterized in that The second electronic device is further used for: receiving the sixth Bluetooth data packet; In response to the received sixth Bluetooth data packet, performing a combined verification based on the at least one data field in the sixth Bluetooth data packet and other data fields in the multiple data fields that have been successfully verified; When the combined verification succeeds, the Bluetooth data in the multiple data fields is obtained.

10. The system according to claim 5, characterized in that The second electronic device is further used for: When the verification of the multiple data fields succeeds, a seventh Bluetooth data packet is sent to the first electronic device; the seventh Bluetooth data packet includes a frame header and a frame body, the frame header of the seventh Bluetooth data packet includes fourth bandwidth indication information and third reception indication information, the fourth bandwidth indication information is used to indicate a fourth transmission bandwidth of the frame body of the seventh Bluetooth data packet; the third reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet; The first electronic device is further used for: receiving the seventh Bluetooth data packet; Acquire the fourth bandwidth indication information and the third receiving indication information in the frame header of the seventh Bluetooth data packet; receiving a frame body of the seventh Bluetooth data packet on the fourth transmission bandwidth according to the fourth bandwidth indication information; and It is determined, according to the third reception indication information, that the second electronic device correctly receives the first Bluetooth data packet.

11. The system according to claim 5, characterized in that The second electronic device is further used for: When the verification of the multiple data fields succeeds, an eighth Bluetooth data packet is sent to the first electronic device; the eighth Bluetooth data packet includes a frame header, the frame header of the eighth Bluetooth data packet includes fourth reception indication information, the fourth reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet, and the eighth Bluetooth data packet does not include a frame body; The first electronic device is further used for: receiving the eighth Bluetooth data packet; Acquire the fourth receiving indication information in the frame header of the eighth Bluetooth data packet; It is determined, according to the fourth reception indication information, that the second electronic device has correctly received the first Bluetooth data packet.

12. The system according to claim 1, characterized in that The first electronic device and the second electronic device are preset electronic devices.

13. The system according to any one of claims 1 to 12, characterized in that: The first transmission bandwidth is 1 MHz, 2 MHz, 4 MHz or 5 MHz.

14. A Bluetooth communication method, characterized in that: Applied to a first electronic device, the method includes: Sending a first Bluetooth data packet to a second electronic device; the first Bluetooth data packet includes a frame header and a frame body, the frame header of the first Bluetooth data packet includes first bandwidth indication information, and the first bandwidth indication information is used to indicate a first transmission bandwidth of the frame body of the first Bluetooth data packet; The frame body of the first Bluetooth data packet includes a header field and a data field, the header field includes first power indication information, and the first power indication information is used to indicate the transmission power of the second electronic device; the data field includes Bluetooth data; The frame body of the first Bluetooth data packet includes a plurality of data fields and a plurality of check fields, wherein the plurality of data fields correspond to the plurality of check fields one by one, and each data field includes Bluetooth data.

15. The method according to claim 14, characterized in that The method further comprises: A second Bluetooth data packet is sent to the second electronic device, wherein the second Bluetooth data packet includes a frame header and a frame body, the frame header of the second Bluetooth data packet includes second bandwidth indication information, and the second bandwidth indication information is used to indicate a second transmission bandwidth of the frame body of the second Bluetooth data packet; wherein the first transmission bandwidth is different from the second transmission bandwidth.

16. The method according to claim 14, characterized in that The frame header of the first Bluetooth data packet further includes first modulation indication information, and the first modulation indication information is used to indicate a modulation mode of the frame body.

17. The method according to claim 16, characterized in that The first modulation indication information and the first bandwidth indication information are carried in a physical layer indication field of a frame header of the first Bluetooth data packet.

18. The method according to claim 14, characterized in that The method further comprises: receiving a third Bluetooth data packet sent by the second electronic device; the third Bluetooth data packet is sent when the second electronic device checks the corresponding data field based on each check field in the multiple check fields and at least one of the multiple data fields fails to check; the third Bluetooth data packet includes a frame header and a frame body, the frame header of the third Bluetooth data packet includes third bandwidth indication information and first reception indication information, the third bandwidth indication information is used to indicate a third transmission bandwidth of the frame body of the third Bluetooth data packet; the first reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet; Acquire the third bandwidth indication information and the first receiving indication information in the frame header of the third Bluetooth data packet; receiving a frame body of the third Bluetooth data packet on the third transmission bandwidth according to the third bandwidth indication information; and According to the first reception indication information, a fourth Bluetooth data packet is sent to the second electronic device, wherein the frame body of the fourth Bluetooth data packet includes the multiple data fields and the multiple check fields, and the multiple data fields include the at least one data field that fails the check.

19. The method according to claim 14, characterized in that The method further comprises: receiving a fifth Bluetooth data packet sent by the second electronic device; the fifth Bluetooth data packet is sent when the second electronic device checks the corresponding data field based on each check field in the multiple check fields and at least one data field in the multiple data fields fails to be checked; the fifth Bluetooth data packet includes a frame header, the frame header of the fifth Bluetooth data packet includes second reception indication information, the second reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet, and the fifth Bluetooth data packet does not include a frame body; Acquire the second receiving indication information in the frame header of the fifth Bluetooth data packet; According to the second reception indication information, a sixth Bluetooth data packet is sent to the second electronic device, wherein the frame body of the sixth Bluetooth data packet includes the multiple data fields and the multiple check fields, and the multiple data fields include the at least one data field that fails the check.

20. The method according to claim 14, characterized in that The method further comprises: receiving a seventh Bluetooth data packet sent by the second electronic device; the seventh Bluetooth data packet is sent when the second electronic device verifies the corresponding data field based on each check field in the multiple check fields and the multiple data fields are successfully checked; the seventh Bluetooth data packet includes a frame header and a frame body, the frame header of the seventh Bluetooth data packet includes fourth bandwidth indication information and third reception indication information, the fourth bandwidth indication information is used to indicate a fourth transmission bandwidth of the frame body of the seventh Bluetooth data packet; the third reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet; Acquire the fourth bandwidth indication information and the third receiving indication information in the frame header of the seventh Bluetooth data packet; receiving a frame body of the seventh Bluetooth data packet on the fourth transmission bandwidth according to the fourth bandwidth indication information; and It is determined, according to the third reception indication information, that the second electronic device correctly receives the first Bluetooth data packet.

21. The method according to claim 14, characterized in that The method further comprises: receiving an eighth Bluetooth data packet sent by the second electronic device; the eighth Bluetooth data packet is sent when the second electronic device verifies the corresponding data field based on each check field in the multiple check fields and the multiple data fields are successfully checked; the eighth Bluetooth data packet includes a frame header, the frame header of the eighth Bluetooth data packet includes fourth reception indication information, the fourth reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet, and the eighth Bluetooth data packet does not include a frame body; Acquire the fourth receiving indication information in the frame header of the eighth Bluetooth data packet; It is determined, according to the fourth reception indication information, that the second electronic device has correctly received the first Bluetooth data packet.

22. The method according to claim 14, characterized in that The first electronic device and the second electronic device are preset electronic devices.

23. The method according to any one of claims 14 to 22, characterized in that The first transmission bandwidth is 1 MHz, 2 MHz, 4 MHz or 5 MHz.

24. A Bluetooth communication method, characterized in that: Applied to a second electronic device, the method includes: Receive a first Bluetooth data packet sent by a first electronic device; wherein the first Bluetooth data packet includes a frame header and a frame body, the frame header of the first Bluetooth data packet includes first bandwidth indication information, and the first bandwidth indication information is used to indicate a first transmission bandwidth of the frame body of the first Bluetooth data packet; Acquire the first bandwidth indication information in the frame header of the first Bluetooth data packet; receiving a frame body of the first Bluetooth data packet on the first transmission bandwidth according to the first bandwidth indication information; The frame body of the first Bluetooth data packet includes a header field and a data field, the header field includes first power indication information, and the first power indication information is used to indicate the transmission power of the second electronic device; the data field includes Bluetooth data; The frame body of the first Bluetooth data packet includes a plurality of data fields and a plurality of check fields, wherein the plurality of data fields correspond to the plurality of check fields one by one, and each data field includes Bluetooth data.

25. The method according to claim 24, characterized in that The method further comprises: receiving a second Bluetooth data packet sent by the first electronic device; the second Bluetooth data packet includes a frame header and a frame body, the frame header of the second Bluetooth data packet includes second bandwidth indication information, and the second bandwidth indication information is used to indicate a second transmission bandwidth of the frame body of the second Bluetooth data packet; wherein the first transmission bandwidth is different from the second transmission bandwidth; Acquire second bandwidth indication information in a frame header of the second Bluetooth data packet; The frame body of the second Bluetooth data packet is received on the second transmission bandwidth according to the second bandwidth indication information.

26. The method according to claim 24, characterized in that The frame header of the first Bluetooth data packet further includes first modulation indication information, and the first modulation indication information is used to indicate a modulation mode of the frame body; the method further includes: Acquire the first modulation indication information; The frame body of the first Bluetooth data packet is demodulated according to the modulation mode indicated by the first modulation indication information.

27. The method according to claim 26, characterized in that The first modulation indication information and the first bandwidth indication information are carried in a physical layer indication field of a frame header of the first Bluetooth data packet.

28. The method according to claim 24, characterized in that The method further comprises: Based on each check field in the plurality of check fields, a corresponding data field is checked.

29. The method according to claim 28, characterized in that The method further comprises: When at least one of the multiple data fields fails to be checked, a third Bluetooth data packet is sent to the first electronic device; the third Bluetooth data packet includes a frame header and a frame body, the frame header of the third Bluetooth data packet includes third bandwidth indication information and first reception indication information, the third bandwidth indication information is used to indicate the third transmission bandwidth of the frame body of the third Bluetooth data packet; the first reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet.

30. The method according to claim 29, characterized in that The method further comprises: receiving a fourth Bluetooth data packet sent by the first electronic device; the frame body of the fourth Bluetooth data packet includes the multiple data fields and the multiple check fields, and the multiple data fields include the at least one data field that fails the check; Performing a combined check based on the at least one data field in the fourth Bluetooth data packet and other data fields in the multiple data fields that have successfully been checked; When the combined verification succeeds, the Bluetooth data in the multiple data fields is obtained.

31. The method according to claim 28, characterized in that The method further comprises: When at least one of the multiple data fields fails to be checked, a fifth Bluetooth data packet is sent to the first electronic device; the fifth Bluetooth data packet includes a frame header, the frame header of the fifth Bluetooth data packet includes second reception indication information, the second reception indication information is used to indicate that the second electronic device has not correctly received the first Bluetooth data packet, and the fifth Bluetooth data packet does not include a frame body.

32. The method according to claim 31, characterized in that The method further comprises: receiving a sixth Bluetooth data packet sent by the first electronic device; the frame body of the sixth Bluetooth data packet includes the multiple data fields and the multiple check fields, and the multiple data fields include the at least one data field that fails the check; Performing a combined check based on the at least one data field in the sixth Bluetooth data packet and other data fields in the multiple data fields that have successfully been checked; When the combined verification succeeds, the Bluetooth data in the multiple data fields is obtained.

33. The method according to claim 28, characterized in that The method further comprises: When the multiple data fields are successfully checked, a seventh Bluetooth data packet is sent to the first electronic device; the seventh Bluetooth data packet includes a frame header and a frame body, the frame header of the seventh Bluetooth data packet includes fourth bandwidth indication information and third reception indication information, the fourth bandwidth indication information is used to indicate the fourth transmission bandwidth of the frame body of the seventh Bluetooth data packet; the third reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet.

34. The method according to claim 28, characterized in that When the multiple data fields are successfully checked, an eighth Bluetooth data packet is sent to the first electronic device; the eighth Bluetooth data packet includes a frame header, the frame header of the eighth Bluetooth data packet includes fourth reception indication information, the fourth reception indication information is used to indicate that the second electronic device correctly receives the first Bluetooth data packet, and the eighth Bluetooth data packet does not include a frame body.

35. The method according to claim 24, characterized in that The first electronic device and the second electronic device are preset electronic devices.

36. The method according to any one of claims 24 to 35, characterized in that The first transmission bandwidth is 1 MHz, 2 MHz, 4 MHz or 5 MHz.

37. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes any one of the Bluetooth communication methods executed by the first electronic device in claims 14 to 23.

38. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes any one of the Bluetooth communication methods executed by the second electronic device in claims 24 to 36.

Citation Information

Patent Citations

  • Apparatus, system and method of signaling bandwidth information of channel bandwidth

    CN109565524A

  • Non-legacy preamble for wireless local area networks

    US20120327871A1