CN103324496A - Method for realizing local maintenance of centralized meter reading terminal by using U disk - Google Patents

Method for realizing local maintenance of centralized meter reading terminal by using U disk Download PDF

Info

Publication number
CN103324496A
CN103324496A CN2012103322135A CN201210332213A CN103324496A CN 103324496 A CN103324496 A CN 103324496A CN 2012103322135 A CN2012103322135 A CN 2012103322135A CN 201210332213 A CN201210332213 A CN 201210332213A CN 103324496 A CN103324496 A CN 103324496A
Authority
CN
China
Prior art keywords
reading terminal
automatic meter
flash disk
usb flash
centralized automatic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103322135A
Other languages
Chinese (zh)
Other versions
CN103324496B (en
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.)
JIANYIN CHANGYI GROUP
Original Assignee
JIANYIN CHANGYI GROUP
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 JIANYIN CHANGYI GROUP filed Critical JIANYIN CHANGYI GROUP
Priority to CN201210332213.5A priority Critical patent/CN103324496B/en
Publication of CN103324496A publication Critical patent/CN103324496A/en
Application granted granted Critical
Publication of CN103324496B publication Critical patent/CN103324496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for realizing local maintenance of a centralized meter reading terminal by using a U disk. The method comprises the steps as follows: a programmer writes an instruction with a function expected to be realized in a script, then stores the script into a script file, and then copies the script file into the U disk; the U disk is inserted into a USB plug seat of the centralized meter reading terminal, and then by means of a button on the centralized meter reading terminal, the centralized meter reading terminal loads the script file in the U disk into a storage of the centralized meter reading terminal; and an MCU ( microprogrammed control unit) in the centralized meter reading terminal reads and executes the instruction of the script file in the storage by means of the button on the centralized meter reading terminal according to a prompt on a display of the centralized meter reading terminal, and/or transmits data in the centralized meter reading terminal back to the U disk, so that internal programs of the centralized meter reading terminal are updated, and data are collected. The method has the advantages as follows: the connection is reliable, the maintenance speed is high, the operation is convenient and very reliable, almost has no requirement for the accomplishments of maintenance workers, and needs nothing except the U disk.

Description

A kind of with USB flash disk realization centralized automatic meter-reading terminal local maintenance method
Technical field
The present invention relates to a kind of method of centralized automatic meter-reading terminal maintenance, be specifically related to a kind of with USB flash disk realization centralized automatic meter-reading terminal local maintenance method.
Background technology
In order to realize community resident electric weight and industry and commerce user electric weight automatic data logging, mainly be to take the residential quarter as unit installation centralized automatic meter-reading terminal at present, utilizing power line carrier or other communication channels as communication media, finish automatically the copying and accepting of ammeter, is the best means that realizes automatic data logging.Current a large amount of centralized automatic meter-reading terminal is installed to the user scene, because the continuous renewal of ammeter and automatic meter reading system are to the continuous variation of functional requirement, the maintenance workload of centralized automatic meter-reading terminal is increasing, and therefore increasing the requirement wants to provide very easily means to the maintenance of centralized automatic meter-reading terminal.
Maintenance work content to concentrator mainly comprises:
1, on-line software updating
2, the data importing of concentrator or derivation
3, other work
Have at present several methods commonly used to realize maintenance to the centralized automatic meter-reading terminal:
1, utilize the GPRS/CDMA data feedback channel of centralized automatic meter-reading terminal to realize remote maintenance at the main website end;
2, utilize the local maintenance of local RS232 special maintenance Interface realization;
First method, utilize GPRS/CDMA passage remote maintenance, its advantage is: convenient, do not need the scene, shortcoming is: speed is very slow, and maintenance work is easily interrupted, quality and weak effect, require high-quality personnel operation, also need in addition to expend communication flows (wanting charged extra), also affect the work of checking meter normally.
Second method: utilize the special RS232 maintenance channel of centralized automatic meter-reading terminal, advantage: connect reliable, quality and effect are better than long-range, speed is also fast a lot of than long-range, shortcoming: need a computing machine, and need to move on computers the specific program of Maintenance Development that is, when operating at the scene or cumbersome, the maintainer be had relatively high expectations.
Summary of the invention
The object of the invention is to overcome the defective that exists in the prior art, provide a kind of connection reliable, maintenance speed is fast, and is easy to operate and very reliable, realizes centralized automatic meter-reading terminal local maintenance method to what maintainer's quality did not almost require with USB flash disk.
For achieving the above object, to be that design is a kind of realize centralized automatic meter-reading terminal local maintenance method with USB flash disk to technical scheme of the present invention, it is characterized in that, said method comprising the steps of:
S1: the instruction that will be wished practical function by the programmer is finished writing with script, then stores in the script file, this script file is copied in the USB flash disk again;
S2: the USB flash disk of S1 in the step is inserted into the USB socket of centralized automatic meter-reading terminal, by the button on the centralized automatic meter-reading terminal, the centralized automatic meter-reading terminal downloads to the script file in the USB flash disk in the storer of centralized automatic meter-reading terminal;
S3: according to the prompting on the centralized automatic meter-reading terminal display by the button on the centralized automatic meter-reading terminal, MCU in the centralized automatic meter-reading terminal reads and carries out the instruction of S2 script file in the storer in the step, and/or data in the centralized automatic meter-reading terminal are passed back in the USB flash disk, thereby realize upgrading and/or data acquisition to centralized automatic meter-reading terminal inner program.
Wherein preferred technical scheme is, the USB flash disk of described S2 in the step carries out exchanges data by the USB socket on the centralized automatic meter-reading terminal, power supply and signal protection circuit, USB main control chip and MCU successively.
Further preferred technical scheme is to be connected with metering module, display module, communication module, EEPROM and FLASH storer, RTC real-time clock module at described MCU.
Preferred technical scheme is to also have, and the instruction of the script file of described S1 in the step comprises: the sage.exe of USB flash disk is copied to terminal, and renames saga.exe.new as; Force again file system to write immediately among the FlashRAM; It is reboot that last forced system restarts.
Preferred technical scheme is to also have, and the script file of described S1 in the step comprises the script file of data importing function: the file in the copy USB flash disk is in centralized automatic meter-reading lane terminal assigned catalogue; Force again file system to be written to immediately among the FlashRAM of centralized automatic meter-reading terminal; Unload at last USB flash disk.
Preferred technical scheme is to also have, and the script file of described S1 in the step comprises the script file of data export function: the specified file of centralized automatic meter-reading lane terminal is copied in the USB flash disk; Force again to be written to immediately file system in the USB flash disk; Unload at last USB flash disk.
Advantage of the present invention is connected with beneficial effect: this realizes with USB flash disk that centralized automatic meter-reading terminal local maintenance method has and connects reliably, and maintenance speed is fast, and is easy to operate and very reliable, and maintainer's quality is not almost required, and what does not need except USB flash disk.The method solved the maintainer at the scene rapid and convenient realize maintenance work to the centralized automatic meter-reading terminal, as long as the USB flash disk that the maintainer prepares for him with upper programming personnel, insert USB flash disk on the centralized automatic meter-reading terminal at the scene, can finish maintenance work according to the prompting operation on the menu.The programming personnel will wish that the function that realizes finishes writing with script, store in the script file, such as file FuncExec.sh by name, then with this file copy in USB flash disk, USB flash disk is inserted the centralized automatic meter-reading terminal, select to carry out this file by button, can realize any function, as long as this function can be write out with script.If it is that the centralized automatic meter-reading terminal does not have that some functions are arranged, new function can be realized in certain new program, at last this program is copied in the USB flash disk, call with script and carry out this function, equally also can realize the function that terminal does not have.
Description of drawings
Fig. 1 is that the present invention realizes maintenance program process flow diagram in the centralized automatic meter-reading terminal local maintenance method with USB flash disk;
Fig. 2 is the structured flowchart that centralized automatic meter-reading terminal inner module of the present invention connects;
Fig. 3 is the process flow diagram of carrying out maintenance program in the centralized automatic meter-reading terminal of the present invention;
Fig. 4 is the process flow diagram that the present invention imports the maintenance program in the USB flash disk centralized automatic meter-reading terminal;
To be the present invention export to process flow diagram in the USB flash disk with the data in the centralized automatic meter-reading terminal to Fig. 5.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is further described.Following examples only are used for technical scheme of the present invention more clearly is described, and can not limit protection scope of the present invention with this.
As shown in Figure 1, the present invention is a kind of with USB flash disk realization centralized automatic meter-reading terminal local maintenance method, and the method may further comprise the steps:
The first step: the instruction that will be wished practical function by the programmer is finished writing with script, then stores in the script file, this script file is copied in the USB flash disk again;
Second step: the USB flash disk in the first step is inserted into the USB socket of centralized automatic meter-reading terminal, by the button on the centralized automatic meter-reading terminal, the centralized automatic meter-reading terminal downloads to the script file in the USB flash disk in the storer of centralized automatic meter-reading terminal;
The 3rd step: according to the prompting on the centralized automatic meter-reading terminal display by the button on the centralized automatic meter-reading terminal, MCU in the centralized automatic meter-reading terminal reads and carries out the instruction of the script file in the storer in the second step, and/or data in the centralized automatic meter-reading terminal are passed back in the USB flash disk, thereby realize upgrading and/or data acquisition to centralized automatic meter-reading terminal inner program.
As shown in Figure 2, preferred embodiment is that the USB flash disk in the described second step carries out exchanges data by the USB socket on the centralized automatic meter-reading terminal, power supply and signal protection circuit, USB main control chip and MCU successively in the present invention.
As shown in Figure 2, further preferred embodiment is in the present invention, is connected with metering module, display module, communication module, EEPROM and FLASH storer, RTC real-time clock module at described MCU.
As shown in Figure 3, preferred embodiment is to also have in the present invention, and the instruction of the script file in the described first step comprises: the sage.exe of USB flash disk is copied to terminal, and renames saga.exe.new as; Force again file system to write immediately among the FlashRAM; It is reboot that last forced system restarts.
As shown in Figure 4, preferred embodiment is to also have in the present invention, and the script file in the described first step comprises the script file of data importing function: the file in the copy USB flash disk is in centralized automatic meter-reading lane terminal assigned catalogue; Force again file system to be written to immediately among the FlashRAM of centralized automatic meter-reading terminal; Unload at last USB flash disk.
As shown in Figure 5, preferred embodiment is to also have in the present invention, and the script file in the described first step comprises the script file of data export function: the specified file of centralized automatic meter-reading lane terminal is copied in the USB flash disk; Force again to be written to immediately file system in the USB flash disk; Unload at last USB flash disk.
Embodiment 1
The centralized automatic meter-reading terminal adds USB HOST interface and USB flash disk driver:
Figure 754193DEST_PATH_IMAGE001
The present invention realizes the method that the centralized automatic meter-reading terminal is originally safeguarded over the ground with USB flash disk, solve at the scene rapid and convenient realization to the maintenance work of centralized automatic meter-reading terminal, as long as the USB flash disk that the maintainer prepares for him with upper technician, insert USB flash disk on the centralized automatic meter-reading terminal at the scene, can finish maintenance work according to the prompting operation on the menu.
In USB flash disk, store new procedures such as saga.exe, and upgrade script file upgrade.sh, USB flash disk is inserted the centralized automatic meter-reading terminal, select to carry out upgrade script program upgrade.sh by button.Run time version in the shell script upgrade.sh has the flow process that is illustrated in fig. 3 shown below.
After the centralized automatic meter-reading terminal restarts, automatically by carrying out booting script, finish final upgrade job, the run time version of booting script is just like the flow process shown in 1 figure.
In USB flash disk, store the script file of data importing function, such as DataImport.sh, USB flash disk is inserted terminal, select to carry out script file DataImport.sh by button and can finish data importing.Run time version in the shell script DataImport.sh is just like following flow process shown in Figure 4.
In USB flash disk, store the script file of data export function, such as DataExport.sh, USB flash disk is inserted terminal, select to carry out script file DataExport.sh by button and can finish the data derivation.Run time version in the shell script DataExport.sh is just like following flow process shown in Figure 5.
To wish that by the programming personnel function that realizes finishes writing with script, store in the script file, such as file FuncExec.sh by name, with this file copy in USB flash disk, again USB flash disk is inserted terminal, select to carry out this file by button, can realize any function, as long as this function can be write out with script.If it is that terminal does not have that some functions are arranged, new function can be realized in certain new program, at last this program is copied in the USB flash disk, call with script and carry out this function, equally also can realize the function that terminal does not have.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the technology of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (6)

1. realize centralized automatic meter-reading terminal local maintenance method with USB flash disk for one kind, it is characterized in that, said method comprising the steps of:
S1: the instruction that will be wished practical function by the programmer is finished writing with script, then stores in the script file, this script file is copied in the USB flash disk again;
S2: the USB flash disk of S1 in the step is inserted into the USB socket of centralized automatic meter-reading terminal, by the button on the centralized automatic meter-reading terminal, the centralized automatic meter-reading terminal downloads to the script file in the USB flash disk in the storer of centralized automatic meter-reading terminal;
S3: according to the prompting on the centralized automatic meter-reading terminal display by the button on the centralized automatic meter-reading terminal, MCU in the centralized automatic meter-reading terminal reads and carries out the instruction of S2 script file in the storer in the step, and/or data in the centralized automatic meter-reading terminal are passed back in the USB flash disk, thereby realize upgrading and/or data acquisition to centralized automatic meter-reading terminal inner program.
2. realize centralized automatic meter-reading terminal local maintenance method as claim l is described with USB flash disk; it is characterized in that, the USB flash disk of described S2 in the step carries out exchanges data by the USB socket on the centralized automatic meter-reading terminal, power supply and signal protection circuit, USB main control chip and MCU successively.
3. as claimed in claim 2ly realize centralized automatic meter-reading terminal local maintenance method with USB flash disk, it is characterized in that, be connected with metering module, display module, communication module, EEPROM and FLASH storer, RTC real-time clock module at described MCU.
4. realize centralized automatic meter-reading terminal local maintenance method as claim l is described with USB flash disk, it is characterized in that, the instruction of the script file of described S1 in the step comprises: the sage.exe of USB flash disk is copied to terminal, and renames saga.exe.new as; Force again file system to write immediately among the FlashRAM; It is reboot that last forced system restarts.
5. realize centralized automatic meter-reading terminal local maintenance method as claim l is described with USB flash disk, it is characterized in that, the script file of described S1 in the step comprises the script file of data importing function: the file in the copy USB flash disk is in centralized automatic meter-reading lane terminal assigned catalogue; Force again file system to be written to immediately among the FlashRAM of centralized automatic meter-reading terminal; Unload at last USB flash disk.
6. realize centralized automatic meter-reading terminal local maintenance method as claim l is described with USB flash disk, it is characterized in that, the script file of described S1 in the step comprises the script file of data export function: the specified file of centralized automatic meter-reading lane terminal is copied in the USB flash disk; Force again to be written to immediately file system in the USB flash disk; Unload at last USB flash disk.
CN201210332213.5A 2012-09-10 2012-09-10 One USB flash disk realizes centralized automatic meter-reading terminal local maintaining method Active CN103324496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210332213.5A CN103324496B (en) 2012-09-10 2012-09-10 One USB flash disk realizes centralized automatic meter-reading terminal local maintaining method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210332213.5A CN103324496B (en) 2012-09-10 2012-09-10 One USB flash disk realizes centralized automatic meter-reading terminal local maintaining method

Publications (2)

Publication Number Publication Date
CN103324496A true CN103324496A (en) 2013-09-25
CN103324496B CN103324496B (en) 2016-06-22

Family

ID=49193265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210332213.5A Active CN103324496B (en) 2012-09-10 2012-09-10 One USB flash disk realizes centralized automatic meter-reading terminal local maintaining method

Country Status (1)

Country Link
CN (1) CN103324496B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407984A (en) * 2014-12-03 2015-03-11 四川泰鹏测控仪表科技有限公司 Zero clearing method for initial measurement data of metering device
CN106569740A (en) * 2016-10-17 2017-04-19 中国电力科学研究院 Data local transmission method for electric energy meter, and electric energy meter
CN108279662A (en) * 2017-12-26 2018-07-13 惠州市德赛西威汽车电子股份有限公司 A kind of method that vehicle-mounted fault diagnosis daily record exports automatically
CN112688800A (en) * 2020-12-14 2021-04-20 北京四方继保工程技术有限公司 Remote maintenance method and system for intelligent equipment of intelligent power grid based on script technology
CN114281734A (en) * 2021-12-24 2022-04-05 广东电网有限责任公司 Portable station terminal data acquisition device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074107A (en) * 2010-12-03 2011-05-25 深圳市科陆电子科技股份有限公司 Positioning navigation meter reading handheld terminal
CN102332291A (en) * 2011-05-29 2012-01-25 杭州源牌环境科技有限公司 USB (Universal Serial Bus) meter reader and meter reading method thereof
US20120166778A1 (en) * 2010-12-22 2012-06-28 Fernald Kenneth W Changing the reset state of a processor
CN202309701U (en) * 2011-08-30 2012-07-04 长沙威胜信息技术有限公司 Ethernet communication device based on electric meter reading terminal
CN202422392U (en) * 2011-12-23 2012-09-05 华立仪表集团股份有限公司 Local power-cut meter reading system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074107A (en) * 2010-12-03 2011-05-25 深圳市科陆电子科技股份有限公司 Positioning navigation meter reading handheld terminal
US20120166778A1 (en) * 2010-12-22 2012-06-28 Fernald Kenneth W Changing the reset state of a processor
CN102332291A (en) * 2011-05-29 2012-01-25 杭州源牌环境科技有限公司 USB (Universal Serial Bus) meter reader and meter reading method thereof
CN202309701U (en) * 2011-08-30 2012-07-04 长沙威胜信息技术有限公司 Ethernet communication device based on electric meter reading terminal
CN202422392U (en) * 2011-12-23 2012-09-05 华立仪表集团股份有限公司 Local power-cut meter reading system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407984A (en) * 2014-12-03 2015-03-11 四川泰鹏测控仪表科技有限公司 Zero clearing method for initial measurement data of metering device
CN104407984B (en) * 2014-12-03 2017-05-10 四川泰鹏测控仪表科技有限公司 Zero clearing method for initial measurement data of metering device
CN106569740A (en) * 2016-10-17 2017-04-19 中国电力科学研究院 Data local transmission method for electric energy meter, and electric energy meter
CN108279662A (en) * 2017-12-26 2018-07-13 惠州市德赛西威汽车电子股份有限公司 A kind of method that vehicle-mounted fault diagnosis daily record exports automatically
CN112688800A (en) * 2020-12-14 2021-04-20 北京四方继保工程技术有限公司 Remote maintenance method and system for intelligent equipment of intelligent power grid based on script technology
CN112688800B (en) * 2020-12-14 2023-12-05 北京四方继保工程技术有限公司 Remote maintenance method and system for intelligent power grid intelligent equipment based on script technology
CN114281734A (en) * 2021-12-24 2022-04-05 广东电网有限责任公司 Portable station terminal data acquisition device

Also Published As

Publication number Publication date
CN103324496B (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN103324496A (en) Method for realizing local maintenance of centralized meter reading terminal by using U disk
CN102662708B (en) A kind of (SuSE) Linux OS and video driver device thereof
CN103136028A (en) FLASH memorizer long-distance on-line upgrade method based on field programmable gate array (FPGA)
CN101963910A (en) General USB (Universal Serial Bus) based equipment firmware updating method
CN103019726A (en) Management method and device of software system service rules
CN102693144B (en) A kind of method of capacitance plate firmware upgrade of Android mobile terminal
CN104679559A (en) Single chip microcomputer on-line programming method
CN103677897A (en) System chip and programming method of system chip
CN103729221A (en) Method and device for writing BIOS debugging information into hard disk
CN106303707A (en) A kind of version method for burn-recording, system and terminal
CN101814122A (en) Method and system for monitoring software use authorization information
CN106569854A (en) Method and system for setting device firmware and realizing factory testing
CN101651794A (en) Method for coping television memory data and intelligent copier
CN103634353A (en) Electricity utilization information acquisition terminal and realizing method thereof
CN203250308U (en) USB JTAG conversion debugging device internally embedded in chip
CN202601213U (en) Synchronous Transport Mode (STM) 32 microprocessor program burner
CN104166579A (en) Hardware designing method for achieving BIOS refreshing through BMC under shutdown state
CN102314379B (en) Method for making PC (Personal Computer) operating system interact with intelligent mobile equipment operating system
CN207148816U (en) A kind of program burn writing system and electronic equipment
CN104699648B (en) A kind of intelligent regulator devices of SDI 12
CN105045624A (en) PowerPC mainboard and program writing method
CN113377404B (en) New energy vehicle domain controller safety monitoring chip program updating method and system
CN104360968A (en) Data discrimination and pre-processing physical card and operation method as well as electric energy data processing system
CN202275397U (en) System for realizing peripheral interface controller (PIC) program loading on basis of controller area network (CAN) bus
CN103902298A (en) Instruction set firmware recovery state information setting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant