CN109002317B - PCBA firmware upgrading method and system and PCBA - Google Patents

PCBA firmware upgrading method and system and PCBA Download PDF

Info

Publication number
CN109002317B
CN109002317B CN201810676945.3A CN201810676945A CN109002317B CN 109002317 B CN109002317 B CN 109002317B CN 201810676945 A CN201810676945 A CN 201810676945A CN 109002317 B CN109002317 B CN 109002317B
Authority
CN
China
Prior art keywords
firmware
pcba
file data
area
backup area
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
CN201810676945.3A
Other languages
Chinese (zh)
Other versions
CN109002317A (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.)
Shanghai Yogo Robot Co Ltd
Original Assignee
Shanghai Yogo Robot 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 Shanghai Yogo Robot Co Ltd filed Critical Shanghai Yogo Robot Co Ltd
Priority to CN201810676945.3A priority Critical patent/CN109002317B/en
Publication of CN109002317A publication Critical patent/CN109002317A/en
Application granted granted Critical
Publication of CN109002317B publication Critical patent/CN109002317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • 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/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1048Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using arrangements adapted for a specific error detection or correction feature
    • G06F11/1056Updating check bits on partial write, i.e. read/modify/write
    • 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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a PCBA firmware upgrading method and system, and a PCBA, wherein the PCBA firmware upgrading method comprises the following steps: receiving firmware upgrading file data sent by a server; storing the firmware upgrading file data to a backup area; resetting and restarting the PCBA, and detecting whether firmware needing to be updated exists in the backup area; when the firmware which needs to be updated exists and the updating condition is met, copying the firmware updating file data from the backup area to the operating area, rewriting the configuration file of the PCBA based on the firmware updating file data of the operating area, and starting the PCBA; when the firmware needing to be updated exists but the upgrading condition is not met, directly starting the PCBA; and when the firmware which needs to be updated does not exist, verifying the firmware upgrading file data of the backup area and the operating area, and starting the PCBA after the verification is finished. The PCBA firmware upgrading method and system greatly simplify the PCBA firmware upgrading operation and reduce the PCBA firmware upgrading cost.

Description

PCBA firmware upgrading method and system and PCBA
Technical Field
The invention relates to the technical field of data processing, in particular to a PCBA firmware upgrading method and system and a PCBA.
Background
After the PCBA is installed, when maintenance in aspects such as performance improvement, Bug repair, or addition of a new function is required, a mode of upgrading the firmware of the PCBA is generally adopted.
In the prior art, the method for upgrading the PCBA firmware mainly includes the following two steps:
(1) ICP (in Circuit Programming) PCBA firmware upgrading method
The method needs to repeatedly disassemble and assemble the equipment single board, provides an upgrading tool for a customer, consumes labor and time, consumes materials, and easily damages equipment hardware.
(2) IAP (in Application programming) PCBA firmware upgrading method
Although the method reduces the upgrading difficulty, the upgrading process can be failed due to sudden transmission interruption, and even the system can be paralyzed.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a PCBA firmware upgrade method and system, and a PCBA, which greatly simplify the operation of the PCBA firmware upgrade, reduce the cost of the PCBA firmware upgrade, and avoid the problem of system crash caused by upgrade failure.
To achieve the above and other related objects, the present invention provides a method for upgrading firmware of a PCBA, including the following steps: receiving firmware upgrading file data sent by a server; storing the firmware upgrading file data to a backup area; resetting and restarting the PCBA, and detecting whether firmware needing to be updated exists in the backup area; when the firmware which needs to be updated exists and the updating condition is met, copying the firmware updating file data from the backup area to the operating area, rewriting the configuration file of the PCBA based on the firmware updating file data of the operating area, and starting the PCBA; when the firmware needing to be updated exists but the upgrading condition is not met, directly starting the PCBA; and when the firmware which needs to be updated does not exist, verifying the firmware upgrading file data of the backup area and the operating area, and starting the PCBA after the verification is finished.
In an embodiment of the present invention, verifying the firmware upgrade file data of the backup area and the operating area includes the following steps:
judging whether the firmware upgrading file data of the backup area and the firmware upgrading file data of the operation area are consistent;
if the firmware upgrading file data of the backup area and the operating area are inconsistent, respectively checking the firmware upgrading file data of the backup area and the firmware upgrading file data of the operating area;
when the firmware upgrading file data of the operation area passes the verification, copying the firmware upgrading file data of the operation area to the backup area; and when the firmware upgrading file data of the backup area passes the verification, copying the firmware upgrading file data of the backup area to the operation area.
In an embodiment of the present invention, the verification method of the firmware upgrade file data in the backup area and the operating area includes, but is not limited to, one or a combination of the following verification methods: cumulative summation, parity check, CRC cyclic redundancy check, bcc exclusive-or check, md5 check, and digital signature.
Correspondingly, the invention provides a PCBA firmware upgrading system, which comprises a receiving module, a storage module, a detection module, an upgrading starting module, a direct starting module and a checking starting module;
the receiving module is used for receiving firmware upgrading file data sent by the server;
the storage module is used for storing the firmware upgrading file data to a backup area;
the detection module is used for resetting and restarting the PCBA and detecting whether the firmware needing to be updated exists in the backup area;
the upgrade starting module is used for copying the firmware upgrade file data from the backup area to the operation area when the firmware to be updated exists and the upgrade condition is met, rewriting the configuration file of the PCBA based on the firmware upgrade file data of the operation area, and starting the PCBA;
the direct starting module is used for directly starting the PCBA when the firmware needing to be updated exists but does not meet the upgrading condition;
the verification starting module is used for verifying the firmware upgrading file data of the backup area and the operation area when the firmware needing to be updated does not exist, and starting the PCBA after the verification is finished.
In an embodiment of the present invention, when verifying the firmware upgrade file data in the backup area and the operating area, the verification start module executes the following steps:
judging whether the firmware upgrading file data of the backup area and the firmware upgrading file data of the operation area are consistent;
if the firmware upgrading file data of the backup area and the operating area are inconsistent, respectively checking the firmware upgrading file data of the backup area and the firmware upgrading file data of the operating area;
when the firmware upgrading file data of the operation area passes the verification, copying the firmware upgrading file data of the operation area to the backup area; and when the firmware upgrading file data of the backup area passes the verification, copying the firmware upgrading file data of the backup area to the operation area.
In an embodiment of the present invention, the method for verifying the firmware upgrade file data in the backup area and the operating area in the verification start module includes, but is not limited to, one or a combination of the following verification methods: cumulative summation, parity check, CRC cyclic redundancy check, bcc exclusive-or check, md5 check, and digital signature.
The present invention provides a PCBA, comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored by the memory to cause the PCBA to perform the PCBA firmware upgrade method described above.
In an embodiment of the invention, the PCBA is any integrated communication board in the elevator system.
In an embodiment of the invention, the processor is a mcu processor.
Finally, the invention provides a PCBA firmware upgrading system, which comprises the PCBA and a server;
the server is used for sending firmware upgrading file data to the PCBA.
In an embodiment of the invention, the PCBA and the server communicate via a wireless communication network and/or a mobile communication network.
As described above, the PCBA firmware upgrading method and system and the PCBA of the present invention have the following beneficial effects:
(1) the upgrading operation of the PCBA firmware is greatly simplified, and the upgrading cost of the PCBA firmware is reduced;
(2) even if the upgrade fails, the system operation is not influenced, so that the problem of system paralysis caused by the upgrade failure is avoided;
(3) and a backup and check mechanism is added, and the effectiveness of the upgrading operation is ensured.
Drawings
FIG. 1 is a flow chart illustrating a PCBA firmware upgrade method in accordance with an embodiment of the present invention;
FIG. 2 is a block diagram of a PCBA firmware upgrade system according to an embodiment of the present invention;
FIG. 3 is a schematic view of a PCBA according to the present invention;
FIG. 4 is a block diagram illustrating a PCBA firmware upgrade system in another embodiment of the present invention.
Description of the element reference numerals
21 receiving module
22 memory module
23 detection module
24 upgrade starting module
25 direct start module
26 verification start module
31 processor
32 memory
41 PCBA
42 server
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
The PCBA firmware upgrading method and system and the PCBA greatly simplify the PCBA firmware upgrading operation, reduce the PCBA firmware upgrading cost and avoid the problem of system paralysis even if the upgrading fails.
As shown in fig. 1, in an embodiment, the PCBA firmware upgrade method of the present invention includes the following steps:
and step S1, receiving the firmware upgrade file data sent by the server.
Specifically, the server may send firmware upgrade file data to the PCBA at irregular intervals according to the PCBA firmware upgrade requirement. Preferably, the server and the PCBA are in data communication via wireless means such as WiFi, 3G, 4G, etc.
And step S2, storing the firmware upgrade file data to a backup area.
Specifically, a backup area and an operation area are arranged in the PCBA, so that backup of firmware upgrading file data is realized, and effectiveness of upgrading operation is guaranteed.
And step S3, resetting and restarting the PCBA, and detecting whether the firmware needing to be updated exists in the backup area.
Specifically, the power-on reset restart of the PCBA is controlled, and before the PCBA is started, whether firmware which needs to be updated exists in the backup area is detected first, so as to determine whether firmware upgrade needs to be performed on the PCBA currently.
And step S4, when the firmware needing to be updated exists and the upgrading condition is met, copying the firmware upgrading file data from the backup area to the operating area, rewriting the configuration file of the PCBA based on the firmware upgrading file data of the operating area, and starting the PCBA.
Specifically, when the firmware which needs to be updated exists and the upgrade condition is met, the firmware needs to be upgraded first, and the PCBA is started after the upgrade. Copying the firmware upgrading file data from the backup area to the operation area, updating the configuration file of the PCBA based on the firmware upgrading file data of the operation area, and starting the PCBA according to the updated configuration file, thereby completing the firmware upgrading of the PCBA.
The upgrading condition comprises a hardware upgrading condition and a software upgrading condition, the hardware upgrading condition comprises a memory requirement, a processor processing capacity and the like, and the software upgrading condition comprises a software version requirement, a software type requirement and the like. And when the software and the hardware of the PCBA both meet the upgrading requirements, judging that the upgrading conditions are met.
And step S5, when the firmware needing to be updated exists but the upgrading condition is not met, directly starting the PCBA.
Specifically, when the firmware which needs to be updated exists but the upgrade condition is not met, the PCBA is directly started according to the original configuration file of the PCBA without executing the firmware upgrade operation.
And step S6, when the firmware which needs to be updated does not exist, verifying the firmware upgrade file data of the backup area and the operating area, and starting the PCBA after the verification is finished.
Specifically, when the backup area does not have firmware that needs to be updated, it indicates that the PCBA does not currently have a firmware upgrade requirement. At this time, the firmware upgrading file data of the backup area and the operating area need to be checked to ensure the effectiveness of subsequent firmware upgrading and avoid firmware upgrading failure caused by file storage errors.
In an embodiment of the present invention, verifying the firmware upgrade file data of the backup area and the operating area includes the following steps:
61) and judging whether the firmware upgrading file data of the backup area and the firmware upgrading file data of the operating area are consistent or not.
Specifically, comparing firmware upgrade file data of the backup area and the operating area, and judging whether the firmware upgrade file data and the operating area are the same; if so, no processing need be performed.
62) And if the firmware upgrading file data of the backup area and the operating area are inconsistent, respectively checking the firmware upgrading file data of the backup area and the firmware upgrading file data of the operating area.
Specifically, when the firmware upgrade file data in the backup area and the firmware upgrade file data in the operating area are different, the firmware upgrade file data in the backup area and the firmware upgrade file data in the operating area need to be checked respectively.
In an embodiment of the present invention, the verification method of the firmware upgrade file data in the backup area and the operating area includes, but is not limited to, one or a combination of the following verification methods: cumulative summation, parity check, CRC cyclic redundancy check, bcc exclusive-or check, md5 check, and digital signature.
63) When the firmware upgrading file data of the operation area passes the verification, copying the firmware upgrading file data of the operation area to the backup area; and when the firmware upgrading file data of the backup area passes the verification, copying the firmware upgrading file data of the backup area to the operation area.
Specifically, after the verification is completed, the firmware upgrade file data passing the verification is copied and stored, and the firmware upgrade file data failing the verification is discarded, so that the accuracy of the firmware upgrade file data is ensured.
As shown in FIG. 2, in one embodiment, the PCBA firmware upgrade system of the present invention includes a receiving module 21, a storing module 22, a detecting module 23, an upgrade starting module 24, a direct starting module 25, and a verification starting module 26.
The receiving module 21 is configured to receive firmware upgrade file data sent by a server.
Specifically, the server may send firmware upgrade file data to the PCBA at irregular intervals according to the PCBA firmware upgrade requirement. Preferably, the server and the PCBA are in data communication via wireless means such as WiFi, 3G, 4G, etc.
The storage module 22 is connected to the receiving module 21, and is configured to store the firmware upgrade file data in the backup area.
Specifically, a backup area and an operation area are arranged in the PCBA, so that backup of firmware upgrading file data is realized, and effectiveness of upgrading operation is guaranteed.
The detection module 23 is connected to the storage module 22, and is configured to reset and restart the PCBA, and detect whether the firmware that needs to be updated exists in the backup area.
Specifically, the power-on reset restart of the PCBA is controlled, and before the PCBA is started, whether firmware which needs to be updated exists in the backup area is detected first, so as to determine whether firmware upgrade needs to be performed on the PCBA currently.
The upgrade starting module 24 is connected to the detection module 23, and configured to copy the firmware upgrade file data from the backup area to the operating area when the firmware that needs to be updated exists and the upgrade condition is met, rewrite the configuration file of the PCBA based on the firmware upgrade file data in the operating area, and start the PCBA.
Specifically, when the firmware which needs to be updated exists and the upgrade condition is met, the firmware needs to be upgraded first, and the PCBA is started after the upgrade. Copying the firmware upgrading file data from the backup area to the operation area, updating the configuration file of the PCBA based on the firmware upgrading file data of the operation area, and starting the PCBA according to the updated configuration file, thereby completing the firmware upgrading of the PCBA.
The upgrading condition comprises a hardware upgrading condition and a software upgrading condition, the hardware upgrading condition comprises a memory requirement, a processor processing capacity and the like, and the software upgrading condition comprises a software version requirement, a software type requirement and the like. And when the software and the hardware of the PCBA both meet the upgrading requirements, judging that the upgrading conditions are met.
The direct start module 25 is connected to the detection module 23, and is configured to directly start the PCBA when the firmware that needs to be updated exists but the upgrade condition is not satisfied.
Specifically, when the firmware which needs to be updated exists but the upgrade condition is not met, the PCBA is directly started according to the original configuration file of the PCBA without executing the firmware upgrade operation.
The verification starting module 26 is connected to the detection module 23, and is configured to, when there is no firmware that needs to be updated, verify the firmware upgrade file data in the backup area and the operating area, and start the PCBA after verification is completed.
Specifically, when the backup area does not have firmware that needs to be updated, it indicates that the PCBA does not currently have a firmware upgrade requirement. At this time, the firmware upgrading file data of the backup area and the operating area need to be checked to ensure the effectiveness of subsequent firmware upgrading and avoid firmware upgrading failure caused by file storage errors.
In an embodiment of the present invention, verifying the firmware upgrade file data of the backup area and the operating area includes the following steps:
61) and judging whether the firmware upgrading file data of the backup area and the firmware upgrading file data of the operating area are consistent or not.
Specifically, comparing firmware upgrade file data of the backup area and the operating area, and judging whether the firmware upgrade file data and the operating area are the same; if so, no processing need be performed.
62) And if the firmware upgrading file data of the backup area and the operating area are inconsistent, respectively checking the firmware upgrading file data of the backup area and the firmware upgrading file data of the operating area.
Specifically, when the firmware upgrade file data in the backup area and the firmware upgrade file data in the operating area are different, the firmware upgrade file data in the backup area and the firmware upgrade file data in the operating area need to be checked respectively.
In an embodiment of the present invention, the verification method of the firmware upgrade file data in the backup area and the operating area includes, but is not limited to, one or a combination of the following verification methods: cumulative summation, parity check, CRC cyclic redundancy check, bcc exclusive-or check, md5 check, and digital signature.
63) When the firmware upgrading file data of the operation area passes the verification, copying the firmware upgrading file data of the operation area to the backup area; and when the firmware upgrading file data of the backup area passes the verification, copying the firmware upgrading file data of the backup area to the operation area.
Specifically, after the verification is completed, the firmware upgrade file data passing the verification is copied and stored, and the firmware upgrade file data failing the verification is discarded, so that the accuracy of the firmware upgrade file data is ensured.
It should be noted that the division of the modules of the above system is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the x module may be a processing element that is set up separately, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the x module may be called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, the modules may be integrated together and implemented in the form of a System-on-a-Chip (SOC).
As shown in fig. 3, in one embodiment, the PCBA of the present invention includes: a processor 31 and a memory 32.
The memory 32 is used for storing computer programs.
The memory 32 includes: various media that can store program codes, such as ROM, RAM, magnetic disk, U-disk, memory card, or optical disk.
The processor 31 is coupled to the memory 32 and is configured to execute the computer program stored in the memory 32 to cause the PCBA to perform the PCBA firmware upgrade method described above.
Preferably, the Processor 31 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
In an embodiment of the present invention, the processor 31 is a mcu processor. Preferably, an STM32 processor is employed.
In an embodiment of the invention, the PCBA is any integrated communication board in the elevator system, thereby realizing online upgrade of the elevator control system.
As shown in FIG. 4, in one embodiment, the PCBA firmware upgrade system of the present invention includes the PCBA41 and the server 42 described above.
The server 42 is used to send firmware upgrade file data to the PCBA 41.
In one embodiment of the invention, the PCBA41 communicates with the server 42 via a wireless communication network, such as WiFi, or a mobile communication network, such as 3G, 4G.
In conclusion, the PCBA firmware upgrading method and system and the PCBA greatly simplify the PCBA firmware upgrading operation and reduce the PCBA firmware upgrading cost; even if the upgrade fails, the system operation is not influenced, so that the problem of system paralysis caused by the upgrade failure is avoided; and a backup and check mechanism is added, and the effectiveness of the upgrading operation is ensured. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (9)

1. A PCBA firmware upgrade method is characterized in that: the method comprises the following steps:
receiving firmware upgrading file data sent by a server;
storing the firmware upgrading file data to a backup area;
resetting and restarting the PCBA, and detecting whether firmware needing to be updated exists in the backup area;
when the firmware which needs to be updated exists and the updating condition is met, copying the firmware updating file data from the backup area to the operating area, rewriting the configuration file of the PCBA based on the firmware updating file data of the operating area, and starting the PCBA;
when the firmware needing to be updated exists but the upgrading condition is not met, directly starting the PCBA;
when the firmware which needs to be updated does not exist, verifying the firmware upgrading file data of the backup area and the operating area, and starting the PCBA after the verification is finished;
the verification of the firmware upgrading file data of the backup area and the operation area comprises the following steps:
judging whether the firmware upgrading file data of the backup area and the firmware upgrading file data of the operation area are consistent;
if the firmware upgrading file data of the backup area and the operating area are inconsistent, respectively checking the firmware upgrading file data of the backup area and the firmware upgrading file data of the operating area;
when the firmware upgrading file data of the operation area passes the verification, copying the firmware upgrading file data of the operation area to the backup area; and when the firmware upgrading file data of the backup area passes the verification, copying the firmware upgrading file data of the backup area to the operation area.
2. The PCBA firmware upgrade method of claim 1, wherein: the verification method of the firmware upgrade file data of the backup area and the operating area includes, but is not limited to, one or a combination of the following verification methods: cumulative summation, parity check, CRC cyclic redundancy check, bcc exclusive-or check, md5 check, and digital signature.
3. A PCBA firmware upgrade system, characterized by: the system comprises a receiving module, a storage module, a detection module, an upgrading starting module, a direct starting module and a checking starting module;
the receiving module is used for receiving firmware upgrading file data sent by the server;
the storage module is used for storing the firmware upgrading file data to a backup area;
the detection module is used for resetting and restarting the PCBA and detecting whether the firmware needing to be updated exists in the backup area;
the upgrade starting module is used for copying the firmware upgrade file data from the backup area to the operation area when the firmware to be updated exists and the upgrade condition is met, rewriting the configuration file of the PCBA based on the firmware upgrade file data of the operation area, and starting the PCBA;
the direct starting module is used for directly starting the PCBA when the firmware needing to be updated exists but does not meet the upgrading condition;
the verification starting module is used for verifying the firmware upgrading file data of the backup area and the operation area when the firmware needing to be updated does not exist, and starting the PCBA after the verification is finished;
the verification of the firmware upgrading file data of the backup area and the operation area comprises the following steps:
judging whether the firmware upgrading file data of the backup area and the firmware upgrading file data of the operation area are consistent;
if the firmware upgrading file data of the backup area and the operating area are inconsistent, respectively checking the firmware upgrading file data of the backup area and the firmware upgrading file data of the operating area;
when the firmware upgrading file data of the operation area passes the verification, copying the firmware upgrading file data of the operation area to the backup area; and when the firmware upgrading file data of the backup area passes the verification, copying the firmware upgrading file data of the backup area to the operation area.
4. The PCBA firmware upgrade system as claimed in claim 3, wherein: the method for verifying the firmware upgrade file data of the backup area and the operating area by the verification starting module includes, but is not limited to, one or a combination of the following verification methods: cumulative summation, parity check, CRC cyclic redundancy check, bcc exclusive-or check, md5 check, and digital signature.
5. A PCBA, comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the memory-stored computer program to cause the PCBA to perform the PCBA firmware upgrade method of any of claims 1-2.
6. The PCBA, according to claim 5, wherein: the PCBA is any integrated communication board in the elevator system.
7. The PCBA, according to claim 5, wherein: the processor adopts a micro-control unit processor.
8. A PCBA firmware upgrade system, characterized by: including the PCBA of one of claims 5-7 and a server;
the server is used for sending firmware upgrading file data to the PCBA.
9. The PCBA firmware upgrade system as claimed in claim 8, wherein: the PCBA communicates with the server over a wireless communication network and/or a mobile communication network.
CN201810676945.3A 2018-06-27 2018-06-27 PCBA firmware upgrading method and system and PCBA Active CN109002317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810676945.3A CN109002317B (en) 2018-06-27 2018-06-27 PCBA firmware upgrading method and system and PCBA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810676945.3A CN109002317B (en) 2018-06-27 2018-06-27 PCBA firmware upgrading method and system and PCBA

Publications (2)

Publication Number Publication Date
CN109002317A CN109002317A (en) 2018-12-14
CN109002317B true CN109002317B (en) 2022-01-18

Family

ID=64600216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810676945.3A Active CN109002317B (en) 2018-06-27 2018-06-27 PCBA firmware upgrading method and system and PCBA

Country Status (1)

Country Link
CN (1) CN109002317B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716723A (en) * 2019-09-25 2020-01-21 天津华来科技有限公司 Firmware upgrading method and system
CN113495746B (en) * 2021-05-31 2024-02-02 杭州华橙软件技术有限公司 Program upgrading method, device, medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461654A (en) * 2014-12-27 2015-03-25 西安大唐电信有限公司 OBD equipment function unit and firmware classification optional upgrading method
CN105740034A (en) * 2016-04-13 2016-07-06 深圳市高巨创新科技开发有限公司 System and method for upgrading firmware of MCU on line
CN105912356A (en) * 2016-03-31 2016-08-31 武汉光迅科技股份有限公司 Optical module firmware program online upgrade method supporting version fallback
CN106569847A (en) * 2016-10-14 2017-04-19 数源科技股份有限公司 Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network
CN107453925A (en) * 2017-09-21 2017-12-08 山东康威通信技术股份有限公司 Remote firmware updating method and cloud platform based on multistage communication platform
CN107608705A (en) * 2017-09-29 2018-01-19 深圳市瑞科慧联科技有限公司 A kind of wireless WIFI video equipments and its firmware upgrade method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456246C (en) * 2007-01-23 2009-01-28 北京映翰通网络技术有限公司 Method and device for updating firmware program
CN101425018B (en) * 2008-12-05 2011-11-23 深圳创维数字技术股份有限公司 Embedded firmware upgrading method and device based on sectional form
CN104375844A (en) * 2013-08-12 2015-02-25 中兴通讯股份有限公司 Firmware upgrading method and device
CN103455354B (en) * 2013-09-06 2017-04-12 南京南自信息技术有限公司 Method and equipment for preventing hardware update from failing
CN104484200B (en) * 2014-12-09 2018-05-25 小米科技有限责任公司 The method and device upgraded to firmware
US20160291967A1 (en) * 2015-03-30 2016-10-06 Konica Minolta Laboratory U.S.A., Inc. Method and system for updating firmware
US10097563B2 (en) * 2016-05-04 2018-10-09 Gbs Laboratories, Llc Reliable and secure firmware update with a dynamic validation for internet of things (IoT) devices
CN107908496A (en) * 2017-11-21 2018-04-13 东峡大通(北京)管理咨询有限公司 For the method and MCU recovered automatically after the error of MCU firmwares

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461654A (en) * 2014-12-27 2015-03-25 西安大唐电信有限公司 OBD equipment function unit and firmware classification optional upgrading method
CN105912356A (en) * 2016-03-31 2016-08-31 武汉光迅科技股份有限公司 Optical module firmware program online upgrade method supporting version fallback
CN105740034A (en) * 2016-04-13 2016-07-06 深圳市高巨创新科技开发有限公司 System and method for upgrading firmware of MCU on line
CN106569847A (en) * 2016-10-14 2017-04-19 数源科技股份有限公司 Method for realizing IAP remote upgrade through vehicle-mounted system based on mobile network
CN107453925A (en) * 2017-09-21 2017-12-08 山东康威通信技术股份有限公司 Remote firmware updating method and cloud platform based on multistage communication platform
CN107608705A (en) * 2017-09-29 2018-01-19 深圳市瑞科慧联科技有限公司 A kind of wireless WIFI video equipments and its firmware upgrade method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
New testing approach using near electromagnetic field probing intending to upgrade in-circuit testing of high density PCBAs;Nabil El Belghiti Alaoui 等;《IEEE》;20180621;第1-7页 *
基于嵌入式移动智能终端固件升级系统的设计与实现;朱琼;《中国优秀硕士学位论文全文数据库 信息科技辑》;20141115;I138-139 *

Also Published As

Publication number Publication date
CN109002317A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
US20210124574A1 (en) Techniques for updating a file using a multi-version patch file
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
US11163886B2 (en) Information handling system firmware bit error detection and correction
US20110320794A1 (en) Flash System And Method For Updating The Flash System
CN106775610B (en) Electronic equipment starting method and electronic equipment
WO2016206514A1 (en) Startup processing method and device
KR20170040734A (en) Electronic system with update control mechanism and method of operation thereof
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
US20150154091A1 (en) Bios maintenance method
CN109002317B (en) PCBA firmware upgrading method and system and PCBA
CN112015447B (en) System updating method and device of electronic equipment, electronic equipment and storage medium
CN113805925A (en) Online upgrading method, device, equipment and medium for distributed cluster management software
CN109933374B (en) Computer starting method
CN116932010B (en) System firmware upgrading method, device and server
CN114489732A (en) Method and device for updating FPGA (field programmable Gate array) firmware of equipment and electronic equipment
CN106909382B (en) Method and device for outputting different types of system starting information
CN100476745C (en) Method for implementing automatic fault-tolerance of image file in Linux operating system booting process
CN116662050A (en) Error injection support function verification method, device, terminal and medium
CN106528248B (en) Downloading method and system of mobile terminal based on software integrity
KR101844095B1 (en) Method and apparatus for executing bootloader
CN112579338B (en) Starting method and system of equipment and storage medium
KR101461650B1 (en) Apparatus and method for managing file system of a computing device
CN113297010A (en) Firmware recovery method, device and system based on system on chip and storage medium
US9971659B1 (en) Memory programming providing corruption protection
CN112667444A (en) System upgrading method, storage medium and terminal equipment

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