Equipment upgrading method, device, equipment and readable storage medium

文档序号:7207 发布日期:2021-09-17 浏览:55次 中文

1. An equipment upgrading method is applied to a sub-control server in a video network, wherein the video network comprises a network management server and a plurality of sub-control servers, and the method comprises the following steps:

receiving an upgrading program file sent by the network management server;

reading a logic device type and a physical device type corresponding to the upgrading program file from the upgrading program file;

judging whether the logic equipment type and the physical equipment type are matched with the sub-control server or not;

and if the program files are matched, upgrading according to the upgrading program file.

2. The method according to claim 1, wherein before said receiving the upgrade program file sent by the network management server, the method further comprises:

receiving a signature file sent by the network management server;

and verifying the signature file, 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 sending the upgrading program file after the verification is successful.

3. The method according to claim 2, wherein the signature file includes file name information and length information of an upgrade program file, and after the receiving the upgrade program file sent by the network management server, the method further includes:

and judging whether the file name and the length of the upgrading program file are the same as the file name information and the length information included in the signature file, if so, executing the step of reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file.

4. The method of claim 2, wherein the signature file includes length information of the upgrade program file, and after the signature file is successfully verified, the method further comprises:

and distributing a storage space for the upgrading program file according to the length of the upgrading program file in the signature file.

5. The method according to claim 1, wherein after said receiving the upgrade program file sent by the webmaster server, the method further comprises:

and performing hash verification on the upgrading program file, and if the hash verification is successful, executing the step of reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file.

6. The method of claim 1, wherein if the logical device type and the physical device type do not match the sub-control server, the method further comprises:

generating and storing an error log, and sending an upgrade error message to the network management server;

after the upgrading according to the upgrading program file, the method further comprises:

and sending an upgrade success message to the network management server.

7. An equipment upgrading method is characterized in that the method is applied to a network management server in a video network, the video network comprises the network management server and a plurality of sub-control servers, and the method comprises the following steps:

acquiring an upgrading program file aiming at a sub-control server to be upgraded;

reading a logic device type and a physical device type corresponding to the upgrading program file from the upgrading program file;

judging whether the type of the logic equipment and the type of the physical equipment are matched with the sub-control server to be upgraded;

and if the upgrade program files are matched with the upgrade program files, the upgrade program files are sent to the sub-control servers to be upgraded, so that the sub-control servers to be upgraded are upgraded according to the upgrade program files.

8. The method according to claim 7, wherein before the obtaining of the upgrade program file for the sub-control server to be upgraded, the method further comprises:

sending a signature file to a sub-control server to be upgraded so that the sub-control server to be upgraded verifies the signature file, and returning a signature of the sub-control server to be upgraded after the verification is successful;

and verifying the signature of the sub-control server to be upgraded, and if the verification is successful, executing the step of acquiring the upgrading program file aiming at the sub-control server to be upgraded.

9. The method according to claim 7, wherein an autonomous server is further included in the video network, and the sending the upgrade program file to the sub-control server to be upgraded includes:

and sending the upgrading program file to an autonomous server so that the autonomous server sends the upgrading program file to the sub-control server to be upgraded through a video telephone service.

10. The method of claim 7, wherein 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 comprises:

an error log is generated and stored.

11. The method of claim 7, further comprising:

and if any new sub-control server accessed to the video network is detected, returning the corresponding logic device type and physical device type to the new sub-control server accessed to the video network.

12. An equipment upgrading device is characterized in that the device is applied to a sub-control server in a video network, the video network comprises a network management server and a plurality of sub-control servers, and the device comprises:

the receiving module is used for receiving the upgrading program file sent by the network management server;

the reading module is used for reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file;

the judging module is used for judging whether the logic equipment type and the physical equipment type are matched with the sub-control server or not;

and the upgrading module is used for upgrading according to the upgrading program file if the upgrading program file is matched with the upgrading program file.

13. An equipment upgrading device is characterized in that the device is applied to a network management server in a video network, wherein the video network comprises the network management server and a plurality of sub-control servers, and the device comprises:

the acquisition module is used for acquiring an upgrading program file aiming at the sub-control server to be upgraded;

the reading module is used for reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file;

the judging module is used for judging whether the logic equipment type and the physical equipment type are matched with the sub-control server to be upgraded;

and the sending module is used for sending the upgrading program file to the sub-control server to be upgraded if the upgrading program file is matched with the sub-control server to be upgraded so that the sub-control server to be upgraded is upgraded according to the upgrading program file.

14. An apparatus upgrade apparatus, comprising:

one or more processors; and

one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the device to perform the device upgrade method of any one of claims 1 to 6 or 7 to 11.

15. A computer-readable storage medium storing a computer program for causing a processor to execute the device upgrade method according to any one of claims 1 to 6 or 7 to 11.

Background

The video network is a real-time network and can realize high-definition video real-time transmission. In the video network, a plurality of servers such as a gateway server, an autonomous server and a sub-control server are included, each server has a plurality of models, such as an S32K micro cloud server, an S62K micro cloud server, a KU 20K micro cloud server and the like, and two versions of a 16-bit program and a 64-bit program are distinguished.

In the prior art, two upgrading program files, namely dsp (Digital Signal processing) and fpga (Field Programmable Gate Array), may be used to upgrade a server in a video network.

However, currently, only the file name of the upgrade program file can be used to distinguish the corresponding video network server of each upgrade program file, such a method has a great hidden danger and low security, and once the file name of the upgrade program file is tampered or confused, an event like upgrading the upgrade package of the S6 server to the S3 server is likely to occur, which results in the upgrade failure of the video network server, and even may result in the failure of the video network.

Disclosure of Invention

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

In order to solve the above problem, an embodiment of the present invention discloses an apparatus upgrading method, which is applied to a sub-control server in a video network, where the video network includes a network management server and a plurality of sub-control servers, and the method includes:

receiving an upgrading program file sent by the network management server;

reading a logic device type and a physical device type corresponding to the upgrading program file from the upgrading program file;

judging whether the logic equipment type and the physical equipment type are matched with the sub-control server or not;

and if the program files are matched, upgrading according to the upgrading program file.

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

receiving a signature file sent by the network management server;

and verifying the signature file, 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 sending the upgrading program file after the verification is successful.

Optionally, the signature file includes file name information and length information of an upgrade program file, and after receiving the upgrade program file sent by the network management server, the method further includes:

and judging whether the file name and the length of the upgrading program file are the same as the file name information and the length information included in the signature file, if so, executing the step of reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file.

Optionally, the signature file includes length information of the upgrade program file, and after the signature file is successfully verified, the method further includes:

and distributing a storage space for the upgrading program file according to the length of the upgrading program file in the signature file.

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

and performing hash verification on the upgrading program file, and if the hash verification is successful, executing the step of reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file.

Optionally, if the logical device type and the physical device type do not match with the slave 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 upgrading according to the upgrading program file, the method further comprises:

and sending an upgrade success message to the network management server.

The embodiment of the invention also discloses a device upgrading method, which is applied to a network management server in a video network, wherein the video network comprises the network management server and a plurality of sub-control servers, and the method comprises the following steps:

acquiring an upgrading program file aiming at a sub-control server to be upgraded;

reading a logic device type and a physical device type corresponding to the upgrading program file from the upgrading program file;

judging whether the type of the logic equipment and the type of the physical equipment are matched with the sub-control server to be upgraded;

and if the upgrade program files are matched with the upgrade program files, the upgrade program files are sent to the sub-control servers to be upgraded, so that the sub-control servers to be upgraded are upgraded according to the upgrade program files.

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

sending a signature file to a sub-control server to be upgraded so that the sub-control server to be upgraded verifies the signature file, and returning a signature of the sub-control server to be upgraded after the verification is successful;

and verifying the signature of the sub-control server to be upgraded, and if the verification is successful, executing the step of acquiring the upgrading program file aiming at the sub-control server to be upgraded.

Optionally, the video network further includes an autonomous server, and the sending the upgrade program file to the sub-control server to be upgraded includes:

and sending the upgrading program file to an autonomous server so that the autonomous server sends the upgrading program file to the sub-control server to be upgraded through a video telephone service.

Optionally, if it is determined that the logical device type and the physical device type are not matched with the sub-control server to be upgraded, the method further includes:

an error log is generated and stored.

Optionally, the method further includes:

and if any new sub-control server accessed to the video network is detected, returning the corresponding logic device type and physical device type to the new sub-control server accessed to the video network.

The embodiment of the invention also discloses a device for upgrading equipment, which is applied to the sub-control servers in the video network, wherein the video network comprises a network management server and a plurality of sub-control servers, and the device comprises:

the receiving module is used for receiving the upgrading program file sent by the network management server;

the reading module is used for reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file;

the judging module is used for judging whether the logic equipment type and the physical equipment type are matched with the sub-control server or not;

and the upgrading module is used for upgrading according to the upgrading program file if the upgrading program file is matched with the upgrading program file.

The embodiment of the invention also discloses a device for upgrading equipment, which is applied to a network management server in a video network, wherein the video network comprises the network management server and a plurality of sub-control servers, and the device comprises:

the acquisition module is used for acquiring an upgrading program file aiming at the sub-control server to be upgraded;

the reading module is used for reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file;

the judging module is used for judging whether the logic equipment type and the physical equipment type are matched with the sub-control server to be upgraded;

and the sending module is used for sending the upgrading program file to the sub-control server to be upgraded if the upgrading program file is matched with the sub-control server to be upgraded so that the sub-control server to be upgraded is upgraded according to the upgrading program file.

The embodiment of the invention also discloses equipment upgrading equipment, which comprises:

one or more processors; and

one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the device to perform any of the device upgrade methods described above.

The embodiment of the invention also discloses a computer readable storage medium, and a stored computer program enables a processor to execute any one of the equipment upgrading methods.

The embodiment of the invention has the following advantages:

the embodiment of the invention applies the characteristics of the video network, the network management server can obtain an upgrading program file aiming at the sub-control server to be upgraded, then reads the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file, judges whether the logic device type and the physical device type are matched with the sub-control server to be upgraded, if so, sends the upgrading program file to the sub-control server to be upgraded, so that the sub-control server to be upgraded reads the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file, judges whether the logic device type and the physical device type are matched with the sub-control server to be upgraded, and if so, upgrades the sub-control server according to the upgrading program file.

That is to say, the upgrading program file comprises the logic device type and the physical device type of the sub-control server to be upgraded, so that the network management server and the sub-control server can verify the upgrading program file according to the logic device type and the physical device type, and the sub-control server can be upgraded only under the condition that the logic device type and the physical device type in the upgrading program file are matched with the sub-control server receiving the upgrading program file, so that the possibility that the video networking device is upgraded according to the wrong upgrading program file and further the video networking fault is caused can be reduced, and the upgrading safety of the video networking device is improved.

Drawings

FIG. 1 is a schematic diagram of a view network;

FIG. 2 is a flow chart of a method of device upgrade of the present invention;

FIG. 3 is a flow chart of another method of device upgrade of the present invention;

FIG. 4 is a system architecture diagram in a video network of the present invention;

FIG. 5 is a block diagram of an equipment upgrade apparatus of the present invention;

fig. 6 is a block diagram of another device upgrade apparatus of the present invention.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.

As shown in fig. 1, it is a schematic structural diagram of a video network, wherein the overall network structure of the video network is formed by connecting a plurality of substructures called autonomous clouds. Autonomous clouds exhibit a distinct hierarchical structure when interconnected: each autonomous cloud can be connected with a plurality of autonomous clouds on the next layer from the top autonomous cloud, the autonomous clouds on the lower layer are connected with the autonomous clouds on the next layer, and the all the autonomous clouds are connected layer by layer in the mode to form a complete video network. This hierarchy is a standard tree structure. Each autonomous cloud is a node in the tree, and the whole video network is a tree formed by the nodes of the autonomous clouds.

At present, in the video network, the video network server corresponding to each upgrade program file can only be distinguished by the file name of the upgrade program file, and this method has great hidden danger and low security, and once the file name of the upgrade program file is tampered or confused, an event that the upgrade package of the S6 server is upgraded to the S3 server is likely to occur, so that the upgrade of the video network server fails, and even the video network fails.

In order to solve the technical problem, embodiments of the present invention provide a device upgrading method, apparatus, device and readable storage medium.

As shown in fig. 2, an embodiment of the present invention provides an apparatus upgrading method, which is applied to a sub-control server in a video network, where the video network includes a network management server and a plurality of sub-control servers, and the method specifically includes the following steps:

s101: and receiving an upgrading program file sent by the network management server.

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

The VPKG format is a package file format, the package file can be used for storing various formatted information, the data is stored and represented by adopting a text format completely independent of a programming language, the hierarchical structure is simple and clear, the reading and the writing are easy, and the machine analysis and the generation are easy at the same time, so that the network transmission efficiency can be effectively improved.

As shown in table 1, the VPKG format of the upgrade program file is shown.

Table 1 VPKG format of upgrade program file

Field(s) Length of Description of the invention
Constant value 4 bytes The value being the character "VPKG"
Upgrade procedureOrder document Length of indefinite length Program for updating specific device

Besides the constant value, other information of the upgrade program file is defined in an element mode, and each element is composed of three parts of type, length and data. The type part of the element is used for distinguishing the format of the data part, the length part represents the number of bytes of the data part, and the data part is the content actually stored by the element.

Specifically, the type part of the element is 1 byte in length, and its definition and corresponding data part format are shown in table 2 below.

Table 2 definition of element types and corresponding data part formats

The object type and the data part are composed of a plurality of element pairs, and nesting of elements is achieved. Each pair of elements may represent a pair of key and value. The type of the 1 st element can only be "string" for representing the key of the element pair. The type of the 2 nd element is arbitrary and is used to indicate the value of the element pair. "byte string," this type is used to store binary data of any byte length. "string," store UTF8 characters. The "numeric string" stores numeric values in the form of a character string. This ensures that no information is lost, but increases storage space. "Special value", three values defined in the type, "null", "false", "true" type, and other special values may be defined if necessary.

The length part format of the element is shown in table 3.

Length part format of table 3 elements

The format of the upgrade program file may be:

“dev_app_file”:{

"logdev _ type": string: the logical device type ",

"phydev _ type": string: the physical device type ",

"file _ id": string of numbers: the file sequence number,

"file _ format": the file format,

"file _ version": the file version number ",

"file _ length": string of numbers: the length of the file,

"file _ time": string: the file time,

"file _ hash" object: verification data "

"file _ name": string: the name of the file,

"file _ data": document data "

}

Wherein, the file _ data is a byte string for storing the real sub-control server upgrading program. The combinations of the logical device type, the physical device type, the file serial number, and the file format of the currently supported slave servers are shown in table 4.

Table 4 information correspondence table between character string and slave control server

The file version number formats are unified as "a.b.c yy.mm.dd.hh", where YY represents the last two digits of a year, MM represents month, DD represents date, hh represents hour, represents release date. A.b.c denotes a specific version, such as 1.2.7, etc. The file time is the modification time of the file and is in a format of YYYY-MM-DD hh: MM: ss. Where YYYY represents year, MM represents month, DD represents date, hh represents hour, MM represents minute, and ss represents second.

In the embodiment of the invention, the sub-control server receives the signature file sent by the network management server before receiving the upgrading program file sent by the network management server, 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 verifies the signature of the sub-control server, and the upgrading program file is sent after the verification is successful.

Therefore, the identity authentication between the control server and the network management server can be realized, and the possibility of transmission errors of the upgrade program file is further reduced.

In one implementation, the signature file includes filename information and length information of the upgrade program file, that is, after the sub-control server successfully verifies the signature file, filename information and length information of the upgrade program file are obtained, which is beneficial to further verifying the received upgrade program file and reducing the possibility that the sub-control server upgrades the upgrade program file according to the wrong upgrade program file. The type of the signature algorithm may be the national secret "sm 2".

Moreover, under the condition that the signature file comprises the length information of the upgrading program file, the sub-control server can allocate a storage space for the upgrading program file according to the length of the upgrading program file in the signature file after the signature file is successfully verified.

Therefore, the utilization rate of system resources can be improved, redundant allocation is reduced, the effect of verifying the received upgrading program file can be achieved, and if the received upgrading program file is too large or too small, the upgrading program file is indicated to be wrong.

In the embodiment of the present invention, the signature file may also be encapsulated in VPKG format. As shown in table 5, the VPKG format of the signature file.

Table 5 VPKG format of signature file

Field(s) Length of Description of the invention
Constant value 4 bytes The value being the character "VPKG"
Signature file Length of indefinite length Verifying whether a particular document has been tampered with

The format of the signature file may be:

“file_signature”:{

"file _ name": string: the name of the file,

"file _ length": string: the length of the file,

"signature _ data": object: signature data "

}

“signature_data”:{

"type": string: the type of algorithm,

"data": byte string: the signature data,

}

in this step, after receiving the upgrade program file sent by the network management server, hash verification may be performed on the upgrade program file, and if the hash verification is successful, a step of reading the logical device type and the physical device type corresponding to the upgrade program file from the upgrade program file is performed.

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

The Hash verification is a set of verification system designed for ensuring the correctness of an upgrading program file, preventing some people from stealing programs, adding trojans or tampering copyrights. Specifically, each upgrade program file can calculate the MD5 code corresponding to the upgrade program file by using a Hash MD5 algorithm, the sending end can calculate and disclose the MD5 code of the upgrade program file in advance, after the receiving end receives the upgrade program file, the receiving end calculates the MD5 code of the received upgrade program file by using the same algorithm and compares the MD5 code with the MD5 code disclosed by the sending end, and if the two codes are different, the upgrade program file received by the receiving end is incomplete or is manually operated by others.

The hash verification algorithm types include two types, namely "md 5" and "sm 3", and the corresponding signature data formats are as follows:

“file_hash”:{

“type”:“md5”,

"hash": byte string: the hash value of the file,

}

“file_hash”:{

“type”:“sm3”,

"hash": byte string: the hash value of the file,

}

the file hash value is a hash value calculated by using a standard algorithm on a file, wherein the length of the file hash value in the MD5 algorithm is 16 bytes, and the length of the file hash value in the SM3 algorithm is 32 bytes.

S102: and reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file.

In an implementation manner, the signature file includes 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 judge 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 so, then execute a step of reading a logical device type and a physical device type corresponding to the upgrade program file from the upgrade program file.

Therefore, the received upgrading program file can be preliminarily verified according to the file name and the length of the upgrading program file, the verification efficiency is improved, and the possibility that the sub-control server upgrades according to the wrong upgrading program file is reduced.

S103: and judging whether the logic device type and the physical device type are matched with the sub-control server, and if so, executing S104.

In one implementation, if the logical device type and the physical device type are not matched with the sub-control server, the sub-control server may generate and store an error log, and send an upgrade error message to the network management server. Therefore, the network management server can monitor the equipment upgrading process in time, timely solve the problems and improve the equipment upgrading efficiency.

S104: and upgrading according to the upgrading program file.

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.

As can be seen from the above, the device upgrading method provided in the embodiment of the present invention includes the logic device type and the physical device type of the sub-control server to be upgraded in the upgrade program file, so that the network management server and the sub-control server can verify the upgrade program file according to the logic device type and the physical device type, and the sub-control server can only upgrade if the logic device type and the physical device type in the upgrade program file are matched with the sub-control server that receives the upgrade program file, so that the possibility of upgrading the video networking device according to the wrong upgrade program file, which may cause a video networking failure, can be reduced, and the security of upgrading the video networking device can be improved.

As shown in fig. 3, another device upgrading method is further provided in the embodiments of the present invention, and is applied to a network management server in a video network, where the video network includes the network management server and a plurality of sub-control servers, and the method specifically includes the following steps:

s201: and acquiring an upgrading program file aiming at the sub-control server to be upgraded.

In the embodiment of the invention, before the upgrading program file for the sub-control server to be upgraded is obtained, the network management server can firstly send 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 the verification is successful, then the signature of the sub-control server to be upgraded is verified, and if the verification is successful, the step of obtaining the upgrading program file for the sub-control server to be upgraded is executed.

Therefore, the identity authentication between the control server and the network management server can be realized, and the possibility of transmission errors of the upgrade program file is further reduced.

The upgrade program file and the signature file can be obtained by the network management server from the network management client, and the network management client can interact with the user to obtain the input information of the user.

In addition, if the network management server detects any new sub-control server accessed to the video network, the corresponding logical device type and physical device type can be returned to the sub-control server newly accessed to the video network. In this way, the network management server can store the logical device type and the physical device type of each sub-control server in the video network, and each sub-control server can determine the logical device type and the physical device type of the sub-control server.

S202: and reading the logic device type and the physical device type corresponding to the upgrading program file from the upgrading program file.

S203: and judging whether the logic equipment type and the physical equipment type are matched with the sub-control server to be upgraded, and if so, executing S204.

In one implementation, if the logical device type and the physical device type are judged not to match with the sub-control server to be upgraded, the network management server may generate and store an error log. Therefore, the network management server can monitor the equipment upgrading process in time and is favorable for communicating with the user through the network management client, so that the problems are solved in time and the equipment upgrading efficiency is improved.

S204: and sending the upgrading program file to the sub-control server to be upgraded so that the sub-control server to be upgraded is upgraded according to the upgrading program file.

In one implementation mode, the video network further comprises an autonomous server, and the network management server can firstly send the upgrading program file to the autonomous server, and then the autonomous server sends the upgrading program file to the sub-control server to be upgraded through the video telephone service.

As shown in fig. 4, the system architecture diagram in the video network is shown, where the system architecture diagram includes a network management client, a network management server, autonomous servers, and sub-control servers, a user can upload a signature file and an 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, each autonomous server can manage at least one sub-control server, and the sub-control servers are used to manage video network terminals, such as various conference set-top boxes, video phone set-top boxes, surgical trial teaching set-top boxes, streaming media gateways, storage gateways, media synthesizers, and other devices.

As can be seen from the above, the device upgrading method provided in the embodiment of the present invention includes the logic device type and the physical device type of the sub-control server to be upgraded in the upgrade program file, so that the network management server and the sub-control server can verify the upgrade program file according to the logic device type and the physical device type, and the sub-control server can only upgrade if the logic device type and the physical device type in the upgrade program file are matched with the sub-control server that receives the upgrade program file, so that the possibility of upgrading the video networking device according to the wrong upgrade program file, which may cause a video networking failure, can be reduced, and the security of upgrading the video networking device can be improved.

It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.

As shown in fig. 5, an embodiment of the present invention further provides an apparatus for upgrading a device, where the apparatus is applied to a sub-control server in a video network, where the video network includes a network management server and a plurality of sub-control servers, and the apparatus includes:

a receiving module 501, configured to receive an upgrade program file sent by the network management server;

a reading module 502, configured to read a logic device type and a physical device type corresponding to the upgrade program file from the upgrade program file;

a judging module 503, configured to judge whether the logical device type and the physical device type are matched with the sub-control server;

and the upgrading module 504 is configured to, if the update program file matches the update program file, upgrade the update program file according to the update program file.

As can be seen from the above, the device upgrading apparatus provided in the embodiment of the present invention includes the logic device type and the physical device type of the sub-control server to be upgraded in the upgrade program file, so that the network management server and the sub-control server can verify the upgrade program file according to the logic device type and the physical device type, and the sub-control server can only upgrade if the logic device type and the physical device type in the upgrade program file are matched with the sub-control server that receives the upgrade program file, so that the possibility of upgrading the video networking device according to the wrong upgrade program file, which may cause a video networking failure, can be reduced, and the security of upgrading the video networking device can be improved.

As shown in fig. 6, an embodiment of the present invention further provides another device upgrading apparatus, where the apparatus is applied to a network management server in a video network, where the video network includes the network management server and a plurality of sub-control servers, and the apparatus includes:

an obtaining module 601, configured to obtain an upgrade program file for a sub-control server to be upgraded;

a reading module 602, configured to read a logic device type and a physical device type corresponding to the upgrade program file from the upgrade program file;

a judging module 603, configured to judge whether the logic device type and the physical device type are matched with the sub-control server to be upgraded;

and a sending module 604, configured to send the upgrade program file to the to-be-upgraded sub-control server if the upgrade program file is matched with the sub-control server, so that the to-be-upgraded sub-control server performs upgrading according to the upgrade program file.

As can be seen from the above, the device upgrading apparatus provided in the embodiment of the present invention includes the logic device type and the physical device type of the sub-control server to be upgraded in the upgrade program file, so that the network management server and the sub-control server can verify the upgrade program file according to the logic device type and the physical device type, and the sub-control server can only upgrade if the logic device type and the physical device type in the upgrade program file are matched with the sub-control server that receives the upgrade program file, so that the possibility of upgrading the video networking device according to the wrong upgrade program file, which may cause a video networking failure, can be reduced, and the security of upgrading the video networking device can be improved.

For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.

The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

The method and the device for upgrading the equipment provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种单片机的自定义升级方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!