CN110134419B - System upgrading method, device, equipment and storage medium for double-sided cabinet - Google Patents

System upgrading method, device, equipment and storage medium for double-sided cabinet Download PDF

Info

Publication number
CN110134419B
CN110134419B CN201910419698.3A CN201910419698A CN110134419B CN 110134419 B CN110134419 B CN 110134419B CN 201910419698 A CN201910419698 A CN 201910419698A CN 110134419 B CN110134419 B CN 110134419B
Authority
CN
China
Prior art keywords
main control
control computer
cabinet
sub
upgrade package
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
Application number
CN201910419698.3A
Other languages
Chinese (zh)
Other versions
CN110134419A (en
Inventor
张睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Hive Box Technology Co Ltd
Original Assignee
Shenzhen Hive Box Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Hive Box Technology Co Ltd filed Critical Shenzhen Hive Box Technology Co Ltd
Priority to CN201910419698.3A priority Critical patent/CN110134419B/en
Publication of CN110134419A publication Critical patent/CN110134419A/en
Application granted granted Critical
Publication of CN110134419B publication Critical patent/CN110134419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The embodiment of the invention discloses a method, a device and equipment for upgrading a system of a double-sided cabinet and a storage medium, wherein the method comprises the following steps: the first main control computer receives the upgrade package to be used and acquires two groups of identification information in the upgrade package to be used; the first main control machine sends a group of identification information corresponding to the back cabinet to the main control machine of the back cabinet for verification, the main control machine of the back cabinet is used as a second main control machine, and the first main control machine verifies another group of identification information; the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, the sub-upgrading packet corresponding to the reverse cabinet is sent to the second main control computer; and when the checking result of the first main control computer meets the preset result, the first main control computer and the second main control computer are upgraded at the preset time point. According to the scheme, the technical effect of rapidly and accurately carrying out synchronous upgrading on the system in the double-sided cabinet is achieved.

Description

System upgrading method, device, equipment and storage medium for double-sided cabinet
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for upgrading a double-sided cabinet system.
Background
In recent years, with the rapid development of electronic commerce, express services are on the trend of increasing at a high speed. The delivery problem of express delivery has become the bottleneck of express delivery development, has consequently appeared intelligent express delivery cabinet.
The express delivery person can deposit the express delivery to intelligent express delivery cabinet to send the SMS to the user that corresponds, the SMS can be for getting goods code etc. and the user can screen to obtain and take away corresponding express delivery from the express delivery cabinet. If the destination that the express delivery arrived is when some security units, can generally adopt two-sided express delivery cabinet, install two-sided express delivery cabinet in corresponding position department. The front side of the double-sided express cabinet is used by a courier, and the back side of the express cabinet is used by a user. The express delivery person can deposit the express delivery to the express delivery cabinet in the front of two-sided express delivery cabinet. The user can take out the express delivery from the reverse side express delivery cabinet that corresponds with positive express delivery cabinet.
The two-sided express delivery cabinet also has system upgrading at the in-process that uses, and what the front and the reverse side of two-sided express delivery cabinet adopted is different systems, consequently need all upgrade to the front and the reverse side of two-sided express delivery cabinet. Because the front and the back of the double-sided express cabinet need to be upgraded simultaneously, when the upgrading mode of the traditional express cabinet is applied to the double-sided express cabinet, network delay, time errors of the front and the back express cabinets exist, and the situation that the double-sided express cabinet system fails to be upgraded due to faults in the upgrading process of the double-sided express cabinet exists.
Disclosure of Invention
The invention provides a system upgrading method, device, equipment and storage medium for a double-sided cabinet, and aims to achieve the technical effect of quickly and accurately upgrading a system in a double-sided express cabinet.
In a first aspect, an embodiment of the present invention provides a method for upgrading a double-sided cabinet system, where the method is applied to a double-sided express delivery cabinet, and includes:
the method comprises the steps that a first main control computer receives an upgrade package to be used and obtains two sets of identification information in the upgrade package to be used; the first main control computer is a front host computer arranged in the front express cabinet;
the first main control machine sends a group of identification information corresponding to the back cabinet to the main control machine of the back cabinet for verification, the main control machine of the back cabinet is used as a second main control machine, and meanwhile, the first main control machine verifies another group of identification information;
the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, the first main control computer sends the sub-upgrading packet corresponding to the reverse side cabinet to the second main control computer;
and when the checking result of the first main control computer meets the preset result, upgrading the first main control computer and the second main control computer at a preset time point.
In a second aspect, an embodiment of the present invention further provides a system upgrading system for a double-sided cabinet, where the system is configured in a double-sided express delivery cabinet, and includes:
the identification information acquisition module is used for receiving the upgrade package to be used by the first main control computer and acquiring two groups of identification information in the upgrade package to be used; the first main control computer is a front host computer arranged in the front express cabinet;
the identification information verification module is used for sending a group of identification information corresponding to the reverse cabinet to the main control machine of the reverse cabinet for verification by the first main control machine, taking the main control machine of the reverse cabinet as a second main control machine, and simultaneously verifying another group of identification information by the first main control machine;
the sub-upgrading packet sending module is used for the first main control computer to receive a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, the sub-upgrading packet corresponding to the reverse cabinet is sent to the second main control computer;
and the upgrading module is used for upgrading the first main control computer and the second main control computer at a preset time point when the checking result of the first main control computer meets the preset result.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the system upgrading method of the double-sided cabinet according to any one of the embodiments of the invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a system upgrade method for a double-sided cabinet according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, a first main control computer receives an upgrade package to be used and acquires two groups of identification information in the upgrade package to be used, the first main control computer sends one group of identification information corresponding to a back cabinet to a main control computer of the back cabinet for verification, the main control computer of the back cabinet is used as a second main control computer, meanwhile, the first main control computer verifies the other group of identification information, the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, a sub-upgrade package corresponding to the back cabinet is sent to the second main control computer; when the check result of the first main control computer meets the preset result, the first main control computer and the second main control computer are upgraded at the preset time point, the technical problem that the double-sided express cabinet cannot be normally used due to the fact that the double-sided express cabinet is upgraded due to network delay and time difference in the process of upgrading the double-sided cabinet in the prior art is solved, the speed and the efficiency are high, and meanwhile the technical effect of upgrading the front and back systems in the double-sided express cabinet is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flow chart of a system upgrading method for a double-sided cabinet according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of a system upgrading method for a double-sided cabinet according to a second embodiment of the present invention;
fig. 3 is an architecture diagram of a technical solution for synchronously upgrading a double-sided cabinet system according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system upgrading apparatus for a double-sided cabinet according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow diagram of a system upgrading method for a double-sided cabinet according to an embodiment of the present invention, where this embodiment is applicable to a situation of upgrading a double-sided express delivery cabinet, and the method may be executed by a system upgrading apparatus for a double-sided cabinet, and the apparatus may be implemented in the form of software and/or hardware.
As shown in fig. 1, the method of this embodiment includes:
s110, the first main control computer receives the upgrade package to be used and acquires two groups of identification information in the upgrade package to be used.
Before the technical scheme of the embodiment of the invention is introduced, the double-sided cabinet is simply introduced. The double-sided cabinet can be understood as a double-sided express cabinet. The front side of the double-sided express cabinet is used by a courier, and the back side of the double-sided express cabinet is used by a cabinet user. The applicable scene can be that when a courier in a certain place can not enter at will, a unit with certain confidentiality can be arranged. Of course, the double-sided express delivery cabinet provided by the embodiment can also be adopted in other places.
The front of the above express cabinet is arranged outside a certain place, and correspondingly, the back of the double-sided express cabinet is arranged inside a wall. The express delivery person can place the express delivery in the front of two-sided express delivery cabinet, and correspondingly, the express delivery person of receiving can take the express delivery from the express delivery cabinet of reverse side according to the identifying code information that the terminal received. Because the front express cabinet and the back express cabinet are different in operation to be executed, different systems are respectively adopted by the front express cabinet and the back express cabinet.
Wherein, first main control computer is the positive host computer that sets up in the positive express delivery cabinet. The system for normal work of the front express cabinet can be arranged in the front host. The upgrade package to be used can be an upgrade package required by system upgrade in a double-sided express cabinet. In the double-sided express cabinet, the systems adopted by the front and back express cabinets are different, so that at least two sub-upgrade packages, optionally a first sub-upgrade package and a second sub-upgrade package, of the upgrade package are to be used. The first sub-upgrade package may be applied to a front express cabinet, and the naming of the sub-upgrade package may end with a suffix.apk suffix name; the second sub-upgrade package may be applied to a reverse express cabinet, and the naming of the sub-upgrade package may end with a back. Of course, the names of other parts in the first sub upgrade package and the second sub upgrade package are still subject to the original logic of the project, and optionally, the name of the first sub upgrade package may be "fcbox _ v1.0.0_20190413 (u front.apk"). Identifier information corresponding to each child upgrade package is used as identification information. The identification information comprises version information, installation size and identification codes corresponding to the sub upgrading packets.
Specifically, the server corresponding to the double-sided express cabinet sends the upgrade package to be used to the first master control machine. And the first master control machine receives the upgrade package to be used and acquires the identification information of each sub upgrade package in the upgrade package to be used.
Optionally, determining the identification information corresponding to the child upgrade package may be: the first main control computer respectively obtains a configuration file of each sub-upgrading packet, and determines first identification information corresponding to the first sub-upgrading packet and second identification information corresponding to the second sub-upgrading packet from the configuration files; the identification information comprises version information corresponding to each sub-upgrade package.
Specifically, the first main control computer obtains the first sub-upgrade package and the configuration file in the second sub-upgrade package, determines information such as version information, size of the upgrade package, and identification code of the upgrade package corresponding to each sub-upgrade package from the configuration file, and sends identification information corresponding to the second sub-upgrade package to the second main control computer.
And S120, the first main control computer sends a group of identification information corresponding to the reverse cabinet to the main control computer of the reverse cabinet for verification, the main control computer of the reverse cabinet is used as a second main control computer, and meanwhile, the first main control computer verifies another group of identification information.
The first sub-upgrading packet and the second sub-upgrading packet have different file names, so that the identification information corresponding to the reverse cabinet can be determined according to the file names of the sub-upgrading packets, and the identification information is sent to the master control computer of the reverse cabinet for verification. The second master controller can be understood as a master controller corresponding to the back-side cabinet, that is, a control system of the back-side cabinet. The verification can be performed by the first main control computer and the second main control computer, and whether the received identification information is the upgrade version corresponding to the front cabinet system and the back cabinet system is determined according to the received identification information.
Specifically, the first main control computer acquires identification information corresponding to the back cabinet, and sends the identification information to the second main control computer. And the second main control computer can determine whether the second sub-upgrade package is a usable sub-upgrade package according to the received identification information, and sends a feedback result to the first main control computer. I.e. the result of whether the version information of the second sub-upgrade is higher than the version currently used by the cabinet on the reverse side. Meanwhile, the first master control computer needs to check the identification information corresponding to the first sub-upgrade package and determine whether the first sub-upgrade package is a sub-upgrade package required by the front cabinet.
It should be noted that, the identification information includes: version information corresponding to each sub-upgrade package, upgrade package size, and unique identification code. Therefore, the first main control computer and the second main control computer can determine whether the sub-upgrade package corresponding to the identification information meets the cabinet system corresponding to the sub-upgrade package according to the identification information.
And S130, the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, the sub-upgrading packet corresponding to the reverse cabinet is sent to the second main control computer.
And the feedback result means that the second main control computer determines whether the second sub-upgrade package is consistent with the preset result according to the identification information. The feedback results may or may not be consistent. The preset result can be that the version of the sub-upgrade patch is higher than the version currently used, and the sub-upgrade patch can be used for upgrading; it may also be that the version information of the child upgrade package is lower than the currently used version. At this time, the first master controller needs to send request information for re-issuing the upgrade package to the server. And the server retransmits the upgrade package according to the request information.
Specifically, the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is that the version of the second sub-upgrade package is higher than the currently used version of the back-side cabinet, the first main control computer sends the sub-upgrade package corresponding to the back-side cabinet to the second main control computer.
And S140, when the verification result of the first main control computer meets a preset result, upgrading the first main control computer and the second main control computer at a preset time point.
It should be noted that, when the first master controller sends the identification information corresponding to the back-side cabinet to the second master controller, the first master controller also needs to check the identification information corresponding to the front-side cabinet.
When the verification result determined by the first main control computer is consistent with the preset result, that is, the first main control computer determines the version information corresponding to the first sub-upgrade package according to the identification information, and when the version information is higher than the currently used version of the front cabinet system, the first main control computer may send control information to the second main control computer. The control information may be control information updated at a preset time point.
Specifically, when the first master control machine determines that the first sub-upgrade patch and the second sub-upgrade patch can be used, the systems corresponding to the front and back cabinet start to be upgraded simultaneously at a preset time point. Of course, the first main control computer may send an upgrade command for simultaneous upgrade to the second main control computer immediately, so that the double-sided express delivery cabinet system may be upgraded simultaneously.
In order to ensure that the front and back systems of the double-sided cabinet start to be upgraded simultaneously, the communication between the first main control computer and the second main control computer can be transmitted through the local area network.
According to the technical scheme of the embodiment of the invention, a first main control computer receives an upgrade package to be used and acquires two groups of identification information in the upgrade package to be used, the first main control computer sends one group of identification information corresponding to a back cabinet to a main control computer of the back cabinet for verification, the main control computer of the back cabinet is used as a second main control computer, meanwhile, the first main control computer verifies the other group of identification information, the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, a sub-upgrade package corresponding to the back cabinet is sent to the second main control computer; when the check result of the first main control computer meets the preset result, the first main control computer and the second main control computer are upgraded at the preset time point, the technical problem that the double-sided express cabinet cannot be normally used due to the fact that the double-sided express cabinet is upgraded due to network delay and time difference in the process of upgrading the double-sided cabinet in the prior art is solved, the speed and the efficiency are high, and meanwhile the technical effect of upgrading the front and back systems in the double-sided express cabinet is achieved.
On the basis of the above technical solution, before obtaining two sets of identification information in the upgrade package to be used, the method further includes:
the first main control computer respectively determines a total hash value corresponding to the upgrade package to be used, a first hash value corresponding to the first sub upgrade package and a second hash value corresponding to the first sub upgrade package; and when the total hash value, the first hash value and the second hash value are consistent with the received original hash value, receiving the upgrade package to be used.
Wherein the hash value may determine the integrity of the upgrade package. Therefore, when the server sends the upgrade package to be used to the first master controller, in order to avoid the received upgrade package to be used being a tampered upgrade package, when the server sends the upgrade package to be used to the first master controller, the hash value corresponding to the upgrade package to be used may be sent. That is to say, when the server sends the upgrade package to be used to the first master controller, the server may also send the hash value corresponding to the upgrade package to be used to the first master controller.
Before the first master controller receives the upgrade package to be used, a hash algorithm may be used to determine a total hash value of the upgrade package to be used, and determine a first hash value of a first sub-upgrade package in the upgrade package to be used and a second hash value of a second sub-upgrade package. And when each hash value calculated by the first main control computer is the same as the received hash value, judging whether the hash values are the same. If the upgrade package is the same as the upgrade package to be used, the server is considered to be not tampered in the process of sending the upgrade package to be used to the first main control computer, and the upgrade package to be used can be received.
Example two
As a preferred embodiment of the foregoing embodiment, fig. 2 is a schematic flow chart of a system upgrading method for a double-sided cabinet according to a second embodiment of the present invention. As shown in fig. 2, the method includes:
s201, the background server sends double upgrading packets to the front host.
The background server can be understood as a server corresponding to the double-sided express cabinet system. The dual upgrade package may be understood as the upgrade package to be used mentioned in embodiment one. That is, the dual upgrade package includes a first sub upgrade package and a second sub upgrade package. It is also understood that the server sends to the front-side host a packaged file including the first sub-upgrade package and the second sub-upgrade package.
Specifically, the background server sends a package file including a first sub-upgrade package and a second sub-upgrade package to the front host, i.e., the first master controller.
The server adopts the form of the double upgrading packets to send to the front cabinet host, so that the two sub upgrading packets can be obtained by ensuring that the front cabinet downloads the upgrading packets once, and the technical problem that one party fails to download and cannot be upgraded in time due to the fact that network faults occur in the process of respectively downloading the upgrading packets by two main control computers in one cabinet or the condition that the storage of a magnetic disk is not enough is avoided. That is to say, the front cabinet host receives the dual upgrade packages sent by the server, so that the load of the download request of the server can be reduced.
S202, the front host receives the double upgrade packages.
Wherein, the host computer that the front host computer can understand the one side correspondence that the express delivery person used in the two-sided express delivery cabinet.
Specifically, the front cabinet receives the dual upgrade package sent by the server.
It should be noted that, when the front-side host receives the dual upgrade package, the integrity of the dual upgrade package needs to be checked to ensure the security of the file. Wherein, the integrity of the double upgrade package is verified to be determined by a hash algorithm.
Specifically, when the background server sends the dual upgrade package to the front host, the hash value corresponding to the dual upgrade package may be sent to the front host. When the front host receives the dual upgrade package sent by the server, a hash value corresponding to the dual upgrade package can be obtained by calculation with a hash algorithm, and the hash value is compared with the received hash value. If the calculated hash value is completely consistent with the received hash value, judging that the double upgrade packages are complete; otherwise, it is incomplete.
S203, decompressing the double upgrading packets and sending the upgrading packets corresponding to the reverse side host.
When the received double upgrading packets are complete, the double upgrading packets can be determined to be the upgrading packets required by the system upgrading in the front cabinet and the back cabinet.
And the host of the front cabinet, namely the first main control computer decompresses the double upgrading packets to obtain a first sub upgrading packet and a second sub upgrading packet. The first main control computer may respectively read the identification information in the configuration files of the first sub upgrade package and the second sub upgrade package, where the identification information may be version information of each sub upgrade package, a size of the sub upgrade package, and a unique check code of the sub upgrade package. The first sub-upgrade patch can correspond to the front cabinet, and the second sub-upgrade patch can correspond to the back cabinet.
The first main control computer may send the identification information corresponding to the second sub-upgrade patch to the main computer of the reverse-side cabinet. The host computer connected with the opposite cabinet can be called a second master controller.
The second master controller may determine whether the second sub upgrade package is available according to the received identification information. When the second upgrading package is available, the second main control computer can feed back the result of successful verification to the first main control computer, and the first main control computer receives the feedback result and sends the second upgrading package to the second main control computer. If the version of each sub-upgrade package is lower than the system use version of the front-side host and the back-side host, namely the second sub-upgrade package is determined to be unavailable according to the identification information, the upgrade package pushed by the background server is incorrect, and the front-side host does not need to send the second sub-upgrade package to the host of the back-side cabinet.
The second master controller may check that the first master controller sends the second sub-upgrade package and the original hash value corresponding to the second sub-upgrade package to the second master controller. And the second main control computer calculates the second sub-upgrading packet by adopting a Hash algorithm to obtain a Hash value corresponding to the second sub-upgrading packet. And if the hash value is the same as the original second hash value, judging that the second sub-upgrade package is not tampered in the process of sending the second sub-upgrade package to the second main control computer by the first main control computer. Correspondingly, the second main control computer can also judge whether the version of the second sub-upgrade package is higher than the currently used version, and if so, the second main control computer can send control information capable of being upgraded to the first main control computer. Namely, the second main control computer checks the version information and the integrity of the second sub-upgrade package.
It should be noted that, because both the sub-upgrade packages are in the front-side host, the second sub-upgrade package corresponding to the back-side cabinet is sent to the back-side host before the upgrade starts. When the front host sends the second sub-upgrade package to the back host, the file can be transmitted by adopting a safer and faster local area network. The communication channel constructed by using the front and back local networks has the advantages that: the upgrade package can be transmitted to the reverse side in a short time.
S204, the front host judges whether to upgrade in time, if not, S205 is executed; if yes, go to step S206.
Wherein, the front host judges whether the upgrade is as follows: if the front host receives the back host, that is, the control information sent by the second main control computer is upgradable, and the front host judges that the version of the first sub-upgrade package is higher than the version currently used by the front host, the front host can send the second sub-upgrade package to the second main control computer. Meanwhile, the front side host can send the upgrade control signal to the back side host.
It should be noted that, when the server sends the upgrade package to be used to the first master controller, the timestamp for upgrading the front and back cabinets is also included. The host computer of the front cabinet judges whether to upgrade in time, if not, executes S206, and if so, executes S205.
And S205, sending the timing task information to the reverse side host.
The front cabinet host sends a timing task to the back cabinet, that is, the front cabinet host sends an upgrade signal to the back cabinet at what time point to upgrade, so that the systems in the front cabinet and the back cabinet are upgraded at the preset time point at the same time.
S206, the front host sends a synchronous upgrading instruction to the back host.
The front host computer sends an upgrading instruction for starting upgrading to the back host computer. And the front host and the back host start upgrading according to the instruction.
It should be noted that due to the particularity of the double-sided cabinet, the front side and the back side need to be synchronized during upgrading. When the preset time is set for upgrading, the front host and the back host can firstly judge whether the current cabinet is in use. If a courier or a user is operating on the double-sided express cabinet, the upgrading time can be delayed. If the double-sided express cabinet is in idle time, namely when not being used, the front host computer can inform the back host computer, namely the front host computer sends a synchronous upgrading instruction to the back host computer. When the front side starts upgrading, the back side also needs to lock the screen, and the synchronous upgrading of user operation is avoided, so the requirement on request response is very high, according to the original traditional cabinet machine upgrading mode, when the network is poor or the time error of the cabinet machine occurs, the condition that the two sides are inconsistent can occur, and the synchronous upgrading scheme of the double-side cabinet system carries out upgrading package downloading and decompression through one unified end, and then the upgrading package and the upgrading instruction are rapidly transmitted through the local area network, so that the smooth upgrading of the double-side cabinet system is ensured to be completed.
The architecture diagram of the synchronous upgrading scheme of the double-sided cabinet system is shown in fig. 3.
Specifically, the background server sends the double upgrade package to the front host of the double-sided express delivery cabinet. And the front host receives the double upgrading packets and verifies the integrity of the double upgrading packets. If the double upgrade package is verified to be complete, the double upgrade package can be decompressed to obtain a first sub upgrade package and a second sub upgrade package. The front host computer obtains the identification information in the configuration file, the identification information of the back cabinet host computer is sent to the back cabinet host computer, the back cabinet host computer determines whether the second sub-upgrade patch can be used or not according to the identification information, and if the second sub-upgrade patch can be used, the back cabinet host computer feeds back the usable result to the front cabinet host computer. And the front cabinet host sends the second sub-upgrade packet corresponding to the back cabinet host to the host of the back cabinet according to the received result. When the host computer of the back cabinet receives the second sub-upgrade patch, the successfully transmitted signal can be fed back to the host computer of the front cabinet. The front host judges whether to upgrade at the same time, if not, the timing task is sent to the back host; if yes, a synchronous upgrading instruction is sent to the reverse side host machine, so that the first host machine and the second host machine start upgrading according to the synchronous upgrading instruction.
According to the technical scheme of the embodiment of the invention, a first main control computer receives an upgrade package to be used and acquires two groups of identification information in the upgrade package to be used, the first main control computer sends one group of identification information corresponding to a back cabinet to a main control computer of the back cabinet for verification, the main control computer of the back cabinet is used as a second main control computer, meanwhile, the first main control computer verifies the other group of identification information, the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, a sub-upgrade package corresponding to the back cabinet is sent to the second main control computer; when the check result of the first main control computer meets the preset result, the first main control computer and the second main control computer are upgraded at the preset time point, the technical problem that the double-sided express cabinet cannot be normally used due to the fact that the double-sided express cabinet is upgraded due to network delay and time difference in the process of upgrading the double-sided cabinet in the prior art is solved, the speed and the efficiency are high, and meanwhile the technical effect of upgrading the front and back systems in the double-sided express cabinet is achieved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a system upgrading apparatus of a double-sided cabinet according to a third embodiment of the present invention, where the apparatus may be configured in a double-sided express delivery cabinet, and specifically includes: an identification information acquisition module 310, an identification information verification module 320, a sub upgrade package transmission module 330, and an upgrade module 340.
An identification information obtaining module 310, configured to receive an upgrade package to be used by a first master controller, and obtain two sets of identification information in the upgrade package to be used; the upgrading package to be used comprises a first sub-upgrading package and a second sub-upgrading package; an identification information verification module 320, configured to send, by the first master controller, a set of identification information corresponding to a back-side cabinet to the master controller of the back-side cabinet for verification, use the master controller of the back-side cabinet as a second master controller, and meanwhile check, by the first master controller, another set of identification information; a sub-upgrade package sending module 330, configured to receive, by the first master controller, a feedback result sent by the second master controller, and send, when the feedback result is consistent with a preset result, a sub-upgrade package corresponding to the reverse-side cabinet to the second master controller; and the upgrading module 340 is configured to upgrade the first main control computer and the second main control computer at a preset time point when the verification result of the first main control computer meets the preset result.
On the basis of the above technical solution, before the first master controller receives the upgrade package to be used, the identification information obtaining module is further configured to:
the first main control computer respectively determines a total hash value corresponding to the upgrade package to be used, a first hash value corresponding to a first sub upgrade package and a second hash value corresponding to the first sub upgrade package; and when the total hash value, the first hash value and the second hash value are consistent with the received original hash value, receiving the upgrade package to be used.
On the basis of the above technical solutions, the identification information obtaining module is further configured to:
the first main control computer respectively acquires a configuration file of each sub-upgrading packet, and determines first identification information corresponding to the first sub-upgrading packet and second identification information corresponding to the second sub-upgrading packet from the configuration files; and the identification information comprises version information corresponding to each sub-upgrade package.
On the basis of the above technical solutions, the identification information verification module is further configured to:
the first main control computer determines second identification information corresponding to the reverse cabinet and sends the second identification information to the second main control computer; the second main control computer receives the second identification information, determines whether the version information of the sub-upgrade package is higher than the current use version according to the second identification information, and feeds back the judgment result to the first main control computer; and the first main control computer determines whether the version of the sub upgrading packet corresponding to the first identification information is higher than the current use version or not according to the version information in the first identification information.
On the basis of the above technical solutions, the identification information verification module is further configured to:
the second main control computer feeds back a result that the version of the second sub-upgrade package is higher than the current version to the first main control computer; and the first main control computer sends a second sub-upgrade package to the second main control computer according to the received feedback result.
On the basis of the above technical solution, the identification information verification module is further configured to, after the sub upgrade package corresponding to the back-side cabinet is sent to the second main control computer:
the second main control computer receives the second sub-upgrading packet and determines a received hash value corresponding to the second sub-upgrading packet;
and when the hash value is consistent with the second hash value, taking the second sub-upgrade package as a target sub-upgrade package.
On the basis of the technical schemes, the first main control computer and the second main control computer are communicated with each other through a local area network.
According to the technical scheme of the embodiment of the invention, a first main control computer receives an upgrade package to be used and acquires two groups of identification information in the upgrade package to be used, the first main control computer sends one group of identification information corresponding to a back cabinet to a main control computer of the back cabinet for verification, the main control computer of the back cabinet is used as a second main control computer, meanwhile, the first main control computer verifies the other group of identification information, the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, a sub-upgrade package corresponding to the back cabinet is sent to the second main control computer; when the check result of the first main control computer meets the preset result, the first main control computer and the second main control computer are upgraded at the preset time point, the technical problem that the double-sided express cabinet cannot be normally used due to the fact that the double-sided express cabinet is upgraded due to network delay and time difference in the process of upgrading the double-sided cabinet in the prior art is solved, the speed and the efficiency are high, and meanwhile the technical effect of upgrading the front and back systems in the double-sided express cabinet is achieved.
The system upgrading device of the double-sided cabinet provided by the embodiment of the invention can execute the system upgrading method of the double-sided cabinet provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary device 40 suitable for use in implementing embodiments of the present invention. The device 40 shown in fig. 5 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 5, device 40 is embodied in a general purpose computing device. The components of device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples various system components including the system memory 402 and the processing unit 401.
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. Device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in the memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
Device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with device 40, and/or with any devices (e.g., network card, modem, etc.) that enable device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interfaces 411. Also, device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via network adapter 412. As shown, network adapter 412 communicates with the other modules of device 40 via bus 403. It should be understood that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, implementing a system upgrade method for a double-sided cabinet provided by an embodiment of the present invention.
EXAMPLE five
A fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for system upgrade of a duplex cabinet.
The method comprises the following steps: the method comprises the steps that a first main control computer receives an upgrade package to be used and obtains two groups of identification information in the upgrade package to be used; the upgrading package to be used comprises a first sub-upgrading package and a second sub-upgrading package; the first main control machine sends a group of identification information corresponding to the back cabinet to the main control machine of the back cabinet for verification, the main control machine of the back cabinet is used as a second main control machine, and meanwhile, the first main control machine verifies another group of identification information; the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, the first main control computer sends the sub-upgrading packet corresponding to the reverse side cabinet to the second main control computer; and when the verification result of the first main control computer meets the preset result, upgrading the first main control computer and the second main control computer at a preset time point.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A system upgrading method of a double-sided cabinet is characterized by being applied to a double-sided express cabinet and comprising the following steps:
the method comprises the steps that a first main control computer receives an upgrade package to be used and obtains two sets of identification information in the upgrade package to be used; the first main control computer is a front host computer arranged in a front express cabinet, the upgrade package to be used is an upgrade package required by system upgrade in a double-sided express cabinet and comprises at least two sub upgrade packages, the first main control computer respectively acquires a configuration file of each sub upgrade package, and determines first identification information corresponding to the first sub upgrade package and second identification information corresponding to the second sub upgrade package from the configuration files, and the identification information comprises version information corresponding to each sub upgrade package;
the first main control machine sends a group of identification information corresponding to the back cabinet to the main control machine of the back cabinet for verification, the main control machine of the back cabinet is used as a second main control machine, and meanwhile, the first main control machine verifies another group of identification information;
the first main control computer receives a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, the sub-upgrade package corresponding to the reverse cabinet is sent to the second main control computer;
when the verification result of the first main control computer meets the preset result, the first main control computer and the second main control computer are upgraded at a preset time point;
before the obtaining of the two sets of identification information in the upgrade package to be used, the method further includes:
the first main control computer respectively determines a total hash value corresponding to the upgrade package to be used, a first hash value corresponding to a first sub upgrade package and a second hash value corresponding to a second sub upgrade package;
and when the total hash value, the first hash value and the second hash value are consistent with the received original hash value, receiving the upgrade package to be used.
2. The method according to claim 1, wherein the step of sending a set of identification information corresponding to the back-side cabinet to the master controller of the back-side cabinet for verification by the first master controller, taking the master controller of the back-side cabinet as a second master controller, and simultaneously verifying another set of identification information by the first master controller includes:
the first main control computer determines second identification information corresponding to the reverse cabinet and sends the second identification information to the second main control computer;
the second main control computer receives the second identification information, determines whether the version information of the sub-upgrade package is higher than the current use version according to the second identification information, and feeds back the judgment result to the first main control computer;
and the first main control computer determines whether the version of the sub upgrading packet corresponding to the first identification information is higher than the current use version or not according to the version information in the first identification information.
3. The method according to claim 1, wherein when the feedback result is consistent with a preset result, the sending the sub upgrade package corresponding to the back-side cabinet to the second master controller includes:
the second main control computer feeds back a result that the version of the second sub-upgrade package is higher than the current version to the first main control computer;
and the first main control computer sends a second sub-upgrading packet to the second main control computer according to the received feedback result.
4. The method of claim 1, after sending the sub-upgrade package corresponding to the opposite cabinet to the second master controller, further comprising:
the second main control computer receives the second sub-upgrading packet and determines a received hash value corresponding to the second sub-upgrading packet;
and when the hash value is consistent with the second hash value, taking the second sub-upgrade package as a target sub-upgrade package.
5. The method of any of claims 1-4, wherein said first master and said second master communicate with each other via a local area network.
6. A system upgrading device of a double-sided cabinet is characterized by being arranged in the double-sided express cabinet and comprising:
the identification information acquisition module is used for receiving the upgrade package to be used by the first main control computer and acquiring two groups of identification information in the upgrade package to be used; the first main control computer is a front host computer arranged in a front express cabinet, and the upgrade package to be used is an upgrade package required by system upgrade in a double-sided express cabinet and comprises at least two sub upgrade packages;
the identification information verification module is used for sending a group of identification information corresponding to the reverse cabinet to the main control machine of the reverse cabinet for verification by the first main control machine, taking the main control machine of the reverse cabinet as a second main control machine, and simultaneously verifying another group of identification information by the first main control machine;
the sub-upgrading packet sending module is used for the first main control computer to receive a feedback result sent by the second main control computer, and when the feedback result is consistent with a preset result, the sub-upgrading packet corresponding to the reverse cabinet is sent to the second main control computer;
the upgrading module is used for upgrading the first main control computer and the second main control computer at a preset time point when the checking result of the first main control computer meets the preset result;
wherein, the identification information obtaining module is further configured to, before the first master controller receives the upgrade package to be used:
the first main control computer respectively determines a total hash value corresponding to the upgrade package to be used, a first hash value corresponding to a first sub upgrade package and a second hash value corresponding to the first sub upgrade package; when the total hash value, the first hash value and the second hash value are consistent with the received original hash value, receiving the upgrade package to be used;
wherein, the identification information obtaining module is further configured to:
the first main control computer is used for acquiring a configuration file of each sub-upgrading packet, and determining first identification information corresponding to the first sub-upgrading packet and second identification information corresponding to the second sub-upgrading packet from the configuration files;
and the identification information comprises version information corresponding to each sub-upgrade package.
7. A computing device, the device comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of system upgrade of a two-sided cabinet as claimed in any one of claims 1-5.
8. A storage medium containing computer executable instructions for performing a method of system upgrade of a two-sided cabinet as claimed in any one of claims 1-5 when executed by a computer processor.
CN201910419698.3A 2019-05-20 2019-05-20 System upgrading method, device, equipment and storage medium for double-sided cabinet Active CN110134419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910419698.3A CN110134419B (en) 2019-05-20 2019-05-20 System upgrading method, device, equipment and storage medium for double-sided cabinet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910419698.3A CN110134419B (en) 2019-05-20 2019-05-20 System upgrading method, device, equipment and storage medium for double-sided cabinet

Publications (2)

Publication Number Publication Date
CN110134419A CN110134419A (en) 2019-08-16
CN110134419B true CN110134419B (en) 2023-03-21

Family

ID=67571846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910419698.3A Active CN110134419B (en) 2019-05-20 2019-05-20 System upgrading method, device, equipment and storage medium for double-sided cabinet

Country Status (1)

Country Link
CN (1) CN110134419B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN211827442U (en) * 2020-04-13 2020-10-30 深圳市丰巢科技有限公司 Two-sided express delivery cabinet
CN113724453A (en) * 2021-10-29 2021-11-30 浙江口碑网络技术有限公司 Control method and corresponding storage cabinet, server and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106485153A (en) * 2016-10-10 2017-03-08 聚好看科技股份有限公司 Version upgrading method and terminal unit
CN107479927A (en) * 2017-08-14 2017-12-15 青岛海信宽带多媒体技术有限公司 The firmware upgrade method and device of pattern of fusion all-in-one
CN107888577A (en) * 2017-10-31 2018-04-06 美的智慧家居科技有限公司 Upgrade method, door lock, server, system and the storage medium of door lock firmware
CN108572839A (en) * 2018-07-12 2018-09-25 四川虹美智能科技有限公司 Intelligent refrigerator system upgrade method, system, intelligent refrigerator and cloud server
CN109491682A (en) * 2018-10-24 2019-03-19 杭州趣链科技有限公司 A kind of block catenary system automatically updating method that the permission based on intelligent contract is controllable

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038538A (en) * 2014-05-29 2014-09-10 广州视睿电子科技有限公司 Method and system for local area network host software updating
CN104134292B (en) * 2014-07-30 2017-01-11 济南新吉纳远程测控股份有限公司 Intelligent terminal cabinet for fresh vegetable sale, internet sale system and method
CN105259806B (en) * 2015-10-16 2018-01-23 珠海格力电器股份有限公司 Controller upgrade method and system and master controller and from controller
CN105373022A (en) * 2015-11-23 2016-03-02 成都我来啦网格信息技术有限公司 Double-sided cabinet express delivery and pickup and grid box state query control system and control method
CN107995255A (en) * 2017-10-26 2018-05-04 深圳市丰巢科技有限公司 A kind of method and its system of remote monitoring intelligent cabinet
CN109117165A (en) * 2018-09-25 2019-01-01 上海古鳌电子科技股份有限公司 A kind of upgrade-system and its upgrade method based on IAP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106485153A (en) * 2016-10-10 2017-03-08 聚好看科技股份有限公司 Version upgrading method and terminal unit
CN107479927A (en) * 2017-08-14 2017-12-15 青岛海信宽带多媒体技术有限公司 The firmware upgrade method and device of pattern of fusion all-in-one
CN107888577A (en) * 2017-10-31 2018-04-06 美的智慧家居科技有限公司 Upgrade method, door lock, server, system and the storage medium of door lock firmware
CN108572839A (en) * 2018-07-12 2018-09-25 四川虹美智能科技有限公司 Intelligent refrigerator system upgrade method, system, intelligent refrigerator and cloud server
CN109491682A (en) * 2018-10-24 2019-03-19 杭州趣链科技有限公司 A kind of block catenary system automatically updating method that the permission based on intelligent contract is controllable

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于安卓平台的智能快递柜设计;陈俊东等;《电子世界》;20161008(第19期);第105-106页 *

Also Published As

Publication number Publication date
CN110134419A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110716895B (en) Target data archiving method, device, computer equipment and medium
US10127057B2 (en) Method and apparatus for dynamically implementing application function
US10193971B2 (en) Method, server and system for application synchronization
WO2021139238A1 (en) Method and apparatus for upgrading cloud service application
US20190372804A1 (en) Method and apparatus for operating smart network interface card
US11163566B2 (en) Handling an input/output store instruction
US8533734B2 (en) Application programming interface for managing time sharing option address space
CN110580244A (en) file processing method and device, server and storage medium
CN110134419B (en) System upgrading method, device, equipment and storage medium for double-sided cabinet
CN111240896A (en) Terminal data synchronization method, device, server and storage medium
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
CN111259022A (en) Information synchronization method, synchronization system, computer equipment and medium
WO2021134418A1 (en) Data checking method and apparatus
CN111459524A (en) Software upgrading method, device and system
CN109325002B (en) Text file processing method, device and system, electronic equipment and storage medium
CN112131041A (en) Method, apparatus and computer program product for managing data placement
US10958726B2 (en) Method of synchronizing device list in a smart network system, apparatus, and computer storage medium thereof
EP3896931B1 (en) Spark shuffle-based remote direct memory access system and method
CN111090537B (en) Cluster starting method and device, electronic equipment and readable storage medium
CN112882743A (en) Software upgrading method
CN110532203B (en) NAND reset method, device, electronic equipment and storage medium
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
US10719454B2 (en) Synchronizing requests to access computing resources
CN112181930B (en) File management method and device for virtual switching matrix
CN114443525B (en) Data processing system, method, electronic equipment and storage 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