CN115348172B - Method, equipment and medium for upgrading versions of different parts of edge network equipment - Google Patents
Method, equipment and medium for upgrading versions of different parts of edge network equipment Download PDFInfo
- Publication number
- CN115348172B CN115348172B CN202210899676.3A CN202210899676A CN115348172B CN 115348172 B CN115348172 B CN 115348172B CN 202210899676 A CN202210899676 A CN 202210899676A CN 115348172 B CN115348172 B CN 115348172B
- Authority
- CN
- China
- Prior art keywords
- version
- equipment
- programs
- program
- upgrading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004590 computer program Methods 0.000 claims description 18
- 230000002427 irreversible effect Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 claims description 5
- 238000012163 sequencing technique Methods 0.000 claims description 4
- 238000009434 installation Methods 0.000 claims description 3
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 230000008901 benefit Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 241000700605 Viruses Species 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000000638 solvent extraction Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000000869 ion-assisted deposition Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method, equipment and medium for upgrading versions of different parts of edge network equipment, wherein the method sequentially comprises the following steps: forming version numbers which have a preset master-slave sequence and are automatically ordered based on modules at different parts of equipment corresponding to the custom elements; based on the equipment heartbeat and the equipment information automatically reported by the equipment, carrying out version difference analysis operation with the version number, judging whether the edge network equipment is in the range of the latest released version equipment list and meets the upgrading standard, and automatically matching upgrading programs compatible with modules at different parts when the two conditions are met at the same time; based on a preset master-slave sequence, automatically installing the matched upgrading programs corresponding to the modules at different positions in sequence, and restarting the programs after the programs are completely upgraded; and acquiring initialization data again, and reporting the heartbeat and the equipment information of the equipment. The application is used for synchronously or continuously upgrading the version programs of the modules at different positions in the same equipment, and has high working efficiency.
Description
Technical Field
The invention relates to the technical field of version upgrading of edge network equipment, in particular to a method, equipment and medium for upgrading versions of different parts of edge network equipment, which are used for synchronously or continuously upgrading version programs of modules of different parts in the same equipment.
Background
Edge network devices (EDGE DEVICE) refer primarily to switches, routers, routing switches, IADs, and various MAN/WAN devices installed on the edge network, such as the card machine in a hotel management system.
Updating and upgrading of version programs of the edge network devices are required periodically based on different scenes or other reasons.
Also taking a hotel's card machine as an example, according to different hardware or functions of the equipment, the card machine can have a plurality of master-slave position modules, such as a master equipment module, a card sender position module and a card receiving position module, at the same time. Because of the compatibility and priority between the version programs of the master and slave position modules, the conventional third party tool with automatic version algorithm and encryption algorithm is difficult to realize synchronous or continuous upgrade of different position modules on the same equipment, so that when a plurality of different position modules of the same equipment are required to be upgraded, the updating steps of the version programs are complex, the updating efficiency is low, and excessive human participation is caused, and huge economic and safety losses are possibly caused to countries, enterprises, users and individuals due to the problems of improper operation, illegal programs, malicious viruses, wrong version program interference, leakage of program source codes and the like.
Disclosure of Invention
The invention has the advantages that the method, the equipment and the medium for upgrading the versions of the different parts of the edge network equipment can realize the synchronous or continuous updating and upgrading of the version programs of the modules of the different parts on the same equipment, meanwhile, the main program and the secondary program can not be affected by the compatibility problem of mutual interference, the upgrading of the version programs of the modules of the different parts of the same equipment is effectively simplified, and the updating efficiency of the version programs is high.
The invention has the advantages that in the process of synchronously or continuously upgrading a plurality of different part modules, the method, the equipment and the medium for upgrading the versions of the different parts of the edge network equipment ensure that the different part modules are subjected to opposite and corresponding version program upgrading by carrying out single or multiple irreversible encryption and corresponding decryption verification on the program version download address, fully exert the characteristic of unified management control among a server, object storage, an edge network platform and the edge network equipment, effectively improve the safety of upgrading the program of the equipment version, and prevent illegal programs, virus programs or error versions from interfering and affecting the equipment.
To achieve at least one advantage of the present invention, in a first aspect, the present invention provides a method for upgrading versions of different parts of an edge network device, for synchronously or continuously upgrading version programs of different part modules in the same device, comprising the following steps in sequence:
S100, forming version numbers which have a preset master-slave sequence and are automatically ordered based on modules at different parts of equipment corresponding to the custom elements;
S200, based on the device heartbeat and the device information automatically reported by the device, carrying out version difference analysis operation with version numbers which have a preset master-slave sequence and are automatically ordered, judging whether the edge network device is in the range of a device list of the latest release version and meets the upgrading standard, and automatically matching upgrading programs compatible with modules at different parts when the two conditions are met;
s300, based on a preset master-slave sequence, automatically installing the matched upgrade programs of the modules corresponding to different parts in sequence, and restarting the programs after the complete upgrade of the programs;
S400, acquiring initialization data again, and reporting equipment heartbeat and equipment information.
According to an embodiment of the present invention, in step S100, the version number adopts an incremental naming rule, and is configured with a device name, a platform on which the device operates, a name of a device part module, a sequential priority, and an incremental specific version number, and adjacent version numbers are separated by a "-" number, where once the version number is generated, the version number cannot be deleted and rolled back.
According to an embodiment of the present invention, the steps between step S200 and step S300 further include the steps of:
S210, packaging upgrade programs of modules corresponding to different parts and automatically matching, uploading the upgrade programs to an object storage, and obtaining a program version download address by a server, wherein the object storage is pre-opened with a permissible cross-domain rule;
S220, carrying out single or multiple irreversible encryption on a program version downloading address of the packaged upgrading program at the server side, generating a first character string, adding a message header to the first character string, and sending the message header to the equipment;
And S230, after receiving the message request of the server, the equipment decrypts the request message parameters correspondingly, generates a second character string, compares the first character string with the second character string, verifies the first character string and the second character string, if the first character string and the second character string are the same, performs the step S300, and if the first character string and the second character string are not the same, does not process or reports the first character string and the second character string to the server for alarming.
In step S210, the ACCESSKEYID and secret are acquired in the object store and then encrypted over the ossSign interface according to one embodiment of the present invention.
According to an embodiment of the present invention, in step S220, the hash function-MD 5 algorithm encryption is first performed on the program version download address of the encapsulated upgrade program, and then RSA encryption is performed to generate the first string.
In step S210, according to an embodiment of the present invention, the upgrade procedure of the module corresponding to the different parts of the package automatic matching refers to: the service end automatically encapsulates the character strings formed by the upgrade programs of the modules at different positions based on a preset master-slave sequence to form an array abstract message for uploading to the object storage.
In step S200, according to an embodiment of the present invention, the automatic sorting in the version difference analysis operation is specifically:
separating version numbers of the modules at different positions to form version names and version numbers, comparing the version names and the version numbers in sections, and sequencing the version names and the version numbers according to the sequence of subscripts; for the character strings, the difference analysis is performed according to the ACSII code sequence, the priority of the lower case English letters is higher than the priority of the upper case English letters.
According to an embodiment of the present invention, in step S300, if the upgrade of some or all of the part modules fails, the version programs of all the part modules in the array are automatically rolled back among the different part modules that are automatically matched with the upgrade program.
In a second aspect, the present invention provides a computer device comprising: at least one processor; and a memory, wherein the memory stores a computer program capable of running on the processor, and when the computer program is executed by the processor, the method realizes the upgrade of different parts of the edge network device.
In a third aspect, the present invention also provides a computer readable storage medium storing a computer program which when executed by a computer or processor implements the method steps as described above.
These and other objects, features and advantages of the present invention will become more fully apparent from the following detailed description.
Drawings
Fig. 1 is a flow chart of a method for upgrading versions of different parts of an edge network device according to the present application.
Fig. 2 shows a schematic diagram of edge network device terminal deployment in the present application.
Fig. 3 shows a schematic diagram of an edge network device architecture of the present application.
Fig. 4 is a schematic diagram of a principle framework of a method for upgrading versions of different parts of an edge network device according to the present application.
Fig. 5 is a schematic structural diagram of a computer device with a method for upgrading versions of different parts of an edge network device according to the present application.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art. The basic principles of the invention defined in the following description may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It will be appreciated by those skilled in the art that in the disclosure of the present specification, the terms "longitudinal," "transverse," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," etc. refer to an orientation or positional relationship based on that shown in the drawings, which is merely for convenience of description and to simplify the description, and do not indicate or imply that the apparatus or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore, the above terms should not be construed as limiting the present invention.
It will be understood that the terms "a" and "an" should be interpreted as referring to "at least one" or "one or more," i.e., in one embodiment, the number of elements may be one, while in another embodiment, the number of elements may be plural, and the term "a" should not be interpreted as limiting the number.
The edge network device has a plurality of master-slave position modules according to different hardware or functions. Taking a hotel equipment room card machine as an example, a main equipment program and a secondary equipment program exist at the same time, wherein the main equipment program is a program on a room card machine equipment main body, and the secondary equipment program comprises a program on a card issuing part module and a program on a card receiving part module. For upgrading the version program of the edge network equipment, in general, each part module is upgraded in turn according to a conventional means, the upgrading operation is complex, the upgrading efficiency is low, and how to realize synchronous upgrading or continuous upgrading of a plurality of master-slave part modules is realized, so that the upgrading operation of the edge network equipment is greatly simplified, and the upgrading efficiency of the version program of the plurality of part modules is greatly improved.
It should be noted that the foregoing "synchronous upgrade or continuous upgrade" refers to that the upgrade of the version programs of the plurality of location modules is implemented within a relatively short time range, and has a certain continuity, and the time required for the upgrade is substantially equal to the upgrade time of one location module, so that a significant difference is formed between the upgrade time and the upgrade time of the conventional version program, and thus the upgrade operation of the version program of the edge network device with the plurality of location modules is greatly simplified, and the upgrade efficiency of the version programs of the plurality of location modules is improved.
Referring to fig. 1 to 4, a method for upgrading versions of different parts of an edge network device according to a preferred embodiment of the present invention will be described in detail below, wherein the method for upgrading versions of different parts of an edge network device is used for synchronously or continuously upgrading version programs of different part modules in the same device, and sequentially includes the following steps:
S100, forming version numbers which have a preset master-slave sequence and are automatically ordered based on modules at different parts of equipment corresponding to the custom elements; taking a room card machine in hotel equipment as an example, the different part modules comprise an equipment main body module, a card issuing part module and a card receiving part module, wherein the equipment main body module is a main program, the card issuing part module and the card receiving part module are secondary programs, so that a master-slave sequence taking the equipment main body module as the main part, the card issuing part module and the card receiving part module as the secondary parts is formed, when all the equipment needs to be upgraded, the main program is taken as a program for upgrading preferentially, the priorities are preset among the secondary programs, and then the upgrading sequence with the preset arrangement sequence is formed, and the hierarchical configuration of pictures in ppt is similar.
In addition, in some embodiments, the naming convention for version numbers employs an incremental naming convention and is configured with specific version numbers including product or device name (e.g., a house card), platform on which the device is running (e.g., windows), device site module name, order priority, and increment, with separation between neighbors using "-" numbers, and once version numbers are generated, the version numbers cannot be deleted and rolled back, and the content cannot be modified to replace the distribution installer, any modification must create a new version for reissue.
The version number includes a version name portion and a version number portion, wherein the version name portion is a name preceding an incremental specific version number, and the version number is unstable as an incremental specific version number. The version name part must be english letters and cannot contain special numbers and special symbols, while the version number part must be a non-negative arabic number and must not contain leading zeros, while the arabic number must be incremented and must not coincide with or decrement the old version number.
It should be further noted that, the predetermined master-slave sequence refers to the sequence of the version programs of different location modules during installation, and the automatic sequencing refers to named incremental sequencing of the version numbers of a specific location module, so as to distinguish whether the version program of the location module is the latest version program or not, and whether the version program needs to be upgraded or not.
S200, based on equipment heartbeat and equipment information automatically reported by equipment, ensuring the online of the equipment, acquiring the current state, program version and firmware version of the equipment, carrying out version difference analysis operation on version numbers which have a preset master-slave sequence and are automatically ordered, judging whether edge network equipment is in the range of an equipment list of the latest release version and whether upgrading standards are met, and automatically matching upgrading programs compatible with modules at different parts when the two conditions are met;
The version number consists of several parts: major, minor, and minor versions. When operating through the version difference analysis, one-to-one judgment criteria should be met, namely, large version and large version comparison, secondary version and secondary version comparison, small version and small version comparison. The core algorithm should be a composition that separates the parts of the version good, thereby producing the results of the version difference analysis according to the algorithm.
If large version 2> large version 1 returns pass;
If large version 2< large version 1 returns failed;
And otherwise, the process returns to continue.
For example: zhqt _android_NORMAL_PUBLIC_ALL_TYPE_v1.2.1
In one embodiment, the automatic sorting in the version difference analysis operation is specifically:
versions are first partitioned, and the partitioning strategy is that the version names and version numbers are separated to form a partitioned boundary, so that the purpose of the partitioning is to enable segment comparison. The comparison priorities are naturally arranged in the order of the subscripts, with the first being the highest priority, and thus decreasing.
If the character string is compared with the character string, performing difference analysis according to the ACSII code sequence, wherein the lower-case English letters are ranked at the back and have higher priority than the upper-case English letters.
For example:
Lumous<lumous
0>Lumous
1>0
the program must define the components of the version number before performing the version difference analysis.
S300, based on a preset master-slave sequence, automatically installing the matched upgrade programs of the modules corresponding to different parts in sequence, and restarting the programs after the complete upgrade of the programs;
In one embodiment, in different part modules automatically matched with the upgrade program, if upgrade of part or all part modules fails, the version program of all part modules in the array is automatically rolled back
S400, acquiring initialization data again, and reporting equipment heartbeat and equipment information at fixed time through an Internet communication protocol.
In one embodiment, the steps between step S200 and step S300 further include the steps of:
S210, packaging upgrade programs of modules corresponding to different parts and automatically matching, uploading the upgrade programs to an object storage, and obtaining a program version download address by a server, wherein the object storage is pre-opened with a permissible cross-domain rule;
S220, carrying out single or multiple irreversible encryption on a program version downloading address of the packaged upgrading program at the server side to generate a first character string, adding a message header to the first character string to form an encrypted message with a verification code, and sending the encrypted message to the equipment;
And S230, pushing the message of the server to the equipment terminal through an HTTP/2 channel by the edge network platform, after receiving the message request of the server, carrying out corresponding decryption on the request message parameters by the equipment to generate a second character string, comparing the first character string with the second character string, verifying whether the program resource and the check code acquired by the equipment are consistent or the same with the program resource and the check code transmitted by the server, if so, considering that the normal request is transmitted by the server, the program version is legal, directly carrying out step S300, transmitting the program to a control part of the edge network equipment, updating version programs for different part modules according to the installation sequence, if not, judging as a malicious request, and not processing or reporting to the server for alarming.
That is, in the version control, the program is encrypted and the correctness of the version is checked, only the program with the correct verification can be loaded to the edge network device to update the program, and the edge network device can be controlled in a multi-part module, different programs and different versions according to a preset master-slave sequence without interference and influence on the edge network device due to illegal programs, virus programs or error versions.
Preferably, in step S210, ACCESSKEYID and secret are acquired in the object store and then encrypted through ossSign interface.
Preferably, in step S220, the hash function-MD 5 algorithm encryption is first performed on the program version download address of the encapsulated upgrade program, then RSA encryption is performed, and double irreversible encryption is performed to improve the security level of the version program to be upgraded, so as to generate the first string. Hash (Hash), also known as Hash, is the transformation of an input of arbitrary length into an output of fixed length, the output value being the Hash value, by a hashing algorithm. The MD5 message digest algorithm is a widely used cryptographic hash function that produces a 128 bit (16 byte) hash value to ensure that the message is transmitted completely consistent.
Preferably, in step S210, the upgrade procedure of the module corresponding to the different parts of the automatic matching is encapsulated, which means: the service end automatically encapsulates the character strings formed by the upgrade programs of the modules at different positions based on a preset master-slave sequence to form an array abstract message for uploading to the object storage.
In a second aspect, the present invention provides a computer device, in combination with fig. 5, comprising: at least one processor; and a memory, wherein the memory stores a computer program capable of running on the processor, and when the computer program is executed by the processor, the method realizes the upgrade of different parts of the edge network device.
In a third aspect, the present invention also provides a computer readable storage medium storing a computer program which when executed by a computer or processor implements the method steps as described above.
The embodiments of the intelligent terminal and the computer readable storage medium provided by the application can include all technical features of any one of the above method step embodiments, and the expansion and explanation contents of the description are basically the same as those of each embodiment of the above method, and are not repeated here.
Embodiments of the present application also provide a computer program product, wherein the computer program product comprises computer program code for enabling a computer to carry out the method in the various possible embodiments described above, when the computer program code is run on a computer.
The embodiment of the application also provides a chip, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory, so that the device provided with the chip can execute the method in the various possible implementation manners.
It can be understood that the above scenario is merely an example, and does not constitute a limitation on the application scenario of the technical solution provided by the embodiment of the present application, and the technical solution of the present application may also be applied to other scenarios. For example, as one of ordinary skill in the art can know, with the evolution of the system architecture and the appearance of new service scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
In the present application, the same or similar term concept, technical solution and/or application scenario description will be generally described in detail only when first appearing and then repeatedly appearing, and for brevity, the description will not be repeated generally, and in understanding the present application technical solution and the like, reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution and/or application scenario description and the like which are not described in detail later.
In the present application, the descriptions of the embodiments are emphasized, and the details or descriptions of the other embodiments may be referred to.
The technical features of the technical scheme of the application can be arbitrarily combined, and all possible combinations of the technical features in the above embodiment are not described for the sake of brevity, however, as long as there is no contradiction between the combinations of the technical features, the application shall be considered as the scope of the description of the application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, iPad, computer, server, controlled terminal, or network device, etc.) to perform the method of each embodiment of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, storage disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state storage disk Solid STATE DISK (SSD)), etc.
It will be appreciated by persons skilled in the art that the embodiments of the invention described above and shown in the drawings are by way of example only and are not limiting. The advantages of the present invention have been fully and effectively realized. The functional and structural principles of the present invention have been shown and described in the examples and embodiments of the invention may be modified or practiced without departing from the principles described.
It should be noted that the terms "first" and "second" are used for descriptive purposes only, and are not meant to indicate any order, but are not to be construed as indicating or implying any relative importance, and such terms are to be construed as names.
It will be appreciated by persons skilled in the art that the embodiments of the invention described above and shown in the drawings are by way of example only and are not limiting. The advantages of the present invention have been fully and effectively realized. The functional and structural principles of the present invention have been shown and described in the examples and embodiments of the invention may be modified or practiced without departing from the principles described.
Claims (10)
1. The method for upgrading versions of different parts of edge network equipment is used for synchronously or continuously upgrading version programs of different part modules in the same hotel room card machine equipment and is characterized by comprising the following steps in sequence:
s100, forming version numbers which have a preset master-slave sequence and are automatically ordered based on different position modules of the equipment corresponding to the custom elements, wherein the preset master-slave sequence refers to the sequence of version programs of the different position modules during installation, and the automatic ordering refers to named incremental ordering of the version numbers of a specific position module so as to judge whether the version program of the position module is the latest version program or not and whether the version program needs to be updated or not;
S200, based on equipment heartbeat and equipment information automatically reported by equipment, ensuring the online state of the equipment, acquiring a program version and a firmware version of the equipment, carrying out version difference analysis operation with a version number which has a preset master-slave sequence and is automatically ordered, judging whether edge network equipment is in the range of an equipment list of the latest release version and whether the edge network equipment reaches an upgrade standard, and automatically matching upgrade programs compatible with different part modules when the two conditions are met simultaneously, wherein the different part modules comprise a hotel room card machine main body module, a card issuing part module and a card collecting part module, when the different part modules all need to be upgraded, carrying out priority upgrade by taking the hotel room card machine main body module as a main program, carrying out subsequent upgrade by taking the card issuing part module and the card collecting part module as secondary programs, namely upgrading the main program firstly, upgrading the secondary programs secondly, and presetting priorities among the plurality of secondary programs, thereby forming an upgrade sequence with a preset arrangement sequence;
s300, based on a preset master-slave sequence, automatically installing the matched upgrade programs of the modules corresponding to different parts in sequence, and restarting the programs after the complete upgrade of the programs;
S400, acquiring initialization data again, and reporting equipment heartbeat and equipment information.
2. The method of claim 1, wherein in step S100, the version numbers adopt incremental naming rules, and are configured with device names, platforms on which the devices operate, names of device part modules, sequential priorities, and incremental specific version numbers, and adjacent versions are separated by "-" numbers, and the version numbers once generated cannot be deleted and rolled back.
3. The method for upgrading versions of different parts of an edge network device according to claim 2, further comprising the steps of, in order between step S200 and step S300:
S210, packaging upgrade programs of modules corresponding to different parts and automatically matching, uploading the upgrade programs to an object storage, and obtaining a program version download address by a server, wherein the object storage is pre-opened with a permissible cross-domain rule;
S220, carrying out single or multiple irreversible encryption on a program version downloading address of the packaged upgrading program at the server side, generating a first character string, adding a message header to the first character string, and sending the message header to the equipment;
And S230, after receiving the message request of the server, the equipment decrypts the request message parameters correspondingly, generates a second character string, compares the first character string with the second character string, verifies the first character string and the second character string, if the first character string and the second character string are the same, performs the step S300, and if the first character string and the second character string are not the same, does not process or reports the first character string and the second character string to the server for alarming.
4. A method for upgrading versions of different parts of an edge network device according to claim 3, wherein in step S210, the object store is obtained ACCESSKEYID and secret, and then encrypted through ossSign interface.
5. The method for upgrading versions of different parts of an edge network device according to claim 3 or 4, wherein in step S220, the hash function-MD 5 algorithm encryption is first performed on the program version download address of the encapsulated upgrade program, and then RSA encryption is performed to generate the first string.
6. The method for upgrading different part versions of an edge network device according to claim 5, wherein in step S210, an upgrade program of a corresponding different part module that is automatically matched is encapsulated, which means that: the service end automatically encapsulates the character strings formed by the upgrade programs of the modules at different positions based on a preset master-slave sequence to form an array abstract message for uploading to the object storage.
7. The method for upgrading versions of different parts of an edge network device according to claim 6, wherein in step S200, the automatic ordering in the version difference analysis operation is specifically:
separating version numbers of the modules at different positions to form version names and version numbers, comparing the version names and the version numbers in sections, and sequencing the version names and the version numbers according to the sequence of subscripts; for the character strings, the difference analysis is performed according to the ACSII code sequence, the priority of the lower case English letters is higher than the priority of the upper case English letters.
8. The method of claim 6, wherein in step S300, if the upgrade of some or all of the different part modules automatically matched with the upgrade program fails, the version programs of all the part modules in the array are automatically rolled back.
9. A computer device, comprising:
at least one processor; and
A memory storing a computer program executable on the processor, wherein the processor, when executing the program, performs the steps of the method for upgrading versions of different locations of an edge network device according to any of claims 1-8.
10. A computer readable storage medium storing a computer program, wherein the computer program, when executed by a computer or a processor, performs the steps of the method for upgrading versions of different locations of an edge network device according to any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210899676.3A CN115348172B (en) | 2022-07-28 | 2022-07-28 | Method, equipment and medium for upgrading versions of different parts of edge network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210899676.3A CN115348172B (en) | 2022-07-28 | 2022-07-28 | Method, equipment and medium for upgrading versions of different parts of edge network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115348172A CN115348172A (en) | 2022-11-15 |
CN115348172B true CN115348172B (en) | 2024-05-14 |
Family
ID=83949155
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210899676.3A Active CN115348172B (en) | 2022-07-28 | 2022-07-28 | Method, equipment and medium for upgrading versions of different parts of edge network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115348172B (en) |
Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262544A (en) * | 2010-05-24 | 2011-11-30 | 腾讯科技(深圳)有限公司 | Method and device for upgrading software |
CN104301395A (en) * | 2014-09-25 | 2015-01-21 | 深圳市同洲电子股份有限公司 | Method, electronic equipment and system for upgrading devices automatically |
WO2015158120A1 (en) * | 2014-04-18 | 2015-10-22 | 中兴通讯股份有限公司 | Method and apparatus for upgrading software version |
CN105591824A (en) * | 2016-01-14 | 2016-05-18 | 杭州赫智电子科技有限公司 | Method and system for firmware upgrade |
CN105653262A (en) * | 2015-12-21 | 2016-06-08 | Tcl集团股份有限公司 | Application program upgrade method, device and system |
CN107580071A (en) * | 2017-09-28 | 2018-01-12 | 美的智慧家居科技有限公司 | Master-slave equipment upgrade method, device and its equipment |
WO2018041061A1 (en) * | 2016-08-29 | 2018-03-08 | 深圳市中兴微电子技术有限公司 | Onboard device upgrade method, device, system and computer storage medium |
CN108491222A (en) * | 2018-03-27 | 2018-09-04 | 青岛海信智慧家居系统股份有限公司 | Gateway device upgrade method, device, gateway device and storage medium |
CN108958772A (en) * | 2018-07-03 | 2018-12-07 | 武汉精测电子集团股份有限公司 | A kind of batch upgrading method and system of more board equipment |
CN110032382A (en) * | 2019-03-25 | 2019-07-19 | 深圳猛犸电动科技有限公司 | A kind of vehicle electronic control unit upgrade method, system and terminal device |
CN111142917A (en) * | 2019-12-18 | 2020-05-12 | 广东美的厨房电器制造有限公司 | Household appliance multi-MCU system online upgrading method, electronic equipment and medium |
CN111367544A (en) * | 2018-12-26 | 2020-07-03 | 美的集团股份有限公司 | Multi-peripheral firmware upgrade control method, intelligent device, firmware and electronic device |
CN111769962A (en) * | 2019-04-01 | 2020-10-13 | 成都启英泰伦科技有限公司 | MCU firmware OTA upgrading method |
CN112130877A (en) * | 2020-09-08 | 2020-12-25 | 深圳市共进电子股份有限公司 | Router firmware upgrading method and device, router and readable storage medium |
WO2021008184A1 (en) * | 2019-07-18 | 2021-01-21 | 南京依维柯汽车有限公司 | Remote upgrading system and upgrading method for fota firmware on new energy automobile |
CN113238780A (en) * | 2021-05-25 | 2021-08-10 | 西安万像电子科技有限公司 | Upgrading method and equipment of cloud server and cloud server |
CN113238791A (en) * | 2021-05-19 | 2021-08-10 | 上海艾拉比智能科技有限公司 | OTA differential upgrading method and system of master-slave architecture |
CN113703804A (en) * | 2021-07-30 | 2021-11-26 | 苏州浪潮智能科技有限公司 | System upgrading method, system, device and storage medium |
CN113805929A (en) * | 2021-08-12 | 2021-12-17 | 惠州Tcl移动通信有限公司 | Real-time system FOTA upgrading method based on Bluetooth transmission and related equipment |
CN114125000A (en) * | 2021-11-15 | 2022-03-01 | 深圳市元征科技股份有限公司 | Vehicle ECU upgrading method and device, electronic equipment and storage medium |
CN114253568A (en) * | 2020-09-21 | 2022-03-29 | 北京海博思创科技股份有限公司 | Application program upgrading method, device and equipment |
CN114489737A (en) * | 2022-02-25 | 2022-05-13 | 上海银基信息安全技术股份有限公司 | Multi-firmware OTA (over the air) upgrading method and device, server and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6966058B2 (en) * | 2002-06-12 | 2005-11-15 | Agami Systems, Inc. | System and method for managing software upgrades in a distributed computing system |
US8572597B2 (en) * | 2003-06-20 | 2013-10-29 | Samsung Electronics Co., Ltd. | Apparatus and method for performing an over-the-air software update in a dual processor mobile station |
-
2022
- 2022-07-28 CN CN202210899676.3A patent/CN115348172B/en active Active
Patent Citations (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262544A (en) * | 2010-05-24 | 2011-11-30 | 腾讯科技(深圳)有限公司 | Method and device for upgrading software |
WO2015158120A1 (en) * | 2014-04-18 | 2015-10-22 | 中兴通讯股份有限公司 | Method and apparatus for upgrading software version |
CN104301395A (en) * | 2014-09-25 | 2015-01-21 | 深圳市同洲电子股份有限公司 | Method, electronic equipment and system for upgrading devices automatically |
CN105653262A (en) * | 2015-12-21 | 2016-06-08 | Tcl集团股份有限公司 | Application program upgrade method, device and system |
CN105591824A (en) * | 2016-01-14 | 2016-05-18 | 杭州赫智电子科技有限公司 | Method and system for firmware upgrade |
WO2018041061A1 (en) * | 2016-08-29 | 2018-03-08 | 深圳市中兴微电子技术有限公司 | Onboard device upgrade method, device, system and computer storage medium |
CN107580071A (en) * | 2017-09-28 | 2018-01-12 | 美的智慧家居科技有限公司 | Master-slave equipment upgrade method, device and its equipment |
CN108491222A (en) * | 2018-03-27 | 2018-09-04 | 青岛海信智慧家居系统股份有限公司 | Gateway device upgrade method, device, gateway device and storage medium |
CN108958772A (en) * | 2018-07-03 | 2018-12-07 | 武汉精测电子集团股份有限公司 | A kind of batch upgrading method and system of more board equipment |
CN111367544A (en) * | 2018-12-26 | 2020-07-03 | 美的集团股份有限公司 | Multi-peripheral firmware upgrade control method, intelligent device, firmware and electronic device |
CN110032382A (en) * | 2019-03-25 | 2019-07-19 | 深圳猛犸电动科技有限公司 | A kind of vehicle electronic control unit upgrade method, system and terminal device |
CN111769962A (en) * | 2019-04-01 | 2020-10-13 | 成都启英泰伦科技有限公司 | MCU firmware OTA upgrading method |
WO2021008184A1 (en) * | 2019-07-18 | 2021-01-21 | 南京依维柯汽车有限公司 | Remote upgrading system and upgrading method for fota firmware on new energy automobile |
CN111142917A (en) * | 2019-12-18 | 2020-05-12 | 广东美的厨房电器制造有限公司 | Household appliance multi-MCU system online upgrading method, electronic equipment and medium |
WO2021120887A1 (en) * | 2019-12-18 | 2021-06-24 | 广东美的厨房电器制造有限公司 | Online upgrade method for household appliance multi-mcu system, electronic device, and medium |
CN112130877A (en) * | 2020-09-08 | 2020-12-25 | 深圳市共进电子股份有限公司 | Router firmware upgrading method and device, router and readable storage medium |
CN114253568A (en) * | 2020-09-21 | 2022-03-29 | 北京海博思创科技股份有限公司 | Application program upgrading method, device and equipment |
CN113238791A (en) * | 2021-05-19 | 2021-08-10 | 上海艾拉比智能科技有限公司 | OTA differential upgrading method and system of master-slave architecture |
CN113238780A (en) * | 2021-05-25 | 2021-08-10 | 西安万像电子科技有限公司 | Upgrading method and equipment of cloud server and cloud server |
CN113703804A (en) * | 2021-07-30 | 2021-11-26 | 苏州浪潮智能科技有限公司 | System upgrading method, system, device and storage medium |
CN113805929A (en) * | 2021-08-12 | 2021-12-17 | 惠州Tcl移动通信有限公司 | Real-time system FOTA upgrading method based on Bluetooth transmission and related equipment |
CN114125000A (en) * | 2021-11-15 | 2022-03-01 | 深圳市元征科技股份有限公司 | Vehicle ECU upgrading method and device, electronic equipment and storage medium |
CN114489737A (en) * | 2022-02-25 | 2022-05-13 | 上海银基信息安全技术股份有限公司 | Multi-firmware OTA (over the air) upgrading method and device, server and storage medium |
Non-Patent Citations (3)
Title |
---|
Michael C. Parker ; Richard Martin ; Stuart D. Walker ; Ward van Heddeghem ; Bart Lannoo.Energy-efficient master-slave edge-router upgrade paths in active remote nodes of next-generation optical access.2012 Asia Communications and Photonics Conference (ACP).2013,全文. * |
单核FPGA系统的可靠性远程升级设计;周琼;周鹏;;中国新通信(02);全文 * |
基于C/S模式的客户端软件自动升级设计与实现;贺晓春;;自动化与仪器仪表(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115348172A (en) | 2022-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112837160B (en) | Block chain-based cross-chain transaction method and device and computer-readable storage medium | |
CN106131612B (en) | The method and system of Android app dynamically load resource function module | |
CN113691597A (en) | Block chain contract deployment method, device, equipment and storage medium | |
CN110471692B (en) | Over-the-air upgrading method, device, equipment and storage medium of terminal program | |
CN109862099B (en) | Upgrade checking method, device, terminal and system | |
CN109391673A (en) | A kind of method, system and the terminal device of management update file | |
CN111865872B (en) | Method and equipment for realizing terminal security policy in network slice | |
EP4047493A1 (en) | Software integrity protection and verification method, and device | |
CN110138805B (en) | Equipment authentication method and device and computer readable storage medium | |
CN112632573B (en) | Intelligent contract execution method, device, system, storage medium and electronic equipment | |
CN110597918A (en) | Account management method and device and computer readable storage medium | |
CN111277592A (en) | Authentication method, authentication device, storage medium and computer equipment | |
WO2022257927A1 (en) | Key burning method and apparatus, electronic device board card, and storage medium | |
JP2017191965A (en) | Communication device and packet transmission/reception program | |
CN114095538B (en) | Bidirectional authentication method for OTA (over the air) upgrading of Internet of things equipment based on block chain technology | |
CN113448601B (en) | Software package installation method, device, equipment and system based on content distribution network | |
CN115412547A (en) | File uploading method and file uploading system | |
CN110808847A (en) | Method and device for managing DAS (data-based system), electronic device and storage medium | |
CN114238262A (en) | Image distribution method, image distribution device, electronic device, and storage medium | |
CN115879111A (en) | Method, device and system for safe starting | |
CN115348172B (en) | Method, equipment and medium for upgrading versions of different parts of edge network equipment | |
CN110768811B (en) | Method, device and system for updating YANG model file library | |
CN108881320B (en) | Authentication processing method for user login, server and client | |
CN111461718A (en) | Access method, device and system of block chain node | |
CN114882628B (en) | Data processing method and device, electronic equipment and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |