CN111124456A - Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium - Google Patents

Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium Download PDF

Info

Publication number
CN111124456A
CN111124456A CN201911373238.8A CN201911373238A CN111124456A CN 111124456 A CN111124456 A CN 111124456A CN 201911373238 A CN201911373238 A CN 201911373238A CN 111124456 A CN111124456 A CN 111124456A
Authority
CN
China
Prior art keywords
chip microcomputer
single chip
firmware
upgrading
master control
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.)
Pending
Application number
CN201911373238.8A
Other languages
Chinese (zh)
Inventor
冯伟
张弦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Fengrunda Technology Co ltd
Original Assignee
Shenzhen Fengrunda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Fengrunda Technology Co ltd filed Critical Shenzhen Fengrunda Technology Co ltd
Priority to CN201911373238.8A priority Critical patent/CN111124456A/en
Publication of CN111124456A publication Critical patent/CN111124456A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Abstract

The invention discloses a method for upgrading a singlechip firmware through a master control, which comprises the following steps: detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on; if the firmware version of the single chip microcomputer is determined to be not matched with the stored firmware version, controlling the single chip microcomputer to reset; and sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP time sequence of the single chip microcomputer so as to enable the single chip microcomputer to execute program updating operation. The invention also discloses a device for upgrading the firmware of the single chip microcomputer through the master control and a readable storage medium. The invention updates the program of the singlechip by upgrading the software of the main control chip without returning to the factory for burning again, reduces the maintenance cost of the product and realizes the effect of improving the application range of the singlechip product.

Description

Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium
Technical Field
The invention relates to the technical field of single chip microcomputer system upgrading, in particular to a method and a device for upgrading single chip microcomputer firmware through master control and a readable storage medium.
Background
When the hardware of the switch is designed, a single CPU often cannot meet the requirements of products, and the GPIO port, the I2C interface, the PWM bus and the like of the master control CPU can be expanded in a mode of externally hanging the single chip microcomputer, so that the system function can be better realized. But after the product is sold, the program of the single chip microcomputer is solidified, and the upgrading cannot be completed like the software of the main control CPU.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method and a device for upgrading a singlechip firmware through a master control and a readable storage medium, and aims to solve the technical problem that the upgrading of the singlechip firmware cannot be finished as the master control CPU software in the prior art.
In order to achieve the above object, the present invention provides a method for upgrading a firmware of a single chip microcomputer by a master control, which comprises the following steps:
detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on;
if the firmware version of the single chip microcomputer is determined to be not matched with the stored firmware version, controlling the single chip microcomputer to reset;
and sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP time sequence of the single chip microcomputer so as to enable the single chip microcomputer to execute program updating operation.
Optionally, after the single chip microcomputer is powered on, before the step of detecting the firmware version of the single chip microcomputer, the method further includes:
and confirming the upgrading ISP time sequence of the single chip microcomputer according to the firmware information of the single chip microcomputer.
Optionally, after the single chip microcomputer is powered on, the step of detecting the firmware version of the single chip microcomputer includes:
sending a firmware version detection instruction to the single chip microcomputer;
and receiving the firmware version returned by the singlechip according to the firmware version detection instruction.
Optionally, if it is determined that the firmware version of the single chip microcomputer does not match the stored firmware version, the step of controlling the reset of the single chip microcomputer includes:
comparing the firmware version with a currently stored firmware version;
and when the firmware version is confirmed to be inconsistent, confirming that the firmware version of the single chip microcomputer is inconsistent with the stored firmware version.
Optionally, the step of sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP timing sequence of the single chip microcomputer so that the single chip microcomputer executes the program updating operation includes:
generating an ISP time sequence of the single chip microcomputer by using the current application serial port;
and sending the binary information of the firmware of the single chip microcomputer through the ISP time sequence.
Optionally, after the step of sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP timing sequence of the single chip microcomputer so that the single chip microcomputer executes the program updating operation, the method further includes:
and after the single chip microcomputer is confirmed to be restarted, the program of the single chip microcomputer is confirmed to be updated successfully.
Optionally, the method for upgrading the firmware of the single chip microcomputer through the master control further includes:
acquiring binary information of the firmware of the single chip microcomputer according to the upgrading requirement of the firmware of the single chip microcomputer;
and registering the firmware version information of the singlechip based on the binary information.
In addition, in order to achieve the above object, the present invention further provides a device for upgrading firmware of a single chip microcomputer by a master control, wherein the device for upgrading firmware of the single chip microcomputer by the master control comprises: the firmware upgrading method comprises a memory and a processor, wherein a computer program capable of being called by the processor is stored in the memory, and when the computer program is executed by the processor, the steps of the method for upgrading the firmware of the single chip microcomputer through the master control are realized.
The invention also provides a readable storage medium, wherein the storage medium is stored with a program for upgrading the firmware of the single chip microcomputer through the master control, and the steps of the method for upgrading the firmware of the single chip microcomputer through the master control are realized when the program for upgrading the firmware of the single chip microcomputer through the master control is executed by a processor.
The embodiment of the invention provides a method for upgrading a firmware of a single chip microcomputer through a master control, which is characterized in that after the single chip microcomputer is powered on, a firmware version of the single chip microcomputer is detected; if the firmware version of the single chip microcomputer is determined to be not matched with the stored firmware version, controlling the single chip microcomputer to reset; and sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP time sequence of the single chip microcomputer so as to enable the single chip microcomputer to execute program updating operation. The invention uses the master control CPU to directly update the program in the singlechip, thereby facilitating the development process of products. For the defects of the program of the single chip microcomputer, the software of the main control chip can be upgraded to realize updating without returning to a factory for burning again, so that the maintenance cost of the product is reduced, and the effect of improving the application range of the single chip microcomputer product is realized.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of a method for upgrading firmware of a single chip microcomputer by master control according to the present invention;
fig. 3 is a schematic flow chart of a second embodiment of the method for upgrading the firmware of the single chip microcomputer by master control according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on; if the firmware version of the single chip microcomputer is determined to be not matched with the stored firmware version, controlling the single chip microcomputer to reset; and sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP time sequence of the single chip microcomputer so as to enable the single chip microcomputer to execute program updating operation.
Because the program fixed telephone of the singlechip in the prior art can not finish upgrading to the master control CPU software.
The invention provides a solution, which uses the master control CPU to directly update the program in the singlechip, thereby facilitating the development process of products. For the defects of the program of the single chip microcomputer, the software of the main control chip can be upgraded to realize updating without returning to a factory for burning again, so that the maintenance cost of the product is reduced, and the effect of improving the application range of the single chip microcomputer product is realized.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a mobile/non-mobile terminal device such as a smart phone, a tablet computer, an electronic book reader and a portable computer.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a program for upgrading the firmware of the one-chip microcomputer by master control.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; the processor 1001 may be configured to call a program stored in the memory 1005 for upgrading the firmware of the single chip microcomputer through the master controller, and perform the following operations:
detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on;
if the firmware version of the single chip microcomputer is determined to be not matched with the stored firmware version, controlling the single chip microcomputer to reset;
and sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP time sequence of the single chip microcomputer so as to enable the single chip microcomputer to execute program updating operation.
Further, the processor 1001 may call a program stored in the memory 1005 for upgrading the firmware of the single chip microcomputer through the master control, and further perform the following operations:
and confirming the upgrading ISP time sequence of the single chip microcomputer according to the firmware information of the single chip microcomputer.
Further, the processor 1001 may call a program stored in the memory 1005 for upgrading the firmware of the single chip microcomputer through the master control, and further perform the following operations:
sending a firmware version detection instruction to the single chip microcomputer;
and receiving the firmware version returned by the singlechip according to the firmware version detection instruction.
Further, the processor 1001 may call a program stored in the memory 1005 for upgrading the firmware of the single chip microcomputer through the master control, and further perform the following operations:
comparing the firmware version with a currently stored firmware version;
and when the firmware version is confirmed to be inconsistent, confirming that the firmware version of the single chip microcomputer is inconsistent with the stored firmware version.
Further, the processor 1001 may call a program stored in the memory 1005 for upgrading the firmware of the single chip microcomputer through the master control, and further perform the following operations:
generating an ISP time sequence of the single chip microcomputer by using the current application serial port;
and sending the binary information of the firmware of the single chip microcomputer through the ISP time sequence.
Further, the processor 1001 may call a program stored in the memory 1005 for upgrading the firmware of the single chip microcomputer through the master control, and further perform the following operations:
and after the single chip microcomputer is confirmed to be restarted, the program of the single chip microcomputer is confirmed to be updated successfully.
Further, the processor 1001 may call a program stored in the memory 1005 for upgrading the firmware of the single chip microcomputer through the master control, and further perform the following operations:
acquiring binary information of the firmware of the single chip microcomputer according to the upgrading requirement of the firmware of the single chip microcomputer;
and registering the firmware version information of the singlechip based on the binary information.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a method for upgrading a firmware of a single chip microcomputer by master control according to the present invention, where the method for upgrading the firmware of the single chip microcomputer by master control includes:
step S10, detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on;
according to the current singlechip application, the control of the singlechip is carried out by the main control CPU, in practical application, the singlechip control application operation realized by the main control CPU and the corresponding singlechip is defined as a singlechip upgrading system, in the singlechip upgrading system, the main control CPU uses an ARM Cortex-A9 processor, and the singlechip currently applied adopts an STC8A8K64S4A12 chip to realize the control application and the upgrading operation. The method comprises the steps that a main control CPU controls the single chip microcomputer to be powered on, so that after the single chip microcomputer is confirmed to be powered on, the firmware version of the single chip microcomputer is detected, and the firmware version refers to the program version number of a current burning program of the single chip microcomputer. The method comprises the following steps of confirming whether a firmware version upgrading operation needs to be carried out based on the single chip microcomputer based on the firmware version information of the current single chip microcomputer, and confirming the upgrading time sequence of the single chip microcomputer when the firmware version upgrading operation of the single chip microcomputer is realized based on the single chip microcomputer of the current application, namely before the step of detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on, the method also comprises the following steps:
and confirming the upgrading ISP time sequence of the single chip microcomputer according to the firmware information of the single chip microcomputer.
In the currently applied singlechip upgrading system, a main control CPU is used for carrying out the control operation of a singlechip, the main control CPU uses an ARM Cortex-A9 processor for carrying out the management control of the singlechip, and the singlechip adopts an STC8A8K64S4A12 chip. In the application of the current single chip microcomputer upgrading system, an oscilloscope is firstly needed to analyze the complete signal time sequence of single chip microcomputer upgrading. And based on the current single chip microcomputer upgrading system application, the single chip microcomputer control needs to be realized after the main control CPU is initialized, namely after the system is powered on, the main control CPU is initialized, and then the main control CPU controls the single chip microcomputer to be powered on. After the main control CPU is initialized, the software version information of the single chip microcomputer is read through the UART.
Further, according to the current upgrade application of the single chip microcomputer, the firmware version of the single chip microcomputer can be confirmed based on sending a firmware version detection instruction to the single chip microcomputer, namely, after the single chip microcomputer is powered on, the step of detecting the firmware version of the single chip microcomputer comprises the following steps:
sending a firmware version detection instruction to the single chip microcomputer;
and receiving the firmware version returned by the singlechip according to the firmware version detection instruction.
According to the method, a main control CPU is connected with a managed single chip microcomputer, a firmware version detection instruction is sent to the single chip microcomputer by the main control CPU, so that the single chip microcomputer returns return information based on a current firmware version after receiving the firmware version detection instruction, and in addition, after the current main control CPU receives the return information, the firmware version of the single chip microcomputer is confirmed based on the return information.
Step S20, if the firmware version of the single chip microcomputer is not matched with the stored firmware version, the single chip microcomputer is controlled to reset;
and confirming whether the firmware version of the single chip microcomputer has an upgrading requirement according to the currently confirmed firmware version of the single chip microcomputer, wherein the confirming mode is that the comparison operation of the firmware version of the current single chip microcomputer is carried out based on the latest firmware version information of the currently registered single chip microcomputer so as to confirm whether the firmware of the single chip microcomputer needs to be upgraded. Thus, whether the firmware version is consistent with the registered firmware version of the single chip microcomputer is confirmed based on the currently confirmed firmware version of the single chip microcomputer. Namely, if the firmware version of the single chip microcomputer is determined not to be matched with the stored firmware version, the step of controlling the reset of the single chip microcomputer comprises the following steps:
comparing the firmware version with a currently stored firmware version;
and when the firmware version is confirmed to be inconsistent, confirming that the firmware version of the single chip microcomputer is inconsistent with the stored firmware version.
And comparing the firmware version information with the firmware version of the current registered and rough farmer according to the currently confirmed firmware version information of the single chip microcomputer, and confirming whether the single chip microcomputer needs to be upgraded according to the comparison result. If the firmware version is confirmed to be consistent with the registered latest singlechip firmware version, confirming that the current singlechip does not need upgrading operation; and if the firmware version is confirmed to be inconsistent with the registered latest singlechip firmware version, confirming that the singlechip needs to execute upgrading operation. Further, when the firmware version of the single chip microcomputer is confirmed to be inconsistent with the registered latest single chip microcomputer firmware version, the registered latest single chip microcomputer firmware version may not be the latest version information, and under the condition, upgrading reminding is performed based on the registration operation of the main control CPU, so that the main control CPU re-registers the latest single chip microcomputer firmware version information.
And step S30, sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP time sequence of the single chip microcomputer so that the single chip microcomputer executes program updating operation.
And when the single chip microcomputer is confirmed to need to carry out firmware version upgrading operation according to the firmware version information of the current single chip microcomputer, carrying out system upgrading operation of the single chip microcomputer according to the confirmed ISP time sequence of the single chip microcomputer. The operation steps are that the main control CPU simulates the ISP time sequence of the single chip microcomputer to carry out upgrading operation, namely the binary information of the firmware of the single chip microcomputer is sent to the single chip microcomputer through the ISP time sequence of the single chip microcomputer, so that the single chip microcomputer executes the program updating operation, and the steps comprise:
generating an ISP time sequence of the single chip microcomputer by using the current application serial port;
and sending the binary information of the firmware of the single chip microcomputer through the ISP time sequence.
And further, based on the ISP time sequence, the latest firmware version information registered in the main control CPU is sent to the singlechip in a binary mode through the serial port generating the ISP time sequence. In addition, before the binary information is sent to the single chip microcomputer to realize the firmware upgrading operation, the step of outputting the binary information is executed after the single chip microcomputer is reset.
As described above, after the step of sending the binary information of the firmware version information of the monolithic computer to the monolithic computer based on the current monolithic computer firmware upgrade operation, and then updating the firmware version by the upgrade operation of the monolithic computer itself, that is, sending the binary information of the monolithic computer firmware to the monolithic computer through the ISP timing sequence of the monolithic computer, so that the monolithic computer executes the program update operation, the method further includes:
and after the single chip microcomputer is confirmed to be restarted, the program of the single chip microcomputer is confirmed to be updated successfully.
And receiving operation information transmitted by the singlechip, and confirming whether the firmware version of the singlechip is upgraded successfully or not according to the operation information. And after the single chip microcomputer is confirmed to be restarted based on the operation information, confirming that the program of the single chip microcomputer is updated successfully, namely updating based on the firmware version of the single chip microcomputer is successful.
In the embodiment, the program of the single chip microcomputer is updated by upgrading the software of the main control chip without returning to a factory for burning again, so that the maintenance cost of the product is reduced, and the effect of improving the application range of the single chip microcomputer product is realized.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of the method for upgrading a firmware of a single chip microcomputer by a master control according to the present invention, and based on the first embodiment shown in fig. 2, the method for upgrading a firmware of a single chip microcomputer by a master control further includes:
step S40, according to the upgrading requirement of the current singlechip firmware, acquiring the binary information of the singlechip firmware;
and step S50, registering the firmware version information of the singlechip based on the binary information.
In this embodiment, the single chip microcomputer managed in the current application system is confirmed according to the system application of the current single chip microcomputer upgrading requirement, and the firmware upgrading requirement of the single chip microcomputer is confirmed. Further, according to the firmware upgrading requirement of the current single chip microcomputer, binary information of the firmware of the single chip microcomputer is obtained, and the binary information is firmware version data based on firmware upgrading of the single chip microcomputer. In this way, according to the currently acquired binary information of the firmware of the single chip microcomputer, the firmware version information of the single chip microcomputer is registered, and the firmware version information is based on the version content of the binary information.
In addition, an embodiment of the present invention further provides a readable storage medium, where a program for upgrading a firmware of a single chip microcomputer through a master control is stored in the readable storage medium, and when executed by a processor, the program for upgrading the firmware of the single chip microcomputer through the master control implements the following operations:
detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on;
if the firmware version of the single chip microcomputer is determined to be not matched with the stored firmware version, controlling the single chip microcomputer to reset;
and sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP time sequence of the single chip microcomputer so as to enable the single chip microcomputer to execute program updating operation.
Further, when executed by the processor, the program for upgrading the firmware of the single chip microcomputer through the master control also realizes the following operations:
and confirming the upgrading ISP time sequence of the single chip microcomputer according to the firmware information of the single chip microcomputer.
Further, when executed by the processor, the program for upgrading the firmware of the single chip microcomputer through the master control also realizes the following operations:
sending a firmware version detection instruction to the single chip microcomputer;
and receiving the firmware version returned by the singlechip according to the firmware version detection instruction.
Further, when executed by the processor, the program for upgrading the firmware of the single chip microcomputer through the master control also realizes the following operations:
comparing the firmware version with a currently stored firmware version;
and when the firmware version is confirmed to be inconsistent, confirming that the firmware version of the single chip microcomputer is inconsistent with the stored firmware version.
Further, when executed by the processor, the program for upgrading the firmware of the single chip microcomputer through the master control also realizes the following operations:
generating an ISP time sequence of the single chip microcomputer by using the current application serial port;
and sending the binary information of the firmware of the single chip microcomputer through the ISP time sequence.
Further, when executed by the processor, the program for upgrading the firmware of the single chip microcomputer through the master control also realizes the following operations:
and after the single chip microcomputer is confirmed to be restarted, the program of the single chip microcomputer is confirmed to be updated successfully.
Further, when executed by the processor, the program for upgrading the firmware of the single chip microcomputer through the master control also realizes the following operations:
acquiring binary information of the firmware of the single chip microcomputer according to the upgrading requirement of the firmware of the single chip microcomputer;
and registering the firmware version information of the singlechip based on the binary information.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for upgrading a firmware of a single chip microcomputer through a master control is characterized by comprising the following steps:
detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on;
if the firmware version of the single chip microcomputer is determined to be not matched with the stored firmware version, controlling the single chip microcomputer to reset;
and sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP time sequence of the single chip microcomputer so as to enable the single chip microcomputer to execute program updating operation.
2. The method for upgrading firmware of a single chip microcomputer through a master control as claimed in claim 1, wherein after the single chip microcomputer is powered on, before the step of detecting the firmware version of the single chip microcomputer, the method further comprises:
and confirming the upgrading ISP time sequence of the single chip microcomputer according to the firmware information of the single chip microcomputer.
3. The method for upgrading the firmware of the single chip microcomputer through the master control as claimed in claim 1, wherein the step of detecting the firmware version of the single chip microcomputer after the single chip microcomputer is powered on comprises:
sending a firmware version detection instruction to the single chip microcomputer;
and receiving the firmware version returned by the singlechip according to the firmware version detection instruction.
4. The method for upgrading the firmware of the single chip microcomputer through the master control as claimed in claim 1, wherein if the firmware version of the single chip microcomputer is determined not to match the stored firmware version, the step of controlling the reset of the single chip microcomputer comprises:
comparing the firmware version with a currently stored firmware version;
and when the firmware version is confirmed to be inconsistent, confirming that the firmware version of the single chip microcomputer is inconsistent with the stored firmware version.
5. The method for upgrading the firmware of the single chip microcomputer through the master control as claimed in claim 1, wherein the step of sending the binary information of the firmware of the single chip microcomputer to the single chip microcomputer through the ISP timing sequence of the single chip microcomputer so that the single chip microcomputer performs the program updating operation includes:
generating an ISP time sequence of the single chip microcomputer by using the current application serial port;
and sending the binary information of the firmware of the single chip microcomputer through the ISP time sequence.
6. The method for upgrading firmware of a single chip microcomputer through a master control as claimed in claim 1, wherein after the step of sending binary information of the firmware of the single chip microcomputer to the single chip microcomputer through an ISP timing sequence of the single chip microcomputer so that the single chip microcomputer performs a program updating operation, the method further comprises:
and after the single chip microcomputer is confirmed to be restarted, the program of the single chip microcomputer is confirmed to be updated successfully.
7. The method for upgrading the firmware of the single chip microcomputer through the master control according to any one of claims 1 to 6, wherein the method for upgrading the firmware of the single chip microcomputer through the master control further comprises the following steps:
acquiring binary information of the firmware of the single chip microcomputer according to the upgrading requirement of the firmware of the single chip microcomputer;
and registering the firmware version information of the singlechip based on the binary information.
8. The utility model provides a device through master control upgrading singlechip firmware which characterized in that, the device through master control upgrading singlechip firmware includes: the storage and the processor are stored with a computer program capable of being called by the processor, and when the computer program is executed by the processor, the steps of the method for upgrading the firmware of the single chip microcomputer through the master control according to any one of claims 1 to 7 are realized.
9. A readable storage medium, wherein the readable storage medium stores thereon a program for upgrading the firmware of the single chip microcomputer by the master control, and the program for upgrading the firmware of the single chip microcomputer by the master control realizes the steps of the method for upgrading the firmware of the single chip microcomputer by the master control according to any one of claims 1 to 7 when being executed by a processor.
CN201911373238.8A 2019-12-26 2019-12-26 Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium Pending CN111124456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911373238.8A CN111124456A (en) 2019-12-26 2019-12-26 Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911373238.8A CN111124456A (en) 2019-12-26 2019-12-26 Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium

Publications (1)

Publication Number Publication Date
CN111124456A true CN111124456A (en) 2020-05-08

Family

ID=70503711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911373238.8A Pending CN111124456A (en) 2019-12-26 2019-12-26 Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium

Country Status (1)

Country Link
CN (1) CN111124456A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752589A (en) * 2020-06-24 2020-10-09 研祥智能科技股份有限公司 Method and device for upgrading burning codes of microcontroller on line

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983232A (en) * 2006-02-22 2007-06-20 福建师范大学 Method and device for updating field monolithic unit by variable baud-rate
CN104679559A (en) * 2015-02-11 2015-06-03 北京配天技术有限公司 Single chip microcomputer on-line programming method
CN109634643A (en) * 2018-11-19 2019-04-16 冶金自动化研究设计院 The three proofings automation equipment firmware upgrade system of people's air defense command post

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983232A (en) * 2006-02-22 2007-06-20 福建师范大学 Method and device for updating field monolithic unit by variable baud-rate
CN104679559A (en) * 2015-02-11 2015-06-03 北京配天技术有限公司 Single chip microcomputer on-line programming method
CN109634643A (en) * 2018-11-19 2019-04-16 冶金自动化研究设计院 The three proofings automation equipment firmware upgrade system of people's air defense command post

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752589A (en) * 2020-06-24 2020-10-09 研祥智能科技股份有限公司 Method and device for upgrading burning codes of microcontroller on line

Similar Documents

Publication Publication Date Title
CN108768875B (en) Application gray level publishing method and device and computer readable storage medium
US20140380295A1 (en) Method and system for updating application, and computer storage medium thereof
CN108388988B (en) Block chain-based collaborative office method, system and computer-readable storage medium
US11074066B2 (en) Apparatus and method for managing software updates of electronic devices
EP3007062A1 (en) Firmware upgrade method and apparatus, and communication device
CN109947771B (en) File type conversion method, apparatus, device and computer readable storage medium
KR20100063474A (en) Method and system for providing fota service
CN108174255B (en) Smart television starting method, smart television and computer readable storage medium
CN111147402A (en) Method and device for customizing factory setting items of switch, switch and system
US11157264B2 (en) Electronic device and method for controlling update of electronic device
CN111078200A (en) Task construction method, device, equipment, medium and system
CN111966372A (en) Firmware upgrading method, device and equipment for portable printer
CN108021445B (en) Memory optimization method, device and system and computer readable storage medium
CN103778395A (en) Application installation method for near field communication (NFC) terminal and near field communication (NFC) terminal
WO2018006884A1 (en) Method, device and user terminal for software installation
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
CN110750285A (en) Firmware upgrading method and device, computer equipment and storage medium
CN111124456A (en) Method and device for upgrading firmware of single chip microcomputer through master control and readable storage medium
CN110321172B (en) Partition identification method, device, equipment and storage medium for network block equipment
CN108989428B (en) Bluetooth terminal upgrading method, server, computer readable storage medium and system
CN109445698B (en) Method and device for querying multi-chip flash state and computer readable storage medium
CN111857672A (en) Business development method, device, equipment and medium based on SQL configuration
CN111625108A (en) Key simulation method, device, equipment and storage medium based on USB module
CN109032651B (en) Application updating method, intelligent terminal and computer readable storage medium
CN110336693B (en) Method, device, equipment and storage medium for managing network block 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