CN101452631B - Test method and system for management terminal of power use - Google Patents

Test method and system for management terminal of power use Download PDF

Info

Publication number
CN101452631B
CN101452631B CN2007101249420A CN200710124942A CN101452631B CN 101452631 B CN101452631 B CN 101452631B CN 2007101249420 A CN2007101249420 A CN 2007101249420A CN 200710124942 A CN200710124942 A CN 200710124942A CN 101452631 B CN101452631 B CN 101452631B
Authority
CN
China
Prior art keywords
checking meter
request
message
mistake
checking
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
CN2007101249420A
Other languages
Chinese (zh)
Other versions
CN101452631A (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 CN2007101249420A priority Critical patent/CN101452631B/en
Publication of CN101452631A publication Critical patent/CN101452631A/en
Application granted granted Critical
Publication of CN101452631B publication Critical patent/CN101452631B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is suitable for the field of electronic equipment, and provides a method and a system for testing an electricity management terminal. The test method comprises: receiving a meter reading message; verifying whether a meter reading request of the meter reading message is correct; retrieving data corresponding to the meter reading request if the meter reading request is correct; organizing the data into a response data frame; and transmitting the response data frame to the electricity management terminal in the mode of time delay. In the embodiment of the invention, the method and the system simulate abnormalities of an electric energy meter by verifying the correctness of the message request and transmitting the response data frame in the mode of time delay, so that the method and the system can detect whether the electricity management terminal can accurately read meter at the moment.

Description

A kind of method of testing of electricity management terminal and system
Technical field
The invention belongs to electronic device field, relate in particular to a kind of method of testing and system of electricity management terminal.
Background technology
Current, electricity management terminal is widely used in power supply enterprise.By using this kind equipment can improve management of power use level, business automation level and the work efficiency of power supply enterprise.But, also can cause serious economy loss and bad social influence to power supply enterprise if the defective electricity management terminal of usability because its accuracy of checking meter is not enough, not only can not produce above-mentioned effect.Therefore, the performance of checking meter that often needs the detection office terminal.
At present, the usual method of the performance of checking meter of detection office terminal is: establishment detection system software is simulated electric energy meter, utilize this detection system to come the accuracy of checking meter of detection office terminal, but existing detection system is only simulated the electric energy meter that is in normal condition, and in fact, electric energy meter in use various abnormal conditions may occur.Like this, when utilizing existing detection system detection office terminal, can't detect when abnormal conditions appear in electric energy meter, whether electricity management terminal can check meter exactly.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method of testing of electricity management terminal, be intended to solve when utilizing existing detection system detection office terminal, can't detect when abnormal conditions appear in electric energy meter the problem whether electricity management terminal can check meter exactly.
The embodiment of the invention is achieved in that a kind of method of testing of electricity management terminal, and described method of testing comprises:
The reception message of checking meter;
Whether the request of checking meter of verifying the described message of checking meter is correct;
If the described request of checking meter is correct, the corresponding data of the retrieval request of checking meter;
Described data set is made into the response data frame;
Need to judge whether the simulation mistake, if desired, then simulate misdata, and misdata is added the response data frame; Described mistake comprises: frame head mistake, control code mistake, frame length mistake, identifier mistake, and/or check code mistake;
Time-delay sends it back answers Frame to give electricity management terminal.
Another purpose of the embodiment of the invention is to provide a kind of test macro of electricity management terminal, and described system comprises:
The message receiver module is used for receiving the message of checking meter;
The authentication of message module is used to verify whether the request of checking meter of the described message of checking meter is correct;
Retrieval module, if it is correct to be used for the request of checking meter of the described message of checking meter, the corresponding data of the retrieval request of checking meter; And
Molded tissue block is used for described data set is made into the response data frame;
Simulation false judgment module is used to judge whether needs simulation mistake;
The misdata analog module needs simulation if be used for judging, and then simulates misdata, and described misdata is added described response data frame; Described mistake comprises: frame head mistake, control code mistake, frame length mistake, identifier mistake, and/or check code mistake;
Time-delay sends, and being used for delays time to send it back answers Frame to give electricity management terminal.
In embodiments of the present invention, by the correctness of checking message request, and delay time to send it back and answer Frame to simulate the abnormal conditions of electric energy meter, thereby can detect this moment, the problem whether electricity management terminal can check meter exactly.
Description of drawings
Fig. 1 is the method for testing implementing procedure figure of the electricity management terminal that provides of the embodiment of the invention.
Fig. 2 is the structural representation of the test macro of the electricity management terminal that provides of the embodiment of the invention.
Fig. 3 is the synoptic diagram of a plurality of electricity management terminals of test system and test of the electricity management terminal that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, by the correctness of checking message request, and delay time to send it back and answer Frame to simulate the abnormal conditions of electric energy meter, thereby can detect this moment, the problem whether electricity management terminal can check meter exactly.
Fig. 1 shows the implementing procedure of the method for testing of the electricity management terminal that embodiments of the invention provide, and details are as follows:
In step S101, receive the message of checking meter.When need checking meter, can send electricity management terminal the message of checking meter.
In step S102, message is carried out data check.Before communication, the communication protocol of electricity management terminal is adjusted.According to this communication protocol message is carried out data check.For different communication protocol, its data check mode difference.For example, the checking algorithm of DL/T645-1997 reduction is BCC, and the checking algorithm of ABBAlpha reduction is CRC.Guaranteed the accuracy rate of the physical transfer of data transmission by data check.As embodiments of the invention, can use the mode of different communication protocol to carry out data detection by repeatedly test at every turn, whether can use various communications protocols to communicate thereby can test electricity management terminal.
In step S103, judge whether verification is correct.When verification is incorrect, execution in step S104.
In step S104, judge whether to respond erroneous frame.If response erroneous frame, then execution in step S111.Otherwise receive next message of checking meter.
In step S105, analytic message.Because the communications protocol difference that adopts, the organizational form of its message all is different, according to the communications protocol that is adopted, correspondingly message is resolved, and request obtains checking meter.
In step S106, judge whether this request of checking meter is correct.If the request of checking meter is wrong, then execution in step S104.
In step S107, retrieve the corresponding data of this request of checking meter.For example, when the request of checking meter is when obtaining magnitude of voltage, then in database, extract magnitude of voltage.
In step S108, organize the response data frame.The message form of communications protocol regulation by appointment, the packing data that retrieval is obtained becomes message.
In step S109, need to judge whether the simulation mistake.If do not need then execution in step S111.Wherein, mistake comprises: frame head mistake, control code mistake, frame length mistake, identifier mistake, check code mistake etc.
In step S110, simulate misdata, and misdata is added the response data frame.
In step S111, time-delay sends it back answers Frame to give electricity management terminal.For the time-delay of the testing electricity management terminal performance of checking meter, begin to calculate from being organized into the response data frame, wait for a regular time, and then the response data frame is sent to the data management terminal.As embodiments of the invention, can utilize the multiple speed of RS232 to communicate, with the communication capacity of check electricity management terminal.
Fig. 2 shows the structure of the test macro of the electricity management terminal that embodiments of the invention provide.
Message receiver module 21 receives the message of checking meter, and whether the request of checking meter of authentication of message module 24 these messages of checking meter of checking is correct.Wherein, authentication of message module 24 comprises parsing module 241 and checks meter request judge module 242.Parsing module 241 parses the request of checking meter from this checks meter message, the request judge module 242 of checking meter judges then whether this request of checking meter is correct.When the request of checking meter of the message of checking meter when correct, the corresponding data of the retrieval module 25 retrieval requests of checking meter.And by molded tissue block 26 this data set is made into the response data frame, and sends it back by the time-delay of time-delay sending module 29 and to answer Frame to give electricity management terminal.And, in this system, can increase by a simulation false judgment module 27, and misdata analog module 28.Simulation false judgment module 27 need to judge whether the simulation mistake.When not needing to simulate mistake, directly send data by time-delay sending module 29.Otherwise, misdata analog module 28 simulation misdatas, and with this misdata adding response data frame.
In order to guarantee the correctness of the message after the physical transfer, as embodiments of the invention, can increase by a data verification module 22 in this system, communications protocol is according to a preconcerted arrangement carried out data verification to this message of checking meter.
In order to respond error message, as embodiments of the invention, can increase by an erroneous frame judge module 23 in this system, judge whether to respond erroneous frame.
Fig. 3 shows a plurality of electricity management terminals of test system and test of the electricity management terminal that the embodiment of the invention provides.
This system can link to each other with a plurality of electricity management terminals by multipath server, and, at each electricity management terminal, use the method for testing shown in Fig. 1 to finish test.Simultaneously, at different electricity management terminals, use different communication protocol to communicate, with the communication capacity of definite each electricity management terminal, thereby realization is to the test of a plurality of electricity management terminals.
In embodiments of the present invention, by the correctness of checking message request, and delay time to send it back and answer Frame to simulate the abnormal conditions of electric energy meter, thereby can detect this moment, the problem whether electricity management terminal can check meter exactly.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the method for testing of an electricity management terminal is characterized in that, described method of testing comprises:
The reception message of checking meter;
Whether the request of checking meter of verifying the described message of checking meter is correct;
If the described request of checking meter is correct, the corresponding data of the retrieval request of checking meter;
Described data set is made into the response data frame;
Need to judge whether the simulation mistake, if desired, then simulate misdata, and misdata is added the response data frame; Described mistake comprises: frame head mistake, control code mistake, frame length mistake, identifier mistake, and/or check code mistake;
Time-delay sends it back answers Frame to give electricity management terminal.
2. the method for claim 1 is characterized in that, whether correct step also comprises before in the request of checking meter of the described message of checking meter of described checking:
Communications protocol is according to a preconcerted arrangement carried out data verification to the described message of checking meter.
3. the method for claim 1 is characterized in that, whether correct step specifically comprises in the request of checking meter of the described message of checking meter of described checking:
From the described message of checking meter, parse the request of checking meter;
Judge whether the described request of checking meter is correct.
4. the method for claim 1 is characterized in that, whether correct step also comprises afterwards in the request of checking meter of the described message of checking meter of described checking:
If the request error of checking meter of the described message of checking meter judges whether to respond erroneous frame.
5. the test macro of an electricity management terminal is characterized in that, described system comprises:
The message receiver module is used for receiving the message of checking meter;
The authentication of message module is used to verify whether the request of checking meter of the described message of checking meter is correct;
Retrieval module, if it is correct to be used for the request of checking meter of the described message of checking meter, the corresponding data of the retrieval request of checking meter; And
Molded tissue block is used for described data set is made into the response data frame;
Simulation false judgment module is used to judge whether needs simulation mistake;
The misdata analog module needs simulation if be used for judging, and then simulates misdata, and described misdata is added described response data frame; Described mistake comprises: frame head mistake, control code mistake, frame length mistake, identifier mistake, and/or check code mistake;
Time-delay sends, and being used for delays time to send it back answers Frame to give electricity management terminal.
6. system as claimed in claim 5 is characterized in that, described system also comprises:
The data verification module is used for communications protocol according to a preconcerted arrangement, and the described message of checking meter is carried out data verification.
7. system as claimed in claim 5 is characterized in that, described authentication of message module comprises:
Parsing module is used for parsing the request of checking meter from the described message of checking meter; And
The request judge module of checking meter is used to judge whether the described request of checking meter is correct.
8. system as claimed in claim 5 is characterized in that, described system also comprises:
The erroneous frame judge module if be used for the request error of checking meter of the described message of checking meter, judges whether to respond erroneous frame.
CN2007101249420A 2007-12-06 2007-12-06 Test method and system for management terminal of power use Expired - Fee Related CN101452631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101249420A CN101452631B (en) 2007-12-06 2007-12-06 Test method and system for management terminal of power use

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101249420A CN101452631B (en) 2007-12-06 2007-12-06 Test method and system for management terminal of power use

Publications (2)

Publication Number Publication Date
CN101452631A CN101452631A (en) 2009-06-10
CN101452631B true CN101452631B (en) 2010-10-20

Family

ID=40734843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101249420A Expired - Fee Related CN101452631B (en) 2007-12-06 2007-12-06 Test method and system for management terminal of power use

Country Status (1)

Country Link
CN (1) CN101452631B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719306B (en) * 2009-10-30 2012-01-04 深圳市科陆电子科技股份有限公司 Parallel electric quantity data acquisition method
CN101943734A (en) * 2010-06-17 2011-01-12 深圳市科陆电子科技股份有限公司 Method for automatically detecting terminals in batch based on IEC62056 protocol
CN106710180A (en) * 2015-07-23 2017-05-24 深圳市拓安信计控仪表有限公司 Meter reading method of water meter, water meter and system
CN107315158B (en) * 2017-06-22 2019-12-31 南方电网科学研究院有限责任公司 Method and system for testing data back-reading function of charge control electric energy meter
CN109035746B (en) * 2018-07-30 2021-12-17 深圳市科陆电子科技股份有限公司 Function judgment method and system for centralized meter reading terminal
CN110111898A (en) * 2019-04-26 2019-08-09 北京理工大学 Multifunction manual pancreas control module and method based on mobile terminal
CN110208586B (en) * 2019-05-15 2021-08-31 广东电网有限责任公司广州供电局 Power consumption abnormity analog circuit and power consumption abnormity analog equipment
CN112289017A (en) * 2020-10-28 2021-01-29 国网安徽省电力有限公司合肥供电公司 Remote meter reading method and system for intelligent electric energy meter

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5448229A (en) * 1992-12-28 1995-09-05 General Electric Company Method and apparatus for communicating with a meter register
CN1779730A (en) * 2004-11-17 2006-05-31 上海科泰信息技术有限公司 Main station system for large power users with charge recording via short messages

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5448229A (en) * 1992-12-28 1995-09-05 General Electric Company Method and apparatus for communicating with a meter register
CN1779730A (en) * 2004-11-17 2006-05-31 上海科泰信息技术有限公司 Main station system for large power users with charge recording via short messages

Non-Patent Citations (11)

* Cited by examiner, † Cited by third party
Title
JP特开平9-163007A 1997.06.20
刘先虎.关于RS485在远程抄表中的应用及常见问题的探讨.中国信息科技 2007-20.2007,(2007-20),106-107.
刘先虎.关于RS485在远程抄表中的应用及常见问题的探讨.中国信息科技 2007-20.2007,(2007-20),106-107. *
周孔均.电能表与采集终端通信测试系统的设计.电测与仪表43 492.2006,43(492),24-28.
周孔均.电能表与采集终端通信测试系统的设计.电测与仪表43 492.2006,43(492),24-28. *
车彦,石江宏,王洪,王君.基于GSM的远程自动抄表系统设计与实现.现代电子技术 234.2006,(234),79-81,90.
车彦,石江宏,王洪,王君.基于GSM的远程自动抄表系统设计与实现.现代电子技术 234.2006,(234),79-81,90. *
陈进.新一代多功能电能表自动测试及抄表管理系统.福建农机 1999增刊.1999,(1999增刊),85-86.
陈进.新一代多功能电能表自动测试及抄表管理系统.福建农机 1999增刊.1999,(1999增刊),85-86. *
陶国正,朱斌.ZB-2000A抄表器的通讯技术.江苏电器 2001-02.2001,(2001-02),33-36.
陶国正,朱斌.ZB-2000A抄表器的通讯技术.江苏电器 2001-02.2001,(2001-02),33-36. *

Also Published As

Publication number Publication date
CN101452631A (en) 2009-06-10

Similar Documents

Publication Publication Date Title
CN101452631B (en) Test method and system for management terminal of power use
CN106056896B (en) Intelligent electric power utilization system and its test method based on low voltage power line carrier
CN103354907A (en) Communications system
CN102820959A (en) Method for performing large data volume communication between Modbus master station and Modbus slave station
CN101656642B (en) Method, device and system for testing authentication performance of network access equipment
CN106953902A (en) The method and apparatus of electric energy meter firmware upgrade
CN101022473B (en) Method for automatic, identifying plate card configration and generating local data in exchanger
CN102313880A (en) Method and system for testing local communication equipment of power utilization information acquisition system, and master station
CN112034410A (en) Detection tool module of multi-core modular electric energy meter
CN105119770B (en) It is a kind of to prevent the monitoring method and system of cell phone software brush amount
CN102413008B (en) Based on method of testing and the system of electric power 104 stipulations
CN112100081A (en) Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN103746868B (en) A kind of method, device and test equipment for sending and receiving test packet
CN105099810A (en) Communication test method and system for sampling value interface
CN112614331A (en) Method for reading electric energy meter event and electric energy meter event reading system
CN111935767A (en) Network simulation system
CN101765069A (en) Value added service subscribing method, device and system
CN103311584A (en) Battery unit, terminal device and battery verifying method
CN103532937B (en) Application identification verifying method and device
CN103647760B (en) The MMS communication platforms and its access method of a kind of intelligent transformer substation digital protection device
CN205427007U (en) Steal electric report system
CN106841842A (en) The method of testing and device in the empty loop of secondary device
CN103378992A (en) Bus data test method for home bus system and apparatus
CN101408453A (en) Method for testing wireless gas meter function
KR20200053850A (en) Method for updating BMS software of an energy storage system having different internal and external communication methods

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

Termination date: 20161206