CN106293857A - A kind of wireless mode carries out the method for software upgrading - Google Patents

A kind of wireless mode carries out the method for software upgrading Download PDF

Info

Publication number
CN106293857A
CN106293857A CN201610780870.4A CN201610780870A CN106293857A CN 106293857 A CN106293857 A CN 106293857A CN 201610780870 A CN201610780870 A CN 201610780870A CN 106293857 A CN106293857 A CN 106293857A
Authority
CN
China
Prior art keywords
machine
new procedures
main frame
section
check code
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
CN201610780870.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.)
CHENGDU GUORONG TECHNOLOGY Co Ltd
Original Assignee
CHENGDU GUORONG TECHNOLOGY 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 CHENGDU GUORONG TECHNOLOGY Co Ltd filed Critical CHENGDU GUORONG TECHNOLOGY Co Ltd
Priority to CN201610780870.4A priority Critical patent/CN106293857A/en
Publication of CN106293857A publication Critical patent/CN106293857A/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

Abstract

The present invention relates to the method for upgrading software of testing and control equipment, a kind of wireless mode carries out the method for software upgrading, due to main frame with there is antenna from machine, it is positioned at sealing shell from the antenna of machine, sealing shell is plastic, owing to the present invention is by the way of wireless data transmission, main frame sends to from machine by ROMPaq, program adds segmentation verification in transmitting, it is ensured that from the accuracy of machine ROMPaq.The method is tested checking on the spot, achieves success.

Description

A kind of wireless mode carries out the method for software upgrading
Technical field
The present invention relates to the method for upgrading software of testing and control equipment, a kind of wireless mode carries out software upgrading Method.
Background technology
The now testing and control in a lot of fields, such as nobody check meter, environment measuring and oil field, coal production, all use " one Much more main from " framework, whole system i.e. has a main frame, control below main frame several from machine, be distributed in certain district from machine In territory, the specific parameter of taken at regular intervals, such as temperature, concentration, flow etc., wirelessly it is sent to main frame, main frame is the most logical Crossing netting twine to be connected with computer, main frame transfers data to computer, by the data analysis returned from machine collection, and just can be according to monitoring The ruuning situation of whole system.
The system architecture of " one master and multiple slaves " is illustrated in fig. 1 shown below: in FIG, is distributed multiple from machine with a main frame, each With antenna from machine, also with antenna on main frame, wirelessly adopt to main frame transmission with certain logical order from machine The information that collection arrives, after main frame receives converging information, is sent to PC by wired mode.
Being distributed in region to be measured from machine, these regions are positioned at outdoor more, will often face Exposure to Sunlight, dust storm, sleet Deng weather, working condition rather harsh, therefore take seal approach from machine more, product is placed in sealing shell, does not protects Stay physical interface, the most also can carry out gel embedding in inside, to improve product reliability.
Product is carried out encapsulation process, distinct issues can be brought, it is simply that from the software upgrading of machine.Owing to from machine being Being entirely sealed in housing, the most do not retain the physical interface of software upgrading, product cannot carry out journey with traditional to FLASH The mode of sequence programming is upgraded.If existing product is replaced, due to from machine quantity relatively with the product after upgrading Many, change numerous from chance be a no small expense.
Summary of the invention
It is an object of the invention to provide one can complete quickly, reliably product software upgrading wireless mode carry out software liter The method of level.
The object of the present invention is achieved like this, and a kind of wireless mode carries out the method for software upgrading, at least includes as follows Step:
What 1, host computer will be upgraded is converted into bin file form from machine software;
2, host computer 1 and main frame 2 interface 3 electrically connect, and described bin file 4 is sent to main frame by interface 3 by host computer 1 2;
3, after main frame 2 has received data, send from machine 5 to first and carry out program more newer command;
4, main frame 2 receive first from machine 5 return answer signal after, send more new procedures and new procedures school to first from machine 5 Test code;
5, after main frame 2 sends more new procedures and new procedures check code, to be received first is waited to confirm order from machine 5 information completely;
6, first receive new procedures and new procedures check code from machine 5, and new procedures data and check code are carried out integrity recognize After card, return to main frame 2 and completely confirm order;
7, main frame 2 receive first from machine 5 information completely confirm order after, will add 1 from machine sequence number, continue to postorder from machine repeat step Rapid 3 arrive step 7 process, are updated until all of from machine;
8, main frame 2 does not receives first in delay time and arrives step 7 from the confirmation order of machine 5 information completely, continuation repetition step 3 Process, in 3 times effectively, enters step 7, otherwise, is marked from machine problematic, and skip flag, from machine, will add from machine sequence number 1, continue to repeat step 1 and step 7 process to postorder from machine.
The described flow process from machine more new procedures includes:
201, read the order of main frame 2 more new procedures from wireless receiving module and encode from machine;
202, to read from machine coding with FLASH defined in self from machine encode contrast, when differing, exit from machine The flow process of more new procedures;Identical, enter the flow process from machine more new procedures, to step 203;
203, new procedures section and the check code of new procedures section that main frame 2 sends is read;
204, the information sending the main frame 2 read carries out length confirmation, is that order then goes to step 209;Otherwise turn 205;
205, the new procedures section received is carried out check number acquisition by algorithm;
206, the check code of the new procedures check number obtained by algorithm with the new procedures section of reception is compared;
207, identical, sequentially along storage new procedures section, then proceed to postorder new procedures section and new procedures section that Receiving Host 2 sends Check code;Difference, records this section of new procedures segment number;Continue to postorder new procedures section and new procedures section that main frame 2 sends Check code;
208, step 203 is returned;
209, receive is the end order of more new procedures;It is to go to step 210, no, turn 213;
210, whether there is the problematic program segment of reception,
211, the problematic new procedures segment number of record is sent to main frame 2;Until again within the time limited, updating and ask Topic new procedures section is complete;
212, end order is sent to main frame;
213, more new procedures is exited.
The invention have the advantage that due to main frame and from machine, have antenna, being positioned at sealing shell from the antenna of machine, seal Shell is plastic, owing to the present invention is by the way of wireless data transmission, main frame sends ROMPaq from machine, journey to Sequence adds segmentation verification in transmitting, it is ensured that from the accuracy of machine ROMPaq.The method is tested checking on the spot, takes Obtained success.
Accompanying drawing explanation
In order to clearly describe the process of radio upgrade, deeply understanding the principle of the present invention, need accompanying drawing in conjunction with the embodiments is to this Invention illustrates:
Fig. 1 is the radio upgrade Organization Chart of the embodiment of the present invention;
Fig. 2 is the flow chart of the embodiment of the present invention;
Fig. 3 is to divide schematic diagram from machine FLASH;
Fig. 4 is the flow chart from machine more new procedures.
In figure, 1, host computer;2, main frame;3, interface;4, bin file;5, from machine;6, antenna;7, shell is sealed;8, first Program storage area;9, the second program storage area;10、FLASH;11, Boot loader;12, region is retained.
Detailed description of the invention
As it is shown in figure 1, the present invention it will be seen that the framework of entirety by Fig. 1, due to main frame 2 with there is antenna 6 from machine 5 (being positioned at sealing shell 7 from the antenna 6 of machine 5, sealing shell is plastic), it is considered to wireless number will be passed through from the software of machine 5 It is updated according to the mode of transmission, main frame 2 sends to from machine 5, need to be converted into from machine software from what host computer 1 will be upgraded The form of bin file 4.
As in figure 2 it is shown, a kind of method that wireless mode carries out software upgrading, at least comprise the steps:
What 1, host computer will be upgraded is converted into bin file form from machine software;
2, host computer 1 and main frame 2 interface 3 electrically connect, and described bin file 4 is sent to main frame by interface 3 by host computer 1 2;
3, after main frame 2 has received data, send from machine 5 to first and carry out program more newer command;
4, main frame 2 receive first from machine 5 return answer signal after, send more new procedures and new procedures school to first from machine 5 Test code;
5, after main frame 2 sends more new procedures and new procedures check code, to be received first is waited to confirm order from machine 5 information completely;
6, first receive new procedures and new procedures check code from machine 5, and new procedures data and check code are carried out integrity recognize After card, return to main frame 2 and completely confirm order;
7, main frame 2 receive first from machine 5 information completely confirm order after, will add 1 from machine sequence number, continue to postorder from machine repeat step Rapid 3 arrive step 7 process, are updated until all of from machine;
8, main frame 2 does not receives first in delay time and arrives step 7 from the confirmation order of machine 5 information completely, continuation repetition step 3 Process, in 3 times effectively, enters step 7, otherwise, is marked from machine problematic, and skip flag, from machine, will add from machine sequence number 1, continue to repeat step 1 and step 7 process to postorder from machine.
As it is shown on figure 3, the described FLASH10 from machine CPU is at least divided into 4 regions, it is boot-loader journey respectively Sequence 11(Bootloader) region, the first program storage area 8 and the second program storage area 9 and retain region 12.
Boot loader (Bootloader) is write into when first time programming program, initial for every secondary program Changing and jump to new procedures and use, it includes that new journey is deposited in the first program storage area 8 and the second program storage area 9 by one One confirmation of sequence labelling.
First program storage area 8 and the second program storage area 9 are all used for depositing program, brand-new for one FLASH10, the first program storage area 8 is used for depositing the program of programming for the first time, and the second program storage area 9 is FFFF;When When carrying out wireless renewal for the first time, program to be updated can be placed in the second program storage area 9, and to above-mentioned labelling Position is marked, and to provide the region of new procedures, after having updated, the program of Bootloader meeting guidance field 2 performs, it is ensured that from Run in machine is the program after updating;When carrying out wireless renewal the most again, program to be updated can be placed on region 1 In, after having updated, the program in Bootloader guidance field 1 again performs;Carry out later wireless update time by that analogy, Region 1 and region 2 are alternately.
Retain the part that the FLASH that region is CPU does not use.
The described flow process from machine more new procedures includes:
201, read the order of main frame 2 more new procedures from wireless receiving module and encode from machine;
202, to read from machine coding with FLASH defined in self from machine encode contrast, when differing, exit from machine The flow process of more new procedures;Identical, enter the flow process from machine more new procedures, to step 203;
203, new procedures section and the check code of new procedures section that main frame 2 sends is read;
204, the information sending the main frame 2 read carries out length confirmation, is that order then goes to step 209;Otherwise turn 205;
205, the new procedures section received is carried out check number acquisition by algorithm;
206, the check code of the new procedures check number obtained by algorithm with the new procedures section of reception is compared;
207, identical, sequentially along storage new procedures section, then proceed to postorder new procedures section and new procedures section that Receiving Host 2 sends Check code;Difference, records this section of new procedures segment number;Continue to postorder new procedures section and new procedures section that main frame 2 sends Check code;
208, step 203 is returned;
209, receive is the end order of more new procedures;It is to go to step 210, no, turn 213;
210, whether there is the problematic program segment of reception,
211, the problematic new procedures segment number of record is sent to main frame 2;Until again within the time limited, updating and ask Topic new procedures section is complete;
212, end order is sent to main frame;
213, more new procedures is exited.

Claims (2)

1. the method that wireless mode carries out software upgrading, is characterized in that: at least comprise the steps:
1) what host computer will be upgraded is converted into bin file form from machine software;
2) host computer and main frame interface electrically connect, and described bin file is sent to main frame by interface by host computer;
3), after main frame has received data, send from machine to first and carry out program more newer command;
4) main frame receive first from machine return answer signal after, to first from machine send more new procedures and new procedures verification Code;
5), after main frame sends more new procedures and new procedures check code, to be received first is waited completely to confirm order from machine information;
6) first receive new procedures and new procedures check code from machine, and new procedures data and check code are carried out integrated authentication After, return to main frame and completely confirm order;
7) main frame reception first is after machine information completely confirms order, will add 1 from machine sequence number, continues to repeat step to postorder from machine 3 arrive step 7 process, are updated until all of from machine;
8) main frame does not receives first in delay time and completely confirms order from machine information, continues to repeat step 3 to step 7 mistake Journey, in 3 times effectively, enters step 7, otherwise, is marked from machine problematic, and skip flag, from machine, will add 1 from machine sequence number, Continue to repeat step 1 and step 7 process to postorder from machine.
The method that a kind of wireless mode the most according to claim 1 carries out software upgrading, is characterized in that:
Described it be updated the flow process of program from machine and include:
201) read the order of main frame more new procedures from wireless receiving module and encode from machine;
202) to read from machine coding with FLASH defined in self from machine encode contrast, when differing, exit from machine The flow process of more new procedures;Identical, enter the flow process from machine more new procedures, to step 203;
203) new procedures section and the check code of new procedures section that main frame sends is read;
204) information sending the main frame read carries out length confirmation, is that order then goes to step 209;Otherwise turn 205;
205) the new procedures section received is carried out check number acquisition by algorithm;
206) check code of the new procedures check number obtained by algorithm with the new procedures section of reception is compared;
207) identical, sequentially along storage new procedures section, then proceed to postorder new procedures section and new procedures section that Receiving Host sends Check code;Difference, records this section of new procedures segment number;Continue to postorder new procedures section and new procedures section that main frame sends Check code;
208) step 203 is returned;
209) receive is the end order of more new procedures;It is to go to step 210, no, turn 213;
210) whether there is the problematic program segment of reception,
211) the problematic new procedures segment number of record is sent to main frame;Until again within the time limited, updating and ask Topic new procedures section is complete;
212) end order is sent to main frame;
213) more new procedures is exited.
CN201610780870.4A 2016-08-31 2016-08-31 A kind of wireless mode carries out the method for software upgrading Pending CN106293857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610780870.4A CN106293857A (en) 2016-08-31 2016-08-31 A kind of wireless mode carries out the method for software upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610780870.4A CN106293857A (en) 2016-08-31 2016-08-31 A kind of wireless mode carries out the method for software upgrading

Publications (1)

Publication Number Publication Date
CN106293857A true CN106293857A (en) 2017-01-04

Family

ID=57673630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610780870.4A Pending CN106293857A (en) 2016-08-31 2016-08-31 A kind of wireless mode carries out the method for software upgrading

Country Status (1)

Country Link
CN (1) CN106293857A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273158A (en) * 2017-06-08 2017-10-20 广东美的暖通设备有限公司 Programme upgrade method and device, main frame, slave and multi-online air-conditioning system
CN109379204A (en) * 2018-10-16 2019-02-22 珠海晖达科技有限公司 Multi-line system firmware upgrade method, computer installation and computer readable storage medium
CN109548176A (en) * 2018-12-04 2019-03-29 深圳市四海伽蓝电子科技有限公司 A kind of wireless device pairing management method
CN109597630A (en) * 2019-01-29 2019-04-09 珠海迈科智能科技股份有限公司 A kind of P2MP software programming device and method with detection function
CN110633091A (en) * 2019-08-28 2019-12-31 西安超霸电气科技有限公司 Electronic module and software wireless upgrading method thereof
CN112148526A (en) * 2020-09-04 2020-12-29 珠海格力电器股份有限公司 Application program updating method, device, system, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013371A (en) * 2006-11-21 2007-08-08 四川长虹电器股份有限公司 Method for upgrading program of embedded system
CN101364820A (en) * 2008-08-12 2009-02-11 深圳市华禹高科技有限公司 Connection method for Bluetooth apparatus system
CN101431348A (en) * 2007-11-06 2009-05-13 珠海格力电器股份有限公司 Household wireless network system and its communication method
CN102075564A (en) * 2010-12-23 2011-05-25 李华嵩 Remote software upgrading technique
CN102711095A (en) * 2012-05-18 2012-10-03 中国科学院信息工程研究所 Method for updating nodes of wireless sensor network in wireless mode
CN103581139A (en) * 2012-08-03 2014-02-12 王当当 Encrypted wireless communication protocol
CN103916284A (en) * 2013-01-06 2014-07-09 上海开通数控有限公司 RS485 communication interface automatic baud rate and communication address detection method
CN104601628A (en) * 2013-10-31 2015-05-06 京信通信系统(中国)有限公司 Client, server and remote downloading method thereof
CN105117253A (en) * 2015-08-27 2015-12-02 常州大学 BootLoader based remote upgrade method for UV LED (Ultraviolet Light Emitting Diode) curing system
CN105373033A (en) * 2015-10-14 2016-03-02 上海科学技术职业学院 Master-slave stepping motor control system based on wireless serial port transmission
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013371A (en) * 2006-11-21 2007-08-08 四川长虹电器股份有限公司 Method for upgrading program of embedded system
CN101431348A (en) * 2007-11-06 2009-05-13 珠海格力电器股份有限公司 Household wireless network system and its communication method
CN101364820A (en) * 2008-08-12 2009-02-11 深圳市华禹高科技有限公司 Connection method for Bluetooth apparatus system
CN102075564A (en) * 2010-12-23 2011-05-25 李华嵩 Remote software upgrading technique
CN102711095A (en) * 2012-05-18 2012-10-03 中国科学院信息工程研究所 Method for updating nodes of wireless sensor network in wireless mode
CN103581139A (en) * 2012-08-03 2014-02-12 王当当 Encrypted wireless communication protocol
CN103916284A (en) * 2013-01-06 2014-07-09 上海开通数控有限公司 RS485 communication interface automatic baud rate and communication address detection method
CN104601628A (en) * 2013-10-31 2015-05-06 京信通信系统(中国)有限公司 Client, server and remote downloading method thereof
CN105117253A (en) * 2015-08-27 2015-12-02 常州大学 BootLoader based remote upgrade method for UV LED (Ultraviolet Light Emitting Diode) curing system
CN105373033A (en) * 2015-10-14 2016-03-02 上海科学技术职业学院 Master-slave stepping motor control system based on wireless serial port transmission
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273158A (en) * 2017-06-08 2017-10-20 广东美的暖通设备有限公司 Programme upgrade method and device, main frame, slave and multi-online air-conditioning system
CN107273158B (en) * 2017-06-08 2021-10-26 广东美的暖通设备有限公司 Program upgrading method and device, host, slave and multi-split air conditioning system
CN109379204A (en) * 2018-10-16 2019-02-22 珠海晖达科技有限公司 Multi-line system firmware upgrade method, computer installation and computer readable storage medium
CN109548176A (en) * 2018-12-04 2019-03-29 深圳市四海伽蓝电子科技有限公司 A kind of wireless device pairing management method
CN109597630A (en) * 2019-01-29 2019-04-09 珠海迈科智能科技股份有限公司 A kind of P2MP software programming device and method with detection function
CN109597630B (en) * 2019-01-29 2023-12-29 珠海迈科智能科技股份有限公司 P2MP software programming device and method with detection function
CN110633091A (en) * 2019-08-28 2019-12-31 西安超霸电气科技有限公司 Electronic module and software wireless upgrading method thereof
CN112148526A (en) * 2020-09-04 2020-12-29 珠海格力电器股份有限公司 Application program updating method, device, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106293857A (en) A kind of wireless mode carries out the method for software upgrading
CN100594521C (en) Method and apparatus for detecting data recording
CN103744824B (en) One is dispatched from the factory method of testing and test system
CN102298636B (en) Global position system (GPS) data-based monitoring system and device and method for uploading GPS data
CN103092642B (en) For upgrading equipment, the system and method for the firmware of electric power meter
CN105022694B (en) Method for generating test case and system for mobile terminal test
CN103631609A (en) Method and system for refreshing vehicle-mounted ECU application program
CN106528240A (en) ECU application program write-in method and system
CN102306264A (en) Radio frequency identification (RFID)-technology-based indoor positioning system
CN105066798A (en) Missile-borne telemeter with record function
CN104268086A (en) Chip identification method and chip compatibility method
CN103150530B (en) A kind of coal mine down-hole personnel localization method
CN111508596A (en) Reagent parameter upgrading method and device, in-vitro detection system and storage medium
CN109889481B (en) Data acquisition and fusion method and device based on multi-sensor equipment
CN105791042A (en) Communication quality test method in ETC (Electronic Toll Collection) system
KR20190020491A (en) Method for integration status monitoring of ground station system
US20130151900A1 (en) Debug system and method
CN216711969U (en) Electronic traceable detonating fuse
CN112612663B (en) Method for reversely solving 1553B bus ICD
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN107015529A (en) Sensor controller and sensor cluster for the various peration datas of collecting robot
CN110907986B (en) Method and device for acquiring seismic data
CN110850758B (en) Telemetry system and method with configurable frame structure
CN103092752B (en) Error identification method of instrument attributes
CN103927563A (en) Component lofting method based on RFID and device applied to method

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