CN109361428A - A kind of method and device of collector search electric energy meter - Google Patents

A kind of method and device of collector search electric energy meter Download PDF

Info

Publication number
CN109361428A
CN109361428A CN201811284214.0A CN201811284214A CN109361428A CN 109361428 A CN109361428 A CN 109361428A CN 201811284214 A CN201811284214 A CN 201811284214A CN 109361428 A CN109361428 A CN 109361428A
Authority
CN
China
Prior art keywords
frame
address
wildcard
read address
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.)
Pending
Application number
CN201811284214.0A
Other languages
Chinese (zh)
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.)
Beijing Green Beans Information Technology Co Ltd
Original Assignee
Beijing Green Beans Information Technology 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 Beijing Green Beans Information Technology Co Ltd filed Critical Beijing Green Beans Information Technology Co Ltd
Priority to CN201811284214.0A priority Critical patent/CN109361428A/en
Publication of CN109361428A publication Critical patent/CN109361428A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/546Combination of signalling, telemetering, protection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/544Setting up communications; Call and signalling arrangements

Abstract

Disclose a kind of method and device of collector search electric energy meter, for solving in the prior art, the problem of when collector is after issuing the read address frame of a carrying asterisk wildcard, end is searched for after receiving the response frame that one can correctly parse, and other electric energy meters leakages is caused to search.Include: that the lowest order of the asterisk wildcard of the wildcard address carried in the first read address frame is replaced with into binary-coded decimal, is determined as the second read address frame;Send the second read address frame;Receive the first response frame;The mailing address of the first electric energy meter is correctly parsed in first response frame.

Description

A kind of method and device of collector search electric energy meter
Technical field
The present invention relates to power line carrier communication field more particularly to the methods and dress of a kind of collector search electric energy meter It sets.
Background technique
Broadband power line communication (Broadband Power Line Communication, BPLC) system can be applied to In smart grid, the electric energy for the electric energy meter connecting in smart grid with the collector is acquired by collector in smart grid Information, specifically, each collector can acquire the energy information of at least 32 pieces electric energy meters, collector passes through with each electric energy meter RS485 bus connection, as shown in Figure 1, needing to obtain the mailing address of electric energy meter before the energy information of acquisition electric energy meter.
Conventionally, as electric energy meter address field supports abbreviated addressing, in order to be quickly obtained electric energy meter communicatedly Location, therefore the wildcard address carried in the read address frame of collector transmission may include asterisk wildcard, that is, include the symbol of 16 systems, The symbol of 16 system is expressed as AAH, is also denoted as 0xAA, for example, it is assumed that carrying in the read address frame that collector is sent Wildcard address be 6 bytes, each byte can indicate with the symbol of 16 systems, then the wildcard address carried in read address frame It can be expressed as 0xAAAAAAAAAAAA, after collector sends above-mentioned read address frame, receive the sound that can correctly parse Frame is answered, then is stored in the mailing address of the electric energy meter parsed in the response frame, and terminates to search for electric energy meter, it is believed that above-mentioned reading There was only one piece of electric energy meter under the wildcard address carried in address frame, but in actual test, even if muti-piece electric energy meter is rung simultaneously It answers, it is also possible to only receive the response frame that can correctly parse, will cause leakage and search other electric energy meters.
In conclusion receiving the response frame that can correctly parse when collector is after issuing a read address frame After terminate to search for, cause the leakage of other electric energy meters to search, be current problem to be solved.
Summary of the invention
In view of this, being solved existing the embodiment of the invention provides a kind of method and device of collector search electric energy meter Have in technology, when collector is after issuing a read address frame, terminates to search after receiving the response frame that one can correctly parse Rope causes other electric energy meters to leak the problem of searching.
According to a first aspect of the embodiments of the present invention, a kind of method of collector search electric energy meter is provided, comprising: by the The lowest order of the asterisk wildcard of the wildcard address carried in one read address frame replaces with binary-coded decimal, is determined as the second read address frame;It sends The second read address frame;Receive the first response frame;The communication of the first electric energy meter is correctly parsed in first response frame Address.
In one embodiment, after correctly parsing the mailing address of the first electric energy meter in first response frame, This method further include: save the wildcard address carried in the second read address frame;In response to judging the second read address frame There are asterisk wildcards for the wildcard address of middle carrying, and the second read address frame is determined as to the first new read address frame.
In one embodiment, after correctly parsing the mailing address of the first electric energy meter in first response frame, This method further include: save the mailing address of first electric energy meter.
In one embodiment, after correctly parsing the mailing address of the first electric energy meter in first response frame, This method further include: the wildcard address carried in the second read address frame is saved in the wildcard for being successfully resolved to electric energy meter Location list, wherein carried in the second read address frame for including in the wildcard address list for being successfully resolved to electric energy meter Wildcard address number be more than or equal to 0, and be less than or equal to binary-coded decimal number.
In one embodiment, this method further include: in response to the wildcard address list for being successfully resolved to electric energy meter Described in the number of wildcard address that carries in the second read address frame be not further added by, in the wildcard for being successfully resolved to electric energy meter The wildcard address carried in the second read address frame is selected in address list;In response to judging the second read address frame There are asterisk wildcards for the wildcard address of middle carrying, and the second read address frame is determined as to the first new read address frame.
In one embodiment, the lowest order replacement of the asterisk wildcard by the wildcard address carried in the first read address frame For binary-coded decimal, it is determined as before the second read address frame, this method further include: send the first read address frame, wherein described first reads The all asterisk wildcards in wildcard address carried in address frame;Receive the second response frame;It is correctly parsed in second response frame The mailing address of second electric energy meter out;The wildcard address carried in the first read address frame is saved, by first read address Frame is determined as the first new read address frame.
According to a second aspect of the embodiments of the present invention, a kind of device of collector search electric energy meter is provided, comprising: determine Unit is determined as second for the lowest order of the asterisk wildcard of the wildcard address carried in the first read address frame to be replaced with binary-coded decimal Read address frame;Transmission unit, for sending the second read address frame;Receiving unit, for receiving the first response frame;Parsing is single Member, for correctly parsing the mailing address of the first electric energy meter in first response frame.
In one embodiment, described device further include: storage unit is carried for saving in the second read address frame Wildcard address;Reset cell, for the wildcard address in response to judging to carry in the second read address frame there are asterisk wildcard, The second read address frame is determined as to the first new read address frame.
In one embodiment, the storage unit is also used to: saving the mailing address of first electric energy meter.
In one embodiment, the storage unit is also used to: the wildcard address that will be carried in the second read address frame It is saved in the wildcard address list for being successfully resolved to electric energy meter, wherein the wildcard address list for being successfully resolved to electric energy meter In include the second read address frame in the number of wildcard address that carries be more than or equal to 0, and be less than or equal to of binary-coded decimal Number.
In one embodiment, selecting unit, in response to the wildcard address list for being successfully resolved to electric energy meter Described in the number of wildcard address that carries in the second read address frame be not further added by, in the wildcard for being successfully resolved to electric energy meter The wildcard address carried in the second read address frame is selected in address list;The reset cell is also used to, in response to Judge that there are asterisk wildcards for the wildcard address carried in the second read address frame, are determined as new for the second read address frame One read address frame.
In one embodiment, the lowest order replacement of the asterisk wildcard by the wildcard address carried in the first read address frame For binary-coded decimal, it is determined as before the second read address frame, the transmission unit is also used to: sends the first read address frame, wherein described The all asterisk wildcards in wildcard address carried in first read address frame;The receiving unit is also used to, and receives the second response frame;Institute It states resolution unit to be also used to, the mailing address of the second electric energy meter is correctly parsed in second response frame;The resetting is single Member is also used to, and saves the wildcard address carried in the first read address frame, and the first read address frame is determined as new the One read address frame.
In terms of third according to an embodiment of the present invention, a kind of electronic equipment, including memory and processor, institute are provided State memory for store one or more computer program instructions, wherein the one or more computer program instructions quilt The processor is executed to realize the method as described in first aspect or any possibility of first aspect.
4th aspect according to an embodiment of the present invention, provides a kind of computer readable storage medium, thereon storage meter Calculation machine program instruction, the computer program instructions are realized when being executed by processor as first aspect or first aspect are any Method described in possible.
It, will when carrying asterisk wildcard in the wildcard address for determining to carry in the first read address frame in the embodiment of the present invention The lowest order of the asterisk wildcard of the wildcard address carried in first read address frame replaces with binary-coded decimal, is determined as the second read address frame;It is logical It crosses and sends the second read address frame and continue searching electric energy meter, receive the first response frame;It is correctly solved in first response frame The mailing address of the first electric energy meter is precipitated, solves in the prior art when collector is issuing a read address containing asterisk wildcard The problem of after frame, terminating search after receiving the response frame that one can correctly parse, other electric energy meter leakages is caused to search.
Detailed description of the invention
By referring to the drawings to the description of the embodiment of the present invention, the above and other purposes of the present invention, feature and Advantage will be apparent from, in the accompanying drawings:
Fig. 1 is the attachment structure schematic diagram of a kind of collector and electric energy meter provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of collector search electric energy meter provided in an embodiment of the present invention;
Fig. 3 is the method flow diagram of another collector search electric energy meter provided in an embodiment of the present invention;
Fig. 4 is the method flow diagram of another collector search electric energy meter provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of the device of collector search electric energy meter provided in an embodiment of the present invention;
Fig. 6 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Below based on embodiment, present invention is described, but the present invention is not restricted to these embodiments.
The above description is only a preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art For, the invention can have various changes and changes.All any modifications made within the spirit and principles of the present invention are equal Replacement, improvement etc., should all be included in the protection scope of the present invention.
It is detailed to describe some specific detail sections below in datail description of the invention.To art technology The present invention can also be understood completely in the description of part without these details for personnel.In order to avoid obscuring essence of the invention, There is no narrations in detail for well known method, process, process, element and circuit.
In addition, it should be understood by one skilled in the art that provided herein attached drawing be provided to explanation purpose, and What attached drawing was not necessarily drawn to scale.
Unless the context clearly requires otherwise, "include", "comprise" otherwise throughout the specification and claims etc. are similar Word should be construed as the meaning for including rather than exclusive or exhaustive meaning;That is, be " including but not limited to " contains Justice.
In the description of the present invention, it is to be understood that, term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indication or suggestion relative importance.In addition, in the description of the embodiment of the present invention, unless otherwise indicated, " multiple " It is meant that two or more.
Fig. 2 is a kind of method flow diagram of collector search electric energy meter of the embodiment of the present invention, as shown in Fig. 2, collector Search electric energy meter method include:
Step S200, by the lowest order of the asterisk wildcard of the wildcard address carried in the first read address frame replace with two-ten into (Binary-Coded Decimal, BCD) code is made, the second read address frame is determined as.
Specifically, the wildcard address carried in the read address frame that hypothesis collector is sent is 6 bytes, each byte can It is indicated with the symbol of 16 systems, i.e., every can be expressed as 0xAA, when the wildcard address carried in then read address frame can be whole It is expressed as 0xAAAAAAAAAAAA for asterisk wildcard, can also partially be asterisk wildcard, for example, lowest order is binary-coded decimal, other positions are logical With symbol, at this point, the wildcard address carried in read address frame can be expressed as 0xAAAAAAAAAA00 with all asterisk wildcards, wherein The binary-coded decimal can be any a pair of of number in 00~99, wherein the 0xAAAAAAAAAAAA is to take in the first read address frame The wildcard address of band, 0xAAAAAAAAAA00 are the wildcard address carried in the second read address frame.
Step S201, the second read address frame is sent.
Step S202, the first response frame is received.
Specifically, first response frame is to send after electric energy meter receives read address frame.
Step S203, the mailing address of the first electric energy meter is correctly parsed in first response frame.
It illustrates, it is assumed that include asterisk wildcard in the wildcard address carried in the first read address frame, for example, wildcard address is 0xAAAAAAAAAAAA parses an electric energy meter communicatedly from response frame when using the wildcard address searching electric energy meter Location illustrates that the electric energy meter connected under the wildcard address may be suitable according to setting by wildcard address to be multiple, in order to search further for Sequence gradually replaces with binary-coded decimal, for example, 0xAAAAAAAAAA00 to 0xAAAAAAAAAA99, using replaced wildcard address after Continuous retrieval, cannot correctly parse an electric energy meter communicatedly from response frame when using the wildcard address searching electric energy meter Location illustrates not needing to be further continued for scanning for, search can be improved by this way without connection electric energy meter under the wildcard address Efficiency, and missing inspection will not occur.
It, will when carrying asterisk wildcard in the wildcard address for determining to carry in the first read address frame in the embodiment of the present invention The lowest order of the asterisk wildcard of the wildcard address carried in first read address frame replaces with binary-coded decimal, is determined as the second read address frame;It is logical It crosses and sends the second read address frame and continue searching electric energy meter, receive the first response frame;It is correctly solved in first response frame The mailing address of the first electric energy meter is precipitated, solves in the prior art when collector is issuing a read address containing asterisk wildcard The problem of after frame, terminating search after receiving the response frame that one can correctly parse, other electric energy meter leakages is caused to search.
In one possible implementation, after step S203, this method further include: save second read address The wildcard address carried in frame;In response to the wildcard address that judges to carry in the second read address frame, there are asterisk wildcards, by institute It states the second read address frame and is determined as the first new read address frame, then re-execute the steps S200~S203.
For example: assuming that receiving response frame after sending 0xAAAAAAAAAA00, correctly parsing the response frame, from sound It answers and parses an electric energy meter mailing address in frame, illustrate that the electric energy meter connected under the 0xAAAAAAAAAA00 of wildcard address may be Wildcard addresses that are multiple, therefore being carried in the second read address frame, with judging the wildcard carried in the second read address frame There are asterisk wildcards for location, and if it exists, continues asterisk wildcard lowest order in the 0xAAAAAAAAAA00 of wildcard address to be substituted for binary-coded decimal progress Search, and so on.
In one possible implementation, after step S203, this method further include: save first electric energy meter Mailing address.
In one possible implementation, after step S203, this method further include: by the second read address frame The wildcard address of middle carrying is saved in the wildcard address list for being successfully resolved to electric energy meter, wherein described to be successfully resolved to electric energy The number of the wildcard address carried in the second read address frame in the wildcard address list of table is more than or equal to 0, and be less than etc. In the number of binary-coded decimal.
Specifically, assume in the second read address frame sent the wildcard address that carries from 0xAAAAAAAAAA00 to 0xAAAAAAAAAA99, one shares 100, for each wildcard address it is possible that two kinds of situations, situation one are returned after sending The response frame returned can be parsed correctly, determine the mailing address of first electric energy meter, situation two, the response returned after sending Frame cannot be parsed correctly.Corresponding wildcard address is saved when correct parsing, described is successfully resolved to electric energy for example, being saved in Wildcard address in the wildcard address list of table is 0xAAAAAAAAAA00,0xAAAAAAAA AA05,0xAAAAAAAAAA09, The quantity of 0xAAAAAAAAAA21, the wildcard address saved in the wildcard address list for being successfully resolved to electric energy meter no longer increase Add, i.e., the response frame returned after sending when wildcard address is from 0xAAAAAAAAAA00 to 0xAAAAAAAAAA99 can be solved correctly The quantity of the wildcard address of analysis is not further added by, and for above-mentioned, is saved in the wildcard address list for being successfully resolved to electric energy meter Wildcard address there was only 0xAAAAAAAAAA00,0xAAAAAAAA AA05,0xAAAAAAAAAA09,0xAAAAAAAAAA21, this 4 wildcard addresses do not save other wildcard addresses again later, therefore the wildcard of electric energy meter is successfully resolved under above situation The maximum value of the quantity of the wildcard address saved in the list of location is 4;Due to wildcard address from 0xAAAAAAAAAA00 to 0xAAAAAAAAAA99 mono- shares 100, if the response returned after issuing from 0xAAAAAAAAAA00 to 0xAAAAAAAAAA99 Frame can be parsed correctly, i.e. 100 wildcard addresses all receive response frame, and 100 response frames can be parsed correctly, The wildcard address being then saved in the wildcard address list for being successfully resolved to electric energy meter is 100, i.e., is successfully resolved to electric energy meter Wildcard address list in the quantity of wildcard address that saves be 100 after be not further added by, the thresholding of maximum value is 100, when When the quantity of wildcard address is other values, the thresholding of maximum value and maximum value judges according to the actual situation, the embodiment of the present invention pair It is without limitation.
Optionally, in response to being taken in the second read address frame described in the wildcard address list for being successfully resolved to electric energy meter The number of the wildcard address of band is not further added by, and is selected described in one in the wildcard address list for being successfully resolved to electric energy meter The wildcard address carried in second read address frame;Exist in response to the wildcard address for judging to carry in the second read address frame logical With symbol, the second read address frame is determined as to the first new read address frame, then re-execute the steps S200~S203.
Below by two complete specific embodiments, to a kind of side of collector search electric energy meter proposed by the present invention Method is described in detail.
Specific embodiment one,
Specific flow chart is as shown in Figure 3, comprising:
Step S301, the first read address frame for carrying wildcard address is sent.
It wherein, include asterisk wildcard in shown wildcard address, for example, 0xAAAAAAAAAAAA.
Step S302, the corresponding response frame of the first read address frame is received.
Step S303, judge whether correctly parse the corresponding response frame of the first read address frame, if so, executing Step S304, if it is not, then terminating to search for.
Step S304, the electric energy meter mailing address parsed from the corresponding response frame of the first read address frame is saved.
Step S305, the wildcard address carried in the first read address frame is saved, and will be carried in the first read address frame The lowest order of asterisk wildcard of wildcard address replace with binary-coded decimal, be determined as the second read address frame.
Specifically, may exist a variety of situations when the lowest order of the asterisk wildcard of the wildcard address replaces with binary-coded decimal, under Face is illustrated for one of which, other replacements execute identical operation.
Step S306, the second read address frame is sent.
Step S307, the corresponding response frame of the second read address frame is received.
Step S308, judge whether correctly parse the corresponding response frame of the second read address frame, if so, executing Step S309, if it is not, then terminating to search for.
Step S309, another electric energy meter parsed from the corresponding response frame of the second read address frame is saved communicatedly Location.
Step S310, the wildcard address carried in the second read address frame is saved.
Step S311, judge whether there is asterisk wildcard in the wildcard address carried in the second read address frame, if so, holding Row step S312, if it is not, then terminating to search for.
Step S312, the second read address frame is determined as to the first new read address frame, return step S305 executes circulation behaviour Make, until all asterisk wildcards all replace with binary-coded decimal in the wildcard address.
Specific embodiment two
Specific flow chart is as shown in Figure 4, comprising:
Step S401, the first read address frame for carrying wildcard address is sent.
It wherein, include asterisk wildcard in shown wildcard address, for example, 0xAAAAAAAAAAAA.
Step S402, the corresponding response frame of the first read address frame is received.
Step S403, judge whether correctly parse the corresponding response frame of the first read address frame, if so, executing Step S404, if it is not, then terminating to search for.
Step S404, the electric energy meter mailing address parsed from the corresponding response frame of the first read address frame is saved.
Step S405, the wildcard address carried in the first read address frame is saved, and will be carried in the first read address frame The lowest order of asterisk wildcard of wildcard address replace with binary-coded decimal, be determined as the second read address frame.
Step S406, the second read address frame is sent.
Step S407, the corresponding response frame of the second read address frame is received.
Step S408, judge whether correctly parse the corresponding response frame of the second read address frame, if so, executing Step S409, if it is not, thening follow the steps S412.
Step S409, another electric energy meter parsed from the corresponding response frame of the second read address frame is saved communicatedly Location.
Step S410, judge in the wildcard address carried in the second read address frame whether to include asterisk wildcard, if so, Step S411 is executed, if it is not, thening follow the steps S412.
Step S411, the wildcard address that carries in the second read address frame is saved to the wildcard for being successfully resolved to electric energy meter Address list, the quantity of wildcard address increases by 1 in the wildcard address list for being successfully resolved to electric energy meter.
Step S412, judge whether the quantity of wildcard address in the wildcard address list for being successfully resolved to electric energy meter is big In being equal to 1, if so, S413 is thened follow the steps, if it is not, then terminating to search for.
Step S413, the second read address frame is determined as to the first new read address frame, return step S405, in return step Before 405, the quantity of wildcard address in the wildcard address list for being successfully resolved to electric energy meter is subtracted 1.
Fig. 5 is a kind of schematic device of collector search electric energy meter provided in an embodiment of the present invention.As shown in figure 5, this The device of embodiment comprises determining that unit 501, transmission unit 502, receiving unit 503 and resolution unit 504.
Wherein it is determined that unit 501, for the lowest order of the asterisk wildcard of the wildcard address carried in the first read address frame to be replaced It is changed to binary-coded decimal, is determined as the second read address frame;Transmission unit 502, for sending the second read address frame;Receiving unit 503, for receiving the first response frame;Resolution unit 504, for correctly parsing the first electric energy meter in first response frame Mailing address.
In one embodiment, described device further include: storage unit 505, for saving in the second read address frame The wildcard address of carrying;Reset cell 506, for existing in response to the wildcard address for judging to carry in the second read address frame The second read address frame is determined as the first new read address frame by asterisk wildcard.
In one embodiment, the storage unit 505 is also used to: saving the mailing address of first electric energy meter.
In one embodiment, the storage unit 505 is also used to: by the wildcard carried in the second read address frame Location is saved in the wildcard address list for being successfully resolved to electric energy meter, wherein the wildcard address column for being successfully resolved to electric energy meter The number of the wildcard address carried in the second read address frame for including in table is more than or equal to 0, and is less than or equal to of binary-coded decimal Number.
In one embodiment, the device further include: selecting unit 507, for being successfully resolved to electric energy in response to described The number of the wildcard address carried in second read address frame described in the wildcard address list of table is not further added by, and is successfully solved described Analyse the wildcard address for selecting to carry in the second read address frame in the wildcard address list of electric energy meter;The resetting is single Member 506 is also used to, and in response to the wildcard address that judges to carry in the second read address frame, there are asterisk wildcards, and described second is read Address frame is determined as the first new read address frame.
In one embodiment, the lowest order replacement of the asterisk wildcard by the wildcard address carried in the first read address frame For binary-coded decimal, it is determined as before the second read address frame, the transmission unit is also used to: sends the first read address frame, wherein described The all asterisk wildcards in wildcard address carried in first read address frame;The receiving unit is also used to, and receives the second response frame;Institute It states resolution unit to be also used to, the mailing address of the second electric energy meter is correctly parsed in second response frame;The resetting is single Member is also used to, and saves the wildcard address carried in the first read address frame, and the first read address frame is determined as new the One read address frame.
Fig. 6 is the schematic diagram of the electronic equipment of the embodiment of the present invention.Electronic equipment shown in fig. 6 is general data transfer dress It sets comprising general computer hardware structure includes at least processor 61 and memory 62.Processor 61 and memory 62 It is connected by bus 63.Memory 62 is suitable for the instruction or program that storage processor 61 can be performed.Processor 61 can be independence Microprocessor, be also possible to one or more microprocessor set.Processor 61 is deposited by executing memory 62 as a result, The instruction of storage is realized thereby executing the method flow of embodiment present invention as described above for the processing of data and for other The control of device.Bus 63 links together above-mentioned multiple components, while said modules are connected to 64 He of display controller Display device and input/output (I/O) device 65.Input/output (I/O) device 65 can be mouse, keyboard, modulation /demodulation Device, network interface, touch-control input device, body-sensing input unit, printer and other devices well known in the art.Typically, Input/output device 65 is connected by input/output (I/O) controller 66 with system.
As skilled in the art will be aware of, various aspects of the invention may be implemented as system, method or meter Calculation machine program product.Therefore, various aspects of the invention can take following form: complete hardware embodiment, complete software Embodiment (including firmware, resident software, microcode etc.) or herein usually can referred to as " circuit ", " module " or The embodiment that software aspects are combined with hardware aspect of " system ".In addition, aspect of the invention can take following shape Formula: the computer program product realized in one or more computer-readable medium, computer-readable medium have on it The computer readable program code of realization.
It can use any combination of one or more computer-readable mediums.Computer-readable medium can be computer Readable signal medium or computer readable storage medium.Computer readable storage medium can be such as (but not limited to) electronics, Magnetic, optical, electromagnetism, infrared or semiconductor system, device or any suitable combination above-mentioned.Meter The more specific example (exhaustive to enumerate) of calculation machine readable storage medium storing program for executing will include the following terms: with one or more electric wire Electrical connection, hard disk, random access memory (RAM), read-only memory (ROM), erasable is compiled portable computer diskette Journey read-only memory (EPROM or flash memory), optical fiber, portable optic disk read-only storage (CD-ROM), light storage device, Magnetic memory apparatus or any suitable combination above-mentioned.In the context of the present invention, computer readable storage medium can be It can include or store the program used by instruction execution system, device or combine instruction execution system, equipment or dress Set any tangible medium of the program used.
Computer-readable signal media may include the data-signal propagated, and the data-signal of the propagation has wherein The computer readable program code realized such as a part in a base band or as carrier wave.The signal of such propagation can use Any form in diversified forms, including but not limited to: electromagnetism, optical or its any combination appropriate.It is computer-readable Signal media can be following any computer-readable medium: not be computer readable storage medium, and can be to by instructing Program that is that execution system, device use or combining instruction execution system, device to use is communicated, is propagated Or transmission.
Including but not limited to wireless, wired, fiber optic cables, RF etc. or above-mentioned any appropriately combined any can be used Suitable medium transmits the program code realized on a computer-readable medium.
Computer program code for executing the operation for being directed to various aspects of the present invention can be with one or more programming languages Any combination of speech is write, and the programming language includes: programming language such as Java, Smalltalk, C++ of object-oriented etc.; And conventional process programming language such as " C " programming language or similar programming language.Program code can be used as independent software package Fully on the user computer, partly execute on the user computer;Partly exist on the user computer and partly It is executed on remote computer;Or it fully executes on a remote computer or server.It in the latter case, can will be remote Journey computer by include local area network (LAN) or wide area network (WAN) any type of network connection to subscriber computer, or (such as internet by using ISP) can be attached with outer computer.
It is above-mentioned according to the method for the embodiment of the present invention, the flow chart legend of equipment (system) and computer program product and/ Or block diagram describes various aspects of the invention.It will be appreciated that each of flow chart legend and/or block diagram piece and process The combination of block in figure legend and/or block diagram can be realized by computer program instructions.These computer program instructions can be with It is provided to the processor of general purpose computer, special purpose computer or other programmable data processing devices, to generate machine, so that (being executed via computer or the processor of other programmable data processing devices) instruction creation for realizing flow chart and/or The device for the function action specified in block diagram or block.
These computer program instructions can also be stored in can instruct computer, other programmable data processing devices Or in the computer-readable medium that runs in a specific way of other devices, so that the instruction stored in computer-readable medium produces Raw includes the product for realizing the instruction for the function action specified in flowchart and or block diagram block or block.
Computer program instructions can also be loaded on computer, other programmable data processing devices or other devices On so that executed on computer, other programmable devices or other devices it is a series of can operating procedure come generate computer reality Existing process, so that the instruction executed on computer or other programmable devices is provided for realizing in flow chart and/or frame The process for the function action specified in segment or block.
The above description is only a preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art For, the invention can have various changes and changes.All any modifications made within the spirit and principles of the present invention are equal Replacement, improvement etc., should all be included in the protection scope of the present invention.
The method of A1, a kind of collector search electric energy meter, comprising:
The lowest order of the asterisk wildcard of the wildcard address carried in first read address frame is replaced with into binary-coded decimal, is determined as second Read address frame;
Send the second read address frame;
Receive the first response frame;
The mailing address of the first electric energy meter is correctly parsed in first response frame.
A2, the method as described in claim A1 correctly parse the logical of the first electric energy meter in first response frame After believing address, this method further include:
Save the wildcard address carried in the second read address frame;
In response to the wildcard address that judges to carry in the second read address frame, there are asterisk wildcards, by second read address Frame is determined as the first new read address frame.
A3, the method as described in claim A1 correctly parse the logical of the first electric energy meter in first response frame After believing address, this method further include:
Save the mailing address of first electric energy meter.
A4, the method as described in claim A1 correctly parse the logical of the first electric energy meter in first response frame After believing address, this method further include:
The wildcard address carried in the second read address frame is saved in the wildcard address column for being successfully resolved to electric energy meter Table, wherein the wildcard carried in the second read address frame in the wildcard address list for being successfully resolved to electric energy meter The number of location is more than or equal to 0, and is less than or equal to the number of binary-coded decimal.
A5, the method as described in claim A4, this method further include:
It is logical in response to what is carried in the second read address frame described in the wildcard address list for being successfully resolved to electric energy meter Number with address is not further added by, and selects one described second to read in the wildcard address list for being successfully resolved to electric energy meter The wildcard address carried in address frame;
In response to the wildcard address that judges to carry in the second read address frame, there are asterisk wildcards, by second read address Frame is determined as the first new read address frame.
A6, the method as described in claim A1, the asterisk wildcard by the wildcard address carried in the first read address frame Lowest order replace with binary-coded decimal, be determined as before the second read address frame, this method further include:
Send the first read address frame, wherein all asterisk wildcards in wildcard address carried in the first read address frame;
Receive the second response frame;
The mailing address of the second electric energy meter is correctly parsed in second response frame;
The wildcard address carried in the first read address frame is saved, the first read address frame is determined as new first Read address frame.
The device of B1, a kind of collector search electric energy meter, comprising:
Determination unit, for the lowest order of the asterisk wildcard of the wildcard address carried in the first read address frame to be replaced with BCD Code, is determined as the second read address frame;
Transmission unit, for sending the second read address frame;
Receiving unit, for receiving the first response frame;
Resolution unit, for correctly parsing the mailing address of the first electric energy meter in first response frame.
B2, the device as described in claim B1, described device further include:
Storage unit, for saving the wildcard address carried in the second read address frame;
Reset cell, for the wildcard address in response to judging to carry in the second read address frame, there are asterisk wildcards, will The second read address frame is determined as the first new read address frame.
B3, the device as described in claim B1, the storage unit are also used to:
Save the mailing address of first electric energy meter.
B4, the device as described in claim B1, the storage unit are also used to:
The wildcard address carried in the second read address frame is saved in the wildcard address column for being successfully resolved to electric energy meter Table, wherein the wildcard carried in the second read address frame in the wildcard address list for being successfully resolved to electric energy meter The number of location is more than or equal to 0, and is less than or equal to the number of binary-coded decimal.
B5, the device as described in claim B4, the device further include:
Selecting unit, in response to the second read address described in the wildcard address list for being successfully resolved to electric energy meter The number of the wildcard address carried in frame is not further added by, and selects one in the wildcard address list for being successfully resolved to electric energy meter The wildcard address carried in a second read address frame;
The reset cell is also used to, and in response to the wildcard address that judges to carry in the second read address frame, there are wildcards The second read address frame, is determined as the first new read address frame by symbol.
B6, the device as described in claim B1, the asterisk wildcard by the wildcard address carried in the first read address frame Lowest order replace with binary-coded decimal, be determined as before the second read address frame, the transmission unit is also used to:
Send the first read address frame, wherein all asterisk wildcards in wildcard address carried in the first read address frame;
The receiving unit is also used to, and receives the second response frame;
The resolution unit is also used to, and the mailing address of the second electric energy meter is correctly parsed in second response frame;
The reset cell is also used to, and saves the wildcard address carried in the first read address frame, described first is read Address frame is determined as the first new read address frame.
C, a kind of electronic equipment, including memory and processor, the memory is for storing one or more computer Program instruction, wherein one or more computer program instructions are executed by the processor to realize such as claim A1- Method described in any one of A6.
D, a kind of computer readable storage medium, stores computer program instructions thereon, and the computer program instructions exist Such as claim A1-A6 described in any item methods are realized when being executed by processor.

Claims (10)

1. a kind of method of collector search electric energy meter characterized by comprising
The lowest order of the asterisk wildcard of the wildcard address carried in first read address frame is replaced with into binary-coded decimal, with being determined as the second reading Location frame;
Send the second read address frame;
Receive the first response frame;
The mailing address of the first electric energy meter is correctly parsed in first response frame.
2. the method as described in claim 1, which is characterized in that correctly parse the first electric energy meter in first response frame Mailing address after, this method further include:
Save the wildcard address carried in the second read address frame;
In response to the wildcard address that judges to carry in the second read address frame, there are asterisk wildcards, and the second read address frame is true It is set to the first new read address frame.
3. the method as described in claim 1, which is characterized in that correctly parse the first electric energy meter in first response frame Mailing address after, this method further include:
Save the mailing address of first electric energy meter.
4. the method as described in claim 1, which is characterized in that correctly parse the first electric energy meter in first response frame Mailing address after, this method further include:
The wildcard address carried in the second read address frame is saved in the wildcard address list for being successfully resolved to electric energy meter, In, of the wildcard address carried in the second read address frame in the wildcard address list for being successfully resolved to electric energy meter Number is more than or equal to 0, and is less than or equal to the number of binary-coded decimal.
5. method as claimed in claim 4, which is characterized in that this method further include:
In response to the wildcard that is carried in the second read address frame described in the wildcard address list for being successfully resolved to electric energy meter The number of location is not further added by, and second read address is selected in the wildcard address list for being successfully resolved to electric energy meter The wildcard address carried in frame;
In response to the wildcard address that judges to carry in the second read address frame, there are asterisk wildcards, and the second read address frame is true It is set to the first new read address frame.
6. the method as described in claim 1, which is characterized in that described by the logical of the wildcard address carried in the first read address frame Lowest order with symbol replaces with binary-coded decimal, is determined as before the second read address frame, this method further include:
Send the first read address frame, wherein all asterisk wildcards in wildcard address carried in the first read address frame;
Receive the second response frame;
The mailing address of the second electric energy meter is correctly parsed in second response frame;
The wildcard address carried in the first read address frame is saved, the first read address frame is determined as new first and reads ground Location frame.
7. a kind of device of collector search electric energy meter characterized by comprising
Determination unit, for the lowest order of the asterisk wildcard of the wildcard address carried in the first read address frame to be replaced with binary-coded decimal, really It is set to the second read address frame;
Transmission unit, for sending the second read address frame;
Receiving unit, for receiving the first response frame;
Resolution unit, for correctly parsing the mailing address of the first electric energy meter in first response frame.
8. device as claimed in claim 7, which is characterized in that described device further include:
Storage unit, for saving the wildcard address carried in the second read address frame;
Reset cell, for the wildcard address in response to judging to carry in the second read address frame, there are asterisk wildcards, will be described Second read address frame is determined as the first new read address frame.
9. a kind of electronic equipment, including memory and processor, which is characterized in that the memory is for storing one or more Computer program instructions, wherein one or more computer program instructions are executed by the processor to realize such as right It is required that method described in any one of 1-6.
10. a kind of computer readable storage medium, stores computer program instructions thereon, which is characterized in that the computer journey As the method according to claim 1 to 6 is realized in sequence instruction when being executed by processor.
CN201811284214.0A 2018-10-31 2018-10-31 A kind of method and device of collector search electric energy meter Pending CN109361428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811284214.0A CN109361428A (en) 2018-10-31 2018-10-31 A kind of method and device of collector search electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811284214.0A CN109361428A (en) 2018-10-31 2018-10-31 A kind of method and device of collector search electric energy meter

Publications (1)

Publication Number Publication Date
CN109361428A true CN109361428A (en) 2019-02-19

Family

ID=65347562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811284214.0A Pending CN109361428A (en) 2018-10-31 2018-10-31 A kind of method and device of collector search electric energy meter

Country Status (1)

Country Link
CN (1) CN109361428A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112994748A (en) * 2021-02-03 2021-06-18 青岛鼎信通讯股份有限公司 Medium-voltage carrier-based configuration-free path detection method

Citations (9)

* Cited by examiner, † Cited by third party
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
CN102231670A (en) * 2011-06-27 2011-11-02 深圳市科陆电子科技股份有限公司 Method for automatically finding existing electricity meter by utilizing electric power meter reading system
CN102339300A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Automatic meter searching method for intelligent power grid
JP2014006229A (en) * 2012-06-21 2014-01-16 Kibo Tanaka Insulation defect part searching method for power cable
CN103546592A (en) * 2013-10-22 2014-01-29 深圳市国电科技通信有限公司 Automatic energy meter address searching method
CN104217566A (en) * 2014-09-16 2014-12-17 北京天公瑞丰科技有限公司 Intelligent meter searching method and system for type II collector
CN105488992A (en) * 2015-12-31 2016-04-13 宁夏隆基宁光仪表有限公司 Automatic meter searching method through low-voltage power line carrier wave
CN106603308A (en) * 2017-01-03 2017-04-26 国网浙江省电力公司宁波供电公司 Method and system for household meter dynamic registration and stage area identification

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
CN102339300A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Automatic meter searching method for intelligent power grid
CN102231670A (en) * 2011-06-27 2011-11-02 深圳市科陆电子科技股份有限公司 Method for automatically finding existing electricity meter by utilizing electric power meter reading system
JP2014006229A (en) * 2012-06-21 2014-01-16 Kibo Tanaka Insulation defect part searching method for power cable
CN103546592A (en) * 2013-10-22 2014-01-29 深圳市国电科技通信有限公司 Automatic energy meter address searching method
CN104217566A (en) * 2014-09-16 2014-12-17 北京天公瑞丰科技有限公司 Intelligent meter searching method and system for type II collector
CN105488992A (en) * 2015-12-31 2016-04-13 宁夏隆基宁光仪表有限公司 Automatic meter searching method through low-voltage power line carrier wave
CN106603308A (en) * 2017-01-03 2017-04-26 国网浙江省电力公司宁波供电公司 Method and system for household meter dynamic registration and stage area identification

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112994748A (en) * 2021-02-03 2021-06-18 青岛鼎信通讯股份有限公司 Medium-voltage carrier-based configuration-free path detection method

Similar Documents

Publication Publication Date Title
CN103473088B (en) A kind of single-chip microcomputer online upgrading method and system
CN107256195B (en) Webpage front-end test method and device
CN102636704B (en) Testing method, device and system for electronic product
CN109491905A (en) Head end test method, apparatus and electronic equipment
CN106804055B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN108259598A (en) A kind of awareness apparatus unified access method based on isomery fusion and cloud analytic technique
CN106570984B (en) Support card number verification method, the apparatus and system of a variety of Wiegand formats
CN110502357A (en) A kind of stack retrogressive method, device, medium and equipment
CN107204898A (en) Production test method, system and the storage device of intelligent appliance, mobile terminal
CN109189434A (en) A kind of online upgrading method of electric energy meter
CN106294040A (en) The acquisition methods of optical module status information and device
CN106776105A (en) A kind of verification of System startup files and Compilation Method
CN109361428A (en) A kind of method and device of collector search electric energy meter
CN105138329B (en) A kind of method for changing in-orbit task
CN109408304A (en) Block chain introduces test method, device, equipment and readable storage medium storing program for executing
CN112309313B (en) Module controller configuration method, device and system and computer readable storage medium
CN109254920A (en) Interface testing case generation method, device, electronic equipment, storage medium
CN109635552A (en) Electronic equipment identity information verification method and device
CN107608858A (en) Information processing system, method and apparatus
CN109324973A (en) A kind of method for testing software, device, equipment and computer readable storage medium
CN112070456B (en) Method for issuing task, terminal equipment, robot and storage medium
CN108958765A (en) Upgrade the method and device of optical module firmware
CN108597580A (en) File compatibility method and device, storage medium and the terminal for the treatment of planning systems
CN101197959A (en) Terminal control method, system and equipment
CN105447251B (en) A kind of verification method based on transaction types excitation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190219