A remote upgrading method for terminal device software based on automatic flow
Patent Information
- Application Number
- CN202310881094.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-18
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-07-18
AI Technical Summary
[0004]针对现有技术存在的不足,本发明提供了一种基于自动流程化的用采终端设备软件远程升级方法,能够将软件升级包划分为多个升级压缩文件,并判断用采终端设备网络速度是否达到下载要求,按照顺序向用采终端设备发送升级压缩包,同时,在下载过程中实时监测用采终端设备的下载速度,判断用采终端设备的网络是否存在异常,停止网络异常设备的下载任务,防止影响其他设备的下载进程,同时,在下载解压完成后检测软件是否升级成功,若升级失败则重新下载错误文件,以解决现有的用采终端设备软件自动升级技术还存在网络占用较大以及软件升级包处理不够细致,导致设备软件升级不够及时以及升级过程不够高效的问题
[0050]本发明的有益效果:本发明通过将软件升级包分解成多组升级压缩包,并按照分组向用采终端设备发送升级压缩包,优势在于,当软件升级包内数据存在错误时,可以通过错误文件找到对应的升级压缩包,并将重新下载正确的升级压缩包,而不用将整个软件升级包重新下载,提高了用采终端设备软件升级的成功率以及升级效率;
Smart Images

Figure CN116931992B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automatic software upgrade technology, and in particular to a remote software upgrade technology for user terminal devices based on an automated process. Background Technology
[0002] Automatic software update technology refers to the ability of a software program to automatically detect new versions and automatically download, install, and update them. This feature helps users keep their software up-to-date, improving its stability and security. At the same time, automatic updates reduce the time and effort users spend manually updating software, enhancing the user experience.
[0003] In power grid systems, upgrading user acquisition terminal equipment requires consideration of the continuity of the equipment's functionality. This places higher demands on equipment software upgrades. Existing automatic software upgrade technologies for user acquisition terminal equipment typically involve immediately downloading and upgrading the software package once an update is detected. However, in application scenarios with multiple devices, simultaneous software upgrades for multiple devices can lead to significant network overhead, impacting equipment operation and communication. Furthermore, existing automatic software upgrade technologies download the entire software upgrade package at once. This method makes it difficult to identify errors within the upgrade package, and subsequent upgrades require downloading the entire package again, resulting in untimely software upgrades. Simultaneous upgrades for multiple devices also lead to slow download speeds, hindering efficient and rapid upgrades for all devices. Moreover, existing automatic software upgrade technologies lack post-upgrade verification to confirm successful upgrades, leaving users unaware of whether the upgrade was successful. These existing technologies also suffer from significant network overhead and insufficiently detailed processing of upgrade packages, leading to untimely and inefficient upgrade processes. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides an automated, streamlined method for remotely upgrading software on user terminals. This method divides the software upgrade package into multiple compressed upgrade files, determines whether the user terminal's network speed meets download requirements, and sends the upgrade packages to the user terminal in sequence. Simultaneously, during the download process, the method monitors the download speed of the user terminal in real time, identifies network anomalies, and stops the download task of devices with abnormal networks to prevent impacting the download process of other devices. Furthermore, after download and decompression are complete, the method checks whether the software upgrade was successful; if the upgrade fails, it re-downloads the erroneous files. This addresses the problems of existing automated software upgrade technologies for user terminals, such as high network usage and insufficiently detailed software upgrade package processing, leading to untimely and inefficient software upgrades.
[0005] To achieve the above objectives, the present invention provides a remote software upgrade method for user terminals based on an automated process, comprising the following steps:
[0006] Step S1: Obtain the software upgrade package, generate a sub-package strategy based on the topology characteristics of the power grid system, divide the software upgrade package according to the sub-package strategy, and generate an upgrade compressed file.
[0007] Step S2: Connect the user terminal device, obtain the user characteristics of the user terminal device, and determine whether the network speed of the user terminal device meets the download standard.
[0008] Step S3: Connect the Socket communication port of the user terminal device, and send the upgrade compressed file to the user terminal device according to the corresponding transmission strategy configured based on the user characteristics;
[0009] Step S4: Monitor the download speed of the upgrade compressed file of the user terminal device in real time, and determine whether the user terminal device has a network failure based on the download speed;
[0010] Step S5: After the upgrade compressed file is downloaded, control the terminal device to decompress and upgrade the upgrade compressed file;
[0011] Step S6: After the upgrade is completed, obtain the software version of the user terminal device and verify whether the software upgrade of the user terminal device was successful.
[0012] Further, step S1 includes the following sub-steps:
[0013] Step S101: Obtain the software upgrade package;
[0014] Step S102: Read the software upgrade package and obtain the folder inside the software upgrade package;
[0015] Step S103: Compress the folder into an upgrade archive.
[0016] Further, step S2 includes the following sub-steps:
[0017] Step S201: Establish a network connection with the user terminal device and detect the network speed of the user terminal device;
[0018] Step S202: Compare the network speed with the first network speed threshold. If the network speed is less than or equal to the first network speed threshold, output a slow network speed signal; if the network speed is greater than the first network speed threshold, output a normal network speed signal.
[0019] Further, step S3 includes the following sub-steps:
[0020] Step S301: Obtain the terminal device that outputs a normal network speed signal;
[0021] Step S302: Establish a communication connection with the Socket port of the terminal device.
[0022] Step S303: Group the upgrade compressed files according to the first letter A to Z, and send the upgrade compressed files to the user terminal device according to the corresponding transmission strategy configured based on the user characteristics. Send one set of upgrade compressed files to the user terminal device each time in the order of the first letter A to Z.
[0023] Further, step S4 includes the following sub-steps:
[0024] Step S401: Obtain the download speed of the terminal device in real time;
[0025] Step S402: Compare the download speed with the first download threshold and the second download threshold. If the download speed is less than or equal to the first download threshold, output a network fault signal; if the download speed is greater than the first download threshold and less than or equal to the second download threshold, output a slow network signal; if the download speed is greater than the second download threshold, output a normal network signal.
[0026] In step S403, if a network fault signal is output, a network maintenance signal is sent to the maintenance terminal; if a slow network signal is output, the download process of the application acquisition terminal device is stopped, and the network speed of the application acquisition terminal device is monitored again. When the network speed is greater than the first network speed threshold, the download process of the application acquisition terminal device is restarted.
[0027] Further, step S5 includes the following sub-steps:
[0028] Step S501: After the upgrade compressed file is downloaded, control the terminal device to decompress the upgrade compressed file;
[0029] Step S502: Obtain the decompression result of the upgrade compressed package. If the decompression is successful, output a decompression success signal; if the decompression fails, output a decompression failure signal.
[0030] Step S503: If a decompression failure signal is output, obtain the upgrade compressed file corresponding to the decompression failure signal and download the upgrade compressed file again;
[0031] Step S504: Install the decompressed files to the corresponding folder on the user terminal device.
[0032] Further, step S6 includes the following sub-steps:
[0033] Step S601: After the upgrade is completed, read the software information of the user terminal device;
[0034] Step S602: Locate the software version number within the software;
[0035] Step S603: Read the upgrade database, find the upgrade version number of this software upgrade package, compare the software version number with the upgrade version number. If the software version number and the upgrade version number are the same, output a software upgrade success signal; if the software version number and the upgrade version number are different, output a software upgrade failure signal.
[0036] Step S604: The user terminal device that receives the software upgrade failure signal controls the user terminal device to re-download the upgrade package and upgrade the software. After the upgrade is completed, the software version number is re-checked. If the software upgrade failure signal is output again, a device maintenance signal is sent to the maintenance terminal.
[0037] Step S605: Obtain the error file in the software folder of the terminal device, locate the corresponding upgrade compressed package, and send a data verification signal to the maintenance terminal;
[0038] Step S606: After receiving the equipment maintenance signal, the maintenance terminal inspects and repairs the user terminal equipment and adjusts the network environment of the user terminal equipment. After receiving the data verification signal, the maintenance terminal obtains the corresponding upgrade compressed package and checks whether the data inside is abnormal. If the data is abnormal, the data is calibrated.
[0039] Furthermore, the topology characteristics of the power grid system are obtained based on a power grid system topology model. This model includes several transmission nodes and communication lines between them. Each transmission node corresponds to a communication device in the power grid system, and the transmission nodes are connected via communication lines to reflect their interconnection. Each communication line is marked with communication parameters. The packet segmentation strategy includes...
[0040] A1. Determine the optimal communication path as the main path based on the target terminal equipment, and identify the transmission nodes in the main path;
[0041] A2. Starting from each transmission node, determine the associated transmission path, and the endpoint of each associated transmission path is the target terminal device.
[0042] A3. Calculate the path weight of the main path and the path weight of each associated path, and use the path weight of the main path to index the pre-built main path sub-table to obtain the main classification conditions. Then, based on the main classification conditions and the path weight of each associated path to index the pre-built associated path sub-table to obtain the associated classification conditions.
[0043] A4. Establish a first sub-package layer and a second sub-package layer. The first sub-package layer divides the software upgrade package based on the main classification condition, and the second sub-package layer divides the upgrade package based on the association classification condition, so that each data segment of the software upgrade package exists in the first sub-package layer and the second sub-package layer respectively.
[0044] A5. Mark the upgrade compressed file of the first sub-package layer as the first upgrade compressed file, the upgrade compressed file of the second sub-package layer as the second upgrade compressed file, and generate a reverse screening mark according to the data correspondence between the data segment of the first upgrade compressed file and the second upgrade compressed file.
[0045] Furthermore, the transmission strategy includes a first transmission sub-strategy, a second transmission sub-strategy, and a reverse screening sub-strategy. The first transmission sub-strategy serves the first upgraded compressed file, and the second transmission sub-strategy serves the second upgraded compressed file.
[0046] The first transmission sub-strategy is configured to transmit the first upgraded compressed file to the user terminal along the main path. When any transmission node receives a communication occupancy request, the transmission time of the first upgraded compressed file at the transmission node is configured according to the occupancy parameters of the communication occupancy request.
[0047] The second transmission sub-strategy is configured to transmit the second upgraded compressed file to the user terminal along the main path. When any transmission node receives a communication occupancy request, the transmission node re-determines a new transmission path for transmission.
[0048] The reverse screening strategy is configured such that when any upgrade compressed file transmission is completed, the target user terminal device broadcasts a reverse screening mark to the power communication network. When the transmission node receives a matching reverse screening mark, it deletes the corresponding data segment from the upgrade compressed file.
[0049] Furthermore, the method for calculating the path weight in step A2 is as follows: Where, α i β is the preset fixed weight of the i-th communication relationship line.i The preset dynamic weights, fixed weights, and dynamic weights for the i-th communication line are obtained by looking up a table along with the corresponding transmission level of the transmission node, and α is given. i +β i =1,H i Let be the solid congestion value of the i-th communication line, then... Where ε j e represents the preset weight of the j-th solid-state parameter in the communication parameters. j The solid-state parameter value corresponding to the j-th solid-state parameter item in the communication parameters, wherein the Gutian parameter value reflects the impact of a certain communication parameter on communication congestion, r j P is the preset solid-state reference value corresponding to the j-th solid-state parameter item in the communication parameters. i Let i be the dynamic occupancy value of the i-th communication line, and have Where F i (x) is a dynamic mapping function that reflects the mapping relationship between dynamic occupancy values and corresponding occupancy time periods. Where g(t) δ The preset decay mapping function reflects the mapping relationship between the time span and the function weights, t. δ f is the starting time in the δth similar historical data. δ (x) represents the waveform of the occupancy value in the δth similar historical data, reflecting the data occupancy status of the communication relationship line at that time. k is the total number of similar historical data, and n is the total number of communication relationship lines in the communication path.
[0050] The beneficial effects of the present invention are as follows: The present invention decomposes the software upgrade package into multiple sets of upgrade compressed packages and sends the upgrade compressed packages to the user terminal device according to the groups. The advantage is that when there are errors in the data in the software upgrade package, the corresponding upgrade compressed package can be found through the error file, and the correct upgrade compressed package can be downloaded again, instead of downloading the entire software upgrade package again, which improves the success rate and efficiency of software upgrades for user terminal devices.
[0051] This invention improves the efficiency of software upgrades and the security of the user terminal by real-time monitoring of the network speed of the user terminal device to determine whether the user terminal device can quickly complete the download of the upgrade package. At the same time, it monitors the download speed in real time during the download process to determine whether there are network problems or faults in the user terminal device.
[0052] This invention obtains the software version number after the device software upgrade is completed, compares the software version number with the upgrade version number of the current software upgrade package to determine whether the software upgrade was successful, and re-downloads the upgrade package after the software upgrade fails, ensuring that the software upgrade can be successful, thereby improving the success rate of software upgrades for terminal devices.
[0053] This invention analyzes whether the software upgrade of the user acquisition terminal device is successful. If the upgrade fails multiple times, the device maintenance terminal is notified to inspect the user acquisition terminal device. At the same time, the error file in the user acquisition terminal device software is obtained, as well as the corresponding upgrade package. The device maintenance terminal is notified to verify the data in the upgrade package. If the verification fails, the data in the upgrade package is calibrated, thereby improving the success rate of software upgrades and the accuracy of upgrade data.
[0054] Advantages of additional aspects of the invention will be set forth in part in the detailed description of the invention below, and in part will be obvious from the description or may be learned by practice of the invention. Attached Figure Description
[0055] Other features, objects, and advantages of the invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0056] Figure 1 This is a flowchart of the steps of the method of the present invention. Detailed Implementation
[0057] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.
[0058] This invention provides an automated, streamlined method for remotely upgrading software on user terminals. The method divides the software upgrade package into multiple compressed upgrade files, determines whether the user terminal's network speed meets download requirements, and sends the upgrade packages to the user terminals sequentially. Simultaneously, during the download process, the method monitors the download speed of the user terminals in real time, identifies network anomalies, and stops the download task of devices with abnormal networks to prevent impacting the download process of other devices. Furthermore, after download and decompression, the method checks whether the software upgrade was successful; if the upgrade fails, it re-downloads the erroneous files. This addresses the problems of existing automated software upgrade technologies for user terminals, such as high network usage and insufficiently detailed software upgrade package processing, leading to untimely and inefficient software upgrades.
[0059] Please see Figure 1 As shown, the method includes steps S1, S2, S3, S4, S5, and S6.
[0060] Step S1 includes obtaining the software upgrade package, generating a package splitting strategy based on the topology characteristics of the power grid system, segmenting the software upgrade package according to the package splitting strategy, and generating an upgrade compressed file; Step S1 includes the following sub-steps:
[0061] Step S101: Obtain the software upgrade package;
[0062] Step S102: Read the software upgrade package and obtain the folder inside the software upgrade package;
[0063] Step S103: Compress the folder into an upgrade archive;
[0064] In practice, the software upgrade package is obtained. If the folders within the software upgrade package are "ACAOE", "AcWebBrowser", "CER", "Direct3D9", "Direct3D10", "Direct3D11", "Drv", "en", "en-US", "Environments", "Express", "Fonts", and "GeoMapHtml", then the folders are compressed into upgrade archive A, upgrade archive C, upgrade archive D, upgrade archive E, upgrade archive F, and upgrade archive G. Each upgrade archive contains a folder with the corresponding first letter.
[0065] Step S2 includes connecting the user terminal device, obtaining the user characteristics of the user terminal device, and determining whether the network speed of the user terminal device meets the download standard; Step S2 includes the following sub-steps:
[0066] Step S201: Establish a network connection with the user terminal device and detect the network speed of the user terminal device;
[0067] Step S202: Compare the network speed with the first network speed threshold. If the network speed is less than or equal to the first network speed threshold, output a slow network speed signal; if the network speed is greater than the first network speed threshold, output a normal network speed signal.
[0068] In practice, the first network speed threshold is set to 10M / s. A data connection is established with the user terminal device through the network. The network speed test program detects that the network speed of the user terminal device is 30M / s. If the network speed is found to be greater than the first network speed threshold by comparison, a normal network speed signal is output.
[0069] Step S3 includes connecting to the Socket communication port of the user acquisition terminal device, and sending the upgrade compressed file to the user acquisition terminal device according to the corresponding transmission strategy configured based on the user acquisition characteristics; Step S3 includes the following sub-steps:
[0070] Step S301: Obtain the terminal device that outputs a normal network speed signal;
[0071] Step S302: Establish a communication connection with the Socket port of the terminal device.
[0072] Step S303: Group the upgrade compressed files according to the first letter A to Z, and send the upgrade compressed files to the user terminal device according to the corresponding transmission strategy configured based on the user characteristics. Send one set of upgrade compressed files to the user terminal device each time in the order of the first letter A to Z.
[0073] In practice, if terminal devices 1, 2, 5, and 9 output a normal network speed signal, a data connection is established with the Socket ports of terminal devices 1, 2, 5, and 9, and upgrade compressed packages are sent to each terminal device in the order of upgrade compressed package A, C, D, E, F, and G.
[0074] Step S4 includes real-time monitoring of the download speed of the upgrade compressed file on the user terminal device, and determining whether the user terminal device is experiencing a network failure based on the download speed; Step S4 includes the following sub-steps:
[0075] Step S401: Obtain the download speed of the terminal device in real time;
[0076] Step S402: Compare the download speed with the first download threshold and the second download threshold. If the download speed is less than or equal to the first download threshold, output a network fault signal; if the download speed is greater than the first download threshold and less than or equal to the second download threshold, output a slow network signal; if the download speed is greater than the second download threshold, output a normal network signal.
[0077] Step S403: If a network fault signal is output, a network maintenance signal is sent to the maintenance terminal; if a slow network signal is output, the download process of the application terminal device is stopped, and the network speed of the application terminal device is monitored again. When the network speed is greater than the first network speed threshold, the download process of the application terminal device is restarted.
[0078] In specific implementation, the first download threshold is set to 5M / s, and the second download threshold is set to 10M / s. If the download speed of the user terminal device 1 is 26M / s in real time, and the download speed is found to be greater than the second download threshold, then a network normal signal is output. If the download speed of the user terminal device 9 is 2M / s in real time, and the download speed is found to be less than the first download threshold, then a network fault signal is output. A network maintenance signal is sent to the maintenance end.
[0079] Step S5 includes, after the upgrade compressed file is downloaded, controlling the terminal device to decompress and upgrade the upgrade compressed file; Step S5 includes the following sub-steps:
[0080] Step S501: After the upgrade compressed file is downloaded, control the terminal device to decompress the upgrade compressed file;
[0081] Step S502: Obtain the decompression result of the upgrade compressed package. If the decompression is successful, output a decompression success signal; if the decompression fails, output a decompression failure signal.
[0082] Step S503: If a decompression failure signal is output, obtain the upgrade compressed file corresponding to the decompression failure signal and download the upgrade compressed file again;
[0083] Step S504: Install the decompressed files to the corresponding folder on the user terminal device;
[0084] In practice, after the upgrade compressed file is downloaded, the control terminal device decompresses the upgrade compressed file. If upgrade compressed packages A, C, E, F, and G output a decompression success signal, and upgrade compressed package D outputs a decompression failure signal, then upgrade compressed package D is downloaded again and decompressed. The folders “ACAOE”, “AcWebBrowser”, “CER”, “Direct3D9”, “Direct3D10”, “Direct3D11”, “Drv”, “en”, “en-US”, “Environments”, “Express”, “Fonts”, and “GeoMapHtml” are installed to the corresponding folders on the user terminal device.
[0085] Step S6 includes obtaining the software version of the user terminal device after the upgrade is completed, and verifying whether the software upgrade of the user terminal device was successful; Step S6 includes the following sub-steps:
[0086] Step S601: After the upgrade is completed, read the software information of the user terminal device;
[0087] Step S602: Locate the software version number within the software;
[0088] Step S603: Read the upgrade database, find the upgrade version number of this software upgrade package, compare the software version number with the upgrade version number. If the software version number and the upgrade version number are the same, output a software upgrade success signal; if the software version number and the upgrade version number are different, output a software upgrade failure signal.
[0089] In practice, the software information of the terminal device is read, the software version number is found to be 10.26.42, the upgrade database is read, the upgrade version number of this software upgrade package is found to be 10.26.42, and the software version number is found to be the same as the upgrade version number. Then, a software upgrade success signal is output.
[0090] Step S604: The user terminal device that receives the software upgrade failure signal controls the user terminal device to re-download the upgrade package and upgrade the software. After the upgrade is completed, the software version number is re-checked. If the software upgrade failure signal is output again, a device maintenance signal is sent to the maintenance terminal.
[0091] In practice, if the user terminal device 9 outputs a software upgrade failure signal, it will control the user terminal device 9 to re-download the upgrade package. After the upgrade is completed, the software version number of the user terminal device 9 is obtained as 10.26.42. If the software version number is found to be the same as the upgrade version number, a software upgrade success signal will be output.
[0092] Step S605: Obtain the error file in the software folder of the terminal device, locate the corresponding upgrade compressed package, and send a data verification signal to the maintenance terminal;
[0093] In practice, if a maintenance signal is received from the user terminal device 9, the error file of the user terminal device 9 is "Express". The upgrade compressed package E is located and a data verification signal is sent to the maintenance terminal.
[0094] Step S606: After receiving the equipment maintenance signal, the maintenance terminal inspects and repairs the user terminal equipment and adjusts the network environment of the user terminal equipment; after receiving the data verification signal, the maintenance terminal obtains the corresponding upgrade compressed package, checks whether the data inside is abnormal, and if the data is abnormal, it calibrates the data.
[0095] The topology characteristics of the power grid system are obtained based on a power grid system topology model. This model includes several transmission nodes and communication lines between them. Each transmission node corresponds to a communication device in the power grid system, and the transmission nodes are connected via communication lines to reflect their interconnection. Each communication line is marked with communication parameters. The topology model is obtained by analyzing the communication relationships of the power grid devices and setting corresponding communication parameters based on the corresponding communication devices and the communication status between them. The packet splitting strategy includes...
[0096] A1. Determine the optimal communication path as the main path based on the target terminal equipment, and identify the transmission nodes in the main path;
[0097] A2. Starting from each transmission node, determine the associated transmission path, and the endpoint of each associated transmission path is the target terminal device.
[0098] A3. Calculate the path weight of the main path and the path weight of each associated path, and use the path weight of the main path to index the pre-built main path sub-table to obtain the main classification conditions. Then, based on the main classification conditions and the path weight of each associated path to index the pre-built associated path sub-table to obtain the associated classification conditions.
[0099] A4. Establish a first sub-package layer and a second sub-package layer. The first sub-package layer segments the software upgrade package based on the main classification condition, and the second sub-package layer segments the upgrade package based on the association classification condition, so that each data segment of the software upgrade package exists in the first sub-package layer and the second sub-package layer respectively; for example, it can be divided by a fixed number, or divided according to size, with each software upgrade file corresponding to a corresponding sub-package range, and the first sub-package layer and the second sub-package layer determining different sub-package ranges.
[0100] A5. Mark the upgrade compressed file of the first sub-package layer as the first upgrade compressed file, the upgrade compressed file of the second sub-package layer as the second upgrade compressed file, and generate a reverse screening mark according to the data correspondence between the data segment of the first upgrade compressed file and the second upgrade compressed file.
[0101] Furthermore, the transmission strategy includes a first transmission sub-strategy, a second transmission sub-strategy, and a reverse screening sub-strategy. The first transmission sub-strategy serves the first upgraded compressed file, and the second transmission sub-strategy serves the second upgraded compressed file.
[0102] The first transmission sub-strategy is configured to transmit the first upgraded compressed file to the user terminal along the main path. When any transmission node receives a communication occupancy request, the transmission time of the first upgraded compressed file at the transmission node is configured according to the occupancy parameters of the communication occupancy request.
[0103] The second transmission sub-strategy is configured to transmit the second upgraded compressed file to the user terminal along the main path. When any transmission node receives a communication occupancy request, the transmission node re-determines a new transmission path for transmission.
[0104] The reverse screening strategy is configured such that when any upgrade compressed file transmission is completed, the target user terminal device broadcasts a reverse screening mark to the power communication network. When the transmission node receives a matching reverse screening mark, it deletes the corresponding data segment from the upgrade compressed file.
[0105] The method for calculating the path weight in step A2 is as follows: Where, α i β is the preset fixed weight of the i-th communication relationship line. iThe preset dynamic weights, fixed weights, and dynamic weights for the i-th communication line are obtained by looking up a table along with the corresponding transmission level of the transmission node, and α is given. i +β i =1,H i Let be the solid congestion value of the i-th communication line, then... Where ε j e represents the preset weight of the j-th solid-state parameter in the communication parameters. j The solid-state parameter value corresponding to the j-th solid-state parameter item in the communication parameters, wherein the Gutian parameter value reflects the impact of a certain communication parameter on communication congestion, r j P is the preset solid-state reference value corresponding to the j-th solid-state parameter item in the communication parameters. i Let i be the dynamic occupancy value of the i-th communication line, and have Where F i (x) is a dynamic mapping function that reflects the mapping relationship between dynamic occupancy values and corresponding occupancy time periods. Where g(t) δ The preset decay mapping function reflects the mapping relationship between the time span and the function weights, t. δ f is the starting time in the δth similar historical data. δ (x) represents the waveform of the occupancy value in the δth similar historical data, reflecting the data occupancy status of the communication relationship line at that time. k is the total number of similar historical data, and n is the total number of communication relationship lines in the communication path. The transmission strategy also includes loading and installing some software first when the terminal storage space is insufficient, transmitting other software to nearby communication nodes for caching, deleting the installed files first, and then installing and downloading other files.
[0106] In practice, when the maintenance terminal receives a device maintenance signal from the user terminal device 9, it will inspect and repair the user terminal device 9; when it receives a data verification signal from the user terminal device 9, it will obtain the upgrade compressed package E, and if it detects abnormal data inside the upgrade compressed package E, it will calibrate the data inside the upgrade compressed package E.
[0107] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Red Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0108] The above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and are not intended to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the scope of the technology disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of protection of the claims.
Claims
1. A method for remotely upgrading the software of a user terminal device based on an automated process, characterized in that, The steps include the following: Step S1: Obtain the software upgrade package, generate a sub-package strategy based on the topology characteristics of the power grid system, divide the software upgrade package according to the sub-package strategy, and generate an upgrade compressed file. Step S2: Connect the user terminal device, obtain the user characteristics of the user terminal device, and determine whether the network speed of the user terminal device meets the download standard. Step S3: Connect the Socket communication port of the user terminal device, and send the upgrade compressed file to the user terminal device according to the corresponding transmission strategy configured based on the user characteristics; Step S4: Monitor the download speed of the upgrade compressed file of the user terminal device in real time, and determine whether the user terminal device has a network failure based on the download speed; Step S5: After the upgrade compressed file is downloaded, control the terminal device to decompress and upgrade the upgrade compressed file; Step S6: After the upgrade is completed, obtain the software version of the user terminal device and verify whether the software upgrade of the user terminal device was successful. The topology characteristics of the power grid system are obtained based on a power grid system topology model. This model includes several transmission nodes and communication lines between them. Each transmission node corresponds to a communication device in the power grid system. The transmission nodes are connected via communication lines to reflect their interconnection. Each communication line is marked with communication parameters. The packet segmentation strategy includes... A1. Determine the optimal communication path as the main path based on the target terminal equipment, and identify the transmission nodes in the main path; A2. Starting from each transmission node, determine the associated transmission path, and the endpoint of each associated transmission path is the target terminal device. A3. Calculate the path weight of the main path and the path weight of each associated path, and use the path weight of the main path to index the pre-built main path sub-table to obtain the main classification conditions. Then, based on the main classification conditions and the path weight of each associated path to index the pre-built associated path sub-table to obtain the associated classification conditions. A4. Establish a first sub-package layer and a second sub-package layer. The first sub-package layer divides the software upgrade package based on the main classification condition, and the second sub-package layer divides the upgrade package based on the association classification condition, so that each data segment of the software upgrade package exists in the first sub-package layer and the second sub-package layer respectively. A5. Mark the upgraded compressed file of the first sub-package layer as the first upgraded compressed file, the upgraded compressed file of the second sub-package layer as the second upgraded compressed file, and generate a reverse screening mark according to the data correspondence between the data segment as the first upgraded compressed file and the second upgraded compressed file; The transmission strategy includes a first transmission sub-strategy, a second transmission sub-strategy, and a reverse screening sub-strategy. The first transmission sub-strategy serves the first upgraded compressed file, and the second transmission sub-strategy serves the second upgraded compressed file. The first transmission sub-strategy is configured to transmit the first upgraded compressed file to the user terminal along the main path. When any transmission node receives a communication occupancy request, the transmission time of the first upgraded compressed file at the transmission node is configured according to the occupancy parameters of the communication occupancy request. The second transmission sub-strategy is configured to transmit the second upgraded compressed file to the user terminal along the main path. When any transmission node receives a communication occupancy request, the transmission node re-determines a new transmission path for transmission. The reverse screening strategy is configured such that when any upgrade compressed file transmission is completed, the target user terminal device broadcasts a reverse screening mark to the power communication network. When the transmission node receives a matching reverse screening mark, it deletes the corresponding data segment from the upgrade compressed file.
2. The method for remote software upgrade of user terminal equipment based on an automated process, as described in claim 1, is characterized in that... Step S1 includes the following sub-steps: Step S101: Obtain the software upgrade package; Step S102: Read the software upgrade package and obtain the folder inside the software upgrade package; Step S103: Compress the folder into an upgrade archive.
3. The method for remote software upgrade of user terminal equipment based on an automated process, as described in claim 2, is characterized in that... Step S2 includes the following sub-steps: Step S201: Establish a network connection with the user terminal device and detect the network speed of the user terminal device; Step S202: Compare the network speed with the first network speed threshold. If the network speed is less than or equal to the first network speed threshold, output a slow network speed signal; if the network speed is greater than the first network speed threshold, output a normal network speed signal.
4. The method for remote software upgrade of user terminal equipment based on an automated process, as described in claim 3, is characterized in that... Step S3 includes the following sub-steps: Step S301: Obtain the terminal device that outputs a normal network speed signal; Step S302: Establish a communication connection with the Socket port of the terminal device. Step S303: Group the upgrade compressed files according to the first letter A to Z, and send the upgrade compressed files to the user terminal device according to the corresponding transmission strategy configured based on the user characteristics. Send one set of upgrade compressed files to the user terminal device each time in the order of the first letter A to Z.
5. The method for remote software upgrade of user terminal equipment based on an automated process, as described in claim 4, is characterized in that... Step S4 includes the following sub-steps: Step S401: Obtain the download speed of the terminal device in real time; Step S402: Compare the download speed with the first download threshold and the second download threshold. If the download speed is less than or equal to the first download threshold, output a network fault signal; if the download speed is greater than the first download threshold and less than or equal to the second download threshold, output a slow network signal; if the download speed is greater than the second download threshold, output a normal network signal. In step S403, if a network fault signal is output, a network maintenance signal is sent to the maintenance terminal; if a slow network signal is output, the download process of the application acquisition terminal device is stopped, and the network speed of the application acquisition terminal device is monitored again. When the network speed is greater than the first network speed threshold, the download process of the application acquisition terminal device is restarted.
6. The method for remote software upgrade of user terminal equipment based on an automated process, as described in claim 5, is characterized in that... Step S5 includes the following sub-steps: Step S501: After the upgrade compressed file is downloaded, control the terminal device to decompress the upgrade compressed file; Step S502: Obtain the decompression result of the upgrade compressed package. If the decompression is successful, output a decompression success signal; if the decompression fails, output a decompression failure signal. Step S503: If a decompression failure signal is output, obtain the upgrade compressed file corresponding to the decompression failure signal and download the upgrade compressed file again; Step S504: Install the decompressed files to the corresponding folder on the user terminal device.
7. The method for remote software upgrade of user terminal equipment based on an automated process, as described in claim 6, is characterized in that... Step S6 includes the following sub-steps: Step S601: After the upgrade is completed, read the software information of the user terminal device; Step S602: Locate the software version number within the software; Step S603: Read the upgrade database, find the upgrade version number of this software upgrade package, compare the software version number with the upgrade version number, and if the software version number and the upgrade version number are the same, output a software upgrade success signal. If the software version number is different from the upgrade version number, a software upgrade failure signal will be output. Step S604: The user terminal device that receives the software upgrade failure signal controls the user terminal device to re-download the upgrade package and upgrade the software. After the upgrade is completed, the software version number is re-checked. If the software upgrade failure signal is output again, a device maintenance signal is sent to the maintenance terminal. Step S605: Obtain the error file in the software folder of the terminal device, locate the corresponding upgrade compressed package, and send a data verification signal to the maintenance terminal; Step S606: After receiving the equipment maintenance signal, the maintenance terminal inspects and repairs the user terminal equipment and adjusts the network environment of the user terminal equipment. After receiving the data verification signal, the maintenance unit obtains the corresponding upgrade compressed package, checks whether the data inside is abnormal, and if the data is abnormal, it calibrates the data.
8. The method for remote software upgrade of user terminal equipment based on an automated process, as described in claim 1, is characterized in that... The method for calculating the path weight in step A2 is as follows: ,in, For the first The preset fixed weights of the communication relationship lines, For the first The preset dynamic weights, fixed weights, and dynamic weights of the communication relationship lines are obtained by looking up a table along with the corresponding transmission stages of the transmission nodes. , For the first The solid congestion value of the communication line has ,in For the communication parameters The preset weights of the parameters corresponding to each solid-state parameter item. For the communication parameters The solid-state parameter values corresponding to each solid-state parameter item reflect the impact of a certain communication parameter on communication congestion. For the communication parameters The preset solid-state reference values corresponding to each solid-state parameter item. For the first The dynamic occupancy value of the communication relationship line has ,in The dynamic mapping function reflects the mapping relationship between dynamic occupancy values and corresponding occupancy time periods. ,in The preset decay mapping function reflects the mapping relationship between the time span and the function weight. For the first The starting time in similar historical data For the first The waveform of the occupancy value in similar historical data reflects the data occupancy status of the communication relationship line at that time. The total number of similar historical data. This represents the total number of communication relationship lines in the communication path.
Citation Information
Patent Citations
Method and apparatus for downloading peer-to-peer transmitted data slice
CN101478556A
Distributed base station upgrade processing method and system
CN112994952A