Online version upgrading method and system for edge device, electronic device and storage medium

By prioritizing the download of new version files from nearby upgraded edge devices in the online upgrade of software versions of edge devices, the problems of long upgrade cycle time and large network bandwidth requirements in the existing technology are solved, and a fast and energy-saving version release is achieved.

CN120010883APending Publication Date: 2025-05-16BEIJING CHANGJING RIETER SOFTWARE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411953958.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

When upgrading the software version of edge devices online, the software service platform with existing CS architecture adopts a many-to-one method, resulting in a long upgrade cycle, large network bandwidth demand, and additional purchase of content distribution network acceleration is required to support it.

Method used

By establishing a communication connection between the version server and the edge device, when an edge device detects a new version, it prefers to download the new version file from nearby upgraded edge devices rather than directly from the version server. Downloads will only be requested from the version server if the new version file cannot be obtained nearby.

Benefits of technology

It realizes the mesh propagation of new version files in multiple edge devices, and is quickly published to all edge devices, reducing the upgrade cycle time of the entire business system, reducing the network bandwidth requirements of the version server, and saving the cost of network bandwidth expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010883A_ABST
    Figure CN120010883A_ABST
Patent Text Reader

Abstract

The invention discloses an edge device online version upgrading method and system, electronic equipment and a storage medium, and the method comprises the steps that a version server receives a registration connection request sent by an edge device to establish communication connection between the version server and the edge device; under the condition of determining that the new version exists, the version server sends a notice that the new version exists to the edge equipment; in response to the notification of the new version, the edge device sends a version file downloading request to a version server; in response to the version file downloading request, the version server generates version file downloading information and sends the version file downloading information to the edge device; under the condition that it is determined that the nearby edge device has downloaded the new-version file based on the version file downloading information, the new-version file is downloaded from the nearby edge device according to the version file downloading information; according to the method, the required new version file is preferentially and quickly acquired from other upgraded edge devices which are closer to the device during upgrading, so that the network bandwidth requirement of the version server is reduced, and the cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of version upgrade, and more specifically, to an edge device online version upgrade method, system, electronic device and storage medium. Background Art

[0002] The current CS-based software service platform on the market usually uses a many-to-one approach for online software version upgrades of edge devices. Each edge device must download the complete upgrade package from the service platform to the local device before the upgrade can be completed. When the number of edge devices is large and the upgrade package file is relatively large, the upgrade cycle will be too long and the network bandwidth of the service platform will be greatly increased. At this time, it is often necessary to purchase additional content distribution network acceleration to support it.

[0003] In summary, at this stage, there is an urgent need to develop an edge device online version upgrade method, system, electronic device and storage medium to solve the above-mentioned problems. Summary of the invention

[0004] An object of the present invention is to provide a new technical solution for an edge device online version upgrade method, system, electronic device and storage medium.

[0005] According to a first aspect of the present invention, a method for online version upgrade of an edge device is provided, the method comprising:

[0006] Step S1: The version server receives a registration connection request sent by an edge device to establish a communication connection between the version server and the edge device;

[0007] Step S2: When it is determined that there is a new version, the version server sends a new version notification to the edge device;

[0008] Step S3: In response to the new version notification, the edge device sends a version file download request to the version server;

[0009] Step S4: In response to the version file download request, the version server generates version file download information and sends it to the edge device;

[0010] Step S5: when it is determined based on the version file download information that the nearby edge device has downloaded the new version file, download the new version file from the nearby edge device according to the version file download information.

[0011] Optionally, in step S1, the registration connection request includes current version information of the edge device.

[0012] Optionally, in step S1, whether there is a new version is determined by comparing the current version information of the edge device with the latest updated version information in the version server.

[0013] Optionally, in step S4, the version file download information includes information that a new version file has been downloaded by a nearby edge device.

[0014] Optionally, in step S4, the version file download information also includes a version file list.

[0015] Optionally, the step S5 further includes: downloading the new version file from the version server according to the version file list when it is determined based on the version file download information that the nearby edge device has not downloaded the new version file.

[0016] According to a second aspect of the present invention, there is provided an edge device online version upgrade system, the system comprising: a version server and at least one edge device;

[0017] The edge device specifically includes:

[0018] A first request sending unit, configured to send a registration connection request to the version server;

[0019] A second request sending unit is configured to send a version file download request to the version server in response to a new version notification;

[0020] A first file downloading unit is configured to download the new version file from the nearby edge device according to the version file download information when it is determined based on the version file download information that the nearby edge device has downloaded the new version file;

[0021] The version server specifically includes:

[0022] A receiving unit, configured to receive the registration connection request sent by the edge device to establish a communication connection between the version server and the edge device;

[0023] A new version determining unit, configured to send a new version notification to the edge device when determining that a new version exists;

[0024] The download information generating unit is configured to generate the version file download information in response to the version file download request and send the version file download information to the edge device.

[0025] Optionally, the version server further includes: a version rollback unit configured to perform a version rollback operation on at least one of the edge devices.

[0026] Optionally, the registration connection request includes current version information of the edge device.

[0027] Optionally, the version server further includes: a version comparison unit configured to determine whether there is a new version by comparing the current version information of the edge device with the latest updated version information in the version server.

[0028] Optionally, the version file download information includes information that a new version file has been downloaded by a nearby edge device.

[0029] Optionally, the version file download information also includes a version file list.

[0030] Optionally, the edge device further includes: a second file downloading unit configured to download the new version file from the version server according to the version file list when it is determined based on the version file download information that the nearby edge device has not downloaded the new version file.

[0031] According to a third aspect of the present invention, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps in an edge device online version upgrade method as described in the first aspect of the present invention are implemented.

[0032] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the online version upgrade method of an edge device as described in the first aspect of the present invention are implemented.

[0033] According to an embodiment disclosed in the present invention, an edge device online version upgrade method and system of the present invention have the following beneficial effects:

[0034] In the online version upgrade method for edge devices of the present invention, when performing version upgrade, it is not necessary for all edge devices to obtain new version files from the version server. Instead, it gives priority to quickly obtaining the required new version files from other upgraded edge devices that are closer to itself. Only when the new version files cannot be obtained nearby will it request to download the new version files from the version server. In this way, the new version files are propagated in a mesh manner among multiple edge devices, and the new version files can be published to all edge devices more quickly, greatly reducing the upgrade cycle time of the entire business system. In addition, because there are no large number of concentrated edge devices accessing the version server to obtain the new version files at the same time, the network bandwidth requirements of the version server are reduced, thereby saving the cost of network bandwidth expansion.

[0035] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0037] Figure 1 A schematic diagram of a process for an edge device online version upgrade method provided according to an embodiment Figure 1 ;

[0038] Figure 2 A schematic diagram of a process for an edge device online version upgrade method provided according to an embodiment Figure 2 ;

[0039] Figure 3 A schematic diagram of the structure of an edge device online version upgrade system provided according to an embodiment;

[0040] Figure 4 A schematic diagram of an electronic device. DETAILED DESCRIPTION

[0041] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0042] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0043] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0044] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0045] Embodiment 1:

[0046] See also Figure 1 As shown, an embodiment of the present invention provides an edge device online version upgrade method, the method comprising:

[0047] Step S1: The version server receives a registration connection request sent by an edge device to establish a communication connection between the version server and the edge device;

[0048] Optionally, in the edge device online version upgrade method of this embodiment, in step S1, the registration connection request includes current version information of the edge device.

[0049] It should be noted that, in this embodiment, the registration connection request includes not only the current version information of the edge device, but also the location information, serial number information, etc. of the edge device.

[0050] Optionally, in step S1 of the edge device online version upgrade method of this embodiment, it is determined whether there is a new version by comparing the current version information of the edge device with the latest updated version information in the version server.

[0051] It should be noted that in this embodiment, the version information may include version number, update time and other information. By comparing the version number or update time, it can be determined whether it is the same version, the new and old relationship of the version, etc., and then determine whether the edge device needs to be upgraded.

[0052] Step S2: When it is determined that there is a new version, the version server sends a new version notification to the edge device;

[0053] Step S3: In response to the new version notification, the edge device sends a version file download request to the version server;

[0054] It should be noted that in this embodiment, when it is determined that there is a new version, the new version file is not downloaded directly from the version server, but a version file download request is sent first. In this way, when multiple edge devices request version file downloads from the version server at the same time, the version server can comprehensively consider multiple download requests and network bandwidth conditions, and make a good file distribution strategy to prevent network congestion and affect the distribution of new version files.

[0055] Step S4: In response to the version file download request, the version server generates version file download information and sends it to the edge device;

[0056] Optionally, in step S4 of the edge device online version upgrade method of this embodiment, the version file download information includes information that the nearby edge device has downloaded a new version file.

[0057] Optionally, in step S4 of the edge device online version upgrade method of this embodiment, the version file download information also includes a version file list.

[0058] Step S5: when it is determined based on the version file download information that the nearby edge device has downloaded the new version file, download the new version file from the nearby edge device according to the version file download information.

[0059] Optionally, step S5 in the edge device online version upgrade method of this embodiment further includes: downloading the new version file from the version server according to the version file list when it is determined based on the version file download information that the nearby edge device has not downloaded the new version file.

[0060] It should be noted that in this embodiment, multiple edge devices adopt a peer-to-peer network system (P2P for short), also known as point-to-point technology. When a nearby edge device has downloaded a new version file, the new version file can be obtained directly from the edge device, thereby reducing the download pressure of the version server, reducing the download delay and bandwidth occupancy of the new version file through the p2p method, and supporting upgrade requests of ultra-large-scale edge devices.

[0061] The following is a specific embodiment to describe in detail the edge device online version upgrade method of the present invention. Figure 2 As shown:

[0062] 1) Edge device A sends a registration connection request to the version server;

[0063] 2) After confirming that there is a new version, the version server sends a limited version notification to edge device A;

[0064] 3) Edge device A sends a version file download request to the version server;

[0065] 4) The version server generates version file download information for the device and sends it to the edge device, where the version file download information includes a version file list;

[0066] 5) Edge device A downloads the new version file from the version server;

[0067] 6) Edge device B sends a registration connection request to the version server;

[0068] 7) After confirming that there is a new version, the version server sends a limited version notification to edge device B;

[0069] 8) Edge device B sends a version file download request to the version server;

[0070] 9) The version server generates version file download information for the device and sends it to the edge device, where the version file download information includes information that a nearby edge device A has downloaded a new version file;

[0071] 10) Edge device B downloads the new version file from edge device A.

[0072] To sum up, in the online version upgrade method of edge devices in the embodiment of the present invention, when performing version upgrade, it is not necessary for all edge devices to obtain the new version file from the version server. Instead, it gives priority to quickly obtaining the required new version file from other upgraded edge devices that are closer to itself. Only when the new version file cannot be obtained nearby will it request to download the new version file from the version server. In this way, the new version file is propagated in a mesh manner among multiple edge devices, and the new version file can be published to all edge devices more quickly, which greatly shortens the upgrade cycle time of the entire business system. In addition, because there is no large number of concentrated edge devices simultaneously accessing the version server to obtain the new version file, the network bandwidth requirement of the version server is reduced, thereby saving the cost of network bandwidth expansion.

[0073] Embodiment 2:

[0074] The embodiment of the present invention provides an edge device online version upgrade system, based on the edge device online version upgrade method described in embodiment 1, see Figure 3 As shown, the system includes: a version server 1 and at least one edge device 2;

[0075] The edge device 1 specifically includes:

[0076] A first request sending unit is configured to send a registration connection request to the version server;

[0077] A second request sending unit is configured to send a version file download request to the version server in response to a new version notification;

[0078] A first file downloading unit is configured to download the new version file from the nearby edge device according to the version file download information when it is determined based on the version file download information that the nearby edge device has downloaded the new version file;

[0079] The version server 2 specifically includes:

[0080] A receiving unit is configured to receive a registration connection request sent by an edge device to establish a communication connection between the version server and the edge device;

[0081] A new version determination unit is configured to send a new version notification to the edge device when determining that a new version exists;

[0082] The download information generating unit is configured to generate version file download information in response to a version file download request and send the information to the edge device.

[0083] It should be noted that in this embodiment, multiple edge devices adopt a peer-to-peer network system (P2P for short), also known as point-to-point technology. When a nearby edge device has downloaded a new version file, the new version file can be obtained directly from the edge device, thereby reducing the download pressure of the version server, reducing the download delay and bandwidth occupancy of the new version file through the p2p method, and supporting upgrade requests of ultra-large-scale edge devices.

[0084] Optionally, the version server 1 in the edge device online version upgrade system of this embodiment further includes: a version rollback unit configured to perform a version rollback operation on at least one edge device 2 .

[0085] Optionally, the registration connection request in the edge device online version upgrade system of this embodiment includes current version information of the edge device.

[0086] Optionally, the version server 1 in the edge device online version upgrade system of this embodiment further includes: a version comparison unit configured to determine whether there is a new version by comparing the current version information of the edge device with the latest updated version information in the version server.

[0087] Optionally, the version file download information in the edge device online version upgrade system of this embodiment includes information that a new version file has been downloaded by a nearby edge device.

[0088] Optionally, the version file download information in the edge device online version upgrade system of this embodiment also includes a version file list.

[0089] Optionally, the edge device 2 in the edge device online version upgrade system of this embodiment also includes: a second file download unit, which is configured to download the new version file from the version server according to the version file list when it is determined based on the version file download information that the nearby edge device has not downloaded the new version file.

[0090] Embodiment three:

[0091] The present invention discloses an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of an edge device online version upgrade method in any one of the first embodiments disclosed in the present invention are implemented.

[0092] Figure 4 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 4As shown, the electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, near field communication (NFC) or other technologies. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, a trackball or a touch pad set on the housing of the electronic device, or an external keyboard, touch pad or mouse, etc.

[0093] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a structural diagram of the part related to the technical solution of the present disclosure, and does not constitute a limitation on the electronic device to which the technical solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0094] Embodiment 4:

[0095] The embodiment of the present invention discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the edge device online version upgrade methods in the first embodiment of the present invention are implemented.

[0096] Please note that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent in this application shall be based on the attached claims.

[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

[0098] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A method for online version upgrade of an edge device, characterized in that: The method comprises: Step S1: The version server receives a registration connection request sent by an edge device to establish a communication connection between the version server and the edge device; Step S2: When it is determined that there is a new version, the version server sends a new version notification to the edge device; Step S3: In response to the new version notification, the edge device sends a version file download request to the version server; Step S4: In response to the version file download request, the version server generates version file download information and sends it to the edge device; Step S5: when it is determined based on the version file download information that the nearby edge device has downloaded the new version file, download the new version file from the nearby edge device according to the version file download information.

2. The method for online version upgrade of edge devices according to claim 1, characterized in that: In the step S1, the registration connection request includes the current version information of the edge device.

3. The method for online version upgrade of edge devices according to claim 2, characterized in that: In the step S1, it is determined whether there is a new version by comparing the current version information of the edge device with the latest updated version information in the version server.

4. The method for online version upgrade of edge devices according to claim 1, characterized in that: exist In step S4, the version file download information includes information that a new version file has been downloaded by a nearby edge device.

5. The method for online version upgrade of edge devices according to claim 4, characterized in that: exist In step S4, the version file download information also includes a version file list.

6. The method for online version upgrade of edge devices according to claim 5, characterized in that: Place The step S5 further includes: downloading the new version file from the version server according to the version file list when it is determined based on the version file download information that the nearby edge device has not downloaded the new version file.

7. An edge device online version upgrade system, characterized in that: The system includes: a version server and at least one edge device; The edge device specifically includes: A first request sending unit, configured to send a registration connection request to the version server; A second request sending unit is configured to send a version file download request to the version server in response to a new version notification; A first file downloading unit is configured to download the new version file from the nearby edge device when it is determined based on the version file download information that the nearby edge device has downloaded the new version file; The version server specifically includes: A receiving unit, configured to receive the registration connection request sent by the edge device to establish a communication connection between the version server and the edge device; A new version determining unit, configured to send a new version notification to the edge device when determining that a new version exists; The download information generating unit is configured to generate the version file download information in response to the version file download request and send the version file download information to the edge device.

8. The edge device online version upgrade system according to claim 7, characterized in that: The version server further includes: a version rollback unit configured to perform a version rollback operation on at least one of the edge devices.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps in the edge device online version upgrade method described in any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the edge device online version upgrade method described in any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Edge device updating method and device, equipment and storage medium

    CN120238538A