CN101777003A - Method for remotely updating program of industrial fuel gas meter data reader - Google Patents

Method for remotely updating program of industrial fuel gas meter data reader Download PDF

Info

Publication number
CN101777003A
CN101777003A CN201010108743A CN201010108743A CN101777003A CN 101777003 A CN101777003 A CN 101777003A CN 201010108743 A CN201010108743 A CN 201010108743A CN 201010108743 A CN201010108743 A CN 201010108743A CN 101777003 A CN101777003 A CN 101777003A
Authority
CN
China
Prior art keywords
fuel gas
gas meter
industrial fuel
data reader
meter data
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
CN201010108743A
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.)
Ningbo University
Original Assignee
Ningbo University
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 Ningbo University filed Critical Ningbo University
Priority to CN201010108743A priority Critical patent/CN101777003A/en
Publication of CN101777003A publication Critical patent/CN101777003A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for remotely updating a program of an industrial fuel gas meter data reader, which is used for remotely updating the software program in the industrial fuel gas meter data reader. The industrial fuel gas meter data reader comprises an FLASH-type singlechip processor; and the software program in the industrial fuel gas meter data reader is stored in a user code region of the FLASH in the singlechip processor. The method is characterized in that the updating software code for updating the software program in the industrial fuel gas meter data reader is stored in a host computer; the host computer transmits the updating software code to the industrial fuel gas meter data reader in a wire or wireless mode; the industrial fuel gas meter data reader receives the updating software code transmitted from the host computer and then verifies data; and the singlechip processor erases the original software program code and writes the new updating software code in the user code region of the FLASH in the singlechip processor.

Description

The method of industrial fuel gas meter data reader remotely updating program
Technical field
The present invention relates to a kind of method of industrial fuel gas meter data reader remotely updating program.
Background technology
At present, various data integrated reading devices are applicable to various places widely, and its effect mainly comprises data acquisition, processing and transmission etc.Along with being extensive use of of combustion gas, the measurement and the monitoring of combustion gas seemed important all the more, the function of industrial fuel gas meter data reader is to realize this purpose key.Therefore its function is carried out perfectly, upgrading is very to be necessary.Traditional program upgrade mode is the mode of manually upgrading, and by manufacturer unified recovery of all equipment (data integrated reading device) is upgraded or is upgraded one by one at the scene to equipment (data integrated reading device) by the staff.But industrial combustion gas user's data integrated reading device is generally distributed more widely, and distance each other is indefinite, is short to hundreds of rice, reaches the hundreds of km.Therefore adopt traditional artificial upgrading mode can waste lot of manpower and material resources, work efficiency is low, and real-time is poor, and the result often is difficult to satisfactory.
Summary of the invention
Technical matters to be solved by this invention is the method that a kind of industrial fuel gas meter data reader remotely updating program is provided at above-mentioned prior art, and this method can overcome simple, the efficient realization of deficiency, energy of artificial upgrading carry out remote upgrade to industrial fuel gas meter data reader.
The utility model solves the problems of the technologies described above the technical scheme that is adopted: the method for this industrial fuel gas meter data reader remotely updating program, be used for the software program in the described industrial fuel gas meter data reader is carried out remote upgrade, described industrial fuel gas meter data reader comprises a FLASH type processor of single chip computer, software program in the industrial fuel gas meter data reader leaves in the personal code work district of FLASH in the processor of single chip computer, and it is characterized in that: the upgrade version software code that is used for upgrading to the software program in the described industrial fuel gas meter data reader is kept in the host computer; This host computer is transferred to described industrial fuel gas meter data reader by wired or wireless mode with the upgrade version software code; Described industrial fuel gas meter data reader is after receiving the upgrade version software code that host computer sends, at first pass through after the data check, described processor of single chip computer is just wiped original software program code, newer upgrade version software code is write in the personal code work district of FLASH in the processor of single chip computer.
As improvement, the present invention is divided into initialization district, functional areas, data buffer area, FLASH operational zone, these five subregions of interrupt vector district with the personal code work district of FLASH in the described processor of single chip computer successively according to the order from the low level to a high position, described initialization district is arranged in the reference position in the personal code work district of processor of single chip computer FLASH, is used to deposit necessary header file, system initialization file, how calls the reception of upgrade version software code file and upgrade and sends file; Described functional areas are positioned at the back position in described initialization district, are used to deposit the functional programs file of programmer's design; Described data buffer area is positioned at the back position of described functional areas, is used to deposit the upgrade version software code; Described FLASH operational zone is positioned at the back position of described data buffer area, is used to deposit the FLASH operation code; Described interrupt vector district is arranged in the most significant digit in the personal code work district of processor of single chip computer FLASH; Fix simultaneously the relative position in the personal code work district of data buffer area in above-mentioned five subregions, FLASH operational zone and interrupt vector district FLASH in described processor of single chip computer at least; Described industrial fuel gas meter data reader leaves the upgrade version software code in the data buffer area in the personal code work district of FLASH in the described processor of single chip computer after receiving the upgrade version software code that host computer sends.
Improve, the upgrade version software code that described host computer will be used for upgrading to the software program in the described industrial fuel gas meter data reader sends to industrial fuel gas meter data reader by the GPRS module again.
Improve again, the packet with prescribed form that the upgrade version software code that described host computer will be used for upgrading to the software program in the described industrial fuel gas meter data reader is made some sends, and wherein the form of packet is: the CRC check sign indicating number of the data of the data length of the Bale No. of the overall budget number of 1 byte+1 byte+1 byte+128 bytes+2 bytes; Each packet all contains the CRC check sign indicating number.
Improve again, after described industrial fuel gas meter data reader receives the upgrade version software code that host computer sends, at first carry out CRC check, again the upgrade version software code is write the data buffer area in the personal code work district of FLASH in the described processor of single chip computer, after carrying out verification, return transmission signals rub-out signal or FLASH operating mistake signal or a data package operation is finished signal, finish receiving until all upgrade version software codes.
Compared with prior art, the invention has the advantages that:
1, adopt method provided by the invention that industrial fuel gas meter data reader is carried out remote upgrade, very economical, convenient, can save manufacturer's lot of manpower and material resources, reduced some unnecessary loss, as destroyed industrial fuel gas meter data reader, improved the economic benefit of manufacturer;
2, method provided by the invention, owing to the upgrade version software code is left in the personal code work district of FLASH in the described processor of single chip computer, and during five subregions that the personal code work zoning of FLASH is divided in to processor of single chip computer, and just be fixed for data buffer area, FLASH operational zone and the interrupt vector district relative position in the personal code work district of FLASH in five subregions, no matter how the chip of processor of single chip computer changes, upgrade method provided by the invention can both be suitable for, and therefore has very strong versatility;
3, method provided by the invention in the process that the upgrade version software code is transmitted, has been carried out repeatedly verification, has improved reliability greatly.
Description of drawings
Fig. 1 be in the processor of single chip computer of industrial fuel gas meter data reader in the embodiment of the invention FLASH division figure.
Embodiment
Embodiment describes in further detail the present invention below in conjunction with accompanying drawing.
The invention provides a kind of method of industrial fuel gas meter data reader remotely updating program, be used for the software program in the described industrial fuel gas meter data reader is carried out remote upgrade, industrial fuel gas meter data reader comprises the processor of single chip computer of a FLASH type among the present invention, software program in the industrial fuel gas meter data reader leaves in the personal code work district of FLASH in the processor of single chip computer, and the upgrade version software code that is used for upgrading to the software program in the industrial fuel gas meter data reader is kept in the host computer; Host computer can be long-range PC, this host computer is transferred to described industrial fuel gas meter data reader by wired or wireless mode with the upgrade version software code, and host computer is transferred to industrial fuel gas meter data reader by the GPRS module wirelessly with the upgrade version software code in the present embodiment; And industrial fuel gas meter data reader is after receiving the upgrade version software code that host computer sends, at first pass through after the data check, described processor of single chip computer is just wiped original software program code, newer upgrade version software code is write in the personal code work district of FLASH in the processor of single chip computer.
In the method that present embodiment provides, the personal code work district of FLASH in the described processor of single chip computer is divided into initialization district, functional areas, data buffer area, FLASH operational zone, these five subregions of interrupt vector district successively according to the order from the low level to a high position, referring to shown in Figure 1, the A district uses the district for single-chip microcomputer is fixing, and the user can't change; B, C, D, E, F, G, H district have formed the personal code work district jointly, and wherein the size of B+C+D equals the size of E+F+G+H; B is the initialization district, and start address is a personal code work district start address, is used to deposit necessary header file, system initialization file, how calls the reception of upgrade version software code file and upgrade and sends file; C is functional areas, and described functional areas are positioned at the back position in described initialization district, is used to deposit the functional programs file of programmer's design, in this method, can the relative reference position in fixed function district, and also can directly be connected on after the B district; The E district is the position of data buffer area, the present invention is that the reference position with data buffer area is fixed on 1/2 size place, personal code work district, therefore the D district is preceding 1/2 size area in personal code work district unnecessary storage area after having placed setup code and function code, and data buffer area is used to deposit the upgrade version software code; The F district is the FLASH operational zone, it also is a zone having fixed relative reference position, but this relative reference position up pushes away according to interrupt vector district (G+H) and obtains, and promptly the zone of a block size is just being gone up in the interrupt vector district, and the FLASH operational zone is used to deposit the FLASH operation code; Described interrupt vector district is arranged in the most significant digit in the personal code work district of processor of single chip computer FLASH, the interrupt vector district is made up of G district and H district, the H district is the interrupt vector storage area that single-chip microcomputer carries, be generally 32 byte-sized, because it is that unit is wiped that processor of single chip computer is wiped with a piece, can not be that unit is wiped with single byte, therefore the user is when the memory allocated zone, minimum will be unit with the size of a piece, and therefore, an interrupt vector district is greater than the interrupt vector storage area size that single-chip microcomputer carries, form by G+H, size is a block size, is generally 512 bytes, is the single-chip microcomputer of 256 bytes but block size is also arranged; Described industrial fuel gas meter data reader leaves the upgrade version software code in the data buffer area in the personal code work district of FLASH in the described processor of single chip computer after receiving the upgrade version software code that host computer sends.
Because the relative position in the personal code work district of just fixing above-mentioned five subregions FLASH in described processor of single chip computer of method provided by the invention, so no matter how the chip of processor of single chip computer changes, upgrade method provided by the invention can both be suitable for, and therefore has very strong versatility.In addition because interrupt vector district and FLASH operational zone are very little, so data buffer area almost accounted for about half of FLASH personal code work district, needn't worry fully therefore that upgrade code is excessive and the problem that do not have the place to put; FLASH is divided according to said frame, just can write ROMPaq arbitrarily in the processor of single chip computer, very convenient and quick.
When the upgrade version software code that above-mentioned host computer will be used for upgrading to the software program in the described industrial fuel gas meter data reader carries out wireless transmission, be that the packet with prescribed form that the upgrade version software code is made some is in advance sent, wherein the form of packet is: the CRC check sign indicating number of the data of the data length of the Bale No. of the overall budget number of 1 byte+1 byte+1 byte+128 bytes+2 bytes; Each packet all contains the CRC check sign indicating number.
Like this, after industrial fuel gas meter data reader receives the upgrade version software code that host computer sends, must at first carry out CRC check, again the upgrade version software code is write the data buffer area in the personal code work district of FLASH in the described processor of single chip computer, after carrying out verification, return transmission signals rub-out signal or FLASH operating mistake signal or a data package operation is finished signal, finish receiving until all upgrade version software codes; Have higher security, improved the reliability of this method greatly.

Claims (5)

1. the method for an industrial fuel gas meter data reader remotely updating program, be used for the software program in the described industrial fuel gas meter data reader is carried out remote upgrade, described industrial fuel gas meter data reader comprises a FLASH type processor of single chip computer, software program in the industrial fuel gas meter data reader leaves in the personal code work district of FLASH in the processor of single chip computer, and it is characterized in that: the upgrade version software code that is used for upgrading to the software program in the described industrial fuel gas meter data reader is kept in the host computer; This host computer is transferred to described industrial fuel gas meter data reader by wired or wireless mode with the upgrade version software code; Described industrial fuel gas meter data reader is after receiving the upgrade version software code that host computer sends, at first pass through after the data check, described processor of single chip computer is just wiped original software program code, newer upgrade version software code is write in the personal code work district of FLASH in the processor of single chip computer.
2. the method for industrial fuel gas meter data reader remotely updating program according to claim 1, it is characterized in that: the personal code work district of FLASH in the described processor of single chip computer is divided into the initialization district successively according to the order from the low level to a high position, functional areas, data buffer area, the FLASH operational zone, these five subregions of interrupt vector district, described initialization district is arranged in the reference position in the personal code work district of processor of single chip computer FLASH, is used to deposit necessary header file, the system initialization file, how to call the reception of upgrade version software code file and upgrade and send file; Described functional areas are positioned at the back position in described initialization district, are used to deposit the functional programs file of programmer's design; Described data buffer area is positioned at the back position of described functional areas, is used to deposit the upgrade version software code; Described FLASH operational zone is positioned at the back position of described data buffer area, is used to deposit the FLASH operation code; Described interrupt vector district is arranged in the most significant digit in the personal code work district of processor of single chip computer FLASH; Fix simultaneously the relative position in the personal code work district of data buffer area in above-mentioned five subregions, FLASH operational zone and interrupt vector district FLASH in described processor of single chip computer at least; Described industrial fuel gas meter data reader leaves the upgrade version software code in the data buffer area in the personal code work district of FLASH in the described processor of single chip computer after receiving the upgrade version software code that host computer sends.
3. the method for industrial fuel gas meter data reader remotely updating program according to claim 1 is characterized in that: the upgrade version software code that described host computer will be used for upgrading to the software program in the described industrial fuel gas meter data reader sends to industrial fuel gas meter data reader by the GPRS module.
4. the method for industrial fuel gas meter data reader remotely updating program according to claim 3, it is characterized in that: the packet with prescribed form that the upgrade version software code that described host computer will be used for upgrading to the software program in the described industrial fuel gas meter data reader is made some sends, and wherein the form of packet is: the CRC check sign indicating number of the data of the data length of the Bale No. of the overall budget number of 1 byte+1 byte+1 byte+128 bytes+2 bytes; Each packet all contains the CRC check sign indicating number.
5. the method for industrial fuel gas meter data reader remotely updating program according to claim 4, it is characterized in that: after described industrial fuel gas meter data reader receives the upgrade version software code that host computer sends, at first carry out CRC check, again the upgrade version software code is write the data buffer area in the personal code work district of FLASH in the described processor of single chip computer, after carrying out verification, return transmission signals rub-out signal or FLASH operating mistake signal or a data package operation is finished signal, finish receiving until all upgrade version software codes.
CN201010108743A 2010-02-08 2010-02-08 Method for remotely updating program of industrial fuel gas meter data reader Pending CN101777003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010108743A CN101777003A (en) 2010-02-08 2010-02-08 Method for remotely updating program of industrial fuel gas meter data reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010108743A CN101777003A (en) 2010-02-08 2010-02-08 Method for remotely updating program of industrial fuel gas meter data reader

Publications (1)

Publication Number Publication Date
CN101777003A true CN101777003A (en) 2010-07-14

Family

ID=42513475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010108743A Pending CN101777003A (en) 2010-02-08 2010-02-08 Method for remotely updating program of industrial fuel gas meter data reader

Country Status (1)

Country Link
CN (1) CN101777003A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376153A (en) * 2011-11-15 2012-03-14 深圳市科陆电子科技股份有限公司 Method for remotely updating carrier sheet and acquirer in concentrated meter reading system
CN103346816A (en) * 2013-06-28 2013-10-09 长沙威胜信息技术有限公司 Wireless communication system and remote updating method thereof
CN103365670A (en) * 2012-03-27 2013-10-23 苏州工业园区新宏博通讯科技有限公司 Protector capable of configuring parameters remotely and upgrading method of protector
CN104915219A (en) * 2014-03-12 2015-09-16 奇点新源国际技术开发(北京)有限公司 Single chip microcomputer program upgrading method and device
CN106657386A (en) * 2017-01-13 2017-05-10 成都中科慧源科技有限公司 Remote transmitting gas meter data acquisition unit adopting fourth-generation communication technology, system and method
CN106681778A (en) * 2017-01-17 2017-05-17 深圳大漠大智控技术有限公司 Multi-single-chip-microcomputer one-time flash system based on network and implementation method
CN106909418A (en) * 2017-02-13 2017-06-30 深圳市广和通无线股份有限公司 SCM system update method and device
CN108614715A (en) * 2018-05-07 2018-10-02 四川恒芯科技股份有限公司 A kind of Internet of Things gas meter, flow meter that can independently upgrade and upgrade method
CN111124461A (en) * 2019-12-12 2020-05-08 青岛海尔科技有限公司 Method and device for OTA (over the air) upgrade of single chip microcomputer and single chip microcomputer

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376153B (en) * 2011-11-15 2017-05-31 深圳市科陆电子科技股份有限公司 The method of collector and carrier wave meter remote upgrade in automatic meter reading system
CN102376153A (en) * 2011-11-15 2012-03-14 深圳市科陆电子科技股份有限公司 Method for remotely updating carrier sheet and acquirer in concentrated meter reading system
CN103365670A (en) * 2012-03-27 2013-10-23 苏州工业园区新宏博通讯科技有限公司 Protector capable of configuring parameters remotely and upgrading method of protector
CN103346816A (en) * 2013-06-28 2013-10-09 长沙威胜信息技术有限公司 Wireless communication system and remote updating method thereof
CN104915219A (en) * 2014-03-12 2015-09-16 奇点新源国际技术开发(北京)有限公司 Single chip microcomputer program upgrading method and device
CN104915219B (en) * 2014-03-12 2018-11-27 奇点新源国际技术开发(北京)有限公司 Program updating method of single chip processor and device
CN106657386A (en) * 2017-01-13 2017-05-10 成都中科慧源科技有限公司 Remote transmitting gas meter data acquisition unit adopting fourth-generation communication technology, system and method
CN106681778A (en) * 2017-01-17 2017-05-17 深圳大漠大智控技术有限公司 Multi-single-chip-microcomputer one-time flash system based on network and implementation method
CN106909418A (en) * 2017-02-13 2017-06-30 深圳市广和通无线股份有限公司 SCM system update method and device
CN106909418B (en) * 2017-02-13 2021-01-05 深圳市广和通无线股份有限公司 Single chip microcomputer system updating method and device
CN108614715A (en) * 2018-05-07 2018-10-02 四川恒芯科技股份有限公司 A kind of Internet of Things gas meter, flow meter that can independently upgrade and upgrade method
CN111124461A (en) * 2019-12-12 2020-05-08 青岛海尔科技有限公司 Method and device for OTA (over the air) upgrade of single chip microcomputer and single chip microcomputer
CN111124461B (en) * 2019-12-12 2023-08-18 青岛海尔科技有限公司 Method and device for upgrading OTA (over the air) of singlechip and singlechip

Similar Documents

Publication Publication Date Title
CN101777003A (en) Method for remotely updating program of industrial fuel gas meter data reader
CN104122815B (en) A kind of method of hydrology detection and control terminal and its remote upgrade based on ARM
CN104780500A (en) Meter reading system based on APP Internet of Things and meter reading method thereof
CN104104436A (en) Electricity meter data acquisition apparatus with infrared upgrade function and upgrade method thereof
CN102324015A (en) Bar code scan reader wireless data sending system and method thereof
CN103324496B (en) One USB flash disk realizes centralized automatic meter-reading terminal local maintaining method
CN204595832U (en) A kind of SCM Based wireless programming equipment
CN106125627A (en) A kind of credible Internet of Things implementation method based on TPM chip
CN201270086Y (en) Automatic meter reading system
CN102890661A (en) Host-slave communication protocol
CN102223259A (en) Method and device for collecting and storing data
CN203224899U (en) Intelligent equipment management mobile terminal aiming at port industry equipment
CN201166867Y (en) Apparatus for measuring road
CN202939437U (en) Device ensuring FPGA intelligent operation
CN110262349A (en) A kind of the remote online programmed method and system of C8051F series monolithic
CN201955893U (en) Temperature and humidity data acquisition management device
CN201284665Y (en) Hand-hold safety inspection equipment in mine
CN200983182Y (en) Logistics remote real-time management set
CN102005115A (en) Infrared meter reading method
CN103685212B (en) Firmware protection method for wireless meter reading module of electric energy meter
CN202736285U (en) Carrier programmable control system
CN108319565B (en) Bus-based instrument address searching method and device
CN101296448A (en) Terminal software upgrading method and device
CN205249491U (en) Device of transmission WIFI broadcasting frame of low -power consumption
CN204989880U (en) Website controller based on cortex

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100714