CN101901539A - 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
CN101901539A
CN101901539A CN 201010216078 CN201010216078A CN101901539A CN 101901539 A CN101901539 A CN 101901539A CN 201010216078 CN201010216078 CN 201010216078 CN 201010216078 A CN201010216078 A CN 201010216078A CN 101901539 A CN101901539 A CN 101901539A
Authority
CN
China
Prior art keywords
meter
configuration file
ammeter
copy reading
electric energy
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
CN 201010216078
Other languages
Chinese (zh)
Other versions
CN101901539B (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 that customizes the content of checking meter based on configuration file
Technical field
The present invention relates to each generated energy acquisition system of electric system, especially, copy reading adapts to different regions different scene demand method with a kind of electric energy meter 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, particularly various external electric energy meters, 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, may needed copy reading data content difference, and just different such as the data of metering and the copy reading of institute of negative control system.
In existing generated energy acquisition service system, each producer's terminal is in the face of above-mentioned situation the time, what have need 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 are supplied with the person and are selected.Preceding kind situation certainly will cause the coding repeatedly of software to revise, and is not general, incompatible; The compatibility of latter event is stronger relatively, if but practical application request exceeds outside these several configurations, to change software equally to support new configuration; Compare the dirigibility of using configuration file, still have than big-difference.
Summary of the invention
Technical matters to be solved by this invention provides a kind of electric energy meter copy reading method that customizes the content of checking meter based on configuration file, general mode with download configuration file, can adapt to the flexible variation of the 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, workloads such as code coding debugging be can save greatly, thereby good versatility, stronger dirigibility, advantages of high practicability reached.
For solving the problems of the technologies described above, technical scheme of the present invention is: a kind of based on the check meter electric energy meter copy reading method of content of configuration file customization, its step comprises:
A) content of the different or actual demand custom configuration file of checking meter of the copy reading content that provides according to electric energy meter itself;
B) configuration file is downloaded to the specified path of the generated energy acquisition system meter reading terminal or the usage platform of checking meter;
C) restart the meter reading terminal or the application platform of checking meter, so that the configuration file of being downloaded 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 of this electric energy meter agreement regulation with the common data sign; Dispose the relevant application parameter that can be provided with that this agreement may use: the special section of Data Identification is graded 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; The path that need guarantee configuration file during download is application person's a specified path; The name that need guarantee configuration file during download meets mode designated and 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, the ammeter 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 format, length and precision range etc.
The beneficial effect that the present invention is compared with prior art brought is:
The form of use configuration file disposes the copy reading content of ammeter agreement, and 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 generated 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 improve the reusability of code greatly, avoid frequently changing electric energy meter agreement specific code and cause terminal software to need constantly the problem of change thereupon.
Description of drawings
Fig. 1 is a 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 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 based on the check meter electric energy meter copy reading method of content of configuration file customization, it may further comprise the steps:
A) content of the different or actual demand custom configuration file of checking meter of the copy reading content that 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 of this electric energy meter agreement regulation with the common data sign; Dispose the relevant application parameter that can be provided with that this agreement may use: the special section of Data Identification is graded as copy reading pattern, last month;
B) configuration file is downloaded to the specified path of the generated 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 that the path of configuration file is application person's a specified path when B3) downloading;
The name that need guarantee configuration file when B4) downloading meets mode designated and is beneficial to application program and finds.
C) restart the meter reading terminal or the application platform of checking meter, so that the configuration file of being downloaded 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, ammeter 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 format, length and precision range etc.
The form of use configuration file disposes the copy reading content of ammeter agreement, and 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 generated 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 improve the reusability of code greatly, avoid frequently changing electric energy meter agreement specific code and cause terminal software to need constantly the problem of change thereupon.
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 (7)

1. one kind based on the check meter electric energy meter copy reading method of content of configuration file customization, it is characterized in that:
A) content of the different or actual demand custom configuration file of checking meter of the copy reading content that provides according to electric energy meter itself;
B) configuration file is downloaded to the specified path of the generated energy acquisition system meter reading terminal or the usage platform of checking meter;
C) restart the meter reading terminal or the application platform of checking meter, so that the configuration file of being downloaded 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.
2. according to claim 1 a kind of based on the check meter electric energy meter copy reading method of content of configuration file customization, it is characterized in that: described steps A), 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 of this electric energy meter agreement regulation with the common data sign;
Dispose the relevant application parameter that can be provided with that this agreement may use: the special section of Data Identification is graded as copy reading pattern, last month.
3. according to claim 1 a kind of based on the check meter electric energy meter copy reading method of content of configuration file customization, it is characterized in that: described step B), the downloading mode of configuration file is the Local or Remote mode.
4. a kind of electric energy meter copy reading method that customizes the content of checking meter based on configuration file according to claim 1, it is characterized in that: described step D), the described parameter of checking meter comprises: ammeter protocol number, profile number, ammeter 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, check meter communication data position, the communication check digit of checking meter, the parameters such as communication position of rest of checking meter.
5. according to claim 1 a kind of based on the check meter electric energy meter copy reading method of content of configuration file customization, it is characterized in that: 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.
6. according to claim 1 a kind of based on the check meter electric energy meter copy reading method of content of configuration file customization, it is characterized in that: described step F), 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.
7. according to claim 1 a kind of based on the check meter electric energy meter copy reading method of content of configuration file customization, it is characterized in that: described step G), 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 format, length and precision range etc.
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 true CN101901539A (en) 2010-12-01
CN101901539B 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)

Cited By (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
CN102881143A (en) * 2012-10-22 2013-01-16 杭州海兴电力科技股份有限公司 Method for reading electric energy meter event records in AMI (Advanced Metering Infrastructure) system
CN104283705A (en) * 2013-07-08 2015-01-14 国家电网公司 Concentrator configuration debugging method and concentrator
CN104699518A (en) * 2015-03-19 2015-06-10 烟台海颐软件股份有限公司 Multi-purpose meter reading machine adapter based on microkernel plug-in and realization method thereof
CN104778547A (en) * 2015-04-14 2015-07-15 积成电子股份有限公司 Self-learning meter reading method for power-expenditure information of power consumer
CN105809942A (en) * 2016-03-17 2016-07-27 国家电网公司 Data processing method and device for electricity information collection system
CN108089039A (en) * 2017-12-20 2018-05-29 宁波三星医疗电气股份有限公司 A kind of electric energy meter that shortens dispatches from the factory the method for parameter setting time
CN107576926B (en) * 2017-08-09 2019-08-16 宁波三星医疗电气股份有限公司 A method of generating simulation ammeter returned data
CN111988681A (en) * 2020-08-05 2020-11-24 武汉阿迪克电子股份有限公司 NB-loT-based smart electric meter communication method and system
CN112996321A (en) * 2021-03-05 2021-06-18 马乐志 Intelligent terminal based on regular expression matching and multi-table data set reading method

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 (1)

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

Cited By (16)

* 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
CN102881143A (en) * 2012-10-22 2013-01-16 杭州海兴电力科技股份有限公司 Method for reading electric energy meter event records in AMI (Advanced Metering Infrastructure) system
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
CN104283705A (en) * 2013-07-08 2015-01-14 国家电网公司 Concentrator configuration debugging 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
CN104699518A (en) * 2015-03-19 2015-06-10 烟台海颐软件股份有限公司 Multi-purpose meter reading machine adapter based on microkernel plug-in and realization method thereof
CN104778547A (en) * 2015-04-14 2015-07-15 积成电子股份有限公司 Self-learning meter reading method for power-expenditure information of power consumer
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
CN108089039A (en) * 2017-12-20 2018-05-29 宁波三星医疗电气股份有限公司 A kind of electric energy meter that shortens dispatches from the factory the method for parameter setting time
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
CN112996321A (en) * 2021-03-05 2021-06-18 马乐志 Intelligent terminal based on regular expression matching and multi-table data set reading method
CN112996321B (en) * 2021-03-05 2022-08-02 马乐志 Regular expression matching-based multi-table data set reading method for intelligent terminal

Also Published As

Publication number Publication date
CN101901539B (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN101901539B (en) Electric energy meter reading method for customizing meter reading contents based on configuration file
CN101566954B (en) Method and device for managing plug-in
CN102014118B (en) Method for reading multiple electric energy meters generally
CN100546254C (en) The method and apparatus that is used for the configuration of management cluster computer
CN104135069A (en) Method for configuring operating parameters of secondary equipment of intelligent substation
CN103748569A (en) System and methods for driverless operation of USB device
CN103425468B (en) Plug-in type software integrating method and device
CN104461649B (en) chip compatible method and device
CN104881343A (en) Testing method and testing system
CN201035568Y (en) USB equipment logical numbering and physical numbering mapping device
CN101163050A (en) Equipment near-end maintenance method, system and equipment
CN109284106A (en) Method for release management, electronic device and the readable storage medium storing program for executing of business rule
CN106569863B (en) Resource and code modularization-based android app resource updating and repairing method
CN109426510A (en) Software processing method, device, electronic equipment and computer readable storage medium
CN107147711A (en) Application service update method and device
CN102223380A (en) Client terminal automatic updating frame based on Webservice and application thereof
CN101521600B (en) Service control method in gateway equipment and gateway equipment
CN108446371A (en) Data return guiding method, device, computer equipment and storage medium
CN102521390A (en) Database management and monitoring system based on pin function
CN101110700B (en) Explorer in resource management platform
CN109858257B (en) Access control method and device
CN105204981A (en) Application performance test method and device
CN103176805A (en) Executable program installation method and executable program installation system
CN103259850A (en) Method and device for configuring intelligent terminal
CN101179444B (en) Configuration take-effective method, configuration system and configuration gateway

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

Granted publication date: 20130320

Termination date: 20160701

CF01 Termination of patent right due to non-payment of annual fee