Firmware upgrade method and apparatus employing full-link dual verification mechanism, device, and medium

Through the full-link dual-factor verification mechanism, the link dual-factor verification of the firmware upgrade process of the link equipment is solved, and the problems of inconsistent upgrade methods and poor stability in the existing technology are solved, and efficient and secure firmware upgrade effects are achieved.

WO2025161094A1PCT designated stage Publication Date: 2025-08-07SUZHOU QIANCHENG NEW ENERGY TECHNOLOGY CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080984
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-30
Filing Date
2024-03-11
Publication Date
2025-08-07

AI Technical Summary

Technical Problem

The existing link equipment firmware upgrade methods lack systematic security protection strategies during the upgrade process, resulting in inconsistent upgrade methods, poor stability, low efficiency, and high error rates.

Method used

The full-link dual-factor verification mechanism is adopted to conduct link dual-factor verification of the firmware upgrade process of the target link equipment, including link device upgrade condition verification, data transmission verification and firmware upgrade verification to ensure the security and integrity of the upgrade process.

Benefits of technology

Through the two-factor verification mechanism, the security and efficiency of link equipment firmware upgrades are improved, the error rate is reduced, and reliable firmware upgrades are achieved throughout the life cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080984_07082025_PF_FP_ABST
    Figure CN2024080984_07082025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a firmware upgrade method and apparatus employing a full-link dual verification mechanism, a device, and a medium. The method uses a link dual verification mechanism to perform link dual verification on a firmware upgrade process of a target link device, thereby ensuring a secure and reliable firmware upgrade security strategy and functional updating iteration across the entire life cycle of the link device without incurring additional costs. The firmware upgrade processes of all link devices on the link are coordinated by means of a link terminal device, so as to achieve complete upgrade capabilities for firmware data conversion, transmission, and verification during full-link upgrades, enabling all link devices connected to the link terminal device to possess a unified and efficient firmware upgrade mechanism. By means of a dual verification mechanism, all upgrade processes of the link devices undergo dual verification, ensuring the security of the upgrade processes, reducing the error rate, and improving the firmware upgrade efficiency of the link devices.
Need to check novelty before this filing date? Find Prior Art

Description

Firmware upgrade method, device, equipment and medium for full-link dual verification mechanism

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on January 30, 2024, with application number 202410124171.9 and application name “Firmware upgrade method, device, equipment and medium with full-link dual verification mechanism”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a firmware upgrade method, device, equipment and medium for a full-link dual verification mechanism. Background Art

[0003] Device firmware upgrades are an important part of IoT communication services. When IoT devices have new features or need to fix vulnerabilities, they can quickly upgrade their firmware through the device firmware upgrade service.

[0004] Currently known and publicly available firmware upgrade methods for energy storage inverters and their associated devices include:

[0005] (1) It does not have the upgrade function and is the final version when it leaves the factory. Its link accessories need to be coordinated with the supplier;

[0006] (2) It has a local upgrade function and is connected to the terminal device (inverter) via a local wired communication protocol (including but not limited to RS485, CAN, etc.) to flash the firmware upgrade data.

[0007] (3) It has a local upgrade function, which can send the data to the device memory (including but not limited to built-in Flash or on-chip Flash or other memory) through wireless OTA (over-the-air upgrade) (including but not limited to using 4G, WiFi data sticks and other devices), and then flash the data.

[0008] (4) It has a local upgrade function (including but not limited to fixing known problems of the terminal device, optimizing control logic, optimizing display, adding new functions, etc.), but its link accessories need to be upgraded separately by the supplier (including but not limited to upgrading on site through wired means, upgrading the sub-device separately through cloud OTA, etc.).

[0009] However, the existing link device firmware upgrade method only has a unilateral security protection strategy for the device during the firmware upgrade process, and cannot provide systematic and continuous protection. In addition, the upgrade methods of different link devices are different, and there is no unified interface and form. In addition, the trial and error rate during the upgrade process is high, the upgrade process is unstable, and manual verification is required, resulting in low efficiency of link device firmware upgrade.

[0010] Therefore, how to solve the low efficiency of current link device firmware upgrades has become a technical problem that needs to be solved urgently.

[0011] Application Contents

[0012] The present application provides a firmware upgrade method, apparatus, device, and storage medium with a full-link dual verification mechanism, aiming to improve the efficiency of link device firmware upgrades and system security.

[0013] In a first aspect, the present application provides a firmware upgrade method with a full-link dual verification mechanism, the method comprising:

[0014] When the link terminal device receives the firmware upgrade instruction, based on the preset link double verification mechanism, the link double verification is performed on the firmware upgrade process of the target link device to obtain the link double verification result;

[0015] When the link dual verification result passes, the firmware upgrade process of the target link device is executed to complete the firmware upgrade of the target link device.

[0016] In a second aspect, the present application further provides a firmware upgrade device with a full-link dual verification mechanism, the firmware upgrade device with a full-link dual verification mechanism comprising:

[0017] The link double verification module is used to perform link double verification on the firmware upgrade process of the target link device based on the preset link double verification mechanism when the link terminal device receives the firmware upgrade instruction, and obtain the link double verification result;

[0018] The firmware upgrade module is used to convert specific upgrade file types into formats of different communication types and send them to each link device (for example, if a smart meter is connected via RS485 two-wire, the data needs to be converted into upgrade data that complies with the RS485 two-wire protocol and format; for example, if an energy storage battery is connected via a CAN network port, the data needs to be converted into upgrade data that complies with the CAN protocol and format). When the double verification result of the link is passed, the firmware upgrade process of the target link device is executed to complete the firmware upgrade of the target link device.

[0019] In a third aspect, the present application also provides a computer device, comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the firmware upgrade method of the full-link dual verification mechanism as described above are implemented.

[0020] In a fourth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the firmware upgrade method of the full-link dual verification mechanism as described above are implemented.

[0021] The present application provides a firmware upgrade method, apparatus, device and storage medium with a full-link dual verification mechanism. The method of the present application includes, when a link terminal device receives a firmware upgrade instruction, performing a link dual verification on the firmware upgrade process of the target link device based on a preset link dual verification mechanism to obtain a link dual verification result; when the link dual verification result passes, executing the firmware upgrade process of the target link device to complete the firmware upgrade of the target link device. In the above manner, the present application performs a link dual verification on the firmware upgrade process of the target link device through the link dual verification mechanism, and can ensure the safe and reliable firmware upgrade security policy and function update iteration of the link device throughout its life cycle without additional cost. The link terminal device coordinates the firmware upgrade process of all link devices on the link, and has a full-link upgrade capability, so that the link devices connected to the link terminal device all have a unified and efficient firmware upgrade mechanism; through the dual verification mechanism, all upgrade processes of the link device are dual-verified to ensure the security of the upgrade process, reduce the error rate, and improve the efficiency of the firmware upgrade of the link device. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0023] FIG1 is a flow chart of a first embodiment of a firmware upgrade method for a full-link dual verification mechanism provided by the present application;

[0024] FIG2 is a schematic diagram of device links of the firmware upgrade method of the full-link dual verification mechanism provided by this application;

[0025] FIG3 is a schematic diagram of the verification process of the firmware upgrade method of the full-link dual verification mechanism provided by this application;

[0026] FIG4 is a flow chart of a second embodiment of a firmware upgrade method using a full-link dual verification mechanism provided by the present application;

[0027] FIG5 is a flowchart of a third embodiment of a firmware upgrade method using a full-link dual verification mechanism provided by the present application;

[0028] FIG6 is a flowchart of a fourth embodiment of a firmware upgrade method using a full-link dual verification mechanism provided by the present application;

[0029] FIG7 is a structural diagram of a first embodiment of a firmware upgrade device with a full-link dual verification mechanism provided by the present application;

[0030] FIG8 is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. Modes for Carrying Out the Invention

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

[0032] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.

[0033] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.

[0034] Please refer to Figure 1, which is a flow chart of a first embodiment of a firmware upgrade method with a full-link dual verification mechanism provided by this application.

[0035] As shown in FIG1 , the firmware upgrade method of the full-link dual verification mechanism includes steps S101 to S103 .

[0036] S101. When a link terminal device receives a firmware upgrade instruction, based on a preset link double verification mechanism, a link double verification is performed on the firmware upgrade process of the target link device to obtain a link double verification result.

[0037] In one embodiment, the link terminal device may be an inverter. In a hybrid energy storage inverter embedded computer real-time operating system, the inverter is used as a hardware computer platform, and an embedded operating system is provided on this hardware computer platform. The firmware upgrade method with a full-link dual verification mechanism provided in the embodiment of the present application can be triggered when an upgrade instruction is issued by the upgrade module.

[0038] In one embodiment, the firmware upgrade program of the full-link dual verification mechanism is designed to establish a unified full-link upgrade framework and verification mechanism for the link terminal device (inverter) and all link devices connected to the energy storage system that have upgrade capabilities, ensuring the long-term security and stability of the entire system and the advantages of functional updates.

[0039] In one embodiment, the link device may include but is not limited to a DSP digital processing chip, a display chip, a battery pack / BMS, a smart meter, and a communication data stick.

[0040] It can be understood that, as shown in Figure 2, with the link terminal device (inverter) as the core, the firmware upgrade of all link devices can be carried out through a unified, secure and efficient dual verification mechanism, avoiding the independent and chaotic firmware upgrade formats of link devices (including but not limited to bin files, hex files, raw files, apk files, srec files), inconsistent upgrade forms (including but not limited to any communication protocol format of wired connection, wireless connection and external communication mode using communication data stick), and even uncontrollable upgrade status (including but not limited to manual process monitoring or intervention), resulting in a long upgrade process, excessive waste of manpower, material and financial resources, data frame loss, upgrade errors, equipment downtime and even version mismatch between different devices, control logic contradictions, and serious safety hazards such as high voltage, fire, and explosion.

[0041] In one embodiment, the link dual verification mechanism includes link device upgrade condition verification, data transmission verification, firmware upgrade verification, and upgrade data update verification.

[0042] In one embodiment, in the firmware upgrade procedure of the full-link double verification mechanism, full-link, double verification is implemented throughout, ensuring the visual digitization of the entire cycle of firmware upgrade in any link device from the start of the upgrade to the transmission of data to process monitoring and finally to the completion of the upgrade.

[0043] In one embodiment, the link terminal device may receive the firmware upgrade instruction via a wired connection to the host computer, or may receive the firmware upgrade instruction via OTA remote data (WiFi or 4G, etc.).

[0044] S102: When the link dual verification result passes, execute the firmware upgrade process of the target link device to complete the firmware upgrade of the target link device.

[0045] In one embodiment, as shown in FIG3 , a link dual verification mechanism is used to perform dual verification on the target link device throughout the entire firmware upgrade process. If the link dual verification passes, confirming that both the target link device and the firmware upgrade data meet the firmware upgrade requirements, a firmware upgrade instruction can be sent to the target link device via the link terminal device, thereby triggering the firmware upgrade operation on the target link device.

[0046] This embodiment provides a firmware upgrade method with a full-link dual verification mechanism. This method uses the link dual verification mechanism to perform link dual verification on the firmware upgrade process of the target link device, ensuring the safe and reliable firmware upgrade security policy and function update iteration of the link device throughout its life cycle without any additional cost. The link terminal device coordinates the firmware upgrade process of all link devices on the link, and has full-link upgrade capabilities, so that all link devices connected to the link terminal device have a unified and efficient firmware upgrade mechanism; through the dual verification mechanism, all upgrade processes of the link device are double-verified to ensure the security of the upgrade process and reduce the error rate, thereby improving the efficiency of the link device firmware upgrade.

[0047] Please refer to Figure 4, which is a flow chart of the second embodiment of the firmware upgrade method of the full-link dual verification mechanism provided by this application.

[0048] In this embodiment, the link dual verification mechanism includes verification of the link device upgrade condition. Based on the embodiment shown in FIG. 1 , S201 specifically includes:

[0049] S201. When a link terminal device receives a firmware upgrade instruction, the link terminal device determines a firmware code and a device identifier corresponding to a target firmware based on the firmware upgrade instruction.

[0050] In one embodiment, after the link terminal device receives the firmware upgrade instruction, it receives the firmware upgrade data transmitted by the instruction sending end, and saves the firmware upgrade data through a storage module of the link terminal device.

[0051] The storage module may adopt any form of storage including but not limited to FLASH, ROM, RAM, etc.

[0052] In one embodiment, the firmware upgrade instruction further includes the firmware code of the target firmware to be upgraded and the device identifier of the link device corresponding to the target firmware.

[0053] S202: Based on the device identifier, search for a target link device that matches the device identifier in the terminal full link;

[0054] In one embodiment, full-link double verification is performed based on the device identification. First, the target link device that matches the device identification is searched in the terminal full link, that is, the device identification of each link device in the terminal full link is compared with the device identification corresponding to the target firmware.

[0055] For example, if the device identifier of the link device that does not exist in the terminal full link is the same as the device identifier of the target firmware, it means that the target link device does not exist in the terminal full link. In this case, a reminder message is generated and sent to the instruction sending end to remind the instruction sending end that the user device does not exist.

[0056] Exemplarily, if there is a link device in the entire terminal link whose device identifier is the same as the device identifier of the target firmware, then the link device is the target link device.

[0057] S203: When the target link device exists in the terminal full link, verify the firmware upgrade condition of the target link device based on the firmware code to obtain the verification result.

[0058] Furthermore, when the target link device exists in the terminal full link, the current firmware code of the target link device and the firmware code of the target firmware are compared to determine whether the target link device meets the firmware upgrade conditions; when the firmware code is higher than the current firmware code, it is determined that the target link device meets the firmware upgrade conditions, and it is determined that the link device upgrade condition verification has passed.

[0059] In one embodiment, if a target link device exists in the terminal full link, the firmware code of the target link device is compared with the firmware code of the target firmware carried in the firmware upgrade data to determine whether the target link device meets the upgrade conditions.

[0060] Exemplarily, the determination of the firmware upgrade condition may include, but is not limited to, verification of the size of the firmware package, comparison of the version numbers of the firmware package, verification of internal verification data of the firmware package, and the like.

[0061] In this embodiment, through the double verification of the link device upgrade conditions, the correct identification and correct matching of all link devices are guaranteed to prevent the mismatched erroneous upgrade program from being sent.

[0062] Furthermore, when the link device upgrade condition verification is passed, the firmware upgrade data is sent to the target link device based on a preset transmission method, and feedback data replied by the target link device is received; when the feedback data indicates that the firmware upgrade data has been sent, it is determined that the data transmission verification is passed.

[0063] The firmware upgrade data includes upgrade file verification preparation data, upgrade file data packet, upgrade file sending step identifier, and sending status identifier.

[0064] In one embodiment, when the target link device meets the upgrade conditions, the link terminal device sends firmware data to the target link device and performs verification, including but not limited to whether the transmission is complete, whether there is a transmission error, whether the transmission is successful, etc.

[0065] In one embodiment, the form of transmitted data is converted into a data format suitable for the link device through a firmware upgrade module of the terminal device (inverter), including but not limited to data transmission in full-duplex or half-duplex mode such as single-wire, two-wire, three-wire, or four-wire through any protocol such as CAN, RS485, SPI, or SCI.

[0066] In one embodiment, the target link device responds with data based on the data request sent by the link terminal device, including but not limited to whether the upgrade file verification is successful, whether the data is complete, whether the current upgrade step is completed, whether to enter the next upgrade step, whether the upgrade is completed, whether there is a reception error, etc.

[0067] In this embodiment, by verifying data transmission, the correctness, security, and completeness of data sent to the link device are guaranteed, and each step can be observed through upgraded data information (either remotely in the cloud or via a local wired connection) to prevent interference and packet loss during transmission, or even power outages that may cause upgrade interruptions, transmission errors, and other situations that may lead to device downtime or abnormal error disconnection.

[0068] Please refer to Figure 5, which is a flow chart of the third embodiment of the firmware upgrade method of the full-link dual verification mechanism provided by this application.

[0069] In this embodiment, based on the embodiment shown in FIG4 , when the feedback data is the firmware upgrade data transmission completion, after determining that the data transmission verification has passed, the method further includes:

[0070] S301: When the data transmission verification passes, the link terminal device sends an upgrade execution instruction to the target link device;

[0071] In one embodiment, after the data transmission verification is passed and the firmware upgrade data transmission is completed, the target link device returns the data transmission result. If the data transmission is completed and the firmware upgrade data is complete, the target link device replies with data transmission completion information to the link terminal device.

[0072] In one embodiment, after receiving the data transmission completion information replied by the target link device, the link terminal device sends an upgrade execution instruction to the target link device, and the target link device starts to execute the firmware upgrade operation according to the upgrade execution instruction.

[0073] S302: After receiving the upgrade completion flag fed back by the target link device, determine whether the firmware upgrade verification is passed.

[0074] In one embodiment, the target link device parses the firmware upgrade data, and the link terminal device (inverter) sends a readback command, initiating the upgrade of the target link device. After the upgrade is complete (including steps such as automatic restart), the target link device returns an upgrade completion flag and updated information (including but not limited to the firmware code, version number, and error messages).

[0075] In this embodiment, the firmware upgrade verification ensures that the link device successfully writes the upgrade program and returns data information such as upgrade success, thereby avoiding the link device body upgrade failure or downtime caused by power failure during the upgrade process.

[0076] Please refer to Figure 6, which is a flow chart of the fourth embodiment of the firmware upgrade method of the full-link dual verification mechanism provided by this application.

[0077] In this embodiment, based on the embodiment shown in FIG. 5 , after S302 , the following steps are specifically included:

[0078] S401. After the firmware upgrade verification passes, the link terminal device receives firmware update information sent by the target link device;

[0079] In one embodiment, after completing the firmware upgrade, the target link device feeds back the upgraded overall device information to the link terminal device, including but not limited to the new firmware version number.

[0080] S402: Update the device information of the target link device stored in the memory based on the firmware update information;

[0081] In one embodiment, the link terminal device updates the device information data of the target link device, including but not limited to the firmware code, version number, error information, etc., and synchronously updates the device information of the target link device stored in the internal memory and cloud storage.

[0082] S403: After the device information of the target link device is updated, determine whether the upgrade data update verification is passed.

[0083] In one embodiment, after completing the data update in the storage module of the link terminal device and completing the data synchronization of the cloud storage, the firmware upgrade of the target link device is completed.

[0084] In this embodiment, by updating the upgrade data and verifying the update, the information synchronization and cloud verification after the link device is successfully upgraded are ensured, thus avoiding the problem of data retention and asynchrony before the upgrade.

[0085] In one embodiment, in the firmware upgrade method of the full-link dual verification mechanism provided by the present application, if an error occurs during the link device upgrade condition verification, data transmission verification, firmware upgrade verification, and upgrade data update verification, the system will retain the status of the previous step for recovery and retry.

[0086] For example, during the process of sending upgrade data, the device loses power or is disturbed, causing the data integrity to be destroyed. At this time, the double verification will fail, and the system will resend the data packet until the verification is completed (the number of retries and the time interval during this period can be modified manually, and this is not limited to the present invention). Finally, the device successfully receives the data packet.

[0087] For example, after receiving the file, a device loses power during the self-upgrade process, causing the firmware upgrade to fail and the link device to shut down. In this case, the dual verification timeout will fail, and the system will roll back to the previous step, resend the upgrade command, and enter the upgrade step, sending data packets until the verification is completed (the number of retries and the interval during this period can be manually adjusted and are not limited to this). Finally, the device is successfully upgraded.

[0088] In this embodiment, the firmware upgrade of each link device on the link is coordinated by the link terminal device, and the upgrade process is safe. The firmware upgrade of both the terminal device itself and the link device is uniformly controlled by the terminal device, and the process data is observable and controllable; the upgrade data is safe. In the event of failure, error, or loss of a single packet or even a single frame of data, or interference, it can be re-verified and a retransmission mechanism can be established to resume transmission from the breakpoint; the upgrade status is safe. The program is equipped with a full-process status marking method. A digital twin of each upgrade status is formed at the remote end, providing data backup and analysis methods for device verification and error correction without taking up too much storage space.

[0089] Please refer to Figure 7, which is a structural diagram of a first embodiment of a full-link dual verification mechanism firmware upgrade device provided by this application. The full-link dual verification mechanism firmware upgrade device is used to execute the aforementioned full-link dual verification mechanism firmware upgrade method. The full-link dual verification mechanism firmware upgrade device can be configured in a server.

[0090] As shown in FIG7 , the firmware upgrade device 500 of the full-link dual verification mechanism includes: a link dual verification module 501 and a firmware upgrade module 502 .

[0091] The link double verification module 501 is configured to perform a link double verification on the firmware upgrade process of the target link device based on a preset link double verification mechanism when the link terminal device receives a firmware upgrade instruction, and obtain a link double verification result;

[0092] The firmware upgrade module 502 is configured to execute the firmware upgrade process of the target link device when the link dual verification result passes, so as to complete the firmware upgrade of the target link device.

[0093] In one embodiment, the link dual verification mechanism includes link device upgrade condition verification, data transmission verification, firmware upgrade verification, and upgrade data update verification.

[0094] In one embodiment, the link dual verification mechanism includes verification of the link device upgrade condition;

[0095] The link dual verification module 501 includes a link device upgrade condition verification module, including:

[0096] An instruction parsing unit, configured to determine, when a link terminal device receives a firmware upgrade instruction, a firmware code and a device identifier corresponding to the target firmware based on the firmware upgrade instruction;

[0097] a target link device determining unit, configured to query a target link device matching the device identifier in the terminal full link based on the device identifier;

[0098] The firmware upgrade condition verification unit is used to verify the firmware upgrade condition of the target link device based on the firmware code when the target link device exists in the terminal full link, and obtain the verification result.

[0099] In one embodiment, the firmware upgrade condition verification unit includes:

[0100] an upgrade condition judgment subunit, configured to, when the target link device exists in the terminal full link, compare the current firmware code of the target link device with the firmware code of the target firmware to determine whether the target link device meets the firmware upgrade condition;

[0101] The upgrade condition verification subunit is used to determine that the target link device meets the firmware upgrade condition when the firmware code is higher than the current firmware code, and determine that the link device upgrade condition verification is passed.

[0102] In one embodiment, the link dual verification module 501 further includes a data transmission verification unit, including:

[0103] a data transmission subunit, configured to send the firmware upgrade data to the target link device based on a preset transmission mode when the link device upgrade condition verification is passed, and receive feedback data replied by the target link device;

[0104] A data transmission verification subunit, configured to determine that the data transmission verification is passed when the feedback data is that the firmware upgrade data has been sent;

[0105] The firmware upgrade data includes upgrade file verification preparation data, upgrade file data packet, upgrade file sending step identifier, and sending status identifier.

[0106] In one embodiment, the link dual verification module 501 further includes a firmware upgrade verification unit, including:

[0107] an upgrade execution instruction sending subunit, configured to, when the data transmission verification passes, cause the link terminal device to send an upgrade execution instruction to the target link device;

[0108] The firmware upgrade verification pass subunit is used to determine that the firmware upgrade verification has passed after receiving the upgrade completion flag fed back by the target link device.

[0109] In one embodiment, the link dual verification module 501 further includes an upgrade data update verification unit, including:

[0110] a firmware update information receiving subunit, configured to, after the firmware upgrade verification passes, receive, by the link terminal device, the firmware update information sent by the target link device;

[0111] a device information updating subunit, configured to update the device information of the target link device stored in the memory based on the firmware update information;

[0112] The upgrade data update verification subunit is used to determine whether the upgrade data update verification is passed after the device information of the target link device is updated.

[0113] It should be noted that technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned firmware upgrade method embodiment of the full-link dual verification mechanism, and will not be repeated here.

[0114] The apparatus provided in the above embodiment may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in FIG8 .

[0115] Please refer to Figure 8, which is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a server.

[0116] 8 , the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0117] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions that, when executed, enable the processor to perform any firmware upgrade method with a full-link dual verification mechanism.

[0118] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0119] The internal memory provides an environment for the operation of computer programs in non-volatile storage media. When the computer program is executed by the processor, the processor can execute any firmware upgrade method with a full-link dual verification mechanism.

[0120] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that the structure shown in FIG8 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. A specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0121] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0122] In one embodiment, the processor is configured to execute a computer program stored in the memory to implement the following steps:

[0123] When the link terminal device receives the firmware upgrade instruction, based on the preset link double verification mechanism, the link double verification is performed on the firmware upgrade process of the target link device to obtain the link double verification result;

[0124] When the link dual verification result passes, the firmware upgrade process of the target link device is executed to complete the firmware upgrade of the target link device.

[0125] In one embodiment, the link dual verification mechanism includes link device upgrade condition verification, data transmission verification, firmware upgrade verification, and upgrade data update verification.

[0126] In one embodiment, the link dual verification mechanism includes verification of the link device upgrade condition;

[0127] When the processor implements the preset link dual verification mechanism to verify the firmware upgrade process of the target link device and obtains the link dual verification result, it is configured to implement:

[0128] When the link terminal device receives the firmware upgrade instruction, determining the firmware code and device identifier corresponding to the target firmware based on the firmware upgrade instruction;

[0129] Based on the device identification, searching for a target link device that matches the device identification in the terminal full link;

[0130] When the target link device exists in the terminal full link, the firmware upgrade condition of the target link device is verified based on the firmware code to obtain the verification result.

[0131] In one embodiment, when the processor verifies the firmware upgrade condition of the target link device based on the firmware code and obtains the verification result, it is configured to implement:

[0132] When the target link device exists in the terminal full link, comparing the current firmware code of the target link device with the firmware code of the target firmware to determine whether the target link device meets the firmware upgrade condition;

[0133] When the firmware code is higher than the current firmware code, it is determined that the target link device meets the firmware upgrade condition, and it is determined that the link device upgrade condition verification is passed.

[0134] In one embodiment, after the processor determines that the target link device meets the firmware upgrade condition when the firmware code number is higher than the current firmware code number and determines that the link device upgrade condition verification is passed, it is further configured to implement:

[0135] When the link device upgrade condition is verified to be passed, the firmware upgrade data is sent to the target link device based on a preset transmission method, and feedback data replied by the target link device is received;

[0136] When the feedback data indicates that the firmware upgrade data has been sent, determining that the data transmission verification has passed;

[0137] The firmware upgrade data includes upgrade file verification preparation data, upgrade file data packet, upgrade file sending step identifier, and sending status identifier.

[0138] In one embodiment, after the processor determines that the data transmission verification has passed when the feedback data is the firmware upgrade data transmission completion, it is further configured to implement:

[0139] When the data transmission verification passes, the link terminal device sends an upgrade execution instruction to the target link device;

[0140] After receiving the upgrade completion flag fed back by the target link device, it is determined that the firmware upgrade verification is passed.

[0141] In one embodiment, after receiving the upgrade completion flag fed back by the target link device and determining that the firmware upgrade verification passes, the processor is further configured to implement:

[0142] After the firmware upgrade verification is passed, the link terminal device receives the firmware update information sent by the target link device;

[0143] Based on the firmware update information, updating the device information of the target link device stored in the memory;

[0144] After the device information of the target link device is updated, it is determined that the upgrade data update verification is passed.

[0145] A computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement a firmware upgrade method for any full-link dual verification mechanism provided in an embodiment of the present application.

[0146] The computer-readable storage medium may be an internal storage unit of the computer device described in the aforementioned embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc., equipped on the computer device.

[0147] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A firmware upgrade method with a full-link dual verification mechanism, characterized in that: The method comprises: When the link terminal device receives the firmware upgrade instruction, based on the preset link double verification mechanism, the link double verification is performed on the firmware upgrade process of the target link device to obtain the link double verification result; When the link dual verification result passes, the firmware upgrade process of the target link device is executed to complete the firmware upgrade of the target link device.

2. The firmware upgrade method of the full-link dual verification mechanism according to claim 1 is characterized in that: The link dual verification mechanism includes link device upgrade condition verification, data transmission verification, firmware upgrade verification, and upgrade data update verification.

3. The firmware upgrade method of the full-link dual verification mechanism according to claim 2 is characterized in that: The link dual verification mechanism includes verification of the link device upgrade conditions; The step of verifying the firmware upgrade process of the target link device based on a preset link dual verification mechanism and obtaining a link dual verification result includes: When the link terminal device receives the firmware upgrade instruction, determining the firmware code and device identifier corresponding to the target firmware based on the firmware upgrade instruction; Based on the device identification, searching for a target link device that matches the device identification in the terminal full link; When the target link device exists in the terminal full link, the firmware upgrade condition of the target link device is verified based on the firmware code to obtain the verification result.

4. The firmware upgrade method of the full-link dual verification mechanism according to claim 3 is characterized in that: The verifying the firmware upgrade condition of the target link device based on the firmware code to obtain the verification result includes: When the target link device exists in the terminal full link, comparing the current firmware code of the target link device with the firmware code of the target firmware to determine whether the target link device meets the firmware upgrade condition; When the firmware code is higher than the current firmware code, it is determined that the target link device meets the firmware upgrade condition, and it is determined that the link device upgrade condition verification is passed.

5. The firmware upgrade method of the full-link dual verification mechanism according to claim 4 is characterized in that: When the firmware code is higher than the current firmware code, determining that the target link device meets the firmware upgrade condition, and determining that the link device upgrade condition verification is passed, further comprising: When the link device upgrade condition is verified to be passed, based on a preset transmission method, the firmware upgrade data is converted into a corresponding format and then sent to the target link device, and feedback data replied by the target link device is received; When the feedback data indicates that the firmware upgrade data has been sent, determining that the data transmission verification has passed; The firmware upgrade data includes upgrade file verification preparation data, upgrade file data packet, upgrade file sending step identifier, and sending status identifier.

6. The firmware upgrade method of the full-link dual verification mechanism according to claim 5 is characterized in that: When the feedback data is the firmware upgrade data, after determining that the data transmission verification has passed, the method further includes: When the data transmission verification passes, the link terminal device sends an upgrade execution instruction to the target link device; After receiving the upgrade completion flag fed back by the target link device, it is determined that the firmware upgrade verification is passed.

7. The firmware upgrade method of the full-link dual verification mechanism according to claim 6 is characterized in that: After receiving the upgrade completion flag fed back by the target link device and determining that the firmware upgrade verification passes, the method further includes: After the firmware upgrade verification is passed, the link terminal device receives the firmware update information sent by the target link device; Based on the firmware update information, updating the device information of the target link device stored in the memory; After the device information of the target link device is updated, it is determined that the upgrade data update verification is passed.

8. A firmware upgrade device with a full-link dual verification mechanism, characterized in that: The firmware upgrade device of the full-link dual verification mechanism includes: The link double verification module is used to perform link double verification on the firmware upgrade process of the target link device based on the preset link double verification mechanism when the link terminal device receives the firmware upgrade instruction, and obtain the link double verification result; The firmware upgrade module is used to execute the firmware upgrade process of the target link device when the link double verification result is passed, so as to complete the firmware upgrade of the target link device.

9. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the firmware upgrade method of the full-link dual verification mechanism as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by the processor, the steps of the firmware upgrade method of the full-link dual verification mechanism as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Remote firmware upgrading method and system for communication equipment

    CN106648781A

  • Software upgrading method and terminal equipment

    CN109800565A

  • Firmware remote upgrading method and device

    CN111796849A

  • Internet of Things equipment upgrading system

    CN113342371A

  • Bidirectional authentication method for OTA upgrade of Internet of Things equipment based on block chain technology

    CN114095538A