Device upgrading method, device, system, and storage medium

By using a broadcast synchronous stream for OTA upgrades in the Bluetooth system and utilizing link parameters for directional transmission and retransmission, the cumbersome problem of upgrading multiple Bluetooth headsets is solved, achieving efficient and stable multi-device upgrades.

CN116647830BActive Publication Date: 2026-04-21SHENZHEN BLUETRUM TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN BLUETRUM TECH CO LTD
Filing Date
2023-06-14
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

The OTA upgrade process for Bluetooth headphones is cumbersome, especially when upgrading multiple headphones, which requires connecting and sending upgrade packages one by one, resulting in low efficiency and instability.

Method used

The upgrade package is transmitted to multiple Bluetooth devices using a broadcast synchronization stream. Through a broadcast synchronization group consisting of the master Bluetooth device and the slave Bluetooth devices, the link parameters are used for directional transmission and retransmission to ensure that multiple slave Bluetooth devices are upgraded synchronously.

Benefits of technology

It enables simultaneous upgrades of multiple Bluetooth devices, improving upgrade efficiency and stability, simplifying the upgrade process, reducing transmission latency, and increasing the success rate of data packet reception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116647830B_ABST
    Figure CN116647830B_ABST
Patent Text Reader

Abstract

This application provides a device upgrade method, apparatus, device, system, and storage medium, applied to a master Bluetooth device in a Bluetooth system. The Bluetooth system includes the master Bluetooth device and a broadcast synchronization group composed of multiple slave Bluetooth devices. The method includes: acquiring a target broadcast synchronization stream data packet, wherein the target broadcast synchronization stream data packet is obtained by data packetization and encapsulation of an online upgrade packet; sending the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group to send the online upgrade packet to the multiple slave Bluetooth devices, wherein the online upgrade packet is used by the multiple slave Bluetooth devices to upgrade the multiple slave Bluetooth devices. This technical solution enables multiple slave Bluetooth devices to simultaneously complete online upgrades, simplifies the upgrade process for multiple slave Bluetooth devices, and improves the efficiency of slave Bluetooth device upgrades.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment upgrades, and in particular to equipment upgrade methods, apparatus, equipment, systems and storage media. Background Technology

[0002] Over-the-air (OTA) upgrades refer to upgrades to a device's firmware, system, or applications based on wireless communication technology. The device to be upgraded downloads the upgrade package and completes the upgrade via a wireless environment.

[0003] Currently, OTA upgrades for Bluetooth headsets can be completed via Bluetooth connection. This requires the terminal to download the upgrade package, connect to one Bluetooth headset, and then send the upgrade package to the other Bluetooth headset to complete the upgrade. After one Bluetooth headset is upgraded, the terminal then connects to another Bluetooth headset and sends the upgrade package to complete the upgrade of the other Bluetooth headset. The upgrade process is rather cumbersome. Summary of the Invention

[0004] This application provides a method, apparatus, device, system, and storage medium for upgrading devices, in order to solve the technical problem of the cumbersome process of upgrading multiple Bluetooth headsets.

[0005] Firstly, a device upgrade method is provided, applied to a master Bluetooth device in a Bluetooth system, the Bluetooth system including the master Bluetooth device and a broadcast synchronization group composed of multiple slave Bluetooth devices; the method includes:

[0006] Obtain the target broadcast synchronization stream data packet, which is obtained by data packetization and encapsulation of the online upgrade package;

[0007] The target broadcast synchronization stream data packet is sent to the slave Bluetooth devices in the broadcast synchronization group to send the online upgrade package to the plurality of slave Bluetooth devices, the online upgrade package being used by the plurality of slave Bluetooth devices to upgrade the plurality of slave Bluetooth devices.

[0008] In this technical solution, the master Bluetooth device acquires the target broadcast synchronization stream data packet, which is obtained by data packetization and encapsulation of the online upgrade packet. Then, it sends the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group to send the online upgrade packet to multiple slave Bluetooth devices. This is equivalent to sending the online upgrade packet to multiple slave Bluetooth devices that need to be upgraded by transmitting the broadcast synchronization stream, which enables multiple slave Bluetooth devices to complete the online upgrade synchronously. The upgrade process for multiple slave Bluetooth devices is simple and can improve the efficiency of slave Bluetooth device upgrades.

[0009] In conjunction with the first aspect, in one possible implementation, before sending the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group, the method further includes: sending broadcast synchronization group information to the slave Bluetooth devices in the broadcast synchronization group. The broadcast synchronization group information includes link parameters of the broadcast synchronization stream link used by the master Bluetooth device to send the target broadcast synchronization stream data packet. This broadcast synchronization group information is used by the plurality of slave Bluetooth devices to receive the target broadcast synchronization stream data packet. By pre-sending the link parameters of the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group, it is convenient for the slave Bluetooth devices to receive online upgrade packets in a targeted manner, thereby improving the stability and reliability of online upgrade packet transmission.

[0010] In conjunction with the first aspect, in one possible implementation, the link parameters include a channel frequency hopping table for the master Bluetooth device to send the target broadcast synchronization stream data packet; sending the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group includes: sending the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group on the channel corresponding to the channel frequency hopping table.

[0011] In conjunction with the first aspect, in one possible implementation, the link parameters include time information for the master Bluetooth device to send the target broadcast synchronization stream data packet; sending the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group includes: sending the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group at the transmission event corresponding to the time information.

[0012] In conjunction with the first aspect, in one possible implementation, the link parameters include the number of bursts; sending the target broadcast synchronization stream data packets to the slave Bluetooth devices in the broadcast synchronization group includes: according to the number of bursts, in the current transmission event, sending a first group of data packets to the slave Bluetooth devices in the broadcast synchronization group, the first group of data packets including at least one ordered target broadcast synchronization stream data packet, the number of target broadcast synchronization stream data packets in the first group of data packets being equal to the number of bursts. Transmitting multiple data packets in a single transmission event can reduce the transmission latency of online upgrade packets and improve the transmission efficiency of online upgrade packets.

[0013] In conjunction with the first aspect, in one possible implementation, the link parameters further include an offset for the pre-transmitted data packet; the step of sending the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group further includes: according to the offset, in the current transmission event, sending a second set of data packets to the slave Bluetooth device in the broadcast synchronization group, the second set of data packets including at least one ordered target broadcast synchronization stream data packet, the transmission order of the target broadcast synchronization stream data packets in the second set of data packets being after the transmission order of the target broadcast synchronization stream data packets in the first set of data packets, and the transmission order difference between the first target broadcast synchronization stream data packet in the second set of data packets and the first target broadcast synchronization stream data packet in the first set of data packets being equal to the offset. By transmitting the target broadcast synchronization stream data packets to be transmitted in future transmission events in the current transmission event, interference can be avoided, the success rate of data packet reception can be improved, and thus the success rate of online upgrade packet transmission can be improved.

[0014] In conjunction with the first aspect, in one possible implementation, the link parameters further include the number of sub-events included in the transmission event; after sending the first group of data packets to the slave Bluetooth devices in the broadcast synchronization group in the current transmission event according to the burst count, the method further includes: after the current transmission event ends, detecting a receive response sent by a slave Bluetooth device in the broadcast synchronization group, the receive response indicating that one or more target broadcast synchronization stream data packets in the first group of data packets were not successfully received; upon receiving the receive response sent by a target slave Bluetooth device in the broadcast synchronization group, updating the offset in the link parameters according to the receive response, and updating the number of sub-events in the link parameters, wherein the target slave Bluetooth device is any slave Bluetooth device in the broadcast synchronization group; sending updated broadcast synchronization group information to the slave Bluetooth devices in the broadcast synchronization group; and, according to the updated offset, sending the target broadcast synchronization stream data packet corresponding to the receive response to the slave Bluetooth device in the broadcast synchronization group in the next transmission event of the current transmission event. When a data packet fails to be received, updating the offset in the link parameters and retransmitting the failed data packet in the next transmission event can ensure that the data packet can be successfully received. By modifying the number of sub-events in the link parameters, the number of times the data packets to be transmitted in the next transmission event can be sent can be maintained.

[0015] In conjunction with the first aspect, in one possible implementation, the link parameters further include an immediate repetition count; the number of times the first group of data packets is sent in the current transmission event is equal to the immediate repetition count. Transmitting the same data packets multiple times in a transmission event can increase the probability of successful data transmission.

[0016] Secondly, a device upgrade method is provided, applied to a target slave Bluetooth device in a Bluetooth system, the Bluetooth system including a master Bluetooth device and a broadcast synchronization group composed of multiple slave Bluetooth devices, the target slave Bluetooth device being any slave Bluetooth device in the broadcast synchronization group; the method includes:

[0017] The system receives a target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain an online upgrade package. The target broadcast synchronization stream data packet is obtained by the master Bluetooth device by data packetization and encapsulation of the online upgrade package.

[0018] The target device is upgraded using the online upgrade package.

[0019] In this technical solution, the slave Bluetooth device receives the target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain the online upgrade packet, and then uses the online upgrade packet to upgrade the slave Bluetooth device. This is equivalent to sending the online upgrade packet to multiple slave Bluetooth devices that need to be upgraded by transmitting the broadcast synchronization stream, which enables multiple slave Bluetooth devices to complete the online upgrade simultaneously. The upgrade process for multiple slave Bluetooth devices is simple and can improve the efficiency of slave Bluetooth device upgrades.

[0020] In conjunction with the second aspect, in one possible implementation, before receiving the target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain the online upgrade packet, the method further includes: receiving broadcast synchronization group information sent by the master Bluetooth device, wherein the broadcast synchronization group information includes the link parameters of the broadcast synchronization stream link used by the master Bluetooth device to send the target broadcast synchronization stream data packet.

[0021] In conjunction with the second aspect, in one possible implementation, the link parameters include a channel frequency hopping table for the master Bluetooth device to send the target broadcast synchronization stream data packet; receiving the target broadcast synchronization stream data packet sent by the master Bluetooth device includes: receiving the target broadcast synchronization stream data packet sent by the master Bluetooth device on the channel corresponding to the channel frequency hopping table.

[0022] In conjunction with the second aspect, in one possible implementation, the link parameters include time information for the master Bluetooth device to send the target broadcast synchronization stream data packet; receiving the target broadcast synchronization stream data packet sent by the master Bluetooth device includes: receiving the target broadcast synchronization stream data packet sent by the master Bluetooth device at the transmission event corresponding to the time information.

[0023] In conjunction with the second aspect, in one possible implementation, the link parameters include the number of bursts; receiving the target broadcast synchronization stream data packets sent by the master Bluetooth device includes: according to the number of bursts, in the current transmission event, receiving a first group of data packets sent by the master Bluetooth device, the first group of data packets including at least one ordered target broadcast synchronization stream data packet, the number of target broadcast synchronization stream data packets in the first group of data packets being equal to the number of bursts.

[0024] In conjunction with the second aspect, in one possible implementation, the link parameters further include an offset of the pre-transmitted data packet; the step of receiving the target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain the online upgrade packet further includes: according to the offset, in the current transmission event, receiving a second set of data packets sent by the master Bluetooth device, the second set of data packets including at least one ordered target broadcast synchronization stream data packet, the transmission order of the target broadcast synchronization stream data packets in the second set of data packets being after the transmission order of the target broadcast synchronization stream data packets in the first set of data packets, and the transmission order difference between the first target broadcast synchronization stream data packet in the second set of data packets and the first target broadcast synchronization stream data packet in the first set of data packets being equal to the offset.

[0025] In conjunction with the second aspect, in one possible implementation, the link parameters further include the number of sub-events contained in the transmission event; after receiving the first group of data packets sent by the master Bluetooth device in the current transmission event based on the burst count, the method further includes: after the current transmission event ends, if the first data packet is not successfully received, sending a reception response corresponding to the first data packet to the master Bluetooth device, wherein the first data packet is any one of the target broadcast synchronization stream data packets in the first group of data packets, and the reception response is used to indicate that the first data packet was not successfully received; receiving updated broadcast synchronization group information sent by the master Bluetooth device, wherein the updated broadcast synchronization group information is obtained by the master Bluetooth device updating the number of sub-events and the offset in the link parameters based on the reception response; and receiving the first data packet sent by the master Bluetooth device in the next transmission event of the current transmission event based on the updated offset.

[0026] In conjunction with the second aspect, in one possible implementation, the link parameters further include an immediate repeat count; the number of times the first group of data packets is sent in the current transmission event is equal to the immediate repeat count.

[0027] Thirdly, a device upgrade apparatus is provided, applied to a master Bluetooth device in a Bluetooth system, the Bluetooth system including the master Bluetooth device and a broadcast synchronization group composed of multiple slave Bluetooth devices; the method includes:

[0028] The acquisition module is used to acquire target broadcast synchronization stream data packets, which are obtained by data packetization and encapsulation of online upgrade packages;

[0029] The sending module is configured to send the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group, so as to send the online upgrade package to the plurality of slave Bluetooth devices, wherein the online upgrade package is used by the plurality of slave Bluetooth devices to upgrade the plurality of slave Bluetooth devices.

[0030] Fourthly, a device upgrade apparatus is provided, applied to a target slave Bluetooth device in a Bluetooth system, the Bluetooth system including a master Bluetooth device and a broadcast synchronization group composed of multiple slave Bluetooth devices, the target slave Bluetooth device being any slave Bluetooth device in the broadcast synchronization group; the apparatus includes:

[0031] The receiving module is used to receive the target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain the online upgrade package. The target broadcast synchronization stream data packet is obtained by the master Bluetooth device by data packetization and encapsulation of the online upgrade package.

[0032] An upgrade module is used to upgrade the target Bluetooth device using the online upgrade package.

[0033] Fifthly, a Bluetooth device is provided, including a memory, a transceiver, and one or more processors, wherein the memory and the transceiver are connected to the one or more processors, the transceiver is used to send or receive data, and the one or more processors are used to execute one or more computer programs stored in the memory, wherein when the one or more processors execute the one or more computer programs, the Bluetooth device enables the device upgrade method of the first or second aspect described above.

[0034] In a sixth aspect, a computer-readable storage medium is provided, which stores a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the device upgrade method of the first or second aspect.

[0035] In a seventh aspect, a Bluetooth system is provided, comprising a master Bluetooth device and a broadcast synchronization group consisting of a plurality of slave Bluetooth devices, wherein the master Bluetooth device is configured to perform the device upgrade method of the first aspect described above, and the slave Bluetooth devices are configured to perform the device upgrade method of the second aspect described above.

[0036] This application can achieve the following technical effects: by transmitting a broadcast synchronization stream, an online upgrade package is sent to multiple slave Bluetooth devices that need to be upgraded, enabling multiple slave Bluetooth devices to complete the online upgrade simultaneously. The upgrade process for multiple slave Bluetooth devices is simple and can improve the efficiency of upgrading slave Bluetooth devices. Attached Figure Description

[0037] Figure 1 A schematic diagram of a Bluetooth system provided in an embodiment of this application;

[0038] Figure 2 A schematic flowchart illustrating a device upgrade method provided in an embodiment of this application;

[0039] Figure 3 A schematic diagram of BIG information provided in an embodiment of this application;

[0040] Figure 4 This is a schematic diagram of the structure of a device upgrade apparatus provided in an embodiment of this application;

[0041] Figure 5 This is a schematic diagram of another device upgrade apparatus provided in an embodiment of this application;

[0042] Figure 6 This is a schematic diagram of the structure of a Bluetooth device provided in an embodiment of this application. Detailed Implementation

[0043] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0044] The technical solution of this application is applicable to Bluetooth communication scenarios, especially to OTA upgrades based on Bluetooth communication technology. OTA upgrades based on Bluetooth communication technology are generally performed via Bluetooth connection upgrades or traditional Bluetooth broadcast upgrades. Upgrading via Bluetooth connection refers to the process where, for multiple Bluetooth devices to be upgraded, the upgrade device sequentially establishes Bluetooth connections with each device and then sends an upgrade package to the devices to complete the upgrade. For example, if the multiple devices to be upgraded are two earphones, earphone 1 and earphone 2, the terminal first establishes a Bluetooth connection with earphone 1 and sends an upgrade package to earphone 1. After earphone 1 completes the upgrade, the terminal then establishes a Bluetooth connection with earphone 2 and sends an upgrade package to earphone 2, thus completing the upgrade of earphone 2. Upgrading via traditional Bluetooth broadcast refers to sending upgrade packages to multiple Bluetooth devices to complete the upgrade using the traditional Bluetooth broadcast upgrade package method.

[0045] Of the two OTA upgrade solutions using Bluetooth communication technology, the Bluetooth connection upgrade process is more cumbersome; while the traditional Bluetooth broadcast upgrade is susceptible to external environmental interference, resulting in unstable transmission, uncertainty, and low reliability.

[0046] In view of this, this application proposes a new OTA upgrade scheme based on Bluetooth communication technology. It uses an isochronous broadcast mechanism to form multiple Bluetooth devices requiring upgrades into a broadcast isochronous group (BIG). Then, it transmits upgrade packets to the multiple devices in the BIG via a broadcast isochronous stream (BIS) to complete the upgrade. Multiple Bluetooth devices can synchronously receive the BIS, thus completing the upgrade synchronously and improving upgrade efficiency. Furthermore, the link parameters of the BIS link are broadcast periodically. Multiple Bluetooth devices requiring upgrades can determine the time and channel for upgrade packet transmission based on the periodically broadcast link parameters, enabling them to receive upgrade packets in a targeted manner according to the link parameters. Compared to traditional Bluetooth broadcasting, this method is more stable and efficient.

[0047] The technical solution of this application can be applied to a Bluetooth system consisting of a master Bluetooth device and a slave Bluetooth device. The master Bluetooth device refers to a Bluetooth device that actively searches for and establishes connections in a Bluetooth communication scenario. The master Bluetooth device can search for surrounding Bluetooth devices and select the desired Bluetooth device for pairing and connection. The slave Bluetooth device refers to a device waiting to be searched and connected by the master Bluetooth device in a Bluetooth communication scenario. Specifically, the master Bluetooth device can be a mobile phone, laptop, etc.; the slave Bluetooth device can be headphones, smart speakers, etc., and this application does not impose any limitations. It should be understood that a Bluetooth device can both initiate a communication connection as a master device and receive a communication connection as a slave device; a Bluetooth device can also simultaneously act as both a master and a slave device.

[0048] like Figure 1 As shown, the Bluetooth system 10 may include a master Bluetooth device 101 and a BIG 102. The BIG includes multiple slave Bluetooth devices (E1, E2, E3, ..., En), where n is the number of slave Bluetooth devices in the BIG. Theoretically, n can be any integer greater than 0.

[0049] In a BIG, slave Bluetooth devices and the master Bluetooth device share a BIS link. The BIS link is a one-way broadcast link, allowing the master Bluetooth device to send BIS signals to each slave Bluetooth device within the BIG. BIS signals are unidirectional and broadcast by the master Bluetooth device. BIS signals belonging to the same BIG are time-synchronized and share the same timing reference data. The master Bluetooth device can periodically broadcast BIG information (BIGinfo); slave Bluetooth devices can periodically listen on the broadcast channel to acquire BIG information and join the BIG, becoming slave Bluetooth devices within it. Slave Bluetooth devices can also periodically listen on the broadcast channel to acquire BIG information and determine the time and channel for the master Bluetooth device to send BIS signals.

[0050] Based on the above Figure 1 The Bluetooth system shown can implement the technical solution of this application. The technical solution of this application is described in detail below.

[0051] See Figure 2 , Figure 2 This is a flowchart illustrating a device upgrade method provided in an embodiment of this application. This method can be applied to a Bluetooth system, which can, as follows: Figure 1 As shown. Figure 2 As shown, the method includes the following steps:

[0052] S201, The main Bluetooth device obtains the target broadcast synchronization stream data packet, which is obtained by splitting and encapsulating the online upgrade package.

[0053] Here, broadcast synchronization stream data packets refer to broadcast data packets transmitted on the BIS link, and target synchronization stream data packets refer to the synchronization stream data packets corresponding to the online upgrade package. The online upgrade package refers to an upgrade package used to upgrade slave Bluetooth devices in the BIG. Specifically, an online upgrade package can be an upgrade package for upgrading the firmware of slave Bluetooth devices in the BIG, an upgrade package for upgrading the system version of slave Bluetooth devices in the BIG, an upgrade package for patching application faults in slave Bluetooth devices in the BIG, and so on, not limited to the examples here. It should be understood that the slave Bluetooth devices in the BIG here should be the slave Bluetooth devices currently requiring upgrades, and can be configured based on actual upgrade needs.

[0054] Specifically, the master Bluetooth device can segment the online upgrade package into one or more data segments conforming to the Bluetooth communication protocol, based on the data volume of the online upgrade package, thus achieving data packetization of the online upgrade package. Then, according to the Bluetooth communication protocol, the segmented data segments are encapsulated into Protocol Data Units (PDUs) that can be transmitted on the Bluetooth channel, thereby obtaining one or more PDUs corresponding to the data segments. The encapsulated PDUs can be understood as target broadcast synchronization stream data packets. Each PDU has a transmission order, and the transmission order of each PDU is related to the order of the data segments carried in the PDU within the online upgrade package.

[0055] S202, the master Bluetooth device sends a target broadcast synchronization stream data packet to the slave Bluetooth device in the BIG, and the slave Bluetooth device in the BIG receives the target broadcast synchronization stream data packet.

[0056] Here, the master Bluetooth device can send target broadcast synchronization stream data packets to the slave Bluetooth devices in the BIG based on the BIG information. The BIG information includes the link parameters of the BIS link used by the master Bluetooth device to send the target broadcast synchronization stream data packets. All link parameters included in the BIG information can be as follows: Figure 3 As shown. In the BIG, the slave Bluetooth device receives the target broadcast synchronization stream data packet based on the link parameters contained in the BIG information.

[0057] Before sending the target broadcast synchronization stream data packet to the slave Bluetooth devices in the BIG, the master Bluetooth device also sends BIG information to the slave Bluetooth devices in the broadcast synchronization group. Before receiving the target broadcast synchronization stream data packet, the slave Bluetooth devices in the broadcast synchronization group also receive the BIG information sent by the master Bluetooth device. The master Bluetooth device can periodically send broadcast data packets carrying BIG information. Slave Bluetooth devices can periodically listen for these broadcast data packets containing BIG information, thereby receiving the BIG information and, based on the BIG information, receiving the target broadcast synchronization stream data packet. By pre-sending the link parameters of the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group, it is possible to facilitate the targeted reception of online upgrade packets by the slave Bluetooth devices, thus improving the stability and reliability of online upgrade packet transmission.

[0058] Since the different link parameters in the BIG information have different uses, the following describes the uses of various link parameters in the transmission process of the target broadcast synchronization stream data packet. The transmission process of the target broadcast synchronization stream data packet is the transmission process of the online upgrade packet. When all target broadcast synchronization stream data packets are successfully transmitted, the transmission of the online upgrade packet is completed, and the online upgrade packet is successfully received from the Bluetooth device in the BIG.

[0059] (1) Link parameters include the channel hopping table (ChM) for the main Bluetooth device to send target broadcast synchronization stream data packets.

[0060] During the transmission of the target broadcast synchronization stream data packet, the master Bluetooth device sends the target broadcast synchronization stream data packet to the slave Bluetooth device in the BIG on the channel corresponding to the channel hopping table; the slave Bluetooth device in the BIG listens for the target broadcast synchronization stream data packet on the channel corresponding to the channel hopping table, thereby receiving the target broadcast synchronization stream data packet.

[0061] Since the channel hopping table can correspond to any of the 37 secondary broadcast channels, compared to traditional Bluetooth broadcasting which only broadcasts on the primary broadcast channels (37, 38, and 39), transmitting the target broadcast synchronization stream data packet on the channel corresponding to the channel hopping table increases the frequency points for transmitting the target broadcast synchronization stream data packet, thereby enhancing the stability and reliability of online upgrade packet transmission.

[0062] (2) The link parameters include the time information of the master Bluetooth device sending the target broadcast synchronization stream data packet. The time information here includes the offset (BIG_Offset) of the master Bluetooth device sending the target broadcast synchronization stream data packet and the ISO interval (ISO_Interval) of the master Bluetooth device sending the BIG data packet. Based on BIG_Offset, the time when the master Bluetooth device first sends the target broadcast synchronization stream data packet after sending the BIG information can be determined. Based on ISO_Interval, the event period of the master Bluetooth device sending the target broadcast synchronization stream data packet can be determined, and then the time of sending the target broadcast synchronization stream data packet in the subsequent time can be determined.

[0063] During the transmission of the target broadcast synchronization stream data packet, the master Bluetooth device sends the target broadcast synchronization stream data packet to the slave Bluetooth device in the BIG during the transmission event corresponding to the time information; the slave Bluetooth device in the BIG listens for the target broadcast synchronization stream data packet during the transmission event corresponding to the time information, thereby receiving the target broadcast synchronization stream data packet.

[0064] Compared to traditional Bluetooth broadcasting, Bluetooth devices can receive target broadcast synchronization stream data packets by listening to them at specific times, without having to maintain a constant scanning state, which makes the reception of online upgrade packets more targeted.

[0065] (3) Link parameters include the burst number (BN). In BIG / BIS communication, target broadcast synchronization stream packets are transmitted in BIS events. One or more target broadcast synchronization stream packets can be transmitted in a BIS event. BN refers to the number of new target broadcast synchronization stream packets contained in a BIS event.

[0066] During the transmission of target broadcast synchronization stream data packets, the master Bluetooth device can determine the number of new target broadcast synchronization stream data packets to be transmitted in the current transmission event based on the batch number (BN). Then, in the current transmission event, it sends the first set of data packets to the slave Bluetooth devices in the broadcast synchronization group. The number of target broadcast synchronization stream data packets in the first set of data packets is equal to the burst number. The target broadcast synchronization stream data packets in the first set of data packets are ordered, and they are the target broadcast synchronization stream data packets to be transmitted currently. Their transmission order corresponds to the current transmission event. The slave Bluetooth device can determine the number of new target broadcast synchronization stream data packets transmitted by the master Bluetooth device in the current transmission event based on the batch number (BN), and listen for whether it has received BN new target broadcast synchronization stream data packets, thus completing the reception of the first set of data packets.

[0067] Compared to traditional Bluetooth broadcasting which sends one data packet at a time, this application transmits multiple target broadcast synchronization stream data packets in a single transmission event, which can reduce the transmission latency of online upgrade packets and improve the transmission efficiency of online upgrade packets.

[0068] (4) Link parameters include the immediate repetition count (IRC), which refers to the number of times the same data packet is transmitted repeatedly in a BIS event.

[0069] During the transmission of the target broadcast synchronization stream data packets, in the current transmission event, the master Bluetooth device can send the first group of data packets multiple times to the slave Bluetooth devices in the broadcast synchronization group according to the IRC. The number of times the master Bluetooth device sends the first group of data packets is equal to the number of IRC calls. The slave Bluetooth devices can listen for the first group of data packets multiple times according to the IRC.

[0070] Compared to traditional Bluetooth broadcasting, which sends one data packet at a time and retransmits the data packet only when the transmission fails, this application transmits the same target broadcast synchronization stream data packet multiple times in a single transmission event, which can increase the probability of successful transmission of the target broadcast synchronization stream data packet and improve the stability of online upgrade packet transmission.

[0071] (5) Link parameters include the pre-transmission offset (PTO), which refers to the data packet to be transmitted in a future transmission event that needs to be transmitted in the current transmission event.

[0072] During the transmission of target broadcast synchronization stream data packets, the master Bluetooth device can determine, based on the PTO, which target broadcast synchronization stream data packets need to be transmitted in subsequent transmission events during the current transmission event. Then, in the current transmission event, it sends a second set of data packets to the slave Bluetooth devices in the broadcast synchronization group. The transmission order of the target broadcast synchronization stream data packets in the second set follows the transmission order of the target broadcast synchronization stream data packets in the first set. Furthermore, the transmission order difference between the first target broadcast synchronization stream data packet in the second set and the first target broadcast synchronization stream data packet in the first set is equal to the PTO, and the target broadcast synchronization stream data packets in the second set are ordered. The slave Bluetooth device can determine, based on the PTO, which target broadcast synchronization stream data packets the master Bluetooth device needs to transmit in new subsequent transmission events during the current transmission event, and listen for whether these target broadcast synchronization stream data packets have been received, thus completing the reception of the second set of data packets.

[0073] By transmitting target broadcast synchronization stream data packets that need to be transmitted in future transmission events during the current transmission event, interference can be avoided, the success rate of data packet reception can be improved, and thus the success rate of online upgrade packet transmission can be improved.

[0074] (6) Link parameters include the number of subevents (NSE) contained in the transmission event, where NSE is an integer multiple of BN. A subevent is the smallest unit of data transmission. In each subevent, the master Bluetooth device can send a target broadcast synchronization stream data packet to the slave Bluetooth device.

[0075] During the transmission of the target broadcast synchronization stream data packet, after the current transmission event ends, the slave Bluetooth device in the BIG can determine whether it has successfully received the target broadcast synchronization stream data packet in the first group of data packets; if the first data packet is not successfully received, the slave Bluetooth device can send a receive acknowledgment (NACK) corresponding to the first data packet to the master Bluetooth device. The receive acknowledgment corresponding to the first data packet is used to indicate that the first data packet was not successfully received. The first data packet is any one of the target broadcast synchronization stream data packets in the first group of data packets.

[0076] After the current transmission event ends, the master Bluetooth device can detect the receive acknowledgment sent by the slave Bluetooth device in the BIG. Upon receiving the receive acknowledgment from the slave Bluetooth device in the BIG, it updates the PTO in the link parameters and the NSE in the link parameters based on the receive acknowledgment, and then sends the updated broadcast synchronization group information to the slave Bluetooth device in the BIG. Based on the updated PTO, in the next transmission event of the current transmission event, it sends the target broadcast synchronization stream data packet corresponding to the receive acknowledgment to the slave Bluetooth device in the broadcast synchronization group. The slave Bluetooth device in the BIG can receive the updated BIG information sent by the master Bluetooth device, and based on the updated offset, in the next transmission event of the current transmission event, it receives the target broadcast synchronization stream data packet sent by the master Bluetooth device.

[0077] For example, if the master Bluetooth device receives a response to the aforementioned first data packet, it updates the PTO and NSE in the link parameters based on the first data packet, and then sends the updated BIG information to the slave Bluetooth device in the BIG. Based on the updated PTO, in the next transmission event of the current transmission event, the master Bluetooth device sends the first data packet to the slave Bluetooth device in the BIG. After receiving the updated BIG information, the slave Bluetooth device in the BIG determines, based on the updated PTO, that the master Bluetooth device will send the first data packet in the next transmission event of the current transmission event, and the slave Bluetooth device will receive the first data packet in the next transmission event of the current transmission event.

[0078] Compared to traditional broadcasting, when a data packet fails to be received, updating the offset in the link parameters and retransmitting the failed data packet in the next transmission event ensures that the data packet can be successfully received. By modifying the number of sub-events in the link parameters, the number of times the data packet to be transmitted in the next transmission event can be maintained.

[0079] Optionally, in some possible cases, for a slave Bluetooth device with a high packet loss rate, the master Bluetooth device may also initiate a Bluetooth connection request with the slave Bluetooth device with a high packet loss rate, establish a communication connection with the slave Bluetooth device with a high packet loss rate, and transmit target broadcast synchronization stream data packets through the established communication connection.

[0080] S203, BIG: Upgrade the target Bluetooth device using an online upgrade package.

[0081] Specifically, the slave Bluetooth device in the BIG can determine whether it has successfully received all target broadcast synchronization stream data packets corresponding to the online upgrade package. If it has successfully received all target broadcast synchronization stream data packets corresponding to the online upgrade package, it is determined that the online upgrade package has been successfully received, and then the target slave Bluetooth device can be upgraded using the online upgrade package. If it has not successfully received all target broadcast synchronization stream data packets corresponding to the online upgrade package, it continues to receive target broadcast synchronization stream data packets sent by the master Bluetooth device.

[0082] In the above Figure 2 In the corresponding technical solution, the master Bluetooth device obtains the target broadcast synchronization stream data packet, which is obtained by data packetization and encapsulation of the online upgrade packet. Then, it sends the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group to send the online upgrade packet to multiple slave Bluetooth devices. This is equivalent to sending the online upgrade packet to multiple slave Bluetooth devices that need to be upgraded by transmitting the broadcast synchronization stream, which enables multiple slave Bluetooth devices to complete the online upgrade synchronously. The upgrade process for multiple slave Bluetooth devices is simple and can improve the efficiency of slave Bluetooth device upgrades.

[0083] The method of this application has been described above; the apparatus of this application will be described below.

[0084] See Figure 4 , Figure 4 This is a schematic diagram of a device upgrade apparatus provided in an embodiment of this application, applied to a master Bluetooth device in a Bluetooth system. The Bluetooth system can, as follows: Figure 1 As shown. Figure 4 As shown, the equipment upgrade device 30 includes:

[0085] The acquisition module 301 is used to acquire the target broadcast synchronization stream data packet, which is obtained by data packetization and encapsulation of the online upgrade package;

[0086] The sending module 302 is used to send the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group, so as to send the online upgrade package to the plurality of slave Bluetooth devices, wherein the online upgrade package is used by the plurality of slave Bluetooth devices to upgrade the plurality of slave Bluetooth devices.

[0087] In one possible design, the sending module 302 is further configured to send broadcast synchronization group information to the slave Bluetooth devices in the broadcast synchronization group. The broadcast synchronization group information includes the link parameters of the broadcast synchronization stream link used by the master Bluetooth device to send the target broadcast synchronization stream data packet. The broadcast synchronization group information is used by the plurality of slave Bluetooth devices to receive the target broadcast synchronization stream data packet.

[0088] In one possible design, the link parameters include a channel frequency hopping table for the master Bluetooth device to send the target broadcast synchronization stream data packet; the sending module 302 is specifically used to: send the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group on the channel corresponding to the channel frequency hopping table.

[0089] In one possible design, the link parameters include time information for the master Bluetooth device to send the target broadcast synchronization stream data packet; the sending module 302 is specifically used to: send the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group at the transmission event corresponding to the time information.

[0090] In one possible design, the link parameters include the number of bursts; the sending module 302 is specifically used to: according to the number of bursts, in the current transmission event, send a first group of data packets to the slave Bluetooth device in the broadcast synchronization group, the first group of data packets including at least one ordered target broadcast synchronization stream data packet, the number of target broadcast synchronization stream data packets in the first group of data packets being equal to the number of bursts.

[0091] In one possible design, the link parameters further include an offset for the pre-transmitted data packets; the sending module 302 is specifically configured to: according to the offset, in the current transmission event, send a second set of data packets to the slave Bluetooth device in the broadcast synchronization group, the second set of data packets including at least one ordered target broadcast synchronization stream data packet, the transmission order of the target broadcast synchronization stream data packets in the second set of data packets being after the transmission order of the target broadcast synchronization stream data packets in the first set of data packets, and the transmission order difference between the first target broadcast synchronization stream data packet in the second set of data packets and the first target broadcast synchronization stream data packet in the first set of data packets being equal to the offset.

[0092] In one possible design, the link parameters further include the number of sub-events contained in the transmission event; the sending module 302 is specifically configured to: after the current transmission event ends, detect a receive response sent by a slave Bluetooth device in the broadcast synchronization group, the receive response indicating that one or more target broadcast synchronization stream data packets in the first group of data packets were not successfully received; upon receiving the receive response sent by a target slave Bluetooth device in the broadcast synchronization group, update the offset in the link parameters according to the receive response, and update the number of sub-events in the link parameters, wherein the target slave Bluetooth device is any slave Bluetooth device in the broadcast synchronization group; send the updated broadcast synchronization group information to the slave Bluetooth devices in the broadcast synchronization group; and, according to the updated offset, send the target broadcast synchronization stream data packet corresponding to the receive response to the slave Bluetooth devices in the broadcast synchronization group in the next transmission event of the current transmission event.

[0093] In one possible design, the link parameters also include an immediate repeat count; the number of times the first group of data packets is sent in the current transmission event is equal to the immediate repeat count.

[0094] It should be noted that, Figure 4 For any content not mentioned in the corresponding embodiments, please refer to the description of the foregoing method embodiments, which will not be repeated here.

[0095] The aforementioned device acquires a target broadcast synchronization stream data packet, which is obtained by data packetization and encapsulation of the online upgrade packet. Then, it sends the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group to send the online upgrade packet to multiple slave Bluetooth devices. Essentially, it sends the online upgrade packet to multiple slave Bluetooth devices that need to be upgraded by transmitting the broadcast synchronization stream, enabling multiple slave Bluetooth devices to complete the online upgrade synchronously. The upgrade process for multiple slave Bluetooth devices is simple and can improve the efficiency of slave Bluetooth device upgrades.

[0096] See Figure 5 , Figure 5 This is a schematic diagram of another device upgrade apparatus provided in this application embodiment, applied to a target slave Bluetooth device in a Bluetooth system. The Bluetooth system includes a master Bluetooth device and a broadcast synchronization group composed of multiple slave Bluetooth devices. The target slave Bluetooth device is any slave Bluetooth device in the broadcast synchronization group. The Bluetooth system can be configured as follows: Figure 1 As shown. Figure 5 As shown, the equipment upgrade device 40 includes:

[0097] The receiving module 401 is used to receive the target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain the online upgrade package. The target broadcast synchronization stream data packet is obtained by the master Bluetooth device by data packetization and encapsulation of the online upgrade package.

[0098] Upgrade module 402 is used to upgrade the target Bluetooth device using the online upgrade package.

[0099] In one possible design, the receiving module 401 is further configured to receive broadcast synchronization group information sent by the master Bluetooth device, the broadcast synchronization group information including the link parameters of the broadcast synchronization stream link used by the master Bluetooth device to send the target broadcast synchronization stream data packet.

[0100] In one possible design, the link parameters include a channel frequency hopping table for the main Bluetooth device to send the target broadcast synchronization stream data packets; the receiving module 401 is specifically used to: receive the target broadcast synchronization stream data packets sent by the main Bluetooth device on the channel corresponding to the channel frequency hopping table.

[0101] In one possible design, the link parameters include time information for the master Bluetooth device to send the target broadcast synchronization stream data packet; the receiving module 401 is specifically used to: receive the target broadcast synchronization stream data packet sent by the master Bluetooth device during the transmission event corresponding to the time information.

[0102] In one possible design, the link parameters include the number of bursts; the receiving module 401 is specifically used to: receive, in the current transmission event, a first group of data packets sent by the master Bluetooth device according to the number of bursts, the first group of data packets including at least one ordered target broadcast synchronization stream data packet, the number of target broadcast synchronization stream data packets in the first group of data packets being equal to the number of bursts.

[0103] In one possible design, the link parameters further include an offset for the pre-transmitted data packets; the receiving module 401 is specifically configured to: receive, in the current transmission event, a second set of data packets sent by the master Bluetooth device according to the offset, the second set of data packets including at least one ordered target broadcast synchronization stream data packet, the transmission order of the target broadcast synchronization stream data packets in the second set of data packets being after the transmission order of the target broadcast synchronization stream data packets in the first set of data packets, and the transmission order difference between the first target broadcast synchronization stream data packet in the second set of data packets and the first target broadcast synchronization stream data packet in the first set of data packets being equal to the offset.

[0104] In one possible design, the link parameters also include the number of sub-events contained in the transmission event;

[0105] The aforementioned device upgrade apparatus 40 further includes a sending module 403, configured to send a reception response corresponding to the first data packet to the master Bluetooth device after the current transmission event ends, if the first data packet is not successfully received. The first data packet is any one of the target broadcast synchronization stream data packets in the first group of data packets, and the reception response is used to indicate that the first data packet was not successfully received. The aforementioned receiving module 401 is also configured to receive updated broadcast synchronization group information sent by the master Bluetooth device. The updated broadcast synchronization group information is obtained by the master Bluetooth device updating the number of sub-events and the offset in the link parameters according to the reception response. Based on the updated offset, in the next transmission event of the current transmission event, the first data packet sent by the master Bluetooth device is received.

[0106] In one possible design, the link parameters also include an immediate repeat count; the number of times the first group of data packets is sent in the current transmission event is equal to the immediate repeat count.

[0107] The aforementioned device receives a target broadcast synchronization stream data packet sent by the master Bluetooth device, obtains an online upgrade packet, and then uses the online upgrade packet to upgrade the slave Bluetooth devices. Essentially, it sends the online upgrade packet to multiple slave Bluetooth devices that need to be upgraded by transmitting a broadcast synchronization stream, enabling multiple slave Bluetooth devices to complete the online upgrade simultaneously. The upgrade process for multiple slave Bluetooth devices is simple and can improve the efficiency of slave Bluetooth device upgrades.

[0108] See Figure 6 , Figure 6 This is a schematic diagram of the structure of a Bluetooth device provided in an embodiment of this application. The Bluetooth system in which this Bluetooth device resides can be as follows: Figure 1 As shown, the Bluetooth device 50 includes a processor 501, a memory 502, and a transceiver 503. The memory 502 is connected to the processor 501, for example, via a bus.

[0109] Processor 501 is configured to support the Bluetooth device 50 in performing the corresponding functions in the methods described in the above method embodiments. Processor 501 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The aforementioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0110] Memory 502 is used to store program code, etc. Memory 502 may include volatile memory (VM), such as random access memory (RAM); memory 502 may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); memory 502 may also include combinations of the above types of memory.

[0111] Transceiver 503 is used to transmit data; specifically, transceiver 503 is a Bluetooth transceiver.

[0112] When the Bluetooth device is used as the master Bluetooth device, the processor 501 can call the program code to perform the following operations:

[0113] Obtain the target broadcast synchronization stream data packet, which is obtained by data packetization and encapsulation of the online upgrade package;

[0114] The target broadcast synchronization stream data packet is sent to the slave Bluetooth devices in the broadcast synchronization group to send the online upgrade package to the plurality of slave Bluetooth devices, the online upgrade package being used by the plurality of slave Bluetooth devices to upgrade the plurality of slave Bluetooth devices.

[0115] When the Bluetooth device is used as a slave Bluetooth device, the processor 501 can call the program code to perform the following operations:

[0116] The system receives a target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain an online upgrade package. The target broadcast synchronization stream data packet is obtained by the master Bluetooth device by data packetization and encapsulation of the online upgrade package.

[0117] The target device is upgraded using the online upgrade package.

[0118] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the method described in the foregoing embodiments.

[0119] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0120] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A method for upgrading equipment, characterized in that, A master Bluetooth device applied in a Bluetooth system, the Bluetooth system including the master Bluetooth device and a broadcast synchronization group consisting of multiple slave Bluetooth devices; the method includes: Broadcast synchronization group information is sent to the slave Bluetooth devices in the broadcast synchronization group. The broadcast synchronization group information includes the link parameters of the broadcast synchronization stream link used by the master Bluetooth device to send the target broadcast synchronization stream data packet. The broadcast synchronization group information is used by the multiple slave Bluetooth devices to receive the target broadcast synchronization stream data packet. The link parameters include the number of bursts and the offset of the pretransmitted data packet. Obtain the target broadcast synchronization stream data packet, which is obtained by data packetization and encapsulation of the online upgrade package; The target broadcast synchronization stream data packet is sent to the slave Bluetooth devices in the broadcast synchronization group to send the online upgrade package to the plurality of slave Bluetooth devices, the online upgrade package being used by the plurality of slave Bluetooth devices to upgrade the plurality of slave Bluetooth devices; Sending the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group includes: Based on the burst count, in the current transmission event, a first set of data packets is sent to the slave Bluetooth device in the broadcast synchronization group. The first set of data packets includes at least one ordered target broadcast synchronization stream data packet, and the number of target broadcast synchronization stream data packets in the first set of data packets is equal to the burst count. Based on the offset, in the current transmission event, a second set of data packets is sent to the slave Bluetooth device in the broadcast synchronization group. The second set of data packets includes at least one ordered target broadcast synchronization stream data packet. The transmission order of the target broadcast synchronization stream data packets in the second set of data packets is after the transmission order of the target broadcast synchronization stream data packets in the first set of data packets. Furthermore, the transmission order difference between the first target broadcast synchronization stream data packet in the second set of data packets and the first target broadcast synchronization stream data packet in the first set of data packets is equal to the offset.

2. The method according to claim 1, characterized in that, The link parameters also include the channel frequency hopping table for the main Bluetooth device to send the target broadcast synchronization stream data packets; Sending the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group includes: On the channel corresponding to the channel hopping table, the target broadcast synchronization stream data packet is sent to the slave Bluetooth device in the broadcast synchronization group.

3. The method according to claim 1, characterized in that, The link parameters also include the time information of when the master Bluetooth device sends the target broadcast synchronization stream data packet; Sending the target broadcast synchronization stream data packet to the slave Bluetooth device in the broadcast synchronization group includes: In the transmission event corresponding to the time information, the target broadcast synchronization stream data packet is sent to the slave Bluetooth device in the broadcast synchronization group.

4. The method according to claim 1, characterized in that, The link parameters also include the number of sub-events contained in the transmission event; After sending the first group of data packets to the slave Bluetooth devices in the broadcast synchronization group in the current transmission event according to the burst count, the method further includes: After the current transmission event ends, a receive response sent from a Bluetooth device in the broadcast synchronization group is detected. The receive response is used to indicate that one or more target broadcast synchronization stream data packets in the first group of data packets were not successfully received. Upon receiving the receive response from the target Bluetooth device in the broadcast synchronization group, the offset in the link parameters is updated according to the receive response, and the number of sub-events in the link parameters is also updated, wherein the target Bluetooth device is any Bluetooth device in the broadcast synchronization group; Send updated broadcast synchronization group information to the Bluetooth devices in the broadcast synchronization group; Based on the updated offset, in the next transmission event of the current transmission event, the target broadcast synchronization stream data packet corresponding to the received response is sent to the slave Bluetooth device in the broadcast synchronization group.

5. The method according to any one of claims 1-4, characterized in that, The link parameters also include an immediate repeat count; the number of times the first group of data packets is sent in the current transmission event is equal to the immediate repeat count.

6. A method for upgrading equipment, characterized in that, A target slave Bluetooth device is applied in a Bluetooth system, the Bluetooth system including a master Bluetooth device and a broadcast synchronization group consisting of multiple slave Bluetooth devices, the target slave Bluetooth device being any slave Bluetooth device in the broadcast synchronization group; the method includes: The system receives broadcast synchronization group information sent by the master Bluetooth device. The broadcast synchronization group information includes the link parameters of the broadcast synchronization stream link used by the master Bluetooth device to send the target broadcast synchronization stream data packet. The link parameters include the number of bursts and the offset of the pre-transmitted data packet. The system receives a target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain an online upgrade package. The target broadcast synchronization stream data packet is obtained by the master Bluetooth device by data packetization and encapsulation of the online upgrade package. Upgrade the target device from Bluetooth using the online upgrade package; The receiving of the target broadcast synchronization stream data packet sent by the master Bluetooth device includes: Based on the burst count, in the current transmission event, a first group of data packets sent by the master Bluetooth device is received, the first group of data packets including at least one ordered target broadcast synchronization stream data packet, the number of target broadcast synchronization stream data packets in the first group of data packets being equal to the burst count; According to the offset, in the current transmission event, a second set of data packets sent by the master Bluetooth device is received. The second set of data packets includes at least one ordered target broadcast synchronization stream data packet. The transmission order of the target broadcast synchronization stream data packets in the second set of data packets is after the transmission order of the target broadcast synchronization stream data packets in the first set of data packets. Furthermore, the transmission order difference between the first target broadcast synchronization stream data packet in the second set of data packets and the first target broadcast synchronization stream data packet in the first set of data packets is equal to the offset.

7. The method according to claim 6, characterized in that, The link parameters also include the channel frequency hopping table for the main Bluetooth device to send the target broadcast synchronization stream data packets; The receiving of the target broadcast synchronization stream data packet sent by the master Bluetooth device includes: On the channel corresponding to the channel hopping table, the target broadcast synchronization stream data packet sent by the master Bluetooth device is received.

8. The method according to claim 6, characterized in that, The link parameters also include the time information of when the master Bluetooth device sends the target broadcast synchronization stream data packet; The receiving of the target broadcast synchronization stream data packet sent by the master Bluetooth device includes: During the transmission event corresponding to the time information, the target broadcast synchronization stream data packet sent by the master Bluetooth device is received.

9. The method according to claim 6, characterized in that, The link parameters also include the number of sub-events contained in the transmission event; After receiving the first group of data packets sent by the master Bluetooth device in the current transmission event based on the burst count, the method further includes: After the current transmission event ends, if the first data packet is not successfully received, a reception response corresponding to the first data packet is sent to the master Bluetooth device. The first data packet is any one of the target broadcast synchronization stream data packets in the first group of data packets. The reception response is used to indicate that the first data packet was not successfully received. The system receives updated broadcast synchronization group information sent by the master Bluetooth device. The updated broadcast synchronization group information is obtained by the master Bluetooth device updating the number of sub-events and the offset in the link parameters based on the received response. Based on the updated offset, in the next transmission event of the current transmission event, the first data packet sent by the master Bluetooth device is received.

10. The method according to any one of claims 6-9, wherein the link parameters further include an immediate repeat count; the number of times the first group of data packets is sent in the current transmission event is equal to the immediate repeat count.

11. An equipment upgrade device, characterized in that, A master Bluetooth device for use in a Bluetooth system, the Bluetooth system including the master Bluetooth device and a broadcast synchronization group consisting of multiple slave Bluetooth devices; the device includes: The acquisition module is used to acquire target broadcast synchronization stream data packets, which are obtained by data packetization and encapsulation of online upgrade packages; The sending module is configured to send the target broadcast synchronization stream data packet to the slave Bluetooth devices in the broadcast synchronization group, so as to send the online upgrade package to the plurality of slave Bluetooth devices, wherein the online upgrade package is used by the plurality of slave Bluetooth devices to upgrade the plurality of slave Bluetooth devices; The sending module is further configured to send broadcast synchronization group information to the slave Bluetooth devices in the broadcast synchronization group. The broadcast synchronization group information includes link parameters of the broadcast synchronization stream link used by the master Bluetooth device to send the target broadcast synchronization stream data packet. The broadcast synchronization group information is used by the plurality of slave Bluetooth devices to receive the target broadcast synchronization stream data packet. The link parameters include the number of bursts and the offset of the pre-transmitted data packet. Based on the number of bursts, in the current transmission event, a first group of data packets is sent to the slave Bluetooth devices in the broadcast synchronization group. The first group of data packets includes at least one ordered target broadcast synchronization stream data packet. The number of target broadcast synchronization stream data packets in the first group of data packets is equal to the number of bursts. Based on the offset, in the current transmission event, a second group of data packets is sent to the slave Bluetooth devices in the broadcast synchronization group. The second group of data packets includes at least one ordered target broadcast synchronization stream data packet. The transmission order of the target broadcast synchronization stream data packets in the second group of data packets is after the transmission order of the target broadcast synchronization stream data packets in the first group of data packets. Furthermore, the transmission order difference between the first target broadcast synchronization stream data packet in the second group of data packets and the first target broadcast synchronization stream data packet in the first group of data packets is equal to the offset.

12. An equipment upgrade device, characterized in that, A target slave Bluetooth device applied in a Bluetooth system, the Bluetooth system including a master Bluetooth device and a broadcast synchronization group consisting of multiple slave Bluetooth devices, the target slave Bluetooth device being any slave Bluetooth device in the broadcast synchronization group; the apparatus includes: The receiving module is used to receive the target broadcast synchronization stream data packet sent by the master Bluetooth device to obtain the online upgrade package. The target broadcast synchronization stream data packet is obtained by the master Bluetooth device by data packetization and encapsulation of the online upgrade package. An upgrade module is used to upgrade the target Bluetooth device using the online upgrade package; The receiving module is further configured to receive broadcast synchronization group information sent by the master Bluetooth device. The broadcast synchronization group information includes link parameters of the broadcast synchronization stream link used by the master Bluetooth device to send the target broadcast synchronization stream data packets. The link parameters include the number of bursts and the offset of the pre-transmitted data packets. Based on the number of bursts, in the current transmission event, the module receives a first group of data packets sent by the master Bluetooth device. The first group of data packets includes at least one ordered target broadcast synchronization stream data packet. The number of target broadcast synchronization stream data packets in the first group of data packets is equal to the number of bursts. Based on the offset, in the current transmission event, the module receives a second group of data packets sent by the master Bluetooth device. The second group of data packets includes at least one ordered target broadcast synchronization stream data packet. The transmission order of the target broadcast synchronization stream data packets in the second group of data packets is after the transmission order of the target broadcast synchronization stream data packets in the first group of data packets. Furthermore, the transmission order difference between the first target broadcast synchronization stream data packet in the second group of data packets and the first target broadcast synchronization stream data packet in the first group of data packets is equal to the offset.

13. A Bluetooth device, characterized in that, The device includes a memory, a processor, and a transceiver, the memory and the transceiver being connected to the processor, the transceiver being used to send or receive data, and the processor being used to execute one or more computer programs stored in the memory, wherein, when executing the one or more computer programs, the processor causes the Bluetooth device to implement the method as described in any one of claims 1-5 or 6-10.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1-5 or 6-10.

15. A Bluetooth system, characterized in that, It includes a master Bluetooth device and a broadcast synchronization group consisting of a plurality of slave Bluetooth devices; the master Bluetooth device is used to perform the method as described in any one of claims 1-5, and the slave Bluetooth devices are used to perform the method as described in any one of claims 6-10.

Citation Information

Patent Citations

  • Station reporting method and system, electronic equipment and broadcasting equipment

    CN112885121A

  • Data transmission method and system, chip, electronic equipment and storage medium

    CN113573252A

  • Bluetooth device and over-the-air technology upgrading method

    CN115175156A