CN109284122A - A kind of automatically upgrading firmware method and its storage medium based on storage medium - Google Patents

A kind of automatically upgrading firmware method and its storage medium based on storage medium Download PDF

Info

Publication number
CN109284122A
CN109284122A CN201810925042.4A CN201810925042A CN109284122A CN 109284122 A CN109284122 A CN 109284122A CN 201810925042 A CN201810925042 A CN 201810925042A CN 109284122 A CN109284122 A CN 109284122A
Authority
CN
China
Prior art keywords
upgrade
storage medium
main mcu
file
upgraded
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
CN201810925042.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.)
Shenzhen DJ Innovation Industry Co Ltd
Original Assignee
Shenzhen De Tech Medical Instruments 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 De Tech Medical Instruments Co Ltd filed Critical Shenzhen De Tech Medical Instruments Co Ltd
Priority to CN201810925042.4A priority Critical patent/CN109284122A/en
Publication of CN109284122A publication Critical patent/CN109284122A/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/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

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

The present invention discloses a kind of automatically upgrading firmware method and its storage medium based on storage medium, and the automatically upgrading firmware method based on storage medium includes: that storage medium and electronic equipment to be upgraded are established connection;The upgrade file of main MCU starting in electronic equipment to be upgraded and the upgrade procedure in automatically scanning storage medium, and compare file name;If file name is consistent, main MCU in electronic equipment to be upgraded by storage medium single upgrade file write-in or multiple upgrade files be sequentially written in;When multiple upgrade files are written, the last one upgrading of main MCU, and judge whether main MCU needs to upgrade before upgrading, if desired upgrade, then the last one upgrade file jumps to application layer after writing direct into the ROM of main MCU or FLASH and terminates to upgrade, if jumping directly to application layer terminates to upgrade without upgrading.The automatically upgrading firmware method is simple, upgrading is convenient, and in no professional, user can voluntarily carry out updating operation, reduce cost, is convenient for remote maintenance.

Description

A kind of automatically upgrading firmware method and its storage medium based on storage medium
Technical field
The present invention relates to the technical fields of firmware upgrade, and in particular to a kind of automatically upgrading firmware side based on storage medium Method and its storage medium.
Background technique
The software upgrading of current some professional electrical apparatus usually requires technical professional and passes through laptop Human assistance upgrading or upgraded by dedicated upgrading platelet, if the software of client is once when something goes wrong, It is generally necessary to which the long period just can solve problem, in addition, equipment supplier is also required to be equipped with more technical team and material resources money Services client is carried out in source, and cost consumption is larger, working efficiency is low.
Summary of the invention
It is an object of the invention to solve the problems of the prior art, a kind of firmware based on storage medium is provided and is risen automatically Grade method and its storage medium, the automatically upgrading firmware method is simple, upgrading is convenient, and in no professional, uses Family can voluntarily carry out updating operation, reduce human and material resources cost, be convenient for remote maintenance.
To reach above-mentioned purpose, the present invention adopts the following technical scheme:
A kind of automatically upgrading firmware method based on storage medium contains upgrade procedure in the storage medium;The side Method includes: that storage medium and electronic equipment to be upgraded are established connection;Main MCU in electronic equipment to be upgraded starts and sweeps automatically The upgrade file of the upgrade procedure in storage medium is retouched, and compares file name;If file name is consistent, electronic equipment to be upgraded In main MCU then by storage medium the write-in of single upgrade file or multiple upgrade files be sequentially written in;Multiple liters are written Grade file when, main MCU the last one upgrading, and upgrade before judge whether main MCU needs to upgrade, if desired upgrade, then last A upgrade file, which jumps to application layer after writing direct into the ROM of main MCU or FLASH, to be terminated to upgrade, if without upgrading, Jumping directly to application layer terminates to upgrade.
Further, when comparing file name, main MCU in the equipment to be upgraded is by the upgrade file in upgrade procedure File name be compared with the file name that the file name of corresponding secondary MCU or main MCU are pre-set.
Further, when the upgrade procedure in the storage medium contains multiple upgrade files, in electronic equipment to be upgraded Main MCU successively the upgrade file scanned is ranked up during automatically scanning storage medium.
Further, the main MCU in the electronic equipment to be upgraded is successively read the content of each upgrade file, and main MCU is written into the ROM or FLASH of corresponding secondary MCU after every content for having read a upgrade file.
Further, when the upgrade procedure in the storage medium contains a upgrade file, the electronics to be upgraded is set After main MCU in standby reads the upgrade file contents, be written into the ROM for the main MCU or secondary MCU for needing to upgrade or In FLASH.
Further, the storage medium is that portable storage equipment or cloud store.
A kind of storage medium in the automatically upgrading firmware method applied to above-mentioned based on storage medium, including memory And processor;The memory is used to store the upgrade procedure;The processor is for calling upgrading in the memory The upgrade file of program.
Compared with the existing technology, the beneficial effect of acquirement is technical solutions according to the invention:
(1) disposably all MCU in Multiple MCU System are upgraded by the upgrade procedure in storage medium, is avoided There are multiple MCU in MCU system and need the case where individually being upgraded, upgrading efficiency can be effectively improved.
(2) upgraded by the entrained upgrade procedure in storage medium, simple, convenient, client is not having Professional technician can be easy to use, easy to operate since progress firmware upgrade in the case where field;Convenient for remote maintenance, Reduce human and material resources cost.
(3) it by storage mediums such as USB flash disk, cloud storages, carries or extracts and is convenient, fast.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the process of the firmware upgrade method in the embodiment of the present invention one in storage medium when only one upgrade file Schematic diagram;
Fig. 2 is to have the process of firmware upgrade method when multiple upgrade files to show in storage medium in the embodiment of the present invention two It is intended to.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used To explain the present invention, it is not intended to limit the present invention.
Embodiment one
Firmware upgrade side when only one upgrade file in storage medium of the embodiment of the present invention is shown referring to Fig. 1, Fig. 1 The flow diagram of method.As shown in Figure 1, the embodiment of the invention provides a kind of automatically upgrading firmware sides based on storage medium Method, storage medium here refer to cloud memory module or portable portable memory module (such as USB flash disk), which is situated between Contain upgrade procedure in matter, for being iterated update for the firmware in mobile phone, computer or other electronic products.
It specifically, should consolidating based on storage medium when the upgrade procedure in storage medium contains only a upgrade file For part automatically updating method specifically includes the following steps: storage is established connection with electronic equipment to be upgraded, which can be for electrically The connection types such as connection, wireless communication connection or network communication connection.
It establishes after connection, the main MCU in electronic equipment to be upgraded starts the liter in starting and automatically scanning storage medium The upgrade file of grade program, and compare file name;Specifically, the main MCU in equipment to be upgraded will upgrade journey in storage medium The file name of the upgrade file of sequence is pre-set with the file name of secondary MCU corresponding in equipment to be upgraded or main MCU File name is compared.
At this point, main MCU in electronic equipment to be upgraded is literary by the single upgrading in storage medium if file name is consistent Part be written into the ROM or FLASH for needing the main MCU that updates or secondary MCU for needing to update it is interior after, jump to system application layer Terminate upgrading.
Embodiment two
Firmware upgrade method when there are multiple upgrade files in storage medium of the embodiment of the present invention is shown referring to Fig. 1, Fig. 1 Flow diagram.As shown in Figure 1, the embodiment of the invention provides a kind of automatically upgrading firmware method based on storage medium, Here storage medium refers to cloud memory module or portable portable memory module (such as USB flash disk), the storage medium Inside contain upgrade procedure, for being iterated update for the firmware in mobile phone, computer or other electronic products.
Specifically, the firmware based on storage medium is somebody's turn to do when the upgrade procedure in storage medium contains multiple upgrade files certainly Dynamic upgrade method specifically includes the following steps: storage with electronic equipment to be upgraded is established connection, the connection can be electrically connected, The connection types such as wireless communication connection or network communication connection.
It establishes after connection, the main MCU in electronic equipment to be upgraded starts the liter in starting and automatically scanning storage medium The upgrade file of grade program, and compare file name.Specifically, after the main MCU starting in electronic equipment to be upgraded, sequentially Also each upgrade file is sequentially ranked up while being scanned to the upgrade file in storage medium, such as by traversing of probe To upgrade file be sequentially named as the first upgrade file, the second upgrade file, third upgrade file ... etc.;Compare filename When title, main MCU in equipment to be upgraded by the file name of the upgrade file in storage medium upgrade procedure sequentially with it is corresponding The file name that the file name of secondary MCU or main MCU are pre-set sequentially is compared.
When file name compares, if the file that the file name of corresponding corresponding secondary MCU or main MCU are pre-set Title is consistent, just carries out firmware upgrade, the content of each upgrade file is successively read by the main MCU in equipment to be upgraded, and main MCU is written into the ROM or FLASH of corresponding secondary MCU after every content for having read a upgrade file;Tool Body, after the content that a upgrade file has been read by the main MCU in equipment to be upgraded, it is written into corresponding filename In the ROM or FLASH of the secondary MCU claimed, then, the main MCU in equipment to be upgraded continues to read the content of next upgrade file, And the upgrade file newly read is written into the ROM or FLASH of the secondary MCU of corresponding file name again, and so on, directly To by institute update in need secondary MCU updated later be left the last one upgrade file, at this point, the master in equipment to be upgraded MCU judges whether its own needs to upgrade, and if desired upgrades, then the last one upgrade file write direct to the ROM of main MCU or Jumping to application layer after in FLASH terminates to upgrade, if jumping directly to application layer terminates to upgrade without upgrading.
Embodiment three
The present embodiment also provides the storage in a kind of automatically upgrading firmware method applied to above-mentioned based on storage medium and is situated between Matter, the storage medium include memory and processor;Memory is used to store the upgrade procedure;Processor is deposited for calling The upgrade file of upgrade procedure in reservoir to receive the instruction of the main MCU in equipment to be upgraded, and presses above-mentioned automatically upgrading firmware Method calls upgrade file to main MCU.
Using above-described embodiment as can be seen that the present invention is based in the automatically upgrading firmware method of storage medium, by depositing Upgrade procedure in storage media disposably upgrades all MCU in Multiple MCU System, avoids the occurrence of more in MCU system A MCU needs the case where individually being upgraded, and can effectively improve upgrading efficiency.
Upgraded by the entrained upgrade procedure in storage medium, simple, convenient, client is in no profession Technical staff can be easy to use, easy to operate since progress firmware upgrade in the case where field;Convenient for remote maintenance, reduce Human and material resources cost.
By storage mediums such as USB flash disk, cloud storages, carries or extract and is convenient, fast.
Description above describe the preferred embodiments of the type of this practical sample, it is to be understood that the type of this practical sample not limits to In above-described embodiment, and excluding other embodiments should not be regarded as.Enlightenment through the invention, those skilled in the art combine The change that the known or prior art, knowledge are carried out also should be regarded as in the protection scope that this hair is invented.

Claims (7)

1. a kind of automatically upgrading firmware method based on storage medium, it is characterized in that: containing upgrade procedure in the storage medium; The described method includes: storage medium and electronic equipment to be upgraded are established connection;In electronic equipment to be upgraded main MCU starting and The upgrade file of upgrade procedure in automatically scanning storage medium, and compare file name;If file name is consistent, electricity to be upgraded Main MCU in sub- equipment then by storage medium single upgrade file write-in or multiple upgrade files be sequentially written in;
When multiple upgrade files are written, the last one upgrading of main MCU, and judge whether main MCU needs to upgrade before upgrading, if desired Upgrading, then the last one upgrade file jumps to application layer after writing direct into the ROM of main MCU or FLASH and terminates to upgrade, If jumping directly to application layer terminates to upgrade without upgrading.
2. a kind of automatically upgrading firmware method based on storage medium as described in claim 1, it is characterized in that: comparing filename When title, main MCU in the equipment to be upgraded is by the text of the file name of the upgrade file in upgrade procedure and corresponding secondary MCU The file name that part title or main MCU are pre-set is compared.
3. a kind of automatically upgrading firmware method based on storage medium as claimed in claim 1 or 2, it is characterized in that: described deposit When upgrade procedure in storage media contains multiple upgrade files, the main MCU in electronic equipment to be upgraded is stored in automatically scanning to be situated between Successively the upgrade file scanned is ranked up during matter.
4. a kind of automatically upgrading firmware method based on storage medium as claimed in claim 3, it is characterized in that: described to be upgraded Main MCU in electronic equipment is successively read the content of each upgrade file, and main MCU has been read in a upgrade file every It is all written into after holding into the ROM or FLASH of corresponding secondary MCU.
5. a kind of automatically upgrading firmware method based on storage medium as claimed in claim 1 or 2, it is characterized in that: described deposit When upgrade procedure in storage media contains a upgrade file, the main MCU in the electronic equipment to be upgraded reads upgrading text After part content, it is written into the ROM or FLASH for the main MCU or secondary MCU for needing to upgrade.
6. a kind of automatically upgrading firmware method based on storage medium as described in claim 1, it is characterized in that: the storage is situated between Matter is that portable storage equipment or cloud store.
7. a kind of a kind of automatically upgrading firmware side based on storage medium applied to as described in any one of claim 1 to 6 Storage medium in method, it is characterized in that: including memory and processor;The memory is used to store the upgrade procedure; The processor is used to call the upgrade file of upgrade procedure in the memory.
CN201810925042.4A 2018-08-14 2018-08-14 A kind of automatically upgrading firmware method and its storage medium based on storage medium Pending CN109284122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810925042.4A CN109284122A (en) 2018-08-14 2018-08-14 A kind of automatically upgrading firmware method and its storage medium based on storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810925042.4A CN109284122A (en) 2018-08-14 2018-08-14 A kind of automatically upgrading firmware method and its storage medium based on storage medium

Publications (1)

Publication Number Publication Date
CN109284122A true CN109284122A (en) 2019-01-29

Family

ID=65183434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810925042.4A Pending CN109284122A (en) 2018-08-14 2018-08-14 A kind of automatically upgrading firmware method and its storage medium based on storage medium

Country Status (1)

Country Link
CN (1) CN109284122A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058870A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Automatic detection upgrade method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012155803A1 (en) * 2011-05-16 2012-11-22 山东新北洋信息技术股份有限公司 Printer, and method and device for upgrading firmware thereof
CN104375855A (en) * 2014-09-24 2015-02-25 深圳市航盛电子股份有限公司 Device and method for upgrading firmware through storage devices on basis of multiple vehicle-mounted MCUs
US20150089490A1 (en) * 2013-09-20 2015-03-26 Canon Kabushiki Kaisha Information processing system, information processing apparatus, device, software installation method, and storage medium
CN106951277A (en) * 2017-02-15 2017-07-14 青岛亿联客信息技术有限公司 Multi-chip firmware program updating method and multi-chip firmware program updating system
CN107291497A (en) * 2017-06-08 2017-10-24 Tcl通力电子(惠州)有限公司 Multi-firmware upgrading method and system and readable storage medium
CN107491328A (en) * 2017-08-02 2017-12-19 广东美的暖通设备有限公司 Updating firmware program method, system and electric equipment
CN107707467A (en) * 2017-10-23 2018-02-16 华东交通大学 Intelligent gateway device and its firmware upgrade method based on SD card upgrading
CN107733720A (en) * 2017-11-09 2018-02-23 顺丰科技有限公司 Portable firmware upgrade method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012155803A1 (en) * 2011-05-16 2012-11-22 山东新北洋信息技术股份有限公司 Printer, and method and device for upgrading firmware thereof
US20150089490A1 (en) * 2013-09-20 2015-03-26 Canon Kabushiki Kaisha Information processing system, information processing apparatus, device, software installation method, and storage medium
CN104375855A (en) * 2014-09-24 2015-02-25 深圳市航盛电子股份有限公司 Device and method for upgrading firmware through storage devices on basis of multiple vehicle-mounted MCUs
CN106951277A (en) * 2017-02-15 2017-07-14 青岛亿联客信息技术有限公司 Multi-chip firmware program updating method and multi-chip firmware program updating system
CN107291497A (en) * 2017-06-08 2017-10-24 Tcl通力电子(惠州)有限公司 Multi-firmware upgrading method and system and readable storage medium
CN107491328A (en) * 2017-08-02 2017-12-19 广东美的暖通设备有限公司 Updating firmware program method, system and electric equipment
CN107707467A (en) * 2017-10-23 2018-02-16 华东交通大学 Intelligent gateway device and its firmware upgrade method based on SD card upgrading
CN107733720A (en) * 2017-11-09 2018-02-23 顺丰科技有限公司 Portable firmware upgrade method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058870A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Automatic detection upgrade method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103729189B (en) Broadcasting method for converting protocol based on LUA, system, terminal
CN103246529A (en) Method, equipment and system for updating and pushing navigation bar
CN106909447B (en) Background application processing method and device and terminal
CN111026769B (en) Working method of dual-core front-end system and related equipment thereof
CN105786606A (en) Data transferring method and system for intelligent terminals
CN102685018A (en) Method and system for processing network instant messaging message and instant massaging equipment
CN107562386A (en) A kind of method for writing data and device of distributed storage cluster
CN107025120A (en) Software upgrading processing method, device and terminal
CN110019263A (en) Information storage means and device
CN109284122A (en) A kind of automatically upgrading firmware method and its storage medium based on storage medium
CN104899050B (en) The method, apparatus and electronic equipment of application program are installed in the terminal
CN105138604A (en) Terminal data processing method and apparatus
CN105528334B (en) A kind of method and terminal of document function processing
US20140167686A1 (en) Content download and synchronization
CN106156274A (en) Page content loading method and device and electronic equipment
CN109992585A (en) Data lead-in method for office management system
CN112328272B (en) Algorithm upgrading method, device, equipment and storage medium
CN103188567A (en) Method for transplanting internet of things communication module on television
CN104052627A (en) System and method for managing mobile terminal based on cloud network in mobile power source
CN103077379A (en) Fingerprint input method
CN109933358A (en) For reducing the control method of measuring equipment program upgrading amount
CN105511918B (en) A kind of data memory format automatic maintenance method of intelligent electric energy meter
CN103488506A (en) Method and device for unloading management of application programs
CN206224588U (en) A kind of self-service business deduction management system
CN202838405U (en) Control cabinet used for managing archives storage device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210713

Address after: 518000 room 1301, building F, Qifeng digital science and Technology Park, No. 26, Baili Road, xialilang community, Nanwan street, Longgang District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen DJ Innovation Industry Co.,Ltd.

Address before: Area B2, 5 / F, building C, Qifeng digital science and Technology Park, No. 26, Xiali langbaili Road, Nanwan street, Longgang District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Deji Medical Devices Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190129