CN114553860B - OTA upgrading method and device and electronic equipment - Google Patents
OTA upgrading method and device and electronic equipment Download PDFInfo
- Publication number
- CN114553860B CN114553860B CN202210152250.1A CN202210152250A CN114553860B CN 114553860 B CN114553860 B CN 114553860B CN 202210152250 A CN202210152250 A CN 202210152250A CN 114553860 B CN114553860 B CN 114553860B
- Authority
- CN
- China
- Prior art keywords
- version software
- software
- current
- upgrade
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000005192 partition Methods 0.000 claims abstract description 25
- 230000015654 memory Effects 0.000 claims description 43
- 238000009434 installation Methods 0.000 claims description 8
- 238000004891 communication Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an OTA upgrading method, an OTA upgrading device and electronic equipment, wherein the OTA upgrading method obtains upgrading version software when receiving an upgrading instruction, and installs the upgrading version software in a partition different from the current version software, namely, the upgrading version software and the current version software are installed in a A, B partition mode, so that the service running in the current version software is not influenced; by synchronizing the service related data of the current service of the current version software to the upgrade version software, service interruption caused by loss of the service related data of the current service when the current service is restarted in the upgrade version software can be avoided. Therefore, the OTA upgrading method provided by the invention can realize smooth switching and lossless upgrading of OTA upgrading.
Description
Technical Field
The invention relates to the technical field of control of engineering machinery, in particular to an OTA upgrading method and device and electronic equipment.
Background
OTA (Over-the-Air Technology) has great significance on intelligent network engineering machinery equipment, and system defects can be quickly repaired, product function experience can be continuously improved and recall cost can be reduced through OTA upgrading.
At present, the OTA of the intelligent network engineering mechanical equipment is similar to the OTA of the intelligent network automobile, and the general flow is as follows: firstly, a cloud server sends a software update package to a device Ethernet module, such as a T-BOX; then the T-BOX sends the software update package downloaded by the cloud to the GATEWAY GATEWAY of the equipment; then, after the user permission, the equipment gateway is used as an upper computer to replace the running software in each electronic control unit ECU with new and old version files through diagnostic service; and finally restarting to finish the refreshing of the ECU. That is, at present, the device OTA requires the device to stop working, and after the upgrade is successful, the device is restarted to be put into normal working, and the normal method of upgrade is to directly stop the old version and run the new version, so that there is no effective smooth switching and lossless upgrade scheme. However, some devices with severe requirements on service interruption, such as emergency rescue devices or devices participating in cluster operation, are basically intolerable in terms of short service loss caused by long-time service interruption and even in the process of upgrading OTA, which greatly limits the application of OTA and makes remote upgrading and operation of the devices difficult.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide an OTA upgrading method, apparatus and electronic device, so as to solve the problem that the current OTA upgrading has no effective smooth switching and lossless upgrading scheme.
According to a first aspect, an embodiment of the present invention provides an OTA upgrading method, including the following steps: when an upgrade instruction of the current version of software is received, obtaining the upgrade version of software; installing the upgrade version software in a partition different from the current version software; and synchronizing the service related data of the current service of the current version software to the upgrading version software.
According to the OTA upgrading method provided by the embodiment of the invention, when an upgrading instruction is received, upgrading version software is obtained, and the upgrading version software is installed in a partition different from the current version software, namely, the upgrading version software and the current version software are installed in a A, B partition mode, so that the service running in the current version software is not influenced; by synchronizing the service related data of the current service of the current version software to the upgrade version software, service interruption caused by loss of the service related data of the current service when the current service is restarted in the upgrade version software can be avoided. Therefore, the OTA upgrading method provided by the embodiment of the invention can realize smooth switching and lossless upgrading of OTA upgrading.
With reference to the first aspect, in a first implementation manner of the first aspect, before synchronizing service related data of a current service of the current version software to the updated version software, the method further includes: when receiving a new service, distributing the new service to the upgrade version software; acquiring the running state of the new service in the upgrade version software; judging whether the new service runs successfully in the upgrade version software according to the running state; and after the new service runs successfully in the upgrade version software, executing the step of synchronizing the service related data of the current service of the current version software to the upgrade version software.
With reference to the first aspect or the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the service related data includes one or more of the following: memory data, unprocessed data, and configuration files.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, synchronizing the memory data to the upgrade version software includes: determining a memory corresponding to the current version of software; and acquiring the memory data from a memory corresponding to the current version software and synchronizing to the updated version software.
With reference to the second implementation manner of the first aspect, in a fourth implementation manner of the first aspect, synchronizing the unprocessed data or the configuration file to the upgrade version software includes: determining an address of a database for holding the raw data or the configuration file; when the address of the database is in the public area, acquiring an index of the unprocessed data or the configuration file, and transmitting the index to the upgrade version software; and when the address of the database is in a private directory area corresponding to the current version software, acquiring the unprocessed data or the configuration file in the private directory area and synchronizing to the upgrading version software.
With reference to the first aspect or the first implementation manner of the first aspect, in a fifth implementation manner of the first aspect, after synchronizing service related data of a current service of the current version software to the updated version software, the method further includes: stopping the operation of the current service in the current version software and synchronously starting the operation of the current service in the upgrade version software.
With reference to the first aspect or the first implementation manner of the first aspect, in a fifth implementation manner of the first aspect, before the installing the upgrade version software in a partition different from the current version software, the method further includes: acquiring an area where the current version of software is located; and determining the installation area of the updated version software according to the area where the current version software is located.
According to a second aspect, the embodiment of the invention also provides an OTA upgrading device, which comprises an acquisition module, an installation module and a synchronization module; when an upgrade instruction of the current version of software is received, the acquisition module is used for acquiring the upgrade version of software; the installation module is used for installing the updated version software in a partition different from the current version software; and the synchronization module is used for synchronizing the service related data of the current service of the current version software to the updated version software.
According to a third aspect, an embodiment of the present invention further provides an electronic device, including: at least two partitions and an OTA upgrade manager, wherein the current version of software is installed in one partition; the OTA upgrade manager is in communication connection with the current version software, computer instructions are stored in the OTA upgrade manager, and the OTA upgrade manager executes the OTA upgrade method in the first aspect or any implementation manner of the first aspect by executing the computer instructions.
With reference to the third aspect, in a first implementation manner of the third aspect, the method further includes a public area, where a database and/or a configuration file corresponding to the current version of software are provided.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and should not be construed as limiting the invention in any way, in which:
Fig. 1 is a flow chart of an OTA upgrading method in embodiment 1 of the present invention;
fig. 2 is a flow chart of an example of an OTA upgrade method;
fig. 3 is a schematic structural diagram of an OTA upgrading device in embodiment 2 of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
Example 1
The intelligent operation of the engineering mechanical equipment relates to a plurality of application programs, and when the configuration files of some application programs need to be updated iteratively, the new and old versions of the application programs should be smoothly switched, so that the normal operation of the engineering mechanical equipment cannot be influenced. The embodiment 1 of the invention discloses an OTA upgrading method which can be used for iterative updating of intelligent operation application programs of engineering mechanical equipment. Fig. 1 is a flow chart of an OTA upgrading method in embodiment 1 of the present invention, and as shown in fig. 1, the OTA upgrading method in embodiment 1 of the present invention includes the following steps:
s101: and when receiving the upgrade instruction of the software, acquiring the upgrade version software.
As a specific implementation manner, the following scheme may be adopted for obtaining the upgrade version software: the cloud service platform stores various update packages with different versions, and an OTA server (an upgrade server on the cloud service platform) pushes upgrade notification messages to corresponding equipment terminals at random; an OTA Manager (upgrade Manager on equipment) analyzes own requirements and sends a notification message for downloading the upgrade version software to a cloud, wherein the notification message comprises identification information of the software and current version information of the software; the equipment gateway downloads the upgrade version software from the cloud service platform in a wireless communication transmission mode; and the upgrade manager acquires the upgrade version software downloaded in the cloud from the equipment gateway through a communication network carried in the equipment.
S102: the upgrade version software is installed in a different partition than the current version software.
As a specific implementation manner, before installing the upgrade version software in a partition different from the current version software, the upgrade manager first obtains an area where the current version software is installed, and then the upgrade manager searches for an additional installation area for the upgrade version software. Specifically, the electronic control unit of the engineering machinery equipment is required to support the partitioning of hardware or software, such as an area A and an area B, wherein isolation exists between the area A and the area B, and software programs running in the respective areas do not affect each other, but can perform data interaction.
In embodiment 1 of the present invention, installing the upgrade version software in a different partition from the current version software can avoid the upgrade version software from covering the current version software, and cause the running service in the current version software to be interrupted before the upgrade version software is not completely established.
S103: and synchronizing the service related data of the current service of the current version software to the upgrading version software.
In embodiment 1 of the present invention, the service-related data includes one or more of the following: memory data (i.e., current service data stored in memory), unprocessed data (i.e., portion of the data that is unprocessed by the current service), and configuration files.
This is because if the current service data in processing is cached in the memory of the system, restarting the current service in the updated version software will result in the loss of the current service data stored in the memory, resulting in interruption of the current service, and thus the current service data stored in the memory, i.e., the memory data, needs to be synchronously processed.
In addition, if the current service data is already stored in the database, if the unprocessed portion of the current service is not synchronized to the upgrade version software, the current service process may be restarted in the upgrade version software, which may also result in loss of the unprocessed portion of the current service, resulting in interruption of the current service.
In embodiment 1 of the present invention, the configuration file is related to data in the service process, such as configured port number, IP address, and the like. It should be noted that in some cases, the configuration file is not included in the current service running process, and in the case that the configuration file is not included, the configuration file does not need to be synchronized.
As a specific implementation manner, the following scheme may be adopted to synchronize the memory data to the upgrade version software: determining a memory corresponding to the current version of software; and acquiring the memory data from a memory corresponding to the current version software and synchronizing to the updated version software. That is to say that the first and second,
As a specific embodiment, the synchronization of the unprocessed data to the upgrade version software may be performed in the following manner: determining an address of a database for holding the unprocessed data; when the address of the database is in the public area, acquiring an index of the unprocessed data, and sending the index to the upgrade version software; and when the address of the database is in a private directory area corresponding to the current version software, acquiring the unprocessed data in the private directory area and synchronizing to the updated version software.
As a specific embodiment, the synchronizing the configuration file to the upgrade version software may adopt the following manner: determining an address of a database for storing the configuration file; when the address of the database is in the public area, acquiring an index of the configuration file, and sending the index to the upgrade version software; and when the address of the database is in a private directory area corresponding to the current version software, acquiring the configuration file in the private directory area and synchronizing to the updated version software.
It should be noted that, the steps S101 to S103 may be performed during the current service operation, or may be performed under other conditions; when steps S101 to S103 are performed during the execution of the current service, the interruption of the running service in the current version of software is not caused.
Therefore, in the OTA upgrading method provided by the embodiment of the invention, when an upgrading instruction is received, the upgrading version software is obtained and is installed in a partition different from the current version software, namely, the upgrading version software and the current version software are installed in a A, B partition mode, so that the service running in the current version software is not influenced; by synchronizing the service related data of the current service of the current version software to the upgrade version software, service interruption caused by loss of the service related data of the current service when the current service is restarted in the upgrade version software can be avoided. That is, the operation of data synchronization is introduced in the switching process of A, B areas in the OTA upgrading process of the device, so that the service related data of the current service can be synchronized in a lossless manner, the unprocessed current service in the upgrading process is not interrupted, thereby ensuring the smooth switching of the software version and enabling the service of the OTA device to be upgraded in a lossless manner.
As a further embodiment, before synchronizing the service related data of the current service of the current version software to the updated version software, the method further includes: when receiving a new service of the software, distributing the new service to the updated version software; acquiring the running state of the new service in the upgrade version software; judging whether the new service runs successfully in the upgrade version software according to the running state; and after the new service runs successfully in the upgrade version software, executing the step of acquiring the current service data and the static data of the current version software. Therefore, after the upgrade version software runs successfully, the data synchronization can be performed again, and the data synchronization is ensured
As a further embodiment, after synchronizing the service related data of the current service of the current version software to the updated version software, the method further includes: stopping the operation of the current service in the current version software and synchronously starting the operation of the current service in the upgrade version software.
To describe the OTA upgrading method of embodiment 1 of the present invention in more detail, a specific example is given. This example takes the intelligent driving suite of the engineering machine as an example, where a software version needs to be upgraded from version 1.0 to version 2.0 when executing the cluster operation, to describe the smooth upgrade process. The software runs in the area A before upgrading, and the version number is 1.0; an OTA upgrade is now performed to upgrade the OTA to version 2.0; the cloud service platform side provides remote upgrade support by the OTA server, and the equipment side uniformly schedules upgrade tasks by the process of the OTA Manager.
As shown in fig. 2, the OTA upgrading method includes the following steps:
1. version 1.0 before upgrading operates in zone A;
2. the cloud service platform side prepares an upgrade package after receiving an upgrade request notification of the equipment side, creates an upgrade task and sends an upgrade instruction to the equipment side;
3. After the equipment receives the upgrading instruction, the Ethernet communication gateway of the equipment downloads a software package of version 2.0 from the cloud service platform side through a 5G network; after the downloading is completed, distributing and deploying the version 2.0 in the region B for operation through a CAN network OTA Manager carried by the equipment, and switching the new service to the version 2.0 of the region B for processing;
4. After confirming that the 2.0 version software of the B area runs successfully, the OTA Manager sends a data synchronization instruction to the 1.0 version of the A area, and the 1.0 version of the A area starts to synchronize configuration data, memory data, database data and the like and business related data to the 2.0 version of the B area;
5. after the data synchronization is completed, the OTA Manager stops the 1.0 version operation of the A area, and the 2.0 version of the B area processes the service data of the old version synchronization.
The embodiment 1 of the invention provides a method for switching over the smooth upgrading of OTA, which can realize uninterrupted upgrading of service through the smooth switching over of software version, thereby greatly enriching the use scene of OTA and promoting the vigorous development of intelligent networking of engineering machinery.
Example 2
The embodiment 2 of the invention discloses an OTA upgrading device. Fig. 3 is a schematic structural diagram of an OTA upgrading device in embodiment 2 of the present invention, and as shown in fig. 3, the OTA upgrading device in embodiment 2 of the present invention includes an obtaining module 20, an installing module 21 and a synchronizing module 22.
Specifically, the acquiring module 20 is configured to acquire the updated version software after receiving the update instruction of the software;
An installation module 21 for installing the upgrade version software in a partition different from the current version software;
And the synchronization module 22 is configured to synchronize service related data of a current service of the current version software to the upgraded version software.
Further, the OTA upgrading device further comprises an operation module, before synchronizing service related data of a current service of the current version software to the upgrading version software, when a new service is received, the operation module is used for distributing the new service to the upgrading version software; acquiring the running state of the new service in the upgrade version software; judging whether the new service runs successfully in the upgrade version software according to the running state; after the new service is successfully run in the upgraded version software, it is determined that the step of synchronizing service related data of the current service of the current version software to the upgraded version software can be performed.
Specifically, the synchronization module 22 is specifically configured to: determining a memory corresponding to the current version of software; and acquiring the memory data from a memory corresponding to the current version software and synchronizing to the updated version software.
Specifically, the synchronization module 22 is specifically configured to: determining an address of a database for holding the raw data or the configuration file; when the address of the database is in the public area, acquiring an index of the unprocessed data or the configuration file, and transmitting the index to the upgrade version software; and when the address of the database is in a private directory area corresponding to the current version software, acquiring the unprocessed data or the configuration file in the private directory area and synchronizing to the upgrading version software.
Further, after synchronizing the service related data of the current service of the current version software to the updated version software, the synchronization module 22 is further configured to: stopping the operation of the current service in the current version software and synchronously starting the operation of the current service in the upgrade version software.
The specific details of the OTA upgrading device can be understood correspondingly with reference to the corresponding related descriptions and effects in the embodiments shown in fig. 1 to 2, and will not be repeated here.
Example 3
The embodiment of the invention also provides electronic equipment, which comprises at least two partitions and an OTA upgrade manager, wherein current version software is stored in one partition, the OTA upgrade manager is in communication connection with the current version software, computer instructions are stored in the OTA upgrade manager, and the OTA upgrade manager executes the computer instructions, so that the OTA upgrade method of the embodiment 1 of the invention is executed.
Further, the electronic device further comprises a public area, and a database and/or a configuration file corresponding to the current version of software are arranged in the public area.
The OTA upgrade manager may include a processor and a memory, where the processor and memory may be connected by a bus or other means.
The processor may be a central processing unit (Central Processing Unit, CPU). The Processor may also be other general purpose processors, digital Signal Processors (DSP), application SPECIFIC INTEGRATED Circuits (ASIC), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above.
The memory, as a non-transitory computer readable storage medium, may be used to store a non-transitory software program, a non-transitory computer executable program, and modules, such as program instructions/modules (e.g., the acquisition module 20, the installation module 21, and the synchronization module 22 shown in fig. 3) corresponding to the OTA upgrade method in the embodiments of the present invention. The processor executes the non-transient software programs, instructions and modules stored in the memory to perform various functional applications and data processing of the processor, i.e. to implement the OTA upgrading method in the above method embodiments.
The memory may include a memory program area and a memory data area, wherein the memory program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor, etc. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory and when executed by the processor perform the OTA upgrade method of the embodiments shown in fig. 1-3.
The specific details of the electronic device may be understood in reference to the corresponding related descriptions and effects in the embodiments shown in fig. 1 to 3, which are not repeated herein.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, where the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. Wherein the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a hard disk (HARD DISK DRIVE, abbreviated as HDD), a Solid state disk (Solid-state-STATE DRIVE, SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.
Claims (7)
1. An OTA upgrade method, comprising:
when an upgrade instruction of the current version of software is received, obtaining the upgrade version of software;
installing the upgrade version software in a partition different from the current version software;
synchronizing service related data of the current service of the current version software to the upgrade version software;
before synchronizing the service related data of the current service of the current version software to the upgrade version software, the method further comprises:
when receiving a new service, distributing the new service to the upgrade version software;
acquiring the running state of the new service in the upgrade version software;
Judging whether the new service runs successfully in the upgrade version software according to the running state;
after the new service runs successfully in the upgrade version software, executing the step of synchronizing the service related data of the current service of the current version software to the upgrade version software;
the service related data includes one or more of the following: memory data, unprocessed data, and configuration files;
Synchronizing the raw data or configuration file to the upgraded version software includes:
Determining an address of a database for holding the raw data or the configuration file;
When the address of the database is in the public area, acquiring an index of the unprocessed data or the configuration file, and transmitting the index to the upgrade version software;
and when the address of the database is in a private directory area corresponding to the current version software, acquiring the unprocessed data or the configuration file in the private directory area and synchronizing to the upgrading version software.
2. The method of claim 1, wherein synchronizing the memory data to the upgraded version of software comprises:
Determining a memory corresponding to the current version of software;
and acquiring the memory data from a memory corresponding to the current version software and synchronizing to the updated version software.
3. The method according to claim 1 or 2, further comprising, after synchronizing service related data of a current service of the current version software to the upgraded version software:
Stopping the operation of the current service in the current version software and synchronously starting the operation of the current service in the upgrade version software.
4. The method of claim 1 or 2, further comprising, prior to installing the upgraded version software in a different partition than the current version software:
obtaining a partition where the current version of software is located;
And determining the installation partition of the updated version software according to the partition where the current version software is located.
5. An OTA upgrading device, comprising:
the acquisition module is used for acquiring the upgrade version software when receiving the upgrade instruction of the current version software;
the installation module is used for installing the updated version software in a partition different from the current version software;
the synchronization module is used for synchronizing the service related data of the current service of the current version software to the updated version software;
before synchronizing the service related data of the current service of the current version software to the upgrade version software, the method further comprises:
when receiving a new service, distributing the new service to the upgrade version software;
acquiring the running state of the new service in the upgrade version software;
Judging whether the new service runs successfully in the upgrade version software according to the running state;
after the new service runs successfully in the upgrade version software, executing the step of synchronizing the service related data of the current service of the current version software to the upgrade version software;
the service related data includes one or more of the following: memory data, unprocessed data, and configuration files;
Synchronizing the raw data or configuration file to the upgraded version software includes:
Determining an address of a database for holding the raw data or the configuration file;
When the address of the database is in the public area, acquiring an index of the unprocessed data or the configuration file, and transmitting the index to the upgrade version software;
and when the address of the database is in a private directory area corresponding to the current version software, acquiring the unprocessed data or the configuration file in the private directory area and synchronizing to the upgrading version software.
6. An electronic device, comprising:
at least two partitions, wherein a current version of software is installed in one of the partitions;
The OTA upgrade manager is in communication connection with the current version software, computer instructions are stored in the OTA upgrade manager, and the OTA upgrade manager executes the OTA upgrade method according to any one of claims 1-4 by executing the computer instructions.
7. The electronic device of claim 6, further comprising a public area in which a database and/or a configuration file corresponding to the current version of software is located.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210152250.1A CN114553860B (en) | 2022-02-18 | 2022-02-18 | OTA upgrading method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210152250.1A CN114553860B (en) | 2022-02-18 | 2022-02-18 | OTA upgrading method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114553860A CN114553860A (en) | 2022-05-27 |
CN114553860B true CN114553860B (en) | 2024-07-23 |
Family
ID=81676362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210152250.1A Active CN114553860B (en) | 2022-02-18 | 2022-02-18 | OTA upgrading method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114553860B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102937925A (en) * | 2012-11-01 | 2013-02-20 | 中兴通讯股份有限公司 | Distributed communication device software upgrading method and system |
CN102968357A (en) * | 2012-11-01 | 2013-03-13 | 中兴通讯股份有限公司 | Software upgrading method and system for distributed communication device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8402454B2 (en) * | 2010-09-22 | 2013-03-19 | Telefonaktiebolaget L M Ericsson (Publ) | In-service software upgrade on cards of virtual partition of network element that includes directing traffic away from cards of virtual partition |
CN109728886A (en) * | 2017-10-27 | 2019-05-07 | 中兴通讯股份有限公司 | A kind of method of data synchronization, device, equipment and storage medium suitable for cross-version upgrading |
-
2022
- 2022-02-18 CN CN202210152250.1A patent/CN114553860B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102937925A (en) * | 2012-11-01 | 2013-02-20 | 中兴通讯股份有限公司 | Distributed communication device software upgrading method and system |
CN102968357A (en) * | 2012-11-01 | 2013-03-13 | 中兴通讯股份有限公司 | Software upgrading method and system for distributed communication device |
Also Published As
Publication number | Publication date |
---|---|
CN114553860A (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110196731B (en) | Operation and maintenance system, method and storage medium | |
CN105681060B (en) | virtualized network function management upgrading method, device and server | |
CN108632375B (en) | Online upgrading method for distributed deployment service software program | |
US20230004381A1 (en) | Software version rollback method, apparatus, and system | |
US10891122B2 (en) | Rolling upgrade of a distributed application | |
EP2696532A2 (en) | Method, server and system for starting application | |
CN105453036A (en) | Application installation and layout synchronization | |
CN105677380B (en) | Method and device for board-by-board upgrading of double master control isolations | |
CN106775816B (en) | Automatic updating method and system for application program in local area network | |
CN106953746A (en) | Clustered node upgrade-system and method | |
CN110162334B (en) | Code management method, device and storage medium | |
CN108513145B (en) | Control method and device for live broadcast with wheat | |
CN112470119B (en) | Service upgrading method and device in distributed system and distributed system | |
CN111786893A (en) | method and device for synchronizing software versions of wireless routers in mesh networking | |
CN111078238A (en) | Centralized processing method and device for application configuration in container environment | |
CN110727468A (en) | Method and apparatus for managing algorithm models | |
CN102833101A (en) | Software upgrading method and equipment of distributed network system | |
CN111273924A (en) | Software updating method and device | |
CN114553860B (en) | OTA upgrading method and device and electronic equipment | |
CN104104701A (en) | Online service configuration updating method and system | |
US20190012161A1 (en) | Distributed and self-deleting apparatus for fast software deployment and upgrade in a network | |
CN108521452B (en) | Method and system for intelligently upgrading service version | |
CN107632865B (en) | FPGA configuration upgrading method and device | |
CN116743762A (en) | Service registration cluster flow switching method, flow switching device and storage medium | |
CN114816476A (en) | Update deployment method, device, equipment and medium based on k8s micro service cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |