CN106603735B - Method, device and system for distributing communication addresses of intelligent instrument - Google Patents

Method, device and system for distributing communication addresses of intelligent instrument Download PDF

Info

Publication number
CN106603735B
CN106603735B CN201510678813.0A CN201510678813A CN106603735B CN 106603735 B CN106603735 B CN 106603735B CN 201510678813 A CN201510678813 A CN 201510678813A CN 106603735 B CN106603735 B CN 106603735B
Authority
CN
China
Prior art keywords
identifier
communication address
dcu
message
communication
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.)
Active
Application number
CN201510678813.0A
Other languages
Chinese (zh)
Other versions
CN106603735A (en
Inventor
吴木林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510678813.0A priority Critical patent/CN106603735B/en
Priority to PCT/CN2016/084749 priority patent/WO2017067179A1/en
Publication of CN106603735A publication Critical patent/CN106603735A/en
Application granted granted Critical
Publication of CN106603735B publication Critical patent/CN106603735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a system for distributing communication addresses, belonging to the technical field of communication. The method comprises the following steps: a data concentration unit DCU receives an identifier notification message sent by a master station, wherein the identifier notification message comprises a first identifier; the DCU allocates a first communication address for the first identifier according to the identifier notification message, and stores the first identifier and the first communication address pair; the DCU broadcasts and sends a communication address allocation message, wherein the communication address allocation message comprises the first identifier and the first communication address pair, so that a first intelligent meter with the first identifier configures the first communication address. By adopting the method and the device, the efficiency of distributing the communication addresses to the intelligent instruments can be improved.

Description

Method, device and system for distributing communication addresses of intelligent instrument
Technical Field
The invention relates to the technical field of communication, in particular to a method, a device and a system for distributing communication addresses of intelligent instruments.
Background
In an intelligent meter reading system, an intelligent electric meter is connected to a Data concentration Unit (DCU for short), the DCU is connected with an Advanced Metering Infrastructure (AMI) master station through a network, and the master station can collect Data of the intelligent electric meter through the network to control the intelligent electric meter and the like.
When the DCU communicates with the smart meters through RS (recommended standard) -485 protocol, each smart meter is assigned a communication address, which is also called 485 address. Usually, a maintenance person allocates a corresponding 485 address to each smart meter on the master station, then inputs the 485 address corresponding to each smart meter in the DCU, and configures the corresponding 485 address in each smart meter, so that the DCU can obtain data of each smart meter based on the 485 address of each smart meter.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
maintenance personnel need to manually input communication addresses in the master station, the DCU and the intelligent electric meter respectively, configuration workload is large, and efficiency is low. If configuration errors occur in any place of the main station, the DCU and the central control unit (DCU), address conflicts can be caused, and the intelligent meter reading system cannot work normally.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for allocating communication addresses, which are used for solving the problems of large configuration workload and low efficiency because maintenance personnel need to manually input the communication addresses in a master station, a DCU (distributed control Unit) and an intelligent instrument respectively in the process of allocating the communication addresses for the intelligent instrument, and avoiding the situation that address conflicts can not normally work due to configuration errors in any one of the master station and the DCU.
In a first aspect, a method for allocating a communication address is provided, where the method is performed by a data aggregation unit DCU, and the method specifically includes:
receiving an identifier notification message sent by a master station, wherein the identifier notification message comprises a first identifier;
according to the identifier notification message, allocating a first communication address to the first identifier, and saving a pair of the first identifier and the first communication address;
broadcasting and sending a communication address allocation message, wherein the communication address allocation message comprises the first identifier and the first communication address pair, so that a first intelligent meter with the first identifier configures the first communication address.
The DCU allocates the communication address for the intelligent instrument according to the identifier of the intelligent instrument provided by the master station, and sends the communication address to the intelligent instrument through the broadcast message, so that the intelligent instrument is automatically configured, maintenance personnel are not needed to manually configure the communication address of each intelligent instrument in the master station, the DCU and the intelligent instrument, the deployment cost can be reduced, and the efficiency and the accuracy of communication address allocation are improved. With reference to the first aspect, in a first possible implementation manner of the first aspect, the identifier notification message further includes a second identifier;
according to the identifier notification message, allocating a first communication address for the first identifier, and saving the first identifier and the first communication address pair, including:
according to the identifier notification message, allocating the first communication address to the first identifier, allocating a second communication address to the second identifier, and saving the first identifier and the first communication address pair and the second identifier and the second communication address pair;
the communication address allocation message also comprises the second identifier and the second communication address pair, so that a second intelligent meter with the second identifier configures the second communication address.
Therefore, communication addresses can be allocated to the intelligent meters at the same time, and the efficiency of communication address allocation is further improved.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the allocating, by the DCU, the first communication address to the first identifier and the second communication address to the second identifier according to the identifier notification message includes:
and sequentially allocating the first communication address and the second communication address to the first identifier and the second identifier according to the sequence of the first identifier and the second identifier carried in the identifier notification message.
With reference to the first aspect, in a third possible implementation manner of the first aspect, after the DCU broadcasts and sends the communication address assignment message, the method further includes:
receiving an address configuration success message sent by the first intelligent meter with the first identifier, wherein the address configuration success message comprises the first identifier.
In this way, the DCU can confirm whether the intelligence successfully configured the assigned first communication address.
With reference to any one of the first aspect to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
receiving a first data query message sent by the master station, wherein the first data query message comprises the first identifier;
acquiring the first communication address according to the first identifier;
sending a second data query message to the first smart meter having the first identifier, the second data query message including the first communication address
Receiving a first feedback message sent by the first intelligent instrument, wherein the first feedback message comprises the first communication address and the current data of the first intelligent instrument;
and acquiring the first identifier according to the first communication address in the first feedback message, and sending a second feedback message to the master station, wherein the second feedback message comprises the current data of the first intelligent instrument and the first identifier.
In a second aspect, a method for assigning a communication address is provided, which is performed by a smart meter, and specifically includes:
receiving a communication address allocation message sent by a DCU broadcast, wherein the communication address allocation message comprises a first identifier and a first communication address pair, and the first communication address is allocated to the DCU according to the first identifier;
configuring the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
The intelligent instrument automatically configures the communication address according to the communication address allocation message, so that the deployment cost of manually configuring the communication address for the intelligent instrument can be reduced, manual configuration errors are avoided, and the accuracy of communication address allocation is improved.
With reference to the second aspect, in a first possible implementation manner of the second aspect, after the smart meter configures the first communication address, the method further includes:
sending an address configuration success message to the DCU to feed back to the DUC that the smart meter successfully configured the first communication address assigned by the DCU.
Therefore, the DUC can timely know whether the intelligent meter is successfully configured with the allocated first communication address, and the efficiency of communication address allocation is improved.
With reference to the second aspect or any one of the first possible implementation manners of the second aspect, in a second possible implementation manner of the second aspect, the method further includes:
receiving a second data query message sent by the DCU, wherein the second data query message comprises the first communication address;
and acquiring current data according to the second data query message, and sending a first feedback message to the DCU, wherein the first feedback message comprises the first communication address and the current data of the intelligent instrument.
In a third aspect, a DCU is provided, which has a function of implementing the DCU behavior in the above method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible implementation, the DCU includes: a processor, a receiver and a transmitter; wherein,
the receiver is configured to receive an identifier notification message sent by a master station, where the identifier notification message includes a first identifier;
the processor is configured to allocate a first communication address to the first identifier according to the identifier notification message, and store a pair of the first identifier and the first communication address;
the transmitter is used for broadcasting and transmitting a communication address allocation message, wherein the communication address allocation message comprises the first identifier and the first communication address pair, so that a first intelligent meter with the first identifier configures the first communication address.
In another possible implementation manner, the DCU includes:
the first receiving module is used for receiving an identifier notification message sent by a master station, wherein the identifier notification message comprises a first identifier;
the allocation module is used for allocating a first communication address to the first identifier according to the identifier notification message and storing the first identifier and the first communication address pair;
the first sending module is used for broadcasting and sending a communication address allocation message, wherein the communication address allocation message comprises the first identifier and the first communication address pair, so that a first intelligent meter with the first identifier configures the first communication address.
In a fourth aspect, a smart meter is provided, which has the function of implementing the behavior of the smart meter in the above method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible implementation, the smart meter includes: a processor and a receiver; wherein,
the receiver is configured to receive a communication address assignment message sent by a DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, and the first communication address is assigned by the DCU according to the first identifier;
the processor is configured to configure the first communication address upon determining that the first identifier is an identifier of the smart meter.
In another possible implementation manner, the smart meter includes:
a first receiving module, configured to receive a communication address assignment message sent by a DCU in a broadcast manner, where the communication address assignment message includes a first identifier and a first communication address pair, and the first communication address is assigned by the DCU according to the first identifier;
a configuration module to configure the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
In a fifth aspect, there is provided a system for assigning a communication address, the system comprising a master station, a DCU and a smart meter, wherein:
the master station is used for sending an identifier notification message to the DCU, wherein the identifier notification message comprises a first identifier;
the DCU is configured to receive the identifier notification message, allocate a first communication address to the first identifier according to the identifier notification message, store the first identifier and the first communication address pair, and broadcast and send a communication address allocation message, where the communication address allocation message includes the first identifier and the first communication address pair;
the intelligent meter is used for receiving the communication address allocation message and configuring the first communication address when the first identifier is determined to be the identifier of the intelligent meter.
In the embodiment of the invention, the DCU receives an identifier notification message sent by the master station, the identifier notification message comprises a first identifier, the DCU allocates a first communication address for the first identifier according to the identifier notification message, and stores a first identifier and a first communication address pair, the DCU broadcasts and sends the communication address allocation message, and the communication address allocation message comprises the first identifier and the first communication address pair, so that the first intelligent instrument with the first identifier is configured with the first communication address.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for assigning communication addresses according to an embodiment of the present invention;
fig. 2 is a flow chart of another method for assigning communication addresses according to an embodiment of the present invention;
FIG. 3 is a system framework diagram provided by an embodiment of the invention;
fig. 4 is a flowchart of another method for assigning communication addresses according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for querying current data of a smart meter according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a DCU according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of another DCU provided in the embodiments of the present invention;
FIG. 8 is a schematic structural diagram of a smart meter according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another smart meter according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a system for allocating communication addresses, which comprises a master station, a DCU and a plurality of intelligent meters, and is shown in FIG. 3, which is a schematic diagram of a system framework of the embodiment of the invention. Each smart meter may have a unique identifier (e.g., a table number), and all of the users' smart meters in a region (e.g., a cell) have access to the DCUs in that region, which communicate with the master station.
In the AMI-based intelligent meter reading system, the master station in the invention is an AMI master station. The AMI master may include a Data Collection Platform (DCP) device, also referred to as a front-end processor, that communicates with the DCU over a network.
The primary station is used for sending an identifier notification message to the DCU, wherein the identifier notification message comprises a first identifier.
The DCU is used for receiving an identifier notification message sent by the master station, wherein the identifier notification message comprises a first identifier, allocating a first communication address for the first identifier according to the identifier notification message, storing a pair of the first identifier and the first communication address, and broadcasting and sending the communication address allocation message, wherein the communication address allocation message comprises the first identifier and the first communication address pair;
each intelligent meter in the plurality of intelligent meters can be used for receiving a communication address assignment message sent by the DCU in a broadcast mode, the communication address assignment message comprises a first identifier and a first communication address pair, the first communication address is assigned by the DCU according to the first identifier, when the first identifier is determined to be the identifier of the intelligent meter, the first communication address is configured, and if the first identifier is determined not to be the identifier of the intelligent meter, the processing can be finished.
In a specific implementation, the DCU may receive the identifier notification message sent by the master station, then may assign a corresponding communication address (i.e., a first communication address) to a first identifier in the identifier notification message, and store a pair of the first identifier and the first communication address, for example, establish a correspondence table between the identifier of the smart meter and the communication address, and then the DCU sends the communication address assignment message in a broadcast manner, where the communication address assignment message may include the first identifier and the first communication address pair. The DCU can only send one group of identifier and communication address pairs of the intelligent instrument in a one-time broadcasting mode, and can also send multiple groups of identifier and communication address pairs in a one-time broadcasting mode so as to improve the efficiency of communication address allocation.
After receiving the communication address assignment message sent by the DCU, the smart meter can determine whether the first identifier is the identifier of the smart meter itself, and if so, can configure the first communication address, and if not, can discard the communication address assignment message.
In the embodiment of the invention, the DCU receives an identifier notification message sent by the master station, the identifier notification message comprises a first identifier, the DCU allocates a first communication address for the first identifier according to the identifier notification message, and stores a first identifier and a first communication address pair, the DCU broadcasts and sends the communication address allocation message, and the communication address allocation message comprises the first identifier and the first communication address pair, so that the first intelligent instrument with the first identifier is configured with the first communication address.
The embodiment of the invention provides a method for allocating communication addresses, which completes the allocation of the communication addresses through the interaction among a master station, a DCU and an intelligent instrument. The intelligent instrument can be an intelligent electric meter, an intelligent water meter or an intelligent gas meter and the like. In the embodiment, the smart meter is taken as an example for explanation, and other situations are similar.
As shown in fig. 1, the processing flow of the DCU in the method may include the following steps:
in step 101, the DCU receives an identifier notification message sent by the master station, where the identifier notification message includes a first identifier.
In implementation, the master station may add an identifier (i.e., a first identifier) of the electric meter to which the communication address needs to be allocated to the identifier notification message, and then may send the identifier notification message to a corresponding DCU, and the DCU may receive the identifier notification message sent by the master station, parse the identifier notification message, obtain the first identifier, and may store the received first identifier.
The master station may send the identifier of only one electric meter to the DCU at a time, or may send the identifiers of a plurality of electric meters to the DCU at a time, and the identifier notification message may further include a second identifier.
And 102, the DCU allocates a first communication address for the first identifier according to the identifier notification message, and stores the first identifier and the first communication address pair.
In practice, the DCU may store in advance a communication address that can be allocated for the electric meter, and may record a used communication address and an unused communication address for the allocation process. The communication address of the meter may be represented by an 8-bit binary number. After receiving the identifier notification message sent by the master station, the DCU parses the identifier notification message to obtain the first identifier, then may determine an unused communication address from the communication addresses pre-stored by the DCU, and obtain the first communication address from the unused communication address, further may allocate the first communication address to the electric meter corresponding to the first identifier, and may store the first identifier and the first communication address pair to establish a correspondence relationship between the identifier and the communication address. The DCU may store the identifier and communication address pairs in the form of a correspondence table, as shown in table 1:
TABLE 1
Identifier of electric meter Communication address
1230 00001100
1231 00001101
1232 00001110
1233 00001111
Optionally, the identifier notification message further includes a second identifier, and the processing procedure in step 102 may be as follows: and the DCU allocates a first communication address for the first identifier and a second communication address for the second identifier according to the identifier notification message, and stores the first identifier and the first communication address pair and the second identifier and the second communication address pair.
In implementation, after receiving the identifier notification message sent by the master-slave station, the DCU may parse the identifier notification message to obtain the first identifier and the second identifier, then may select two communication addresses (i.e., the first communication address and the second communication address) from unused communication addresses stored in advance by the DCU, allocate the first communication address to the electric meter corresponding to the first identifier, allocate the second communication address to the electric meter corresponding to the second identifier, and may store the first identifier and the first communication address pair, and store the second identifier and the second communication address pair to establish a correspondence relationship between the identifier and the communication address.
Further, the DCU may sequentially assign the first communication address and the second communication address to the first identifier and the second identifier in an order in which the first identifier and the second identifier are carried in the identifier notification message.
The DCU may be provided with an address pool, and the address pool may store all communication addresses, and mark a communication address already allocated to the electricity meter as a used communication address, and mark an unallocated communication address as an unused communication address. Alternatively, the DCU may store only unused communication addresses (i.e., unassigned communication addresses) in the address pool. Alternatively, the DCU may have two address pools, storing used communication addresses (i.e., communication addresses already assigned to the electricity meter) and unused communication addresses (i.e., communication addresses not assigned), respectively.
Because the communication address of the electric meter is represented by 8-bit binary number, after receiving the first identifier and the second identifier, the DCU can acquire the first communication address and the second communication address in the unused communication addresses according to the sequence of the communication addresses, sequentially allocate the first communication address and the second communication address to the first identifier and the second identifier according to the sequence of the first identifier and the second identifier carried in the identifier notification message, and correspondingly record the identifier of the electric meter and the communication address. For example, if the DCU acquires that the currently unused communication addresses are 00001100, 00001101, 00001110, and 00001111 from the address pool, and the received identifiers are 1230 and 1231, 00001100 may be allocated to the electric meter corresponding to 1230, and 00001101 may be allocated to the electric meter corresponding to 1231.
And 103, broadcasting and sending a communication address allocation message by the DCU, wherein the communication address allocation message comprises a first identifier and a first communication address pair, so that the first intelligent meter with the first identifier configures a first communication address.
In an implementation, after the DCU configures a first communication address for a first electric meter having a first identifier, the first communication address and the first identifier may be paired in a communication address assignment message, which is a broadcast message, and then the communication address assignment message may be transmitted in a broadcast form to the electric meter connected to the DCU. And the DCU and the electric meter adopt 485 communication protocols for communication. The communication address allocation message broadcast by the DCU to the electric meter may be a Modbus format message, or may be a High-Level Data Link Control (HDLC) format message.
The messages in the Modbus format are as follows:
Figure BDA0000824778190000101
the address field is 8 bits (bit) for writing the destination address, usually represented by an 8-bit binary number. The address range is decimal 0-255, wherein 0 is a broadcast address, 248-255 are reserved addresses, and the addresses which can be allocated to the nodes are 1-247. In the invention, in the communication address allocation message broadcast by the DCU to the electric meter, 00000000 is written in the address field.
The function domain can use self-defined function code to specially indicate address allocation, the function code needs to be distinguished from other function codes so as to be convenient for the electric meter to identify, and the specific value of the function code can be defined by the manufacturer of each electric meter.
The data field is used for carrying communication data. In the invention, the DCU writes the identifier and the communication address pair in the data field in the communication address allocation message broadcast and sent to the electric meter. The data format in the data field may be as follows:
{
an identifier;
a communication address;
}
the DCU may allocate a communication address to one electric meter at a time or allocate communication addresses to a plurality of electric meters at a time, and in the case where the DCU allocates communication addresses to a plurality of electric meters at a time, the identifier and communication address pairs of different electric meters may be written into the data field together in the above-described format.
The messages in the HDLC format are as follows:
Figure BDA0000824778190000102
wherein 0x7e is used to indicate the beginning and end of the message.
The destination address field may be 16 bits (bit) for writing the destination address and the source address field is 16 bits (bit) for writing the source address, all typically expressed as hexadecimal numbers. The address range may be 0 to 0x3FFF, where 0x3FFF is a broadcast address, 0x00002 to 0x000F is a reserved address, and the rest of the addresses may be allocated to nodes. In the invention, when the communication address distribution message broadcast and sent to the electric meter by the DCU adopts a message in an HDLC format, the address of the DCU can be written in the source address field, and the broadcast address 0x3FFF can be written in the destination address field.
The user data information is used to carry communication data. The DCU may write the identifier and communication address pair in the user data information. The data format in the user data information can be the same as that of the Modbus message.
The DCU may allocate a communication address to one smart meter at a time, or allocate a communication address to a plurality of smart meters at a time, and for the case where the DCU allocates a communication address to a plurality of electricity meters at a time, the identifier and communication address pairs of different electricity meters may be written into the user data information together according to the above-defined data format.
Optionally, after the first meter with the first identifier successfully configures the first communication address, the first meter with the first identifier may send an address configuration success message to the DCU, and correspondingly, the DCU may process the address configuration success message as follows: the DCU receives an address configuration success message sent by a first intelligent meter with a first identifier, wherein the address configuration success message comprises the first identifier. The address configuration success message also comprises the first communication address.
After receiving the address configuration success message of the first electric meter, the DCU may confirm that the address is successfully configured for the first electric meter. If the DCU does not receive the address configuration success message of the first electric meter within the preset time after the DCU broadcasts and sends the communication address allocation message, the DCU considers that the first electric meter does not successfully configure the address this time, and can re-broadcast and send the communication address allocation message, wherein the DCU carries the first identifier and the first communication address pair of the first electric meter. This may improve the accuracy of address assignment. In the case of allocating communication addresses to a plurality of electric meters at a time, if the address configuration success message of one (or some) electric meter is not received within the preset time length, the DCU considers that the (some) electric meter(s) does not successfully configure the address, and when the communication address allocation message is broadcast again, only the identifier and the communication address pair of the (some) electric meter(s) need to be carried in the message. Therefore, the efficiency of address allocation is improved, and the accuracy is ensured.
As shown in fig. 2, the processing flow of the electricity meter in the method may include the following steps:
step 201, the intelligent meter receives a communication address assignment message sent by DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, and the first communication address is assigned by the DCU according to the first identifier.
In implementation, after the DCU broadcasts the communication address assignment message to the electric meter, the electric meter may receive the communication address assignment message sent by the DCU, and then may parse the communication address assignment message to obtain the first identifier and the first communication address therein, so as to perform subsequent processing.
In step 202, when the smart meter determines that the first identifier is the identifier of the smart meter, the smart meter configures a first communication address.
In implementation, after the electric meter acquires the first identifier and the first communication address in the communication address allocation message, the electric meter may acquire the identifier of the electric meter, and if the first identifier is the same as (identical to) the identifier of the electric meter, the electric meter may store the first communication address, and use the first communication address as the communication address of the electric meter. If the first identifier in the communication address assignment message is different (not identical) from the identifier of the meter, the communication address assignment message may be discarded.
Optionally, after the configuration of the smart meter is successful, the DCU may be notified, and the corresponding processing procedure may be as follows: and the intelligent instrument sends an address configuration success message to the DCU.
In an implementation, after the first meter having the first identifier successfully configures the first communication address, an address configuration success message may be sent to the DCU, so that the DCU can accurately know whether the first meter successfully configures the address. If the DCU does not receive the address configuration success message within the preset time after broadcasting and sending the communication address allocation message, the DCU can re-broadcast and send the communication address allocation message.
In the embodiment of the invention, the DCU receives an identifier notification message sent by the master station, the identifier notification message comprises a first identifier, the DCU allocates a first communication address for the first identifier according to the identifier notification message, and stores a first identifier and a first communication address pair, the DCU broadcasts and sends the communication address allocation message, and the communication address allocation message comprises the first identifier and the first communication address pair, so that the first intelligent instrument with the first identifier is configured with the first communication address.
The embodiment of the invention provides a system for allocating communication addresses, which comprises a master station, a Data Concentration Unit (DCU) and an intelligent instrument, wherein as shown in figure 4, the process of allocating the communication addresses for the intelligent instrument in the system comprises the following steps:
step 401, the primary station sends an identifier notification message to the DCU, where the identifier notification message includes the first identifier.
The master station may add the identifier of the smart meter that needs to be assigned a communication address, i.e. the first identifier, to the identifier notification message, which may then be sent to the corresponding DCU. Specifically, the master station knows that the smart meter is connected to the DCU, and when the master station determines that the smart meter needs to be assigned a communication address, for example, that the smart meter has just joined the system, the master station sends an identifier notification message to the DCU to which the smart meter is connected, the identifier notification message including the identifier of the smart meter, i.e., the first identifier.
Of course, the master station may issue a plurality of identifiers to the DCU at a time, so that the DCU assigns communication addresses to the intelligent meters corresponding to the plurality of identifiers, respectively.
The DCU may parse the identifier notification message, obtain the first identifier, and may store the received first identifier.
Step 402, the DCU receives the identifier notification message sent by the master station, allocates a first communication address to the first identifier according to the identifier notification message, and stores a pair of the first identifier and the first communication address.
In practice, the DCU may store in advance a communication address that can be allocated for the electric meter, and may record a used communication address and an unused communication address for the allocation process. The communication address of the meter may be represented by an 8-bit binary number. After receiving the identifier notification message sent by the host-and-receive station, the DCU parses the identifier notification message to obtain the first identifier, may then determine an unused communication address from the communication addresses stored in advance by the DCU, obtain the first communication address from the unused communication address, may further allocate the first communication address to the electric meter corresponding to the first identifier, may store the identifier and communication address pair, and establish a correspondence relationship between the identifier and the communication address, for example, as shown in table 1.
In step 403, the DCU broadcasts and sends a communication address assignment message, where the communication address assignment message includes the first identifier and the first communication address pair.
In an implementation, after the DCU configures a first communication address for a first electric meter having a first identifier, the first communication address and the first identifier pair may be placed in a communication address assignment message and then transmitted to the electric meter connected to the DCU in a broadcast manner. The DCU and the electricity meter may communicate using a 485 communication protocol. In practice, the communication address assignment message broadcast by the DCU to the electric meter may be a Modbus format message or a format message.
In step 404, the smart meter receives a communication address assignment message sent by DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair.
In implementation, the electric meter may receive the communication address assignment message broadcast by the DCU, and may then parse the communication address assignment message to obtain the first identifier and the first communication address therein for subsequent processing.
In step 405, when the smart meter determines that the first identifier is an identifier of itself (i.e., the smart meter), the smart meter configures a first communication address.
In implementation, after the electric meter acquires the first identifier and the first communication address in the communication address allocation message, the electric meter may acquire the identifier of the electric meter, and if the first identifier is the same as (identical to) the identifier of the electric meter, the electric meter may store the first communication address, and use the first communication address as its own communication address. If the first identifier is different (not identical) to the identifier of the meter, the communication address assignment message may be discarded.
In the embodiment of the invention, the DCU receives an identifier notification message sent by the master station, the identifier notification message comprises a first identifier, the DCU allocates a first communication address for the first identifier according to the identifier notification message, and stores a first identifier and a first communication address pair, the DCU broadcasts and sends the communication address allocation message, and the communication address allocation message comprises the first identifier and the first communication address pair, so that the first intelligent instrument with the first identifier is configured with the first communication address.
In addition, the embodiment of the invention also provides a processing process for inquiring the data of the intelligent instrument based on the communication address allocated to the intelligent instrument, wherein the intelligent instrument can be an intelligent electric meter, an intelligent water meter, an intelligent gas meter or the like. In the embodiment, the smart meter is taken as an example for explanation, and other situations are similar. As shown in fig. 5, the process of querying the smart meter data may specifically include the following steps:
step 501, receiving a first data query message sent by a master station by a DCU, where the first data query message includes a first identifier.
In implementation, an application program for querying electric meter data may be installed in the master station, and a maintenance person may start the application program, may then select an electric meter (i.e., a first electric meter) that needs to query electric meter data, click a first electric meter data query option, and the master station may receive a data query instruction corresponding to the first electric meter, and may then send a first data query message to the DCU, where the first data query message may carry a first identifier of the first electric meter. Or, the master station may send a first data query message to the DCU when a preset query period is reached, where the first data query message includes the first identifier of the first electric meter.
In addition, the maintenance personnel can also select the DCU of the region needing to inquire the electric meter data in the application program, and then click on the electric meter data inquiry option. The master station may receive an electric meter data query instruction corresponding to the DCU, may then obtain an identifier of the DCU, may further determine, according to a correspondence between pre-stored identifiers and the identifier of the DCU, an identifier of an electric meter connected to the DCU, and may then send a first data query message to the DCU, where the first data query message includes identifiers of a plurality of electric meters connected to the DCU. Or, the maintenance personnel may send a data query message (which may be referred to as a third data query message) that does not carry the identifier to the DCU through the master station, and after receiving the third data query message, the DCU may send the data query message to all the electric meters connected to the DCU, thereby performing the electric meter data query.
Step 502, the DCU acquires the first communication address according to the first identifier.
In implementation, after receiving the first data query message sent by the master station, the DCU may parse the first data query message to obtain the first identifier in the first data query message, and then may determine the first communication address corresponding to the first identifier according to the pre-stored correspondence between the identifier and the communication address,
step 503, the DCU sends a second data query message to the first smart meter having the first identifier, the second data query message including the first communication address.
In an implementation, after the DCU obtains the first communication address, a second data query message may be sent to the first smart meter having the first identifier. The DCU may write the first communication address into an address field of the message for the case where the second data query message is a Modbus format message, and may write the first communication address into a destination address field of the message for the case where the second data query message is an HDLC format message.
And step 504, the first intelligent meter receives a second data query message sent by the DCU, wherein the second data query message comprises the first communication address.
In an implementation, after the DCU sends the second data query message to the first electric meter based on the first communication address, the first electric meter may receive the second data query message sent by the DCU, and may then parse the second data query message to obtain the first communication address therein.
And 505, according to the second data query message, the first intelligent instrument acquires the current data and sends a first feedback message to the DCU, wherein the first feedback message comprises the first communication address and the current data of the first intelligent instrument.
In implementation, the first electric meter may determine whether the first communication address is the same as the communication address used by itself, and if so, may obtain current electric meter data, and may add the electric meter data and the first communication address to the first feedback message and send the first feedback message to the DCU. The first meter may write the first communication address into an address field of the message in case the first feedback message is a Modbus-formatted message, and may write the first communication address into a source address field of the message in case the first feedback message is an HDLC-formatted message.
Step 506, the DCU receives a first feedback message sent by the first intelligent instrument, where the first feedback message includes the first communication address and the current data of the first intelligent instrument.
In an implementation, after the first electric meter sends the first feedback message to the DCU, the DCU may receive the first feedback message, and then may parse the first feedback message to obtain the first communication address and the electric meter data of the first electric meter, so as to perform subsequent processing.
And 507, the DCU acquires the first identifier according to the first communication address in the first feedback message, and sends a second feedback message to the master station, wherein the second feedback message comprises the current data of the first intelligent instrument and the first identifier.
In implementation, after the DCU acquires the first communication address and the electric meter data of the first electric meter, the DCU may determine the first identifier corresponding to the first communication address according to a pre-stored correspondence between the identifier and the communication address, and then may add the electric meter data of the first electric meter and the first identifier to the second feedback message, and may further send the second feedback message to the master station.
In the embodiment of the invention, the DCU receives an identifier notification message sent by the master station, the identifier notification message comprises a first identifier, the DCU allocates a first communication address for the first identifier according to the identifier notification message, and stores a first identifier and a first communication address pair, the DCU broadcasts and sends the communication address allocation message, and the communication address allocation message comprises the first identifier and the first communication address pair, so that the first intelligent instrument with the first identifier is configured with the first communication address.
Based on the same technical concept, an embodiment of the present invention provides a DCU, configured to implement the function of the DCU in the foregoing method for allocating a communication address, as shown in fig. 6, where the DCU includes:
a first receiving module 610, configured to receive an identifier notification message sent by a master station, where the identifier notification message includes a first identifier;
an allocating module 620, configured to allocate a first communication address for the first identifier according to the identifier notification message, and store the first identifier and the first communication address pair;
a first sending module 630, configured to broadcast a communication address assignment message, where the communication address assignment message includes the first identifier and the first communication address pair, so that a first smart meter having the first identifier configures the first communication address.
Optionally, the identifier notification message further includes a second identifier;
the allocating module 620 is specifically configured to: according to the identifier notification message, allocating the first communication address to the first identifier, allocating a second communication address to the second identifier, and saving the first identifier and the first communication address pair and the second identifier and the second communication address pair;
the communication address allocation message also comprises the second identifier and the second communication address pair, so that a second intelligent meter with the second identifier configures the second communication address.
Optionally, the DCU further includes:
the second receiving module is configured to receive an address configuration success message sent by the first smart meter with the first identifier, where the address configuration success message includes the first identifier.
Optionally, the DCU further includes:
a third receiving module, configured to receive a first data query message sent by the master station, where the first data query message includes the first identifier;
an obtaining module, configured to obtain the first communication address according to the first identifier;
a second sending module, configured to send a second data query message to the first smart meter with the first identifier, where the second data query message includes the first communication address;
a fourth receiving module, configured to receive a first feedback message sent by the first intelligent instrument, where the first feedback message includes the first communication address and current data of the first intelligent instrument;
and a third sending module, configured to obtain the first identifier according to the first communication address in the first feedback message, and send a second feedback message to the master station, where the second feedback message includes the current data of the first intelligent instrument and the first identifier.
The embodiment of the present application further provides another DCU, configured to implement the function of the DCU in the method for allocating a communication address, and please refer to fig. 7 for a schematic structural diagram of the DCU. The DCU includes a processor 710, a receiver 720, and a transmitter 730; the processor 710, the receiver 720 and the transmitter 730 are connected with each other through a bus 740; wherein:
the receiver 720 is configured to receive an identifier notification message sent by a master station, where the identifier notification message includes a first identifier;
the processor 710 is configured to allocate a first communication address to the first identifier according to the identifier notification message, and store a pair of the first identifier and the first communication address;
the transmitter 730 is configured to broadcast a communication address assignment message, where the communication address assignment message includes the first identifier and the first communication address pair, so that the first smart meter having the first identifier configures the first communication address.
The DCU may further include a memory 750, and the memory 750 stores a correspondence table for storing the first identifier and the first communication address pair.
Optionally, the identifier notification message further includes a second identifier; accordingly, the processor 710 is specifically configured to: according to the identifier notification message, allocating the first communication address to the first identifier, allocating a second communication address to the second identifier, and saving the first identifier and the first communication address pair and the second identifier and the second communication address pair;
the communication address allocation message also comprises the second identifier and the second communication address pair, so that a second intelligent meter with the second identifier configures the second communication address.
Optionally, the processor 710 is specifically configured to: and sequentially allocating the first communication address and the second communication address to the first identifier and the second identifier according to the sequence of the first identifier and the second identifier carried in the identifier notification message.
The Processor 710 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, etc.
When the processor 710 is a CPU, the memory 750 may also be used for storing programs. In particular, the program may include program code comprising computer operating instructions. Memory 750 may comprise RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The processor 710 executes the program codes stored in the memory 750 to realize the above functions.
Optionally, the receiver 720 is further configured to receive an address configuration success message sent by the first smart meter with the first identifier, where the address configuration success message includes the first identifier.
Optionally, the receiver 720 is further configured to receive a first data query message sent by the master station, where the first data query message includes a first identifier;
the processor 710 is further configured to obtain the first communication address according to the first identifier, and send a second data query message to the first smart meter having the first identifier through the transmitter 730, where the second data query message includes the first communication address;
the receiver 720 is further configured to receive a first feedback message sent by the first smart meter, where the first feedback message includes the first communication address and current data of the first smart meter;
the processor 710 is further configured to obtain the first identifier according to the first communication address in the first feedback message, and send a second feedback message to the master station through the transmitter 730, where the second feedback message includes the current data of the first smart meter and the first identifier.
The details of the embodiment that are not described in detail herein can be referred to the method shown in fig. 1 and fig. 4-5 of the present invention, and are not described herein again.
In the embodiment of the invention, the DCU receives an identifier notification message sent by the master station, the identifier notification message comprises a first identifier, the DCU allocates a first communication address for the first identifier according to the identifier notification message, and stores a first identifier and a first communication address pair, the DCU broadcasts and sends the communication address allocation message, and the communication address allocation message comprises the first identifier and the first communication address pair, so that the first intelligent instrument with the first identifier is configured with the first communication address.
Based on the same technical concept, an embodiment of the present invention provides an intelligent meter, configured to implement the function of the intelligent meter in the method for allocating a communication address, as shown in fig. 8, where the intelligent meter includes:
a first receiving module 810, configured to receive a communication address assignment message sent by a DCU in a broadcast manner, where the communication address assignment message includes a first identifier and a first communication address pair, and the first communication address is assigned by the DCU according to the first identifier;
a configuration module 820, configured to configure the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
Optionally, the smart meter further includes:
a first sending module, configured to send an address assignment success message to the DCU, where the address assignment success message includes the first identifier.
Optionally, the smart meter further includes:
a second receiving module, configured to receive a second data query message sent by the DCU, where the second data query message includes the first communication address;
and the second sending module is used for acquiring current data according to the second data query message and sending a first feedback message to the DCU, wherein the first feedback message comprises the first communication address and the current data of the intelligent instrument.
Based on the same technical concept as the method for allocating the communication address, an embodiment of the present application further provides another smart meter, configured to implement the function of the smart meter in the method for allocating the communication address, and a schematic structural diagram of the smart meter please refer to fig. 9. The smart meter includes a processor 910, a receiver 920, and a transmitter 930; the processor 910, the receiver 920 and the transmitter 930 are connected to each other through a bus 940; wherein:
the receiver 920 is configured to receive a communication address assignment message sent by a DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, and the first communication address is assigned by the DCU according to the first identifier;
the processor 910 is configured to configure the first communication address when it is determined that the first identifier is an identifier of the smart meter.
The smart meter may further include a memory 950, and the first communication address and the identifier of the smart meter are stored in the memory 950.
The processor 910 may be a general-purpose processor including a central processing unit CPU, NP, etc.; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, etc.
When the processor 910 is a CPU, the memory 950 may also be used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory 950 may comprise RAM and may also include non-volatile memory, such as at least one disk memory. The processor 910 executes the program codes stored in the memory 950 to implement the above-described functions.
Optionally, the transmitter 930 is configured to send an address configuration success message to the DCU, where the address configuration success message includes the first identifier.
Optionally, the receiver 920 is further configured to receive a second data query message sent by the DCU, where the second data query message includes the first communication address;
the processor 910 is further configured to obtain current data of the smart meter according to the second data query message, and send a first feedback message to the DCU through the sender, where the first feedback message includes the first communication address and the current data of the smart meter.
The memory 950 may also be used to store current data for the smart meter.
The details of the embodiment that are not described in detail herein can be referred to the method shown in fig. 2 and fig. 4-5, and are not repeated herein.
In the embodiment of the invention, the intelligent instrument receives a communication address allocation message sent by DCU broadcasting, wherein the communication address allocation message comprises a communication address allocated to the intelligent instrument by the DCU; the intelligent instrument obtains the communication address corresponding to the identifier of the intelligent instrument according to the communication address allocation message, and stores (automatically configures) the communication address, so that the deployment cost of manually configuring the communication address for the intelligent instrument can be reduced, manual configuration errors are avoided, and the accuracy of communication address allocation is improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that are within the spirit of the present invention are intended to be included therein.

Claims (23)

1. A method for assigning communication addresses, comprising:
a Data Concentration Unit (DCU) receives an identifier notification message sent by a master station, wherein the identifier notification message comprises a first identifier, the DCU is communicated with the master station, and intelligent meters of all users in a first region are accessed into the DCU;
the DCU acquires a first communication address from prestored unused communication addresses according to the identifier notification message, allocates the first communication address to the first identifier, and stores the first identifier and the first communication address pair;
the DCU broadcasts and sends a communication address allocation message to the first region, wherein the communication address allocation message comprises the first identifier and the first communication address pair, so that a first intelligent meter with the first identifier configures the first communication address.
2. The method of claim 1, wherein the identifier notification message further comprises a second identifier;
the DCU acquiring a first communication address from pre-stored unused communication addresses according to the identifier notification message, allocating the first communication address to the first identifier, and storing the first identifier and the first communication address pair, including:
the DCU acquires a first communication address and a second communication address from prestored unused communication addresses according to the identifier notification message, allocates the first communication address to the first identifier, allocates the second communication address to the second identifier, and stores the first identifier and the first communication address pair and the second identifier and the second communication address pair;
the communication address allocation message also comprises the second identifier and the second communication address pair, so that a second intelligent meter with the second identifier configures the second communication address.
3. The method according to claim 2, wherein the DCU acquires a first communication address and a second communication address from the pre-stored unused communication addresses according to the identifier notification message, allocates the first communication address to the first identifier, and allocates the second communication address to the second identifier, and the method comprises:
and the DCU sequentially allocates the first communication address and the second communication address to the first identifier and the second identifier according to the sequence of the first identifier and the second identifier carried in the identifier notification message.
4. The method of claim 1, wherein after the DCU broadcasts the communication address assignment message to the first region, the method further comprises:
and the DCU receives an address configuration success message sent by the first intelligent meter with the first identifier in the first region, wherein the address configuration success message comprises the first identifier.
5. The method according to any one of claims 1 to 4, further comprising:
the DCU receives a first data query message sent by the master station, wherein the first data query message comprises the first identifier;
the DCU acquires the first communication address according to the first identifier;
the DCU transmitting a second data query message to the first smart meter in the first region having the first identifier, the second data query message including the first communication address;
the DCU receives a first feedback message sent by the first intelligent instrument, wherein the first feedback message comprises the first communication address and the current data of the first intelligent instrument;
and the DCU acquires the first identifier according to the first communication address in the first feedback message, and sends a second feedback message to the master station, wherein the second feedback message comprises the current data of the first intelligent instrument and the first identifier.
6. A method for assigning communication addresses, comprising:
the method comprises the steps that an intelligent instrument receives a communication address allocation message sent by a Data Concentration Unit (DCU) in a broadcast mode, wherein the communication address allocation message comprises a first identifier and a first communication address pair, the first communication address is allocated by the DCU according to the first identifier, the first communication address is obtained by the DCU from a prestored unused communication address, the DCU is communicated with a master station, the first identifier is sent to the DCU by the master station, and the intelligent instruments of all users in a first region are accessed into the DCU of the region;
when the smart meter determines that the first identifier is an identifier of the smart meter, the smart meter configures the first communication address.
7. The method of claim 6, wherein after the smart meter configures the first communication address, the method further comprises:
the intelligent instrument sends an address configuration success message to the DCU so as to feed back the first communication address allocated by the DCU successfully configured by the intelligent instrument to the DCU.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
the intelligent instrument receives a second data query message sent by the DCU, wherein the second data query message comprises the first communication address;
and according to the second data query message, the intelligent instrument acquires current data and sends a first feedback message to the DCU, wherein the first feedback message comprises the first communication address and the current data of the intelligent instrument.
9. A DCU comprising a receiver, a transmitter and a processor; wherein,
the receiver is used for receiving an identifier notification message sent by a master station, the identifier notification message comprises a first identifier, the DCU communicates with the master station, and the intelligent meters of all users in a first region are accessed into the DCU of the region;
the processor is configured to acquire a first communication address from pre-stored unused communication addresses according to the identifier notification message, allocate the first communication address to the first identifier, and store a pair of the first identifier and the first communication address;
the transmitter is used for broadcasting and transmitting a communication address assignment message to the first region, wherein the communication address assignment message comprises the first identifier and the first communication address pair, so that a first intelligent meter with the first identifier configures the first communication address.
10. The DCU of claim 9, wherein the identifier notification message further includes a second identifier;
the processor is specifically configured to acquire a first communication address and a second communication address from pre-stored unused communication addresses according to the identifier notification message, allocate the first communication address to the first identifier, allocate the second communication address to the second identifier, and store a pair of the first identifier and the first communication address and a pair of the second identifier and the second communication address;
the communication address allocation message also comprises the second identifier and the second communication address pair, so that a second intelligent meter with the second identifier configures the second communication address.
11. The DCU of claim 9, wherein the receiver is further configured to receive an address configuration success message sent by the first smart meter having the first identifier in the first region, wherein the address configuration success message includes the first identifier.
12. The DCU of any one of claims 9 to 11,
the receiver is further configured to receive a first data query message sent by the master station, where the first data query message includes a first identifier;
the processor is further configured to obtain the first communication address according to the first identifier, and send a second data query message to a first smart meter in the first region, where the first smart meter has the first identifier, through the transmitter, where the second data query message includes the first communication address;
the receiver is further configured to receive a first feedback message sent by the first smart meter, where the first feedback message includes the first communication address and current data of the first smart meter;
the processor is further configured to obtain the first identifier according to the first communication address in the first feedback message, and send a second feedback message to the master station through the sender, where the second feedback message includes current data of the first smart meter and the first identifier.
13. A DCU, comprising:
the first receiving module is used for receiving an identifier notification message sent by a master station, wherein the identifier notification message comprises a first identifier, the DCU is communicated with the master station, and the intelligent meters of all users in a first region are accessed into the DCU of the region;
the allocation module is used for acquiring a first communication address from prestored unused communication addresses according to the identifier notification message, allocating the first communication address to the first identifier and storing the first identifier and the first communication address pair;
the first sending module is used for broadcasting and sending a communication address assignment message to the first region, wherein the communication address assignment message comprises the first identifier and the first communication address pair, so that a first intelligent meter with the first identifier configures the first communication address.
14. The DCU of claim 13, wherein the identifier notification message further comprises a second identifier;
the allocation module is specifically configured to: according to the identifier notification message, acquiring a first communication address and a second communication address from prestored unused communication addresses, allocating the first communication address to the first identifier, allocating the second communication address to the second identifier, and storing the first identifier and the first communication address pair and the second identifier and the second communication address pair;
the communication address allocation message also comprises the second identifier and the second communication address pair, so that a second intelligent meter with the second identifier configures the second communication address.
15. The DCU of claim 13, further comprising:
a second receiving module, configured to receive an address configuration success message sent by the first smart meter in the first region, where the first smart meter has the first identifier, where the address configuration success message includes the first identifier.
16. The DCU according to any of claims 13 to 15, further comprising:
a third receiving module, configured to receive a first data query message sent by the master station, where the first data query message includes the first identifier;
an obtaining module, configured to obtain the first communication address according to the first identifier;
a second sending module, configured to send a second data query message to the first smart meter in the first region having the first identifier, where the second data query message includes the first communication address;
a fourth receiving module, configured to receive a first feedback message sent by the first intelligent instrument, where the first feedback message includes the first communication address and current data of the first intelligent instrument;
and a third sending module, configured to obtain the first identifier according to the first communication address in the first feedback message, and send a second feedback message to the master station, where the second feedback message includes the current data of the first intelligent instrument and the first identifier.
17. A smart meter, comprising:
a receiver, configured to receive a communication address assignment message sent by a DCU in a broadcast manner, where the communication address assignment message includes a first identifier and a first communication address pair, the first communication address is assigned by the DCU according to the first identifier, the first communication address is obtained by the DCU from a prestored unused communication address, the DCU communicates with a master station, the first identifier is sent to the DCU by the master station, and intelligent meters of all users in a first region are accessed to the DCU in the region;
a processor configured to configure the first communication address upon determining that the first identifier is an identifier of the smart meter.
18. The smart meter of claim 17, further comprising a transmitter;
the sender is configured to send an address configuration success message to the DCU, where the address configuration success message includes the first identifier.
19. The smart meter of claim 17 or 18,
the receiver is further configured to receive a second data query message sent by the DCU, where the second data query message includes the first communication address;
the processor is further configured to obtain current data of the smart meter according to the second data query message, and send a first feedback message to the DCU through the sender, where the first feedback message includes the first communication address and the current data of the smart meter.
20. A smart meter, comprising:
the first receiving module is used for receiving a communication address allocation message sent by a Data Concentration Unit (DCU) in a broadcast manner, wherein the communication address allocation message comprises a first identifier and a first communication address pair, the first communication address is allocated by the DCU according to the first identifier, the first communication address is obtained by the DCU from a prestored unused communication address, the DCU is communicated with a master station, the first identifier is sent to the DCU by the master station, and intelligent instruments of all users in a first region are accessed into the DCU in the region;
a configuration module to configure the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
21. The smart meter of claim 20, further comprising:
a first sending module, configured to send an address assignment success message to the DCU, where the address assignment success message includes the first identifier.
22. The smart meter of claim 20 or 21, further comprising:
a second receiving module, configured to receive a second data query message sent by the DCU, where the second data query message includes the first communication address;
and the second sending module is used for acquiring current data according to the second data query message and sending a first feedback message to the DCU, wherein the first feedback message comprises the first communication address and the current data of the intelligent instrument.
23. A system for distributing communication addresses is characterized by comprising a master station, a Data Concentration Unit (DCU) and intelligent instruments, wherein the DCU is communicated with the master station, and the intelligent instruments of all users in a first region are accessed into the DCU of the region; wherein:
the master station is used for sending an identifier notification message to the DCU, wherein the identifier notification message comprises a first identifier;
the DCU is configured to receive the identifier notification message, acquire a first communication address from a pre-stored unused communication address according to the identifier notification message, allocate the first communication address to the first identifier, store the first identifier and the first communication address pair, and broadcast and send a communication address allocation message to the first area, where the communication address allocation message includes the first identifier and the first communication address pair;
the intelligent meter is used for receiving the communication address allocation message and configuring the first communication address when the first identifier is determined to be the identifier of the intelligent meter.
CN201510678813.0A 2015-10-19 2015-10-19 Method, device and system for distributing communication addresses of intelligent instrument Active CN106603735B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510678813.0A CN106603735B (en) 2015-10-19 2015-10-19 Method, device and system for distributing communication addresses of intelligent instrument
PCT/CN2016/084749 WO2017067179A1 (en) 2015-10-19 2016-06-03 Method, apparatus and system for allocating communication address to smart meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510678813.0A CN106603735B (en) 2015-10-19 2015-10-19 Method, device and system for distributing communication addresses of intelligent instrument

Publications (2)

Publication Number Publication Date
CN106603735A CN106603735A (en) 2017-04-26
CN106603735B true CN106603735B (en) 2020-06-26

Family

ID=58554716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510678813.0A Active CN106603735B (en) 2015-10-19 2015-10-19 Method, device and system for distributing communication addresses of intelligent instrument

Country Status (2)

Country Link
CN (1) CN106603735B (en)
WO (1) WO2017067179A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911493A (en) * 2017-10-31 2018-04-13 山东智造时代电气有限公司 Realize the method that the address of 485 equipment is distributed automatically in backstage
CN109936640A (en) * 2017-12-19 2019-06-25 苏州阿特斯阳光电力科技有限公司 From the address distribution method and device of node device
CN108270862A (en) * 2018-01-18 2018-07-10 华立科技股份有限公司 Ammeter data acquisition methods and device
CN110070703A (en) * 2019-05-06 2019-07-30 南方电网科学研究院有限责任公司 Communication method, device, system and medium of low-voltage meter reading communication system
CN110635984A (en) * 2019-09-24 2019-12-31 杭州海兴电力科技股份有限公司 Method, device and system for obtaining communication address of electric meter
CN111586204A (en) * 2020-05-12 2020-08-25 广州极飞科技有限公司 Communication address allocation method, communication system, master device and slave device
CN111629080A (en) * 2020-05-22 2020-09-04 浙江东鸿电子科技有限公司 Method for automatically allocating electric meter address
CN112510833A (en) * 2020-11-27 2021-03-16 珠海格力电器股份有限公司 Ammeter parameter configuration method, device and system
CN113242170B (en) * 2021-05-21 2023-03-21 深圳易马达科技有限公司 Address allocation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651722A (en) * 2009-08-28 2010-02-17 华为技术有限公司 Method, device and system for automatically allocating IP address
CN101763717A (en) * 2008-11-04 2010-06-30 上海协霖电子有限公司 Data collecting device based on DCPLC mode
CN102157057A (en) * 2011-05-09 2011-08-17 上海大学 Wi-Fi (Wireless Fidelity)-based wireless meter reading device
CN103116975A (en) * 2013-01-21 2013-05-22 孙建东 Direct reading type remote meter reading system
JP2014110462A (en) * 2012-11-30 2014-06-12 Toshiba Corp Authentication device, method thereof, and control program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5895415B2 (en) * 2011-09-19 2016-03-30 株式会社リコー COMMUNICATION SYSTEM, COMMUNICATION DEVICE, PROGRAM, AND ALLOCATION DEVICE
EP2804345B1 (en) * 2012-01-10 2017-03-15 Mitsubishi Electric Corporation Ip address distribution system and ip address distribution method
CN102685273B (en) * 2012-06-08 2015-08-19 陈梓平 The address distribution method of smart machine
US9256502B2 (en) * 2012-06-19 2016-02-09 Oracle International Corporation Method and system for inter-processor communication
CN103686672B (en) * 2012-09-24 2016-12-28 华为终端有限公司 The method and apparatus of transmission data
CN103475747B (en) * 2013-08-21 2017-04-12 广东浩迪创新科技有限公司 Address information sending method of electric energy meter networked system capable of automatically sending address information
CN104579942B (en) * 2013-10-17 2019-04-16 中兴通讯股份有限公司 The retransmission method and device of network message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763717A (en) * 2008-11-04 2010-06-30 上海协霖电子有限公司 Data collecting device based on DCPLC mode
CN101651722A (en) * 2009-08-28 2010-02-17 华为技术有限公司 Method, device and system for automatically allocating IP address
CN102157057A (en) * 2011-05-09 2011-08-17 上海大学 Wi-Fi (Wireless Fidelity)-based wireless meter reading device
JP2014110462A (en) * 2012-11-30 2014-06-12 Toshiba Corp Authentication device, method thereof, and control program
CN103116975A (en) * 2013-01-21 2013-05-22 孙建东 Direct reading type remote meter reading system

Also Published As

Publication number Publication date
WO2017067179A1 (en) 2017-04-27
CN106603735A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106603735B (en) Method, device and system for distributing communication addresses of intelligent instrument
CN102325201B (en) Method for allocating network addresses to slave node equipment in Modbus communication network
WO2019010797A1 (en) Method and device for selecting operating frequency point
EP3422655B1 (en) Method for managing address of meter device, and acquisition terminal and meter device
KR20130053650A (en) Method and apparatus for transmitting data in a device to device communition service system
WO2015062479A1 (en) Method, device and system for monitoring terminal status
CN109769038A (en) A kind of method and device of configuring internet protocol address
WO2016154918A1 (en) Data processing method, apparatus and device
CN112714203A (en) Address allocation method for parallel multi-battery pack in UPS system and UPS system
CN103795573A (en) Network topology generation method, device and system
CN102035899A (en) Method and device for determining addresses in IPv6 (internet protocol version 6) based LAN (local area network)
US8908583B2 (en) Method and device for allocating resources in wireless communication system
JP2016533109A (en) Method, base station and user equipment for transmitting signals in inter-device proximity service
CN115334041A (en) Method for automatically allocating addresses to communication equipment of master station and slave station, master station, slave station and system
CN113395366A (en) Network address allocation method and device
CN114900429A (en) Equipment communication parameter configuration method and system
CN104486720B (en) A kind of localization method and device
CN113612868A (en) Equipment address allocation method, device and system
WO2021035724A1 (en) Method, device and system for determining type of wireless signal
KR20110018689A (en) Multicast system and method for using shortening address based on wireless local area network, and apparatus applied to the same
CN107493216B (en) Controller area network CAN bus data processing method and device
CN114866111B (en) Address binding method, system, main control node and equipment node
CN114777928B (en) Infrared imaging monitoring and early warning method and system
CN116319680B (en) Method for dynamically distributing addresses, coupler and backboard
CN116527638B (en) Slave address automatic allocation method based on CAN bus communication

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
GR01 Patent grant
GR01 Patent grant