CN109656608A - A kind of MCU firmware upgrade method and its relevant device - Google Patents
A kind of MCU firmware upgrade method and its relevant device Download PDFInfo
- Publication number
- CN109656608A CN109656608A CN201910016053.5A CN201910016053A CN109656608A CN 109656608 A CN109656608 A CN 109656608A CN 201910016053 A CN201910016053 A CN 201910016053A CN 109656608 A CN109656608 A CN 109656608A
- Authority
- CN
- China
- Prior art keywords
- mcu
- terminal
- upgrading
- data
- upgrading data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/66—Updates of program code stored in read-only memory [ROM]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
This application discloses a kind of MCU firmware upgrade methods, are applied to first terminal, the first terminal includes micro-control unit MCU, which comprises establish the communication connection with second terminal;The upgrading data that the second terminal is sent are received by the communication connection;The MCU is upgraded according to the upgrading data.The embodiment of the present application also discloses a kind of MCU device for upgrading firmware, a kind of MCU firmware upgrade system, a kind of computer readable storage medium and a kind of computer program product.Wherein, the system of second terminal operation includes Android system, first terminal establishes the communication connection with second terminal, so that second terminal enters after the open accessory agreement AOA mode of Android, receive the upgrading data that second terminal is sent, the MCU is upgraded further according to upgrading data, without realizing the firmware upgrade of MCU by equipment cd-rom recorder, realizes the optimization to MCU firmware upgrade process.
Description
Technical field
This application involves embedded device field more particularly to a kind of MCU firmware upgrade methods and its relevant device.
Background technique
Embedded device is applied to all trades and professions, and wherein a big chunk hardware is based on micro-control unit
The chip microcontroller that (MicrocontrollerUnit, MCU) is commonly called as, such as mobile phone, PC periphery, remote controler, until automobile
Electronics, industrial stepper motor, control of robotic arm etc., the figure of all visible MCU.
Usually, the characteristics of MCU first is that computing resource RAM and storage resource FLASH are simplified very much in piece, with certain
For model MCU, RAM size is 4KB, and FLASH only has 64KB.Since MCU needs to realize using limited resource to business
Processing in real time is limited to nervous computing resource, and be difficult has abundant resources to realize again upgrades necessary transmission, checking algorithm,
The secondary communication interface that is limited to product form and can be used, so the common equipment firmware using MCU is all once to issue,
It does not need upgrading after burning all the life in plant produced or special equipment must be used to be upgraded.
At present common MCU firmware upgrade method be using the specific burner apparatus of PC control such as JLINK or
Person ULINK etc. realizes the upgrading to MCU firmware by the serial debugging interface programming built in MCU.
However, this method needs both to be unfavorable for operating in this way using special equipment cd-rom recorder, while also increasing upper
The development amount of machine upgrade interface, user experience are poor.
Summary of the invention
The embodiment of the present application provides a kind of MCU firmware upgrade method and its relevant device, for realizing to MCU firmware
The optimization of escalation process.
The embodiment of the present application first aspect provides a kind of MCU firmware upgrade method, is applied to first terminal, and described the
One terminal includes micro-control unit MCU, which comprises
Establish the communication connection with second terminal;
The upgrading data that the second terminal is sent are received by the communication connection;
The MCU is upgraded according to the upgrading data.
Optionally, the first terminal includes flash memory;
It is described according to the upgrading data to the MCU carry out upgrading include:
The flash memory is written into the upgrading data.
Optionally, the flash memory includes first area and second area;
It is described to include: by the upgrading data write-in flash memory
The program code that the MCU runs the first area storage is controlled, and by the liter in the first area
Grade data resolve to target data;
The second area is written into the target data;
Control the program code that the MCU runs the second area storage.
Optionally, before the second area by target data write-in, the method also includes:
Wipe the legacy data in the second area.
Optionally, the foundation and the communication connection of second terminal include:
The communication connection with the second terminal is established by the data-interface of the first terminal, and makes described the
Two terminals enter the open accessory agreement AOA mode of Android.
The embodiment of the present application second aspect provides a kind of MCU firmware upgrade method, is applied to second terminal, the side
Method includes:
The communication connection with first terminal is established by the data-interface of first terminal, executes the open accessory agreement of Android
AOA mode, the first terminal include micro-control unit MCU;
Obtain the upgrading data of the MCU;
The upgrading data are sent to the first terminal by the communication connection, so that the first terminal
Firmware upgrade is carried out to the MCU using the upgrading data.
Optionally, the upgrading data packet for obtaining the MCU includes:
The upgrading PUSH message of cloud server is received, the upgrading PUSH message instruction is in the cloud server
There are the upgrading data of the MCU;
The upgrading data of the MCU are downloaded in the cloud server according to the upgrading PUSH message.
The embodiment of the present application third aspect provides a kind of MCU device for upgrading firmware, and described device includes memory and place
Device is managed, is stored with the MCU firmware upgrade procedure that can be run on the processor, the MCU firmware upgrade on the memory
Such as the described in any item methods of first aspect embodiment of the method or second aspect method are realized when program is executed by the processor
The described in any item methods of embodiment.
The embodiment of the present application fourth aspect provides a kind of MCU firmware upgrade system, is applied to first terminal, and described the
One terminal includes micro-control unit MCU, the system comprises:
Unit is established, for establishing and the communication connection of second terminal;
Receiving unit, for receiving the upgrading data that the second terminal is sent by the communication connection;
Upgrade unit, for being upgraded according to the upgrading data to the MCU.
Optionally, the first terminal includes flash memory;
The upgrade unit is specifically used for:
The flash memory is written into the upgrading data.
Optionally, the flash memory includes first area and second area;
The upgrade unit is specifically used for:
The program code that the MCU runs the first area storage is controlled, and by the liter in the first area
Grade data resolve to target data;
The second area is written into the target data;
Control the program code that the MCU runs the second area storage.
Optionally upgrade unit is specifically used for:
Wipe the legacy data in the second area.
Optionally, the unit of establishing is specifically used for:
The communication connection with the second terminal is established by the data-interface of the first terminal, and makes described the
Two terminals enter the open accessory agreement AOA mode of Android.
The 5th aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
MCU firmware upgrade procedure is stored on medium, the MCU firmware upgrade procedure can be executed by one or more processor, with
Realize such as the described in any item methods of first aspect embodiment of the method or the described in any item sides of second aspect embodiment of the method
Method.
The 6th aspect of the embodiment of the present application provides a kind of computer program product, including computer instruction, when it is being counted
When running on calculation machine, computer is allowed to execute the described in any item methods of above-mentioned first aspect embodiment of the method or second
The described in any item methods of aspect embodiment of the method.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that applied to first terminal, described
First terminal includes micro-control unit MCU, which comprises establishes the communication connection with second terminal;Pass through the communication
Connection receives the upgrading data that the second terminal is sent;The MCU is upgraded according to the upgrading data.Wherein,
The system of two terminal operatings includes Android system, and first terminal establishes the communication connection with second terminal, so that second terminal
Into after the open accessory agreement AOA mode of Android, the upgrading data that second terminal is sent are received, further according to upgrading data pair
The MCU is upgraded, and without realizing the firmware upgrade of MCU by special equipment cd-rom recorder, is realized to MCU firmware
The optimization of escalation process.
Detailed description of the invention
One of the embodiment that Fig. 1 is applied to first terminal for MCU firmware upgrade method a kind of in the embodiment of the present application shows
It is intended to;
Fig. 2 is a kind of another for the embodiment that MCU firmware upgrade method is applied to first terminal in the embodiment of the present application
Schematic diagram;
Fig. 3 is a kind of another for the embodiment that MCU firmware upgrade method is applied to first terminal in the embodiment of the present application
Schematic diagram;
Fig. 4 is a kind of another for the embodiment that MCU firmware upgrade method is applied to first terminal in the embodiment of the present application
Schematic diagram;
Fig. 5 is a kind of another for the embodiment that MCU firmware upgrade method is applied to second terminal in the embodiment of the present application
Schematic diagram;
Fig. 6 is implemented for MCU firmware upgrade method first terminal a kind of in the embodiment of the present application and second terminal information exchange
One schematic diagram of example;
One of the embodiment that Fig. 7 is applied to first terminal for MCU firmware upgrade system a kind of in the embodiment of the present application shows
It is intended to;
Fig. 8 is an a kind of schematic diagram of MCU device for upgrading firmware embodiment in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of MCU firmware upgrade method and its relevant device, for realizing to MCU firmware
The optimization of escalation process.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
It is the embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, the common skill in this field
The application protection all should belong in art personnel every other embodiment obtained without making creative work
Range.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that making in this way
Data are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing
Content other than sequence implement.In addition, term " includes " and " having " and their any deformation, it is intended that covering
Non-exclusive includes, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
In the prior art, usually, the characteristics of MCU first is that computing resource RAM and storage resource FLASH in piece
It all simplifies very much, by taking certain model MCU as an example, RAM size is 4KB, and FLASH only has 64KB.Since MCU needs to utilize limited money
The real-time processing to business is realized in source, is limited to nervous computing resource, and be difficult has abundant resources to realize again upgrades necessary biography
Defeated, checking algorithm, next communication interface that is limited to product form and can be used, so the common equipment firmware using MCU
All it is once to issue, does not need upgrading all the life after burning in plant produced or special equipment must be used to be upgraded.
MCU firmware upgrade method common at present is using the specific burner apparatus of PC control such as JLINK or ULINK
Deng realizing the upgrading to MCU firmware by serial debugging interface programming built in MCU.However, this method is needed using special
Equipment cd-rom recorder be both unfavorable for operating in this way, while also increasing the development amount of upgrading master computer interface, user experience
It is poor.To solve the above-mentioned problems, the embodiment of the present application provides a kind of MCU firmware upgrade method and its relevant device, is used for
Realize the optimization to MCU firmware upgrade process.
In order to make it easy to understand, the detailed process in the embodiment of the present application is described below, referring to Fig. 1, the application
In embodiment in a kind of one embodiment of MCU firmware upgrade method, it is applied to first terminal, which includes micro-control
Unit MCU processed, which comprises
101, the communication connection with second terminal is established;
In the present embodiment, which includes micro-control unit MCU, and first terminal establishes the communication with second terminal
Connection, use open accessory agreement (AOA, Android OpenAccessory Protocol) so that second terminal enters Android
Mode, at this point, first terminal is the host equipment in the AOA mode, second terminal is fittings equipment.
Wherein, which can be wired connection communication mode, be also possible to wireless connection communication mode,
Specifically herein without limitation.
102, the upgrading data that the second terminal is sent are received by the communication connection;
In the present embodiment, first terminal receives the ascending series that second terminal is sent by the communication connection that step 101 is established
According to.
Specifically, second terminal can download upgrading data in Cloud Server and either receive other third party's terminals
The upgrading data of transmission, after this, the communication connection established by step 101 send the upgrading data to first terminal, from
And make first terminal then by the upgrading data.
103, the MCU is upgraded according to the upgrading data.
In the present embodiment, terminal is complete by the upgrading data writing device after step 102 receives upgrading data
The upgrading of pairs of MCU firmware.Specifically, the upgrading data can be written and complete liter in the memory RAM in MCU by MCU herein
Grade also can be written into and complete upgrading in the flash memory FLASH in MCU, specifically herein without limitation.
In the present embodiment, it is applied to first terminal, the first terminal includes micro-control unit MCU, and first terminal is established
With the communication connection of second terminal so that the second terminal enters the open accessory agreement AOA mode of Android;By described
Communication connection receives the upgrading data that the second terminal is sent;The MCU is upgraded according to the upgrading data.Its
In, the system of second terminal operation includes Android system, and first terminal establishes the communication connection with second terminal, so that the
Two terminals enter after the open accessory agreement AOA mode of Android, the upgrading data that second terminal is sent are received, further according to upgrading
Data upgrade the MCU, without realizing the firmware upgrade of MCU, realization pair by special equipment cd-rom recorder
The optimization of MCU firmware upgrade process.
In the embodiment of the present application, specific first terminal may include flash memory, wherein the firmware storage of equipment can be in MCU
In NOR FLASH in piece.Since NOR FLASH is that erasing and writing life is long compared to the characteristics of NAND FLASH, followed by store
Firmware do not need to be loaded into memory, so that it may directly run by MCU processor and (code address be loaded into processor
PC pointer), therefore memory can be saved, it is very suitable to embedded scene.
Below referring to Fig. 2, based on embodiment described in Fig. 1, a kind of MCU firmware upgrade method in the embodiment of the present application
In another embodiment, specifically carrying out upgrading to the MCU according to the upgrading data in step 103 includes:
201, the flash memory is written into the upgrading data.
In the present embodiment, in the flash memory in upgrading data write-in MCU that first terminal acquires step 102, as
One preferred embodiment, the flash memory are NOR FLASH, can directly be used using NOR FLASH, and can transport immediately above
Line code it is specific, realization scheme is advanced optimized.
In the embodiment of the present application, based on embodiment described in Fig. 2, inventor has found this during the specific implementation of scheme
A characteristic that can be directly run is possible to become a trap in upgrading: must wipe in firmware upgrade process
Except the data in modification NOR FLASH, but if processor is currently running some address code of NOR FLASH, and it is next
The code of a address is upgraded process erasing just or has modified, it is possible to will cause processor and falls into race and flies that (PC pointer is
) or endless loop (PC pointer chaotic) NULL.So needing in order to avoid escalation process destroys current operation code
The code of operation and the code that will upgrade update are isolated.
In the embodiment of the present application, referring to Fig. 3, based on embodiment described in Fig. 2, a kind of MCU firmware in the embodiment of the present application
In another embodiment of upgrade method, which includes first area and second area;Step 201 is by the upgrading data
The flash memory, which is written, can specifically include:
301, the program code that the MCU runs the first area storage is controlled, and by institute in the first area
It states upgrading data and resolves to target data;
In the present embodiment, flash memory is divided at least two regions by first terminal, including first area and the secondth area
Domain, during will upgrade data write-in flash memory, specifically, upgrade function, including and android are realized in first area
Equipment communication receives upgrading data packet, erasing modification etc.;Second area area for realizing specific business function, such as and
The communication of android equipment, authentication, data encryption and application keep-alive etc..
302, the second area is written into the target data.
In the present embodiment, during specific write-in upgrading data, it is first carried out in step 301 in first area
Middle operation, and upgrading data packet is resolved to the specific target data of write-in flash memory in the first region, i.e., when triggering upgrades
When, it allows processor operation first area code (PC pointer loading 0x8000000), receives upgrading data packet, then to second area
It is updated, thus avoids damage to first area self-operating context code.
303, the program code that the MCU runs the second area storage is controlled.
In the present embodiment, first terminal is completed in step 302 after second area is written in target data, and control should
The program code of MCU first area storage out of service, then the program code in MCU execution second area is controlled, this
When, the program code of second area storage includes the target data being written in step 302.When first terminal control MCU operation
When the target data, it is meant that first terminal completes the firmware upgrade to MCU.
In the embodiment of the present application, based on embodiment described in Fig. 3, specifically step 302 will be described in target data write-in
Before second area, it is also necessary to the erasing to second area data is carried out, to guarantee the accuracy of data write-in.Under request in person ginseng
Fig. 4 is read, in the embodiment of the present application in a kind of another embodiment of MCU firmware upgrade method, based on embodiment described in Fig. 3, tool
Body is before step 302, this method further include:
401, the legacy data in the second area is wiped.
In the present embodiment, before target data is written to second area, it is also necessary to wipe original number in second area
According to, herein since flash memory is nonvolatile storage, the memory cell block of referred to as block can be carried out erasable and reprogramd,
In, the write operation for device is usually to carry out in unit that is empty or having wiped, so in most cases, carrying out
Need to first carry out erasing before write operation.NOR FLASH then first writes position all in object block before being wiped
It is 0, to avoid subsequent sending entanglement during target data is written.
In the embodiment of the present application, based on embodiment described in Fig. 1 to Fig. 4, specifically established and second terminal in step 101
For the process of communication connection, it can be wired connection and be also possible to wireless connection, as a preferred scheme,
Under the premise of being transformed to MCU device in the prior art, due to all specific USB interface of general MCU device,
The USB interface that first terminal can be used in step 101 establish with second terminal and is communicated to connect, so that described second
Terminal enters AOA mode, executes the step content of subsequent correlation, without carrying out hardware to MCU device in the prior art
Transformation can execute the correlation step in the present embodiment, the exploitativeness of lifting scheme.
The embodiment of the present application is illustrated from the angle of first terminal above, below from second terminal as execution
The embodiment of the present application is introduced in the angle of main body, referring to Fig. 5, a kind of MCU firmware upgrade method in the embodiment of the present application
One embodiment in, be applied to second terminal, method includes:
501, the communication connection with first terminal is established by the data-interface of first terminal, executes the open accessory of Android
Agreement AOA mode;
In the present embodiment, second terminal establishes the communication connection with first terminal by the data-interface of first terminal, holds
Row Android opens accessory agreement AOA mode, and the first terminal includes micro-control unit MCU.Wherein, as a preferred side
Formula, MCU device in the prior art generally all have USB interface, therefore, in order to enable this programme compatibility is in the prior art
MCU device, the data-interface of first terminal can be the USB data interface of first terminal herein, without to the prior art
In MCU device carry out hardware modification can execute the correlation step in the present embodiment, the exploitativeness of lifting scheme.
502, the upgrading data of the MCU are obtained;
In the present embodiment, second terminal obtains the upgrading data of MCU, wherein second terminal can receive third party's terminal
The form for sending data gets the upgrading data of the MCU, is also possible to receive the upgrading data that Cloud Server is sent, as
One preferred embodiment, is below introduced the latter.
Second terminal connects cloud server, wherein cloud server is responsible for monitoring, management terminal device, android
Equipment state, is the promoter of upgrading, and second terminal receives the upgrading PUSH message of cloud server, the upgrading PUSH message
There are the upgrading data of MCU in the cloud server for instruction, and after this, second terminal is actively pushed away according to the upgrading
The upgrading data for sending message to download the MCU in server beyond the clouds.
503, the upgrading data are sent to by the first terminal by the communication connection;
In the present embodiment, the upgrading data that step 502 acquires are sent to first terminal by second terminal, to make
It obtains first terminal and firmware upgrade is carried out to MCU using the upgrading data.
The embodiment of the present application is illustrated from first terminal and the process of second terminal data interaction below, is please referred to
Fig. 6, in the embodiment of the present application, one of a kind of MCU firmware upgrade method first terminal and second terminal information exchange embodiment
Embodiment includes:
601, first terminal and second terminal, which are established, communicates to connect;
602, second terminal receives the upgrading message of cloud server push;
603, second terminal is actively downloaded the corresponding MCU of the upgrading message from cloud server according to the upgrading message and is consolidated
The upgrading data of part;
604, the upgrading data of MCU firmware are sent to first terminal by second terminal;
605, first terminal upgrades according to the data that the upgrading data of the MCU firmware carry out MCU firmware.
In the present embodiment, Fig. 1 extremely schemes in the method and step and preceding method embodiment of first terminal and second terminal execution
Content described in 5 corresponding embodiments is similar, and details are not described herein again.
Wherein, the system of second terminal operation includes Android system, and first terminal establishes the communication link with second terminal
It connects, receives the upgrading data that second terminal is sent, the MCU is upgraded further according to upgrading data, without by spy
Different equipment cd-rom recorder realizes the firmware upgrade of MCU, realizes the optimization to MCU firmware upgrade process.
The embodiment of the present application is illustrated from the angle of method above, below from the angle of virtual bench to this Shen
Please embodiment be introduced.Referring to Fig. 7, a kind of MCU firmware upgrade system in the embodiment of the present application, is applied to first terminal
One embodiment include:
Unit 701 is established, for establishing and the communication connection of second terminal;
Receiving unit 702, for receiving the upgrading data that the second terminal is sent by the communication connection;
Upgrade unit 703, for being upgraded according to the upgrading data to the MCU.
In the present embodiment, it is applied to first terminal, the first terminal includes micro-control unit MCU, unit 701 is established,
For establishing and the communication connection of second terminal;Receiving unit 702, for receiving described second eventually by the communication connection
Hold the upgrading data sent;Upgrade unit 703, for being upgraded according to the upgrading data to the MCU.Wherein, second
The system of terminal operating includes Android system, and first terminal establishes the communication connection with second terminal so that second terminal into
After entering the open accessory agreement AOA mode of Android, the upgrading data that second terminal is sent are received, further according to upgrading data to institute
It states MCU to be upgraded, without realizing the firmware upgrade of MCU by special equipment cd-rom recorder, realize to MCU firmware liter
The optimization of grade process.
Optionally, the first terminal includes flash memory;
The upgrade unit 703 is specifically used for:
The flash memory is written into the upgrading data.
Optionally, the flash memory includes first area and second area;
The upgrade unit 703 is specifically used for:
The program code that the MCU runs the first area storage is controlled, and by the liter in the first area
Grade data resolve to target data;
The second area is written into the target data;
Control the program code that the MCU runs the second area storage.
Optionally upgrade unit 703 is specifically used for:
Wipe the legacy data in the second area.
Optionally, the unit 701 of establishing is specifically used for:
The communication connection with the second terminal is established by the data-interface of the first terminal, and makes described the
Two terminals enter the open accessory agreement AOA mode of Android.
Below referring to Fig. 8, a kind of one embodiment of MCU device for upgrading firmware includes: in the embodiment of the present application
In the present embodiment, a kind of MCU device for upgrading firmware 1 can be PC (PersonalComputer, personal electricity
Brain), it is also possible to smart phone, tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage are set
Standby terminal device.
The device 1 can be the node of composition CDN network or block chain network.The MCU device for upgrading firmware 1 can be with
Including memory 11, processor 12 and bus 13.
Wherein, memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes dodging
It deposits, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Storage
Device 11 can be the internal storage unit of MCU device for upgrading firmware 1, such as the MCU device for upgrading firmware in some embodiments
1 hard disk.Memory 11 is also possible to the External memory equipment of MCU device for upgrading firmware 1 in further embodiments, such as
The plug-in type hard disk being equipped on MCU device for upgrading firmware 1, intelligent memory card (SmartMedia Card, SMC), secure digital
(Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include MCU
The internal storage unit of device for upgrading firmware 1 also includes External memory equipment.Memory 11 can be not only used for storage and be installed on
Application software and Various types of data, such as the code of MCU firmware upgrade procedure 01 of MCU device for upgrading firmware 1 etc. can also be used
In temporarily storing the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other MCU firmware upgrade chips, for what is stored in run memory 11
Program code or processing data, such as execute MCU firmware upgrade procedure 01 etc..
The bus 13 can be Peripheral Component Interconnect standard (peripheral component interconnect, letter
Claim PCI) and bus or expanding the industrial standard structure (extended industry standard architecture, referred to as
EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..Only to be used in Fig. 8 convenient for indicating
One thick line indicates, it is not intended that an only bus or a type of bus.
Further, MCU device for upgrading firmware can also include network interface 14, and network interface 14 optionally can wrap
Wireline interface and/or wireless interface (such as WI-FI interface, blue tooth interface) are included, commonly used in the device 1 and other electronics
Communication connection is established between equipment.
Optionally, which can also include user interface, and user interface may include display (Display), defeated
Enter unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It can
Selection of land, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and
OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, display can also fit
When be known as display screen or display unit, for being shown in the information handled in MCU device for upgrading firmware 1 and for showing
Visual user interface.
Fig. 8 illustrates only the MCU device for upgrading firmware 1 with component 11-14 and MCU firmware upgrade procedure 01, ability
Field technique personnel can wrap it is understood that structure shown in fig. 1 does not constitute the restriction to MCU device for upgrading firmware 1
It includes and perhaps combines certain components or different component layouts than illustrating less perhaps more components.
It is understood that the size of the serial number of above steps is not meant in the various embodiments of the application
Execution sequence it is successive, the execution of each step sequence should be determined by its function and internal logic, without coping with the embodiment of the present application
Implementation process constitute any restriction.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description is
System, the specific work process of device and unit can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, between device or unit
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, as unit
The component of display may or may not be physical unit, it can and it is in one place, or may be distributed over more
In a network unit.Some or all of unit therein can be selected to realize this embodiment scheme according to the actual needs
Purpose.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution essence of the application
On all or part of the part that contributes to existing technology or the technical solution can be with the shape of software product in other words
Formula embodies, which is stored in a storage medium, including some instructions are used so that a calculating
Machine equipment (can be personal computer, server or the network equipment etc.) executes each embodiment the method for the application
All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, RandomAccess Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although reference
The application is described in detail in previous embodiment, those skilled in the art should understand that: it still can be right
Technical solution documented by foregoing embodiments is modified or equivalent replacement of some of the technical features;And this
It modifies or replaces, the spirit and model of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution
It encloses.
Claims (11)
1. a kind of MCU firmware upgrade method, which is characterized in that be applied to first terminal, the first terminal includes microcontroller list
First MCU, which comprises
Establish the communication connection with second terminal;
The upgrading data that the second terminal is sent are received by the communication connection;
The MCU is upgraded according to the upgrading data.
2. the method according to claim 1, wherein the first terminal includes flash memory;
It is described according to the upgrading data to the MCU carry out upgrading include:
The flash memory is written into the upgrading data.
3. according to the method described in claim 2, it is characterized in that, the flash memory includes first area and second area;
It is described to include: by the upgrading data write-in flash memory
The program code that the MCU runs the first area storage is controlled, and by the ascending series in the first area
According to resolving to target data;
The second area is written into the target data;
Control the program code that the MCU runs the second area storage.
4. according to the method described in claim 3, it is characterized in that, it is described by the target data be written the second area it
Before, the method also includes:
Wipe the legacy data in the second area.
5. method according to any one of claims 1 to 4, which is characterized in that the communication link of the foundation and second terminal
It connects and includes:
The communication connection with the second terminal is established by the data-interface of the first terminal, and makes the second terminal
Into AOA mode.
6. a kind of MCU firmware upgrade method, which is characterized in that be applied to second terminal, which comprises
The communication connection with first terminal is established by the data-interface of first terminal, executes the open accessory agreement AOA mould of Android
Formula, the first terminal include micro-control unit MCU;
Obtain the upgrading data of the MCU;
The upgrading data are sent to the first terminal by the communication connection, so that the first terminal uses institute
It states upgrading data and firmware upgrade is carried out to the MCU.
7. according to the method described in claim 6, it is characterized in that, the upgrading data packet for obtaining the MCU includes:
The upgrading PUSH message of cloud server is received, there are institutes in the cloud server for the upgrading PUSH message instruction
State the upgrading data of MCU;
The upgrading data of the MCU are downloaded in the cloud server according to the upgrading PUSH message.
8. a kind of MCU device for upgrading firmware, which is characterized in that described device includes memory and processor, on the memory
It is stored with the MCU firmware upgrade procedure that can be run on the processor, the MCU firmware upgrade procedure is held by the processor
The method according to claim 1 to 5 or claim 6-7 described in any item methods are realized when row.
9. a kind of MCU firmware upgrade system, which is characterized in that be applied to first terminal, the first terminal includes microcontroller list
First MCU, the system comprises:
Establish unit, for establish with the communication connection of second terminal so that the second terminal enters the open accessory of Android
Agreement AOA mode;
Receiving unit, for receiving the upgrading data that the second terminal is sent by the communication connection;
Upgrade unit, for being upgraded according to the upgrading data to the MCU.
10. a kind of computer readable storage medium, which is characterized in that it is solid to be stored with MCU on the computer readable storage medium
Part upgrade procedure, the MCU firmware upgrade procedure can be executed by one or more processor, to realize such as claim 1-5
Described in any item methods or the described in any item methods of claim 6-7.
11. a kind of computer program product, which is characterized in that including computer instruction, when run on a computer, so that
Computer can execute the described in any item methods of the claims 1-5 or the described in any item methods of claim 6-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910016053.5A CN109656608A (en) | 2019-01-08 | 2019-01-08 | A kind of MCU firmware upgrade method and its relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910016053.5A CN109656608A (en) | 2019-01-08 | 2019-01-08 | A kind of MCU firmware upgrade method and its relevant device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109656608A true CN109656608A (en) | 2019-04-19 |
Family
ID=66119640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910016053.5A Pending CN109656608A (en) | 2019-01-08 | 2019-01-08 | A kind of MCU firmware upgrade method and its relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109656608A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110187909A (en) * | 2019-06-03 | 2019-08-30 | 山东海格尔信息技术股份有限公司 | A kind of single-chip microcontroller firmware upgrade method based on android system |
CN111984281A (en) * | 2019-05-24 | 2020-11-24 | 北京车和家信息技术有限公司 | Software updating method, vehicle, terminal and computer readable storage medium |
CN113064621A (en) * | 2021-04-14 | 2021-07-02 | 艾体威尔电子技术(北京)有限公司 | Method for upgrading password keyboard system firmware through intelligent device android system |
CN113326057A (en) * | 2021-06-30 | 2021-08-31 | 安克创新科技股份有限公司 | Main control program upgrading method, device and system and electronic equipment |
CN113360433A (en) * | 2020-03-06 | 2021-09-07 | Oppo广东移动通信有限公司 | Data communication method and device |
CN113377384A (en) * | 2021-06-04 | 2021-09-10 | 东软睿驰汽车技术(沈阳)有限公司 | Program burning method and device, vehicle-mounted terminal and medium |
CN114661365A (en) * | 2022-02-14 | 2022-06-24 | 阿里巴巴(中国)有限公司 | Device running method, firmware management method and firmware management system |
CN115576587A (en) * | 2022-11-18 | 2023-01-06 | 合肥康芯威存储技术有限公司 | Firmware upgrading device and method for storage device |
CN117130639A (en) * | 2023-10-26 | 2023-11-28 | 江苏华鲲振宇智能科技有限责任公司 | BMC cluster management single-board MCU firmware upgrading method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204899A (en) * | 2015-09-17 | 2015-12-30 | 浪潮软件集团有限公司 | Realization of network-based singlechip firmware upgrading method |
CN105630432A (en) * | 2015-12-24 | 2016-06-01 | 北京三快在线科技有限公司 | Method, device and system for upgrading printer and printer |
CN108021382A (en) * | 2017-12-22 | 2018-05-11 | 深圳华意隆电气股份有限公司 | A kind of embedded device remote update system, method and embedded device |
CN109002310A (en) * | 2018-08-07 | 2018-12-14 | 北京云迹科技有限公司 | firmware upgrade method |
-
2019
- 2019-01-08 CN CN201910016053.5A patent/CN109656608A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204899A (en) * | 2015-09-17 | 2015-12-30 | 浪潮软件集团有限公司 | Realization of network-based singlechip firmware upgrading method |
CN105630432A (en) * | 2015-12-24 | 2016-06-01 | 北京三快在线科技有限公司 | Method, device and system for upgrading printer and printer |
CN108021382A (en) * | 2017-12-22 | 2018-05-11 | 深圳华意隆电气股份有限公司 | A kind of embedded device remote update system, method and embedded device |
CN109002310A (en) * | 2018-08-07 | 2018-12-14 | 北京云迹科技有限公司 | firmware upgrade method |
Non-Patent Citations (1)
Title |
---|
温子祺: "《ARM Cortex-M4 微控制器原理与实践》", 31 January 2016 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111984281A (en) * | 2019-05-24 | 2020-11-24 | 北京车和家信息技术有限公司 | Software updating method, vehicle, terminal and computer readable storage medium |
CN110187909A (en) * | 2019-06-03 | 2019-08-30 | 山东海格尔信息技术股份有限公司 | A kind of single-chip microcontroller firmware upgrade method based on android system |
CN113360433A (en) * | 2020-03-06 | 2021-09-07 | Oppo广东移动通信有限公司 | Data communication method and device |
CN113064621A (en) * | 2021-04-14 | 2021-07-02 | 艾体威尔电子技术(北京)有限公司 | Method for upgrading password keyboard system firmware through intelligent device android system |
CN113377384A (en) * | 2021-06-04 | 2021-09-10 | 东软睿驰汽车技术(沈阳)有限公司 | Program burning method and device, vehicle-mounted terminal and medium |
CN113326057A (en) * | 2021-06-30 | 2021-08-31 | 安克创新科技股份有限公司 | Main control program upgrading method, device and system and electronic equipment |
CN114661365A (en) * | 2022-02-14 | 2022-06-24 | 阿里巴巴(中国)有限公司 | Device running method, firmware management method and firmware management system |
WO2023151502A1 (en) * | 2022-02-14 | 2023-08-17 | 阿里巴巴(中国)有限公司 | Device operation method, firmware management method and firmware management system |
CN115576587A (en) * | 2022-11-18 | 2023-01-06 | 合肥康芯威存储技术有限公司 | Firmware upgrading device and method for storage device |
CN115576587B (en) * | 2022-11-18 | 2023-04-14 | 合肥康芯威存储技术有限公司 | Firmware upgrading device and method for storage device |
CN117130639A (en) * | 2023-10-26 | 2023-11-28 | 江苏华鲲振宇智能科技有限责任公司 | BMC cluster management single-board MCU firmware upgrading method and system |
CN117130639B (en) * | 2023-10-26 | 2024-03-08 | 江苏华鲲振宇智能科技有限责任公司 | BMC cluster management single-board MCU firmware upgrading method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109656608A (en) | A kind of MCU firmware upgrade method and its relevant device | |
CN108733005B (en) | Method and device for controlling linkage of intelligent equipment | |
US9524148B1 (en) | Multi-module compilation system, multi-module compilation method, and non-transitory computer-readable storage medium | |
US11875171B2 (en) | Blockchain network transaction processing method, apparatus, device, and storage medium | |
CN106598632B (en) | Firmware upgrading method and device for optical module | |
CN108388599B (en) | Electronic device, data migration and calling method and storage medium | |
CN108492195B (en) | Rule engine package parameter generalization method, equipment and storage medium | |
CN107926075B (en) | System and method for supporting data communication in heterogeneous environment | |
CN105183675A (en) | USB equipment access method, device and system, terminal and server | |
EP3217279A1 (en) | Module system, module-based robot system, and update method for module system | |
CN109062617A (en) | A kind of application method, the mobile terminal of platform that supporting polymorphic type equipment | |
CN102129384A (en) | Method and apparatus for virtualizing a host USB adapter | |
CN110875850B (en) | Firmware upgrading method and system, readable storage medium and terminal equipment | |
CN105357204B (en) | Method and device for generating terminal identification information | |
CN103019755B (en) | The wireless program method for down loading of multi-CPU in embedded system | |
CN102945173A (en) | User program on-line upgrading system and method | |
CN102222017A (en) | Methods and systems to implement non-ABI conforming features across unseen interfaces | |
CN109189434A (en) | A kind of online upgrading method of electric energy meter | |
CN109918203A (en) | Access server memory management optimization method, access server and communication system | |
CN102495736A (en) | Method and system for identifying software code svn version in executable file | |
CN110278278A (en) | A kind of data transmission method, system, device and computer media | |
CN107770299A (en) | A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium | |
CN108153548A (en) | A kind of EMMC firmware upgrade methods and device | |
CN110515671A (en) | Initial method, apparatus for initializing, terminal device and readable storage medium storing program for executing | |
CN114153477A (en) | Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190419 |