CN106909352A - A kind of firmware upgrade method of embedded device - Google Patents

A kind of firmware upgrade method of embedded device Download PDF

Info

Publication number
CN106909352A
CN106909352A CN201510969415.4A CN201510969415A CN106909352A CN 106909352 A CN106909352 A CN 106909352A CN 201510969415 A CN201510969415 A CN 201510969415A CN 106909352 A CN106909352 A CN 106909352A
Authority
CN
China
Prior art keywords
embedded device
data
control unit
write
upgrading
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
CN201510969415.4A
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.)
Beijing Aeonmed Co Ltd
Original Assignee
Beijing Aeonmed 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 Beijing Aeonmed Co Ltd filed Critical Beijing Aeonmed Co Ltd
Priority to CN201510969415.4A priority Critical patent/CN106909352A/en
Publication of CN106909352A publication Critical patent/CN106909352A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Abstract

The present invention relates to a kind of firmware upgrade method of embedded device, including:Operation bootstrap loader;The Flash read-write initialization of embedded device;Under upgrade mode, the application area of the control unit of embedded device is wiped, by the valid data in upgrade file, by the application area of the control unit of its sequence of addresses write-in embedded device;Compare reading whether consistent with write-in data, if there is exception, retransmit upgrading data, after data write-in to be upgraded is finished, terminate escalation process;In the normal operating mode, the start address of the control unit of embedded device is jumped to, the application program of the control unit of embedded device is run.

Description

A kind of firmware upgrade method of embedded device
Technical field
The present invention relates to the area of maintenance of embedded device, more particularly to a kind of firmware upgrade method of embedded device.
Background technology
Firmware (Firmware) refers to write-in EROM (EROM) or EEPROM (electrically erasables Programmable read only memory) in program.Firmware is to serve as that system is most basic, bottom work software. And in hardware device, firmware is exactly the soul of hardware device, because some hardware devices do not have in addition to firmware Other softwares are constituted, therefore firmware also just decides the function and performance of hardware device.
In the maintenance process of the embedded device of such as Anesthesia machine, in order to cost-effective, hardware, knot are being changed without On the premise of structure, carry out firmware upgrade to meet demand is widespread practice.For the demand of new software function, use Family is more willing to pay a small amount of firmware upgrade expense, rather than the whole very worthy machine of replacing.So, also Mean Anesthesia machine firmware must possess quickly, the method easily upgraded.The method of common firmware upgrade is The circuit board or technical staff's carrying instrument that replacing has new firmware go to scene to be updated.More than it is required for machine Dismounted, it is cumbersome and easily installation question etc. occur, it is ageing also poor.
The content of the invention
It is an object of the invention to overcome existing embedded device firmware upgrade method to need to change the electricity for having new firmware Road plate or technical staff carry the defect that instrument goes to scene to be updated, so as to provide a kind of ageing good, simple Convenient firmware upgrade method.
To achieve these goals, the invention provides a kind of firmware upgrade method of embedded device, including:
Step 1), embedded device power-up start after, run bootstrap loader;
Step 2), the Flash of embedded device read-write initialization, the API library of Flash is copied from Flash regions To SRAM areas;
Step 3), read active flag, and then judge be enter upgrade mode or normal operation mode, if rise Level pattern performs step 4), if normal operation mode, then perform step 11);
Step 4), wait graphic user interface send upgrade command, after bootstrap loader receives upgrade command, Replied to graphic user interface and confirm upgrading;
Step 5), erasing embedded device control unit application area, if wiping successfully, to graphical user Interface reports and successfully instructs, and then performs next step, if erasing failure, reports upgrading to fail to graphic user interface Instruction, then re-executes step 4);
Step 6), when graphic user interface receive wipe successfully instruction after, start to read and parse upgrade file, so Encapsulated according to communications protocol after each row of data in upgrade file is extracted afterwards, upgrading data packet is generated, then to embedding Enter the control unit transmission of formula equipment;
Step 7), the control unit of embedded device receive upgrading data packet, extract valid data therein, press The application area of the control unit of its sequence of addresses write-in embedded device;
Step 8), write after, then the data of write-in are read from memory block, compare reading and write-in data whether one Cause, if the control unit of embedded device receives upgrading data time-out or write-in data exception, to graphical user Interface application retransmits the packet of the upgrading data frame, if write-in data are normal, judges whether upgrading data transfer Finish, if end of transmission, perform step 10), otherwise continue to the next packet of graphical user interface application;
Step 9), after graphic user interface receives the upgrading data application bag of the control unit of embedded device, after The continuous corresponding data frame of encapsulation, and transmit to the control unit of embedded device, then re-execute step 7);When The upgrading data application bag time-out of the control unit of the embedded device that graphic user interface is received, then resend The unreceived upgrading data frame of control unit of embedded device;
Step 10), whole data transfer finish, show that the control unit of embedded device is normally written and finish, rewrite Active flag, terminates escalation process, re-executes step 1);
Step 11), jump to embedded device control unit start address, run embedded device control list The application program of unit.
In above-mentioned technical proposal, the upgrade file is the upgrade file of HEX forms, the data parsing of HEX forms Many aspects that must be from including including row initial character, data length, data type, verification are checked.
The advantage of the invention is that:
The mode such as the usable external connection of storage card (USB flash disk, SD card etc.) of the present invention or long-range connection sets to BDU and lower end It is standby to be upgraded, it is not necessary to carry flashburn tools, it is not required that dismounted, it is time saving and energy saving.
Brief description of the drawings
Fig. 1 is a schematic diagram for the program storage area of Anesthesia machine;
Fig. 2 is the flow chart of firmware upgrade method of the invention.
Specific embodiment
In conjunction with accompanying drawing, the invention will be further described.
The running of embedded device is generally:From after program storage area startup, operation storage is in program storage area Code data.When the firmware to embedded device is upgraded automatically, it is necessary in replacing program storage area one Partial data.
In an embodiment of the present invention, by taking Anesthesia machine as an example, the upgrade method to Anesthesia machine firmware is illustrated.
Fig. 1 is a schematic diagram for the program storage area of Anesthesia machine.It will be apparent from this figure that program storage area Address 0x003D8000 is the start address of bootstrap loader (Bootloader), the part after the address Memory space stores the code of Bootloader.The loading of anesthesia machines system starts task by BootLoader To complete, in the present invention, the online upgrading of Anesthesia machine software is also completed by BootLoader.Program storage area Address 0x003E4000 is the storage address of active flag, and the active flag should be located for identifying current Anesthesia machine In upgrade mode or normal operation mode.The address 0x003E8000 of program storage area is BDU (Breath Delivery Unit, control of breathing unit) application program start address.
With reference to Fig. 2, firmware upgrade method of the invention includes:
Step 1), Anesthesia machine power-up start after, run Bootloader.
Step 2), Flash read-write initialization, copy the API library of Flash to SRAM areas from Flash regions.
Step 3), read active flag, and then judge it is that (active flag is 0xFFFF in fig. 2 into upgrade mode Represent upgrade mode) or normal operation mode (active flag is for 0x0001 represents normal operation mode in fig. 2), If upgrade mode performs step 4), if normal operation mode, then perform step 11).
Step 4), wait GUI (Graphic User Interface, graphic user interface) send upgrade command, when After Bootloader receives upgrade command, replied to GUI and confirm upgrading.
Step 5), erasing BDU (Breath Delivery Unit, control of breathing unit) application area, if wipe Except success, reported to GUI and successfully instructed, then perform next step, if erasing failure, report upgrading to lose to GUI Instruction is lost, step 4 is then re-executed).
Step 6), when GUI receive wipe successfully instruction after, start to read and parse the upgrade file of HEX forms, The data parsing of HEX forms must be examined from various aspects such as row initial character, data length, data type, verifications Look into.Then encapsulated according to communications protocol after each row of data in upgrade file is extracted, generate upgrading data packet, so Backward BDU transmission.
Step 7), BDU receive upgrading data packet, extract valid data therein, write by its sequence of addresses BDU application areas.
Step 8), write after, then the data of write-in are read from memory block, compare reading and write-in data whether one Cause.If BDU receives upgrading data time-out or write-in data exception, the upgrading data are retransmitted to GUI applications The packet of frame, if write-in data are normal, the data that judge to upgrade whether end of transmission, if end of transmission, perform step It is rapid 10), otherwise continue to apply for next packet to GUI.
Step 9), after GUI receives the upgrading data application bag of BDU, continue to encapsulate corresponding data frame, and Transmit to BDU, then re-execute step 7);When the upgrading data application bag time-out of the BDU that GUI is received, Then resend the unreceived upgrading data frames of BDU.
Step 10), whole data transfer finish, show that BDU is normally written and finish, rewrite active flag (will open Dynamic mark is rewritten as 0x0001 by 0xFFFF), terminate escalation process, re-execute step 1).
Step 11), jump to BDU start address, run BDU application programs.
After possessing the function of firmware upgrade in Anesthesia machine, it is possible to achieve complete firmware upgrade without tearing machine open;Work as anesthesia Equipment can also complete remote upgrade, remote diagnosis, maintenance etc. for remote communicating function.
It should be noted last that, the above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted.Although The present invention has been described in detail with reference to embodiment, it will be understood by those within the art that, to the present invention Technical scheme modify or equivalent, without departure from the spirit and scope of technical solution of the present invention, its is equal Should cover in the middle of scope of the presently claimed invention.

Claims (2)

1. a kind of firmware upgrade method of embedded device, including:
Step 1), embedded device power-up start after, run bootstrap loader;
Step 2), the Flash of embedded device read-write initialization, the API library of Flash is copied from Flash regions To SRAM areas;
Step 3), read active flag, and then judge be enter upgrade mode or normal operation mode, if rise Level pattern performs step 4), if normal operation mode, then perform step 11);
Step 4), wait graphic user interface send upgrade command, after bootstrap loader receives upgrade command, Replied to graphic user interface and confirm upgrading;
Step 5), erasing embedded device control unit application area, if wiping successfully, to graphical user Interface reports and successfully instructs, and then performs next step, if erasing failure, reports upgrading to fail to graphic user interface Instruction, then re-executes step 4);
Step 6), when graphic user interface receive wipe successfully instruction after, start to read and parse upgrade file, so Encapsulated according to communications protocol after each row of data in upgrade file is extracted afterwards, upgrading data packet is generated, then to embedding Enter the control unit transmission of formula equipment;
Step 7), the control unit of embedded device receive upgrading data packet, extract valid data therein, press The application area of the control unit of its sequence of addresses write-in embedded device;
Step 8), write after, then the data of write-in are read from memory block, compare reading and write-in data whether one Cause, if the control unit of embedded device receives upgrading data time-out or write-in data exception, to graphical user Interface application retransmits the packet of the upgrading data frame, if write-in data are normal, judges whether upgrading data transfer Finish, if end of transmission, perform step 10), otherwise continue to the next packet of graphical user interface application;
Step 9), after graphic user interface receives the upgrading data application bag of the control unit of embedded device, after The continuous corresponding data frame of encapsulation, and transmit to the control unit of embedded device, then re-execute step 7);When The upgrading data application bag time-out of the control unit of the embedded device that graphic user interface is received, then resend The unreceived upgrading data frame of control unit of embedded device;
Step 10), whole data transfer finish, show that the control unit of embedded device is normally written and finish, rewrite Active flag, terminates escalation process, re-executes step 1);
Step 11), jump to embedded device control unit start address, run embedded device control list The application program of unit.
2. the firmware upgrade method of embedded device according to claim 1, it is characterised in that the upgrading File for HEX forms upgrade file, HEX forms data parsing must from including row initial character, data length, Data type, verification are checked in interior many aspects.
CN201510969415.4A 2015-12-22 2015-12-22 A kind of firmware upgrade method of embedded device Pending CN106909352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510969415.4A CN106909352A (en) 2015-12-22 2015-12-22 A kind of firmware upgrade method of embedded device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510969415.4A CN106909352A (en) 2015-12-22 2015-12-22 A kind of firmware upgrade method of embedded device

Publications (1)

Publication Number Publication Date
CN106909352A true CN106909352A (en) 2017-06-30

Family

ID=59200426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510969415.4A Pending CN106909352A (en) 2015-12-22 2015-12-22 A kind of firmware upgrade method of embedded device

Country Status (1)

Country Link
CN (1) CN106909352A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255508A (en) * 2018-01-18 2018-07-06 晶晨半导体(上海)股份有限公司 A kind of method for upgrading system and embedded device
CN108415717A (en) * 2018-03-22 2018-08-17 南京尤尼泰信息科技有限公司 A kind of ZYNQSOC firmware upgrade methods and update device
CN108762774A (en) * 2018-05-22 2018-11-06 深圳市先河系统技术有限公司 A kind of method of firmware burning and the equipment of firmware burning
CN108804118A (en) * 2018-04-25 2018-11-13 顺丰科技有限公司 Firmware upgrade method, equipment and storage medium
CN109522035A (en) * 2018-09-29 2019-03-26 珠海格力电器股份有限公司 A kind of programme upgrade method, device, commissioning device and electrical equipment
WO2020062887A1 (en) * 2018-09-26 2020-04-02 深圳市慧嘉智科技有限公司 Firmware upgrading method and system based on flash micro-controller, and flash micro-controller
CN111367539A (en) * 2018-12-25 2020-07-03 北京兆易创新科技股份有限公司 eMMC online upgrading method and device
CN111367540A (en) * 2018-12-25 2020-07-03 北京兆易创新科技股份有限公司 eMMC firmware upgrading method and device
CN111538515A (en) * 2020-04-17 2020-08-14 杭州海兴电力科技股份有限公司 Method, device and equipment for upgrading electric energy meter program
CN111580842A (en) * 2020-04-16 2020-08-25 北京遥感设备研究所 On-line upgrading method and system for vehicle-mounted millimeter wave radar application program
CN112947977A (en) * 2021-01-26 2021-06-11 上海船舶运输科学研究所 Software online upgrading method and system
CN113238789A (en) * 2021-05-27 2021-08-10 闻泰通讯股份有限公司 Electronic equipment, firmware upgrading method and device thereof and computer readable storage medium
CN116541042A (en) * 2023-05-25 2023-08-04 深圳市航顺芯片技术研发有限公司 Firmware upgrading method, control chip and intelligent household appliance

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030088868A1 (en) * 2001-11-06 2003-05-08 Chang Robert C. Implementation of in system programming to update firmware on memory cards
CN101425018A (en) * 2008-12-05 2009-05-06 深圳创维数字技术股份有限公司 Embedded firmware upgrading method and device based on sectional form
CN103246536A (en) * 2013-04-28 2013-08-14 常州南京大学高新技术研究院 Method for wirelessly upgrading firmware of instrumented positioning system
CN104090796A (en) * 2014-07-08 2014-10-08 成都万维图新信息技术有限公司 Embedded device program updating method and system
CN104750505A (en) * 2013-12-26 2015-07-01 北京谊安医疗系统股份有限公司 Single chip microcomputer online upgrade method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030088868A1 (en) * 2001-11-06 2003-05-08 Chang Robert C. Implementation of in system programming to update firmware on memory cards
CN101425018A (en) * 2008-12-05 2009-05-06 深圳创维数字技术股份有限公司 Embedded firmware upgrading method and device based on sectional form
CN103246536A (en) * 2013-04-28 2013-08-14 常州南京大学高新技术研究院 Method for wirelessly upgrading firmware of instrumented positioning system
CN104750505A (en) * 2013-12-26 2015-07-01 北京谊安医疗系统股份有限公司 Single chip microcomputer online upgrade method and system
CN104090796A (en) * 2014-07-08 2014-10-08 成都万维图新信息技术有限公司 Embedded device program updating method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
熊茂华,熊昕编著: "《物联网技术与应用开发》", 31 August 2012, 西安电子科技大学出版社 *
邓世昆编著: "《计算机网络》", 28 February 2015, 云南大学出版社 *
郝兴伟主编: "《大学计算机基础》", 31 August 2004, 高等教育出版社 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255508A (en) * 2018-01-18 2018-07-06 晶晨半导体(上海)股份有限公司 A kind of method for upgrading system and embedded device
CN108415717A (en) * 2018-03-22 2018-08-17 南京尤尼泰信息科技有限公司 A kind of ZYNQSOC firmware upgrade methods and update device
CN108415717B (en) * 2018-03-22 2021-03-23 南京尤尼泰信息科技有限公司 ZYNQ SOC firmware upgrading method and upgrading device
CN108804118A (en) * 2018-04-25 2018-11-13 顺丰科技有限公司 Firmware upgrade method, equipment and storage medium
CN108762774A (en) * 2018-05-22 2018-11-06 深圳市先河系统技术有限公司 A kind of method of firmware burning and the equipment of firmware burning
WO2020062887A1 (en) * 2018-09-26 2020-04-02 深圳市慧嘉智科技有限公司 Firmware upgrading method and system based on flash micro-controller, and flash micro-controller
CN109522035A (en) * 2018-09-29 2019-03-26 珠海格力电器股份有限公司 A kind of programme upgrade method, device, commissioning device and electrical equipment
CN111367540B (en) * 2018-12-25 2023-08-29 兆易创新科技集团股份有限公司 eMMC firmware upgrading method and device
CN111367539A (en) * 2018-12-25 2020-07-03 北京兆易创新科技股份有限公司 eMMC online upgrading method and device
CN111367540A (en) * 2018-12-25 2020-07-03 北京兆易创新科技股份有限公司 eMMC firmware upgrading method and device
CN111580842A (en) * 2020-04-16 2020-08-25 北京遥感设备研究所 On-line upgrading method and system for vehicle-mounted millimeter wave radar application program
CN111538515A (en) * 2020-04-17 2020-08-14 杭州海兴电力科技股份有限公司 Method, device and equipment for upgrading electric energy meter program
CN112947977A (en) * 2021-01-26 2021-06-11 上海船舶运输科学研究所 Software online upgrading method and system
CN112947977B (en) * 2021-01-26 2023-12-19 上海船舶运输科学研究所 Online software upgrading method and system
CN113238789A (en) * 2021-05-27 2021-08-10 闻泰通讯股份有限公司 Electronic equipment, firmware upgrading method and device thereof and computer readable storage medium
CN116541042A (en) * 2023-05-25 2023-08-04 深圳市航顺芯片技术研发有限公司 Firmware upgrading method, control chip and intelligent household appliance
CN116541042B (en) * 2023-05-25 2024-01-16 深圳市航顺芯片技术研发有限公司 Firmware upgrading method, control chip and intelligent household appliance

Similar Documents

Publication Publication Date Title
CN106909352A (en) A kind of firmware upgrade method of embedded device
CN107179909B (en) Software upgrading method and device and computer readable storage medium
CN106569847B (en) Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
CN102662785B (en) Method and device for acquiring kernel error information of Android system
CN101650662B (en) Memory device of embedded system and staring method and upgrading of firmware
CN113495799B (en) Memory fault processing method and related equipment
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN109189445A (en) A kind of method of internet of things equipment program upgrading
CN106951342B (en) The error correction method of Flash in a kind of TF card piece
CN105677398A (en) Universal embedded computer software on-line upgrading method
CN105760165B (en) A kind of method that self backup load of MCU refreshes
CN102446141B (en) Device and method for realizing write protection control
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN109002305A (en) A kind of update method and its system of device program
TWI493341B (en) Memory storage device and repairing method thereof
CN105740015A (en) Upgrade method for firmware of HMD device
CN107704338A (en) A kind of data reconstruction method and device of data storage type flash
CN116501357A (en) Online upgrade method of singlechip
CN107957923A (en) A kind of memory diagnosis method and apparatus
CN105337782A (en) Method and device for automatic upgrading after boot failure of network equipment firmware
CN104699514A (en) Remote-control end system updating method and device
CN112908390B (en) Data storage method, device, electronic equipment and storage medium
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
EP2515237A1 (en) Portable secure device providing storage service

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: 20170630