CN103546592A - Automatic energy meter address searching method - Google Patents
Automatic energy meter address searching method Download PDFInfo
- Publication number
- CN103546592A CN103546592A CN201310499324.XA CN201310499324A CN103546592A CN 103546592 A CN103546592 A CN 103546592A CN 201310499324 A CN201310499324 A CN 201310499324A CN 103546592 A CN103546592 A CN 103546592A
- Authority
- CN
- China
- Prior art keywords
- address
- energy meter
- electric energy
- current search
- meter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention provides an automatic energy meter address searching method. The automatic energy meter address searching method comprises the steps that firstly, full-A address meter reading frames are sent for conducting broadcast meter reading, then, whether an energy meter exists or not and whether a plurality of energy meters exist or not are judged according to returned data frames, furthermore, energy meter abbreviated address searching is used for conducting multiple times of meter searching, therefore, addresses of the real energy meters which are searched out in the meter searching process are stored and then the addresses of all the energy meters are obtained. By means of the automatic energy meter address searching method, automatic energy meter address searching which is complete in meter searching and high in efficiency is realized, great convenience is brought to debugging and maintenance of electricity consumption information networks, and the meter searching efficiency is greatly improved.
Description
Technical field
The present invention relates to electrical network electric energy meter application, refer in particular to the method for a kind of electric energy meter address automatic search.
Background technology
Obtain electric energy meter address, traditional mode is by record manually.That is to say no matter install, change or removed electric energy meter, all need by safeguarding manually electric energy meter list.And manually obtain electric energy meter address, bother very much undoubtedly.
Summary of the invention
The object of the invention is to overcome above-mentioned defect, the method for a kind of electric energy meter address automatic search is provided.
The object of the present invention is achieved like this: the method for a kind of electric energy meter address automatic search, it is characterized in that: it comprises step,
A) amr frame that sends full A address is broadcasted and is checked meter;
B) whether find electric energy meter.Wait acknowledge Frame in setting time-out time, if overtime nonreply finishes search routine, replys and continues step if receive;
C) whether find polylith electric energy meter.Judging that whether reply data frame is effective, is to find an electric energy meter, and preservation finishes search routine behind electric energy meter address, otherwise has polylith electric energy meter, continues step;
D) lowest order that initializing set current search address bit is address;
E) judging whether current search address bit does not exceed the highest order of address, otherwise finish search routine, is to continue step;
F) initializing set current search address value is minimum value;
G) judge whether current search address value is less than the upper limit, is to continue step;
H) search electric energy meter., the current search address bit of address is made as to current search address value, lower than current search address bit, keep arranging in preceding step constant, higher than the address value of the remaining address position of current search address bit, be made as A, send the amr frame of this address;
I) whether find electric energy meter, wait acknowledge Frame in setting time-out time, forwards step K to if overtime, if receive, replys and continues step;
J) whether find polylith electric energy meter.Judging that whether reply data frame is effective, otherwise on current search address bit, move one, then return to step e, is to find an electric energy meter, preserves electric energy meter address and then forwards step K to;
K) after being added to 1, current search address value returns to step G.
As an embodiment, described address comprises 6 altogether, and its lowest order is 1; Corresponding, described step D, initializing set current search address bit is 1; Described step e is for to judge whether current search address bit is less than 7, otherwise end search routine is to continue step; Described step J, for whether finding polylith electric energy meter, judge that whether reply data frame is effective, otherwise current search address bit adds 1, then returns to step e, is to find an electric energy meter, preserves electric energy meter address and then forwards step K to;
As an embodiment, in described step F, the minimum value of current search address value is 00; In described step G current search address value on be limited to 100.
Compared with original needs, manually record the method for electric energy meter, beneficial effect of the present invention is to have realized and looked for table complete by electric energy meter abbreviated addressing method, the electric energy meter address automatic search that efficiency is high, brings very big facility to debugging and the maintenance of power information network, and has greatly improved and looked for table efficiency.
Accompanying drawing explanation
Below in conjunction with accompanying drawing in detail concrete structure of the present invention is described in detail
Fig. 1 is method flow diagram of the present invention.
Embodiment
By describing technology contents of the present invention, structural feature in detail, being realized object and effect, below in conjunction with execution mode and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1, present embodiment relates to the method for a kind of electric energy meter address automatic search, and it comprises step:
A) amr frame that sends full A address is broadcasted and is checked meter;
B) whether find electric energy meter.Wait acknowledge Frame in setting time-out time, if overtime nonreply finishes search routine, replys and continues step if receive.
Above-mentioned 2 steps also can be referred to as the first run and look for table.After amr frame by the full A of broadcast transmission address, if without ammeter, i.e. nonreply in time-out time, directly finishes to look for surface low journey; If there is ammeter, ammeter can mate this address, sends the Frame that rewinds actual address.When looking for first table to receive reply data, the known ammeter that exists, carries out the judgement of subsequent step:
C) whether finding polylith electric energy meter, judge that whether reply data frame is effective, is to find an electric energy meter, and preservation finishes search routine behind electric energy meter address, otherwise has polylith electric energy meter, continues step.
In this step, if judgement reply data frame is valid data frame, represent only to have a true ammeter, look for end of list (EOL).If Frame is non-effective Frame, indicate the true ammeter of polylith, need to carry out the follow-up table step of looking for.
D) lowest order that initializing set current search address bit is address;
As an embodiment, address is 66 bytes, and address bit represents by variable i, and wherein lowest order is set as 1; In this step, initializing set current search address bit is: i=1;
E) judging whether current search address bit does not exceed the highest order of address, otherwise finish search routine, is to continue step;
Does corresponding above-described embodiment, directly judge in this step whether current search address bit is less than 7, i.e. i<7?, otherwise finish search routine, be to continue step;
F) initializing set current search address value is minimum value;
As an embodiment, when every bit address value is a byte, its address value scope is 00-99, and establishing change amount is herein jj (i), and the search address value that this step is about to current search address bit is set as minimum value: jj (i)=00;
G) judge whether current search address value is less than the upper limit, is to continue step;
Corresponding above-described embodiment, does is address value scope 00-99, judges whether the search address value of current search address bit is less than the upper limit herein, that is: jj (i) <100?, be to continue step;
H) search electric energy meter.The current search address bit of address is made as to current search address value, lower than current search address bit, keeps arranging in preceding step constant, higher than the address value of the remaining address position of current search address bit, be made as A, send the amr frame of this address;
I) whether find electric energy meter.Wait acknowledge Frame in setting time-out time, forwards step K to if overtime, if receive, replys and continues step;
J) whether find polylith electric energy meter.Judging that whether reply data frame is effective, otherwise on current search address bit, move one, then return to step e, is to find an electric energy meter, preserves electric energy meter address and then forwards step K to;
Corresponding above-described embodiment, when judgement reply data frame is invalid, adds 1 to current search address bit in this step, and i++, moves one in realization, then returns to step e;
K) after being added to 1, current search address value returns to step G;
Corresponding above-described embodiment is that this step is carried out jj (i) ++, then return to execution step G.
The every execution of above-mentioned steps D-J is once to take turns to look for table, that is:
While looking for table in the first round, can be first by the address value of the low level of address from 00 to 99,100 orders of checking meter of common transmission that the address value of all the other is full A (i.e. 100 amr frames), then await a response, and now have 3 kinds of situations:
1, return without result, represent the not ammeter of this bit address;
2, the Frame returning is effective, indicates 1 ammeter of this bit address;
3, the Frame returning is invalid, represents that how soon this address bit has ammeter.
For situation 3, needing to open next round checks meter, when next round is checked meter, transmission to the address value from 00 to 99 of the low 2 bit address positions of address (having moved an address bit), then again await a response, have equally situation in above-mentioned 3, the like as long as there is the 3rd kind of situation, continue next round until whole bytes of address (address that has 66 bytes in corresponding embodiment) all carry out one takes turns after checking meter and finish.If in process, certain is taken turns to check meter and does not occur the 3rd kind of situation, after this round finishes, finishes to look for surface low journey.
Thus, by the inventive method, only need in looking for table process, the true electric meter address finding be stored, just obtain all electric energy meters address.In contrast to and look for manually table mode, electric energy meter address automatic search method can greatly improve looks for table efficiency, brings very big facility to debugging and the maintenance of power information network.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (3)
1. a method for electric energy meter address automatic search, is characterized in that: it comprises step,
A) amr frame that sends full A address is broadcasted and is checked meter;
B) whether find electric energy meter, wait acknowledge Frame in setting time-out time, if overtime nonreply finishes search routine, replys and continues step if receive;
C) whether finding polylith electric energy meter, judge that whether reply data frame is effective, is to find an electric energy meter, and preservation finishes search routine behind electric energy meter address, otherwise has polylith electric energy meter, continues step;
D) lowest order that initializing set current search address bit is address;
E) judging whether current search address bit does not exceed the highest order of address, otherwise finish search routine, is to continue step;
F) initializing set current search address value is minimum value;
G) judge whether current search address value is less than the upper limit, is to continue step;
H) search electric energy meter, the current search address bit of address is made as to current search address value, lower than current search address bit, keep arranging in preceding step constant, higher than the address value of the remaining address position of current search address bit, be made as A, send the amr frame of this address;
I) whether find electric energy meter, wait acknowledge Frame in setting time-out time, forwards step K to if overtime, if receive, replys and continues step;
J) whether finding polylith electric energy meter, judge that whether reply data frame is effective, otherwise on current search address bit, move one, then return to step e, is to find an electric energy meter, preserves electric energy meter address and then forwards step K to;
K) after being added to 1, current search address value returns to step G.
2. the method for electric energy meter as claimed in claim 1 address automatic search, is characterized in that: described address comprises 6 altogether, and its lowest order is 1; Corresponding,
Described step D, initializing set current search address bit is 1;
Described step e is for to judge whether current search address bit is less than 7, otherwise end search routine is to continue step;
Described step J, for whether finding polylith electric energy meter, judges that whether reply data frame is effective, is that current search address bit adds 1, then returns to step e, otherwise finds an electric energy meter, preserves electric energy meter address and then forwards step K to.
3. the method for electric energy meter as claimed in claim 1 or 2 address automatic search, is characterized in that: in described step F, the minimum value of current search address value is 00; In described step G current search address value on be limited to 100.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310499324.XA CN103546592A (en) | 2013-10-22 | 2013-10-22 | Automatic energy meter address searching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310499324.XA CN103546592A (en) | 2013-10-22 | 2013-10-22 | Automatic energy meter address searching method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103546592A true CN103546592A (en) | 2014-01-29 |
Family
ID=49969630
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310499324.XA Pending CN103546592A (en) | 2013-10-22 | 2013-10-22 | Automatic energy meter address searching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103546592A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104217566A (en) * | 2014-09-16 | 2014-12-17 | 北京天公瑞丰科技有限公司 | Intelligent meter searching method and system for type II collector |
CN105181103A (en) * | 2015-08-21 | 2015-12-23 | 重庆大唐科技股份有限公司 | Automatic addressing method for digital weighing sensor |
CN109361428A (en) * | 2018-10-31 | 2019-02-19 | 北京四季豆信息技术有限公司 | A kind of method and device of collector search electric energy meter |
CN109887262A (en) * | 2019-03-29 | 2019-06-14 | 宁波三星医疗电气股份有限公司 | A kind of MBUS long-distance meter-reading system automatic installation method |
CN110248349A (en) * | 2019-06-24 | 2019-09-17 | 宁波三星医疗电气股份有限公司 | Search table method, apparatus, electronic equipment and system |
CN112422617A (en) * | 2020-09-22 | 2021-02-26 | 浙江正泰仪器仪表有限责任公司 | Method and system for automatically searching meter |
CN116303124A (en) * | 2023-03-29 | 2023-06-23 | 浙江正泰仪器仪表有限责任公司 | Data searching method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969429A (en) * | 2010-08-24 | 2011-02-09 | 绍兴电力局 | Automatic identification method of electric power meter on RS-485 bus |
CN102014172A (en) * | 2010-08-13 | 2011-04-13 | 深圳市科陆电子科技股份有限公司 | Method for automatically searching electric meter address below collector |
CN102299977A (en) * | 2011-08-08 | 2011-12-28 | 深圳市金正方科技有限公司 | Method for automatic register of electric energy meter by collector and collector |
-
2013
- 2013-10-22 CN CN201310499324.XA patent/CN103546592A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102014172A (en) * | 2010-08-13 | 2011-04-13 | 深圳市科陆电子科技股份有限公司 | Method for automatically searching electric meter address below collector |
CN101969429A (en) * | 2010-08-24 | 2011-02-09 | 绍兴电力局 | Automatic identification method of electric power meter on RS-485 bus |
CN102299977A (en) * | 2011-08-08 | 2011-12-28 | 深圳市金正方科技有限公司 | Method for automatic register of electric energy meter by collector and collector |
Non-Patent Citations (1)
Title |
---|
魏柳钦: "自动找表方案在低压居民集中抄表系统的应用", 《农村电工》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104217566A (en) * | 2014-09-16 | 2014-12-17 | 北京天公瑞丰科技有限公司 | Intelligent meter searching method and system for type II collector |
CN105181103A (en) * | 2015-08-21 | 2015-12-23 | 重庆大唐科技股份有限公司 | Automatic addressing method for digital weighing sensor |
CN109361428A (en) * | 2018-10-31 | 2019-02-19 | 北京四季豆信息技术有限公司 | A kind of method and device of collector search electric energy meter |
CN109887262A (en) * | 2019-03-29 | 2019-06-14 | 宁波三星医疗电气股份有限公司 | A kind of MBUS long-distance meter-reading system automatic installation method |
CN110248349A (en) * | 2019-06-24 | 2019-09-17 | 宁波三星医疗电气股份有限公司 | Search table method, apparatus, electronic equipment and system |
CN112422617A (en) * | 2020-09-22 | 2021-02-26 | 浙江正泰仪器仪表有限责任公司 | Method and system for automatically searching meter |
CN112422617B (en) * | 2020-09-22 | 2022-04-26 | 浙江正泰仪器仪表有限责任公司 | Method and system for automatically searching meter |
CN116303124A (en) * | 2023-03-29 | 2023-06-23 | 浙江正泰仪器仪表有限责任公司 | Data searching method and device, electronic equipment and storage medium |
CN116303124B (en) * | 2023-03-29 | 2024-01-30 | 浙江正泰仪器仪表有限责任公司 | Data searching method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103546592A (en) | Automatic energy meter address searching method | |
US9285242B2 (en) | Determining a connectivity model in smart grids | |
CN102608962B (en) | A kind of power information collecting device automatic maintenance method from bottom to top | |
US10171028B2 (en) | Method and apparatus for monitoring photovoltaic module | |
CN103218398B (en) | Intelligent substation SCL (substation configuration description language) file difference comparison method | |
CN102339300A (en) | Automatic meter searching method for intelligent power grid | |
CN104980552B (en) | Realize the method and system of Android mobile terminal automatic test | |
CN104217566A (en) | Intelligent meter searching method and system for type II collector | |
CN103077208B (en) | URL(uniform resource locator) matched processing method and device | |
CN111309868B (en) | Knowledge graph construction and retrieval method and device | |
CN105488992A (en) | Automatic meter searching method through low-voltage power line carrier wave | |
Poncelet et al. | Selecting representative days for investment planning models | |
CN104239997A (en) | Method for analyzing power failure range of power distribution network | |
CN106855850A (en) | Based on portable equipment intelligent substation secondary void terminal figure reality symbol detection method | |
KR20140029670A (en) | Monitoring system using the augmented reality based on smart tag in energy storage system and method for mornitoring using the same | |
CN112866830B (en) | Meter reading method and meter reading device | |
CN101908985A (en) | Message checking method and device | |
CN104699689A (en) | Data processing method and device | |
CN114398348A (en) | Smart grid abnormal data processing method, gateway, electronic device and storage medium | |
CN102663227A (en) | Reliability modeling and solving method for complex voting system | |
US20160299820A1 (en) | Processing method, device and system for data of distributed storage system | |
CN103514123B (en) | The recognition methods of a kind of USB equipment connection port and system | |
CN112559661B (en) | Method and device for retrieving address type and electronic equipment | |
KR102563310B1 (en) | Photovoltaic Power Generation System Having a Detection Device for Detecting Contact Failure | |
CN116303124B (en) | Data searching method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140129 |
|
RJ01 | Rejection of invention patent application after publication |