OTA upgrading method and device and Bluetooth equipment
By implanting the L2CAP protocol in the Bootloader program, Bluetooth devices transmit wireless data with the host computer based on the L2CAP protocol, solving the problem of reserved backup space in the existing technology, and achieving simplification of resource saving and upgrading process.
Patent Information
- Application Number
- CN202510332796.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-03-20
AI Technical Summary
When upgrading existing Bluetooth consumer electronic products, backup space is required to reserve when upgrading OTA, resulting in wasting MCU resources. The upgrade process relies on the original firmware and cannot be directly covered.
The L2CAP protocol is implanted in the Bootloader program. The Bluetooth device transmits wireless data with the host computer based on the L2CAP protocol, obtains new firmware, and directly covers the original firmware in the original firmware storage area.
It enables OTA upgrades to be completed without reserved backup space, saves MCU resources, and simplifies the upgrade process by directly covering the original firmware.
Smart Images

Figure CN119847572A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to Bluetooth technology, and in particular to an OTA upgrade method, apparatus and Bluetooth device. Background Art
[0002] In the field of consumer electronics, especially in the field of small consumer electronics, the resources of MCU directly determine the price of the product. However, in order to meet the increasingly changing market environment, current products cannot make too many cuts in terms of functions, so it is necessary to strike a balance between functional diversity and cost, and the OTA upgrade function is an indispensable function for current Bluetooth consumer electronics products.
[0003] The full name of the OTA upgrade function is Over-The-Air technology, or simply air download technology. The firmware running in the device is downloaded from the cloud to the local device through the SPP protocol in Bluetooth technology, and replaces the original firmware in the device. In this process, a free Flash area needs to be opened in advance to store the new firmware obtained from the cloud. After the new firmware is downloaded, it is moved through Bootloader to update the software of the current device. This function is used to update product functions and solve fatal problems of products, so that products can be more competitive in the market. The core of the above solution is the SPP protocol (Serial Port Profile) in Bluetooth technology, which is based on the RFCOMM protocol (Radio Frequency Communication) of the Bluetooth base layer. It is an upper-layer service in Bluetooth technology, which relies on a complete Bluetooth protocol. Therefore, the premise for implementing this solution is that the original firmware must contain a complete set of Bluetooth protocols. However, the Bootloader program (boot loader) is small and cannot fully accommodate and run the complete set of Bluetooth protocols, which results in the wireless transmission only being able to run in the original firmware program. Therefore, the original firmware cannot be directly skipped during the upgrade process, and a new area can only be opened up in the MCU to store the new firmware.
[0004] While the OTA upgrade function itself brings portability, it also requires additional MCU resources, resulting in an increase in product costs. However, the reserved backup space during the OTA upgrade process is useless in non-OTA situations, so it will lead to a waste of resources in non-OTA situations. Summary of the invention
[0005] The present application provides an OTA upgrade method, apparatus and Bluetooth device.
[0006] According to a first aspect of the present application, the present application provides an OTA upgrade method, comprising: After the Bluetooth device obtains the information that the host computer has new firmware available for upgrade, it disconnects the current connection; The Bluetooth device is started from a Bootloader program, in which the L2CAP protocol is implanted, and the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in the storage area of the original firmware; The Bluetooth device boots from the new firmware, completing the upgrade process.
[0007] In the method involved in the present application, the Bluetooth device is started from the Bootloader program, the L2CAP protocol is implanted in the Bootloader program, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in the storage area of the original firmware, including: A transmission flag is set in the Bootloader program, and the Bootloader program is controlled to start from the transmission flag; The Bluetooth device enters a connectable state, and after successfully connecting to the host computer, enters data download to obtain the new firmware; The Bootloader program deletes the original firmware stored in the MCU and stores the new firmware in the storage area of the original firmware.
[0008] In the method involved in the present application, the Bluetooth device is started from the Bootloader program, the L2CAP protocol is implanted in the Bootloader program, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in the storage area of the original firmware, and also includes: The Bluetooth device sends instructions to negotiate with the host computer according to a private protocol to obtain verification information of the new firmware, wherein the verification information includes a verification code and a firmware length; After the new firmware is downloaded, the Bootloader program performs an integrity check on the new firmware according to the verification information.
[0009] In the method involved in the present application, the Bluetooth device is started from the Bootloader program, the L2CAP protocol is implanted in the Bootloader program, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in the storage area of the original firmware, and also includes: After the Bootloader program performs integrity check on the new firmware, if it is found that the new firmware is abnormal, the Bluetooth device re-downloads the new firmware.
[0010] In the method involved in this application, after the Bluetooth device obtains information that the host computer has new firmware available for upgrading, it disconnects the current connection, including: After the Bluetooth device is started from the original firmware, it is connected to the host computer; After the Bluetooth device obtains information that the host computer has new firmware available for upgrade, it negotiates with the host computer to enter OTA upgrade; The Bluetooth device notifies the host computer to disconnect and reconnect the Bluetooth device at a predetermined time.
[0011] According to a second aspect of the present application, the present application provides an OTA upgrade device, including: The communication module is used to obtain information that the host computer has new firmware available for upgrade and then disconnect the current connection; A processing module, used to start from a Bootloader program, wherein the Bootloader program is implanted with an L2CAP protocol, perform wireless data transmission with the host computer based on the L2CAP protocol, obtain the new firmware, delete the original firmware stored in the MCU, and store the new firmware in a storage area of the original firmware; The upgrade module is used to start from the new firmware to complete the upgrade process.
[0012] In the device involved in this application, the processing module includes: A setting unit, used for setting a transmission flag bit in the Bootloader program, and controlling the Bootloader program to start from the transmission flag bit; A download unit, used to enable the Bluetooth device to enter a connectable state, and after successfully connecting to the host computer, enter data downloading to obtain the new firmware; The processing unit is used to delete the original firmware stored in the MCU and store the new firmware in the storage area of the original firmware.
[0013] In the device involved in this application, the communication module includes: A connection unit, used to connect to the host computer after starting from the original firmware; A negotiation unit, configured to negotiate with the host computer to enter OTA upgrade after obtaining information that the host computer has new firmware available for upgrade; The communication unit is used to notify the host computer to disconnect and reconnect the Bluetooth device at a predetermined time.
[0014] According to a third aspect of the present application, the present application provides an OTA upgrade device, including: Memory, used to store programs, The processor is used to execute the program stored in the memory to implement the method as described above.
[0015] According to a fourth aspect of the present application, the present application provides a Bluetooth device, including: Memory, used to store programs, The processor is used to execute the program stored in the memory to implement the method as described above.
[0016] Due to the adoption of the above technical solution, the beneficial effects of this application are: The OTA upgrade method provided in the embodiment of the present application includes: after the Bluetooth device obtains the information that the host computer has new firmware available for upgrade, it disconnects the current connection; the Bluetooth device starts from the Bootloader program, and the L2CAP protocol is implanted in the Bootloader program; the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, and deletes the original firmware stored in the MCU at the same time, and stores the new firmware in the storage area of the original firmware; the Bluetooth device starts from the new firmware to complete the upgrade process. In the present application, since the L2CAP protocol is implanted in the Bootloader program, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol without going through the original firmware, so the original firmware can be directly overwritten without reserving a backup area, thereby saving MCU resources. In addition, since the L2CAP protocol is the underlying program in Bluetooth and does not rely on the complete Bluetooth protocol, the program can be small enough to be stored in the Bootloader program, thereby further reducing the storage space occupied in the MCU. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flowchart of an OTA upgrade method provided in an embodiment of the present application in one implementation manner; Figure 2 A flowchart of another implementation of the OTA upgrade method provided in an embodiment of the present application; Figure 3 A flowchart of another implementation of the OTA upgrade method provided in an embodiment of the present application; Figure 4 A schematic diagram of a program module of an OTA upgrade device provided in an embodiment of the present application in one implementation manner; Figure 5 A schematic diagram of program modules of the OTA upgrade device provided in an embodiment of the present application in another implementation manner. DETAILED DESCRIPTION
[0018] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.
[0019] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.
[0020] The serial numbers assigned to the components in this article, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning.
[0021] In addition, the technical features and technical solutions described herein may be combined in any suitable manner in one or more embodiments. It is easy for a person skilled in the art to understand that the steps or operation sequence of the methods related to the embodiments provided herein may also be changed. Therefore, any sequence in the drawings and embodiments is only for illustrative purposes and does not imply a requirement to follow a certain sequence unless it is explicitly stated that a certain sequence is required.
[0022] The Bluetooth devices involved in this application include Bluetooth headsets, Bluetooth speakers, Bluetooth glasses, smart watches, smart bracelets, Bluetooth sensors, Bluetooth controllers, and mobile phones and tablets connected using Bluetooth.
[0023] like Figure 1As shown, the OTA upgrade method provided in the embodiment of the present application, one implementation manner thereof, includes the following steps: Step 101: After the Bluetooth device obtains information that the host computer has new firmware available for upgrading, it disconnects the current connection.
[0024] Start the Bluetooth device, connect to the host computer, obtain information that new firmware is available for upgrade, and then disconnect the current connection. The Bluetooth device negotiates with the host computer to enter OTA upgrade, and notifies the host computer to disconnect the current connection, and reconnect the current Bluetooth device after a predetermined time.
[0025] Step 102: The Bluetooth device starts from the Bootloader program. The L2CAP protocol is implanted in the Bootloader program. The Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol to obtain new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in the storage area of the original firmware.
[0026] After the Bluetooth device is started from the Bootloader program, it waits for the host computer to connect. After the connection is successful, the protocol interaction before the upgrade is carried out through the L2CAP protocol (Logical link control and adaptation layer protocol). The Bootloader program controls the Bluetooth device and the host computer to perform wireless data transmission, obtains the new firmware of the host computer, deletes the original firmware, and stores the new firmware in the original firmware area.
[0027] The L2CAP protocol is the underlying protocol of Bluetooth. The data of the upper layer services must be encapsulated by the L2CAP layer and then sent by BTC (Bluetooth Controller). Therefore, this application can directly parse the data at the L2CAP layer without going through the upper layer services (SPP\HFP, etc.). This part of the underlying program occupies very little space, so it can be directly stored in the Bootloader.
[0028] The OTA upgrade in the existing technology needs to download the new firmware from the cloud through the SPP protocol in Bluetooth technology. The SPP protocol is based on the RFCOMM protocol of the Bluetooth base layer and is an upper-layer service in Bluetooth technology. This service relies on the complete Bluetooth protocol. For example, a complete set of Bluetooth protocol code occupies 800KB of space, but the L2CAP protocol code that only includes the underlying Bluetooth service only requires 80k, which can greatly reduce the storage space occupied in the MCU.
[0029] The reason why the OTA upgrade function of current Bluetooth consumer electronic products needs to reserve a backup area is that the wireless transmission function needs to be performed through the original firmware, which makes it impossible to overwrite the original firmware during the OTA upgrade process. Therefore, the only solution is to reserve a backup area. In this application, since the L2CAP protocol is embedded in the Bootloader program, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, so the original firmware can be directly overwritten without reserving a backup area, thereby achieving the purpose of saving MCU data.
[0030] Step 103: The Bluetooth device boots from the new firmware, completing the upgrade process.
[0031] like Figure 2 As shown, step 101 may specifically include the following steps: Step 1011: After the Bluetooth device is started from the original firmware, it connects to the host computer.
[0032] Step 1012: After the Bluetooth device obtains the information that the host computer has new firmware available for upgrading, it negotiates with the host computer to start OTA upgrading.
[0033] Step 1013: The Bluetooth device notifies the host computer to disconnect and reconnect the Bluetooth device at a predetermined time. The predetermined time is an empirical value and can be set as needed. In one implementation, the predetermined time is 5 seconds.
[0034] like Figure 3 As shown, step 102 may include the following steps: Step 1021: setting a transmission flag in the Bootloader program, and controlling the Bootloader program to start from the transmission flag; Step 1022: The Bluetooth device enters a connectable state, and after successfully connecting to the host computer, enters data download to obtain new firmware; Step 1023: The Bootloader program deletes the original firmware stored in the MCU and stores the new firmware in the storage area of the original firmware.
[0035] In one implementation, step 102 may further include the following steps: The Bluetooth device sends instructions to negotiate with the host computer according to the private protocol to obtain the verification information of the new firmware. The verification information includes the verification code and the firmware length. After the new firmware is downloaded, the Bootloader program performs an integrity check on the new firmware based on the verification information.
[0036] In one implementation, step 102 may further include the following steps: After the Bootloader program performs integrity check on the new firmware, if it is found that the new firmware has an abnormality, the Bluetooth device re-downloads the new firmware.
[0037] Set the transmission flag in the Bootloader program, and the APP can control the headset to start from the transmission flag of the Bootloader. In the embodiment of the present application, the Bootloader can be controlled by the APP to start from the transmission flag. After the Bluetooth device enters the Bootloader program, it first initializes the hardware, then determines whether the system is started from the transmission flag and initializes the Bluetooth protocol, controls the headset to enter a connectable state and waits for the connection of the host computer, and after the connection is successful. According to the private protocol, send instructions to negotiate with the host computer to obtain the verification code, firmware length and other information of the new firmware, and then send instructions to request to enter the data packet download. The single package data will also be verified synchronously during the download process. After the new firmware is downloaded, the Bootloader verifies the entire package of new firmware to ensure the integrity of the new firmware package.
[0038] like Figure 4 As shown, an embodiment of the present application provides an OTA upgrade device, one implementation of which may include a communication module 410, a processing module 420 and an upgrade module 430.
[0039] The communication module 410 is used to disconnect the current connection after obtaining the information that the host computer has new firmware available for upgrading.
[0040] The OTA upgrade method provided in the embodiment of the present application includes: after the Bluetooth device obtains the information that the host computer has new firmware available for upgrade, it disconnects the current connection; the Bluetooth device starts from the Bootloader program, and the L2CAP protocol is implanted in the Bootloader program; the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, and deletes the original firmware stored in the MCU at the same time, and stores the new firmware in the storage area of the original firmware; the Bluetooth device starts from the new firmware to complete the upgrade process. In the present application, since the L2CAP protocol is implanted in the Bootloader program, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol without going through the original firmware, so the original firmware can be directly overwritten without reserving a backup area, thereby saving MCU resources. In addition, since the L2CAP protocol is the underlying program in Bluetooth and does not rely on the complete Bluetooth protocol, the program can be small enough to be stored in the Bootloader program, thereby further reducing the storage space occupied in the MCU.
[0041] The processing module 420 is used to start from the Bootloader program, implant the L2CAP protocol in the Bootloader program, perform wireless data transmission with the host computer based on the L2CAP protocol, obtain new firmware, delete the original firmware stored in the MCU, and store the new firmware in the storage area of the original firmware.
[0042] After the Bluetooth device is started from the Bootloader program, it waits for the host computer to connect. After the connection is successful, the protocol interaction before the upgrade is carried out through the L2CAP protocol. The Bootloader program controls the Bluetooth device and the host computer to perform wireless data transmission, obtains the new firmware of the host computer, deletes the original firmware, and stores the new firmware in the original firmware area.
[0043] The L2CAP protocol is the underlying protocol of Bluetooth. The data of the upper layer services must be encapsulated by the L2CAP layer and then sent by BTC (Bluetooth Controller). Therefore, this application can directly parse the data at the L2CAP layer without going through the upper layer services (SPP\HFP, etc.). This part of the underlying program occupies very little space, so it can be directly stored in the Bootloader.
[0044] The OTA upgrade in the existing technology needs to download the new firmware from the cloud through the SPP protocol in Bluetooth technology. The SPP protocol is based on the RFCOMM protocol of the Bluetooth base layer and is an upper-layer service in Bluetooth technology. This service relies on the complete Bluetooth protocol. For example, a complete set of Bluetooth protocol code occupies 800KB of space, but the L2CAP protocol code that only includes the underlying Bluetooth service only requires 80k, which can greatly reduce the storage space occupied in the MCU.
[0045] The reason why the OTA upgrade function of current Bluetooth consumer electronic products needs to reserve a backup area is that the wireless transmission function needs to be performed through the original firmware, which makes it impossible to overwrite the original firmware during the OTA upgrade process. Therefore, the only solution is to reserve a backup area. In this application, since the L2CAP protocol is embedded in the Bootloader program, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, so the original firmware can be directly overwritten without reserving a backup area, thereby achieving the purpose of saving MCU data.
[0046] The upgrade module 430 is used to start from the new firmware and complete the upgrade process.
[0047] like Figure 5 As shown, in the OTA upgrade device provided in the embodiment of the present application, the processing module 420 may include: A setting unit 421, used to set a transmission flag in the Bootloader program, and control the Bootloader program to start from the transmission flag; The download unit 422 is used to make the Bluetooth device enter a connectable state, and after successfully connecting to the host computer, enter data download to obtain new firmware; The processing unit 423 is used to delete the original firmware stored in the MCU and store the new firmware in the storage area of the original firmware.
[0048] In one implementation, the communication module 410 may include: A connection unit 411 is used to connect to a host computer after starting from the original firmware; The negotiation unit 412 is used to negotiate with the host computer to enter OTA upgrade after obtaining information that the host computer has new firmware available for upgrade; The communication unit 413 is used to notify the host computer to disconnect and reconnect the Bluetooth device at a predetermined time. The predetermined time is an empirical value and can be set as needed. In one embodiment, the predetermined time is 5S.
[0049] After the Bootloader program performs integrity check on the new firmware, if it is found that the new firmware has an abnormality, the Bluetooth device re-downloads the new firmware.
[0050] Set the transmission flag in the Bootloader program, and the APP can control the headset to start from the transmission flag of the Bootloader. In the embodiment of the present application, the Bootloader can be controlled by the APP to start from the transmission flag. After the Bluetooth device enters the Bootloader program, it first initializes the hardware, then determines whether the system is started from the transmission flag and initializes the Bluetooth protocol, controls the headset to enter a connectable state and waits for the connection of the host computer, and after the connection is successful. According to the private protocol, send instructions to negotiate with the host computer to obtain the verification code, firmware length and other information of the new firmware, and then send instructions to request to enter the data packet download. The single package data will also be verified synchronously during the download process. After the new firmware is downloaded, the Bootloader verifies the entire package of new firmware to ensure the integrity of the new firmware package.
[0051] An embodiment of the present application provides an OTA upgrade device, one implementation of which includes a memory and a processor.
[0052] Memory, used to store programs, The processor is used to execute the program stored in the memory to implement the method as described above.
[0053] An implementation of the Bluetooth device provided in an embodiment of the present application includes a memory and a processor.
[0054] Memory, used to store programs, The processor is used to execute the program stored in the memory to implement the method as described above.
[0055] Those skilled in the art will appreciate that all or part of the steps of the various methods in the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which may include: a read-only memory, a random access memory, a disk or an optical disk, etc.
[0056] The above contents are further detailed descriptions of the present application in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. For ordinary technicians in the technical field to which the present application belongs, several simple deductions or substitutions can be made without departing from the concept of the present application.
Claims
1. An OTA upgrade method, characterized in that ,include: After the Bluetooth device obtains the information that the host computer has new firmware available for upgrade, it disconnects the current connection; The Bluetooth device is started from a Bootloader program, in which the L2CAP protocol is implanted, and the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in the storage area of the original firmware; The Bluetooth device boots from the new firmware, completing the upgrade process.
2. The method according to claim 1, characterized in that The Bluetooth device is started from a Bootloader program, the Bootloader program is implanted with an L2CAP protocol, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in a storage area of the original firmware, including: A transmission flag is set in the Bootloader program, and the Bootloader program is controlled to start from the transmission flag; The Bluetooth device enters a connectable state, and after successfully connecting to the host computer, enters data download to obtain the new firmware; The Bootloader program deletes the original firmware stored in the MCU and stores the new firmware in the storage area of the original firmware.
3. The method according to claim 2, characterized in that The Bluetooth device is started from a Bootloader program, the Bootloader program is implanted with an L2CAP protocol, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in a storage area of the original firmware, and further includes: The Bluetooth device sends instructions to negotiate with the host computer according to a private protocol to obtain verification information of the new firmware, wherein the verification information includes a verification code and a firmware length; After the new firmware is downloaded, the Bootloader program performs an integrity check on the new firmware according to the verification information.
4. The method according to claim 3, characterized in that The Bluetooth device is started from a Bootloader program, the Bootloader program is implanted with an L2CAP protocol, the Bluetooth device performs wireless data transmission with the host computer based on the L2CAP protocol, obtains the new firmware, deletes the original firmware stored in the MCU, and stores the new firmware in a storage area of the original firmware, and further includes: After the Bootloader program performs integrity check on the new firmware, if it is found that the new firmware is abnormal, the Bluetooth device re-downloads the new firmware.
5. The method according to claim 1, characterized in that After the Bluetooth device obtains the information that the host computer has new firmware available for upgrading, it disconnects the current connection, including: After the Bluetooth device is started from the original firmware, it is connected to the host computer; After the Bluetooth device obtains information that the host computer has new firmware available for upgrade, it negotiates with the host computer to enter OTA upgrade; The Bluetooth device notifies the host computer to disconnect and reconnect the Bluetooth device at a predetermined time.
6. An OTA upgrade device, characterized in that ,include: The communication module is used to obtain information that the host computer has new firmware available for upgrade and then disconnect the current connection; A processing module, used to start from a Bootloader program, wherein the Bootloader program is implanted with an L2CAP protocol, perform wireless data transmission with the host computer based on the L2CAP protocol, obtain the new firmware, delete the original firmware stored in the MCU, and store the new firmware in a storage area of the original firmware; The upgrade module is used to start from the new firmware to complete the upgrade process.
7. The device according to claim 6, characterized in that The processing module comprises: A setting unit, used for setting a transmission flag bit in the Bootloader program, and controlling the Bootloader program to start from the transmission flag bit; A download unit, used to enable the Bluetooth device to enter a connectable state, and after successfully connecting to the host computer, enter data downloading to obtain the new firmware; The processing unit is used to delete the original firmware stored in the MCU and store the new firmware in the storage area of the original firmware.
8. The device according to claim 6, characterized in that The communication module comprises: A connection unit, used to connect to the host computer after starting from the original firmware; A negotiation unit, configured to negotiate with the host computer to enter OTA upgrade after obtaining information that the host computer has new firmware available for upgrade; The communication unit is used to notify the host computer to disconnect and reconnect the Bluetooth device at a predetermined time.
9. An OTA upgrade device, characterized in that: include: Memory, used to store programs, A processor, configured to execute the program stored in the memory to implement the method according to any one of claims 1 to 5.
10. A Bluetooth device, characterized in that: include: Memory, used to store programs, A processor, configured to execute the program stored in the memory to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Realization method and system of Bluetooth function under Android recovery mode
CN104572078A
Upgrading method and upgrading control method of Bluetooth device firmware program, and equipment
CN104915237A
OTA upgrading method
CN108446130A