CN114531431A - Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product - Google Patents
Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product Download PDFInfo
- Publication number
- CN114531431A CN114531431A CN202111647175.8A CN202111647175A CN114531431A CN 114531431 A CN114531431 A CN 114531431A CN 202111647175 A CN202111647175 A CN 202111647175A CN 114531431 A CN114531431 A CN 114531431A
- Authority
- CN
- China
- Prior art keywords
- firmware
- equipment
- bluetooth
- host
- slave
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a Bluetooth-based multi-device OTA upgrading method, which comprises the following steps: the host checks whether the server firmware is updated, and if yes, downloads the latest firmware of each device from the server; the method comprises the steps that a host machine and equipment establish Bluetooth connection, and latest firmware version information of all the equipment is sent; if the firmware version received by the slave equipment is newer than the stored firmware version, initiating an upgrading request and starting upgrading; after the slave equipment acquires the latest firmware from the host, switching to a host mode at regular time, connecting equipment which cannot be connected with the host through Bluetooth, and jumping to the step of establishing connection to upgrade the firmware of the connected equipment; and after finishing the OTA task, the equipment switched to the host mode is switched to the slave mode again and connected with the host. The invention can realize the firmware upgrade of all kinds of equipment in the motor home system, and is not limited by the kinds and the quantity of the equipment, the position arrangement in the motor home or the signal shielding.
Description
Technical Field
The invention relates to the technical field of Bluetooth, in particular to a Bluetooth-based multi-device OTA upgrading method, electronic equipment, a storage medium and a program product.
Background
Currently, application software or an upper computer is installed on user equipment, and the application software or the upper computer acquires firmware needing the OTA on a server. And the application software or the upper computer calls different protocol interfaces of the SPP/GATT to transmit to the Bluetooth of the equipment according to the data transmission mode required by the corresponding protocol, and the Bluetooth of the equipment receives the data and then transmits the received OTA data to the MCU of the equipment through the Uart to finish the OTA firmware upgrade of the equipment. Currently, OTA schemes based on bluetooth are all based on the following two points:
1. the devices that need to be upgraded are of the same type;
2. the bluetooth of the host may be connected to each device.
In practice, there are many devices in the caravan system, such as a controller, an inverter, a battery, a DCDC, etc., and there may be many devices in each kind, such as many batteries or controllers. In addition, these devices cannot connect directly to each device on the host due to location deployment or signal occlusion in the caravan, resulting in the inability of current bluetooth-based OTA schemes to be implemented.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a Bluetooth-based multi-device OTA upgrading method, which can realize firmware upgrading of all kinds of devices in a caravan system and is not limited by the kinds and the number of the devices and the position arrangement or signal shielding in the caravan.
The invention provides a Bluetooth-based multi-device OTA (over the air) upgrading method, which comprises the following steps:
checking the firmware version, checking whether the server firmware is updated by the host, and downloading the latest firmware of each device from the server if the server firmware is updated;
establishing connection, establishing Bluetooth connection between the host and the equipment, and sending the latest firmware version information of all the equipment;
firmware upgrading, if the firmware version received from the slave equipment is newer than the stored firmware version, an upgrading request is initiated to start upgrading;
switching a host mode, wherein the slave equipment is switched to the host mode at regular time after acquiring the latest firmware from the host, is connected with equipment which cannot be connected with the host through Bluetooth, and jumps to the connection establishing step to upgrade the firmware of the connected equipment;
and switching the slave mode, and switching the equipment switched to the host mode to the slave mode again after finishing the OTA task and connecting the equipment with the host.
Further, the host and the slave store the firmware and the version information of all types of devices in the bus.
Further, in the step of switching the master mode, after the slave device is switched to the master mode, if the slave device cannot be searched within a preset time, the slave device returns to the slave mode and is connected with the master device.
Further, the firmware header includes a firmware name, a firmware version, and a firmware check.
Further, in the firmware version checking step, the host checks the firmware version from the server at regular time, and downloads the latest firmware of each device from the server if the checked firmware version is newer than the stored firmware version.
Further, in the connection establishing step, the master bluetooth scans the slave, and if a new device is found, the master bluetooth connects to the new device, and sends the latest firmware version information of all devices.
Further, in the firmware upgrading step, if the firmware of the slave device is updated, the device is restarted, and the updated firmware is operated;
in the step of switching the master mode, the equipment switched to the master mode scans the slave through the Bluetooth, if new equipment is found, Bluetooth connection is established with the new equipment, and the latest firmware version information of all the equipment is sent.
An electronic device, comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for performing a bluetooth-based multi-device OTA upgrade method.
A computer-readable storage medium having stored thereon a computer program for execution by a processor of a bluetooth-based multi-device OTA upgrade method.
A computer program product comprising computer programs/instructions which, when executed by a processor, implement a bluetooth-based multi-device OTA upgrade method.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a Bluetooth-based multi-device OTA (over the air) upgrading method, which can be used for upgrading the firmware of all devices of all types on a bus, and upgrading the firmware of other connected slave machines by the slave machine which acquires the latest firmware and version information without the limitation of device position deployment or signal shielding.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to implement them in accordance with the contents of the description, the following detailed description is given with reference to the preferred embodiments of the present invention and the accompanying drawings. The detailed description of the present invention is given in detail by the following examples and the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic distribution diagram of devices in a caravan system according to an embodiment of the present invention;
FIG. 2 is a flowchart of an OTA upgrade method for a device capable of directly connecting to a host according to an embodiment of the present invention;
fig. 3 is a flowchart of an OTA upgrading method for a device that cannot be directly connected to a host according to an embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
As shown in fig. 1, the default bluetooth host in the recreational vehicle system is a central control screen, the central control screen has an internet access function, and the latest firmware of each device can be directly downloaded from an official website, and each device in the central control screen and the system has bluetooth, but because the devices are deployed at positions in the recreational vehicle or are shielded by signals, the bluetooth of the central control screen cannot be directly connected with the bluetooth of each device, and the central control screen in fig. 1 cannot be directly connected to the DCDC and the controller 2.
A bluetooth-based multi-device OTA upgrading method, as shown in fig. 2 and 3, includes the following steps:
each device needs to maintain firmware and version information for all types of devices in the bus, such as the battery in fig. 1, which also maintains firmware for the controller, DCDC. The firmware header comprises a firmware name, a firmware version and a firmware check, wherein the firmware name is used for distinguishing which device the firmware is used for, the firmware version is used for distinguishing a new state from an old state, and the firmware check is used for verifying the correctness of the received firmware.
And checking the firmware version, after hardware such as 4G, Bluetooth and the like is initialized, checking whether the firmware of the server is updated by the host, and downloading the latest firmware of each device from the server if the firmware of each device is updated. Specifically, the host periodically (for example, 60 seconds) checks the firmware version from the server, and downloads the latest firmware of each device from the server if the checked firmware version is newer than the stored firmware version.
And establishing connection, performing Bluetooth scanning on the slave by the host, establishing Bluetooth connection between the host and the scanned equipment, and sending the latest firmware version information of all the equipment. And if the master Bluetooth scans the slave to find new equipment, the master Bluetooth establishes Bluetooth connection with the new equipment and sends the latest firmware version information of all the equipment.
And (3) firmware upgrading, wherein if the firmware version received by the slave equipment is newer than the stored firmware version, an upgrading request is initiated to start upgrading, so that all the equipment directly connected with the host can be upgraded to the latest firmware. And if the self firmware of the slave equipment is updated, restarting the equipment, running the updated firmware, and skipping to the hardware initialization step.
And switching the host mode, wherein the slave equipment is switched to the host mode at regular time after acquiring the latest firmware from the host, if the firmware is acquired once every ten minutes, the equipment switched to the host mode scans the slave through Bluetooth, is connected with the equipment which cannot be connected with the host through the Bluetooth, establishes Bluetooth connection with the new equipment if the new equipment is found, and jumps to the connection establishing step to update the firmware of the connected equipment. For example, after acquiring the latest firmware of the central control screen, the controller 1 in fig. 1 switches to the host mode, connects the DCDC and the controller 2, and updates the firmware of the DCDC and the controller 2, so that the DCDC and the controller 2 can also be upgraded to the latest firmware, and the controller 1 functions as a repeater.
And switching the slave mode, and switching the equipment switched to the host mode to the slave mode again after finishing the OTA task and connecting the equipment with the host. For example, after the firmware of the DCDC and the controller 2 is updated, the controller 1 in fig. 1 is switched to the slave, and is connected to the central control screen, so as to complete other information interaction except for OTA, such as current and voltage reporting. After the slave device is switched to the master mode, if the slave device cannot be searched within a preset time (for example, one minute), the slave device returns to the slave mode and is connected with the master to complete information interaction except for the OTA.
It should be noted that the present invention is different from MESH networking, which has special requirements for bluetooth, and the present invention is applicable to all bluetooth.
An electronic device, comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for performing a bluetooth-based multi-device OTA upgrade method.
A computer-readable storage medium having stored thereon a computer program for execution by a processor of a bluetooth-based multi-device OTA upgrade method.
A computer program product comprising computer programs/instructions which, when executed by a processor, implement a bluetooth-based multi-device OTA upgrade method.
The foregoing is merely a preferred embodiment of the invention and is not intended to limit the invention in any manner; those skilled in the art can readily practice the invention as shown and described in the drawings and detailed description herein; however, those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for carrying out the same purposes of the present invention without departing from the scope of the invention as defined by the appended claims; meanwhile, any changes, modifications, and evolutions of the equivalent changes of the above embodiments according to the actual techniques of the present invention are still within the protection scope of the technical solution of the present invention.
Claims (10)
1. A multi-device OTA upgrading method based on Bluetooth is characterized by comprising the following steps:
checking the firmware version, checking whether the server firmware is updated by the host, and downloading the latest firmware of each device from the server if the server firmware is updated;
establishing connection, establishing Bluetooth connection between the host and the equipment, and sending the latest firmware version information of all the equipment;
firmware upgrading, if the firmware version received from the slave equipment is newer than the stored firmware version, an upgrading request is initiated to start upgrading;
switching a host mode, wherein the slave equipment is switched to the host mode at regular time after acquiring the latest firmware from the host, is connected with equipment which cannot be connected with the host through Bluetooth, and jumps to the connection establishing step to upgrade the firmware of the connected equipment;
and switching the slave mode, and switching the equipment switched to the host mode to the slave mode again after finishing the OTA task and connecting the equipment with the host.
2. The bluetooth-based multi-device OTA upgrade method of claim 1, wherein: the host and the slave store the firmware and the version information of all types of equipment in the bus.
3. The bluetooth-based multi-device OTA upgrade method of claim 1, wherein: in the step of switching the master mode, after the slave device is switched to the master mode, if the slave device cannot be searched within the preset time, the slave device returns to the slave mode and is connected with the master.
4. The bluetooth-based multi-device OTA upgrade method of claim 1, wherein: the firmware header includes a firmware name, a firmware version, and a firmware check.
5. The bluetooth-based multi-device OTA upgrade method of claim 1, wherein: in the step of checking the firmware version, the host checks the firmware version from the server at regular time, and downloads the latest firmware of each device from the server if the checked firmware version is newer than the stored firmware version.
6. The bluetooth-based multi-device OTA upgrade method of claim 1, wherein: in the connection establishing step, the master Bluetooth scans the slave, if a new device is found, Bluetooth connection is established with the new device, and the latest firmware version information of all the devices is sent.
7. The bluetooth-based multi-device OTA upgrade method of claim 1, wherein: in the firmware upgrading step, if the self firmware of the slave equipment is updated, the equipment is restarted, and the updated firmware is operated;
in the step of switching the master mode, the equipment switched to the master mode scans the slave through the Bluetooth, if new equipment is found, Bluetooth connection is established with the new equipment, and the latest firmware version information of all the equipment is sent.
8. An electronic device, characterized by comprising: a processor;
a memory; and a program, wherein the program is stored in the memory and configured to be executed by the processor, the program comprising instructions for carrying out the method according to any one of claims 1-7.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program is executed by a processor for performing the method according to any of claims 1-7.
10. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the method according to any of claims 1-7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111647175.8A CN114531431A (en) | 2021-12-30 | 2021-12-30 | Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product |
PCT/CN2022/097544 WO2023123875A1 (en) | 2021-12-30 | 2022-06-08 | Bluetooth-based multi-device ota upgrade method, electronic device, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111647175.8A CN114531431A (en) | 2021-12-30 | 2021-12-30 | Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114531431A true CN114531431A (en) | 2022-05-24 |
Family
ID=81620673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111647175.8A Pending CN114531431A (en) | 2021-12-30 | 2021-12-30 | Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114531431A (en) |
WO (1) | WO2023123875A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023123875A1 (en) * | 2021-12-30 | 2023-07-06 | 如果新能源科技(江苏)股份有限公司 | Bluetooth-based multi-device ota upgrade method, electronic device, storage medium and program product |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116647831B (en) * | 2023-07-25 | 2024-02-23 | 南京麦豆健康科技有限公司 | Bluetooth-based device management method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107453925A (en) * | 2017-09-21 | 2017-12-08 | 山东康威通信技术股份有限公司 | Remote firmware updating method and cloud platform based on multistage communication platform |
CN107580071A (en) * | 2017-09-28 | 2018-01-12 | 美的智慧家居科技有限公司 | Master-slave equipment upgrade method, device and its equipment |
US11307843B2 (en) * | 2018-04-20 | 2022-04-19 | Carrier Corporation | Automatic device-to-device firmware upgrade of a wireless network |
CN109471651B (en) * | 2018-12-27 | 2022-03-18 | 北京昊恒天科技有限公司 | Firmware upgrading method, gateway equipment and firmware upgrading system |
CN113641375A (en) * | 2020-04-27 | 2021-11-12 | 瑞昱半导体股份有限公司 | Method for automatically upgrading firmware over the air and wireless node |
CN111796844B (en) * | 2020-06-29 | 2024-01-12 | 南京智鹤电子科技有限公司 | Firmware upgrading method and device based on Bluetooth network topology and Bluetooth network topology |
CN114531431A (en) * | 2021-12-30 | 2022-05-24 | 如果新能源科技(江苏)股份有限公司 | Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product |
-
2021
- 2021-12-30 CN CN202111647175.8A patent/CN114531431A/en active Pending
-
2022
- 2022-06-08 WO PCT/CN2022/097544 patent/WO2023123875A1/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023123875A1 (en) * | 2021-12-30 | 2023-07-06 | 如果新能源科技(江苏)股份有限公司 | Bluetooth-based multi-device ota upgrade method, electronic device, storage medium and program product |
Also Published As
Publication number | Publication date |
---|---|
WO2023123875A1 (en) | 2023-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114531431A (en) | Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product | |
CN107438830B (en) | Upgrading method, upgrading device, upgrading equipment and upgrading system | |
CN109032653A (en) | Pilotless automobile car-mounted terminal upgrade method, device, equipment and storage medium | |
CN109673009B (en) | Method and device for upgrading VCU software in air | |
CN111722860A (en) | OTA (over the air) upgrading method and device based on finite state machine | |
EP2492821A1 (en) | Method and device for updating data card | |
US20240069906A1 (en) | Server, software update system, distribution method, and non-transitory storage medium | |
CN111273924A (en) | Software updating method and device | |
CN110580167A (en) | system upgrading method, intelligent device and server | |
CN107396185B (en) | Upgrading method and system | |
CN113138788A (en) | Air conditioner program upgrading method and air conditioner system | |
CN111722856B (en) | Method and device for upgrading firmware in vehicle-mounted microcontroller | |
CN113094064A (en) | Gateway software module upgrading method, device, equipment and storage medium | |
CN115515012A (en) | Key burning method and device, electronic equipment board card and storage medium | |
CN114020294A (en) | Method, system and storage medium for wireless upgrading of ECU | |
CN114579161A (en) | Application program updating method and ECU | |
CN114546842A (en) | Interface test method and device, storage medium and electronic equipment | |
CN113791800A (en) | Automatic parking control module remote upgrading method and system and automobile | |
CN110309018B (en) | Charging equipment system switching method, charging equipment and readable storage medium | |
CN109976788B (en) | Intelligent terminal miniature vulnerability restoration method, intelligent terminal, equipment and server | |
CN113867756A (en) | Software upgrading method, terminal equipment and readable storage medium | |
CN111930399A (en) | Operating system repair method, device, system and computer readable storage medium | |
CN117539518B (en) | Application program upgrading method and electronic equipment | |
CN105512544A (en) | Method and device for obtaining superuser permission of mobile terminal | |
CN116909609B (en) | Software upgrading method and device of vehicle-mounted intelligent equipment and vehicle-mounted intelligent equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |