CN113986606A - Elevator program upgrading method, system, device and storage medium - Google Patents
Elevator program upgrading method, system, device and storage medium Download PDFInfo
- Publication number
- CN113986606A CN113986606A CN202111214634.3A CN202111214634A CN113986606A CN 113986606 A CN113986606 A CN 113986606A CN 202111214634 A CN202111214634 A CN 202111214634A CN 113986606 A CN113986606 A CN 113986606A
- Authority
- CN
- China
- Prior art keywords
- program
- elevator
- upgrading
- address area
- upgrade
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000015654 memory Effects 0.000 claims description 14
- 238000012795 verification Methods 0.000 claims description 11
- 238000004806 packaging method and process Methods 0.000 claims description 5
- 125000004122 cyclic group Chemical group 0.000 claims description 4
- 238000012163 sequencing technique Methods 0.000 claims description 2
- 238000012423 maintenance Methods 0.000 abstract description 5
- 230000005540 biological transmission Effects 0.000 description 25
- 238000012544 monitoring process Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B66—HOISTING; LIFTING; HAULING
- B66B—ELEVATORS; ESCALATORS OR MOVING WALKWAYS
- B66B1/00—Control systems of elevators in general
- B66B1/02—Control systems without regulation, i.e. without retroactive action
- B66B1/06—Control systems without regulation, i.e. without retroactive action electric
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Automation & Control Theory (AREA)
- Quality & Reliability (AREA)
- Indicating And Signalling Devices For Elevators (AREA)
Abstract
The invention discloses an elevator program upgrading method, system, device and storage medium, and relates to the technical field of elevator operation and maintenance. The elevator program upgrading method comprises the following steps: loading an upgrading program from a server and acquiring address mark information of an elevator master control; determining a backup address area of elevator master control according to the address mark information, and writing an upgrading program into the backup address area; determining an executive program address area of the elevator master control according to the address mark information; reading an original program from an execution program address area; generating a backup data packet according to the original program and sending the backup data packet to a server; and if the upgrading program is successfully written into the backup address area, marking the backup address area as an execution program address area, and enabling the elevator main control to execute the upgrading program. According to the method and the system, the original program is automatically backed up while the elevator program is upgraded, so that managers can conveniently check and trace the program before and after the elevator is upgraded, and the operation complexity of the worker for upgrading and backing up the program is reduced.
Description
Technical Field
The invention relates to the technical field of elevator operation and maintenance, in particular to an elevator program upgrading method, system, device and storage medium.
Background
The elevator is widely applied to buildings such as high buildings, an elevator control program is written in the elevator master control, and the operation of the elevator can be controlled through the control program.
At present, when an elevator needs to be upgraded, a worker needs to copy an elevator program into a computer first and then carry heavy equipment such as the computer, a program writer and an equipment power supply to carry out on-site program upgrading. However, this method of upgrading elevator program on site has high labor cost, and when the worker operates the elevator, the manager needs to examine and determine, which results in a complicated operation flow.
In the related technology, an elevator master control is connected to a server, a terminal of a manager is connected to the server, and the elevator program can be upgraded through the server.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides an elevator program upgrading method, system, device and storage medium, which can facilitate the program check and program tracing before and after elevator upgrading by managers.
In one aspect, an embodiment of the present invention provides an elevator program upgrading method, including the following steps:
loading an upgrading program from a server and acquiring address mark information of elevator master control;
determining a backup address area of the elevator main control according to the address mark information, and writing the upgrading program into the backup address area of the elevator main control;
determining an executive program address area of an elevator main control according to the address mark information;
reading an original program from an execution program address area of an elevator master control;
generating a backup data packet according to the original program and sending the backup data packet to a server;
and if the upgrading program is successfully written into the backup address area, marking the backup address area as an execution program address area, so that the elevator main control executes the upgrading program.
According to some embodiments of the invention, the elevator program upgrade method further comprises the steps of:
acquiring an upgrading request from a server, wherein the upgrading request comprises attribute information of an upgrading program;
judging whether the upgrading program meets preset requirements or not according to the attribute information;
when the upgrading program does not meet the preset requirement, returning upgrading refusing information to the server;
and when the upgrading program meets the preset requirement, executing the step of loading the upgrading program from the server.
According to some embodiments of the present invention, the attribute information includes an upgrade program version, an upgrade program occupation space, and an upgrade program type, and the determining whether the upgrade program meets a preset requirement according to the attribute information includes the following steps:
judging whether the version of the upgrading program is consistent with a preset version of an elevator master control;
judging whether the space occupied by the upgrading program is larger than the preset storage space of the elevator master control or not;
judging whether the upgrading program type is a program type supportable by elevator master control;
and when the version of the upgrading program is consistent with the preset version, the occupied space of the upgrading program is not more than the preset storage space, and the type of the upgrading program is a program type which can be supported by an elevator master control, determining that the upgrading program meets the preset requirement, otherwise, determining that the upgrading program does not meet the preset requirement.
According to some embodiments of the invention, after the step of loading the upgrade program from the server, the elevator program upgrade method further comprises the steps of:
if the upgrading program is determined to be loaded completely, the upgrading program is disconnected with the server;
and if the original program is completely read, re-establishing connection with the server.
According to some embodiments of the invention, the upgrade request further comprises an elevator number, and the generating of the backup data package according to the original program comprises the steps of:
and packaging the elevator number and the original program into the backup data packet according to a TCP protocol.
According to some embodiments of the invention, the upgrade program comprises a plurality of program data packets, and the writing of the upgrade program to a backup address area of an elevator master comprises the steps of:
sequencing a plurality of the program data packets;
and writing the program data packets into a backup address area of the elevator master control one by one according to the sequence number.
According to some embodiments of the invention, the successful writing of the upgrade program to the backup address area is determined by:
detecting the space occupied by the current data in the backup address area;
when the current data occupation space is equal to the upgrade program occupation space, verifying the upgrade program according to a cyclic redundancy check code in the upgrade program;
and when the upgrading program passes the verification, determining that the upgrading program is successfully written into the backup address area.
On the other hand, the embodiment of the invention also provides an elevator program upgrading system, which comprises:
the first module is used for loading an upgrading program from the server and acquiring the address mark information of the elevator master control;
the second module is used for determining a backup address area of the elevator main control according to the address mark information and writing the upgrading program into the backup address area of the elevator main control;
the third module is used for determining an executive program address area of the elevator master control according to the address mark information;
the fourth module is used for reading an original program from an execution program address area of the elevator main control;
the fifth module is used for generating a backup data packet according to the original program and sending the backup data packet to a server;
and the sixth module is used for marking the backup address area as an execution program address area if the upgrade program is successfully written into the backup address area, so that the elevator main control executes the upgrade program.
On the other hand, the embodiment of the invention also provides an elevator program upgrading device, which comprises:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, causing the at least one processor to implement the elevator program upgrade method as previously described.
In another aspect, the embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions for causing a computer to execute the elevator program upgrading method as described above.
The technical scheme of the invention at least has one of the following advantages or beneficial effects: the method comprises the steps of loading an upgrading program from a server, obtaining address mark information of an elevator main control, determining a backup address area and an execution program address area of the elevator main control according to the address mark information, writing the loaded upgrading program into the backup address area, simultaneously reading an original program from the execution program address area, packaging the original program into a backup data packet after reading the original program, and sending the backup data packet to the server. And when the upgrading program is successfully written into the backup address area, marking the backup address area as an execution program address area, so that the elevator main control executes the upgrading program. According to the method and the system, the original program of the elevator can be automatically backed up and then sent to the server when the elevator program is upgraded, so that a manager can conveniently check and trace the program before and after the elevator is upgraded, and the operation complexity of the upgrade and backup program of a worker is reduced.
Drawings
Fig. 1 is a flow chart of an elevator program upgrading method provided by the embodiment of the invention;
fig. 2 is a schematic diagram of an elevator program upgrade system provided by an embodiment of the invention;
fig. 3 is a schematic diagram of an elevator program upgrading device provided by the embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or components having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplicity of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, if there are first, second, etc. described, they are only used for distinguishing technical features, but they are not interpreted as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the precedence of the indicated technical features.
The embodiment of the invention provides an elevator program upgrading method which can be applied to a data transmission device of an elevator remote operation and maintenance system, wherein the elevator remote operation and maintenance system comprises a server, a data transmission device and an elevator main control, the data transmission device can be connected with a serial port of the elevator main control through an RS485 bus, the data transmission device is in wireless communication with the server, and the data transmission device is used for packaging data of the elevator main control into an IP data packet or decompressing and temporarily storing the IP data packet from the server.
Referring to fig. 1, the elevator program upgrading method of the embodiment of the present invention includes, but is not limited to, step S110, step S120, step S130, step S140, step S150, and step S160.
And step S110, loading an upgrading program from the server and acquiring the address mark information of the elevator master control.
In some embodiments, the user terminal may initiate an upgrade request to a server, the server establishing a connection with a data transfer device, the data transfer device loading an upgrade program for the elevator from the server.
In some embodiments, the address flag information is used to indicate the address usage of the elevator master, for example, an address section in which no data is stored may be set to "1", which indicates that the section is a backup address area, and an address section in which an executable program is stored may be set to "0", which indicates that the section is an execution program address area. The elevator main control runs the program in the address area of the executive program, so that the elevator works according to the program in the address area of the executive program.
And step S120, determining a backup address area of the elevator main control according to the address mark information, and writing the upgrading program into the backup address area of the elevator main control.
And step S130, determining an executive program address area of the elevator master control according to the address mark information.
And step S140, reading an original program from an execution program address area of the elevator master control.
And step S150, generating a backup data packet according to the original program and sending the backup data packet to the server.
And step S160, if the upgrading program is successfully written into the backup address area, the backup address area is marked as an execution program address area, so that the elevator main control executes the upgrading program.
In some embodiments, after the upgrade program from the server is loaded, address flag information of the elevator master control is acquired, a backup address area and an execution program address area of the elevator master control are determined according to the address flag information, the loaded upgrade program is written into the backup address area, meanwhile, an original program is read from the execution program address area, and after the original program is read, the original program is packaged into a backup data packet and sent to the server. When the upgrade program is successfully written into the backup address area, the backup address area is marked as an execution program address area, for example, the backup address area is set from '1' to '0' and is changed into the execution program address area, so that the elevator main control executes the upgrade program. The elevator program upgrading method provided by the embodiment of the invention can automatically backup the original program of the elevator and send the backup program to the server when the elevator program is upgraded, so that a manager can conveniently check and trace the elevator upgrading program, and the operation complexity of the worker upgrading and backup program is reduced.
Furthermore, after the original program is read, the data in the original execution program address area is deleted, and the execution program address area is marked as a backup address area so as to carry out elevator program upgrading next time.
According to some embodiments of the present invention, the method for upgrading an elevator program further includes step S210 and step S220.
Step S210, obtaining an upgrade request from a server, where the upgrade request includes attribute information of an upgrade program.
Step S220, judging whether the upgrading program meets the preset requirement or not according to the attribute information, returning upgrading refusal information to the server when the upgrading program does not meet the preset requirement, and executing the step of loading the upgrading program from the server when the upgrading program meets the preset requirement.
In some embodiments, the server may include a remote monitoring server and a remote upgrading server, and the user terminal such as a mobile phone, a computer, etc. may access the remote monitoring server, and initiate an upgrading request to the data transmission device through the remote monitoring server. The upgrade request includes attribute information of the upgrade program. And judging whether the upgrading program meets the preset requirement or not according to the attribute information, returning upgrading refusal information to the remote monitoring server when the upgrading program does not meet the preset requirement, and loading the upgrading program from the remote upgrading server when the upgrading program meets the preset requirement.
Specifically, the attribute information includes an upgrade program version, an upgrade program occupation space, and an upgrade program type, and the step of determining whether the upgrade program meets a preset requirement according to the attribute information includes the steps of:
and judging whether the version of the upgrading program is consistent with the preset version of the elevator master control.
And judging whether the space occupied by the upgrading program is larger than the preset storage space of the elevator owner.
And judging whether the upgrading program type is the program type supportable by the elevator master control.
And when the version of the upgrading program is consistent with the preset version, the occupied space of the upgrading program is not more than the preset storage space and the type of the upgrading program is the type of the program which can be supported by the elevator main control, the upgrading program meets the preset requirement, otherwise, the upgrading program does not meet the preset requirement.
According to some embodiments of the present invention, after step S110, the elevator program upgrading method further includes step S310 and step S320.
And step S310, if the upgrading program is determined to be loaded completely, disconnecting the upgrading program from the server.
Step S320, if it is determined that the original program is completely read, re-establishing connection with the server.
In some embodiments, after the upgrade program is loaded and verified successfully, it is determined that the upgrade program is loaded and disconnected from the server. The upgrade program is then sent to the elevator master and the original program is read from the elevator master. And when the original program is read completely, re-establishing connection with the server. Because the connection with the server can occupy resources after the long-term connection, the connection with the server can be disconnected after the upgrade program is loaded, so that communication resources can be saved, and the connection is reestablished and the original program is returned after the upgrade program is read and the original program is read.
According to some embodiments of the invention, the upgrade request further includes an elevator number, and step S150 includes step S410.
And step S410, packaging the elevator number and the original program into a backup data packet according to a TCP protocol.
In some embodiments, the upgrade request includes an elevator number, which is used to determine which elevator master control is to be upgraded, and after reading the original program, a backup data packet is used to encapsulate the elevator number and the original program according to a TCP protocol that is in communication with the server. And after receiving the backup data packet, the server stores the upgrading program and the original program in an associated manner according to the elevator number, so that the programs before and after the elevator is upgraded can be traced conveniently.
Further, the server or the data transmission device can also determine a comparison table before and after upgrading according to the upgrading program and the original program, and store the comparison table before and after upgrading in the server.
According to some embodiments of the present invention, the upgrade program includes a plurality of program data packets, and writing the upgrade program to the backup address area of the elevator main control includes steps S510 and S520.
Step S510, sequence numbers are carried out on a plurality of program data packets;
and step S520, writing the program data packets into the backup address area of the elevator master control one by one according to the sequence number.
In some embodiments, an upgrade program generally includes a plurality of program data packets, each program data packet is stored and installed according to a development time sequence, and therefore the program data packets are transmitted to a backup address of an elevator master control according to a sequence of numbers, so that the elevator master control can store and install the program data packets according to the development time sequence after receiving the program data packets.
According to some embodiments of the present invention, the successful writing of the upgrade program to the backup address area is determined through steps S610, S620, and S630.
Step S610, detecting the space occupied by the current data in the backup address area;
step S620, when the occupied space of the current data is equal to the occupied space of the upgrading program, the upgrading program is checked according to the cyclic redundancy check code in the upgrading program;
step S630, writing the verified upgrade program into the backup address area.
In some embodiments, the elevator master control detects the current data occupation space in the backup address area during the process of receiving and storing the upgrading program, and judges whether the current data occupation space is equal to the upgrading program occupation space, and when the current data occupation space is equal to the upgrading program occupation space, the elevator master control receives the completion of the upgrading program. And then, checking the upgrading program according to the cyclic redundancy check code in the upgrading program to confirm that the elevator master control accurately receives the upgrading program. And when the verification is successful, the mark upgrading program is successfully written into the backup address area, so that the subsequent operation of marking the backup address area as an execution program address area and the like is carried out. Further, when the verification fails, the write failure information is returned to inform the server to reinitiate the upgrade request.
Specifically, the application of the elevator program upgrading method of the embodiment of the present invention is explained.
The elevator remote operation and maintenance system comprises a remote monitoring server, an upgrading server, a data transmission device and an elevator master control, wherein the data transmission device is connected with the elevator master control through an RS485 bus, and the data transmission device is respectively connected with the remote monitoring server and the upgrading server through a wireless/wired transmission network. The remote monitoring server initiates an upgrade request to the data transmission device. The data transmission device verifies according to the information such as the upgrading program type in the upgrading request, if the verification fails, the data transmission device returns upgrading refusing information to the remote monitoring server, and if the verification succeeds, the data transmission device returns upgrading accepting information to the remote monitoring server and establishes connection with the upgrading server. The upgrade server transmits an upgrade program to the data transmission apparatus. And the data transmission device judges that the upgrading programs are all loaded, and when the upgrading programs are loaded, the data transmission device is disconnected with the upgrading server. And the data transmission device initiates a BootLoader request to the elevator master control so that the elevator master control remotely loads an upgrading program. Meanwhile, the data transmission device sends the total size of the upgrading program, the initial address, the CRC check of the upgrading program, the sum check of the upgrading program and other upgrading program information to the elevator master control. And the elevator master control carries out verification according to the upgrading program information, and returns verification success information to the data transmission device when the verification is passed. And after receiving the information of successful verification, the data transmission device writes the upgrading program into a backup address area of the elevator main control and reads the original program in an execution program address area of the elevator main control. The data transmission device judges whether the upgrade program is written in, and when the upgrade program is written in, the upgrade program is checked according to information such as CRC check codes. And when the verification success information of the elevator master control is acquired, marking the backup address area as an execution program address area. And meanwhile, the data transmission device judges whether the original program is completely read, and when the original program is completely read, a backup data packet is generated according to the original program and the elevator number and is re-connected with the upgrading server. And the data transmission device returns the successful upgrading information and the backup data packet to the upgrading server. And the upgrading server obtains an original program according to the backup data packet and outputs a comparison result document according to the original degree and the issued upgrading program.
The embodiment of the present invention further provides an elevator program upgrading system, referring to fig. 2, including:
the first module is used for loading an upgrading program from the server and acquiring the address mark information of the elevator master control;
the second module is used for determining a backup address area of the elevator main control according to the address mark information and writing the upgrading program into the backup address area of the elevator main control;
the third module is used for determining an executive program address area of the elevator master control according to the address mark information;
the fourth module is used for reading an original program from an execution program address area of the elevator main control;
the fifth module is used for generating a backup data packet according to the original program and sending the backup data packet to the server;
and the sixth module is used for marking the backup address area as an execution program address area to ensure that the elevator main control executes the upgrading program if the upgrading program is successfully written into the backup address area.
It can be understood that the contents in the above embodiment of the elevator program upgrading method are all applicable to the embodiment of the system, the functions specifically implemented by the embodiment of the system are the same as those in the embodiment of the elevator program upgrading method, and the beneficial effects achieved by the embodiment of the elevator program upgrading method are also the same as those achieved by the embodiment of the elevator program upgrading method.
Referring to fig. 3, fig. 3 is a schematic diagram of an elevator procedure upgrading device provided by one embodiment of the invention. The elevator program upgrading device of the embodiment of the invention comprises one or more control processors and a memory, and a control processor and a memory are taken as an example in fig. 3.
The control processor and the memory may be connected by a bus or other means, as exemplified by the bus connection in fig. 3.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the control processor, and these remote memories may be connected to the elevator program upgrade device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 3 does not constitute a limitation of elevator procedure upgrade apparatus and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The non-transitory software program and instructions required to implement the elevator program upgrading method applied to the elevator program upgrading device in the above-described embodiment are stored in a memory and, when executed by a control processor, perform the elevator program upgrading method applied to the elevator program upgrading device in the above-described embodiment.
Furthermore, an embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions that, when executed by one or more control processors, cause the one or more control processors to perform the method for upgrading an elevator program in the above-described method embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
Claims (10)
1. An elevator program upgrading method, characterized by comprising the steps of:
loading an upgrading program from a server and acquiring address mark information of elevator master control;
determining a backup address area of the elevator main control according to the address mark information, and writing the upgrading program into the backup address area of the elevator main control;
determining an executive program address area of an elevator main control according to the address mark information;
reading an original program from an execution program address area of an elevator master control;
generating a backup data packet according to the original program and sending the backup data packet to a server;
and if the upgrading program is successfully written into the backup address area, marking the backup address area as an execution program address area, so that the elevator main control executes the upgrading program.
2. The elevator program upgrade method according to claim 1, characterized in that the elevator program upgrade method further comprises the steps of:
acquiring an upgrading request from a server, wherein the upgrading request comprises attribute information of an upgrading program;
judging whether the upgrading program meets preset requirements or not according to the attribute information;
when the upgrading program does not meet the preset requirement, returning upgrading refusing information to the server;
and when the upgrading program meets the preset requirement, executing the step of loading the upgrading program from the server.
3. The elevator program upgrading method according to claim 2, wherein the attribute information includes an upgrade program version, an upgrade program occupation space, and an upgrade program type, and the determining whether the upgrade program meets preset requirements according to the attribute information includes the steps of:
judging whether the version of the upgrading program is consistent with a preset version of an elevator master control;
judging whether the space occupied by the upgrading program is larger than the preset storage space of the elevator master control or not;
judging whether the upgrading program type is a program type supportable by elevator master control;
and when the version of the upgrading program is consistent with the preset version, the occupied space of the upgrading program is not more than the preset storage space, and the type of the upgrading program is a program type which can be supported by an elevator master control, determining that the upgrading program meets the preset requirement, otherwise, determining that the upgrading program does not meet the preset requirement.
4. The elevator program upgrade method according to claim 1, characterized in that after said step of loading an upgrade program from a server, the elevator program upgrade method further comprises the steps of:
if the upgrading program is determined to be loaded completely, the upgrading program is disconnected with the server;
and if the original program is completely read, re-establishing connection with the server.
5. The elevator program upgrade method according to claim 2, characterized in that the upgrade request further includes an elevator number, said generating backup data packets according to the original program comprising the steps of:
and packaging the elevator number and the original program into the backup data packet according to a TCP protocol.
6. The elevator program upgrading method according to claim 3, wherein the upgrade program includes a plurality of program data packets, and the writing of the upgrade program to the backup address area of the elevator master includes the steps of:
sequencing a plurality of the program data packets;
and writing the program data packets into a backup address area of the elevator master control one by one according to the sequence number.
7. The elevator program upgrade method according to claim 6, wherein successful writing of the upgrade program to the backup address area is determined by:
detecting the space occupied by the current data in the backup address area;
when the current data occupation space is equal to the upgrade program occupation space, verifying the upgrade program according to a cyclic redundancy check code in the upgrade program;
and when the upgrading program passes the verification, determining that the upgrading program is successfully written into the backup address area.
8. An elevator program upgrade system, comprising:
the first module is used for loading an upgrading program from the server and acquiring the address mark information of the elevator master control;
the second module is used for determining a backup address area of the elevator main control according to the address mark information and writing the upgrading program into the backup address area of the elevator main control;
the third module is used for determining an executive program address area of the elevator master control according to the address mark information;
the fourth module is used for reading an original program from an execution program address area of the elevator main control;
the fifth module is used for generating a backup data packet according to the original program and sending the backup data packet to a server;
and the sixth module is used for marking the backup address area as an execution program address area if the upgrade program is successfully written into the backup address area, so that the elevator main control executes the upgrade program.
9. An elevator program upgrading apparatus, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the elevator program upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a processor-executable program is stored, characterized in that the processor-executable program is used to implement the elevator program upgrading method according to any one of claims 1 to 7 when executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111214634.3A CN113986606B (en) | 2021-10-19 | 2021-10-19 | Elevator program upgrading method, system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111214634.3A CN113986606B (en) | 2021-10-19 | 2021-10-19 | Elevator program upgrading method, system, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113986606A true CN113986606A (en) | 2022-01-28 |
CN113986606B CN113986606B (en) | 2024-07-12 |
Family
ID=79739297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111214634.3A Active CN113986606B (en) | 2021-10-19 | 2021-10-19 | Elevator program upgrading method, system, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113986606B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090796A (en) * | 2014-07-08 | 2014-10-08 | 成都万维图新信息技术有限公司 | Embedded device program updating method and system |
US20190278583A1 (en) * | 2017-03-30 | 2019-09-12 | Pax Computer Technology (Shenzhen) Co., Ltd | Method for updating firmware, terminal and computer readable non-volatile storage medium |
CN110462585A (en) * | 2017-03-29 | 2019-11-15 | 罗伯特·博世有限公司 | Method and apparatus for more new procedures |
CN112925679A (en) * | 2021-03-16 | 2021-06-08 | 南昌欧菲光电技术有限公司 | Firmware upgrading method, nonvolatile memory, computer storage medium and terminal |
-
2021
- 2021-10-19 CN CN202111214634.3A patent/CN113986606B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090796A (en) * | 2014-07-08 | 2014-10-08 | 成都万维图新信息技术有限公司 | Embedded device program updating method and system |
CN110462585A (en) * | 2017-03-29 | 2019-11-15 | 罗伯特·博世有限公司 | Method and apparatus for more new procedures |
US20190278583A1 (en) * | 2017-03-30 | 2019-09-12 | Pax Computer Technology (Shenzhen) Co., Ltd | Method for updating firmware, terminal and computer readable non-volatile storage medium |
CN112925679A (en) * | 2021-03-16 | 2021-06-08 | 南昌欧菲光电技术有限公司 | Firmware upgrading method, nonvolatile memory, computer storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN113986606B (en) | 2024-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569847B (en) | Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network | |
CN107608701A (en) | A kind of method and apparatus of firmware updating | |
US7805637B2 (en) | Network equipment and a method for monitoring the start up of such equipment | |
CN107179909A (en) | Method for upgrading software, device and computer-readable recording medium | |
CN105511929A (en) | Remote wireless upgrading method for equipment | |
US20160170735A1 (en) | Operating system updating method by using a checklist | |
CN110780909A (en) | Distributed embedded system upgrading method and device | |
US20140007176A1 (en) | System And Method For Upgrading A Multiprocessor Set-Top Box Device With A Monolithic Firmware Image | |
CN109614131A (en) | A kind of broadcasting equipment upgrading control system | |
CN112631628A (en) | Singlechip upgrading method, singlechip and storage medium | |
CN112181455A (en) | On-line upgrading method of microcontroller, microcontroller and storage medium | |
CN109992280A (en) | Method for upgrading embedded software, terminal device and storage device | |
CN114489732A (en) | Method and device for updating FPGA (field programmable Gate array) firmware of equipment and electronic equipment | |
CN113986606B (en) | Elevator program upgrading method, system, device and storage medium | |
CN112804071B (en) | Online upgrade method, upgrade file providing method, device and storage medium | |
CN111147597B (en) | File transmission method, terminal, electronic device and storage medium | |
CN116483409A (en) | Remote firmware updating method, system, electronic equipment and storage medium | |
CN117687695A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN116755735A (en) | Online upgrading method and device for embedded software, peritoneal dialysis instrument and storage medium | |
CN108001489B (en) | Control command interaction method, dispatching workstation and monitoring system | |
CN112764818B (en) | Device management method, device, electronic device and readable storage medium | |
CN116009908A (en) | Device upgrading method, device, computer device and computer readable storage medium | |
CN114579166A (en) | Component module upgrading method, component module and financial robot | |
CN114138542A (en) | Data configuration method of electric energy meter, electric energy meter and readable storage medium | |
CN111610991A (en) | Version upgrading method and device |
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 |