CN105511929A - Remote wireless upgrading method for equipment - Google Patents

Remote wireless upgrading method for equipment Download PDF

Info

Publication number
CN105511929A
CN105511929A CN201511013704.3A CN201511013704A CN105511929A CN 105511929 A CN105511929 A CN 105511929A CN 201511013704 A CN201511013704 A CN 201511013704A CN 105511929 A CN105511929 A CN 105511929A
Authority
CN
China
Prior art keywords
program
rompaq
district
data
upgrade
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
CN201511013704.3A
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.)
Qingdao Gaoxiao Information Industry Corp Ltd
Original Assignee
Qingdao Gaoxiao Information Industry Corp 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 Qingdao Gaoxiao Information Industry Corp Ltd filed Critical Qingdao Gaoxiao Information Industry Corp Ltd
Priority to CN201511013704.3A priority Critical patent/CN105511929A/en
Publication of CN105511929A publication Critical patent/CN105511929A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading

Abstract

The invention relates to a remote wireless upgrading method for equipment. The method comprises the following steps: running a program in a bootloader area; judging whether or not upgrading program data are available, and if so, upgrading a program in an upgrading program area; if upgrading succeeds, running the program in the upgrading program area; if the upgrading program data are unavailable or upgrading fails, running a program in a backup program area. A processor comprises the bootloader area, the upgrading program area and the backup program area, and can run the programs in the bootloader area, the upgrading program area and the backup program area respectively. At startup of equipment, the program in the bootloader area is run firstly, and the program in the backup program area can be run under the condition of success or failure in upgrading in order to ensure that the equipment can still run normally under the condition of failure in upgrading.

Description

A kind of apparatus remote radio upgrade method
Technical field
The present invention relates to the technical field, particularly a kind of apparatus remote radio upgrade method of the upgrading of a kind of apparatus remote.
Background technology
Along with the development of infotech, long-range unmanned equipment is widely used in every field.Due to development and the renewal of technology, unattended duty equipment needs regularly to upgrade, but field upgrade operations intensity is large, difficulty is high, and remote automatic upgrading then well addresses this problem.
Existing equipment remote radio upgrade method is: processor comprises two memory blocks: bootloader district and APP district, after processor powers on, first operates in bootloader district, when meeting the condition of upgrading, the program in Ze Dui APP district is upgraded, and after having upgraded, processor restarts; If when not meeting the condition of upgrading, program pointer directly jumps to APP district, starts to perform the program leaving APP district in.But this kind of upgrade method is once program upgrade failure, and the program in former APP district is capped, and causes equipment normally to run, and needs manually to go site disposal.
Summary of the invention
The object of the present invention is to provide a kind of apparatus remote radio upgrade method, solve existing upgrade method and there is the technical matters that program upgrade unsuccessfully can directly cause equipment normally to run.
Solve above-mentioned technical purpose for reaching, the present invention adopts following technical scheme to be achieved:
A kind of apparatus remote radio upgrade method, described method comprises: the program running bootloader district; Judge whether ROMPaq data, if having, upgrade the program in ROMPaq district; If upgrade successfully, run the program in ROMPaq district; If there is no ROMPaq data or upgrade unsuccessfully, then run the program in stand-by program district.
Apparatus remote radio upgrade method as above, described processor is provided with refresh routine zone bit, has judged whether refresh routine by refresh routine zone bit.
Apparatus remote radio upgrade method as above, described processor is provided with and upgrades successfully zone bit, judges whether to upgrade successfully by upgrading successfully zone bit.
Apparatus remote radio upgrade method as above, comprises the following steps:
The program in B1, operation bootloader district, inquiry upgrades zone bit;
B2, judge whether refresh routine zone bit is set, if so, enters step B3, otherwise, enter step B5;
Refresh routine zone bit, to ROMPaq district, resets after copy by the ROMPaq data in B3, copy memories, upgrades successfully zone bit and resets, and jump to ROMPaq district and upgrade;
B4, judge whether to upgrade successfully, if so, enter step B6, otherwise, enter step B1;
B5, judge whether upgrade successfully zone bit be set; If so, step B6 is entered, otherwise, enter step B7;
The program in B6, operation ROMPaq district, will upgrade successfully zone bit set;
The program in B7, operation stand-by program district.
Apparatus remote radio upgrade method as above, processor is when running the program in ROMPaq district or stand-by program district, after receiving upgrade, control wireless module and start to receive ROMPaq data, and the ROMPaq data received are stored to storer; After receiving all ROMPaq data, restarting equipment runs the program in bootloader district.
Apparatus remote radio upgrade method as above, also comprises the step of the ROMPaq data in copy memories to stand-by program district after the program in described operation ROMPaq district.
Apparatus remote radio upgrade method as above, after receiving all ROMPaq data, by the set of refresh routine zone bit.
Apparatus remote radio upgrade method as above, described ROMPaq data comprise some data subpackages, and the process receiving ROMPaq data is the process receiving data subpackage successively.
Apparatus remote radio upgrade method as above, described data subpackage comprises packet header, bag tail and verification, the process of described reception ROMPaq data is: the current data subpackage that equipment receiving end/sending end sends, judge after reception whether verification is correct, if correct, then preserve current data subpackage and send confirmation to transmitting terminal, transmitting terminal continues to send next data subpackage, otherwise, do not process and wait for that transmitting terminal resends current data subpackage.
Apparatus remote radio upgrade method as above, described transmitting terminal does not receive the confirmation information and then resends current data packet to equipment in setting-up time.
Beneficial effect of the present invention is: processor of the present invention comprises bootloader district, ROMPaq district and stand-by program district; Processor can run the program in bootloader district, ROMPaq district and stand-by program district respectively, during device start, first runs the program in bootloader district, has judged whether ROMPaq data, if having, upgraded to the program in ROMPaq district; If do not have or the program upgrade failure in ROMPaq district time, run the program in stand-by program district, to ensure that equipment still can normally run when upgrading unsuccessfully.
After reading the detailed description of embodiment of the present invention by reference to the accompanying drawings, the other features and advantages of the invention will become clearly.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the specific embodiment of the invention.
Fig. 2 is the process flow diagram of the specific embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described:
The present embodiment can respond remote upgrade to make processor, presets bootloader district, store bootloader program in bootloader district in processor.BootLoader program is one section of boot, and it is within a processor resident, when first running before user program after processor powerup/reset.It first judges current the need of ROMPaq after running.
As shown in Figure 1, processor inside is divided into 3 districts.Be respectively bootloader district, stand-by program district and ROMPaq district.Bootloader program is stored in bootloader district; Stand-by program stores stand-by program in district, and ROMPaq stores ROMPaq in district.As shown in Figure 1, apparatus remote radio upgrade method is:
The program in S1, operation bootloader district;
S2, judge whether refresh routine, if enter step S3, otherwise, enter step S6;
The program in S3, renewal ROMPaq district;
S4, judge upgrading whether success, if so, enter step S5, otherwise, enter step S6;
The program in S5, operation ROMPaq district;
The program in S6, operation stand-by program district.
Processor, when running the program in ROMPaq district or stand-by program district, after receiving upgrade, controls wireless module and starts to receive ROMPaq data, and the ROMPaq data received are stored to storer; After receiving all ROMPaq data, restarting equipment runs the program in bootloader district, namely enters step S1.
Preferably, the step of the ROMPaq data in copy memories to stand-by program district is also comprised after running the program in ROMPaq district.
Wherein, because ROMPaq data file is usually all comparatively large, need subpackage process, namely ROMPaq data comprise some data subpackages, and the process receiving ROMPaq data is the process receiving data subpackage successively.
Data subpackage comprises packet header, bag tail and verification, the process receiving ROMPaq data is: the current data subpackage that equipment receiving end/sending end sends, after receiving current data subpackage, first check analysis judges whether verification is correct, if correct, then preserve current data subpackage and send confirmation to transmitting terminal, transmitting terminal continues to send next data subpackage, otherwise, do not process and wait for that transmitting terminal resends current data subpackage.If transmitting terminal does not receive the confirmation information in setting-up time, resend current data packet to equipment.Solve wireless telecommunications because of problems such as signals by the communication modes adding check sum question-response and cause the situation of ROMPaq data receiver failure.
Concrete, processor is provided with refresh routine zone bit and upgrades successfully zone bit, having judged whether refresh routine, judging whether to upgrade successfully by upgrading successfully zone bit by refresh routine zone bit.
The program in B1, operation bootloader district, inquiry upgrades zone bit.
B2, judge upgrade zone bit whether be set (1), if so, enter step B3, otherwise, enter step B5.
ROMPaq data in B3, copy memories, to ROMPaq district, will upgrade zone bit and reset (0) after copy, upgrade successfully zone bit and reset (0), and jump to ROMPaq district and upgrade.
B4, judge whether to upgrade successfully, if so, enter step B6, otherwise, enter step B1.
B5, judge whether upgrade successfully zone bit be set (1); If so, step B6 is entered, otherwise, enter step B7.
The program in B6, operation ROMPaq district, will upgrade successfully zone bit set (1).
The program in B7, operation stand-by program district.
B8, processor receive upgrade by wireless module.
B9, start to receive the subpackage of ROMPaq data;
Whether correctly B10, checking data subpackage, if so, enter step B11, otherwise, enter step B14.
B11, the subpackage of preservation data, send confirmation.
B12, determine whether that last wraps, if so, enter B13, otherwise enter B8.
B13, zone bit set (1) will be upgraded, enter step B1.
B14, do not process wait for transmitting terminal resend current data subpackage, enter step B8.
The present embodiment detects in bootloader district and upgrades zone bit, if equal 0, just enters stand-by program district.Upgrade successfully zone bit equal 1 so can arrange after running new ROMPaq, can select when restarting operation like this to enter ROMPaq district, if ROMPaq failure, upgrading successfully zone bit can be also 0, stand-by program district can be entered into so after restart, guarantee system can normally work, and can also again receive ROMPaq packet according to above flow process simultaneously.
The equipment of the present embodiment can be energy for building acquisition gateway.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. an apparatus remote radio upgrade method, is characterized in that, described method comprises: the program running bootloader district; Judge whether ROMPaq data, if having, upgrade the program in ROMPaq district; If upgrade successfully, run the program in ROMPaq district; If there is no ROMPaq data or upgrade unsuccessfully, then run the program in stand-by program district.
2. apparatus remote radio upgrade method according to claim 1, is characterized in that, described processor is provided with refresh routine zone bit, has judged whether refresh routine by refresh routine zone bit.
3. apparatus remote radio upgrade method according to claim 1, is characterized in that, described processor is provided with and upgrades successfully zone bit, judges whether to upgrade successfully by upgrading successfully zone bit.
4. apparatus remote radio upgrade method according to claim 1, is characterized in that, comprise the following steps:
The program in B1, operation bootloader district, inquiry upgrades zone bit;
B2, judge whether refresh routine zone bit is set, if so, enters step B3, otherwise, enter step B5;
Refresh routine zone bit, to ROMPaq district, resets after copy by the ROMPaq data in B3, copy memories, upgrades successfully zone bit and resets, and jump to ROMPaq district and upgrade;
B4, judge whether to upgrade successfully, if so, enter step B6, otherwise, enter step B1;
B5, judge whether upgrade successfully zone bit be set; If so, step B6 is entered, otherwise, enter step B7;
The program in B6, operation ROMPaq district, will upgrade successfully zone bit set;
The program in B7, operation stand-by program district.
5. the apparatus remote radio upgrade method according to claim 1-4 any one, it is characterized in that, processor is when running the program in ROMPaq district or stand-by program district, after receiving upgrade, control wireless module to start to receive ROMPaq data, and the ROMPaq data received are stored to storer; After receiving all ROMPaq data, restarting equipment runs the program in bootloader district.
6. the apparatus remote radio upgrade method according to claim 1-4 any one, is characterized in that, also comprises the step of the ROMPaq data in copy memories to stand-by program district after the program in described operation ROMPaq district.
7. apparatus remote radio upgrade method according to claim 5, is characterized in that, after receiving all ROMPaq data, by the set of refresh routine zone bit.
8. apparatus remote radio upgrade method according to claim 5, is characterized in that, described ROMPaq data comprise some data subpackages, and the process receiving ROMPaq data is the process receiving data subpackage successively.
9. apparatus remote radio upgrade method according to claim 8, it is characterized in that, described data subpackage comprises packet header, bag tail and verification, the process of described reception ROMPaq data is: the current data subpackage that equipment receiving end/sending end sends, and judges that whether verification is correct, if correctly after reception, then preserve current data subpackage and send confirmation to transmitting terminal, transmitting terminal continues to send next data subpackage, otherwise, do not process and wait for that transmitting terminal resends current data subpackage.
10. apparatus remote radio upgrade method according to claim 9, is characterized in that, described transmitting terminal does not receive the confirmation information and then resends current data packet to equipment in setting-up time.
CN201511013704.3A 2015-12-31 2015-12-31 Remote wireless upgrading method for equipment Pending CN105511929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511013704.3A CN105511929A (en) 2015-12-31 2015-12-31 Remote wireless upgrading method for equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511013704.3A CN105511929A (en) 2015-12-31 2015-12-31 Remote wireless upgrading method for equipment

Publications (1)

Publication Number Publication Date
CN105511929A true CN105511929A (en) 2016-04-20

Family

ID=55719936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511013704.3A Pending CN105511929A (en) 2015-12-31 2015-12-31 Remote wireless upgrading method for equipment

Country Status (1)

Country Link
CN (1) CN105511929A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955783A (en) * 2016-05-09 2016-09-21 浙江大学 Method for downloading remote FPGA logic codes on basis of FPGA control
CN105975322A (en) * 2016-06-15 2016-09-28 珠海格力电器股份有限公司 Device and method for program update and microcontroller
CN106020861A (en) * 2016-05-05 2016-10-12 惠州Tcl移动通信有限公司 FOTA upgrading method and system for smart watch
CN106201439A (en) * 2016-09-09 2016-12-07 深圳怡化电脑股份有限公司 A kind of method and device of abnormality processing
CN106227572A (en) * 2016-08-30 2016-12-14 深圳市蓝海华腾技术股份有限公司 A kind of frequency converter control system programme upgrade method
CN106445592A (en) * 2016-09-22 2017-02-22 杭州电子科技大学 Long-distance multi-machine program upgrading method based on WIFI and CAN bus
CN107153559A (en) * 2017-05-19 2017-09-12 北京有初科技有限公司 The application program updating method of a kind of electronic equipment
CN108459870A (en) * 2018-02-07 2018-08-28 重庆通畅无忧信息技术有限公司 A kind of filling machine upgrade method and device
CN109828766A (en) * 2017-11-23 2019-05-31 阿特斯阳光电力集团有限公司 Photovoltaic apparatus upgrade-system and method
CN111459508A (en) * 2020-03-27 2020-07-28 北京经纬恒润科技有限公司 Boot L loader self-upgrading method and system
CN111641527A (en) * 2020-05-28 2020-09-08 四川爱创科技有限公司 Remote upgrading backup method for embedded chip software
CN111984298A (en) * 2020-07-17 2020-11-24 歌尔光学科技有限公司 Program upgrading area in flash memory, program upgrading method and system
WO2021115477A1 (en) * 2019-12-13 2021-06-17 中兴通讯股份有限公司 Program upgrade method and apparatus, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075564A (en) * 2010-12-23 2011-05-25 李华嵩 Remote software upgrading technique
CN103577214A (en) * 2012-08-09 2014-02-12 罗森伯格(上海)通信技术有限公司 Method and device for updating application program
CN103631674A (en) * 2012-08-24 2014-03-12 京信通信系统(中国)有限公司 FPGA embedded in CPU and starting method thereof
US20140351569A1 (en) * 2010-11-08 2014-11-27 Gemalto Sa Software updating process for an embedded device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351569A1 (en) * 2010-11-08 2014-11-27 Gemalto Sa Software updating process for an embedded device
CN102075564A (en) * 2010-12-23 2011-05-25 李华嵩 Remote software upgrading technique
CN103577214A (en) * 2012-08-09 2014-02-12 罗森伯格(上海)通信技术有限公司 Method and device for updating application program
CN103631674A (en) * 2012-08-24 2014-03-12 京信通信系统(中国)有限公司 FPGA embedded in CPU and starting method thereof

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020861A (en) * 2016-05-05 2016-10-12 惠州Tcl移动通信有限公司 FOTA upgrading method and system for smart watch
CN106020861B (en) * 2016-05-05 2019-09-24 惠州Tcl移动通信有限公司 A kind of the FOTA upgrade method and system of smartwatch
CN105955783A (en) * 2016-05-09 2016-09-21 浙江大学 Method for downloading remote FPGA logic codes on basis of FPGA control
CN105975322A (en) * 2016-06-15 2016-09-28 珠海格力电器股份有限公司 Device and method for program update and microcontroller
CN106227572A (en) * 2016-08-30 2016-12-14 深圳市蓝海华腾技术股份有限公司 A kind of frequency converter control system programme upgrade method
CN106201439B (en) * 2016-09-09 2019-09-20 深圳怡化电脑股份有限公司 A kind of method and device of abnormality processing
CN106201439A (en) * 2016-09-09 2016-12-07 深圳怡化电脑股份有限公司 A kind of method and device of abnormality processing
CN106445592A (en) * 2016-09-22 2017-02-22 杭州电子科技大学 Long-distance multi-machine program upgrading method based on WIFI and CAN bus
CN107153559A (en) * 2017-05-19 2017-09-12 北京有初科技有限公司 The application program updating method of a kind of electronic equipment
CN109828766A (en) * 2017-11-23 2019-05-31 阿特斯阳光电力集团有限公司 Photovoltaic apparatus upgrade-system and method
CN108459870A (en) * 2018-02-07 2018-08-28 重庆通畅无忧信息技术有限公司 A kind of filling machine upgrade method and device
WO2021115477A1 (en) * 2019-12-13 2021-06-17 中兴通讯股份有限公司 Program upgrade method and apparatus, electronic device and storage medium
CN111459508A (en) * 2020-03-27 2020-07-28 北京经纬恒润科技有限公司 Boot L loader self-upgrading method and system
CN111459508B (en) * 2020-03-27 2023-12-01 北京经纬恒润科技股份有限公司 BootLoader self-upgrading method and system
CN111641527A (en) * 2020-05-28 2020-09-08 四川爱创科技有限公司 Remote upgrading backup method for embedded chip software
CN111984298A (en) * 2020-07-17 2020-11-24 歌尔光学科技有限公司 Program upgrading area in flash memory, program upgrading method and system

Similar Documents

Publication Publication Date Title
CN105511929A (en) Remote wireless upgrading method for equipment
CN106569847B (en) Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
CN108011935B (en) Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment
CN104102518B (en) double-CPU system and program upgrading method thereof
CN106250192B (en) Software upgrading method and system of upper computer
CN107301077B (en) Embedded equipment firmware upgrading system
CN110621011A (en) OTA firmware upgrading method and system based on Bluetooth device end
CN104899065A (en) Method and system for batch online recovery and software online upgrading
US20060156140A1 (en) Network equipment and a method for monitoring the start up of such an equipment
CN106874054B (en) Method and system for on-line upgrading module program in repeater
CN105278998A (en) Single-chip microcomputer hardware upgrading method
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN104991800A (en) Method, apparatus and system for upgrading firmware of device that is not networked
CN104102519A (en) Firmware updating method of rack-mounted server and device thereof
US20170068585A1 (en) Method and Apparatus for Recovering System Software of Intelligent Terminal
CN110633097A (en) OTA (over the air) upgrading method and device for single chip microcomputer
CN105511903A (en) Audio device updating method and apparatus
CN107656751A (en) User program upgrade method and device
CN112822654A (en) Remote measuring terminal machine based on FTP remote firmware upgrading function and control method thereof
CN112333278A (en) Intelligent equipment upgrading method and system and intelligent equipment
CN112738755A (en) Method for interaction between wireless communication module and sensor in field of power internet of things
CN105320534B (en) BOOT remote upgrading method, device and system for single board
CN104754410A (en) Safety method and system for cable modulating and demodulating device
CN104811347A (en) Software updating method, monitoring module, rectifying module and system
CN111538515A (en) Method, device and equipment for upgrading electric energy meter program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160420