CN101901539B - Electric energy meter reading method for customizing meter reading contents based on configuration file - Google Patents

Electric energy meter reading method for customizing meter reading contents based on configuration file Download PDF

Info

Publication number
CN101901539B
CN101901539B CN 201010216078 CN201010216078A CN101901539B CN 101901539 B CN101901539 B CN 101901539B CN 201010216078 CN201010216078 CN 201010216078 CN 201010216078 A CN201010216078 A CN 201010216078A CN 101901539 B CN101901539 B CN 101901539B
Authority
CN
China
Prior art keywords
meter
configuration file
ammeter
checking meter
copy reading
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.)
Expired - Fee Related
Application number
CN 201010216078
Other languages
Chinese (zh)
Other versions
CN101901539A (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.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou Electronics 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 Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CN 201010216078 priority Critical patent/CN101901539B/en
Publication of CN101901539A publication Critical patent/CN101901539A/en
Application granted granted Critical
Publication of CN101901539B publication Critical patent/CN101901539B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an electric energy meter reading method for customizing meter reading contents based on a configuration file, which comprises the following steps of: A) customizing the contents of the configuration file according to the difference of the reading contents provided by an electric energy meter or actual meter reading requirements; B) downloading the configuration file to a specified path of the meter reading terminal or meter reading application platform of an electric energy acquisition system; C) restarting the meter reading terminal or meter reading application platform; D) inputting a uniform meter reading parameter by using a uniform application programming interface (API) agreed by each electric meter; E) initializing a meter reading physical communication interface by using the API agreed by each electric meter; F) initializing the related contents of the configuration file by using the API agreed by each electric meter; and G) reading required electric meter data by using the API agreed by each electric meter. The general mode of downloading the configuration file can adapt to flexible change of electric energy meter reading contents and identifiers in different regions and application scenes; and the same code can be applied to different types of electric energy meter reading systems.

Description

A kind of electric energy meter copy reading method based on configuration file customization meter reading contents
Technical field
The present invention relates to each Electric Energy Acquisition System of electric system, especially, copy reading same electric energy meter adapts to different regions different scene demand method in each coulomb collection system of power industry.
Background technology
At present, power industry is more and more important to the copy reading of electric energy meter data, comprise negative control, distribution transforming, metering, collection such as copies at the various data that integrated system all requires to gather all kinds electric energy meter, but much electricity table, various external electric energy meters particularly, such as the Charles Rangel table, since himself collection content in addition gather sign all can flexible configuration, cause the same metering sign possibility difference that will gather of the ammeter of the same race of different regions, different province, acquisition system also needs to follow variation when gathering these data item; And acquisition terminal is because the difference of application demand, and is may needed copy reading data content different, just different such as the data of metering and the copy reading of institute of negative control system.
In existing Electric Energy Acquisition System system, each producer's terminal is in the face of above-mentioned situation the time, what have need to revise software whenever and wherever possible according to the situation of the different configuration needs of different regions, even the different end product of same producer also needs to revise at any time software owing to the content of desired data and the required equal reason of data precision; Several typical configuring conditions that fixedly write that have to select for the application person.Front kind of situation certainly will cause the repeatedly coding of software to revise, and be not general, incompatible; The compatibility of latter event is relatively strong, if but practical application request exceeds outside these several configurations, to change equally software to support new configuration; Compare the dirigibility of using configuration file, larger difference is still arranged.
Summary of the invention
Technical matters to be solved by this invention provides a kind of electric energy meter copy reading method based on configuration file customization meter reading contents, general mode with download configuration file, can adapt to the flexible variation of content and the sign of the electric energy meter copy reading under the different application scene of different regions, and same code may be used in the dissimilar electric flux reading transcribing systems, the workloads such as code coding debugging be can greatly save, thereby preferably versatility, stronger dirigibility, higher practicality reached.
For solving the problems of the technologies described above, technical scheme of the present invention is: a kind of electric energy meter copy reading method based on configuration file customization meter reading contents, and its step comprises:
The content of the different or actual demand custom configuration file of checking meter of the copy reading content that A) provides according to electric energy meter itself;
B) configuration file is downloaded to the specified path of Electric Energy Acquisition System meter reading terminal or the usage platform of checking meter;
C) restart meter reading terminal or the application platform of checking meter, so that the configuration file of downloading can normally be read and use;
When D) checking meter, use the unified api interface of each ammeter agreement, the parameter of checking meter that input is unified;
E) use the unified api interface of each ammeter agreement, the initialization physical communication interface of checking meter;
F) use the unified api interface of each ammeter agreement, the related content of initial configuration file;
G) use the unified api interface of each ammeter agreement, the ammeter data that copy reading is required.
As further improvement, described steps A) in, configuration file comprises: dispose the file header information of this configuration file, comprise that the filename of appointment detects information and explanatory notes information etc.; Dispose the quantity of effective copy reading data item; The common data sign of configuration copy reading data item, and the copy reading sign of the ammeter self corresponding with the common data sign of this electric energy meter agreement regulation; Dispose the relevant application parameter that can arrange that this agreement may use: the special section of Data Identification is graded such as copy reading pattern, last month.
As further improvement, described step B) in, the downloading mode of configuration file is the Local or Remote mode; Download configuration file can be used self-defining host-host protocol, carries out the verification inspection in the mode of agreement; Need guarantee during download that the path of configuration file is application person's specified path; The pattern that the name that need guarantee configuration file during download meets appointment is beneficial to application program and finds.
As further improvement, described step D) in, the described parameter of checking meter comprises: ammeter protocol number, profile number, electric meter address, the user name of checking meter, the password of checking meter, the port numbers of checking meter, the communication baud rate of checking meter, the communication data position of checking meter, the communication check digit of checking meter, the parameters such as communication position of rest of checking meter.
As further improvement, described step e) comprising:
E1) search the actual correspondence port of checking meter according to the port numbers of checking meter;
E2) the initialization messaging parameter such as baud rate, data bit, check digit, position of rest of port of checking meter.
As further improvement, described step F) in, the initial configuration file may further comprise the steps:
F1) find corresponding configuration file according to this ammeter protocol number and profile number initialization, if search unsuccessful, initialization ammeter protocol failure then;
F2) check the configuration file header, if check unsuccessful, initialization ammeter protocol failure then;
F3) read the related content of configuration file, use when checking meter operation.
As further improvement, described step G) in, the step of copy reading ammeter is as follows:
G1) the copy reading data item identifier of api interface is the common data sign during copy reading ammeter data;
According to the content of configuration file, find the sign of checking meter of this ammeter self by public identifier when G2) checking meter;
G3) use the sign of checking meter of this ammeter of method copy reading self of this ammeter agreement;
The data of this ammeter protocol format that G4) copy reading is returned are converted to the common format data of unified form, length and precision range etc.
The beneficial effect that the present invention compared with prior art brings is:
Dispose the copy reading content of ammeter agreement with the form of configuration file, every kind of electric energy meter agreement correspondence configuration file is separately used the local different copy reading content of the configurable customization of different demands according to each; Can download different configuration files to adapt to the needs of different application scene when needing change to check meter demand; Implement the present invention and can make each Electric Energy Acquisition System terminal, be applied to the different scenes in different regions, may there be the copy reading content difference that provides of ammeter of the same race itself or copy reading demand not simultaneously, has very strong dirigibility and adaptability, can greatly improve the reusability of code, avoid frequently changing electric energy meter agreement specific code and cause terminal software to need constantly the thereupon problem of change.
Description of drawings
Fig. 1 is copy reading method flow diagram of the present invention;
Fig. 2 is structural framing figure of the present invention;
Fig. 3 is the initialized process flow diagram of the configuration file of meter register method of the present invention;
Fig. 4 is the scheduling flow figure of the copy reading data item of meter register method of the present invention.
Embodiment
The invention will be further described below in conjunction with Figure of description.
As shown in Figure 1, 2, a kind of electric energy meter copy reading method based on configuration file customization meter reading contents, it may further comprise the steps:
The content of the different or actual demand custom configuration file of checking meter of the copy reading content that A) provides according to electric energy meter itself; Described configuration file comprises: dispose the file header information of this configuration file, comprise that the filename of appointment detects information and explanatory notes information etc.; Dispose the quantity of effective copy reading data item; The common data sign of configuration copy reading data item, and the copy reading sign of the ammeter self corresponding with the common data sign of this electric energy meter agreement regulation; Dispose the relevant application parameter that can arrange that this agreement may use: the special section of Data Identification is graded such as copy reading pattern, last month;
B) configuration file is downloaded to the specified path of Electric Energy Acquisition System meter reading terminal or the usage platform of checking meter; The download of configuration file should be noted that:
B1) can adopt Local or Remote mode download configuration file on the terminal;
B2) download configuration file can be used self-defining host-host protocol, carries out the verification inspection in the mode of agreement;
Need guarantee when B3) downloading that the path of configuration file is application person's specified path;
The pattern that the name that need guarantee configuration file when B4) downloading meets appointment is beneficial to application program and finds.
C) restart meter reading terminal or the application platform of checking meter, so that the configuration file of downloading can normally be read and use;
When D) checking meter, use the unified api interface of each ammeter agreement, the parameter of checking meter that input is unified; The described parameter of checking meter comprises: ammeter protocol number, profile number, electric meter address, the user name of checking meter, the password of checking meter, the port numbers of checking meter, the communication baud rate of checking meter, the communication data position of checking meter, the communication check digit of checking meter, the parameters such as communication position of rest of checking meter;
E) use the unified api interface of each ammeter agreement, the initialization physical communication interface of checking meter; Specific implementation is as follows:
E1) search the actual correspondence port of checking meter according to the port numbers of checking meter;
E2) the initialization messaging parameter such as baud rate, data bit, check digit, position of rest of port of checking meter.
F) use the unified api interface of each ammeter agreement, the related content of initial configuration file; As shown in Figure 3, the initial configuration file may further comprise the steps:
F1) find corresponding configuration part according to this ammeter protocol number and profile number initialization, if search unsuccessful, initialization ammeter protocol failure then;
F2) check the configuration file header, if check unsuccessful, initialization ammeter protocol failure then;
F3) read the related content of configuration file, use when checking meter operation.
G) use the unified api interface of each ammeter agreement, the ammeter data that copy reading is required, as shown in Figure 4, the step of copy reading ammeter is as follows:
G1) the copy reading data item identifier of api interface is the common data sign during copy reading ammeter data;
According to the content of configuration file, find the sign of checking meter of this ammeter self by public identifier when G2) checking meter;
G3) use the sign of checking meter of this ammeter of method copy reading self of this ammeter agreement;
The data of this ammeter protocol format that G4) copy reading is returned are converted to the common format data of unified form, length and precision range etc.
Dispose the copy reading content of ammeter agreement with the form of configuration file, every kind of electric energy meter agreement correspondence configuration file is separately used the local different copy reading content of the configurable customization of different demands according to each; Can download different configuration files to adapt to the needs of different application scene when needing change to check meter demand; Implement the present invention and can make each Electric Energy Acquisition System terminal, be applied to the different scenes in different regions, may there be the copy reading content difference that provides of ammeter of the same race itself or copy reading demand not simultaneously, has very strong dirigibility and adaptability, can greatly improve the reusability of code, avoid frequently changing electric energy meter agreement specific code and cause terminal software to need constantly the thereupon problem of change.
The typical case that the above embodiment has only described this software approach uses, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some accommodations and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (1)

1. electric energy meter copy reading method based on configuration file customization meter reading contents is characterized in that:
The content of the different or actual demand custom configuration file of checking meter of the copy reading content that A) provides according to electric energy meter itself;
B) configuration file is downloaded to the specified path of Electric Energy Acquisition System meter reading terminal or the usage platform of checking meter;
C) restart meter reading terminal or the application platform of checking meter, so that the configuration file of downloading can normally be read and use;
When D) checking meter, use the unified api interface of each ammeter agreement, the parameter of checking meter that input is unified;
E) use the unified api interface of each ammeter agreement, the initialization physical communication interface of checking meter;
F) use the unified api interface of each ammeter agreement, the related content of initial configuration file;
G) use the unified api interface of each ammeter agreement, the ammeter data that copy reading is required;
Described steps A) in, configuration file comprises:
Dispose the file header information of this configuration file, comprise that the filename of appointment detects information and explanatory notes information;
Dispose the quantity of effective copy reading data item;
The common data sign of configuration copy reading data item, and the copy reading sign of the ammeter self corresponding with the common data sign of this electric energy meter agreement regulation;
Dispose the relevant application parameter that can arrange that this agreement may use: copy reading pattern, last month Data Identification special differentiation;
Described step B) in, the downloading mode of configuration file is the Local or Remote mode;
Described step D) in, the described parameter of checking meter comprises: ammeter protocol number, profile number, electric meter address, the user name of checking meter, the password of checking meter, the port numbers of checking meter, the communication baud rate of checking meter, the communication data position of checking meter, the communication check digit of checking meter, the communication position of rest parameter of checking meter;
Described step e) comprising:
E1) search the actual correspondence port of checking meter according to the port numbers of checking meter;
E2) initialization baud rate, data bit, check digit, the position of rest messaging parameter of port of checking meter;
Described step F) in, the initial configuration file may further comprise the steps:
F1) find corresponding configuration file according to this ammeter protocol number and profile number initialization, if search unsuccessful, initialization ammeter protocol failure then;
F2) check the configuration file header, if check unsuccessful, initialization ammeter protocol failure then;
F3) read the related content of configuration file, use when checking meter operation;
Described step G) in, the step of copy reading ammeter is as follows:
G1) the copy reading data item identifier of api interface is the common data sign during copy reading ammeter data;
According to the content of configuration file, find the sign of checking meter of this ammeter self by public identifier when G2) checking meter;
G3) use the sign of checking meter of this ammeter of method copy reading self of this ammeter agreement;
The data of this ammeter protocol format that G4) copy reading is returned are converted to the common format data of unified form, length and precision range.
CN 201010216078 2010-07-01 2010-07-01 Electric energy meter reading method for customizing meter reading contents based on configuration file Expired - Fee Related CN101901539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010216078 CN101901539B (en) 2010-07-01 2010-07-01 Electric energy meter reading method for customizing meter reading contents based on configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010216078 CN101901539B (en) 2010-07-01 2010-07-01 Electric energy meter reading method for customizing meter reading contents based on configuration file

Publications (2)

Publication Number Publication Date
CN101901539A CN101901539A (en) 2010-12-01
CN101901539B true CN101901539B (en) 2013-03-20

Family

ID=43227040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010216078 Expired - Fee Related CN101901539B (en) 2010-07-01 2010-07-01 Electric energy meter reading method for customizing meter reading contents based on configuration file

Country Status (1)

Country Link
CN (1) CN101901539B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102610085A (en) * 2012-03-27 2012-07-25 安徽南瑞继远软件有限公司 Infrared meter reading method compatible with multi protocols
CN102881143B (en) * 2012-10-22 2013-06-12 杭州海兴电力科技股份有限公司 Method for reading electric energy meter event records in AMI (Advanced Metering Infrastructure) system
CN104283705B (en) * 2013-07-08 2018-01-23 国家电网公司 Concentrator configures adjustment method and concentrator
CN104699518B (en) * 2015-03-19 2018-04-06 烟台海颐软件股份有限公司 A kind of general-purpose meter reader adapter and its implementation based on micro-kernel plug-in unit
CN104778547B (en) * 2015-04-14 2018-07-06 积成电子股份有限公司 A kind of power consumer electricity consumption information self-learning type meter register method
CN105809942A (en) * 2016-03-17 2016-07-27 国家电网公司 Data processing method and device for electricity information collection system
CN107576926B (en) * 2017-08-09 2019-08-16 宁波三星医疗电气股份有限公司 A method of generating simulation ammeter returned data
CN108089039B (en) * 2017-12-20 2020-10-27 宁波三星医疗电气股份有限公司 Method for shortening factory parameter setting time of electric energy meter
CN111988681A (en) * 2020-08-05 2020-11-24 武汉阿迪克电子股份有限公司 NB-loT-based smart electric meter communication method and system
CN112996321B (en) * 2021-03-05 2022-08-02 马乐志 Regular expression matching-based multi-table data set reading method for intelligent terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571990A (en) * 2009-06-15 2009-11-04 安徽省电力公司合肥供电公司 Mobile intelligent meter reading system
CN101620777A (en) * 2009-08-03 2010-01-06 电子科技大学 Communication device of remote meter reading system
CN201434880Y (en) * 2009-05-18 2010-03-31 深圳市森晖电子有限公司 Carrier wave remote controlled meter-reading billing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201434880Y (en) * 2009-05-18 2010-03-31 深圳市森晖电子有限公司 Carrier wave remote controlled meter-reading billing system
CN101571990A (en) * 2009-06-15 2009-11-04 安徽省电力公司合肥供电公司 Mobile intelligent meter reading system
CN101620777A (en) * 2009-08-03 2010-01-06 电子科技大学 Communication device of remote meter reading system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
施国铭 *
王成祥.《适应多种智能电表通信规约的无线抄表解决方案》.《电子技术应用》.2001,58-60. *

Also Published As

Publication number Publication date
CN101901539A (en) 2010-12-01

Similar Documents

Publication Publication Date Title
CN101901539B (en) Electric energy meter reading method for customizing meter reading contents based on configuration file
CN102014118B (en) Method for reading multiple electric energy meters generally
CN101566954B (en) Method and device for managing plug-in
Yang et al. μ PnP: plug and play peripherals for the internet of things
CN104135069A (en) Method for configuring operating parameters of secondary equipment of intelligent substation
CN104079596B (en) A kind of remote wake-up method and device
CN201035568Y (en) USB equipment logical numbering and physical numbering mapping device
CN206332688U (en) A kind of things-internet gateway
CN103748569A (en) System and methods for driverless operation of USB device
CN104461649B (en) chip compatible method and device
CN101163050A (en) Equipment near-end maintenance method, system and equipment
CN103200199A (en) Out of band (OOB) data collection system
CN105117293A (en) Windows system environment automatic deployment method and automatic deployment system
CN103955783A (en) Low-voltage carrier wave installation site information collecting method
CN104102510A (en) Integration and configuration system for IEC (international electrotechnical commission) 61850 network processor chips
CN101521600B (en) Service control method in gateway equipment and gateway equipment
CN112305924A (en) Control method and device of household appliance, electronic device and storage medium
CN108446371A (en) Data return guiding method, device, computer equipment and storage medium
CN103116545A (en) Intelligent terminal upgrade detection method and system
CN104767638A (en) Method for automatically configuring integrated network card control by setting tag values
CN105204981A (en) Application performance test method and device
CN102830988A (en) Firmware updating method and related computer system
CN103259850A (en) Method and device for configuring intelligent terminal
CN103176805A (en) Executable program installation method and executable program installation system
CN102609253B (en) A kind of application implementation method of smart card and system

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130320

Termination date: 20160701