CN113979252B - Method and device for upgrading elevator main control program, elevator and storage medium - Google Patents

Method and device for upgrading elevator main control program, elevator and storage medium Download PDF

Info

Publication number
CN113979252B
CN113979252B CN202111214372.0A CN202111214372A CN113979252B CN 113979252 B CN113979252 B CN 113979252B CN 202111214372 A CN202111214372 A CN 202111214372A CN 113979252 B CN113979252 B CN 113979252B
Authority
CN
China
Prior art keywords
program
upgrading
upgrade
elevator
transmission unit
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
CN202111214372.0A
Other languages
Chinese (zh)
Other versions
CN113979252A (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.)
Hitachi Building Technology Guangzhou Co Ltd
Original Assignee
Hitachi Building Technology Guangzhou 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 Hitachi Building Technology Guangzhou Co Ltd filed Critical Hitachi Building Technology Guangzhou Co Ltd
Priority to CN202111214372.0A priority Critical patent/CN113979252B/en
Publication of CN113979252A publication Critical patent/CN113979252A/en
Application granted granted Critical
Publication of CN113979252B publication Critical patent/CN113979252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B66HOISTING; LIFTING; HAULING
    • B66BELEVATORS; ESCALATORS OR MOVING WALKWAYS
    • B66B1/00Control systems of elevators in general
    • B66B1/34Details, e.g. call counting devices, data transmission from car to control system, devices giving information to the control system
    • B66B1/3407Setting or modification of parameters of the control system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Quality & Reliability (AREA)
  • Indicating And Signalling Devices For Elevators (AREA)

Abstract

The application discloses an upgrade method of an elevator main control program, which comprises the following steps: receiving an upgrade request, wherein the upgrade request is sent from a data transmission unit; judging whether the upgrading request meets the upgrading requirement or not, and if the upgrading request meets the upgrading requirement, feeding back to the data transmission unit to allow upgrading; receiving an upgrade program, wherein the upgrade program is sent from the data transmission unit, the rate of receiving the upgrade program is increased to 256 bytes per packet when the elevator is in a maintenance state, and the rate of receiving the upgrade program is reduced to 16 bytes per packet when the elevator is not in the maintenance state; and checking the received upgrading program, and if the received upgrading program passes the checking, feeding back the received upgrading program to the data transmission unit to determine that the upgrading is successful. The application realizes the upgrade of the main control program of the elevator without the need of a technician to go to the position of the elevator, and reduces the influence of the upgrade main control program on the normal operation of the elevator.

Description

Method and device for upgrading elevator main control program, elevator and storage medium
Technical Field
The application relates to the field of elevators, in particular to an upgrading method and device of an elevator main control program, an elevator and a storage medium.
Background
Elevators are widely used in various situations. The main control program of the elevator can adjust various operation parameters of the elevator, thereby monitoring and controlling the overall operation condition of the elevator. Therefore, technicians need to upgrade the main control program of the elevator to improve the operation safety and reliability of the elevator. In the related art, a main method for upgrading a main control program of an elevator is manual upgrading, and specifically comprises the following steps: when the main control program needs to be upgraded, a technician manually goes to the place where the elevator is located, the elevator is stopped, professional equipment is used for burning the upgrade program of the main control program to the elevator when the elevator is stopped, and the elevator can be restored to normal operation after the burning is completed. The method for upgrading the elevator main control program needs to spend more time for technicians, and needs to stop when upgrading, thereby affecting the normal operation of the elevator.
Accordingly, the above-mentioned technical problems of the related art are to be solved.
Disclosure of Invention
The present application is directed to solving one of the technical problems in the related art. Therefore, the embodiment of the application provides an upgrading method and device for an elevator main control program, an elevator and a storage medium, and the elevator main control program can be upgraded without stopping and without manual operation.
According to an aspect of the embodiment of the application, there is provided an upgrade method of an elevator main control program, the method including:
receiving an upgrade request, wherein the upgrade request is sent from a data transmission unit;
judging whether the upgrading request meets the upgrading requirement or not, and if the upgrading request meets the upgrading requirement, feeding back to the data transmission unit to allow upgrading;
receiving an upgrade program, wherein the upgrade program is sent from the data transmission unit, the rate of receiving the upgrade program is increased to 256 bytes per packet when the elevator is in a maintenance state, and the rate of receiving the upgrade program is reduced to 16 bytes per packet when the elevator is not in the maintenance state;
and checking the received upgrading program, and if the received upgrading program passes the checking, feeding back the received upgrading program to the data transmission unit to determine that the upgrading is successful.
In one embodiment, the data transmission unit maintains a TCP connection with a server, receives an upgrade request from the server, and sends the upgrade request to an elevator master.
In one embodiment, the method further comprises:
receiving upgrade information sent by the server, wherein the upgrade information comprises an upgrade program, an upgrade program version, an upgrade program size and an upgrade section of the upgrade;
confirming whether the upgrade program version, the upgrade program size and the upgrade section are matched with the elevator, and if so, checking the upgrade program;
and if the verification is passed, sending the upgrading request to an elevator main control.
In one embodiment, the upgrade data includes address information of the server, and after the verification is passed, the method further includes:
and establishing a new TCP connection channel with the server according to the address information of the server, wherein the new TCP connection channel is used for transmitting the upgrading program.
In one embodiment, verifying the received upgrade program specifically includes:
checking the current data packet of the upgrade program;
after the data packet of the current upgrading program passes the verification, feeding back the data packet of the current upgrading program to the data transmission unit, wherein the data packet of the current upgrading program passes the verification;
and receiving the data packet of the next upgrading program.
In one embodiment, the determining whether the upgrade request meets an upgrade requirement includes:
judging whether the main control program corresponding to the program type of the upgrade program is being upgraded, if so,
judging whether the program version of the upgrading program is consistent with the version of the current main control program, if not, the upgrading request meets the upgrading requirement.
In one embodiment, after the receiving the upgrade program, the method further comprises:
and performing CRC (cyclic redundancy check) on the starting address and the length of the upgrading program, and deleting the upgrading program and re-receiving the upgrading program if the starting address and the length of the upgrading program do not pass the CRC.
According to an aspect of the embodiment of the present application, there is provided an upgrade apparatus for an elevator main control program, the apparatus including:
the first module is used for receiving an upgrade request, and the upgrade request is sent from the data transmission unit;
the second module is used for judging whether the upgrading request meets the upgrading requirement or not, and if the upgrading request meets the upgrading requirement, feeding back the upgrading request to the data transmission unit to allow upgrading;
the third module is used for receiving an upgrade program, and the upgrade program is sent from the data transmission unit, wherein the rate of receiving the upgrade program is increased when the elevator is in an overhaul state;
and the fourth module is used for checking the received upgrading program, and if the received upgrading program passes the check, the received upgrading program is fed back to the data transmission unit to determine that the upgrading is successful.
According to an aspect of the embodiment of the application, there is provided an elevator, comprising an upgrade apparatus of an elevator main control program as described in the previous embodiment.
According to an aspect of the embodiment of the present application, there is provided an upgrade apparatus for an elevator main control program, the apparatus including:
at least one processor;
at least one memory for storing at least one program;
the method of upgrading an elevator master control program as described in the previous embodiment is implemented when at least one of said programs is executed by at least one of said processors.
According to an aspect of the embodiments of the present application, there is provided a storage medium storing a program executable by a processor, which when executed by the processor, implements the method for upgrading an elevator main control program as described in the previous embodiments.
The method for upgrading the elevator main control program provided by the embodiment of the application has the beneficial effects that: according to the application, whether the upgrade request meets the upgrade requirement is judged after the upgrade request is received, if the upgrade request meets the upgrade requirement, the main control program is upgraded, so that the elevator main control program is upgraded without a technician going to the position where the elevator is located, meanwhile, the speed of receiving the upgrade program is improved when the elevator is in an overhaul state, and the speed of receiving the upgrade program is reduced when the elevator is not in an overhaul state, the speed of receiving the upgrade program is flexibly adjusted according to different states of the elevator, and the influence of the upgrade main control program on the normal operation of the elevator is reduced.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an upgrade method of an elevator main control program provided in an embodiment of the present application;
fig. 2 is another flowchart of an upgrade method of an elevator main control program provided in an embodiment of the present application;
fig. 3 is another flowchart of an upgrade method of an elevator main control program provided in an embodiment of the present application;
fig. 4 is a flowchart of another method for upgrading an elevator main control program according to an embodiment of the present application;
fig. 5 is a schematic diagram of data interaction between a data transmission unit and a server in an upgrade method of an elevator main control program according to an embodiment of the present application;
fig. 6 is a schematic diagram of data connection of main bodies of an upgrade method of an elevator main control program according to an embodiment of the present application;
fig. 7 is a schematic diagram of an upgrade apparatus for an elevator main control program according to an embodiment of the present application;
fig. 8 is another schematic diagram of an upgrade apparatus for an elevator main control program according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Elevators are widely used in various situations. The main control program of the elevator can adjust various operation parameters of the elevator, thereby monitoring and controlling the overall operation condition of the elevator. Therefore, technicians need to upgrade the main control program of the elevator to improve the operation safety and reliability of the elevator. In the related art, a main method for upgrading a main control program of an elevator is manual upgrading, and specifically comprises the following steps: when the main control program needs to be upgraded, a technician manually goes to the place where the elevator is located, the elevator is stopped, professional equipment is used for burning the upgrade program of the main control program to the elevator when the elevator is stopped, and the elevator can be restored to normal operation after the burning is completed. The method for upgrading the elevator main control program needs to spend more time for technicians, and needs to stop when upgrading, thereby affecting the normal operation of the elevator.
Therefore, in order to solve the above problems, the embodiment of the application provides an upgrade method for an elevator main control program, which can upgrade the elevator main control program without stopping and without manual operation.
Fig. 1 is a flowchart of an upgrade method of an elevator main control program according to an embodiment of the present application, where, as shown in fig. 1, the upgrade method of an elevator main control program according to an embodiment of the present application includes:
s101, receiving an upgrade request.
In step S101, an upgrade request is sent from the data transmission unit, including the program type and version of the upgrade program. The upgrade program is a new main control program which is obtained by technical management personnel after analyzing the data of the elevator running condition and can improve the elevator running performance or the elevator running safety, and the main control program of the elevator is upgraded into a safer and more stable main control program in a similar system updating mode. The upgrade program thus has different version numbers for indicating the version of the upgrade program and different types for displaying the model numbers of the different elevators to which the upgrade program is applicable.
S102, judging whether the upgrading request meets the upgrading requirement.
And S103, if the upgrade request meets the upgrade requirement, feeding back to the data transmission unit to allow the upgrade.
S104, receiving an upgrade program.
It should be noted that, in this embodiment, the upgrade program is received in packets, that is, the complete upgrade program is divided into a plurality of data packets with different sizes and numbered, and then each data packet is transmitted and received according to the numbered sequence. The sub-packet transmission program has the advantages that larger program sub-packets can be transmitted and received, occupied transmission bandwidth is reduced, when data packets are damaged due to unstable transmission, the current data packets can be retransmitted in time, and the stability of transmission of an upgrade program is improved.
In step S104, the upgrade program is sent from the data transmission unit, wherein the rate of receiving the upgrade program is increased to 256 bytes per packet when the elevator is in the maintenance state, and the rate of receiving the upgrade program is decreased to 16 bytes per packet when the elevator is not in the maintenance state. When the elevator is in the overhauling state, the elevator is not running. Thus, the rate of receiving the upgrade program can be increased, and when the elevator is in a running state, a higher rate of receiving the upgrade program can affect the running of a normal elevator, so that the rate of receiving the upgrade program can be reduced. Through practical tests and calculation, when the elevator is in a running state, the rate of receiving the upgrade program is 16 bytes per packet, which is the maximum rate which does not affect the normal running of the elevator.
S105, checking the received upgrading program, and if the received upgrading program passes the check, feeding back the received upgrading program to the data transmission unit to determine that the upgrading is successful.
Optionally, verifying the received upgrade program in step S105 includes: and performing CRC (cyclic redundancy check) on the starting address and the length of the upgrading program, and deleting the upgrading program and re-receiving the upgrading program if the starting address and the length of the upgrading program do not pass the CRC.
The upgrade method of the elevator main control program provided by the embodiment has the beneficial effects that: by judging whether the upgrade request meets the upgrade requirement after receiving the upgrade request, if the upgrade request meets the upgrade requirement, the main control program is upgraded, so that the elevator main control program is upgraded without a technician going to the elevator, meanwhile, the speed of receiving the upgrade program is improved when the elevator is in a maintenance state, the speed of receiving the upgrade program is reduced when the elevator is not in the maintenance state, the speed of receiving the upgrade program is flexibly adjusted according to different states of the elevator, and the influence of the upgrade main control program on the normal operation of the elevator is reduced.
Optionally, as shown in fig. 2, the specific way to check the received upgrade program in this embodiment is:
s201, checking the data packet of the current upgrading program.
In step S201, the verification of the data packet of the current upgrade program specifically includes: each time a packet of data is received, a check is made on that packet.
S202, after the data packet of the current upgrading program passes the verification, feeding back the data packet of the current upgrading program to the data transmission unit, and passing the verification.
In step S202, after the data packet of the current upgrade program passes the verification, the data packet fed back to the data transmission unit passes the verification, and the data transmission unit receives the information that the data packet of the current upgrade program passes the verification and then sends the next data packet, and the above operations are repeated.
S203, receiving a data packet of the next upgrading program.
Optionally, as shown in fig. 3, determining whether the upgrade request meets the upgrade requirement in the embodiment includes:
s301, judging whether a main control program corresponding to the program type of the upgrade program is being upgraded.
The function of judging whether the main control program corresponding to the program type of the upgrade program is being upgraded is to prevent the current main control program from being repeatedly upgraded under the condition of being upgraded.
S302, if the judgment result of the step S301 is yes, judging whether the program version of the upgrade program is consistent with the version of the current main control program.
The function of judging whether the program version of the upgrading program is consistent with the version of the current main control program is to prevent the main control program of the old version from replacing the main control program of the new version to upgrade, so that the performance and the safety of the elevator are degraded.
S303, if the judgment result in the step S302 is negative, determining that the upgrading request meets the upgrading requirement.
Through step S303, it is explained that the type of the main control program to be upgraded is consistent with the elevator, the elevator is not currently being upgraded, and the main control program to be upgraded is the main control program of the updated version, so that it can be determined that the upgrade request meets the upgrade requirement.
The above description describes the data interaction transmission between the elevator master control and the data transmission unit, and the following description describes the connection and data interaction situation between the data transmission unit and the external server.
Optionally, the data transmission unit in the application maintains a TCP connection with the server, and the data transmission unit receives the upgrade request from the server and sends the upgrade request to the elevator master control. The server comprises a remote monitoring server and a remote upgrading server.
Based on the TCP connection between the data transmission unit and the server in the above embodiment, the present application proposes another method for upgrading the elevator main control program, specifically, as shown in fig. 4:
s401, receiving upgrade information sent by a server.
In step S401, the upgrade information includes an upgrade program, an upgrade program version, an upgrade program size, and an upgrade section of the current upgrade.
S402, confirming whether the version, the size and the ascending section of the upgrading program are matched with the elevator, and if so, checking the upgrading program.
It should be noted that, the verification of the upgrade procedure in step S402 specifically includes: the data transmission unit receives the upgrade program in a subpacket mode, checks the data packet once after receiving the data packet of the upgrade program, if the data packet passes the check, the next step is carried out, and if the data packet does not pass the check, the current data packet is deleted and then the current data packet is received again.
S403, if the verification is passed, the upgrade request is sent to the elevator master control.
Optionally, the upgrade data includes address information of the server, and after the verification in step S403 is passed, the method further includes: and establishing a new TCP connection channel with the server according to the address information of the server, wherein the new TCP connection channel is used for transmitting the upgrade program. The function of establishing a new TCP connection channel in this embodiment is to transmit an upgrade program by a dedicated channel, so that other data transmission between the data transmission unit and the server is not interfered, and stability of transmission of the upgrade program is improved.
The above description describes the data interaction method and steps between the data transmission unit and the server of the present application, and the following describes the specific relationship between the data transmission unit, the remote monitoring server and the remote upgrading server. As shown in fig. 5:
the remote monitoring server is controlled by a technician, sends a signal for requesting upgrading to the data transmission unit (Data Transform Unit, DTU), and the Data Transmission Unit (DTU) responds to the signal and then is newly connected with a TCP link to connect to the remote upgrading server, so that a connection channel between the Data Transmission Unit (DTU) and the remote upgrading server is established. The remote upgrade server then issues the data packet of the upgrade program to a Data Transmission Unit (DTU), which receives the data packet of the upgrade program.
Fig. 6 is a data connection diagram of each main body of an upgrade method of an elevator main control program according to an embodiment of the present application. As shown in fig. 6, the remote monitoring server and the remote upgrading server are both connected with a Data Transmission Unit (DTU) in a 2G or 4G wireless network, and the Data Transmission Unit (DTU) is connected with an elevator master control by an RS 485. The RS485 connection is a standard connection mode for balancing the electrical characteristics of a driver and a receiver in a digital multipoint system, can effectively transmit signals under a remote condition and an environment with large electronic noise, and can connect a local network and a multi-branch communication link.
It should be noted that, the connection relationships between the remote monitoring server, the remote upgrading server, the Data Transmission Unit (DTU) and the elevator master control in the present application include, but are not limited to, the connection relationship shown in fig. 5, and other types of connection manners or connection relationships belong to the connection relationships between the remote monitoring server, the remote upgrading server, the Data Transmission Unit (DTU) and the elevator master control in the present application, which is not unduly limited in this specification.
Referring to fig. 7, the embodiment of the application further provides an upgrade apparatus for an elevator main control program, including:
a first module 701, configured to receive an upgrade request, where the upgrade request is sent from the data transmission unit, and the upgrade request includes a program type and a version of an upgrade program;
the second module 702 is configured to determine whether the upgrade request meets the upgrade requirement, and if the upgrade request meets the upgrade requirement, feed back to the data transmission unit to allow the upgrade;
a third module 703, configured to receive an upgrade program, where the upgrade program is sent from the data transmission unit, and when the elevator is in an overhauling state, the rate of receiving the upgrade program is increased;
and a fourth module 704, configured to check the received upgrade program, and if the check is passed, feed back to the data transmission unit that the upgrade is successful.
It can be seen that the content in the above method embodiment is applicable to the embodiment of the present device, and the functions specifically implemented by the embodiment of the present device are the same as those of the embodiment of the above method, and the beneficial effects achieved by the embodiment of the above method are the same as those achieved by the embodiment of the above method.
Referring to fig. 8, an embodiment of the present application provides an upgrade apparatus for an elevator main control program, including:
at least one processor 801;
at least one memory 802 for storing at least one program;
the at least one program, when executed by the at least one processor 801, causes the at least one processor 801 to implement the method of upgrading an elevator master control program of the foregoing embodiment.
Similarly, the content in the above method embodiment is applicable to the embodiment of the present device, and the functions specifically implemented by the embodiment of the present device are the same as those of the embodiment of the above method, and the beneficial effects achieved by the embodiment of the above method are the same as those achieved by the embodiment of the above method.
The embodiment of the application also provides an elevator, which comprises the device for upgrading the elevator main control program.
Similarly, the content in the above method embodiment is applicable to the elevator embodiment, and the functions specifically implemented by the elevator embodiment are the same as those of the above method embodiment, and the beneficial effects achieved by the method embodiment are the same as those achieved by the above method embodiment.
The embodiment of the application also provides a storage medium, wherein the storage medium stores a program which is used for realizing the upgrading method of the previous embodiment when being executed by a processor.
The content of the method embodiment described above is applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those of the method embodiment described above.
Similarly, the content in the above method embodiment is applicable to the present storage medium embodiment, and the specific functions of the present storage medium embodiment are the same as those of the above method embodiment, and the achieved beneficial effects are the same as those of the above method embodiment.
In some alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flowcharts of the present application are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed, and in which sub-operations described as part of a larger operation are performed independently.
Furthermore, while the application is described in the context of functional modules, it should be appreciated that, unless otherwise indicated, one or more of the functions and/or features may be integrated in a single physical device and/or software module or may be implemented in separate physical devices or software modules. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary to an understanding of the present application. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be apparent to those skilled in the art from consideration of their attributes, functions and internal relationships. Accordingly, one of ordinary skill in the art can implement the application as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative and are not intended to be limiting upon the scope of the application, which is to be defined in the appended claims and their full scope of equivalents.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium upon which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the foregoing description of the present specification, reference has been made to the terms "one embodiment/example", "another embodiment/example", "certain embodiments/examples", and the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the application, the scope of which is defined by the claims and their equivalents.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (6)

1. An upgrade method of an elevator main control program, which is characterized by comprising the following steps:
receiving an upgrade request, wherein the upgrade request is sent from a data transmission unit; the data transmission unit is connected with the server in a TCP (transmission control protocol) mode, receives an upgrading request from the server and sends the upgrading request to the elevator main control;
judging whether the upgrading request meets the upgrading requirement or not, and if the upgrading request meets the upgrading requirement, feeding back to the data transmission unit to allow upgrading; wherein, the judging whether the upgrade request meets the upgrade requirement comprises: judging whether a main control program corresponding to the program type of the upgrading program is being upgraded, if so, judging whether the program version of the upgrading program is consistent with the version of the current main control program, and if not, enabling the upgrading request to meet the upgrading requirement;
receiving an upgrade program, wherein the upgrade program is sent from the data transmission unit, the rate of receiving the upgrade program is increased to 256 bytes per packet when the elevator is in a maintenance state, and the rate of receiving the upgrade program is reduced to 16 bytes per packet when the elevator is not in the maintenance state; the data transmission unit divides the upgrading program into a plurality of data packets with different sizes, numbers each data packet, and transmits the data packets according to the number sequence of each data packet;
checking the received upgrade program, if the upgrade program passes the check, feeding back the upgrade program to the data transmission unit to determine that the upgrade is successful, and establishing a new TCP connection channel with the server by the data transmission unit according to the address information of the server, wherein the new TCP connection channel is used for transmitting the upgrade program;
the step of verifying the received upgrade program specifically includes:
checking the current data packet of the upgrade program;
after the data packet of the current upgrading program passes the verification, feeding back the data packet of the current upgrading program to the data transmission unit, wherein the data packet of the current upgrading program passes the verification;
and receiving the data packet of the next upgrading program according to the serial number sequence of the data packet.
2. The method for upgrading an elevator master control program according to claim 1, wherein after the receiving the upgrade program, the method further comprises:
and performing CRC (cyclic redundancy check) on the starting address and the length of the upgrading program, and deleting the upgrading program and re-receiving the upgrading program if the starting address and the length of the upgrading program do not pass the CRC.
3. An upgrade apparatus for an elevator main control program, the apparatus comprising:
the first module is used for receiving an upgrade request, and the upgrade request is sent from the data transmission unit; the data transmission unit is connected with the server in a TCP (transmission control protocol) mode, receives an upgrading request from the server and sends the upgrading request to the elevator main control;
the second module is used for judging whether the upgrading request meets the upgrading requirement or not, and if the upgrading request meets the upgrading requirement, feeding back the upgrading request to the data transmission unit to allow upgrading; wherein, the judging whether the upgrade request meets the upgrade requirement comprises: judging whether a main control program corresponding to the program type of the upgrading program is being upgraded, if so, judging whether the program version of the upgrading program is consistent with the version of the current main control program, and if not, enabling the upgrading request to meet the upgrading requirement;
the third module is used for receiving an upgrade program, and the upgrade program is sent from the data transmission unit, wherein the rate of receiving the upgrade program is increased to 256 bytes per packet when the elevator is in a maintenance state, and the rate of receiving the upgrade program is reduced to 16 bytes per packet when the elevator is not in the maintenance state; the data transmission unit divides the upgrading program into a plurality of data packets with different sizes, numbers each data packet, and transmits the data packets according to the number sequence of each data packet;
a fourth module, configured to check the received upgrade program, and if the upgrade program passes the check, feed back the upgrade to the data transmission unit to determine that the upgrade is successful, where the data transmission unit establishes a new TCP connection channel with the server according to the address information of the server, where the new TCP connection channel is used to transmit the upgrade program; the step of verifying the received upgrade program specifically includes: checking the current data packet of the upgrade program; after the data packet of the current upgrading program passes the verification, feeding back the data packet of the current upgrading program to the data transmission unit, wherein the data packet of the current upgrading program passes the verification; and receiving the data packet of the next upgrading program according to the serial number sequence of the data packet.
4. An elevator comprising the elevator master control program upgrading apparatus according to claim 3.
5. An upgrade apparatus for an elevator main control program, the apparatus comprising:
at least one processor;
at least one memory for storing at least one program;
the method of upgrading an elevator main control program according to any of claims 1-2, when at least one of said programs is executed by at least one of said processors.
6. A storage medium for an elevator master control program, characterized in that the storage medium stores a program executable by a processor, which when executed by the processor realizes the method of upgrading an elevator master control program according to any one of claims 1-2.
CN202111214372.0A 2021-10-19 2021-10-19 Method and device for upgrading elevator main control program, elevator and storage medium Active CN113979252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111214372.0A CN113979252B (en) 2021-10-19 2021-10-19 Method and device for upgrading elevator main control program, elevator and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111214372.0A CN113979252B (en) 2021-10-19 2021-10-19 Method and device for upgrading elevator main control program, elevator and storage medium

Publications (2)

Publication Number Publication Date
CN113979252A CN113979252A (en) 2022-01-28
CN113979252B true CN113979252B (en) 2023-09-26

Family

ID=79739255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111214372.0A Active CN113979252B (en) 2021-10-19 2021-10-19 Method and device for upgrading elevator main control program, elevator and storage medium

Country Status (1)

Country Link
CN (1) CN113979252B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677946A (en) * 2013-12-30 2014-03-26 广州日滨科技发展有限公司 Method and system for updating elevator device control programs
CN109189461A (en) * 2018-11-27 2019-01-11 上海辛格林纳新时达电机有限公司 The programme upgrade method and elevator control system and lift facility of elevator control system
CN109292559A (en) * 2017-07-24 2019-02-01 北京云迹科技有限公司 Elevator long distance upgrade-system and method
CN111623475A (en) * 2020-04-27 2020-09-04 海信(山东)空调有限公司 Method and device for upgrading outdoor EEPROM of air conditioner, storage medium and air conditioner

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569048A (en) * 2018-06-06 2019-12-13 奥的斯电梯公司 Automatic upgrade on total running count data on availability of new software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677946A (en) * 2013-12-30 2014-03-26 广州日滨科技发展有限公司 Method and system for updating elevator device control programs
CN109292559A (en) * 2017-07-24 2019-02-01 北京云迹科技有限公司 Elevator long distance upgrade-system and method
CN109189461A (en) * 2018-11-27 2019-01-11 上海辛格林纳新时达电机有限公司 The programme upgrade method and elevator control system and lift facility of elevator control system
CN111623475A (en) * 2020-04-27 2020-09-04 海信(山东)空调有限公司 Method and device for upgrading outdoor EEPROM of air conditioner, storage medium and air conditioner

Also Published As

Publication number Publication date
CN113979252A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN109101261A (en) A kind of the remote online upgrade method and system of data acquisition transmission instrument terminal
CN107015817B (en) Method for upgrading equipment firmware in air
CN112104487B (en) Remote upgrading method of Internet of things terminal, internet of things master station and storage medium
US11463198B2 (en) Security module for a serial communications device
CN101472050A (en) Method and system for updating software, digital television receive terminal and server
CN110399149A (en) A kind of remote upgrade method under low-power consumption scene
CN110554929B (en) Data verification method, device, computer equipment and storage medium
CN111224837B (en) Method and system for automatically identifying CAN communication baud rate of vehicle ECU
CN112416408A (en) Firmware upgrading method, device, equipment and computer readable storage medium
CN111752579A (en) Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN113979252B (en) Method and device for upgrading elevator main control program, elevator and storage medium
CN102318269B (en) Method for communication between two automotive electronic computers and associated device
CN101369879A (en) Method and apparatus for requesting data retransmission
CN112395237A (en) Method and system for communication between at least two controllers
US9525594B2 (en) Method for combined unicast/multicast software transmission
CN113407212A (en) Remote upgrading method and device, terminal equipment and storage medium
WO2024082491A1 (en) Method and system for quickly upgrading fan device, and device and medium
CN106102101A (en) Processing method that a kind of WAP is connected with Radio Access Controller and system
CN110413467A (en) A kind of adjustment method, device, equipment and the medium of server B IOS
CN107171915B (en) Communication protocol changing method and device
CN105516255A (en) Method for pushing configuration from MoCA central office to terminal device and corresponding device
CN110149389B (en) Data transmission control method and system of holographic display device
CN114978898A (en) Data transmission control method and device, head-up display and storage medium
CN114500508A (en) Gas meter upgrading method and device and electronic equipment
CN112714466B (en) Service quality measuring method, device and user plane function

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