Device upgrade method, device, device and readable storage medium

By introducing a matching mechanism between logical device types and physical device types in the visual network, the low security problem caused by relying on file name distinction in the existing technology is solved, and the security and accuracy of device upgrades are improved.

CN113407205BActive Publication Date: 2024-09-13HAINAN SHILIAN COMM TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110573137.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-25
Publication Date
2024-09-13
Estimated Expiration
2041-05-25

AI Technical Summary

Technical Problem

The existing video network device upgrade method relies on file name distinction, which has low security and can easily lead to incorrect upgrades and failures.

Method used

By introducing a matching mechanism between logical device types and physical device types in the video network, the network management server and sub-control server verify the upgrade program file before receiving it to ensure the correctness and security of the file.

Benefits of technology

It improves the security of video network device upgrades, reduces the risk of malfunctions caused by incorrect upgrade files, and ensures the accuracy and reliability of device upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113407205B
    Figure CN113407205B
Patent Text Reader

Abstract

The embodiment of the present invention provides a device upgrade method, apparatus, electronic device and storage medium, wherein the network management server can obtain an upgrade program file for a sub-control server to be upgraded, read the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file, and judge whether the logical device type and physical device type match the sub-control server to be upgraded. If they match, the upgrade program file is sent to the sub-control server to be upgraded, so that the sub-control server to be upgraded reads the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file, and judges whether the logical device type and physical device type match itself. If they match, the upgrade is performed according to the upgrade program file. In this way, the sub-control server will only be upgraded if the logical device type and physical device type in the upgrade program file match those of the sub-control server, thereby improving the security of the visual network device upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual networking technology, and in particular to a device upgrading method, apparatus, device and readable storage medium. Background Art

[0002] Visual Internet is a real-time network that can achieve real-time transmission of high-definition video. In the visual Internet, there are multiple servers, including gateway servers, autonomous servers and sub-control servers. Each server has multiple models, such as S32K Micro Cloud Server, S62K Micro Cloud Server, KU 20K Micro Cloud Server, etc., and also distinguishes between 16-bit program and 64-bit program versions.

[0003] In the prior art, two upgrade program files, DSP (Digital Signal Process) and FPGA (Field Programmable Gate Array), can be used to upgrade the servers in the visual network.

[0004] However, currently we can only rely on the file name of the upgrade program file to distinguish the visual network server corresponding to each upgrade program file. This method has great hidden dangers and low security. Once the file name of the upgrade program file is tampered with or confused, it is very likely that an event similar to upgrading the upgrade package of the S6 server to the S3 server will occur, resulting in the failure of the visual network server upgrade and may even cause the visual network to malfunction. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a device upgrading method, apparatus, device and readable storage medium that overcome the above problems or at least partially solve the above problems.

[0006] In order to solve the above problem, an embodiment of the present invention discloses a device upgrade method, which is applied to a sub-control server in a visual network, wherein the visual network includes a network management server and a plurality of sub-control servers, and the method includes:

[0007] Receiving the upgrade program file sent by the network management server;

[0008] Reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file;

[0009] Determining whether the logical device type and the physical device type match the sub-control server;

[0010] If they match, the upgrade is performed according to the upgrade program file.

[0011] Optionally, before receiving the upgrade program file sent by the network management server, the method further includes:

[0012] Receiving the signature file sent by the network management server;

[0013] The signature file is verified, and if the verification is successful, the signature of the sub-control server is returned to the network management server, so that the network management server verifies the signature of the sub-control server and sends the upgrade program file after the verification is successful.

[0014] Optionally, the signature file includes file name information and length information of the upgrade program file. After receiving the upgrade program file sent by the network management server, the method further includes:

[0015] Determine whether the file name and length of the upgrade program file are the same as the file name information and length information included in the signature file. If they are the same, execute the step of reading the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file.

[0016] Optionally, the signature file includes length information of the upgrade program file. After the signature file is successfully verified, the method further includes:

[0017] According to the length of the upgrade program file in the signature file, storage space is allocated for the upgrade program file.

[0018] Optionally, after receiving the upgrade program file sent by the network management server, the method further includes:

[0019] Perform hash verification on the upgrade program file, and if the hash verification succeeds, execute the step of reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file.

[0020] Optionally, if the logical device type and the physical device type do not match the sub-control server, the method further includes:

[0021] Generate and store error logs, and send upgrade error messages to the network management server;

[0022] After the upgrading is performed according to the upgrading program file, the method further comprises:

[0023] Send an upgrade success message to the network management server.

[0024] The embodiment of the present invention further discloses a device upgrade method, which is applied to a network management server in a visual network, wherein the visual network includes the network management server and a plurality of sub-control servers, and the method includes:

[0025] Obtain the upgrade program file for the sub-control server to be upgraded;

[0026] Reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file;

[0027] Determine whether the logical device type and the physical device type match the sub-control server to be upgraded;

[0028] If they match, the upgrade program file is sent to the sub-control server to be upgraded, so that the sub-control server to be upgraded is upgraded according to the upgrade program file.

[0029] Optionally, before obtaining the upgrade program file for the sub-control server to be upgraded, the method further includes:

[0030] Sending the signature file to the sub-control server to be upgraded, so that the sub-control server to be upgraded verifies the signature file, and returns the signature of the sub-control server to be upgraded after successful verification;

[0031] The signature of the sub-control server to be upgraded is verified. If the verification is successful, the step of obtaining the upgrade program file for the sub-control server to be upgraded is performed.

[0032] Optionally, the visual network further includes an autonomous server, and the step of sending the upgrade program file to the sub-control server to be upgraded includes:

[0033] The upgrade program file is sent to the autonomous server, so that the autonomous server sends the upgrade program file to the sub-control server to be upgraded through the videophone service.

[0034] Optionally, if it is determined that the logical device type and the physical device type do not match the sub-control server to be upgraded, the method further includes:

[0035] Generates and stores an error log.

[0036] Optionally, the method further includes:

[0037] If any sub-control server newly connected to the visual network is detected, the corresponding logical device type and physical device type are returned to the sub-control server newly connected to the visual network.

[0038] The embodiment of the present invention further discloses a device upgrade apparatus, which is applied to a sub-control server in a visual network, wherein the visual network includes a network management server and a plurality of sub-control servers, and the device includes:

[0039] A receiving module, used for receiving the upgrade program file sent by the network management server;

[0040] A reading module, used for reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file;

[0041] A judgment module, used to judge whether the logical device type and the physical device type match the sub-control server;

[0042] The upgrade module is used to upgrade according to the upgrade program file if a match is found.

[0043] The embodiment of the present invention further discloses a device for upgrading equipment, which is applied to a network management server in a visual network, wherein the visual network includes the network management server and a plurality of sub-control servers, and the device includes:

[0044] An acquisition module is used to acquire an upgrade program file for the sub-control server to be upgraded;

[0045] A reading module, used for reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file;

[0046] A judgment module, used to judge whether the logical device type and the physical device type match the sub-control server to be upgraded;

[0047] The sending module is used for sending the upgrade program file to the sub-control server to be upgraded if there is a match, so that the sub-control server to be upgraded is upgraded according to the upgrade program file.

[0048] The embodiment of the present invention further discloses a device upgrading device, comprising:

[0049] one or more processors; and

[0050] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the device to execute any of the above-mentioned device upgrade methods.

[0051] The embodiment of the present invention further discloses a computer-readable storage medium, wherein the computer program stored in the storage medium enables a processor to execute any of the above-mentioned device upgrading methods.

[0052] The embodiments of the present invention include the following advantages:

[0053] The embodiment of the present invention applies the characteristics of the visual network, and the network management server can obtain the upgrade program file for the sub-control server to be upgraded, and then read the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file, and determine whether the logical device type and the physical device type match the sub-control server to be upgraded. If they match, the upgrade program file is sent to the sub-control server to be upgraded, so that the sub-control server to be upgraded reads the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file, and determines whether the logical device type and the physical device type match itself. If they match, the upgrade is performed according to the upgrade program file.

[0054] That is to say, the upgrade program file includes the logical device type and physical device type of the sub-control server to be upgraded. In this way, the network management server and the sub-control server can verify the upgrade program file according to the logical device type and the physical device type. The sub-control server will only be upgraded if the logical device type and the physical device type in the upgrade program file match those of the sub-control server that received the upgrade program file. This can reduce the possibility of upgrading the visual network device according to an erroneous upgrade program file and causing visual network failures, thereby improving the security of visual network device upgrades. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a structural diagram of the visual network;

[0056] Figure 2 is a flow chart of a device upgrading method of the present invention;

[0057] Figure 3 is a flow chart of another device upgrading method of the present invention;

[0058] Figure 4 It is a system architecture diagram in a visual network of the present invention;

[0059] Figure 5 is a structural diagram of a device upgrading apparatus of the present invention;

[0060] Figure 6 It is a structural diagram of another equipment upgrading device of the present invention. DETAILED DESCRIPTION

[0061] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0062] like Figure 1The figure shows the structure of the visual network, in which the overall network structure of the visual network is composed of multiple interconnected substructures called autonomous clouds. When the autonomous clouds are interconnected, they present a clear hierarchical structure: starting from the top-level autonomous cloud, each autonomous cloud can be interconnected with multiple autonomous clouds in the next layer, and the autonomous clouds in the next layer are connected to the autonomous clouds in the next layer. All autonomous clouds are connected layer by layer in this way to form a complete visual network. This hierarchical structure is a standard tree structure. Each autonomous cloud is a node in the tree, and the entire visual network is a tree composed of autonomous cloud nodes.

[0063] At present, in the visual network, we can only rely on the file name of the upgrade program file to distinguish the visual network server corresponding to each upgrade program file. This method has great hidden dangers and low security. Once the file name of the upgrade program file is tampered with or confused, it is very likely that an event similar to upgrading the upgrade package of the S6 server to the S3 server will occur, resulting in the failure of the visual network server upgrade and may even cause the visual network to malfunction.

[0064] In order to solve the above technical problems, embodiments of the present invention provide a device upgrading method, apparatus, device and readable storage medium.

[0065] like Figure 2 As shown, an embodiment of the present invention provides a device upgrade method, which is applied to a sub-control server in a visual network, wherein the visual network includes a network management server and multiple sub-control servers, and specifically includes the following steps:

[0066] S101: receiving an upgrade program file sent by a network management server.

[0067] The upgrade program file is a file used for device upgrade, which may be a dsp file or an fpag file, and is not specifically limited. In the embodiment of the present invention, the upgrade program file may be packaged in VPKG format.

[0068] The VPKG format is a package file format that can be used to store various formatted information. It uses a text format that is completely independent of the programming language to store and represent data. The hierarchical structure is concise and clear, easy to read and write, and easy to machine parse and generate, which can effectively improve network transmission efficiency.

[0069] Table 1 shows the VPKG format of the upgrade program file.

[0070] Table 1 VPKG format of upgrade program file

[0071] Fields length illustrate Constant Value 4 bytes The value is the characters "VPKG" Upgrade program files Indefinite length Programs for updating specific devices

[0072] Except for constant values, all other information of the upgrade program file is defined in the form of elements. Each element consists of three parts: type, length, and data. The type part of the element is used to distinguish the format of the data part, the length part indicates the number of bytes of the data part, and the data part is the actual content stored in the element.

[0073] Specifically, the type part of the element is 1 byte long, and its definition and the corresponding data part format are shown in Table 2 below.

[0074] Table 2 Definition of element type and corresponding data part format

[0075]

[0076] Among them, the "object" type, the data part consists of multiple element pairs, realizing the nesting of elements. Each pair of elements can represent a pair of key and value. The type of the first element can only be "string", which is used to represent the key of the element pair. The type of the second element is arbitrary, which is used to represent the value of the element pair. "Byte string", this type is used to store binary data of arbitrary byte length. "String", stores UTF8 characters. "Digital string", stores numerical values ​​in the form of strings. This ensures that no information is lost, but increases storage space. "Special value", the three numerical values ​​defined in the type, "null", "false", "true" types, and other special values ​​can be defined if necessary.

[0077] The format of the length part of the element is shown in Table 3.

[0078] Table 3 Length part format of the element

[0079]

[0080]

[0081] The format of the upgrade program file can be:

[0082] "dev_app_file":{

[0083] "logdev_type": "String: Logical device type",

[0084] "phydev_type": "String: Physical device type",

[0085] "file_id": "Digital string: file number",

[0086] "file_format": "String: file format",

[0087] "file_version": "String: file version number",

[0088] "file_length": "Digital string: file length",

[0089] "file_time": "String: file time",

[0090] "file_hash": "Object: Verification data"

[0091] "file_name": "String: file name",

[0092] "file_data": "Byte string: file data"

[0093] }

[0094] Among them, file_data is a byte string storing the real sub-control server upgrade program. The combination of logical device type, physical device type, file sequence number, and file format of the sub-control server currently supported is shown in Table 4.

[0095] Table 4 Correspondence table between character strings and sub-control server information

[0096]

[0097]

[0098] The file version number format is unified as "ABC YY.MM.DD.hh", where YY represents the last two digits of the year, MM represents the month, DD represents the day, and hh represents the hour, indicating the release date. ABC represents the specific version, such as 1.2.7. The file time is the modification time of the file, in the format of "YYYY-MM-DD hh:mm:ss". YYYY represents the year, MM represents the month, DD represents the day, hh represents the hour, mm represents the minute, and ss represents the second.

[0099] In an embodiment of the present invention, before receiving the upgrade program file sent by the network management server, the sub-control server will also receive the signature file sent by the network management server, and then the signature file needs to be verified. If the verification is successful, the signature of the sub-control server is returned to the network management server so that the network management server can verify the signature of the sub-control server and send the upgrade program file after the verification is successful.

[0100] In this way, identity authentication can be achieved between the sub-control server and the network management server, further reducing the possibility of errors in the transmission of upgrade program files.

[0101] In one implementation, the signature file includes the file name information and length information of the upgrade program file, that is, when the sub-control server successfully verifies the signature file, the file name information and length information of the upgrade program file are obtained, which is conducive to further verifying the received upgrade program file and reducing the possibility of the sub-control server upgrading according to the wrong upgrade program file. Among them, the type of signature algorithm can be the national secret "sm2".

[0102] Furthermore, when the signature file includes the length information of the upgrade program file, the sub-control server can allocate storage space for the upgrade program file according to the length of the upgrade program file in the signature file after the signature file is successfully verified.

[0103] In this way, the utilization rate of system resources can be improved, redundant allocation can be reduced, and the received upgrade program file can be verified. If the received upgrade program file is too large or too small, it means that the upgrade program file is incorrect.

[0104] In the embodiment of the present invention, the signature file may also be encapsulated in the VPKG format. As shown in Table 5, the VPKG format of the signature file is shown.

[0105] Table 5 VPKG format of signature file

[0106] Fields length illustrate Constant Value 4 bytes The value is the characters "VPKG" Signature File Indefinite length Verify that a specific file has not been tampered with

[0107] The signature file format can be:

[0108] "file_signature":{

[0109] "file_name": "String: file name",

[0110] "file_length": "String: file length",

[0111] "signature_data": "Object: signature data"

[0112] }

[0113] "signature_data":{

[0114] "type": "String: algorithm type",

[0115] "data": "byte string: signature data",

[0116] }

[0117] In this step, after receiving the upgrade program file sent by the network management server, the upgrade program file can be hash-verified. If the hash verification succeeds, the step of reading the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file is executed.

[0118] If the hash verification fails, the sub-control server may generate and store an error log and send an upgrade error message to the network management server.

[0119] Among them, hash verification is a verification system designed to ensure the correctness of the upgrade program file and prevent some people from stealing the program, adding some Trojans or tampering with the copyright. Specifically, each upgrade program file can use the Hash MD5 algorithm to calculate the MD5 code corresponding to the upgrade program file. The sender can pre-calculate the MD5 code of the upgrade program file and make it public. After receiving the upgrade program file, the receiver uses the same algorithm to calculate the MD5 code of the received upgrade program file and compare it with the MD5 code made public by the sender. If the two are different, then the upgrade program file received by the receiver is incomplete or has been tampered with by others.

[0120] Among them, there are two types of hash verification algorithms: "md5" and "sm3", and the corresponding signature data formats are as follows:

[0121] "file_hash":{

[0122] "type":"md5",

[0123] "hash": "byte string: file hash value",

[0124] }

[0125] "file_hash":{

[0126] "type":"sm3",

[0127] "hash": "byte string: file hash value",

[0128] }

[0129] The file hash value is the hash value obtained by calculating the file using the standard algorithm. The file hash value length in the MD5 algorithm is 16 bytes, and the file hash value length in the SM3 algorithm is 32 bytes.

[0130] S102: Reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file.

[0131] In one implementation, the signature file includes the file name information and length information of the upgrade program file. Then, after receiving the upgrade program file sent by the network management server, the sub-control server can determine whether the file name and length of the upgrade program file are the same as the file name information and length information included in the signature file. If they are the same, the step of reading the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file is executed.

[0132] In this way, the received upgrade program file can be preliminarily verified according to the file name and length of the upgrade program file, thereby improving the verification efficiency and reducing the possibility that the sub-control server will upgrade according to the wrong upgrade program file.

[0133] S103: Determine whether the logical device type and the physical device type match those of the sub-control server. If they match, execute S104.

[0134] In one implementation, if the logical device type and the physical device type do not match the sub-control server, the sub-control server can generate and store an error log and send an upgrade error message to the network management server. In this way, the network management server can monitor the device upgrade process in a timely manner, and is conducive to timely solving problems and improving device upgrade efficiency.

[0135] S104: Upgrading according to the upgrade program file.

[0136] In one implementation, after upgrading according to the upgrade program file, the sub-control server may send an upgrade success message to the network management server.

[0137] From the above, it can be seen that the device upgrade method provided by the embodiment of the present invention includes the logical device type and physical device type of the sub-control server to be upgraded in the upgrade program file. In this way, the network management server and the sub-control server can verify the upgrade program file according to the logical device type and the physical device type. The sub-control server will only be upgraded if the logical device type and the physical device type in the upgrade program file match those of the sub-control server that received the upgrade program file. This can reduce the possibility of upgrading the visual network device according to an erroneous upgrade program file and causing a visual network failure, thereby improving the security of the visual network device upgrade.

[0138] like Figure 3 As shown, the embodiment of the present invention also provides another device upgrade method, which is applied to a network management server in a visual network, wherein the visual network includes a network management server and multiple sub-control servers, and specifically includes the following steps:

[0139] S201: Obtain an upgrade program file for the sub-control server to be upgraded.

[0140] In an embodiment of the present invention, before obtaining the upgrade program file for the sub-control server to be upgraded, the network management server may first send a signature file to the sub-control server to be upgraded, so that the sub-control server to be upgraded verifies the signature file, and returns the signature of the sub-control server to be upgraded after the verification is successful. Then, the signature of the sub-control server to be upgraded is verified. If the verification is successful, the step of obtaining the upgrade program file for the sub-control server to be upgraded is executed.

[0141] In this way, identity authentication can be achieved between the sub-control server and the network management server, further reducing the possibility of errors in the transmission of upgrade program files.

[0142] The upgrade program file and the signature file may be obtained by the network management server from the network management client, and the network management client may interact with the user to obtain the user's input information.

[0143] In addition, if the network management server detects any sub-control server newly connected to the visual network, it can return the corresponding logical device type and physical device type to the sub-control server newly connected to the visual network. In this way, the network management server can store the logical device type and physical device type of each sub-control server in the visual network, and each sub-control server can determine its own logical device type and physical device type.

[0144] S202: Reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file.

[0145] S203: Determine whether the logical device type and the physical device type match the sub-control server to be upgraded. If they match, execute S204.

[0146] In one implementation, if it is determined that the logical device type and the physical device type do not match the sub-control server to be upgraded, the network management server can generate and store an error log. In this way, the network management server can monitor the device upgrade process in a timely manner, and is conducive to communicating with the user through the network management client, so as to solve the problem in time and improve the efficiency of device upgrade.

[0147] S204: Send the upgrade program file to the sub-control server to be upgraded, so that the sub-control server to be upgraded is upgraded according to the upgrade program file.

[0148] In one implementation, the visual network also includes an autonomous server. The network management server can first send the upgrade program file to the autonomous server, and then the autonomous server sends the upgrade program file to the sub-control server to be upgraded through the videophone service.

[0149] like Figure 4As shown, it is a system architecture diagram in the visual network, which includes a network management client, a network management server, an autonomous server and a sub-control server. The user can upload the signature file and upgrade program file for any sub-control server to the network management server through the network management client. Each network management client can manage at least one autonomous server, and each autonomous server can manage at least one sub-control server. The sub-control server is used to manage visual network terminals, such as various conference set-top boxes, videophone set-top boxes, surgical trial teaching set-top boxes, streaming media gateways, storage gateways, media synthesizers and other equipment.

[0150] From the above, it can be seen that the device upgrade method provided by the embodiment of the present invention includes the logical device type and physical device type of the sub-control server to be upgraded in the upgrade program file. In this way, the network management server and the sub-control server can verify the upgrade program file according to the logical device type and the physical device type. The sub-control server will only be upgraded if the logical device type and the physical device type in the upgrade program file match those of the sub-control server that received the upgrade program file. This can reduce the possibility of upgrading the visual network device according to an erroneous upgrade program file and causing a visual network failure, thereby improving the security of the visual network device upgrade.

[0151] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0152] like Figure 5 As shown, an embodiment of the present invention further provides a device upgrade apparatus, which is applied to a sub-control server in a visual network, wherein the visual network includes a network management server and a plurality of sub-control servers, and the apparatus includes:

[0153] The receiving module 501 is used to receive the upgrade program file sent by the network management server;

[0154] A reading module 502, configured to read the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file;

[0155] A judgment module 503 is used to judge whether the logical device type and the physical device type match the sub-control server;

[0156] The upgrade module 504 is used to upgrade according to the upgrade program file if there is a match.

[0157] As can be seen from the above, the device upgrade apparatus provided by the embodiment of the present invention includes the logical device type and physical device type of the sub-control server to be upgraded in the upgrade program file. In this way, the network management server and the sub-control server can verify the upgrade program file according to the logical device type and the physical device type. The sub-control server will only be upgraded if the logical device type and the physical device type in the upgrade program file match those of the sub-control server that received the upgrade program file. This can reduce the possibility of upgrading the visual network device according to an erroneous upgrade program file and causing a visual network failure, thereby improving the security of the visual network device upgrade.

[0158] like Figure 6 As shown, an embodiment of the present invention further provides another device upgrade device, which is applied to a network management server in a visual network, wherein the visual network includes the network management server and a plurality of sub-control servers, and the device includes:

[0159] The acquisition module 601 is used to acquire the upgrade program file for the sub-control server to be upgraded;

[0160] A reading module 602 is used to read the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file;

[0161] A judgment module 603 is used to judge whether the logical device type and the physical device type match the sub-control server to be upgraded;

[0162] The sending module 604 is used to send the upgrade program file to the sub-control server to be upgraded if there is a match, so that the sub-control server to be upgraded is upgraded according to the upgrade program file.

[0163] As can be seen from the above, the device upgrade apparatus provided by the embodiment of the present invention includes the logical device type and physical device type of the sub-control server to be upgraded in the upgrade program file. In this way, the network management server and the sub-control server can verify the upgrade program file according to the logical device type and the physical device type. The sub-control server will only be upgraded if the logical device type and the physical device type in the upgrade program file match those of the sub-control server that received the upgrade program file. This can reduce the possibility of upgrading the visual network device according to an erroneous upgrade program file and causing a visual network failure, thereby improving the security of the visual network device upgrade.

[0164] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0165] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0166] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0167] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0168] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0169] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0170] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0171] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0172] The above is a detailed introduction to a device upgrading method and apparatus provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A device upgrading method, characterized in that: The method is applied to a sub-control server in a visual network, wherein the visual network includes a network management server and a plurality of sub-control servers, and the method includes: Receiving the upgrade program file sent by the network management server, wherein the upgrade program file is encapsulated in VPKG format; Reading the logical device type and the physical device type corresponding to the upgrade program file from the file data field in the upgrade program file; Determining whether the logical device type and the physical device type match the sub-control server; If they match, upgrading is performed according to the upgrade program file; If the logical device type and the physical device type do not match the sub-control server, the method further includes: generating and storing an error log, and sending an upgrade error message to the network management server; after the upgrade is performed according to the upgrade program file, the method further includes: sending an upgrade success message to the network management server; Before receiving the upgrade program file sent by the network management server, the method further includes: Receiving the signature file sent by the network management server; Verifying the signature file, and if the verification is successful, returning the signature of the sub-control server to the network management server, so that the network management server verifies the signature of the sub-control server and sends the upgrade program file after the verification is successful; The signature file includes file name information and length information of the upgrade program file. After receiving the upgrade program file sent by the network management server, the method further includes: Determine whether the file name and length of the upgrade program file are the same as the file name information and length information included in the signature file. If they are the same, execute the step of reading the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file.

2. The method according to claim 1, characterized in that: The signature file includes the length information of the upgrade program file. After the signature file is successfully verified, the method further includes: According to the length of the upgrade program file in the signature file, storage space is allocated for the upgrade program file.

3. The method according to claim 1, characterized in that: After receiving the upgrade program file sent by the network management server, the method further includes: Perform hash verification on the upgrade program file, and if the hash verification succeeds, execute the step of reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file.

4. A device upgrading method, characterized in that: The method is applied to a network management server in a visual network, wherein the visual network includes the network management server and a plurality of sub-control servers, and the method includes: Obtain the upgrade program file for the sub-control server to be upgraded, wherein the upgrade program file is packaged in VPKG format; Reading the logical device type and the physical device type corresponding to the upgrade program file from the file data field in the upgrade program file; Determine whether the logical device type and the physical device type match the sub-control server to be upgraded; If they match, the upgrade program file is sent to the sub-control server to be upgraded, so that the sub-control server to be upgraded is upgraded according to the upgrade program file; If it is determined that the logical device type and the physical device type do not match the sub-control server to be upgraded, the method further includes: Generate and store error logs; Before obtaining the upgrade program file for the sub-control server to be upgraded, the method further includes: Sending a signature file to the sub-control server to be upgraded so that the sub-control server to be upgraded verifies the signature file and returns the signature of the sub-control server to be upgraded after successful verification, wherein the signature file includes file name information and length information of the upgrade program file; judging whether the file name and length of the upgrade program file are the same as the file name information and length information included in the signature file, and if they are the same, executing the step of reading the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file; The signature of the sub-control server to be upgraded is verified. If the verification is successful, the step of obtaining the upgrade program file for the sub-control server to be upgraded is performed.

5. The method according to claim 4, characterized in that The visual network also includes an autonomous server, and the step of sending the upgrade program file to the sub-control server to be upgraded includes: The upgrade program file is sent to the autonomous server, so that the autonomous server sends the upgrade program file to the sub-control server to be upgraded through the videophone service.

6. The method according to claim 5, characterized in that The method further comprises: If any sub-control server newly connected to the visual network is detected, the corresponding logical device type and physical device type are returned to the sub-control server newly connected to the visual network.

7. A device upgrading apparatus, characterized in that: The device is applied to a sub-control server in a visual network, wherein the visual network includes a network management server and a plurality of sub-control servers, and the device includes: A receiving module, used for receiving an upgrade program file sent by the network management server, wherein the upgrade program file is packaged in VPKG format; A reading module, used for reading the logical device type and the physical device type corresponding to the upgrade program file from the file data field in the upgrade program file; A judgment module is used to judge whether the logical device type and the physical device type match the sub-control server. If the logical device type and the physical device type do not match the sub-control server, it also includes: generating and storing an error log, and sending an upgrade error message to the network management server; after the upgrade is performed according to the upgrade program file, it also includes: Sending an upgrade success message to the network management server; before receiving the upgrade program file sent by the network management server, it also includes: receiving the signature file sent by the network management server; Verify the signature file, and if the verification is successful, return the signature of the sub-control server to the network management server, so that the network management server verifies the signature of the sub-control server and sends the upgrade program file after the verification is successful; the signature file includes the file name information and length information of the upgrade program file, and after receiving the upgrade program file sent by the network management server, it also includes: judging whether the file name and length of the upgrade program file are the same as the file name information and length information included in the signature file, and if they are the same, executing the reading of the logical device type and physical device type corresponding to the upgrade program file from the upgrade program file; The upgrade module is used to upgrade according to the upgrade program file if a match is found.

8. A device upgrading apparatus, characterized in that: The device is applied to a network management server in a visual network, wherein the visual network includes the network management server and a plurality of sub-control servers, and the device includes: An acquisition module is used to acquire an upgrade program file for the sub-control server to be upgraded, wherein the upgrade program file is packaged in VPKG format; A reading module, used for reading the logical device type and the physical device type corresponding to the upgrade program file from the file data field in the upgrade program file; A judgment module, used for judging whether the logical device type and the physical device type match the sub-control server to be upgraded, and if it is judged that the logical device type and the physical device type do not match the sub-control server to be upgraded, it also includes: generating and storing an error log; before obtaining the upgrade program file for the sub-control server to be upgraded, it also includes: sending a signature file to the sub-control server to be upgraded, so that the sub-control server to be upgraded verifies the signature file, and returns the signature of the sub-control server to be upgraded after successful verification, wherein the signature file includes the file name information and length information of the upgrade program file; judging whether the file name and length of the upgrade program file are the same as the file name information and length information included in the signature file, and if they are the same, executing the step of reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file; The sending module is used for sending the upgrade program file to the sub-control server to be upgraded if there is a match, so that the sub-control server to be upgraded is upgraded according to the upgrade program file.

9. A device upgrade device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the device to execute the device upgrade method as described in any one of claims 1 to 3 or 4 to 6.

10. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the device upgrading method as described in any one of claims 1 to 3 or 4 to 6.

Citation Information

Patent Citations

  • Terminal upgrading method and device, server, terminal equipment and readable storage medium

    CN111367545A

  • Equipment program upgrading method and device, terminal equipment and storage medium

    CN111683114A

  • Server program upgrading method and device, terminal equipment and storage medium

    CN111708552A

  • Application program upgrade method, user terminal and storage medium

    WO2018090642A1