Instrument communication protocol remote upgrading method and system and medium
The remote upgrade method for instrument communication protocols addresses interoperability issues by establishing secure connections, validating, and installing new protocols, enhancing compatibility and reducing downtime.
Patent Information
- Application Number
- CN202510820159.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-07-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Due to different communication protocols, instruments and equipment produced by different manufacturers make it difficult to interconnect equipment, and the communication protocol cannot be replaced or added after leaving the factory.
Provides a remote upgrade method for instrument communication protocols, by receiving upgrade notifications, selecting download channels, establishing remote connections, downloading the latest communication protocol programs, conducting legality verification, testing and repairing vulnerabilities, and ensuring compatibility between instruments and systems.
It realizes compatibility between instruments and systems, improves the matching degree of communication protocols, reduces maintenance costs, and encourages manufacturers to launch new communication protocols and functions.
Smart Images

Figure CN120321237A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of communication protocol upgrades. Specifically, it relates to a method, system, and medium for remotely upgrading an instrument communication protocol. Background Art
[0002] An instrument communication protocol refers to a specification or standard followed when an instrument communicates with external devices (such as computers, monitoring systems, etc.) for data transmission. The formulation of an instrument communication protocol is crucial for the instrument industry. In fields such as industrial automation, energy management, and environmental monitoring, various instrument devices need to exchange data and communicate with computers or monitoring systems. However, instrument devices produced by different manufacturers usually have different communication interfaces and data formats. Without a unified communication protocol, it will bring great difficulties to the interconnection and interoperability of devices.
[0003] Moreover, after the device leaves the factory, the communication protocol cannot be replaced or new communication protocols cannot be added. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a method, system, and medium for remotely upgrading an instrument communication protocol, which can ensure the compatibility between the instrument and the system and improve the matching degree of the communication protocol by updating the remote communication protocol in real time.
[0005] The embodiments of this application also provide a method for remotely upgrading an instrument communication protocol, including: Receiving an upgrade notice, selecting a download channel based on the upgrade notice, obtaining the existing remote communication protocol, and establishing a remote connection between the instrument and the download channel based on the existing remote communication protocol; Downloading the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program; Verifying the legality of the latest communication protocol program based on the verification rules to obtain a verification result, and determining whether the verification result meets the set condition information; If the set condition information is met, install the latest communication protocol program, conduct a running test on the instrument to obtain a test result, and remotely upgrade the instrument communication protocol based on the test result; If the set condition information is not met, analyze the vulnerability data, generate repair information based on the vulnerability data, and repair the vulnerability data based on the repair information.
[0006] Optionally, in the method for remotely upgrading an instrument communication protocol described in the embodiments of this application, receiving an upgrade notice, selecting a download channel based on the upgrade notice, obtaining the existing remote communication protocol, and establishing a remote connection between the instrument and the download channel based on the existing remote communication protocol specifically includes: Obtain the upgrade notice and analyze the matching result of the device identity and the manufacturer based on the upgrade notice; Select the download channel based on the matching result. The download channels include the official website of the manufacturer or the authorized server; Obtain the existing remote communication protocol, establish a remote connection between the instrument and the download channel, and obtain the connection status; Determine whether the connection status is successfully connected; If the connection is successful, log in to the official website of the manufacturer or the authorized server; If the connection is not successful, it is determined that the device identity does not match the manufacturer, and the download channel is reselected.
[0007] Optionally, in the method for remotely upgrading the instrument communication protocol described in the embodiment of the present application, the latest communication protocol program is downloaded to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program, which specifically includes: Obtain the upgrade file corresponding to the latest communication protocol program based on the download channel; Generate a key based on the encryption algorithm, and encrypt the upgrade file based on the key to obtain ciphertext data; Establish a security mechanism based on the ciphertext data, and select the corresponding transmission protocol according to the security mechanism; Back up the ciphertext data to the backup area of the instrument based on the transmission protocol, and obtain the transmission status information in real time; Analyze the transmission progress and the remaining transmission time of the ciphertext data based on the transmission status information.
[0008] Optionally, in the method for remotely upgrading the instrument communication protocol described in the embodiment of the present application, the latest communication protocol program is verified for legality based on the verification rules to obtain the verification result, which specifically includes: Perform integrity verification on the latest communication protocol program based on the verification rules to obtain the integrity of the upgrade file; Generate an integrity verification result based on the integrity of the upgrade file; Obtain the format of the upgrade file, perform format verification on the upgrade file based on the verification rules, and obtain the format verification result; Analyze the compatibility between the upgrade file and the instrument based on the verification rules to obtain the compatibility verification result; Perform fusion processing on the integrity verification result, the format verification result, and the compatibility verification result to obtain the verification result.
[0009] Optionally, in the method for remotely upgrading the instrument communication protocol described in the embodiment of the present application, install the latest communication protocol program and perform an operation test on the instrument to obtain the test result, which specifically includes: Obtain the latest communication protocol program and install the latest communication protocol program into the instrument. Run the instrument to obtain the real-time operation status information of the instrument. Based on the real-time operation status information, conduct a comprehensive test on the communication function of the instrument. The comprehensive test includes connection tests between the instrument and other devices, data transmission tests, and command execution tests. Analyze the operation stability of the instrument based on the connection test, data transmission test, and command execution test between the instrument and other devices to obtain stability information. Generate a test result based on the stability information.
[0010] Optionally, in the method for remotely upgrading the communication protocol of the instrument described in the embodiments of the present application, analyze vulnerability data, generate repair information based on the vulnerability data, and repair the vulnerability data based on the repair information. Specifically, it includes: Obtain the upgrade file, calculate the hash value of the upgrade file based on the hash algorithm to generate the first hash value. After the instrument receives the upgrade file, recalculate the hash value to generate the second hash value. Compare the first hash value with the second hash value to obtain the difference. Determine whether the difference is zero. If it is zero, it is determined that the upgrade file is complete. If it is not zero, generate vulnerability data, analyze the parameter information of the vulnerability data, and generate vulnerability status information. Generate repair information based on the vulnerability status information and repair the vulnerability data based on the repair information.
[0011] In a second aspect, the embodiments of the present application provide a system for remotely upgrading the communication protocol of an instrument. The system includes: a memory and a processor. The memory includes a program for the method of remotely upgrading the communication protocol of the instrument. When the program for the method of remotely upgrading the communication protocol of the instrument is executed by the processor, the following steps are implemented: Receive an upgrade notification, select a download channel based on the upgrade notification, obtain the existing remote communication protocol, and establish a remote connection between the instrument and the download channel based on the existing remote communication protocol. Download the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program. Verify the legality of the latest communication protocol program based on the verification rules to obtain a verification result, and determine whether the verification result meets the set condition information. If the set condition information is met, install the latest communication protocol program, conduct a running test on the instrument to obtain a test result, and remotely upgrade the communication protocol of the instrument based on the test result. If the set condition information is not satisfied, analyze the vulnerability data, generate repair information based on the vulnerability data, and repair the vulnerability data based on the repair information.
[0012] Optionally, in the instrument communication protocol remote upgrade system described in the embodiments of the present application, establish a remote connection between the instrument and the download channel based on the existing remote communication protocol, specifically including: Obtain an upgrade notice, and analyze the matching result of the device identity and the manufacturer based on the upgrade notice; Select a download channel based on the matching result. The download channels include the official website of the manufacturer or an authorized server; Obtain the existing remote communication protocol, establish a remote connection between the instrument and the download channel, and obtain the connection status; Judge whether the connection status is successfully connected; If the connection is successful, log in to the official website of the manufacturer or an authorized server; If the connection is not successful, it is determined that the device identity does not match the manufacturer, and a download channel is reselected.
[0013] Optionally, in the instrument communication protocol remote upgrade system described in the embodiments of the present application, download the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program, specifically including: Obtain the upgrade file corresponding to the latest communication protocol program based on the download channel; Generate a key based on the encryption algorithm, and encrypt the upgrade file based on the key to obtain ciphertext data; Establish a security mechanism based on the ciphertext data, and select the corresponding transmission protocol according to the security mechanism; Back up the ciphertext data to the backup area of the instrument based on the transmission protocol, and obtain the transmission status information in real time; Analyze the transmission progress and the remaining transmission time of the ciphertext data based on the transmission status information.
[0014] In a third aspect, the embodiments of the present application further provide a computer-readable storage medium, which includes a program for the instrument communication protocol remote upgrade method. When the program for the instrument communication protocol remote upgrade method is executed by a processor, the steps of the instrument communication protocol remote upgrade method described in any one of the above are implemented.
[0015] As can be seen from the above, a method, system and medium for remotely upgrading an instrument communication protocol provided by an embodiment of the present application receive an upgrade notice, select a download channel based on the upgrade notice, obtain an existing remote communication protocol, and establish a remote connection between the instrument and the download channel based on the existing remote communication protocol; download the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program; perform a legality verification on the latest communication protocol program based on a verification rule to obtain a verification result, and determine whether the verification result meets the set condition information; if the set condition information is met, install the latest communication protocol program, perform an operation test on the instrument to obtain a test result, and remotely upgrade the instrument communication protocol based on the test result; if the set condition information is not met, analyze the vulnerability data, generate repair information based on the vulnerability data, and repair the vulnerability data based on the repair information; by updating the remote communication protocol in real time, ensure the compatibility between the instrument and the system and improve the matching degree of the communication protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0017] Figure 1 It is a flowchart of the method for remotely upgrading the instrument communication protocol provided by the embodiment of the present application; Figure 2 It is a flowchart of the remote connection between the instrument and the download channel of the method for remotely upgrading the instrument communication protocol provided by the embodiment of the present application; Figure 3 It is a flowchart of backing up the latest communication protocol program of the method for remotely upgrading the instrument communication protocol provided by the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the detailed description of the embodiments of the present application provided in the drawings below is not intended to limit the scope of the present application claimed, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0019] It should be noted that similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, terms such as "first" and "second" are only used for distinguishing descriptions and cannot be construed as indicating or implying relative importance.
[0020] Please refer to Figure 1 , Figure 1 which is a flowchart of a method for remotely upgrading an instrument communication protocol in some embodiments of the present application. The method for remotely upgrading the instrument communication protocol is used in a terminal device. The method for remotely upgrading the instrument communication protocol includes the following steps: S101, receiving an upgrade notice, selecting a download channel based on the upgrade notice, obtaining the existing remote communication protocol, and establishing a remote connection between the instrument and the download channel based on the existing remote communication protocol; S102, downloading the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program; S103, performing a legality verification on the latest communication protocol program based on a verification rule to obtain a verification result, and determining whether the verification result meets the set condition information; S104, if the set condition information is met, installing the latest communication protocol program, performing an operation test on the instrument to obtain a test result, and remotely upgrading the instrument communication protocol based on the test result; S105, if the set condition information is not met, analyzing the vulnerability data, generating repair information based on the vulnerability data, and repairing the vulnerability data based on the repair information.
[0021] It should be noted that by downloading the latest communication protocol program through the download channel and performing a legality verification on the latest communication protocol according to the verification rule, the integrity and compatibility of the latest communication protocol are ensured, thereby effectively updating the communication protocol of the instrument and making the instrument applicable to the new system.
[0022] Please refer to Figure 2 , Figure 2 which is a flowchart of the remote connection between the instrument and the download channel of a method for remotely upgrading an instrument communication protocol in some embodiments of the present application. According to an embodiment of the present invention, receiving an upgrade notice, selecting a download channel based on the upgrade notice, obtaining the existing remote communication protocol, and establishing a remote connection between the instrument and the download channel based on the existing remote communication protocol specifically includes: S201, obtaining the upgrade notice and analyzing the matching result of the device identity and the manufacturer based on the upgrade notice; S202, select a download channel based on the matching result, and the download source includes the official website of the manufacturer or an authorized server; S203, obtain the existing remote communication protocol, establish a remote connection between the instrument and the download channel, and obtain the connection status; S204, determine whether the connection status is successfully connected; S205, if the connection is successful, log in to the official website of the manufacturer or the authorized server, if the connection is not successful, it is determined that the device identity does not match the manufacturer, and a download channel is reselected.
[0023] It should be noted that by matching the device identity with the manufacturer's identity, the correctness and security of the download channel are ensured. At the same time, a remote connection between the instrument and the download channel is established, and the remote connection status is analyzed, so as to accurately select the download channel and ensure the matching of the latest communication protocol program and the instrument.
[0024] Please refer to Figure 3 , Figure 3 is the backup flowchart of the latest communication protocol program of a method for remotely upgrading the communication protocol of an instrument in some embodiments of the present application. According to the embodiments of the present invention, the latest communication protocol program is downloaded to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program, which specifically includes: S301, obtain the upgrade file corresponding to the latest communication protocol program based on the download channel; S302, generate a key based on the encryption algorithm, and encrypt the upgrade file based on the key to obtain ciphertext data; S303, establish a security mechanism based on the ciphertext data, and select the corresponding transmission protocol according to the security mechanism; S304, back up the ciphertext data to the backup area of the instrument based on the transmission protocol, and obtain the transmission status information in real time; S305, analyze the transmission progress and remaining transmission time of the ciphertext data based on the transmission status information.
[0025] It should be noted that the upgrade file is obtained and encrypted, and at the same time, the transmission protocol is selected according to the security mechanism, and the ciphertext data is transmitted and backed up to improve the transmission security.
[0026] According to the embodiments of the present invention, the legality of the latest communication protocol program is verified based on the verification rules to obtain the verification result, which specifically includes: Perform an integrity check on the latest communication protocol program based on the verification rules to obtain the integrity of the upgrade file; Generate an integrity check result based on the integrity of the upgrade file; Obtain the format of the upgrade file, verify the format of the upgrade file based on the verification rules, and obtain the format verification result; Analyze the compatibility between the upgrade file and the instrument based on the verification rules, and obtain the compatibility verification result; Perform fusion processing based on the integrity verification result, format verification result, and compatibility verification result to obtain the verification result.
[0027] It should be noted that by analyzing the integrity, format, and compatibility of the upgrade file through the verification rules, the integrity verification result, format verification result, and compatibility verification result are obtained, and fusion processing is performed to obtain the final verification result, improving the verification effect of the upgrade file.
[0028] According to the embodiments of the present invention, install the latest communication protocol program and perform an operation test on the instrument to obtain the test result, specifically including: Obtain the latest communication protocol program and install the latest communication protocol program into the instrument; Operate the instrument to obtain the real-time operation status information of the instrument; Based on the real-time operation status information, comprehensively test the communication function of the instrument. The comprehensive test includes connection tests between the instrument and other devices, data transmission tests, and command execution tests; Analyze the operation stability of the instrument based on the connection test between the instrument and other devices, data transmission test, and command execution test to obtain the stability information; Generate a test result based on the stability information.
[0029] It should be noted that by installing the latest communication protocol program and operating the instrument, the real-time motion status information is analyzed to comprehensively test the instrument, thereby analyzing the operation stability of the instrument to obtain the test result and improving the comprehensiveness of the test.
[0030] According to the embodiments of the present invention, analyze the vulnerability data, generate repair information based on the vulnerability data, and repair the vulnerability data based on the repair information, specifically including: Obtain the upgrade file, calculate the hash value of the upgrade file based on the hash algorithm, and generate the first hash value; After the instrument receives the upgrade file, recalculate the hash value to generate the second hash value; Compare the first hash value with the second hash value to obtain the difference; Determine whether the difference is zero; If it is zero, it is determined that the upgrade file is complete; If it is not zero, generate vulnerability data, analyze the parameter information of the vulnerability data, and generate vulnerability status information; Generate patch information based on vulnerability status information, and repair the vulnerability data based on the patch information.
[0031] It should be noted that by calculating the difference between the first hash value of the upgrade file and the second hash value after receiving the upgrade file, the integrity of the upgrade file is analyzed, and then the vulnerability data is obtained and the vulnerability data is repaired. Remote upgrade can repair the vulnerabilities and errors in the communication protocol, improve the stability and reliability of the system, help reduce the device downtime caused by communication failures, and reduce the maintenance cost. Remote upgrade can encourage instrument manufacturers to continuously introduce new communication protocols and functions, and promote technological innovation.
[0032] In a second aspect, an embodiment of the present application provides a remote upgrade system for an instrument communication protocol. The system includes: a memory and a processor. The memory includes a program for the remote upgrade method of the instrument communication protocol. When the program for the remote upgrade method of the instrument communication protocol is executed by the processor, the following steps are implemented: Receive an upgrade notice, select a download channel based on the upgrade notice, obtain the existing remote communication protocol, and establish a remote connection between the instrument and the download channel based on the existing remote communication protocol; Download the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program; Perform a legality verification on the latest communication protocol program based on the verification rules to obtain a verification result, and determine whether the verification result meets the set condition information; If the set condition information is met, install the latest communication protocol program, perform an operation test on the instrument to obtain a test result, and remotely upgrade the instrument communication protocol based on the test result; If the set condition information is not met, analyze the vulnerability data, generate patch information based on the vulnerability data, and repair the vulnerability data based on the patch information.
[0033] It should be noted that by downloading the latest communication protocol program through the download channel and performing a legality verification on the latest communication protocol according to the verification rules, the integrity and compatibility of the latest communication protocol are ensured, so as to effectively update the communication protocol of the instrument and make the instrument applicable to the new system.
[0034] According to an embodiment of the present invention, establishing a remote connection between the instrument and the download channel based on the existing remote communication protocol specifically includes: Obtain an upgrade notice and analyze the matching result of the device identity and the manufacturer based on the upgrade notice; Select a download channel based on the matching result. The download channels include the official website of the manufacturer or an authorized server; Obtain the existing remote communication protocol, establish a remote connection between the instrument and the download channel, and obtain the connection status; Determine whether the connection status is successfully connected; If the connection is successful, log in to the official website of the manufacturer or the authorized server; If the connection is not successful, it is determined that the device identity does not match the manufacturer, and the download channel is reselected.
[0035] It should be noted that by matching the device identity with the manufacturer's identity, the correctness and security of the download channel are ensured. At the same time, a remote connection between the instrument and the download channel is established, and the remote connection status is analyzed, so as to accurately select the download channel and ensure the matching of the latest communication protocol program with the instrument.
[0036] According to the embodiment of the present invention, based on the download channel, the latest communication protocol program is downloaded to the backup area of the instrument for backup to obtain the latest communication protocol program, which specifically includes: Obtain the upgrade file corresponding to the latest communication protocol program based on the download channel; Generate a key based on the encryption algorithm, and encrypt the upgrade file based on the key to obtain ciphertext data; Establish a security mechanism based on the ciphertext data, and select the corresponding transmission protocol according to the security mechanism; Back up the ciphertext data to the backup area of the instrument based on the transmission protocol, and obtain the transmission status information in real time; Analyze the transmission progress and remaining transmission time of the ciphertext data based on the transmission status information.
[0037] It should be noted that obtaining the upgrade file, performing encryption processing, and at the same time selecting the transmission protocol according to the security mechanism to transmit and back up the ciphertext data improve the transmission security.
[0038] According to the embodiment of the present invention, based on the verification rules, the legality of the latest communication protocol program is verified to obtain the verification result, which specifically includes: Perform integrity verification on the latest communication protocol program based on the verification rules to obtain the integrity of the upgrade file; Generate an integrity verification result based on the integrity of the upgrade file; Obtain the format of the upgrade file, perform format verification on the upgrade file based on the verification rules, and obtain the format verification result; Analyze the compatibility between the upgrade file and the instrument based on the verification rules to obtain the compatibility verification result; Perform fusion processing based on the integrity verification result, the format verification result, and the compatibility verification result to obtain the verification result.
[0039] It should be noted that by analyzing the integrity, format, and compatibility of the upgrade file through the verification rules, obtaining the integrity verification result, format verification result, and compatibility verification result, and performing fusion processing, the final verification result is obtained, improving the verification effect of the upgrade file.
[0040] According to the embodiments of the present invention, install the latest communication protocol program and conduct operation tests on the instrument and meter to obtain test results, specifically including: Obtain the latest communication protocol program and install the latest communication protocol program into the instrument and meter; Operate the instrument and meter to obtain the real-time operation status information of the instrument and meter; Based on the real-time operation status information, conduct a comprehensive test on the communication function of the instrument and meter. The comprehensive test includes connection tests between the instrument and meter and other devices, data transmission tests, and command execution tests; Based on the connection tests between the instrument and meter and other devices, data transmission tests, and command execution tests, analyze the operation stability of the instrument and meter to obtain stability information; Generate test results based on the stability information.
[0041] It should be noted that by installing the latest communication protocol program and operating the instrument and meter, analyzing the real-time motion status information to conduct a comprehensive test on the instrument and meter, thereby analyzing the operation stability of the instrument and meter, obtaining test results, and improving the comprehensiveness of the test.
[0042] According to the embodiments of the present invention, analyze the vulnerability data, generate repair information based on the vulnerability data, and repair the vulnerability data based on the repair information, specifically including: Obtain the upgrade file, calculate the hash value of the upgrade file based on the hash algorithm to generate the first hash value; After the instrument and meter receive the upgrade file, recalculate the hash value to generate the second hash value; Compare the first hash value with the second hash value to obtain the difference; Determine whether the difference is zero; If it is zero, it is determined that the upgrade file is complete; If it is not zero, generate vulnerability data, analyze the parameter information of the vulnerability data to generate vulnerability status information; Generate repair information based on the vulnerability status information and repair the vulnerability data based on the repair information.
[0043] It should be noted that by calculating the difference between the first hash value of the upgrade file and the second hash value after receiving the upgrade file, the integrity of the upgrade file is analyzed, and then vulnerability data is obtained. The vulnerability data is repaired. Remote upgrade can repair vulnerabilities and errors in the communication protocol, improve the stability and reliability of the system, help reduce the device downtime caused by communication failures, and reduce maintenance costs. Remote upgrade can encourage instrument and meter manufacturers to continuously introduce new communication protocols and functions, and promote technological innovation.
[0044] The third aspect of the present invention provides a computer-readable storage medium. The readable storage medium includes a program for the remote upgrade method of the instrument and meter communication protocol. When the program for the remote upgrade method of the instrument and meter communication protocol is executed by a processor, the steps of the remote upgrade method of the instrument and meter communication protocol as described in any one of the above are implemented.
[0045] A remote upgrade method, system and medium for an instrument and meter communication protocol disclosed by the present invention. By receiving an upgrade notification, a download channel is selected based on the upgrade notification, and the existing remote communication protocol is obtained. A remote connection is established between the instrument and meter and the download channel based on the existing remote communication protocol; the latest communication protocol program is downloaded to the backup area of the instrument and meter for backup based on the download channel to obtain the latest communication protocol program; the legality of the latest communication protocol program is verified based on the verification rules to obtain a verification result, and it is judged whether the verification result meets the set condition information; if the set condition information is met, the latest communication protocol program is installed, and the instrument and meter are tested to obtain a test result, and the instrument and meter communication protocol is remotely upgraded based on the test result; if the set condition information is not met, the vulnerability data is analyzed, repair information is generated based on the vulnerability data, and the vulnerability data is repaired based on the repair information; by updating the remote communication protocol in real time, the compatibility between the instrument and meter and the system is ensured, and the matching degree of the communication protocol is improved.
[0046] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed with each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be electrical, mechanical, or other forms.
[0047] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0048] In addition, in each embodiment of the present invention, each functional unit may be fully integrated into a processing unit, or each unit may be a separate unit individually, or two or more units may be integrated into one unit; the above integrated unit may be implemented in the form of hardware or in the form of a combination of hardware and software functional units.
[0049] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks, etc., all kinds of media that can store program codes.
[0050] Alternatively, if the above integrated units of the present invention are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. And the foregoing storage medium includes: removable storage devices, ROM, RAM, magnetic disks or optical disks, etc., all kinds of media that can store program codes.
Claims
1. A method for remotely upgrading an instrument communication protocol, characterized in that, Including: Receiving an upgrade notice, selecting a download channel based on the upgrade notice, obtaining the existing remote communication protocol, and establishing a remote connection between the instrument and the download channel based on the existing remote communication protocol; Downloading the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program; Performing a legality verification on the latest communication protocol program based on the verification rules to obtain a verification result, and determining whether the verification result meets the set condition information; If the set condition information is met, installing the latest communication protocol program, running a test on the instrument to obtain a test result, and remotely upgrading the communication protocol of the instrument based on the test result; If the set condition information is not met, analyzing the vulnerability data, generating repair information based on the vulnerability data, and repairing the vulnerability data based on the repair information.
2. The method for remotely upgrading an instrument communication protocol according to claim 1, characterized in that, Receiving an upgrade notice, selecting a download channel based on the upgrade notice, obtaining the existing remote communication protocol, and establishing a remote connection between the instrument and the download channel based on the existing remote communication protocol, specifically including: Obtaining the upgrade notice and analyzing the matching result of the device identity and the manufacturer based on the upgrade notice; Selecting a download channel based on the matching result, and the download channels include the official website of the manufacturer or an authorized server; Obtaining the existing remote communication protocol, establishing a remote connection between the instrument and the download channel to obtain a connection status; Determining whether the connection status is successfully connected; If the connection is successful, logging in to the official website of the manufacturer or an authorized server; If the connection is not successful, determining that the device identity does not match the manufacturer and reselecting a download channel.
3. The remote upgrade method of the instrument communication protocol according to claim 2, characterized in that, Downloading the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program, specifically including: Obtaining the upgrade file corresponding to the latest communication protocol program based on the download channel; Generating a key based on the encryption algorithm and encrypting the upgrade file based on the key to obtain ciphertext data; Establishing a security mechanism based on the ciphertext data and selecting a corresponding transmission protocol according to the security mechanism; Backing up the ciphertext data to the backup area of the instrument based on the transmission protocol and obtaining the transmission status information in real time; Analyzing the transmission progress and remaining transmission time of the ciphertext data based on the transmission status information.
4. The method for remotely upgrading an instrument communication protocol according to claim 3, characterized in that, Performing a legality verification on the latest communication protocol program based on the verification rules to obtain a verification result, specifically including: Performing an integrity check on the latest communication protocol program based on the verification rules to obtain the integrity of the upgrade file; Generating an integrity check result based on the integrity of the upgrade file; Obtaining the format of the upgrade file, performing a format check on the upgrade file based on the verification rules to obtain a format check result; Analyzing the compatibility between the upgrade file and the instrument based on the verification rules to obtain a compatibility check result; Performing a fusion process on the integrity check result, the format check result, and the compatibility check result to obtain a verification result.
5. The method for remotely upgrading an instrument communication protocol according to claim 4, wherein Installing the latest communication protocol program and running a test on the instrument to obtain a test result, specifically including: Obtaining the latest communication protocol program and installing the latest communication protocol program to the instrument; Running the instrument and obtaining the real-time running status information of the instrument; Comprehensively test the communication function of the instrument based on real-time operating status information. The comprehensive test includes connection tests between the instrument and other devices, data transmission tests, and command execution tests; Analyze the operating stability of the instrument based on the connection tests, data transmission tests, and command execution tests between the instrument and other devices to obtain stability information; Generate test results based on the stability information.
6. The method for remotely upgrading an instrument communication protocol according to claim 5, wherein Analyze vulnerability data, generate repair information based on the vulnerability data, and repair the vulnerability data based on the repair information, specifically including: Obtain the upgrade file, calculate the hash value of the upgrade file based on the hash algorithm to generate the first hash value; After the instrument receives the upgrade file, recalculate the hash value to generate the second hash value; Compare the first hash value with the second hash value to obtain the difference; Determine whether the difference is zero; If it is zero, it is determined that the upgrade file is complete; If it is not zero, generate vulnerability data, analyze the parameter information of the vulnerability data, and generate vulnerability status information; Generate repair information based on the vulnerability status information, and repair the vulnerability data based on the repair information.
7. A remote upgrade system for an instrument communication protocol, characterized in that The system includes: a memory and a processor. The memory includes a program for the remote upgrade method of the instrument communication protocol. When the program for the remote upgrade method of the instrument communication protocol is executed by the processor, the following steps are implemented: Receive an upgrade notice, select a download channel based on the upgrade notice, obtain the existing remote communication protocol, and establish a remote connection between the instrument and the download channel based on the existing remote communication protocol; Download the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program; Perform a legality verification on the latest communication protocol program based on the verification rules to obtain a verification result, and determine whether the verification result meets the set condition information; If the set condition information is met, install the latest communication protocol program, perform an operation test on the instrument to obtain a test result, and remotely upgrade the instrument communication protocol based on the test result; If the set condition information is not met, analyze the vulnerability data, generate repair information based on the vulnerability data, and repair the vulnerability data based on the repair information.
8. The instrument communication protocol remote upgrade system according to claim 7, wherein Receive an upgrade notice, select a download channel based on the upgrade notice, obtain the existing remote communication protocol, and establish a remote connection between the instrument and the download channel based on the existing remote communication protocol, specifically including: Obtain the upgrade notice and analyze the matching result of the device identity and the manufacturer based on the upgrade notice; Select a download channel based on the matching result. The download channels include the official website of the manufacturer or an authorized server; Obtain the existing remote communication protocol, establish a remote connection between the instrument and the download channel to obtain the connection status; Determine whether the connection status is successfully connected; If it is successfully connected, log in to the official website of the manufacturer or an authorized server; If it is not successfully connected, it is determined that the device identity does not match the manufacturer, and re-select a download channel.
9. The instrument communication protocol remote upgrade system according to claim 8, characterized in that Download the latest communication protocol program to the backup area of the instrument for backup based on the download channel to obtain the latest communication protocol program, specifically including: Obtain the upgrade file corresponding to the latest communication protocol program based on the download channel; Generate a key based on an encryption algorithm, and encrypt the upgrade file based on the key to obtain ciphertext data; Establish a security mechanism based on the ciphertext data, and select a corresponding transmission protocol according to the security mechanism; Back up the ciphertext data to the backup area of the instrument based on the transmission protocol, and obtain the transmission status information in real time; Analyze the transmission progress and remaining transmission time of the ciphertext data based on the transmission status information.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a remote upgrade method program for the instrument communication protocol. When the remote upgrade method program for the instrument communication protocol is executed by a processor, the steps of the remote upgrade method for the instrument communication protocol described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method, device and electronic equipment for scanning vulnerability based on webpage hash value
CN105516114A
Electric meter communication module upgrading method, electric meter control module and electric meter communication module
CN111314133A
Differential upgrade repairing method and device, electronic equipment and readable storage medium
CN114780129A
Remote upgrading method, remote upgrading party system, engineering machinery and storage medium
CN119759390A
Remote OTA upgrading method and system
CN119814557A