CN110635984A - Method, device and system for obtaining communication address of electric meter - Google Patents

Method, device and system for obtaining communication address of electric meter Download PDF

Info

Publication number
CN110635984A
CN110635984A CN201910905966.2A CN201910905966A CN110635984A CN 110635984 A CN110635984 A CN 110635984A CN 201910905966 A CN201910905966 A CN 201910905966A CN 110635984 A CN110635984 A CN 110635984A
Authority
CN
China
Prior art keywords
acquisition terminal
information acquisition
communication address
sent
information
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
CN201910905966.2A
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.)
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida Technology Co Ltd
Original Assignee
Nanjing Haixing Power Grid Technology Co Ltd
Hangzhou Hexing Electrical Co Ltd
Ningbo Henglida 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 Nanjing Haixing Power Grid Technology Co Ltd, Hangzhou Hexing Electrical Co Ltd, Ningbo Henglida Technology Co Ltd filed Critical Nanjing Haixing Power Grid Technology Co Ltd
Priority to CN201910905966.2A priority Critical patent/CN110635984A/en
Publication of CN110635984A publication Critical patent/CN110635984A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4594Address books, i.e. directories containing contact information about correspondents

Abstract

The invention discloses a method, a device and a system for acquiring a communication address of an electric meter, wherein the method applied to the electric meter comprises the following steps: receiving a discrete table searching command sent by an information acquisition terminal; judging whether effective communication is carried out with the information acquisition terminal; if not, generating a random number; according to a preset dispersion factor, the random number is subjected to remainder to determine a response time slot; sending response information with a communication address to the information acquisition terminal in a response time slot; if so, no reply message is sent. All the electric meters connected with the information acquisition terminal can receive the discrete meter searching command, and the response time slots of the electric meters determined according to the random number surplus result of the dispersion factors are different through different random numbers generated by the electric meters. Each ammeter sends response information with a communication address to the information acquisition terminal in the respective response time slot, and the information acquisition terminal can receive the response information sent by the plurality of ammeters, so that the efficiency of obtaining the communication addresses of the ammeters is improved.

Description

Method, device and system for obtaining communication address of electric meter
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a system for obtaining a communication address of an electricity meter.
Background
With the development of the internet of things, the intelligent electric meters gradually enter thousands of households, and the intelligent electric meters perform information interaction with the information acquisition terminals of the power company through buses. If the information acquisition terminal wants to acquire the information carried by each electric meter through the RS485 bus, the communication address of each electric meter needs to be known, and the information acquisition terminal can independently communicate with each electric meter.
The method for acquiring the communication address of each ammeter by the existing information acquisition terminal comprises the following steps: the information acquisition terminal sends a communication address constructed according to a reduced position meter searching method to search the electric meter on the RS485 bus, when the electric meter address is matched with the communication address sent by the information acquisition terminal, the electric meter responds, and the information acquisition terminal acquires the electric meter address of the responding electric meter. The communication address constructed according to the abbreviated table searching method is composed of a wildcard address and an attempt address, and the attempt address is gradually increased from 00 to 99.
The existing method for acquiring the communication address of each electric meter by the information acquisition terminal needs to search the communication addresses of all the electric meters on the RS485 bus through a large number of communication address attempts (exhaustive by byte), and the efficiency of acquiring the communication addresses of each electric meter is low.
Disclosure of Invention
The invention aims to provide a method, a device and a medium for acquiring a communication address of an ammeter. Each ammeter sends response information with a communication address to the information acquisition terminal in the respective response time slot, and the information acquisition terminal can receive the response information with the communication address sent by the plurality of ammeters, so that the efficiency of acquiring the communication address of each ammeter is improved.
In order to achieve the above object, the present invention provides a method for obtaining a communication address of an electricity meter, which is applied to the electricity meter, and comprises:
receiving a discrete table searching command sent by an information acquisition terminal;
judging whether effective communication is carried out with the information acquisition terminal;
if not, generating a random number;
according to a preset dispersion factor, the random number is subjected to remainder to determine a response time slot;
sending response information with a communication address to the information acquisition terminal in the response time slot;
if so, no reply message is sent.
Preferably, the dispersion factor is specifically an integral multiple of the number of the electric meters connected to the information acquisition terminal.
Preferably, the response time slot is longer than the time for the electric meter to send the response message.
In order to achieve the above object, the present invention further provides a method for obtaining a communication address of an electricity meter, which is applied to an information acquisition terminal, and includes:
sending a discrete meter searching command to the electric meter;
receiving response information with a communication address sent by the ammeter in a response time slot;
the ammeter receives the discrete meter searching command sent by the information acquisition terminal, judges whether effective communication is carried out with the information acquisition terminal, generates a random number if the effective communication is not carried out with the information acquisition terminal, and determines a response time slot by adding up the random number according to a preset dispersion factor; if so, no reply message is sent.
Preferably, the method further comprises the following steps:
after one communication address period of the electric meter is acquired, judging whether the response information is received or not;
if yes, the discrete table searching command is sent again;
if not, the process is ended.
Preferably, the method further comprises the following steps:
judging whether the response information sent by two or more electric meters is received in the same response time slot;
if yes, discarding the response information sent by the ammeter and generating abnormal information;
if not, the response information sent by the electric meter is reserved.
Preferably, the method further comprises the following steps:
and establishing communication with the electric meter with the registered communication address and collecting data of the electric meter.
In order to achieve the above object, the present invention further provides a system for obtaining a communication address of an electricity meter, including: the system comprises an ammeter and an information acquisition terminal;
the information acquisition terminal sends a discrete meter searching command to the ammeter;
each ammeter receives the discrete meter searching command and judges whether effective communication is carried out with the information acquisition terminal or not, if not, a random number is generated, the random number is subjected to remainder according to a preset dispersion factor to determine a response time slot, and response information with a communication address is sent to the information acquisition terminal in the response time slot; if yes, the response information is not sent;
and the information acquisition terminal receives the response information.
In order to achieve the above object, the present invention further provides a device for acquiring a communication address of an electricity meter, which is applied to the electricity meter, and includes:
the first receiving module is used for receiving a discrete table searching command sent by the information acquisition terminal;
the judging module is used for judging whether effective communication is carried out with the information acquisition terminal, if not, the production module is triggered, and if so, the response information is not sent;
the production module is used for generating random numbers;
the determining module is used for taking the remainder of the random number according to a preset dispersion factor to determine a response time slot;
and the first sending module is used for sending the response information with the communication address to the information acquisition terminal in the response time slot.
In order to achieve the above object, the present invention further provides a device for acquiring a communication address of an electricity meter, which is applied to an information acquisition terminal, and includes:
the second sending module is used for sending a discrete meter searching command to the electric meter;
the second receiving module is used for receiving response information with a communication address sent by the ammeter in a response time slot;
the ammeter receives a discrete meter searching command sent by an information acquisition terminal, judges whether effective communication is carried out with the information acquisition terminal, generates a random number if the effective communication is not carried out with the information acquisition terminal, and determines a response time slot by adding up the random number according to a preset dispersion factor; if so, no reply message is sent.
The method for acquiring the communication address of the electric meter, which is provided by the invention, is applied to the electric meter and comprises the following steps: the method comprises the steps that an ammeter receives a discrete table searching command sent by an information acquisition terminal and then judges whether the ammeter is in effective communication with the information acquisition terminal or not, if the ammeter is in effective communication with the information acquisition terminal, the communication address of the ammeter is obtained by the information acquisition terminal, if the ammeter is not in effective communication with the information acquisition terminal, the communication address of the ammeter is not obtained by the information acquisition terminal, a random number needs to be generated, the random number is left according to a preset dispersion factor to determine a response time slot, and response information with the communication address is sent to the information acquisition terminal in different response time slots to enable the information acquisition terminal to obtain the communication address of the ammeter. All the electric meters connected with the information acquisition terminal can receive the discrete meter searching command, and the response time slots of the electric meters determined according to the random number surplus result of the dispersion factors are different through different random numbers generated by the electric meters. Each ammeter sends response information with a communication address to the information acquisition terminal in the respective response time slot, and the information acquisition terminal can receive the response information with the communication address sent by the plurality of ammeters, so that the efficiency of acquiring the communication address of each ammeter is improved.
The method for acquiring the communication address of the electric meter, provided by the invention, is applied to the information acquisition terminal, the device for acquiring the communication address of the electric meter, the system for acquiring the communication address of the electric meter or the electric meter and the method for acquiring the communication address of the electric meter, has the same beneficial effects when being applied to the electric meter, and is not repeated herein.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for acquiring a communication address of an electricity meter according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for obtaining a communication address of an electricity meter according to an embodiment of the present invention;
fig. 3 is a structural diagram of a system for acquiring a communication address of an electricity meter according to an embodiment of the present invention;
fig. 4 is a structural diagram of an apparatus for acquiring a communication address of an electricity meter according to an embodiment of the present invention;
fig. 5 is a structural diagram of another apparatus for acquiring a communication address of an electricity meter according to an embodiment of the present invention;
fig. 6 is a block diagram of another apparatus for acquiring a communication address of an electricity meter according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide a method, a device and a medium for acquiring the communication address of the electric meter, and the response time slots of the electric meters determined according to the residue result of the dispersion factors on the random numbers are different through different random numbers generated by the electric meter. Each ammeter sends response information with a communication address to the information acquisition terminal in the respective response time slot, and the information acquisition terminal can receive the response information with the communication address sent by the plurality of ammeters, so that the efficiency of acquiring the communication address of each ammeter is improved.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a method for acquiring a communication address of an electric meter according to an embodiment of the present invention, and as shown in fig. 1, the method for acquiring a communication address of an electric meter includes:
s10: and receiving a discrete table searching command sent by the information acquisition terminal.
S20: and judging whether effective communication is carried out with the information acquisition terminal.
If not, the process proceeds to step S30, and if so, the process proceeds to step S60.
S30: a random number is generated.
S40: and (4) according to a preset dispersion factor, the random number is subjected to remainder to determine a response time slot.
S50: and sending response information with a communication address to the information acquisition terminal in a response time slot.
S60: no response message is sent.
It should be noted that, the electric meter and the information acquisition terminal of the embodiment are both connected to the RS485 bus, and the execution main body of the embodiment is the electric meter. For step S10, the electric meter receives the discrete meter searching command sent by the information collecting terminal connected to the electric meter. The discrete meter searching command refers to a command for searching the communication address of the electric meter.
For the step S20, the electric meter determines whether effective communication is performed with the information collecting terminal, if the electric meter does not perform effective communication with the information collecting terminal, it indicates that the communication address of the electric meter is not registered in the information collecting terminal, and then the step S30 is performed; if the electricity meter is effectively communicated with the information acquisition terminal, the communication address of the electricity meter is registered in the information acquisition terminal, and the step S60 is proceeded. It is to be noted that effective communication means that both the electric meter and the information acquisition terminal successfully communicate, the acquisition terminal sends successful communication information to the electric meter after successful communication, and if the both parties fail to communicate, it is indicated that effective communication is not performed. The communication failure between the electricity meter and the information acquisition terminal is as follows, the information acquisition terminal sends a discrete meter searching command to the electricity meter connected with the information acquisition terminal, the electricity meter A and the electricity meter B send response information at the same time, the information acquisition terminal does not successfully receive the response information sent by the electricity meter A and the electricity meter B, and the communication process between the electricity meter A and the information acquisition terminal, namely, the invalid communication is carried out. The ammeter judges whether effective communication is carried out with the information acquisition terminal or not by judging whether successful communication information is received or not, if the ammeter receives the successful communication information, the ammeter indicates that effective communication is carried out with the information acquisition terminal, and if the ammeter does not receive the successful communication information, the ammeter indicates that effective communication is carried out with the non-information acquisition terminal. In step S40, it should be noted that the predetermined dispersion factor is a predetermined number, and the predetermined dispersion factor may be set by the information collecting terminal and placed in the discrete searching command to be sent to each electric meter, or may be preset in each electric meter. The dispersion factor in this embodiment is set by the information acquisition terminal and placed in the discrete meter searching command, and the numerical value of the dispersion factor is three times the number of the electric meters connected to the information acquisition terminal.
The random number is a number randomly generated by the electricity meter, the generation method of the random number is not limited, the specific generation method of the random number is determined by a code writer, and the generated random number can be determined by a Monte Carlo method.
It should be noted that the response gap is determined according to the remainder, where the response gap is the starting and ending time of sending the response information by the electric meter, the response gap is determined according to the remainder, the response information is sent by the electric meter in the second response time slot, and the starting time of the time slot is the time of the stop bit of the last byte of the discrete meter searching command sent by the information acquisition terminal.
The method for acquiring the communication address of the electric meter, which is provided by the invention, is applied to the electric meter and comprises the following steps: the method comprises the steps that an ammeter receives a discrete table searching command sent by an information acquisition terminal and then judges whether the ammeter is in effective communication with the information acquisition terminal or not, if the ammeter is in effective communication with the information acquisition terminal, the communication address of the ammeter is obtained by the information acquisition terminal, if the ammeter is not in effective communication with the information acquisition terminal, the communication address of the ammeter is not obtained by the information acquisition terminal, a random number needs to be generated, the random number is left according to a preset dispersion factor to determine a response time slot, and response information with the communication address is sent to the information acquisition terminal in different response time slots to enable the information acquisition terminal to obtain the communication address of the ammeter. All the electric meters connected with the information acquisition terminal can receive the discrete meter searching command, and the response time slots of the electric meters determined according to the random number surplus result of the dispersion factors are different through different random numbers generated by the electric meters. Each ammeter sends response information with a communication address to the information acquisition terminal in the respective response time slot, and the information acquisition terminal can receive the response information with the communication address sent by the plurality of ammeters, so that the efficiency of acquiring the communication address of each ammeter is improved.
On the basis of the previous embodiment, in another embodiment, the dispersion factor is specifically an integral multiple of the number of the electric meters connected to the information acquisition terminal, so that the same probability of the result of taking the remainder of the random numbers according to the preset dispersion factor is reduced, the response gaps of the electric meters are different as much as possible, and the possibility that the information acquisition terminal receives response information sent by a plurality of electric meters in the same response gap is reduced. The invention does not limit the dispersion factor to be several times of the number of the electric meters connected with the information acquisition terminal, and the specific times are determined according to the specification.
On the basis of the previous embodiment, in another embodiment, the response time slot is longer than the time for the ammeter to send the response information so as to ensure that the response information sent by the ammeter is received by the information acquisition terminal, and the response information is prevented from being lost or collided. The invention does not limit the value of the response time slot which is larger than the time of the ammeter sending the response information, and the specific value of the response time slot which is larger than the time of the ammeter sending the response information is determined according to the requirements of customers.
Fig. 2 is a flowchart of another method for obtaining a communication address of an electricity meter according to an embodiment of the present invention. On the basis of the above detailed description of the method for obtaining the communication address of the electric meter, the present invention also discloses a method for obtaining the communication address of the electric meter, which is applied to the information acquisition terminal, and corresponds to the above method, as shown in fig. 2, the method includes:
s100: sending a discrete meter searching command to the electric meter;
s200: receiving response information with a communication address sent by the ammeter in a response time slot;
the ammeter receives a discrete meter searching command sent by the information acquisition terminal, judges whether effective communication is carried out with the information acquisition terminal, generates a random number if the effective communication is not carried out with the information acquisition terminal, and determines a response time slot by adding up the random number according to a preset dispersion factor; if so, no reply message is sent.
For step S100, the information collecting terminal sends a discrete meter searching command to the electric meter through the communication bus to search for the communication address of the electric meter.
For step S200, the information collecting terminal receives the response information with the communication address sent by the electric meter in the response time slot through the communication bus to obtain the communication address of the electric meter. Since the embodiment of the processing portion of the discrete search command by the electric meter corresponds to the embodiment of the method for obtaining the communication address of the electric meter, applied to the electric meter, please refer to the description of the embodiment of the method for obtaining the communication address of the electric meter, applied to the electric meter, for the embodiment of the processing portion of the discrete search command by the electric meter, which is not repeated here.
The method for acquiring the communication address of the electric meter, which is provided by the invention, is applied to an information acquisition terminal and comprises the following steps: the method comprises the steps that an information acquisition terminal sends a discrete meter searching command to an ammeter, the ammeter judges whether the ammeter is in effective communication with the information acquisition terminal after receiving the discrete meter searching command sent by the information acquisition terminal, if the ammeter is in effective communication with the information acquisition terminal, the communication address of the ammeter is obtained by the information acquisition terminal, if the ammeter is not in effective communication with the information acquisition terminal, the communication address of the ammeter is not obtained by the information acquisition terminal, a random number needs to be generated, the random number is subjected to surplus according to a preset dispersion factor to determine a response time slot, and response information with the communication address is sent to the information acquisition terminal in different response time slots to enable the information acquisition terminal to obtain the communication address of the ammeter. All the electric meters connected with the information acquisition terminal can receive the discrete meter searching command, and the response time slots of the electric meters determined according to the random number surplus result of the dispersion factors are different through different random numbers generated by the electric meters. Each ammeter sends response information with a communication address to the information acquisition terminal in the respective response time slot, and the information acquisition terminal can receive the response information with the communication address sent by the plurality of ammeters, so that the efficiency of acquiring the communication address of each ammeter is improved.
On the basis of the previous embodiment, in another embodiment, the method further comprises the following steps:
after a communication address period of the electric meter is acquired, whether response information is received or not is judged;
if yes, sending the discrete table searching command again;
if not, the process is ended.
It should be noted that a period of obtaining the communication address of the electric meter refers to the time required for the information acquisition terminal to send the discrete meter searching command to receive the response information sent by the electric meter. One way to obtain the communication address period of the meter is to multiply the dispersion factor by the response time slot.
In the specific implementation, after a period of obtaining the communication address of the electric meter, whether the information acquisition terminal receives the response information is judged, if so, the information acquisition terminal indicates that part of the communication addresses of the electric meter are not recorded in the information acquisition terminal in the meter searching process, and in order to comprehensively record all the communication addresses of the electric meters connected with the information acquisition terminal, a discrete meter searching command needs to be sent again to obtain the communication addresses of the electric meters which are possibly not recorded in the information acquisition terminal; if the response information is not received, the communication addresses of the electric meters in the electric meter searching process are all recorded in the information acquisition terminal, and the searching is finished.
According to the embodiment, whether the next period of acquiring the communication address of the ammeter is determined according to whether the information acquisition terminal receives the response information after one period of acquiring the communication address of the ammeter, the period is more intelligent, and the workload of workers is reduced.
On the basis of the previous embodiment, in another embodiment, the method further comprises the following steps:
judging whether response information sent by two or more electric meters is received in the same response time slot;
if yes, discarding the response information sent by the ammeter and generating abnormal information;
if not, the response information sent by the electric meter is reserved.
In the specific implementation, the electric meters determine the response time slots by taking the balance of the random numbers according to the preset dispersion factors, and the random numbers are not fixed, so that the response time slots of the electric meters are possibly the same, and if the information acquisition terminal receives the response information sent by the electric meters in the same time slot, the response information sent by the electric meters is discarded, and abnormal information is generated.
In order to avoid the received communication address of the electric meter from being abnormal, the information acquisition terminal of the embodiment adopts a discarding strategy for a plurality of pieces of response information received in the same time slot, so that the accuracy of obtaining the communication address of the electric meter is guaranteed.
On the basis of the previous embodiment, in another embodiment, the method further comprises the following steps: the information acquisition terminal establishes communication with the ammeter with the registered communication address and acquires data of the ammeter, so that the acquisition process of the data of the ammeter is more intelligent, and manual use is reduced. The invention does not limit the data of the electric meter, and the data of the electric meter is subject to the data obtained by the specific electric meter, including the electricity consumption of the user and the like.
It is understood that, if the method for obtaining the communication address of the electricity meter in the above embodiment is sold or used as a separate product, it can be applied to a system for obtaining the communication address of the electricity meter. Based on such understanding, the present invention provides a system for acquiring a communication address of an electricity meter as shown in fig. 3, comprising: the system comprises electric meters 1, 2, 3 and 4 and an information acquisition terminal 5;
the information acquisition terminal 5 sends a discrete meter searching command to the electricity meters 1, 2, 3 and 4;
each ammeter receives the discrete searching command and judges whether effective communication is carried out with the information acquisition terminal 5, if not, a random number is generated, the random number is subjected to remainder according to a preset dispersion factor to determine a response time slot, and response information with a communication address is sent to the information acquisition terminal 5 in the response time slot; if yes, no response message is sent;
the information collecting terminal 5 receives the response information.
The communication mode of each electric meter and the information acquisition terminal 5 is a communication bus 6.
The system for acquiring the communication address of the electric meter and the method for acquiring the communication address of the electric meter, which are provided by the invention, have the unicity, so the method for acquiring the communication address of the electric meter, which is applied to the electric meter, has the beneficial effects of being also applied to the electric meter. It should be noted that the number of the electric meters connected to the information acquisition terminal is not limited to 4 shown in the figure, and the number of the electric meters connected to the information acquisition terminal is not limited in the present invention, and the specific number of the electric meters connected to the information acquisition terminal is determined according to the user requirement.
Fig. 4 is a structural diagram of an apparatus for acquiring a communication address of an electricity meter according to an embodiment of the present invention, and as shown in fig. 4, the present invention further provides an apparatus for acquiring a communication address of an electricity meter, where the apparatus is applied to an electricity meter, and the apparatus includes:
the first receiving module 10 is configured to receive a discrete table searching command sent by an information acquisition terminal;
the judging module 20 is used for judging whether effective communication is carried out with the information acquisition terminal, if not, the production module 30 is triggered, and if so, no response information is sent;
a production module 30 for generating random numbers;
a determining module 40, configured to determine a response time slot by taking the remainder of the random number according to a preset dispersion factor;
and the first sending module 50 is used for sending the response information with the communication address to the information acquisition terminal in the response time slot.
Since the embodiment of the device portion and the embodiment of the method portion applied to the electric meter for obtaining the communication address of the electric meter correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the device portion applied to the electric meter for obtaining the communication address of the electric meter, which is not repeated herein.
The device for acquiring the communication address of the electric meter, which is provided by the invention, is applied to the electric meter and comprises the following components: the method comprises the steps that an ammeter receives a discrete table searching command sent by an information acquisition terminal and then judges whether the ammeter is in effective communication with the information acquisition terminal or not, if the ammeter is in effective communication with the information acquisition terminal, the communication address of the ammeter is obtained by the information acquisition terminal, if the ammeter is not in effective communication with the information acquisition terminal, the communication address of the ammeter is not obtained by the information acquisition terminal, a random number needs to be generated, the random number is left according to a preset dispersion factor to determine a response time slot, and response information with the communication address is sent to the information acquisition terminal in different response time slots to enable the information acquisition terminal to obtain the communication address of the ammeter. All the electric meters connected with the information acquisition terminal can receive the discrete meter searching command, and the response time slots of the electric meters determined according to the random number surplus result of the dispersion factors are different through different random numbers generated by the electric meters. Each ammeter sends response information with a communication address to the information acquisition terminal in the respective response time slot, and the information acquisition terminal can receive the response information with the communication address sent by the plurality of ammeters, so that the efficiency of acquiring the communication address of each ammeter is improved.
Fig. 5 is a structural diagram of another apparatus for acquiring a communication address of an electricity meter according to an embodiment of the present invention, and as shown in fig. 5, the present invention further provides an apparatus for acquiring a communication address of an electricity meter, which is applied to an information acquisition terminal, and includes:
the second sending module 100 is configured to send a discrete meter searching command to the electric meter;
the second receiving module 200 is configured to receive response information with a communication address sent by the electric meter in a response time slot;
the ammeter receives a discrete meter searching command sent by the information acquisition terminal, judges whether effective communication is carried out with the information acquisition terminal, generates a random number if the effective communication is not carried out with the information acquisition terminal, and determines a response time slot by adding up the random number according to a preset dispersion factor; if so, no reply message is sent.
Since the embodiment of the device portion and the embodiment of the method portion applied to the information acquisition terminal for acquiring the communication address of the electric meter correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the device for acquiring the communication address of the electric meter applied to the information acquisition terminal, which is not repeated here.
The device for acquiring the communication address of the ammeter provided by the invention is applied to an information acquisition terminal and comprises: the method comprises the steps that an information acquisition terminal sends a discrete meter searching command to an ammeter, the ammeter judges whether the ammeter is in effective communication with the information acquisition terminal after receiving the discrete meter searching command sent by the information acquisition terminal, if the ammeter is in effective communication with the information acquisition terminal, the communication address of the ammeter is obtained by the information acquisition terminal, if the ammeter is not in effective communication with the information acquisition terminal, the communication address of the ammeter is not obtained by the information acquisition terminal, a random number needs to be generated, the random number is subjected to surplus according to a preset dispersion factor to determine a response time slot, and response information with the communication address is sent to the information acquisition terminal in different response time slots to enable the information acquisition terminal to obtain the communication address of the ammeter. All the electric meters connected with the information acquisition terminal can receive the discrete meter searching command, and the response time slots of the electric meters determined according to the random number surplus result of the dispersion factors are different through different random numbers generated by the electric meters. Each ammeter sends response information with a communication address to the information acquisition terminal in the respective response time slot, and the information acquisition terminal can receive the response information with the communication address sent by the plurality of ammeters, so that the efficiency of acquiring the communication address of each ammeter is improved.
As a preferred embodiment, the method further comprises:
the second judgment module is used for judging whether response information is received or not after a communication address period of the ammeter is obtained; if yes, sending the discrete table searching command again; if not, the process is ended.
As a preferred embodiment, the method further comprises:
the third judging module is used for judging whether response information sent by two or more electric meters is received in the same response time slot; if yes, discarding the response information sent by the ammeter and generating abnormal information; if not, the response information sent by the electric meter is reserved.
As a preferred embodiment, the method further comprises:
and the acquisition module is used for establishing communication with the ammeter with the registered communication address and acquiring data of the ammeter.
The invention further provides a device for acquiring the communication address of the electric meter, which is applied to the information acquisition terminal. Fig. 6 is a structural diagram of another apparatus for acquiring a communication address of an electricity meter according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes:
a memory 60 for storing a computer program;
and the processor 61 is used for implementing the steps of the method for acquiring the communication address of the electric meter, which is applied to the information acquisition terminal when executing the computer program.
The processor 61 may include one or more processing cores, such as a 5-core processor, an 8-core processor, and the like. The processor 61 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 61 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 61 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 61 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 60 may include one or more computer-readable storage media, which may be non-transitory. Memory 60 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used for storing a computer program 601, wherein after being loaded and executed by the processor 61, the computer program can implement relevant steps in the method for acquiring a communication address of an electricity meter, which is applied to an information acquisition terminal, disclosed in any of the foregoing embodiments. In addition, the resources stored by the memory 60 may also include an operating system 602, data 603, and the like, and the storage may be transient storage or permanent storage. Operating system 602 may be Windows, among others. Data 603 may include, but is not limited to, data involved in the above-described methods.
In some embodiments, the device for acquiring the communication address of the electricity meter, which is applied to the information acquisition terminal, may further include a display screen 62, an input/output interface 63, a communication interface 64, a power supply 65, and a communication bus 66.
Those skilled in the art will appreciate that the structure shown in fig. 6 does not constitute a limitation of the means for acquiring the communication address of the electricity meter applied to the information collection terminal, and may include more or less components than those shown.
The device for acquiring the communication address of the ammeter, which is applied to the information acquisition terminal, comprises the memory and the processor, and when the processor executes the program stored in the memory, the method for acquiring the communication address of the ammeter, which is applied to the information acquisition terminal, can be realized, and the effects are the same as above.
As a preferred implementation manner, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for obtaining the communication address of the electricity meter according to any one of the above embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer program contained in the computer-readable storage medium provided in this embodiment can implement the steps of the method for obtaining the communication address of the electricity meter when being executed by the processor, and the effects are the same as above.
The method, the device and the system for acquiring the communication address of the electric meter provided by the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for acquiring a communication address of an electric meter is applied to the electric meter and comprises the following steps:
receiving a discrete table searching command sent by an information acquisition terminal;
judging whether effective communication is carried out with the information acquisition terminal;
if not, generating a random number;
according to a preset dispersion factor, the random number is subjected to remainder to determine a response time slot;
sending response information with a communication address to the information acquisition terminal in the response time slot;
if so, no reply message is sent.
2. The method according to claim 1, wherein the dispersion factor is an integer multiple of the number of the electricity meters connected to the information acquisition terminal.
3. The method of claim 1, wherein the response time slot is longer than the time for the electricity meter to send the response message.
4. A method for obtaining a communication address of an electric meter is applied to an information acquisition terminal and comprises the following steps:
sending a discrete meter searching command to the electric meter;
receiving response information with a communication address sent by the ammeter in a response time slot;
the ammeter receives the discrete meter searching command sent by the information acquisition terminal, judges whether effective communication is carried out with the information acquisition terminal, generates a random number if the effective communication is not carried out with the information acquisition terminal, and determines a response time slot by adding up the random number according to a preset dispersion factor; if so, no reply message is sent.
5. The method of claim 4, further comprising:
after one communication address period of the electric meter is acquired, judging whether the response information is received or not;
if yes, the discrete table searching command is sent again;
if not, the process is ended.
6. The method of claim 4, further comprising:
judging whether the response information sent by two or more electric meters is received in the same response time slot;
if yes, discarding the response information sent by the ammeter and generating abnormal information;
if not, the response information sent by the electric meter is reserved.
7. The method of claim 4, further comprising:
and establishing communication with the electric meter with the registered communication address and collecting data of the electric meter.
8. A system for obtaining a communication address of an electricity meter, comprising: the system comprises an ammeter and an information acquisition terminal;
the information acquisition terminal sends a discrete meter searching command to the ammeter;
each ammeter receives the discrete meter searching command and judges whether effective communication is carried out with the information acquisition terminal or not, if not, a random number is generated, the random number is subjected to remainder according to a preset dispersion factor to determine a response time slot, and response information with a communication address is sent to the information acquisition terminal in the response time slot; if yes, the response information is not sent;
and the information acquisition terminal receives the response information.
9. An apparatus for obtaining a communication address of an electricity meter, applied to the electricity meter, comprises:
the first receiving module is used for receiving a discrete table searching command sent by the information acquisition terminal;
the judging module is used for judging whether effective communication is carried out with the information acquisition terminal, if not, the production module is triggered, and if so, the response information is not sent;
the production module is used for generating random numbers;
the determining module is used for taking the remainder of the random number according to a preset dispersion factor to determine a response time slot;
and the first sending module is used for sending the response information with the communication address to the information acquisition terminal in the response time slot.
10. The utility model provides an obtain device of communication address of ammeter which characterized in that is applied to information acquisition terminal, includes:
the second sending module is used for sending a discrete meter searching command to the electric meter;
the second receiving module is used for receiving response information with a communication address sent by the ammeter in a response time slot;
the ammeter receives a discrete meter searching command sent by an information acquisition terminal, judges whether effective communication is carried out with the information acquisition terminal, generates a random number if the effective communication is not carried out with the information acquisition terminal, and determines a response time slot by adding up the random number according to a preset dispersion factor; if so, no reply message is sent.
CN201910905966.2A 2019-09-24 2019-09-24 Method, device and system for obtaining communication address of electric meter Pending CN110635984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910905966.2A CN110635984A (en) 2019-09-24 2019-09-24 Method, device and system for obtaining communication address of electric meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910905966.2A CN110635984A (en) 2019-09-24 2019-09-24 Method, device and system for obtaining communication address of electric meter

Publications (1)

Publication Number Publication Date
CN110635984A true CN110635984A (en) 2019-12-31

Family

ID=68974122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910905966.2A Pending CN110635984A (en) 2019-09-24 2019-09-24 Method, device and system for obtaining communication address of electric meter

Country Status (1)

Country Link
CN (1) CN110635984A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347128A (en) * 2020-11-30 2021-02-09 杭州海兴电力科技股份有限公司 Table searching method and system based on RS485 serial port

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753047A (en) * 2005-11-16 2006-03-29 北京海通嘉讯科技有限公司 Device and method for automatic generation of acquiring terminal address code
CN203102588U (en) * 2013-01-29 2013-07-31 珠海精讯电子科技有限公司 Intelligent electric energy meter data acquisition device
CN103475747A (en) * 2013-08-21 2013-12-25 广东浩迪创新科技有限公司 Electric energy meter networked system capable of automatically sending address information and sending method thereof
US20140173013A1 (en) * 2012-12-19 2014-06-19 Motech Industries, Inc. Method for setting addresses of slave devices in communication network
CN104217566A (en) * 2014-09-16 2014-12-17 北京天公瑞丰科技有限公司 Intelligent meter searching method and system for type II collector
CN106448119A (en) * 2016-12-06 2017-02-22 国网浙江临海市供电公司 Electric energy meter desk area recognition system
CN106603735A (en) * 2015-10-19 2017-04-26 华为技术有限公司 Method, device, and system of allocating communication addresses for intelligent instruments

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753047A (en) * 2005-11-16 2006-03-29 北京海通嘉讯科技有限公司 Device and method for automatic generation of acquiring terminal address code
US20140173013A1 (en) * 2012-12-19 2014-06-19 Motech Industries, Inc. Method for setting addresses of slave devices in communication network
CN203102588U (en) * 2013-01-29 2013-07-31 珠海精讯电子科技有限公司 Intelligent electric energy meter data acquisition device
CN103475747A (en) * 2013-08-21 2013-12-25 广东浩迪创新科技有限公司 Electric energy meter networked system capable of automatically sending address information and sending method thereof
CN104217566A (en) * 2014-09-16 2014-12-17 北京天公瑞丰科技有限公司 Intelligent meter searching method and system for type II collector
CN106603735A (en) * 2015-10-19 2017-04-26 华为技术有限公司 Method, device, and system of allocating communication addresses for intelligent instruments
CN106448119A (en) * 2016-12-06 2017-02-22 国网浙江临海市供电公司 Electric energy meter desk area recognition system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347128A (en) * 2020-11-30 2021-02-09 杭州海兴电力科技股份有限公司 Table searching method and system based on RS485 serial port
CN112347128B (en) * 2020-11-30 2023-07-21 杭州海兴电力科技股份有限公司 Method and system for searching table based on RS485 serial port

Similar Documents

Publication Publication Date Title
TW201232294A (en) Formatting data by example
CN109921915B (en) Method and device for testing wake-up function of real-time clock module and electronic equipment
CN110018996B (en) Snapshot rollback method and related device of distributed storage system
WO2019029281A1 (en) Collision check data processing method and apparatus, electronic device, and storage medium
CN108629660A (en) A kind of shared charger baby based on mobile terminal electricity leases configuration method, device and its system
CN110784377A (en) Method for uniformly managing cloud monitoring data in multi-cloud environment
CN113434396A (en) Interface test method, device, equipment, storage medium and program product
CN107634901A (en) Method for pushing, pusher and the terminal device of session expression
CN115543608A (en) Method and device for rapidly accounting reference load of ordered power utilization users
CN110635984A (en) Method, device and system for obtaining communication address of electric meter
CN106772069B (en) Method and device for detecting battery short circuit
CN110597688A (en) Monitoring information acquisition method and system
CN111901405A (en) Multi-node monitoring method and device, electronic equipment and storage medium
CN112487588A (en) Wind power plant reactive voltage regulation function test method, terminal equipment and storage medium
CN116702668A (en) Regression testing method and device, electronic equipment and storage medium
CN104065505A (en) Monitoring System, Monitoring Server And Monitoring Method
CN110019054B (en) Log duplicate removal method and system, and content distribution network system
CN115793559A (en) Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium
CN113886376A (en) Data cleaning method and device, electronic equipment and medium
CN110807589A (en) Case analysis system of electric power spot market
CN113517989B (en) Resource charging method and device for IaaS cloud platform
CN111125009A (en) File system acquisition method, device, equipment and medium
CN117236313A (en) Test data analysis method and device, electronic equipment and storage medium
CN111061562B (en) Software collaborative packaging method, system, terminal and storage medium
CN110798385B (en) Method, device, equipment and medium for testing wide area network access setting function

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191231

RJ01 Rejection of invention patent application after publication