Bluetooth-based electronic equipment cluster OTA upgrading method, device and system

By dividing the OTA upgrade package into multiple data blocks and broadcasting in sequence using Bluetooth modules, the problem of low efficiency of embedded device cluster upgrade is solved, and efficient firmware upgrade is achieved, suitable for large-scale device upgrades.

CN119155178APending Publication Date: 2024-12-17ZHUHAI JIELI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410964109.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

The prior art is inefficient in the firmware upgrade process of multiple embedded device clusters, especially when the number of devices is large, and upgrading efficiency is difficult to improve.

Method used

By obtaining the OTA upgrade packages corresponding to various types of chips, extracting the pre-loader and upgrade data programs, and dividing them into multiple data blocks. The Bluetooth module is used to broadcast in sequence to ensure that each device receives the required data blocks synchronously for the synchronization of the required data blocks. Firmware upgrade.

Benefits of technology

It improves the upgrade efficiency of electronic device clusters. No matter when the device is added, it can obtain data blocks corresponding to its own status, reduces the waiting time of a single device, and improves the overall upgrade efficiency, especially suitable for scenarios with a large number of devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155178A_ABST
    Figure CN119155178A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic equipment cluster OTA upgrading method, device and system based on Bluetooth, and the method comprises the steps: obtaining an OTA upgrading package corresponding to each type of chip according to the chip type of to-be-upgraded equipment; aiming at each OTA upgrade package, respectively extracting a pre-stage loading program and an upgrade data program; dividing the preceding-stage loading program into a plurality of preceding-stage loading data blocks in sequence, and dividing the upgrading data program into a plurality of upgrading data blocks in sequence; circularly broadcasting a plurality of preceding-stage loading data blocks in sequence by using the first Bluetooth module; and circularly broadcasting the plurality of upgrading data blocks in sequence by using the second Bluetooth module. Therefore, the upgrading efficiency of the electronic equipment cluster (especially when the number of the electronic equipment is large) is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of firmware data processing and transmission, and in particular to a method, device and system for OTA upgrading of electronic equipment cluster based on Bluetooth. Background Art

[0002] With the rapid development and popularization of smart electronic products, more and more embedded devices are entering the market to meet the functional requirements of users in various application scenarios. In order to meet people's growing needs, the chips of smart electronic products are constantly iterating and updating. For the optimization of existing modules or the introduction of new functional modules, these all require chip OTA upgrades. The so-called OTA (Over-the-Air Technology) upgrade refers to obtaining upgrade data packet resources through wireless communication, upgrading the firmware side of smart terminal devices, enriching and improving the firmware system, thereby improving the user experience of consumer electronic products.

[0003] At present, when upgrading the firmware of each embedded device in an embedded device cluster, after obtaining the upgrade package, the host computer establishes Bluetooth communication connections with the embedded devices in the embedded device cluster based on the Bluetooth protocol, and the host computer sends the upgrade package to each embedded device through BLE, thereby realizing the firmware upgrade of the embedded device. Although this method can realize the automatic firmware upgrade of multiple devices, when there are multiple devices that need to be upgraded, this serial upgrade method has low upgrade efficiency.

[0004] Therefore, how to improve the upgrade efficiency of electronic equipment clusters has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] Based on the above situation, the main purpose of the present invention is to provide an electronic device cluster OTA upgrade method, device and system based on Bluetooth to improve the upgrade efficiency of the electronic device cluster.

[0006] To achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0007] In a first aspect, an embodiment of the present invention discloses an OTA upgrade method for an electronic device cluster based on Bluetooth, which is used to provide an upgrade file to the electronic device cluster so as to perform firmware upgrade on the chip in each device to be upgraded in the electronic device cluster respectively. The method includes:

[0008] Step S100, obtaining OTA upgrade packages corresponding to various types of chips according to the chip type of the device to be upgraded;

[0009] Step S200, for each OTA upgrade package, extract the front-end loader and the upgrade data program respectively, the upgrade data program is used to erase the original software in the corresponding chip to upgrade the firmware in the corresponding chip;

[0010] Step S300, for each OTA upgrade package, the front-stage loading program is sequentially divided into a plurality of front-stage loading data blocks, and the upgrade data program is sequentially divided into a plurality of upgrade data blocks;

[0011] Step S400, using the first Bluetooth module to broadcast a number of front-stage loading data blocks in sequence and in a loop, so that the device to be upgraded receives the front-stage loading data blocks in a corresponding sequence according to its own upgrade progress;

[0012] Step S500: using the second Bluetooth module to broadcast a number of upgrade data blocks in sequence and in a loop, so that the device to be upgraded receives the corresponding upgrade data block according to the current previous stage loading data block index to perform the current firmware upgrade.

[0013] Optionally, in step S100, the number of extracted OTA upgrade packages is multiple, corresponding to different types of devices to be upgraded;

[0014] Between step S300, step S400 and step S500, the following is also included:

[0015] Step S310, merging the front-stage loading data blocks of the same sequence of different types of OTA upgrade packages into one front-stage loading data packet to obtain a plurality of sequentially arranged front-stage loading data packets;

[0016] Step S320, merging upgrade data blocks of the same sequence of different types of OTA upgrade packages into one upgrade data packet to obtain a plurality of sequentially arranged upgrade data packets;

[0017] In step S400, a plurality of front-stage loading data packets are broadcasted in sequence by using a first Bluetooth module;

[0018] In step S500, a second Bluetooth module is used to broadcast a plurality of upgrade data packets in sequence.

[0019] Optionally, in step S400, a plurality of front-stage loading data packets are broadcasted periodically and cyclically;

[0020] In step S500, a plurality of upgrade data packets are broadcast periodically and cyclically.

[0021] Optionally, during the process of performing step S400 to broadcast the current previous stage loading data packet, in step S310, the next previous stage loading data packet is merged so that adjacent previous stage loading data packets are broadcast at intervals of a preset time length; and / or,

[0022] During the process of executing step S400 to broadcast the current previous stage loading data packet, in step S310, the next previous stage loading data packet is merged so that adjacent previous stage loading data packets are broadcast at intervals of a preset time length.

[0023] Optionally, the previous loading data packet is loaded with its own data packet sequence number and the upgrade data packet sequence number pointed to, so that after receiving the current previous loading data packet, the device to be upgraded receives the corresponding upgrade data packet according to the upgrade data packet sequence number pointed to;

[0024] The upgrade data packet is loaded with its own upgrade data packet sequence number, so that the device to be upgraded selects to receive the upgrade data packet corresponding to the currently received previous loading data packet according to the currently received previous loading data packet, so as to upgrade the data of the current upgrade data block.

[0025] Optionally, the first Bluetooth module and the second Bluetooth module are independent hardware, the first Bluetooth module is dedicated to broadcasting a number of pre-stage loading data blocks, and the second Bluetooth module is dedicated to broadcasting a number of upgrade data blocks.

[0026] Optionally, the number of electronic devices in the electronic device cluster is greater than 1000.

[0027] In a second aspect, an embodiment of the present invention discloses an OTA upgrade device for an electronic device cluster based on Bluetooth, which is used to provide an upgrade file to an electronic device cluster so as to perform firmware upgrade on chips in each device to be upgraded in the electronic device cluster, respectively. The device includes:

[0028] The upgrade package acquisition module is used to obtain the OTA upgrade package corresponding to each type of chip according to the chip type of the device to be upgraded;

[0029] The program extraction module is used to extract the front-end loader and the upgrade data program for each OTA upgrade package. The upgrade data program is used to erase the original software in the corresponding chip to upgrade the firmware in the corresponding chip.

[0030] A program division module is used to divide the front-stage loading program into a plurality of front-stage loading data blocks in sequence and divide the upgrade data program into a plurality of upgrade data blocks in sequence for each OTA upgrade package;

[0031] A first broadcast module, used to broadcast a plurality of pre-stage loading data blocks in sequence and in a loop by using the first Bluetooth module, so that the upgraded device to be upgraded receives the pre-stage loading data blocks in a corresponding sequence according to its own upgrade progress;

[0032] The second broadcast module is used to use the second Bluetooth module to broadcast a number of upgrade data blocks in sequence and in a loop, so that the device to be upgraded receives the corresponding upgrade data block according to the current front-stage loading data block index to perform the current firmware upgrade.

[0033] Optionally, in the upgrade package acquisition module, the number of extracted OTA upgrade packages is multiple, corresponding to different types of devices to be upgraded;

[0034] The device also includes:

[0035] A first merging module is used to merge the front-stage loading data blocks of the same sequence of different types of OTA upgrade packages into one front-stage loading data packet to obtain a plurality of sequentially arranged front-stage loading data packets;

[0036] A second merging module is used to merge upgrade data blocks of the same sequence of different types of OTA upgrade packages into one upgrade data packet to obtain multiple upgrade data packets arranged in sequence;

[0037] In the first broadcast module, a plurality of front-stage loading data packets are broadcasted in sequence by using the first Bluetooth module;

[0038] In the second broadcast module, a second Bluetooth module is used to broadcast a plurality of upgrade data packets in sequence.

[0039] Optionally, in the first broadcast module, a plurality of front-stage loading data packets are broadcasted periodically and cyclically;

[0040] In the second broadcast module, multiple upgrade data packets are broadcast periodically and cyclically.

[0041] Optionally, in the process of executing the first broadcast module to broadcast the current front-stage loading data packet, in the first merging module, the next front-stage loading data packet is merged so that adjacent front-stage loading data packets are broadcast at intervals of a preset time length; and / or,

[0042] In the process of executing the second broadcasting module to broadcast the current previous stage loading data packet, in the second merging module, the next previous stage loading data packet is merged, so that adjacent previous stage loading data packets are broadcast at intervals of a preset time length.

[0043] Optionally, the previous loading data packet is loaded with its own data packet sequence number and the upgrade data packet sequence number pointed to, so that after receiving the current previous loading data packet, the device to be upgraded receives the corresponding upgrade data packet according to the upgrade data packet sequence number pointed to;

[0044] The upgrade data packet is loaded with its own upgrade data packet sequence number, so that the device to be upgraded selects to receive the upgrade data packet corresponding to the currently received previous loading data packet according to the currently received previous loading data packet, so as to upgrade the data of the current upgrade data block.

[0045] Optionally, the first Bluetooth module and the second Bluetooth module are independent hardware, the first Bluetooth module is dedicated to broadcasting a number of pre-stage loading data blocks, and the second Bluetooth module is dedicated to broadcasting a number of upgrade data blocks.

[0046] Optionally, the number of electronic devices in the electronic device cluster is greater than 1000.

[0047] In a third aspect, an embodiment of the present invention discloses an electronic device cluster OTA upgrade device based on Bluetooth, including:

[0048] The electronic device cluster is OTA upgraded using the method disclosed in the first aspect, or includes the device disclosed in the second aspect.

[0049] In a fourth aspect, an embodiment of the present invention discloses a computer-readable storage medium having a computer program stored thereon, wherein the computer program stored in the storage medium is used to be executed by a processor to implement the method disclosed in the first aspect above.

[0050] In a fifth aspect, an embodiment of the present invention discloses a host computer chip for OTA upgrade, which has an integrated circuit thereon, and the integrated circuit is designed to implement the method disclosed in the first aspect above.

[0051] Optionally, a first Bluetooth chip and a second Bluetooth chip are integrated thereon, for implementing the first Bluetooth module and the second Bluetooth module respectively.

[0052] In a sixth aspect, an embodiment of the present invention discloses an electronic device cluster OTA upgrade system based on Bluetooth, including:

[0053] The host device uses the method disclosed in the first aspect to perform OTA upgrade on the electronic device cluster, or includes the apparatus disclosed in the second aspect.

[0054] Beneficial effects:

[0055] According to an OTA upgrade method, device and system of an electronic device cluster based on Bluetooth implementation disclosed in an embodiment of the present invention, an OTA upgrade package corresponding to each type of chip is obtained according to the chip type of the device to be upgraded in the electronic device cluster, and then a pre-loader and an upgrade data program are extracted respectively, and the pre-loader is divided into several pre-loader data blocks in sequence, and the upgrade data program is divided into several upgrade data blocks in sequence, so that the pre-loader and upgrade data programs with larger data are split into several pre-loader data blocks and upgrade data blocks with smaller data, and then several pre-loader data blocks and several upgrade data blocks are broadcasted in sequence by the first Bluetooth module and the second Bluetooth module respectively, so that each device in the electronic device cluster can synchronously receive the corresponding pre-loader data blocks and upgrade data blocks to complete its own firmware upgrade. And because the first Bluetooth module and the second Bluetooth module are broadcasted in sequence, therefore, no matter when the device to be upgraded in the electronic device cluster is joined, the data block corresponding to its current state can be obtained, that is, each device to be upgraded can choose to receive the data block corresponding to the current progress according to its own upgrade progress. Thus, the upgrade efficiency of the electronic device cluster (especially when the number of electronic devices is large) is improved.

[0056] Other beneficial effects of the present invention will be explained in the specific implementation manner through the introduction of specific technical features and technical solutions. Through the introduction of these technical features and technical solutions, those skilled in the art should be able to understand the beneficial technical effects brought about by the technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The embodiments of the present invention will be described below with reference to the accompanying drawings.

[0058] Figure 1 This is a flow chart of an electronic device cluster OTA upgrade method based on Bluetooth disclosed in this embodiment;

[0059] Figure 2 This is a schematic diagram of an example of dividing data blocks for a pre-loader program of various types of chips disclosed in this embodiment;

[0060] Figure 3 This is an example schematic diagram of a data packet merge disclosed in this embodiment;

[0061] Figure 4 This is a timing diagram of a dual-chip receiving example of a broadcast data packet disclosed in this embodiment;

[0062] Figure 5 This is a timing diagram of a single chip receiving example of a broadcast data packet disclosed in this embodiment;

[0063] Figure 6This is a schematic diagram of the structure of an electronic device cluster OTA upgrade device based on Bluetooth disclosed in this embodiment. DETAILED DESCRIPTION

[0064] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the following detailed description of the present invention, some specific details are described in detail. In order to avoid confusing the essence of the present invention, known methods, processes, procedures, and components are not described in detail.

[0065] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

[0066] Unless the context clearly requires otherwise, throughout the specification and claims, the words "include", "comprising" and similar words should be interpreted in an inclusive sense rather than an exclusive or exhaustive sense; that is, in the sense of "including but not limited to".

[0067] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0068] In order to improve the upgrade efficiency of electronic device clusters, this embodiment discloses an OTA upgrade method for electronic device clusters based on Bluetooth, which is used for a host computer to provide an upgrade file to the electronic device cluster to perform firmware upgrades on the chips in each device to be upgraded in the electronic device cluster. In this embodiment, the number of electronic devices in the electronic device cluster is greater than 1,000, or even tens of thousands, which is suitable for the mass production stage of electronic devices.

[0069] Please refer to Figure 1 , Figure 1 This is a flow chart of an electronic device cluster OTA upgrade method based on Bluetooth disclosed in this embodiment. The electronic device cluster OTA upgrade method includes: step S100, step S200, step S300, step S400 and step S500, wherein:

[0070] Step S100, obtaining OTA upgrade packages corresponding to various types of chips according to the chip type of the device to be upgraded. Specifically, there are tens of thousands of electronic devices in the electronic device cluster, and these electronic devices can be speakers, watches, headphones, etc., and the chip models used can be different, such as 696, 695, 701, 708, etc. In this embodiment, since the electronic devices in the electronic device cluster use different chip models, it is possible to obtain OTA upgrade packages corresponding to various types of chips according to the chip type.

[0071] Step S200, for each OTA upgrade package, extract the pre-loader and the upgrade data program respectively. In a specific embodiment, the OTA upgrade package generally includes a pre-loader and an upgrade data program, wherein the pre-loader refers to a loader intermediate program, and the upgrade data program is used to erase the original software in the corresponding chip to upgrade the firmware in the corresponding chip. Specifically, in the process of upgrading the chip firmware, the chip in the device to be upgraded first receives the pre-loader (that is, the loader intermediate program), writes the loader intermediate program to the flash, and then restarts and boots into the loader mode. In this mode, the upgrade data program of the entity is received and the update is installed. In this embodiment, after obtaining the OTA upgrade package, the pre-loader and the upgrade data program in the OTA upgrade package are extracted, so that the role of each program can be distinguished for subsequent processing.

[0072] Step S300: for each OTA upgrade package, the front-stage loading program is divided into a plurality of front-stage loading data blocks in sequence, and the upgrade data program is divided into a plurality of upgrade data blocks in sequence.

[0073] Please refer to Figure 2 , Figure 2 This is a schematic diagram of an example of dividing data blocks for pre-loader programs of various types of chips disclosed in this embodiment. Figure 2 The example of dividing the pre-loader programs of four types of chips is shown. In the specific implementation process, the number of pre-loader programs can be determined according to the number of specific chip types. Figure 2 As shown, the upgrade packages of different types of chips are split into multiple data blocks according to their properties. For example, for type 1 chip, its corresponding loader package is split into A data blocks; for type 2 chip, its corresponding loader package is split into B data blocks; for type 3 chip, its corresponding loader package is split into C data blocks; for type 4 chip, its corresponding loader package is split into N data blocks.

[0074] In the specific implementation process, the size of the data block can be determined based on the size of the upgrade package (such as the loader package) and the minimum unit of data transmission during the upper computer broadcast, where the minimum unit of data transmission refers to the broadcast data length, which is limited by the data length of the broadcast communication itself on the one hand, and the size of the data block that can realize the basic functions on the other hand. In the specific implementation process, the data block size of each type of loader package can be determined based on the broadcast communication and the data required to realize the basic functions.

[0075] Similarly, the upgrade data program is divided into a number of upgrade data blocks in sequence, which will not be described in detail here.

[0076] Step S400, using the first Bluetooth module to broadcast several pre-stage loading data blocks in order and in a loop. In the present embodiment, the so-called first Bluetooth module can be an independent Bluetooth chip, or an independent module in the Bluetooth chip. In the specific implementation process, the first Bluetooth module starts broadcasting in order from the first pre-stage loading data block, and after completing the broadcast of the last pre-stage loading data block, it returns to broadcast these pre-stage loading data blocks again from the first pre-stage loading data block, so that the upgraded device to be upgraded receives the pre-stage loading data blocks of the corresponding order according to its own upgrade progress. In the present embodiment, the pre-stage loading data blocks are transmitted by broadcasting, so that the devices in the electronic device cluster can receive the pre-stage loading data blocks without establishing a Bluetooth link with the host computer, and the pre-stage loading data blocks are transmitted to each device to be upgraded in the same time period.

[0077] Step S500, using the second Bluetooth module to broadcast several upgrade data blocks in sequence and in a loop. In the present embodiment, the so-called second Bluetooth module can be an independent Bluetooth chip, or it can be integrated in the same Bluetooth chip with the first Bluetooth module. In the specific implementation process, the second Bluetooth module starts broadcasting in sequence from the first upgrade data block, and after completing the broadcast of the last upgrade data block, it returns to broadcast these upgrade data blocks again from the first upgrade data block, so that the upgraded device to be upgraded receives the corresponding upgrade data block according to the current front-stage loading data block index to perform the current firmware upgrade. In the present embodiment, the front-stage loading data block is transmitted by broadcasting, so that the devices in the electronic device cluster can receive the front-stage loading data block without establishing a Bluetooth link with the host computer, and the front-stage loading data block is transmitted to each device to be upgraded in the same time period.

[0078] In a specific embodiment, the first Bluetooth module and the second Bluetooth module are independent hardware, the first Bluetooth module is dedicated to broadcasting a number of pre-loaded data blocks, and the second Bluetooth module is dedicated to broadcasting a number of upgraded data blocks.

[0079] In order to enable different types of devices to be upgraded to receive upgrade packages in different time periods, in an optional embodiment, in step S100, the number of extracted OTA upgrade packages is multiple, corresponding to different types of devices to be upgraded. Between step S300, step S400 and step S500, it also includes:

[0080] In step S310, the front-stage loading data blocks of the same sequence of different types of OTA upgrade packages are merged into a front-stage loading data packet to obtain multiple sequentially arranged front-stage loading data packets; in step S320, the upgrade data blocks of the same sequence of different types of OTA upgrade packages are merged into an upgrade data packet to obtain multiple sequentially arranged upgrade data packets; in step S400, the first Bluetooth module is used to broadcast multiple front-stage loading data packets in sequence; in step S500, the second Bluetooth module is used to broadcast multiple upgrade data packets in sequence.

[0081] Specifically, please refer to Figure 3 , Figure 3 This is an example schematic diagram of merging data packets disclosed in this embodiment. Figure 3 An example of merging data packets of four types of chips is shown. In the specific implementation process, the number of data blocks in the merged data packet can be determined according to the number of specific chip types. In this embodiment, the pre-stage loading data blocks (or upgrade data blocks) of different chips are respectively combined into the first pre-stage loading data packet (or upgrade data packet), the second pre-stage loading data packet (or upgrade data packet), and the nth pre-stage loading data packet (or upgrade data packet) according to the prescribed block order. It should be noted that in the same data packet, the type of the merged data blocks is the same, that is, either the pre-stage loading data block or the upgrade data block.

[0082] like Figure 3 In the example, the four chip types are chip 1, chip 2, chip 3, and chip 4, and the front-stage loading data blocks (or upgrade data blocks) arranged in sequence are numbered A-1 to An, B-1 to Bn, C-1 to Cn, and C-1 to Cn, respectively. Of course, in some embodiments, the number of front-stage loading data blocks (or upgrade data blocks) of some chips may be more than n blocks or less than n blocks. In this embodiment, the front-stage loading data blocks (or upgrade data blocks) with sequence number 1 are merged together to obtain the first front-stage loading data packet (or upgrade data packet), such as Figure 3 The first front-stage loading data packet (or upgrade data packet) in the example includes the front-stage loading data block (or upgrade data block) A-1 of "chip 1", the front-stage loading data block (or upgrade data block) B-1 of "chip 2", the front-stage loading data block (or upgrade data block) C-1 of "chip 3", and the front-stage loading data block (or upgrade data block) N-1 of "chip 4", that is, the first front-stage loading data block (or upgrade data block) of chip 1, chip 2, chip 3, and chip 4; as Figure 3The nth front-stage loading data packet (or upgrade data packet) in the example includes the front-stage loading data block (or upgrade data block) An of "chip 1", the front-stage loading data block (or upgrade data block) Bn of "chip 2", the front-stage loading data block (or upgrade data block) Cn of "chip 3", and the front-stage loading data block (or upgrade data block) Nn of "chip 4", that is, the nth front-stage loading data block (or upgrade data block) of chip 1, chip 2, chip 3, and chip 4.

[0083] In this embodiment, each chip type to be upgraded can receive the partial upgrade data currently required, thereby reducing the waiting time for upgrading a single device in the group device upgrade process and improving the efficiency of the group device upgrade.

[0084] It should be noted that, in the specific implementation process, the specific front-end loading data packet (or upgrade data packet) is determined according to the number of blocks of the OTA upgrade package. Figure 2 For example, when Figure 2 The number of blocks shown satisfies: for example, N>C=B>A, that is, chip 4 has the most data blocks, chip 1 has the least data blocks, and chip 2 and chip 3 have equal data blocks. According to the maximum number N of blocks of different devices to be upgraded, the last front-stage loading data packet (or upgrade data packet) obtained by combination is the nth data packet; the number of data blocks in the last front-stage loading data packet (or upgrade data packet) should be less than or equal to the number of data blocks in the 1st to n-1th front-stage loading data packets (or upgrade data packets).

[0085] In order to enable all the devices to be upgraded that join the electronic device cluster at different time periods to be able to perform OTA upgrades, in an optional embodiment, in step S400, multiple front-stage loading data packets are broadcast periodically and cyclically; in step S500, multiple upgrade data packets are broadcast periodically and cyclically. That is, in the process of transmitting N front-stage loading data packets (or upgrade data packets), N front-stage loading data packets (or upgrade data packets) are continuously broadcast in a cycle until the terminals (lower computers) of multiple devices to be upgraded complete the firmware upgrade. With such a setting, on the one hand, all the devices to be upgraded that join the electronic device cluster at different time periods can be upgraded OTA; on the other hand, when some devices to be upgraded fail to receive a front-stage loading data packet (or upgrade data packet) in time, the front-stage loading data packet (or upgrade data packet) can be re-received when the next broadcast arrives.

[0086] In order to reduce the waiting time for upgrading a single device in the process of upgrading a group of devices and improve the efficiency of upgrading a group of devices, in an optional embodiment, in the process of executing step S400 to broadcast the current front-stage loading data packet, in step S310, the next front-stage loading data packet is merged so that adjacent front-stage loading data packets are broadcast at intervals of a preset time length; and / or, in the process of executing step S400 to broadcast the current front-stage loading data packet, in step S310, the next front-stage loading data packet is merged so that adjacent front-stage loading data packets are broadcast at intervals of a preset time length. That is, the front-stage loading data packet (or upgrade data packet) is broadcast at intervals, and specifically, the unit front-stage loading data packet (or upgrade data packet) can be used as the preset time interval.

[0087] In this embodiment, multiple receiving ends of devices to be upgraded are unpacked and merged with the same sequence blocks to obtain the first front-stage loading data packet (or upgrade data packet), the second front-stage loading data packet (or upgrade data packet), and the nth front-stage loading data packet (or upgrade data packet). The front-stage loading data blocks (or upgrade data blocks) required to upgrade the chips in each device to be upgraded are merged into a front-stage loading data packet (or upgrade data packet) for transmission, and the interval time of each front-stage loading data packet (or upgrade data packet) is realized. Each chip type to be upgraded can receive the currently required upgrade part data, thereby reducing the waiting time for the upgrade of a single device in the group device upgrade process and improving the efficiency of the group device upgrade. In this embodiment, the interval time of the so-called broadcast data packet is the time when each chip can receive the upgrade data.

[0088] In the specific implementation process, the upgrade data can be received in time-sharing or simultaneously according to the number of chips configured in the device to be upgraded. There are two specific situations: the first is that the host computer is dual-antenna transmitting, and each chip of the lower computer system is dual-chip receiving; the second is that the host computer is dual-antenna transmitting, and each chip of the lower computer system is single-chip receiving. The details are as follows:

[0089] In one embodiment, please refer to Figure 4 , Figure 4 FIG. 1 is a timing diagram of a dual-chip receiving example of a broadcast data packet disclosed in this embodiment. Figure 4As shown, the host computer is a dual-antenna transmitter, and each chip of the lower computer system is a dual-chip receiver. In a specific embodiment, the dual chip can be two chips in form, or two independent Bluetooth modules in a single chip. Specifically, at time T0, the first Bluetooth module and the second Bluetooth module are respectively wirelessly broadcast to send the first front-stage loading data packet and the first upgrade data packet at the same time, and the device to be upgraded (device 1, device 2, device 3, device N) uses the dual chip to receive the first front-stage loading data packet and the first upgrade data packet at the same time in the first transmission interval. The transmission interval can be 2 time slots, or 3 time slots, etc., and the number of time slots is allocated according to different data packet lengths; at time T1, the second front-stage loading data packet and the second upgrade data packet are respectively wirelessly broadcast to send the second front-stage loading data packet and the second upgrade data packet at the same time through the first Bluetooth module and the second Bluetooth module, and the device to be upgraded (device 1, device 2, device 3, device N) uses the dual chip to receive the second front-stage loading data packet and the second upgrade data packet at the same time in the second transmission interval; at time T2, the first Bluetooth module The first Bluetooth module and the second Bluetooth module respectively wirelessly broadcast and send the third front-stage loading data packet and the third upgrade data packet at the same time, and the devices to be upgraded (device 1, device 2, device 3, device N) use the dual chips to receive the third front-stage loading data packet and the third upgrade data packet at the same time in the third transmission interval; by analogy, at time Tn-1, the nth front-stage loading data packet and the nth upgrade data packet are respectively wirelessly broadcast and sent by the first Bluetooth module and the second Bluetooth module, and the devices to be upgraded (device 1, device 2, device 3, device N) use the dual chips to receive the nth front-stage loading data packet and the nth upgrade data packet at the same time in the nth transmission interval; the upper computer performs dual-chip wireless broadcasting at the same time, and the chips to be upgraded of the lower computer receive the front-stage loading data packet and the upgrade data packet in parallel at the same time, thereby achieving the effect of rapid upgrade of multi-chip groups.

[0090] In another embodiment, please refer to Figure 5 , Figure 5 FIG. 1 is a timing diagram of a single chip receiving an example of a broadcast data packet disclosed in this embodiment. Figure 5 As shown, the host computer has dual antennas for transmission, and each chip of the lower computer system has single chip for reception, that is, each device to be upgraded in the lower computer system has only one Bluetooth module.

[0091] Specifically, at time T0, the first front-stage loading data packet and the first upgrade data packet are wirelessly broadcast and sent simultaneously through the first Bluetooth module and the second Bluetooth module respectively, and the devices to be upgraded (device 1, device 2, device 3, device N) receive the first front-stage loading data packet in the first transmission interval, and receive the first upgrade data packet in the second transmission interval. The transmission interval can be 2 time slots, or 3 time slots, etc., and the number of time slots is allocated according to different data packet lengths; at time T1, the second front-stage loading data packet and the second upgrade data packet are wirelessly broadcast and sent simultaneously through the first Bluetooth module and the second Bluetooth module respectively, and the devices to be upgraded (device 1, device 2, device 3, device N) receive the second front-stage loading data packet in the third transmission interval, and receive the second upgrade data packet in the fourth transmission interval. The second upgrade data packet is received at the transmission interval; at time T2, the third pre-stage loading data packet and the third upgrade data packet are wirelessly broadcasted and sent simultaneously through the first Bluetooth module and the second Bluetooth module, and the device to be upgraded (device 1, device 2, device 3, device N) receives the third pre-stage loading data packet at the fifth transmission interval, and receives the third upgrade data packet at the sixth transmission interval; and so on, at time Tn-1, the nth pre-stage loading data packet and the nth upgrade data packet are wirelessly broadcasted and sent simultaneously through the first Bluetooth module and the second Bluetooth module, and the device to be upgraded (device 1, device 2, device 3, device N) receives the nth pre-stage loading data packet at the 2n-1 transmission interval, and receives the nth upgrade data packet at the 2n transmission interval. In this embodiment, by receiving the pre-stage loading data packet and the upgrade data packet in time-sharing, different devices to be upgraded (device 1, device 2, device 3, device N) can receive the corresponding data packets at each transmission interval, thereby achieving the effect of rapid upgrade of multi-chip groups.

[0092] In order to facilitate the identification of the type and data block of the data packet, so as to select the appropriate upgrade data packet at the appropriate progress, in an optional embodiment, the previous-stage loading data packet is loaded with its own data packet sequence number and the upgrade data packet sequence number pointing to the corresponding, so that after the device to be upgraded receives the current previous-stage loading data packet, it receives the corresponding upgrade data packet according to the pointed upgrade data packet sequence number; the upgrade data packet is loaded with its own upgrade data packet sequence number, so that the device to be upgraded selects to receive the upgrade data packet corresponding to the currently received previous-stage loading data packet according to the currently received previous-stage loading data packet, so as to perform data upgrade of the current upgrade data block.

[0093] Specifically, the loader data in the front-stage loading data packet is an intermediate program, which is used as a trigger instruction for program upgrade. When a firmware upgrade is required, the device to be upgraded first obtains the intermediate program, and then uses the data blocks in the upgrade data packet to upgrade the data under the guidance of the intermediate program. The intermediate program is the role of the boot program for upgrading and does not participate in burning. In this embodiment, each front-stage loading data packet is loaded with its own data packet sequence number, so that the device to be upgraded can determine which front-stage loading data packet to receive next time based on the sequence number. For example, if the sequence number of the currently received data packet is n, the next time the front-stage loading data packet is received is the sequence number of n+1; and each front-stage loading data packet is loaded with a corresponding upgrade data packet sequence number, so that the device to be upgraded can receive the corresponding upgrade data packet according to the upgrade data packet sequence number pointed to to adapt to the current progress of the upgrade.

[0094] In the specific implementation process, the first front-stage loading data packet is used to store the data of the first-level loader; the second front-stage loading data packet is used to store the data of the second-level loader; the third front-stage loading data packet and the subsequent n packets all store the data of each sub-module loader, ensuring that in the interval time of each data packet, the chip in each device to be upgraded can receive the upgrade data belonging to the current series.

[0095] During the specific implementation process, each device to be upgraded packages and merges the serial blocks of the corresponding chip. For example, chip 1 obtains the loader data and upgrade data of chip 1 by the previous-stage loading data block and the upgrade data block, and then chip 1 performs firmware upgrade based on the loader data and the upgrade data; chip 2 obtains the loader data and upgrade data of chip 2 by the previous-stage loading data block and the upgrade data block, and then chip 2 performs firmware upgrade based on the loader data and the upgrade data; chip n obtains the loader data and upgrade data of chip n by the previous-stage loading data block and the upgrade data block, and then chip n performs firmware upgrade based on the loader data and the upgrade data, thereby completing the firmware upgrade of multiple devices.

[0096] This embodiment also discloses an OTA upgrade device for an electronic device cluster based on Bluetooth, which is used to provide an upgrade file to the electronic device cluster, so as to perform firmware upgrade on the chips in each device to be upgraded in the electronic device cluster. Figure 6 , Figure 6 The present invention discloses a schematic diagram of a Bluetooth-based OTA upgrade device for electronic device clusters. The device includes an upgrade package acquisition module 100, a program extraction module 200, a program division module 300, a first broadcast module 400, and a second broadcast module 500, wherein:

[0097] The upgrade package acquisition module 100 is used to acquire OTA upgrade packages corresponding to various types of chips according to the chip type of the device to be upgraded;

[0098] The program extraction module 200 is used to extract the front-end loader and the upgrade data program for each OTA upgrade package, and the upgrade data program is used to erase the original software in the corresponding chip to upgrade the firmware in the corresponding chip;

[0099] The program division module 300 is used to divide the front-stage loading program into a plurality of front-stage loading data blocks in sequence and divide the upgrade data program into a plurality of upgrade data blocks in sequence for each OTA upgrade package;

[0100] The first broadcast module 400 is used to broadcast a plurality of pre-stage loading data blocks in sequence and in a loop by using the first Bluetooth module, so that the upgraded device to be upgraded receives the pre-stage loading data blocks in a corresponding sequence according to its own upgrade progress;

[0101] The second broadcast module 500 is used to broadcast a number of upgrade data blocks in sequence and in a loop by using the second Bluetooth module, so that the device to be upgraded receives the corresponding upgrade data block according to the current previous stage loading data block index to perform the current firmware upgrade.

[0102] In an optional embodiment, in the upgrade package acquisition module 100, the number of extracted OTA upgrade packages is multiple, corresponding to different types of devices to be upgraded; the device also includes:

[0103] A first merging module is used to merge the front-stage loading data blocks of the same sequence of different types of OTA upgrade packages into one front-stage loading data packet to obtain a plurality of sequentially arranged front-stage loading data packets;

[0104] A second merging module is used to merge upgrade data blocks of the same sequence of different types of OTA upgrade packages into one upgrade data packet to obtain multiple upgrade data packets arranged in sequence;

[0105] In the first broadcast module 400, a plurality of front-stage loading data packets are broadcasted in sequence using the first Bluetooth module;

[0106] In the second broadcast module 500, a second Bluetooth module is utilized to broadcast a plurality of upgrade data packets in sequence.

[0107] In an optional embodiment, in the first broadcast module 400, a plurality of front-stage loading data packets are broadcasted periodically and cyclically;

[0108] In the second broadcast module 500, a plurality of upgrade data packets are broadcasted periodically and cyclically.

[0109] In an optional embodiment, during the process of executing the first broadcast module 400 to broadcast the current front-stage loading data packet, in the first merging module, the next front-stage loading data packet is merged so that adjacent front-stage loading data packets are broadcast at intervals of a preset time length; and / or,

[0110] During the process of executing the second broadcasting module 500 to broadcast the current previous stage loading data packet, the next previous stage loading data packet is merged in the second merging module, so that adjacent previous stage loading data packets are broadcast at intervals of a preset time length.

[0111] In an optional embodiment, the previous loading data packet is loaded with its own data packet sequence number and the upgrade data packet sequence number pointed to, so that after the device to be upgraded receives the current previous loading data packet, it receives the corresponding upgrade data packet according to the upgrade data packet sequence number pointed to;

[0112] The upgrade data packet is loaded with its own upgrade data packet sequence number, so that the device to be upgraded selects to receive the upgrade data packet corresponding to the currently received previous loading data packet according to the currently received previous loading data packet, so as to upgrade the data of the current upgrade data block.

[0113] In an optional embodiment, the first Bluetooth module and the second Bluetooth module are independent hardware, the first Bluetooth module is dedicated to broadcasting a number of pre-loaded data blocks, and the second Bluetooth module is dedicated to broadcasting a number of upgrade data blocks.

[0114] In an optional embodiment, the number of electronic devices in the electronic device cluster is greater than 1000.

[0115] This embodiment also discloses a Bluetooth-based electronic device cluster OTA upgrade device, including:

[0116] The electronic device cluster is OTA upgraded by using the method disclosed in the above embodiment, or includes the device disclosed in the above embodiment.

[0117] This embodiment also discloses a host computer chip for OTA upgrade, which has an integrated circuit thereon, and the integrated circuit is designed to implement the method disclosed in the above embodiment.

[0118] In an optional embodiment, a first Bluetooth chip and a second Bluetooth chip are integrated thereon, for implementing the first Bluetooth module and the second Bluetooth module respectively.

[0119] This embodiment also discloses a Bluetooth-based electronic device cluster OTA upgrade system, including:

[0120] The host device uses the method disclosed in the above embodiment to perform OTA upgrade on the electronic device cluster, or includes the device disclosed in the above embodiment.

[0121] According to an OTA upgrade method, device and system of an electronic device cluster based on Bluetooth implementation disclosed in an embodiment of the present invention, an OTA upgrade package corresponding to each type of chip is obtained according to the chip type of the device to be upgraded in the electronic device cluster, and then a pre-loader and an upgrade data program are extracted respectively, and the pre-loader is divided into several pre-loader data blocks in sequence, and the upgrade data program is divided into several upgrade data blocks in sequence, so that the pre-loader and upgrade data programs with larger data are split into several pre-loader data blocks and upgrade data blocks with smaller data, and then several pre-loader data blocks and several upgrade data blocks are broadcasted in sequence by the first Bluetooth module and the second Bluetooth module respectively, so that each device in the electronic device cluster can synchronously receive the corresponding pre-loader data blocks and upgrade data blocks to complete its own firmware upgrade. And because the first Bluetooth module and the second Bluetooth module are broadcasted in sequence, therefore, no matter when the device to be upgraded in the electronic device cluster is joined, the data block corresponding to its current state can be obtained, that is, each device to be upgraded can choose to receive the data block corresponding to the current progress according to its own upgrade progress. Thus, the upgrade efficiency of the electronic device cluster (especially when the number of electronic devices is large) is improved.

[0122] Compared with the traditional upgrade method, because this upgrade method uses broadcasting for upgrade, there will be no interaction except for the moment of triggering the upgrade, so one host computer can realize batch upgrade of multiple devices to be upgraded. From a macro perspective, the efficiency of batch upgrade can be greatly improved by increasing the number of upgraded devices, and different types of chips can be upgraded at the same time, greatly improving the efficiency of batch upgrade. In the specific implementation process, it also has the following advantages:

[0123] 1. Support independent development of different functional modules. Because the traditional loader is split into different sub-modules, each module can be developed and maintained at the same time, and this method can also better add new modules. It will be more convenient to upgrade and manage different functional modules, and partial firmware upgrades can be achieved as needed.

[0124] 2. Through dual Bluetooth modules, loader data (pre-loader) and functional upgrade data (upgrade data program) are broadcasted and transmitted simultaneously to achieve rapid upgrade of multiple embedded devices.

[0125] 3. By splitting the loader data (pre-loader) and functional upgrade data (upgrade data program), and combining the same-level loaders of different series of chips to be upgraded, the waiting time for upgrading a single device in the multi-device upgrade process can be reduced, thereby improving the overall efficiency of multi-device upgrades.

[0126] 4. Save flash space. This solution can transmit the first-level loader data each time. It splits the traditional loader (intermediate program) into multiple different function point programs, and broadcasts each function point program in separate packages. Because only the first-level loader occupies flash space each time, it can save flash space to the greatest extent.

[0127] 5. Improve RAM resource utilization. Compared with traditional loaders, this solution will only have a primary loader, a secondary loader, and a sub-module loader for a certain function in the RAM each time. This will significantly optimize the flash resources and RAM resources of the chip, ensuring that each sub-module has more RAM resources available to a greater extent, and will also enable better management of development and maintenance.

[0128] In addition, the present invention also provides a computer-readable storage medium, such as a chip, a CD, etc., on which an execution program is stored, and when the execution program is executed, any of the methods described above is implemented.

[0129] It should be noted that the computer-readable storage medium described in the embodiments of the present disclosure is not limited to the above-mentioned embodiments, and may also be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.

[0130] It will be appreciated by those skilled in the art that, under the premise of no conflict, the above-mentioned preferred solutions can be freely combined and superimposed. Among them, the flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings, for example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. The numbering of each step in this article is only for the convenience of description and reference, and is not used to limit the order of execution. The specific execution order is determined by the technology itself, and those skilled in the art can determine various allowable and reasonable orders based on the technology itself.

[0131] It should be noted that the use of step numbers (letters or numbers) to refer to certain specific method steps in the present invention is only for the purpose of convenience and brevity of description, and is by no means intended to limit the order of these method steps by letters or numbers. Those skilled in the art will understand that the order of the relevant method steps should be determined by the technology itself and should not be inappropriately limited by the existence of step numbers. Those skilled in the art can determine various permissible and reasonable step orders based on the technology itself.

[0132] Those skilled in the art will appreciate that, without conflict, the above-mentioned preferred solutions can be freely combined and superimposed.

[0133] It should be understood that the above-mentioned embodiments are merely illustrative and not restrictive. Without departing from the basic principles of the present invention, various obvious or equivalent modifications or substitutions that can be made by those skilled in the art to the above-mentioned details will all be included in the scope of the claims of the present invention.

Claims

1. An OTA upgrade method for an electronic device cluster based on Bluetooth, which is used to provide an upgrade file to an electronic device cluster, so as to perform firmware upgrade on the chips in each device to be upgraded in the electronic device cluster respectively. It is characterized in that The method comprises: Step S100, obtaining OTA upgrade packages corresponding to various types of chips according to the chip type of the device to be upgraded; Step S200, for each OTA upgrade package, extracting a front-end loader and an upgrade data program respectively, wherein the upgrade data program is used to erase the original software in the corresponding chip to upgrade the firmware in the corresponding chip; Step S300, for each OTA upgrade package, the front-stage loading program is sequentially divided into a plurality of front-stage loading data blocks, and the upgrade data program is sequentially divided into a plurality of upgrade data blocks; Step S400, using the first Bluetooth module to cyclically broadcast the plurality of front-stage loading data blocks in sequence, so that the device to be upgraded receives the front-stage loading data blocks in a corresponding sequence according to its own upgrade progress; Step S500: using the second Bluetooth module to broadcast the plurality of upgrade data blocks in sequence and in a loop, so that the device to be upgraded receives the corresponding upgrade data block according to the current previous stage loading data block index to perform the current firmware upgrade.

2. The method for OTA upgrading electronic equipment cluster based on Bluetooth as claimed in claim 1, It is characterized in that In the step S100, the number of extracted OTA upgrade packages is multiple, corresponding to different types of devices to be upgraded; Between step S300, step S400 and step S500, the method further includes: Step S310, merging the front-stage loading data blocks of the same sequence of different types of OTA upgrade packages into one front-stage loading data packet to obtain a plurality of sequentially arranged front-stage loading data packets; Step S320, merging upgrade data blocks of the same sequence of different types of OTA upgrade packages into one upgrade data packet to obtain a plurality of sequentially arranged upgrade data packets; In the step S400, the first Bluetooth module is used to broadcast a plurality of the front-stage loading data packets in sequence; In the step S500, the second Bluetooth module is used to broadcast a plurality of the upgrade data packets in sequence.

3. The method for OTA upgrading electronic equipment cluster based on Bluetooth as claimed in claim 2, It is characterized in that In the step S400, a plurality of the preceding loading data packets are broadcasted periodically and cyclically; In the step S500, a plurality of the upgrade data packets are broadcasted periodically and cyclically.

4. The method for OTA upgrading electronic equipment cluster based on Bluetooth as claimed in claim 2, It is characterized in that In the process of performing step S400 to broadcast the current previous stage loading data packet, in step S310, the next previous stage loading data packet is merged so that adjacent previous stage loading data packets are broadcast at intervals of a preset time length; and / or, During the process of executing step S400 to broadcast the current previous stage loading data packet, in step S310, the next previous stage loading data packet is merged so that adjacent previous stage loading data packets are broadcast at intervals of a preset time length.

5. The method for OTA upgrading electronic device cluster based on Bluetooth as claimed in any one of claims 2 to 4, It is characterized in that The preceding loading data packet is loaded with its own data packet sequence number and the upgrade data packet sequence number pointed to, so that the device to be upgraded receives the corresponding upgrade data packet according to the upgrade data packet sequence number pointed to after receiving the current preceding loading data packet; The upgrade data packet is loaded with its own upgrade data packet sequence number, so that the device to be upgraded selects to receive the upgrade data packet corresponding to the currently received previous loading data packet according to the currently received previous loading data packet, so as to upgrade the data of the current upgrade data block.

6. The method for OTA upgrading electronic device cluster based on Bluetooth as claimed in any one of claims 1 to 4, It is characterized in that The first Bluetooth module and the second Bluetooth module are independent hardware. The first Bluetooth module is dedicated to broadcasting the plurality of pre-stage loading data blocks, and the second Bluetooth module is dedicated to broadcasting the plurality of upgrading data blocks.

7. The method for OTA upgrading electronic device cluster based on Bluetooth as claimed in any one of claims 1 to 4, It is characterized in that The number of electronic devices in the electronic device cluster is greater than 1000.

8. An OTA upgrade device for electronic device cluster based on Bluetooth, used to provide an upgrade file to the electronic device cluster, so as to perform firmware upgrade on the chip in each device to be upgraded in the electronic device cluster respectively. It is characterized in that The device comprises: An upgrade package acquisition module (100), used to acquire OTA upgrade packages corresponding to various types of chips according to the chip type of the device to be upgraded; A program extraction module (200) is used to extract a front-end loader and an upgrade data program for each OTA upgrade package, wherein the upgrade data program is used to erase the original software in the corresponding chip to upgrade the firmware in the corresponding chip; A program division module (300) is used to divide the front-stage loading program into a plurality of front-stage loading data blocks in sequence and divide the upgrade data program into a plurality of upgrade data blocks in sequence for each OTA upgrade package; A first broadcast module (400) is used to broadcast the plurality of front-stage loading data blocks in sequence and in a loop using the first Bluetooth module, so that the device to be upgraded receives the front-stage loading data blocks in a corresponding sequence according to its own upgrade progress; The second broadcast module (500) is used to broadcast the plurality of upgrade data blocks in sequence and in a loop using the second Bluetooth module, so that the device to be upgraded receives the corresponding upgrade data block according to the current previous loading data block index to perform the current firmware upgrade.

9. The electronic device cluster OTA upgrade device based on Bluetooth as claimed in claim 8, It is characterized in that In the upgrade package acquisition module (100), the number of extracted OTA upgrade packages is multiple, corresponding to different types of devices to be upgraded respectively; The device also includes: A first merging module is used to merge the front-stage loading data blocks of the same sequence of different types of OTA upgrade packages into one front-stage loading data packet to obtain a plurality of sequentially arranged front-stage loading data packets; A second merging module is used to merge upgrade data blocks of the same sequence of different types of OTA upgrade packages into one upgrade data packet to obtain multiple upgrade data packets arranged in sequence; In the first broadcast module (400), the first Bluetooth module is used to broadcast a plurality of the front-stage loading data packets in sequence; In the second broadcast module (500), the second Bluetooth module is used to broadcast a plurality of upgrade data packets in sequence.

10. The electronic device cluster OTA upgrade device based on Bluetooth as claimed in claim 9, It is characterized in that In the first broadcast module (400), a plurality of the preceding loading data packets are broadcasted periodically and cyclically; In the second broadcast module (500), a plurality of the upgrade data packets are broadcasted periodically and cyclically.

11. The electronic device cluster OTA upgrade device based on Bluetooth as claimed in claim 9, It is characterized in that In the process of executing the first broadcast module (400) to broadcast the current previous stage loading data packet, in the first merging module, the next previous stage loading data packet is merged so that adjacent previous stage loading data packets are broadcast at intervals of a preset time length; and / or, During the process of executing the second broadcast module (500) to broadcast the current previous stage loading data packet, the next previous stage loading data packet is merged in the second merging module so that adjacent previous stage loading data packets are broadcast at intervals of a preset time length.

12. The electronic device cluster OTA upgrade device based on Bluetooth as claimed in any one of claims 9 to 11, It is characterized in that The preceding loading data packet is loaded with its own data packet sequence number and the upgrade data packet sequence number pointed to, so that the device to be upgraded receives the corresponding upgrade data packet according to the upgrade data packet sequence number pointed to after receiving the current preceding loading data packet; The upgrade data packet is loaded with its own upgrade data packet sequence number, so that the device to be upgraded selects to receive the upgrade data packet corresponding to the currently received previous loading data packet according to the currently received previous loading data packet, so as to upgrade the data of the current upgrade data block.

13. The electronic device cluster OTA upgrade device based on Bluetooth as claimed in any one of claims 8 to 11, It is characterized in that The first Bluetooth module and the second Bluetooth module are independent hardware. The first Bluetooth module is dedicated to broadcasting the plurality of pre-stage loading data blocks, and the second Bluetooth module is dedicated to broadcasting the plurality of upgrading data blocks.

14. The electronic device cluster OTA upgrade device based on Bluetooth as claimed in any one of claims 8 to 11, It is characterized in that The number of electronic devices in the electronic device cluster is greater than 1000.

15. An electronic equipment cluster OTA upgrade device based on Bluetooth, It is characterized in that include: An electronic device cluster is OTA upgraded using the method described in any one of claims 1 to 7, or includes an apparatus described in any one of claims 8 to 14.

16. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The computer program stored in the storage medium is used to be executed by a processor to implement the method according to any one of claims 1 to 7.

17. A host computer chip for OTA upgrade, having an integrated circuit thereon, It is characterized in that The integrated circuit is designed to implement the method according to any one of claims 1-7.

18. The host computer chip for OTA upgrade according to claim 17, It is characterized in that A first Bluetooth chip and a second Bluetooth chip are integrated thereon, for implementing the first Bluetooth module and the second Bluetooth module respectively.

19. An electronic equipment cluster OTA upgrade system based on Bluetooth, include: A host device, using the method described in any one of claims 1-7 to perform OTA upgrade on an electronic device cluster, or including the apparatus described in any one of claims 8-14.