Remote OTA upgrading method and system

By establishing encrypted communication channels and performing incremental file comparison and backup management on terminals with limited memory and computing resources, the problem of terminal OTA upgrade failure is solved, which improves the upgrade success rate and reduces the risk.

CN119814557APending Publication Date: 2025-04-11GUIZHOU POWER GRID CO LTD

Patent Information

Application Number
CN202411669971.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

When the prior art performs OTA upgrade on a terminal with small memory and limited computing resources, it is easy to cause the upgrade failure due to insufficient memory, and incremental upgrades may lead to partial data loss, which in turn leads to the terminal upgrade failure.

Method used

By establishing an encrypted communication channel, upgrade judgment and information transmission are carried out; incremental files between the terminal and the server are compared and backed up and managed, incremental file packages are generated, and upgrade compatibility is verified by simulated terminal operation environment; when the upgrade fails, a rollback mechanism is used to ensure the normal use of the terminal.

Benefits of technology

It improves the success rate of OTA upgrade of the terminal, reduces the risks caused by the upgrade failure, and modularly processes incremental files to optimize the transmission efficiency, ensuring that the terminal can successfully complete the remote upgrade in an environment with limited memory and data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814557A_ABST
    Figure CN119814557A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of over-the-air downloading, in particular to a remote OTA upgrading method and system, and the method comprises the steps: building an encrypted communication channel between a terminal and a server, and guaranteeing the precise and safe transmission of data; the terminal transmits version related information to the server through the communication channel, the server performs upgrade judgment according to the received information and stores the information as a backup for specific analysis of incremental files, and upgrade failure caused by data loss in the running process of the terminal is prevented; if upgrading is needed, the server compares the files to generate a class of file packages, and analyzes modular files in the incremental files to reduce the size of the file packages; after the file package is transmitted to the terminal, the completion of upgrading is confirmed through integrity verification and testing; in addition, when upgrading fails, the terminal can be recovered by utilizing backup information through a rollback mechanism, so that the upgrading process is accelerated, and the upgrading success rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of over-the-air downloading technology, and in particular to a remote OTA upgrade method and system. Background Art

[0002] Over-the-Air, or OTA, is a technology that remotely manages SIM card data and applications through the air interface of mobile communications.

[0003] The application of OTA technology enables mobile communications to not only provide voice and data services, but also remotely manage SIM card data and applications through the air interface in the fields of mobile devices such as smartphones and tablets, as well as new energy vehicles.

[0004] OTA upgrades have become a common way to update software. Through OTA technology, device manufacturers or service providers can remotely push new software versions, fix vulnerabilities, add new features, or improve existing features without the need for users to manually download and install updates. This method not only improves the efficiency of software updates, but also reduces the complexity of user operations.

[0005] Conventionally, when OTA technology is used to remotely upgrade a terminal, the upgrade package is often downloaded through OTA technology, and then the terminal is upgraded.

[0006] This upgrade method is prone to upgrade failure due to insufficient memory for terminals with small memory capacity and limited computing resources. Although the conventional incremental upgrade method can solve this problem, it is easy for some data to be lost during the operation of the terminal. In this case, direct incremental upgrade will often result in terminal upgrade failure.

[0007] In summary, a remote OTA upgrade method and system ensures secure data transmission between a terminal and a server through an encrypted communication channel. When a terminal needs to be upgraded, the server performs an incremental comparison between the backup file and the latest version file to generate an incremental file package and verify the compatibility of the upgrade by simulating the terminal operating environment, thereby improving the upgrade success rate. This method is particularly suitable for terminals with small memory and limited computing resources. It optimizes transmission efficiency by modularly processing incremental files, and ensures normal use of the terminal through a rollback mechanism when the upgrade fails. Summary of the invention

[0008] In view of the above problems existing in the prior art, the present invention is proposed.

[0009] Therefore, the technical problem to be solved by the present invention is: to realize OTA upgrade of terminals with small memory and limited computing resources, and to improve their upgrade success rate; through measures such as incremental file comparison, backup management, encrypted transmission, and modular processing between the terminal and the server, it is ensured that the terminal can successfully complete the remote upgrade in an environment with limited memory and easy data loss.

[0010] To solve the above technical problems, the present invention provides the following technical solutions, a remote OTA upgrade method, including: establishing a primary communication channel to make an upgrade judgment; transmitting information through the primary communication channel; comparing files to obtain a class of file packages; performing integrity verification on a class of file packages; and testing the terminal to confirm that the upgrade is complete.

[0011] As a preferred solution of the remote OTA upgrade method described in the present invention, wherein: the establishment of a first-level communication channel and performing an upgrade judgment includes sending the version number to the server through the established first-level communication channel and performing an upgrade judgment.

[0012] As a preferred solution of the remote OTA upgrade method described in the present invention, the information transmission through the primary communication channel includes transmitting the version information to the server through the established primary communication channel to realize two-way interaction of data and instructions.

[0013] As a preferred solution of the remote OTA upgrade method described in the present invention, wherein: the file comparison to obtain a class of file packages includes comparing and screening the data files to obtain a class of file packages for further determining the upgrade

[0014] As a preferred solution of the remote OTA upgrade method described in the present invention, wherein: the integrity verification of a class of file packages includes sending a class of file packages to the terminal through a primary communication channel for integrity verification.

[0015] As a preferred solution of the remote OTA upgrade method described in the present invention, the testing of the terminal to confirm the completion of the upgrade includes testing the terminal after the terminal is upgraded, and confirming that the terminal has completed the upgrade after passing the test.

[0016] As a preferred solution of the remote OTA upgrade method described in the present invention, wherein: the establishment of a primary communication channel includes using a primary protocol to establish an encrypted primary communication channel so that data is encrypted and protected during transmission.

[0017] Another object of the present invention is to provide a remote OTA upgrade system, which forms an efficient and reliable upgrade system by setting up a communication channel module, an information transmission module, a file comparison module, an integrity verification module and a test confirmation module; the communication channel module is responsible for establishing an encrypted primary communication channel to ensure the security of data transmission and determine whether an upgrade is required; the information transmission module realizes the two-way interaction of data and instructions between the terminal and the server; the file comparison module compares and filters the data files to generate a class of file packages for subsequent upgrade judgment; the integrity verification module verifies a class of file packages to ensure the integrity of the data; the test confirmation module tests the terminal after the upgrade is completed to ensure that the upgrade is successful. This system design can improve the upgrade success rate of the terminal while reducing the risk caused by upgrade failure, and is suitable for terminal devices with small memory and limited computing resources.

[0018] In order to solve the above technical problems, the present invention provides the following technical solutions: a remote OTA upgrade system, comprising: a communication channel module, an information transmission module, a file comparison module, an integrity verification module and a test confirmation module;

[0019] The communication channel module establishes a primary communication channel and makes an upgrade decision;

[0020] The information transmission module transmits information through a primary communication channel;

[0021] The file comparison module compares the files to obtain a class of file packages;

[0022] The integrity verification module verifies the integrity of a class of file packages;

[0023] The test confirmation module tests the terminal to confirm that the upgrade is complete.

[0024] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of a remote OTA upgrade method as described above when executing the computer program.

[0025] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of a remote OTA upgrade method as described above are implemented.

[0026] The beneficial effects of the present invention include: establishing an encrypted communication channel between the terminal and the server to ensure accurate and secure transmission of data; after the terminal version related information is transmitted to the server, the server can use the backup information as backup information to perform specific analysis of the corresponding incremental files in combination with the backup information of the terminal, thereby avoiding the risk of terminal upgrade failure caused by data loss during the terminal operation process; and the setting of the backup data can ensure the effective use of the terminal through a rollback mechanism when the upgrade fails; and by analyzing the modular files in the incremental files, the size of the incremental files can be reduced, the upgrade speed of the terminal can be accelerated, and the success rate of the terminal upgrade can be further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0028] Figure 1 A flowchart of a remote OTA upgrade method provided by an embodiment of the present invention.

[0029] Figure 2 A schematic diagram of a specific flow chart of a remote OTA upgrade method provided by an embodiment of the present invention.

[0030] Figure 3 A server protocol connection diagram of a remote OTA upgrade method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0032] Example 1, reference Figure 1-Figure 3 , is an embodiment of the present invention, which provides a remote OTA upgrade method, including:

[0033] S1: Establish a primary communication channel and make upgrade decisions.

[0034] It should be noted that establishing a primary communication channel and performing an upgrade determination includes sending the version number to the server through the established primary communication channel and performing an upgrade determination.

[0035] Furthermore, establishing a primary communication channel includes establishing an encrypted primary communication channel using a primary protocol so that data is encrypted and protected during transmission.

[0036] Furthermore, an encrypted first-level communication channel between the terminal and the server is established using a first-level protocol. The terminal sends the current version number to the server through the encrypted communication channel. The server determines whether the terminal needs to be upgraded. When the current version number of the terminal is not the latest version number, the server determines that the terminal needs to be upgraded and continues to step S2. On the contrary, when the current version number of the terminal is the latest version number, the server determines that the terminal does not need to be upgraded and completes the upgrade.

[0037] The method of establishing an encrypted communication channel includes: when establishing a connection between the terminal and the server, a TLS handshake is performed to ensure the identity verification of both parties and the secure exchange of session keys. Once the handshake is successful, both parties will use the negotiated symmetric encryption algorithm and session key to encrypt the communication content to protect the privacy and integrity of data transmission.

[0038] In an embodiment of the present application, the first-level communication channel is an encrypted communication channel between the terminal and the server. An encrypted connection is achieved by using a first-level protocol to ensure the security and integrity of data during transmission. The process of establishing a communication channel includes identity authentication and secure exchange of session keys between the terminal and the server to ensure that the data will not be tampered with or intercepted during transmission. Specifically, when the terminal initiates a connection, the server and the terminal first perform a TLS handshake, and after verifying the identities of both parties, negotiate a symmetric encryption algorithm and session key. After the handshake is successful, the communicating parties can use this key for encrypted communication, thereby achieving encryption protection of the data. After the encrypted communication channel is established, the terminal will send the current version number information to the server through the communication channel. After the server receives the version number, it will compare it with the latest version number in the server. If the version number of the terminal is consistent with the latest version number of the server, it is determined that the terminal is already the latest version and no upgrade operation is required, and the upgrade process is terminated; if the version number of the terminal is lower than the latest version number of the server, it is determined that the terminal needs to be upgraded and the next step is entered.

[0039] In an optional embodiment, the primary communication channel can also be implemented in other ways, such as using an encrypted channel based on the IPSec protocol. The IPSec protocol is a network layer protocol that protects the security of IP data packets through encryption and authentication. The primary communication channel established using the IPSec protocol can ensure that data transmitted between the terminal and the server will not be accessed or tampered with by unauthorized third parties. When establishing an IPSec connection, the terminal and the server can perform identity authentication through the authentication center and negotiate to generate a session key to ensure the encryption and integrity of subsequent communications.

[0040] In an optional embodiment, the primary communication channel can also be implemented in other ways, such as building an encrypted channel through a VPN (virtual private network). VPN is a technology commonly used for remote connections, which can create a private transmission channel in a public network through tunnel technology; in this way, the terminal can connect to the server through VPN, thereby forming a secure communication environment; VPN can use different encryption protocols, such as PPTP, L2TP / IPSec, OpenVPN, etc., to ensure the secure transmission of data; the primary communication channel established by the terminal through VPN can realize encrypted data transmission and ensure the privacy and integrity of communication.

[0041] In the embodiment of the present application, the first-level protocol is the TLS / SSL protocol, such as Figure 3 As shown, it is used to establish an encrypted communication channel between the terminal and the server to ensure the security and integrity of the data during transmission. The TLS / SSL protocol first establishes an encrypted channel between the terminal and the server through the process of identity authentication and key negotiation to ensure that the data will not be stolen or tampered with during transmission. Specifically, the TLS handshake process includes identity authentication and secure exchange of session keys between the terminal and the server. After the handshake is successful, the two parties use the negotiated session key to encrypt and transmit subsequent data using a symmetric encryption algorithm to ensure the privacy of the communication. After this encrypted communication channel is established, the terminal will send the current version number information to the server through the channel. After the server receives the version number, it will compare it with the latest version number stored on the server. If the version number of the terminal is consistent with the latest version number of the server, it means that the terminal is already the latest version, and the system will determine that the upgrade is not necessary and complete this step. On the contrary, if the version number of the terminal is lower than the latest version number of the server, the server determines that the terminal needs to be upgraded and continues to step S2 for further upgrade operations.

[0042] Furthermore, in the process of the terminal sending the version number to the server, the TLS / SSL protocol ensures the integrity of the version number information during transmission; through encrypted transmission, sensitive information such as the version number can be prevented from being intercepted or tampered with in the network, ensuring the accuracy of the upgrade judgment; at the same time, the establishment of this encrypted channel also provides a safe environment for data transmission in the subsequent upgrade process; during the entire upgrade process, whether it is the transmission of the version number or the sending of subsequent incremental file packages, they are all transmitted through an encrypted communication channel, thereby effectively preventing the risk of information leakage.

[0043] In an optional embodiment, the first-level protocol can also be implemented in other ways, such as using the DTLS (Datagram Transport Layer Security) protocol to establish an encrypted first-level communication channel. DTLS is a UDP-based encryption protocol specially designed for communication scenarios requiring low latency. Unlike traditional TLS / SSL, DTLS can achieve secure transmission of data packets in an unreliable network environment. This protocol is suitable for scenarios with high real-time requirements, such as IoT devices that require fast feedback. When using DTLS, the terminal and the server establish a secure session and perform data encryption transmission through key negotiation and identity authentication. The advantage of DTLS is that it can provide similar security to TLS while allowing fast and continuous data stream transmission.

[0044] In an optional embodiment, the first-level protocol can also be implemented in other ways, such as using the SSH (Secure Shell) protocol as an encrypted transmission channel. SSH is a protocol commonly used for remote access and command execution, which ensures the security of data transmission through symmetric encryption and public key encryption; the terminal can establish a secure connection with the server through the SSH protocol, and encrypt and transmit the version number and upgrade data; when establishing a connection, the SSH protocol authenticates the user through the public key and private key, and negotiates the session key to ensure the confidentiality of subsequent communications; although SSH is mainly used for secure login and file transfer, it can also be used in remote OTA upgrade scenarios to provide strong protection for the transmission of upgrade data.

[0045] Example 2, reference Figure 1-Figure 3 , is an embodiment of the present invention, which provides a remote OTA upgrade method, including:

[0046] S2: Transmit information through the primary communication channel.

[0047] It should be noted that transmitting information through the primary communication channel includes transmitting version information to the server through the established primary communication channel, thereby realizing two-way interaction of data and instructions.

[0048] Furthermore, the terminal transmits information related to the current version to the server through an encrypted communication channel as a backup file. The backup file is stored in the server in a temporary file format. The backup file in the temporary file format is automatically deleted after the terminal completes the upgrade to avoid occupying server memory.

[0049] S3: Compare the files and obtain a class of file packages.

[0050] It should be noted that comparing files to obtain a type of file package includes comparing and screening data files to obtain a type of file package for further determining the upgrade; wherein the type of file package is an incremental file package.

[0051] Furthermore, the server performs an incremental comparison between the latest version file and the backup file. The incremental comparison method includes:

[0052] Taking the latest version of the file as a reference, the backup file is compared item by item, and the newly added file information, deleted file information, and changed file information relative to the backup file are screened out as incremental files, and several incremental files are combined to form an incremental file package; in order to improve the effective use of the incremental file package in the terminal and improve the success rate of the terminal upgrade, after obtaining the incremental file package, the upgrade logic simulation is performed in the server, and the upgrade logic simulation method includes: performing a secondary backup of the backup file and simulating the terminal operating environment; inserting the newly added file information into the corresponding part of the backup file; replacing the changed file information with the relevant information part of the corresponding backup file; deleting the information of the backup file corresponding to the deleted file information according to the deleted file information in the incremental file package; completing the reorganization of the latest version of the file in the server;

[0053] It should be noted that the method of simulating the terminal operating environment includes building a virtual machine, configuring the virtual machine according to the actual configuration of the terminal, and then importing the backup file into the virtual machine to complete the simulation of the terminal operating environment. This can be used to determine whether there will be incompatibilities in the incremental file package during the specific upgrade process. When incompatibility occurs, the terminal upgrade is directly stopped, and a pop-up window prompts version incompatibility information; the server can also further analyze the reasons for the incompatibility, and take corresponding measures to repair or adjust the upgrade logic to provide guarantees for the stable upgrade of the terminal.

[0054] Furthermore, when obtaining the incremental file package, the incremental file package is subjected to modular analysis:

[0055] Determine whether there are new resources that are independent modules in the new file information in the incremental file package. If yes, mark the new resources as module files and filter the module files from the new file information; after the installation of the incremental file package is realized, transfer the module files to the simulated terminal running environment to install the module files; filter the modular files from the incremental file package, and after the upgrade, transfer and install the modular files, so as to improve the file transmission efficiency and terminal upgrade efficiency, and also enhance the terminal upgrade success rate;

[0056] When the electricity consumption information collection terminal is remotely OTA upgraded, taking the system version number of the electricity consumption information collection terminal as 1.0, when the latest system version number is 2.0, it means that the electricity consumption information collection terminal needs to be upgraded; before upgrading, the electricity consumption information collection terminal transmits all current system-related information to the server as a backup file; the server compares the backup file item by item based on the 2.0 version information, filters out the new file information relative to the backup file, deletes the file information, and changes the file information as an incremental file; several incremental files are combined to form an incremental file package, and the incremental file package is sent to the electricity consumption information collection terminal for remote OTA upgrade.

[0057] It should be noted that after obtaining the incremental file package, the backup file is backed up again, a virtual machine is built, and the virtual machine is configured according to the actual configuration of the power consumption information collection terminal. The backup file is then imported into the virtual machine, and the newly added file information is inserted into the corresponding part of the backup file in the virtual machine. The changed file information is replaced with the relevant information part of the corresponding backup file. According to the deleted file information in the incremental file package, the information corresponding to the deleted file information of the backup file is deleted, and the latest version of the file is reorganized in the virtual machine, that is, the upgrade preparation of the power consumption information collection terminal is completed. When the power consumption information collection terminal cannot operate normally in the virtual machine, the server is used to further analyze the cause of the incompatibility, and corresponding measures are taken to repair or adjust the upgrade logic. This step can be manually adjusted by the corresponding technical personnel. It should be noted that if the adjustment cannot be completed, it can be judged that the power consumption information collection terminal cannot realize the operation of version 2.0, and the power consumption information collection terminal will no longer be upgraded;

[0058] The server transmits the incremental file package and the upgrade logic to the power consumption information collection terminal through an encrypted communication channel to upgrade the power consumption information collection terminal;

[0059] In order to further improve the upgrade speed of the electricity consumption information collection terminal, the modular files in the incremental files will be screened out when the incremental file package is generated. The modular files are independent new resources. For example, the 1.0 version does not have the historical voltage data trend change sorting function (displaying the change trend of the voltage data within the set collection period), and the 2.0 version has the historical voltage data trend change sorting function, the files responsible for the historical voltage data trend change sorting function will be treated as modular files and screened out from the 2.0 version to complete the reorganization of the incremental file package in the electricity consumption information collection terminal. After the 2.0 version is upgraded, the modular files will be transferred to the electricity consumption information collection terminal to upgrade and improve the 2.0 version system.

[0060] Example 3, reference Figure 1-Figure 3 , is an embodiment of the present invention, which provides a remote OTA upgrade method, including:

[0061] S4: Perform integrity verification on a class of file packages.

[0062] It should be noted that performing integrity verification on a class of file packages includes sending the class of file packages to a terminal through a primary communication channel to perform integrity verification.

[0063] Furthermore, the server transmits the incremental file package and the upgrade logic to the terminal through an encrypted communication channel to upgrade the terminal. When the server transmits the incremental file package to the terminal, the incremental files are sent to the terminal one by one through the encrypted communication channel for integrity verification. The integrity verification method includes:

[0064] A1: Checksum the incremental file and send the calculation result along with the corresponding incremental file to the terminal;

[0065] A2: After receiving the incremental file, the terminal recalculates the checksum of the incremental file and compares the recalculated result with the checksum calculated in A1. If the comparison results are the same, it is determined that the incremental file has passed the integrity verification. Otherwise, it is determined that the incremental file has not passed the integrity verification.

[0066] Furthermore, for incremental files that fail the integrity verification, the incremental files in the terminal are directly deleted, the server redistributes the incremental files, and performs integrity verification again until the complete incremental file package is obtained; then the terminal is upgraded according to the upgrade logic.

[0067] S5: Test the terminal to confirm that the upgrade is complete.

[0068] It should be noted that testing the terminal to confirm that the upgrade is complete includes testing the terminal after the terminal is upgraded, and confirming that the terminal has completed the upgrade after passing the test.

[0069] Furthermore, after the terminal completes the upgrade, the terminal is subjected to functional testing, performance testing and compatibility testing. After passing all tests, it is determined that the terminal has completed the upgrade. Otherwise, if all tests are not passed, the terminal upgrade file is deleted and the backup information is transmitted to the terminal, and step S3 is continued.

[0070] Furthermore, this step is applied as a rollback mechanism. After the terminal upgrade fails, the backup file is used to reshape the terminal to ensure the effective use of the terminal.

[0071] The above is a schematic scheme of a remote OTA upgrade method of this embodiment. It should be noted that the technical scheme of the system of this remote OTA upgrade method and the technical scheme of the above remote OTA upgrade method belong to the same concept. The details of the technical scheme of a remote OTA upgrade system in this embodiment that are not described in detail can all be referred to the description of the technical scheme of the above remote OTA upgrade method.

[0072] Embodiment 4 is an embodiment of the present invention, which provides a remote OTA upgrade system, including: a communication channel module, an information transmission module, a file comparison module, an integrity verification module and a test confirmation module;

[0073] The communication channel module establishes a primary communication channel and makes an upgrade decision;

[0074] The information transmission module transmits information through a primary communication channel;

[0075] The file comparison module compares the files to obtain a class of file packages;

[0076] The integrity verification module verifies the integrity of a class of file packages;

[0077] The test confirmation module tests the terminal to confirm that the upgrade is complete.

[0078] This embodiment further provides a computing device, applicable to a remote OTA upgrade method, including:

[0079] Memory and processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement a remote OTA upgrade method proposed in the above embodiment.

[0080] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, a remote OTA upgrade method proposed in the above embodiment is implemented.

[0081] The storage medium proposed in this embodiment and the remote OTA upgrade method proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0082] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0083] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0084] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0085] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A remote OTA upgrade method, characterized in that: include: Establish a first-level communication channel to make upgrade decisions; Transmit information via primary communication channels; Compare the files and obtain a class of file packages; Perform integrity verification on a class of file packages; Test the terminal to confirm that the upgrade is complete.

2. A remote OTA upgrade method as claimed in claim 1, characterized in that: The establishing of the primary communication channel and performing upgrade determination includes sending the version number to the server through the established primary communication channel and performing upgrade determination.

3. A remote OTA upgrade method as claimed in claim 2, characterized in that: The transmitting of information through the primary communication channel includes transmitting version information to the server through the established primary communication channel, thereby realizing two-way interaction of data and instructions.

4. A remote OTA upgrade method as claimed in claim 3, characterized in that: Comparing the files to obtain a type of file package includes comparing and screening the data files to obtain a type of file package for further determining the upgrade.

5. A remote OTA upgrade method as claimed in claim 4, characterized in that: The integrity verification of a class of file packages includes sending the class of file packages to a terminal through a primary communication channel to perform integrity verification.

6. A remote OTA upgrade method as claimed in claim 5, characterized in that: The testing of the terminal to confirm the completion of the upgrade includes testing the terminal after the terminal is upgraded, and confirming the completion of the terminal upgrade after the test is passed.

7. A remote OTA upgrade method as claimed in claim 6, characterized in that: The establishment of the primary communication channel includes establishing an encrypted primary communication channel using a primary protocol, so that data is encrypted and protected during transmission.

8. A remote OTA upgrade system based on any one of claims 1-7, characterized in that: include: Communication channel module, information transmission module, file comparison module, integrity verification module and test confirmation module; The communication channel module establishes a primary communication channel and makes an upgrade decision; The information transmission module transmits information through a primary communication channel; The file comparison module compares the files to obtain a class of file packages; The integrity verification module verifies the integrity of a class of file packages; The test confirmation module tests the terminal to confirm that the upgrade is complete.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of a remote OTA upgrade method described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a remote OTA upgrade method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Remote maintenance system and method for electric power Internet of Things terminal equipment

    CN111817874A

  • OTA-based version rollback method and system and storage medium

    CN112799877A

  • Vehicle software upgrading method and device and storage medium

    CN115022092A

  • OTA upgrading method and system of network-connected vehicle machine

    CN116599671A

  • Software upgrading method of Internet of Things terminal

    CN118647016A

Cited By

  • Instrument communication protocol remote upgrading method and system and medium

    CN120321237A

  • Power distribution terminal remote upgrading method and device, storage medium and program product

    CN120335842A