CN102880480A - Method for updating application program of intelligent water meter on line - Google Patents

Method for updating application program of intelligent water meter on line Download PDF

Info

Publication number
CN102880480A
CN102880480A CN2012100594744A CN201210059474A CN102880480A CN 102880480 A CN102880480 A CN 102880480A CN 2012100594744 A CN2012100594744 A CN 2012100594744A CN 201210059474 A CN201210059474 A CN 201210059474A CN 102880480 A CN102880480 A CN 102880480A
Authority
CN
China
Prior art keywords
program
iap
water meter
application program
microprocessor
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
CN2012100594744A
Other languages
Chinese (zh)
Inventor
王炎喜
董有议
熊金华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaxu Science and Technology Development Co Ltd
Original Assignee
Shenzhen Huaxu Science and Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huaxu Science and Technology Development Co Ltd filed Critical Shenzhen Huaxu Science and Technology Development Co Ltd
Priority to CN2012100594744A priority Critical patent/CN102880480A/en
Publication of CN102880480A publication Critical patent/CN102880480A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a method for updating an application program of an intelligent water meter on line. The method comprises the following steps of: (A), dividing a flash memory area of a microprocessor of the intelligent water meter into two areas, namely a boot area and a code area, by using an in-application programming (IAP) technology, wherein the boot area is used for storing an IAP program, and the code area is used for storing the application program which realizes water meter functions; and (B), adding response to an IAP program reset instruction into a user program, after the microprocessor is energized and reset, if the IAP program reset instruction does not exist and the accuracy and effectiveness of the program of the code area are determined, directly executing a normal application program in the code area, if the IAP program reset instruction exists, after the microprocessor receives the IAP program reset instruction, abandoning a current program, executing the IAP program in the boot area, communicating with an upper computer, updating the application program of the water meter on line, after updating is accomplished, judging whether the application program is correct and complete, and ending the IAP program.

Description

The method of online updating intellectual water meter application program
Technical field the present invention relates to the electronic intelligence water meter, particularly relates to the method for online updating intellectual water meter application program.
 
Background technology is present, in the intellectual water meter industry, the microprocessor of water meter is all with the program storage that can repeatedly programme at circuit, in circuit programming can only be connected on the circuit board by line program storer is carried out online programming, but the DLL (dynamic link library) on the circuit board is not guided to the water meter outside, if itself and communication interface are drawn simultaneously, then cost increases and the security of water meter application program and water resistance is reduced.Therefore, take water meter apart microprocessor is carried out again burning with refresh routine in case application program exists defective or user can only arrive the scene when functional requirement changes to water meter, not only workload is large but also the user also caused very large puzzlement.
 
The summary of the invention the technical problem to be solved in the present invention is to avoid above-mentioned the deficiencies in the prior art part and the method that proposes a kind of online updating intellectual water meter application program, the method adopts IAP(In-Application Programming) technology, by the communication monitoring circuit, upgrade the water meter application program by the direct remote online of host computer, stopped DLL (dynamic link library) guided to water meter outside and caused the hidden danger of various existence, removed to the trouble at scene and the puzzlement of taking to the user.
The present invention solve the technical problem can be by realizing by the following technical solutions:
Propose a kind of method of online updating intellectual water meter application program, comprise the steps:
A. utilize the IAP technology that the flash memory area of intellectual water meter microprocessor is divided into two districts: a district is used for storage IAP program in the application programming program area, is defined as the main storage area or cries the BOOT district; Another district is application area, is used for the application program that storage realizes the water meter function, is defined as program storage area or cries the CODE district;
B. in described user program, add the response to the instruction of IAP Program reset;
C. behind the described microprocessor electrification reset, check first whether the instruction of the IAP of host computer Program reset is arranged within a period of time, if correctly effective without dependent instruction and inspection CODE district program, then leap to the CODE district and carry out normal application program; If dependent instruction is arranged, after described microprocessor receives this instruction, abandon present procedure and jump to BOOT district execution IAP program, the online updating water meter application program of communicating by letter with host computer, whether the inspection application program was correctly complete after renewal was finished, the IAP EOP (end of program).
Further improve as the present invention, the method of online updating intellectual water meter application program of the present invention also comprises step D, when the water meter microprocessor when carrying out CODE district user program, can automatically detect at any time the IAP Program reset instruction that host computer sends, make an immediate response, microprocessor resets and again begins to carry out the online updating water meter application program of communicating by letter with host computer from the IAP program, whether the inspection application program was correctly complete after renewal was finished, the IAP EOP (end of program).
Compare with prior art, the technique effect of the method for online updating intellectual water meter application program of the present invention is: adopt IAP(In-Application Programming) technology, by the communication monitoring circuit, upgrade the water meter application program by the direct remote online of host computer, stopped DLL (dynamic link library) guided to water meter outside and caused the hidden danger of various existence, removed to the trouble of on-the-spot burning and the puzzlement of taking to the user.
 
Description of drawings
Fig. 1 is the principle process synoptic diagram of the method for online updating intellectual water meter application program of the present invention.
 
Embodiment is described in further detail below in conjunction with the preferred embodiment shown in the accompanying drawing.
The method of a kind of online updating intellectual water meter of embodiment of the invention application program, its hardware platform is that the model of microprocessor adopts STM8L152C6, certainly, also can adopt the microprocessor with the program storage that can repeatedly programme at circuit of other models, as shown in Figure 1, comprise the steps:
A. utilize the IAP technology that the flash memory area of intellectual water meter microprocessor is divided into two districts: a district is used for storage IAP program in the application programming program area, is defined as the main storage area or cries the BOOT district; Another district is application area, is used for the application program that storage realizes the water meter function, is defined as program storage area or cries the CODE district; Described IAP program is burnt in the microprocessor by programmable device or ICP interface, no longer revises after the burning;
B. in described user program, add the response to the instruction of IAP Program reset;
C. behind the described microprocessor electrification reset, whether check first has the instruction of the IAP of host computer Program reset (this time period generally is made as 2-5 second within a period of time, for example 3 seconds), if correctly effective without dependent instruction and inspection CODE district program, then leap to the CODE district and carry out normal application program; If dependent instruction is arranged, after described microprocessor receives this instruction, abandon present procedure and jump to BOOT district execution IAP program, the online updating water meter application program of communicating by letter with host computer, whether the inspection application program was correctly complete after renewal was finished, the IAP EOP (end of program); And then the application program after execution CODE district's renewal.
When the water meter microprocessor when carrying out CODE district user program, can automatically detect at any time the IAP Program reset instruction that host computer sends, make an immediate response, microprocessor resets and again begins to carry out from the IAP program, the online updating water meter application program of communicating by letter with host computer, whether the inspection application program was correctly complete after renewal was finished, the IAP EOP (end of program); And then the application program after execution CODE district's renewal.
Among the present invention, corresponding remote control software has been installed also in the host computer that relates to, this remote control software has realized making host computer by the communication monitoring circuit, and the water meter microprocessor is sent the instruction of IAP Program reset.Such remote control software technology belongs to ripe remote control technology, repeats no more herein.
Above content is the further description of the present invention being done in conjunction with concrete optimal technical scheme, can not assert that implementation of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (5)

1. the method for an online updating intellectual water meter application program is characterized in that, comprises the steps:
Utilize the IAP technology that the flash memory area of intellectual water meter microprocessor is divided into two districts: a district is used for storage IAP program in the application programming program area, is defined as the main storage area or cries the BOOT district; Another district is application area, is used for the application program that storage realizes the water meter function, is defined as program storage area or cries the CODE district;
In described user program, add the response to the instruction of IAP Program reset;
Behind the described microprocessor electrification reset, check first whether the instruction of the IAP of host computer Program reset is arranged within a period of time, if correctly effective without dependent instruction and inspection CODE district program, then leap to the CODE district and carry out normal application program; If dependent instruction is arranged, after described microprocessor receives this instruction, abandon present procedure and jump to BOOT district execution IAP program, the online updating water meter application program of communicating by letter with host computer, whether the inspection application program was correctly complete after renewal was finished, the IAP EOP (end of program).
2. the method for online updating intellectual water meter application program as claimed in claim 1, it is characterized in that: also comprise step D, when the water meter microprocessor when carrying out CODE district user program, can automatically detect at any time the IAP Program reset instruction that host computer sends, make an immediate response, microprocessor resets and again begins to carry out the online updating water meter application program of communicating by letter with host computer from the IAP program, whether the inspection application program was correctly complete after renewal was finished, the IAP EOP (end of program).
3. the method for online updating intellectual water meter application program as claimed in claim 1 is characterized in that: the time period that checks the IAP Program reset instruction whether host computer is arranged among the described step C is made as 2-5 second.
4. the method for online updating intellectual water meter application program as claimed in claim 1, it is characterized in that: described IAP program is burnt in the microprocessor by programmable device or ICP interface, no longer revises after the burning.
5. the method for online updating intellectual water meter application program as claimed in claim 1, it is characterized in that: the model of described microprocessor is STM8L152C6.
CN2012100594744A 2012-03-08 2012-03-08 Method for updating application program of intelligent water meter on line Pending CN102880480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100594744A CN102880480A (en) 2012-03-08 2012-03-08 Method for updating application program of intelligent water meter on line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100594744A CN102880480A (en) 2012-03-08 2012-03-08 Method for updating application program of intelligent water meter on line

Publications (1)

Publication Number Publication Date
CN102880480A true CN102880480A (en) 2013-01-16

Family

ID=47481819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100594744A Pending CN102880480A (en) 2012-03-08 2012-03-08 Method for updating application program of intelligent water meter on line

Country Status (1)

Country Link
CN (1) CN102880480A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407898A (en) * 2014-12-03 2015-03-11 深圳晶福源科技股份有限公司 Software remote upgrade system and method for photovoltaic array smart junction box
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
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
CN112162772A (en) * 2020-09-29 2021-01-01 北京东土军悦科技有限公司 Operation control method and device of application program, single chip microcomputer and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158544A (en) * 2011-02-25 2011-08-17 深圳市元征软件开发有限公司 Method and device for remote upgrading of vehicle-mounted electronic device
WO2011159263A1 (en) * 2010-06-15 2011-12-22 The Thailand Research Fund Embedded system providing bootloader selected execution of multiple independent modular programs

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011159263A1 (en) * 2010-06-15 2011-12-22 The Thailand Research Fund Embedded system providing bootloader selected execution of multiple independent modular programs
CN102158544A (en) * 2011-02-25 2011-08-17 深圳市元征软件开发有限公司 Method and device for remote upgrading of vehicle-mounted electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁璐等: "基于Zigbee和IAP的在线升级方案", 《测控技术》, vol. 27, no. 10, 31 December 2008 (2008-12-31), pages 79 - 85 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407898A (en) * 2014-12-03 2015-03-11 深圳晶福源科技股份有限公司 Software remote upgrade system and method for photovoltaic array smart junction box
CN104572206A (en) * 2015-01-14 2015-04-29 厦门为那通信科技有限公司 Application program self updating and backup recovery method
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
CN112162772A (en) * 2020-09-29 2021-01-01 北京东土军悦科技有限公司 Operation control method and device of application program, single chip microcomputer and storage medium
CN112162772B (en) * 2020-09-29 2023-03-10 北京东土军悦科技有限公司 Operation control method and device of application program, single chip microcomputer and storage medium

Similar Documents

Publication Publication Date Title
CN103064382B (en) Optical proximity correction (OPC) embedded-type remote data collecting system and method based on ARM framework
CN103268277B (en) A kind of method and system of output journal information
CN102650947B (en) Continuous increment over-the-air upgrade method of Android handheld equipment
CN104102518B (en) double-CPU system and program upgrading method thereof
CN104461594B (en) The upgrade method and device of embedded OS
CN104133709B (en) The upgrade method and device of embedded system
CN102880480A (en) Method for updating application program of intelligent water meter on line
GB2505099A (en) Managing computing systems utilizing augmented reality
CN103207797A (en) Capsule type customized updating method based on universal extensible firmware interface firmware system
CN106197468B (en) The method and system of pedometer step number renewal
CN103870303A (en) Method and device for reducing size of software installation package
CN104486419A (en) Network firmware updating method based on FT platform
CN104615472A (en) Method for preventing BIOS+ME FW online refresh failure
CN104461563A (en) Method for remotely and regularly detecting newly added file of FTP server under linux
CN105278906A (en) Programmable indicator
US20160103688A1 (en) Method of Starting Computing System
TW200615746A (en) Trace, debug method and system for a processor
JP2014203138A (en) Electronic device, verification method, and verification program
CN105138379A (en) Method for on-line upgrading based on Ymodem protocol
CN101833480B (en) Method for realizing watchdog by using timer and resetting pin of singlechip
CN202632277U (en) Watchdog with data communication function
CN103699802A (en) Method and system for controlling scene logic of game scene uniformly
CN203102252U (en) Embedded-type software online upgrading device
CN105022647B (en) A kind of control method and terminal of application installation
WO2007136684A3 (en) Action languages for unified modeling language model

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