Monitoring system upgrading method, computer equipment and remote cloud platform
By securely downloading and verifying upgrade packages during idle periods of the battery swapping station monitoring system, the risk of upgrade failure in existing technologies is mitigated, ensuring stable and secure operation of the battery swapping station.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XJ ELECTRIC CO LTD
- Filing Date
- 2024-11-04
- Publication Date
- 2026-05-12
AI Technical Summary
The existing remote upgrade system is not suitable for the battery swapping station monitoring system, which increases the possibility of upgrade failure and affects the safe operation and stability of the system.
When the monitoring system is idle, it sends an upgrade package notification, stops the service to upgrade the program, and ensures the secure download and version verification of the upgrade package through two-way interaction between the remote cloud platform and the local monitoring system, and provides a rollback mechanism to deal with upgrade failure.
This improves the stability and security of battery swapping stations, reduces operational impact, and ensures that the system can be upgraded during idle periods to avoid operational interruptions.
Smart Images

Figure CN122018957A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of terminal upgrade technology, specifically relating to a monitoring system upgrade method, computer equipment, and remote cloud platform. Background Technology
[0002] As a crucial component of a battery swapping station, the monitoring system monitors the operational status of all equipment within the station, providing relevant operational data for station administrators. However, the degree of automation in the monitoring system also limits the unmanned operation capability of the station. Regular upgrades to the monitoring system are necessary based on requirements. On-site upgrades of the monitoring system program are costly and place significant pressure on system maintenance personnel. Therefore, remote upgrades are required to gradually improve the user experience and achieve unmanned and safe operation of the battery swapping station.
[0003] Chinese invention patent application CN109104469A discloses a general remote upgrade system and method. This method involves an upgrade server issuing instructions for immediate task execution, causing the upgrade client to perform the upgrade operation accordingly. Alternatively, the upgrade server can issue passive upgrade tasks, and after the task is issued, the upgrade client actively queries for upgrade tasks. The upgrade client checks for upgrade tasks each time the terminal starts or at a specified time and executes the upgrade accordingly. While both modes of this method can achieve remote system upgrades without adding special hardware, when applied to the remote upgrade of a battery swapping station monitoring system, the possibility of upgrading during system operation increases the likelihood of upgrade failure, potentially affecting system security and reducing the stability of the battery swapping station. Summary of the Invention
[0004] The purpose of this invention is to provide a monitoring system upgrade method, computer equipment, and remote cloud platform to solve the problem that existing remote upgrade methods are not suitable for upgrading the monitoring system of the battery swapping station and reduce the stability of the battery swapping station.
[0005] To address the aforementioned technical problems, this invention provides a method for upgrading a monitoring system. The method includes: when a monitoring system meets all the conditions for program upgrade, sending an upgrade package notification to the monitoring system, so that upon receiving the upgrade package notification, the monitoring system stops its service and then performs a program upgrade based on the upgrade package; the conditions include the monitoring system being in an idle state.
[0006] Furthermore, after the monitoring system receives the upgrade package download notification, if the current version number of the current program of the monitoring system is inconsistent with the upgrade package version number in the upgrade package download notification, the upgrade package will be downloaded; otherwise, the download will not be performed.
[0007] The judgment conditions also include that the downloaded upgrade package is successfully verified and that the current version number in the download result fed back by the monitoring system is inconsistent with the upgrade package version number corresponding to the program in the upgrade package.
[0008] Furthermore, the notification content of the upgrade package download includes a verification method and a verification code. The monitoring system verifies the upgrade package using the verification method and verification code. If the verification fails, the downloaded upgrade package is deleted.
[0009] Furthermore, it also receives real-time download progress updates from the monitoring system during the download and upgrade process.
[0010] Furthermore, the upgrade package upgrade notification includes a rollback method, which is used to enable the monitoring system to roll back the program according to the rollback method after the monitoring system program upgrade fails; the rollback method is automatic rollback or specified rollback.
[0011] The automatic rollback refers to the monitoring system selecting the current version number corresponding to the current program of the monitoring system to roll back the program; the specified rollback refers to the monitoring system rolling back the program according to the rollback program version specified in the rollback method.
[0012] To address the aforementioned technical problems, the present invention also provides a computer device, including a processor, which executes a computer program to implement the monitoring system upgrade method described above.
[0013] To address the aforementioned technical problems, the present invention also provides a remote cloud platform, including a processor, wherein the remote cloud platform is used to interact with a monitoring system, and the processor executes a computer program to implement the monitoring system upgrade method described above.
[0014] Its beneficial effects are as follows: This invention is an improved invention. Considering the security issues and instability that arise from upgrading the program during system operation, this invention does not upgrade the system during operation as is common in existing technologies. Instead, it performs the program upgrade only after the monitoring system service is stopped when the system is idle. Specifically, when the monitoring system meets all the conditions for program upgrade, an upgrade package notification is sent to the monitoring system. Upon receiving the upgrade package notification, the monitoring system service is stopped, and then the program upgrade is performed according to the upgrade package. The conditions include the monitoring system being in an idle state. Upgrading the program when the monitoring system is idle reduces the impact on the operation of the battery swapping station, ensures the safe operation of the station, and improves its stability. Attached Figure Description
[0015] Figure 1This is a block diagram of the monitoring system according to an embodiment of the present invention;
[0016] Figure 2 This is a flowchart of a remote upgrade process for a monitoring system according to an embodiment of the method of the present invention;
[0017] Figure 3 This is a logic diagram of a monitoring system upgrade method according to an embodiment of the present invention. Detailed Implementation
[0018] This invention sends an upgrade package notification to the monitoring system when it meets all the conditions for program upgrade. Upon receiving the upgrade package notification, the monitoring system stops its services and then performs a program upgrade based on the upgrade package. The conditions for upgrade include the monitoring system being in an idle state. This solves the problem that existing remote upgrade methods are not suitable for upgrading battery swapping station monitoring systems and reduce the stability of battery swapping stations.
[0019] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0020] Method Implementation Examples:
[0021] This embodiment provides a method for upgrading a monitoring system, which is a battery swapping station monitoring system, such as... Figure 1 As shown, the monitoring system includes a data interaction module and an upgrade processing module. The data interaction module, upon detecting upgrade package downloads and upgrade notifications, sends information to the upgrade processing module. Upon detecting upgrade package download and upgrade results, it sends information to the remote cloud platform. The upgrade processing module, based on the upgrade package download and upgrade notifications, completes the download and upgrade operations, and sends the download and upgrade results back to the data interaction module. This system can automatically upgrade the battery swapping station monitoring system according to notifications sent from the remote cloud platform, contributing to the stable operation of the battery swapping station.
[0022] like Figure 2 As shown, when the remote cloud platform detects an upgrade program, it pushes an upgrade package download notification to the monitoring system (i.e., the battery swapping station monitoring system). Upon receiving the notification, the monitoring system compares the current version number of its program with the upgrade package version number in the notification. If they don't match, it downloads the upgrade package and verifies it. If verification is successful, the upgrade package is saved; otherwise, it is deleted. When an upgrade package version is detected to be inconsistent with the monitoring system version, the remote cloud platform pushes an upgrade notification. Upon receiving the notification, the monitoring system locates the program corresponding to the upgrade package version number, completes the upgrade, and uploads the upgrade result. The specific implementation process of this method is as follows: Figure 3 As shown, specifically:
[0023] Step 1: The remote cloud platform periodically checks and upgrades its internal processes. When an upgrade is detected, the remote cloud platform pushes an upgrade package download notification to the monitoring system. The notification includes the download link for the upgrade package, the upgrade package version number, the verification method, and the verification code.
[0024] Step 2: The monitoring system obtains its current version number. If the current version number is the same as the version number in the notification, no download operation is performed. If the current version number is different from the version number in the notification, the upgrade package is downloaded according to the upgrade package download link, and the security of the upgrade package is verified. If the verification is successful, the upgrade package is saved to the specified directory; if the verification fails, the upgrade package is deleted. During the download process, the download progress is sent to the remote cloud platform in real time. The monitoring system uploads the upgrade package download result to the remote cloud platform, including the return code, return information, and current version number.
[0025] In this embodiment, the remote cloud platform determines whether the monitoring system download was successful based on the return code. A return code of "0" indicates a successful download, while a return code of "1" indicates a download failure. Other implementations can be configured according to actual needs. The returned information includes the reason for the download success or failure. For example, when the return code is "1," the returned information is: "Due to the failure of security verification of the upgrade package, the upgrade package was deleted, therefore the download failed."
[0026] Step 3: The remote cloud platform determines whether to push an upgrade package notification based on the version number in the received upgrade package download result; if the upgrade package version number is the same as the current version number, no upgrade package notification will be pushed; if the upgrade package version number is different from the current version number, an upgrade package notification will be pushed, and the notification content includes: upgrade package version number and rollback method.
[0027] To ensure the secure download of upgrade packages and the stable operation of battery swapping stations, the Yuanfang Cloud Platform promptly pushes upgrade package notifications when the battery swapping stations are idle, i.e., when the battery swapping stations are not swapping batteries or are not operating.
[0028] Step 4: After receiving the upgrade package notification, the monitoring system obtains the upgrade package version number and rollback method from the notification; stops the battery swapping station monitoring system service, reads the version information of the currently used program, packages the current program using the read version, and moves it to the historical version folder; locates the upgrade package program downloaded and saved in Step 2 according to the upgrade package version number and replaces the current program to perform the program upgrade; after the upgrade is completed, the battery swapping station monitoring system is started. If the service starts normally, the upgrade is successful; if the service fails to start, the upgrade fails, and proceed to Step 5.
[0029] Step 5: The monitoring system rolls back according to the rollback method in the upgrade package notification. If the rollback method is automatic rollback, the previous version of the program is selected for rollback, i.e., the program is rolled back to the current program moved to the historical version folder in Step 4. If the rollback method is specified rollback, the program is rolled back to the specified version according to the rollback program version in the rollback method, and the upgrade result information is sent, including the return code, return information, and the version number to be used after rollback.
[0030] This invention ensures the secure download of upgrade packages through two-way interaction between a remote cloud platform and a local monitoring system. The remote cloud platform promptly pushes upgrade packages when the battery swapping station is idle, based on the local program version, and the local system uploads upgrade progress in real time. If the upgrade fails, the monitoring system's program is rolled back to the previous version or a specified version, reducing the impact on the operation of the battery swapping station and ensuring its safe operation.
[0031] Computer equipment example:
[0032] This embodiment of a computer device includes a processor, a memory, and an internal bus. The processor and the memory communicate and interact with each other via the internal bus. The memory includes at least one software functional module stored in the memory. The processor executes various functional applications and data processing by running the computer program and module stored in the memory, thereby implementing the monitoring system upgrade method described in this embodiment of the invention. The principle, implementation process, and achievable effects of this method have been fully described in the method embodiments and will not be repeated here.
[0033] Remote cloud platform example:
[0034] This embodiment of a remote cloud platform includes a processor. The remote cloud platform is used to interact with a monitoring system. The processor executes a computer program to implement a monitoring system upgrade method described in this embodiment. The principles, implementation process, and achievable effects of this method have been fully described in the method embodiments and will not be repeated here.
Claims
1. A method for upgrading a monitoring system, characterized in that, The method includes: when it is determined that the monitoring system meets all the conditions for program upgrade, sending an upgrade package notification to the monitoring system, so that after receiving the upgrade package notification, the monitoring system stops its service and then performs a program upgrade according to the upgrade package; the determination conditions include that the monitoring system is in an idle state.
2. The monitoring system upgrade method according to claim 1, characterized in that, After receiving the upgrade package download notification, if the current version number of the current program of the monitoring system is inconsistent with the upgrade package version number in the upgrade package download notification, the upgrade package will be downloaded; otherwise, the download will not be performed. The judgment conditions also include that the downloaded upgrade package is successfully verified and that the current version number in the download result fed back by the monitoring system is inconsistent with the upgrade package version number corresponding to the program in the upgrade package.
3. The monitoring system upgrade method according to claim 2, characterized in that, The notification content of the upgrade package download includes a verification method and a verification code. The monitoring system verifies the upgrade package using the verification method and verification code. If the verification fails, the downloaded upgrade package is deleted.
4. The monitoring system upgrade method according to claim 2, characterized in that, It also receives real-time download progress updates from the monitoring system during the download and upgrade process.
5. The monitoring system upgrade method according to claim 1, characterized in that, The upgrade package upgrade notification includes a rollback method, which is used to enable the monitoring system to roll back the program according to the rollback method after the monitoring system program upgrade fails; the rollback method is automatic rollback or specified rollback. The automatic rollback refers to the monitoring system selecting the current version number corresponding to the current program of the monitoring system to roll back the program; the specified rollback refers to the monitoring system rolling back the program according to the rollback program version specified in the rollback method.
6. A computer device, comprising a processor, characterized in that, The processor executes a computer program to implement the monitoring system upgrade method as described in any one of claims 1 to 5.
7. A remote cloud platform, comprising a processor, wherein the remote cloud platform is used for information interaction with a monitoring system, characterized in that, The processor executes a computer program to implement the monitoring system upgrade method as described in any one of claims 1 to 5.