CN110007941A - A kind of the MCU firmware and upgrade method of Intelligent refuse classification recovery system - Google Patents
A kind of the MCU firmware and upgrade method of Intelligent refuse classification recovery system Download PDFInfo
- Publication number
- CN110007941A CN110007941A CN201910163164.9A CN201910163164A CN110007941A CN 110007941 A CN110007941 A CN 110007941A CN 201910163164 A CN201910163164 A CN 201910163164A CN 110007941 A CN110007941 A CN 110007941A
- Authority
- CN
- China
- Prior art keywords
- firmware
- mcu
- file
- user area
- check character
- 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.)
- Granted
Links
- 238000011084 recovery Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 title claims abstract description 16
- 108700039691 Genetic Promoter Regions Proteins 0.000 claims abstract description 10
- 238000004064 recycling Methods 0.000 claims abstract description 8
- 238000012795 verification Methods 0.000 claims description 8
- 239000007787 solid Substances 0.000 claims description 2
- 230000006854 communication Effects 0.000 abstract description 7
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000005192 partition Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/105—Arrangements for software license management or administration, e.g. for managing licenses at corporate level
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of MCU firmware of intelligent garbage recovery system and upgrade methods, its described entire file of MCU firmware has a MD5 check character, file is divided into three areas according to intelligent garbage recovery system slave computer MCU memory space, respectively promoter region, user area A, user area B, promoter region is guidance code area, user area A and user area B is control routine area, and user area A, user area B have oneself independent MD5 check character A, MD5 check character B respectively;The MCU firmware file-name be from left to right followed successively by firmware version number, decollator, entire MCU firmware MD5 check character, file suffixes, the firmware version number for intelligent garbage recovery system server and host computer judge whether the mark for meeting promotion condition.The invention can ensure that data are damaged and can be found in time in any one communication process, loss different degrees of caused by being damaged because of firmware to intelligence recycling terminal is prevented.
Description
Technical field
The invention belongs to garbage reclamation technique fields, are related to a kind of Intelligent refuse classification recovery system, and in particular to Yi Zhongzhi
The MCU firmware and upgrade method of energy classified-refuse recovery system.
Background technique
A kind of existing Intelligent refuse classification recovery system passes through wireless network connection including server, with server
Intelligent refuse classification recycles terminal, has in Intelligent refuse classification recycling terminal host computer, with host computer communication connection for point
Multiple slave computers of class recycling.MCU firmware server, host computer, slave computer transmission process in often encounter it is many not
Same transport vehicle and different communication modes, in a variety of different communication process, data can be because of the difference of communication modes
And cause different degrees of damage;In the place of network environment difference, it be easy to cause the case where downloading successfully but shortage of data.
Currently, in file verification technical field, especially MD5 file verification technology, since existing technology is to pass through list
Pure verifies entire firmware, is not verified individually to each subregion, if firmware occurs in escalation process
Problem, it is complete at this time just not can guarantee firmware, leads to firmware upgrade failure or MCU system collapse.
Summary of the invention
One of the objects of the present invention is to provide one kind in various transmission data modes, in insecure transmission process,
Guarantee the MCU firmware of the absolutely complete intelligent garbage recovery system of data, to solve shortcoming in the prior art.
The second object of the present invention is to provide a kind of upgrade method of the MCU firmware of intelligent garbage recovery system.
The technical solution adopted by the present invention is that:
A kind of MCU firmware of Intelligent refuse classification recovery system, the entire file of MCU firmware have a MD5 check character, text
Part is divided into three areas, respectively promoter region, user area A, user according to intelligent garbage recovery system slave computer MCU memory space
Area B, promoter region are guidance code area, and user area A and user area B are control routine area, and user area A, user area B have oneself respectively
Independent MD5 check character A, MD5 check character B;The MCU firmware file-name is from left to right followed successively by firmware version number, segmentation
MD5 check character, the file suffixes of symbol, entire MCU firmware, the firmware version number are used for the server of intelligent garbage recovery system
Judge whether the mark for meeting promotion condition with host computer.
Further, there are fixed initial address, initial address in the promoter region, user area A, tri- areas user area B
For starting the program of current partition in fixed position.
A kind of upgrade method of the MCU firmware of Intelligent refuse classification recovery system, the upgrade method the following steps are included:
(1) host computer obtains MCU file from server, obtains firmware version number from filename first, the firmware with slave computer
Whether version number's comparison meets upgrade file;
(2) after determining that fileversion number belongs to scalable MCU firmware, complete MCU firmware file-name is obtained;
(3) when filename contains decollator, the MD5 check character of entire MCU firmware is taken out, it, will after verifying entire MCU firmware
Two check character comparisons, as a result consistent supporting paper is complete, verifies successfully, and as a result inconsistent, file has missing, cannot be used to
Upgrade file is done, reacquires, if success can not be obtained always, reports error message, artificial treatment;
(4) if verified successfully, firmware data is divided into several frames and is successively handed down to slave computer, slave computer root in order by host computer
According to the data information received, corresponding district location is write data into, after being all transmitted, to presently written subregion
Last time MD5 verification is carried out, Intelligent refuse classification recycling terminal is restarted after verifying successfully;
(5) after restarting Intelligent refuse classification recycling terminal, the firmware program that operation has newly upgraded, upgrading is completed.
The present invention compared with the prior art, has the advantages that
1, the present invention is by carrying out subregion for MCU file, and generates two subregion check characters, contains firmware version in filename
Number, can by the identifier of firmware version number and a MD5 check character of entire MCU firmware, the MD5 check character A of two subregions,
The mode checking file MCU firmware of MD5 check character B, guaranteeing in any one communication process that data damage can be timely
It was found that preventing loss different degrees of caused by being damaged because of firmware to intelligence recycling terminal;Under more extreme communication environment, energy
Guarantee that data are completely reliable.
2, three areas, which are arranged, fixed initial address, and initial address is used to start current partition in fixed position
Program, convenient for unified maintenance and upgrade.
3, in upgrade method of the invention, identifier and entire MCU firmware are used for using the firmware version number in filename
A MD5 check character and verification upgrading is carried out to the MD5 check character of presently written subregion, it is ensured that firmware is absolutely complete
Whole, upgrading is reliable.
Detailed description of the invention
Fig. 1 is the MCU firmware storage organization block diagram of Intelligent refuse classification recovery system slave computer of the present invention;
Fig. 2 is MCU firmware file name format block diagram of the present invention;
Fig. 3 is Intelligent refuse classification recovery system slave computer upgrading flow chart of the present invention.
Specific embodiment
The following describes the present invention in detail with reference to the accompanying drawings and specific embodiments.
As shown in Figure 1, MCU firmware is divided into three according to Intelligent refuse classification recovery system slave computer MCU memory space
Area, respectively promoter region 1, user area A2, user area B3.Promoter region 1 is guidance code, and program enters from this area first, root
According to the flag bit of the fixed position in promoter region, selection enters user area A2 or user area B3 and runs program.Each area has fixed
Initial address, respectively promoter region initial address 4, user area A initial address 5 are user area B initial address 6, in fixed position
The program for starting current partition is set, convenient for unified maintenance and upgrade.User area A2, user area B3 have oneself independent MD5 verification
Symbol, the address of respectively MD5 check character A7 and MD5 check character B8, MD5 check character A7 and MD5 check character B8 are not fixed positions
It sets, after valid code.
When program is run in the A2 of user area, upgrade procedure needs to download in the B3 of user area, and upgrading can after completing
To be verified according to the MD5 check character B8 of the size of upgrading data and end, verification is completed to guarantee that data are absolutely complete
Reliably.
When program is run in the B3 of user area, upgrade procedure needs to download in the A2 of user area, and upgrading can after completing
To be verified according to the MD5 check character A7 of the size of upgrading data and end, verification is completed to guarantee that data are absolutely complete
Reliably.
Consolidate as shown in Fig. 2, MCU firmware file-name is from left to right followed successively by firmware version number 9, decollator 10, entire MCU
MD5 check character 11, the file suffixes 12 of part.Fileversion number 9, for describing the version information of current firmware, for upper
Machine and server judge whether the mark for meeting promotion condition;Decollator 10, it is solid for distinguishing firmware version number 9 and entire MCU
The position of the MD5 check character 11 of part, only one character;The MD5 check character 11 of entire MCU firmware, altogether 16 hexadecimal
Character, check character is by PC Software Create;File suffixes 12, expression file type are hex file, and storage mode is 16
System is read when reading file by byte.
When server or host computer get file, MCU firmware version number 9 is obtained first, with the version on slave computer
Whether this number information comparison meets upgrade file.
After determining that fileversion number belongs to scalable MCU firmware, complete MCU firmware file-name is obtained, text is worked as
When part name contains decollator 10, the MD5 check character 11 of entire MCU firmware is taken out, after verifying entire MCU firmware, with check character
Comparison, as a result consistent supporting paper is complete, and as a result inconsistent, file has missing, cannot be used to do upgrade file, need again
It obtains, if success can not be obtained always, needs to report error message, artificial treatment.It can be issued to if verifying successfully
Slave computer carries out firmware upgrade, after upgrading is completed, restarting operation recent program.
As shown in figure 3, slave computer MCU internal storage and MCU firmware have same subregion, in firmware upgrade process,
Firmware data is divided into several frames and is successively handed down to slave computer in order by host computer, slave computer according to the data information received,
Corresponding district location is write data into, after being all transmitted, the school last time MD5 is carried out to presently written subregion
It tests, restarting equipment after verifying successfully.Equipment runs the firmware program newly upgraded after restarting, upgrading is completed.This is firmware
The last stage in entire transmission process, it is ensured that firmware is absolutely complete when finally using.
Above embodiment is specific embodiments of the present invention, is not intended to limit implementation and right model of the invention
It encloses, all equivalence changes and modification made according to content described in patent application scope of patent protection should all be included in the present invention
In claim.
Claims (3)
1. a kind of MCU firmware of Intelligent refuse classification recovery system, which is characterized in that the entire file of MCU firmware has one
File is divided into three areas according to intelligent garbage recovery system slave computer MCU memory space, respectively started by MD5 check character
Area, user area A, user area B, promoter region are guidance code area, and user area A and user area B are control routine area, user area A, are used
Family area B has oneself independent MD5 check character A, MD5 check character B respectively;The MCU firmware file-name is from left to right followed successively by solid
Part version number, decollator, entire MCU firmware MD5 check character, file suffixes, the firmware version number for intelligent garbage return
The server and host computer of receipts system judge whether the mark for meeting promotion condition.
2. a kind of MCU firmware of Intelligent refuse classification recovery system according to claim 1, which is characterized in that described to open
There is fixed initial address in dynamic area, user area A, tri- areas user area B, and initial address in fixed position for starting currently
The program of subregion.
3. a kind of upgrade method of the MCU firmware of Intelligent refuse classification recovery system, which is characterized in that the upgrade method includes
Following steps:
(1) host computer obtains MCU file from server, obtains firmware version number from filename first, the firmware with slave computer
Whether version number's comparison meets upgrade file;
(2) after determining that fileversion number belongs to scalable MCU firmware, complete MCU firmware file-name is obtained;
(3) when filename contains decollator, the MD5 check character of entire MCU firmware is taken out, it, will after verifying entire MCU firmware
Two check character comparisons, as a result consistent supporting paper is complete, verifies successfully, and as a result inconsistent, file has missing, cannot be used to
Upgrade file is done, reacquires, if success can not be obtained always, reports error message, artificial treatment;
(4) if verified successfully, firmware data is divided into several frames and is successively handed down to slave computer, slave computer root in order by host computer
According to the data information received, corresponding district location is write data into, after being all transmitted, to presently written subregion
Last time MD5 verification is carried out, Intelligent refuse classification recycling terminal is restarted after verifying successfully;
(5) restart Intelligent refuse classification recycling terminal, the firmware program that operation has newly upgraded, upgrading is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910163164.9A CN110007941B (en) | 2019-03-05 | 2019-03-05 | MCU firmware and upgrading method of intelligent garbage classification recycling system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910163164.9A CN110007941B (en) | 2019-03-05 | 2019-03-05 | MCU firmware and upgrading method of intelligent garbage classification recycling system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110007941A true CN110007941A (en) | 2019-07-12 |
CN110007941B CN110007941B (en) | 2022-11-08 |
Family
ID=67166408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910163164.9A Active CN110007941B (en) | 2019-03-05 | 2019-03-05 | MCU firmware and upgrading method of intelligent garbage classification recycling system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110007941B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502914A (en) * | 2019-08-26 | 2019-11-26 | 河南航天金穗电子有限公司 | A kind of remote encryption upgrade method based on public security intelligent terminal control module |
CN112181466A (en) * | 2020-09-08 | 2021-01-05 | 上海深聪半导体有限责任公司 | Voice air conditioner firmware cloud upgrading method and system |
CN112988188A (en) * | 2021-02-23 | 2021-06-18 | 上海龙感汽车电子有限公司 | Software upgrading method applied to automobile steering wheel corner sensor |
CN115102855A (en) * | 2022-03-08 | 2022-09-23 | 上海锐铼水务科技有限公司 | Intelligent water meter embedded software online upgrading method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650662A (en) * | 2009-08-26 | 2010-02-17 | 中兴通讯股份有限公司 | Memory device of embedded system and staring method and upgrading of firmware |
CN107436778A (en) * | 2017-03-07 | 2017-12-05 | 安徽科微智能科技有限公司 | A kind of high reliability upgrade method of unmanned systems |
CN108108193A (en) * | 2016-11-24 | 2018-06-01 | 厦门脉视数字技术有限公司 | A kind of easy-to-use firmware upgrade method of safety and system |
WO2018176733A1 (en) * | 2017-03-30 | 2018-10-04 | 百富计算机技术(深圳)有限公司 | Firmware upgrade method, terminal and computer-readable non-volatile storage medium |
CN109358888A (en) * | 2018-12-18 | 2019-02-19 | 郑州云海信息技术有限公司 | Server firmware upgrade method, device, system and computer readable storage medium |
-
2019
- 2019-03-05 CN CN201910163164.9A patent/CN110007941B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650662A (en) * | 2009-08-26 | 2010-02-17 | 中兴通讯股份有限公司 | Memory device of embedded system and staring method and upgrading of firmware |
CN108108193A (en) * | 2016-11-24 | 2018-06-01 | 厦门脉视数字技术有限公司 | A kind of easy-to-use firmware upgrade method of safety and system |
CN107436778A (en) * | 2017-03-07 | 2017-12-05 | 安徽科微智能科技有限公司 | A kind of high reliability upgrade method of unmanned systems |
WO2018176733A1 (en) * | 2017-03-30 | 2018-10-04 | 百富计算机技术(深圳)有限公司 | Firmware upgrade method, terminal and computer-readable non-volatile storage medium |
CN109358888A (en) * | 2018-12-18 | 2019-02-19 | 郑州云海信息技术有限公司 | Server firmware upgrade method, device, system and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
方彬浩: "基于IAP的ARM处理器固件升级设计", 《现代信息科技》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502914A (en) * | 2019-08-26 | 2019-11-26 | 河南航天金穗电子有限公司 | A kind of remote encryption upgrade method based on public security intelligent terminal control module |
CN112181466A (en) * | 2020-09-08 | 2021-01-05 | 上海深聪半导体有限责任公司 | Voice air conditioner firmware cloud upgrading method and system |
CN112181466B (en) * | 2020-09-08 | 2024-04-16 | 深聪半导体(江苏)有限公司 | Cloud upgrading method and system for firmware of voice air conditioner |
CN112988188A (en) * | 2021-02-23 | 2021-06-18 | 上海龙感汽车电子有限公司 | Software upgrading method applied to automobile steering wheel corner sensor |
CN115102855A (en) * | 2022-03-08 | 2022-09-23 | 上海锐铼水务科技有限公司 | Intelligent water meter embedded software online upgrading method and system |
CN115102855B (en) * | 2022-03-08 | 2023-12-22 | 上海锐铼水务科技有限公司 | Online upgrading method and system for intelligent water meter embedded software |
Also Published As
Publication number | Publication date |
---|---|
CN110007941B (en) | 2022-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110007941A (en) | A kind of the MCU firmware and upgrade method of Intelligent refuse classification recovery system | |
CN108491199B (en) | Method and terminal for automatically generating interface | |
EP1519268B1 (en) | Communication terminal and communication network for partially updating software, software update method, and software creation device and method therefor | |
CN100566357C (en) | Communication apparatus batch configuration managerial approach and device thereof | |
US7599970B2 (en) | Method and apparatus for updating a stored version of content stored in a storage device | |
CN108279922A (en) | Differential file generation method, upgrade method and system based on the differential file | |
CN103106138B (en) | The method that test case is synchronous with test script and device | |
CN104407899A (en) | Method for restoring and starting network card after MAC address is changed under REDHAT operating system | |
CN110032377A (en) | Communication module method for upgrading software, system and communication module | |
CN104468811B (en) | Upgrade method and device | |
CN106502718B (en) | The upgrade method and device of program, controller | |
CN103309712A (en) | Mobile phone software upgrade method and system | |
CN106897166A (en) | A kind of mobile terminal and its restorative procedure | |
CN113110832A (en) | Intelligent efficient code generation method and device and storage medium | |
CN109462661B (en) | Data synchronization method and device, computer equipment and storage medium | |
CN106529281B (en) | A kind of executable file processing method and processing device | |
CN108446132A (en) | A method of remotely updating electric power acquisition terminal software based on TFTP | |
CN113360379B (en) | Program test environment creation method and program test environment creation apparatus | |
CN104133743A (en) | Method and device for burning file into EMMC (Embedded MultiMedia Card) | |
CN107621945A (en) | A kind of method and device for the mark for determining ios device | |
CN103001797A (en) | Method for remotely managing operating commands for multiple devices of integrated circuit production line | |
CN104679660A (en) | Embedded system debugging method and device based on symbol table | |
CN113791809B (en) | Application exception handling method and device and computer readable storage medium | |
CN107015831A (en) | A kind of client updating management method upgraded based on server end and system | |
CN111629200A (en) | Method and device for rapidly detecting differential packet reliability and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |