[go: up one dir, main page]

CN106603735A - Method, device, and system of allocating communication addresses for intelligent instruments - Google Patents

Method, device, and system of allocating communication addresses for intelligent instruments Download PDF

Info

Publication number
CN106603735A
CN106603735A CN201510678813.0A CN201510678813A CN106603735A CN 106603735 A CN106603735 A CN 106603735A CN 201510678813 A CN201510678813 A CN 201510678813A CN 106603735 A CN106603735 A CN 106603735A
Authority
CN
China
Prior art keywords
identifier
communication address
dcu
message
smart meter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510678813.0A
Other languages
Chinese (zh)
Other versions
CN106603735B (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

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

本发明实施例公开了一种分配通信地址的方法、装置和系统,属于通信技术领域。所述方法包括:数据集中单元DCU接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符;所述DCU根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;所述DCU广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。采用本发明,可以提高为各智能仪表分配通信地址的效率。

The embodiment of the invention discloses a method, device and system for allocating communication addresses, belonging to the technical field of communication. The method includes: the data centralization unit DCU receives an identifier notification message sent by the master station, and the identifier notification message includes a first identifier; Allocating a first communication address, and saving the pair of the first identifier and the first communication address; the DCU broadcasts and sends a communication address allocation message, and the communication address allocation message includes the first identifier and the A first communication address pair, so that the first smart meter with the first identifier is configured with the first communication address. By adopting the invention, the efficiency of allocating communication addresses for each smart meter 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:
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:
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.一种分配通信地址的方法,其特征在于,包括:1. A method for allocating communication addresses, comprising: 数据集中单元DCU接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符;The data concentration unit DCU receives the identifier notification message sent by the master station, and the identifier notification message includes the first identifier; 所述DCU根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;The DCU assigns a first communication address to the first identifier according to the identifier notification message, and saves the pair of the first identifier and the first communication address; 所述DCU广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。The DCU broadcasts and sends a communication address allocation message, the communication address allocation message includes the first identifier and the first communication address pair, so that the first smart meter with the first identifier configures the The first mailing address. 2.根据权利要求1所述的方法,其特征在于,所述标识符通知消息中还包括第二标识符;2. The method according to claim 1, wherein the identifier notification message further includes a second identifier; 所述DCU根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对,包括:The DCU allocates a first communication address to the first identifier according to the identifier notification message, and saves the pair of the first identifier and the first communication address, including: 所述DCU根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;The DCU allocates the first communication address to the first identifier according to the identifier notification message, allocates a second communication address to the second identifier, and saves the first identifier and the a first communication address pair and a pair of the second identifier and the second communication address; 所述通信地址分配消息中还包括所述第二标识符与所述第二通信地址对,以使具有所述第二标识符的第二智能仪表配置所述第二通信地址。The communication address allocation message further includes the pair of the second identifier and the second communication address, so that the second smart meter with the second identifier configures the second communication address. 3.根据权利要求2所述的方法,其特征在于,所述DCU根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,包括:3. The method according to claim 2, wherein the DCU assigns the first communication address to the first identifier and assigns the second communication address to the second identifier according to the identifier notification message. 2. Mailing address, including: 所述DCU按照所述标识符通知消息中携带所述第一标识符和所述第二标识符的顺序,依次为所述第一标识符和所述第二标识符分配所述第一通信地址和所述第二通信地址。The DCU sequentially assigns the first communication address to the first identifier and the second identifier according to the order in which the first identifier and the second identifier are carried in the identifier notification message and the second communication address. 4.根据权利要求1所述的方法,其特征在于,在所述DCU广播发送所述通信地址分配消息之后,所述方法还包括:4. The method according to claim 1, wherein, after the DCU broadcasts and sends the communication address assignment message, the method further comprises: 所述DCU接收具有所述第一标识符的所述第一智能仪表发送的地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。The DCU receives 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. 5.根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:5. The method according to any one of claims 1 to 4, wherein the method further comprises: 所述DCU接收所述主站发送的第一数据查询消息,所述第一数据查询消息中包括所述第一标识符;The DCU receives a first data query message sent by the master station, and the first data query message includes the first identifier; 所述DCU根据所述第一标识符,获取所述第一通信地址;The DCU acquires the first communication address according to the first identifier; 所述DCU向具有所述第一标识符的所述第一智能仪表发送第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;The DCU sends a second data query message to the first smart meter with the first identifier, and the second data query message includes the first communication address; 所述DCU接收所述第一智能仪表发送的第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述第一智能仪表的当前数据;The DCU receives a first feedback message sent by the first smart meter, and the first feedback message includes the first communication address and current data of the first smart meter; 所述DCU根据所述第一反馈消息中的所述第一通信地址获取所述第一标识符,向所述主站发送第二反馈消息,所述第二反馈消息中包括所述第一智能仪表的当前数据和所述第一标识符。The DCU obtains the first identifier according to the first communication address in the first feedback message, and sends a second feedback message to the master station, and the second feedback message includes the first intelligence Current data of the meter and said first identifier. 6.一种分配通信地址的方法,其特征在于,包括:6. A method for allocating communication addresses, comprising: 智能仪表接收数据集中单元DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;The smart meter receives the communication address assignment message broadcast by the data centralization unit DCU, the communication address assignment message includes a first identifier and a first communication address pair, and the first communication address is the DCU according to the first identification character assigned; 当所述智能仪表确定所述第一标识符为所述智能仪表的标识符时,所述智能仪表配置所述第一通信地址。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.根据权利要求6所述的方法,其特征在于,在所述智能仪表配置所述第一通信地址之后,所述方法还包括:7. The method according to claim 6, characterized in that, after the smart meter configures the first communication address, the method further comprises: 所述智能仪表向所述DCU发送地址配置成功消息,以向所述DUC反馈所述智能仪表成功配置了所述DCU分配的所述第一通信地址。The smart meter sends an address configuration success message to the DCU, so as to feed back to the DUC that the smart meter has successfully configured the first communication address allocated by the DCU. 8.根据权利要求6或7所述的方法,其特征在于,所述方法还包括:8. The method according to claim 6 or 7, further comprising: 所述智能仪表接收所述DCU发送的第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;The smart meter receives a second data query message sent by the DCU, and the second data query message includes the first communication address; 根据所述第二数据查询消息,所述智能仪表获取当前数据,并向所述DCU发送第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述智能仪表的当前数据。According to the second data query message, the smart meter acquires the current data, and sends a first feedback message to the DCU, the first feedback message includes the first communication address and the current data of the smart meter . 9.一种数据集中单元DCU,其特征在于,包括接收器,发送器和处理器;其中,9. A data concentration unit DCU is characterized in that it includes a receiver, a transmitter and a processor; wherein, 所述接收器,用于接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符;The receiver is configured to receive an identifier notification message sent by the master station, where the identifier notification message includes a first identifier; 所述处理器,用于根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;The processor is configured to assign a first communication address to the first identifier according to the identifier notification message, and store the pair of the first identifier and the first communication address; 所述发送器,用于广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。The sender is configured to broadcast and send 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 phone with the first identifier The meter configures the first communication address. 10.根据权利要求9所述的DCU,其特征在于,所述标识符通知消息中还包括第二标识符;10. The DCU according to claim 9, wherein the identifier notification message further includes a second identifier; 所述处理器,具体用于根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;The processor is specifically configured to, according to the identifier notification message, assign the first communication address to the first identifier, assign a second communication address to the second identifier, and store the first a pair of an identifier and the first communication address and a pair of the second identifier and the second communication address; 所述通信地址分配消息中还包括所述第二标识符与所述第二通信地址对,以使具有所述第二标识符的第二智能仪表配置所述第二通信地址。The communication address allocation message further includes the pair of the second identifier and the second communication address, so that the second smart meter with the second identifier configures the second communication address. 11.根据权利要求9所述的DCU,其特征在于,所述接收器,还用于接收具有所述第一标识符的所述第一智能仪表发送的地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。11. The DCU according to claim 9, wherein the receiver is further configured to receive an address configuration success message sent by the first smart meter with the first identifier, the address configuration is successful The first identifier is included in the message. 12.根据权利要求9至11任一项所述的DCU,其特征在于,12. The DCU according to any one of claims 9 to 11, characterized in that, 所述接收器,还用于接收所述主站发送的第一数据查询消息,所述第一数据查询消息中包括第一标识符;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 the first smart meter with the first identifier through the transmitter, 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 transmitter, the The second feedback message includes the current data of the first smart meter and the first identifier. 13.一种数据集中单元DCU,其特征在于,包括:13. A data centralization unit DCU, characterized in that, comprising: 第一接收模块,用于接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符;The first receiving module is configured to receive an identifier notification message sent by the master station, where the identifier notification message includes the first identifier; 分配模块,用于根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;An allocation module, configured to allocate a first communication address to the first identifier according to the identifier notification message, and store the pair of the first identifier and the first communication address; 第一发送模块,用于广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。The first sending module is configured to broadcast and send a communication address allocation message, the communication address allocation message includes the first identifier and the first communication address pair, so that the first smart phone with the first identifier The meter configures the first communication address. 14.根据权利要求13所述的DCU,其特征在于,所述标识符通知消息中还包括第二标识符;14. The DCU according to claim 13, wherein the identifier notification message further includes a second identifier; 所述分配模块,具体用于:根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;The assignment module is specifically configured to: assign the first communication address to the first identifier according to the identifier notification message, assign a second communication address to the second identifier, and save the first communication address. a pair of an identifier and the first communication address and a pair of the second identifier and the second communication address; 所述通信地址分配消息中还包括所述第二标识符与所述第二通信地址对,以使具有所述第二标识符的第二智能仪表配置所述第二通信地址。The communication address allocation message further includes the pair of the second identifier and the second communication address, so that the second smart meter with the second identifier configures the second communication address. 15.根据权利要求13所述的DCU,其特征在于,所述DCU还包括:15. The DCU according to claim 13, wherein the DCU further comprises: 第二接收模块,用于接收具有所述第一标识符的所述第一智能仪表发送的地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。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. 16.根据权利要求13至15任一项所述的DCU,其特征在于,所述DCU还包括:16. The DCU according to any one of claims 13 to 15, wherein the DCU further comprises: 第三接收模块,用于接收所述主站发送的第一数据查询消息,所述第一数据查询消息中包括所述第一标识符;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 smart meter, where the first feedback message includes the first communication address and current data of the first smart meter; 第三发送模块,用于根据所述第一反馈消息中的所述第一通信地址获取所述第一标识符,向所述主站发送第二反馈消息,所述第二反馈消息中包括所述第一智能仪表的当前数据和所述第一标识符。A third sending module, configured to acquire 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 The current data of the first smart meter and the first identifier. 17.一种智能仪表,其特征在于,包括:17. A smart meter, characterized in that it comprises: 接收器,用于接收数据集中单元DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;The receiver is configured to receive a communication address allocation message broadcast by the data centralization unit DCU, the communication address allocation message includes a first identifier and a first communication address pair, the first communication address is the DCU according to the assigned by the first identifier; 处理器,用于在确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。A processor configured to configure the first communication address when it is determined that the first identifier is the identifier of the smart meter. 18.根据权利要求17所述的智能仪表,其特征在于,所述智能仪表还包括发送器;18. The smart meter according to claim 17, further comprising a transmitter; 所述发送器,用于向所述DCU发送地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。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.根据权利要求17或18所述的智能仪表,其特征在于,19. The smart meter according to claim 17 or 18, characterized in that, 所述接收器,还用于接收所述DCU发送的第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;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; 所述处理器,还用于根据所述第二数据查询消息,获取所述智能仪表的当前数据,并通过所述发送器向所述DCU发送第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述智能仪表的当前数据。The processor is further configured to obtain the current data of the smart meter according to the second data query message, and send a first feedback message to the DCU through the transmitter, and the first feedback message includes The first communication address and the current data of the smart meter. 20.一种智能仪表,其特征在于,包括:20. A smart meter, characterized in that it comprises: 第一接收模块,用于接收数据集中单元DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;The first receiving module is used to receive the communication address allocation message broadcast and sent by the data centralization unit DCU, the communication address allocation message includes the first identifier and the first communication address pair, and the first communication address is the DCU according to the said first identifier is assigned; 配置模块,用于当所述智能仪表确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。A configuration module, configured to configure the first communication address when the smart meter determines that the first identifier is the identifier of the smart meter. 21.根据权利要求20所述的智能仪表,其特征在于,所述智能仪表还包括:21. The smart meter according to claim 20, wherein the smart meter further comprises: 第一发送模块,用于向所述DCU发送地址分配成功消息,所述地址配置成功消息中包括所述第一标识符。A first sending module, configured to send an address allocation success message to the DCU, where the address configuration success message includes the first identifier. 22.根据权利要求20或21所述的智能仪表,其特征在于,所述智能仪表还包括:22. The smart meter according to claim 20 or 21, wherein the smart meter further comprises: 第二接收模块,用于接收所述DCU发送的第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;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; 第二发送模块,用于根据所述第二数据查询消息,获取当前数据,并向所述DCU发送第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述智能仪表的当前数据。A second sending module, configured to acquire current data according to the second data query message, and send a first feedback message to the DCU, the first feedback message including the first communication address and the smart meter of the current data. 23.一种分配通信地址的系统,其特征在于,包括主站,数据集中单元DCU和智能仪表;其中:23. A system for allocating communication addresses, characterized in that it includes a master station, a data concentration unit DCU and an intelligent instrument; wherein: 所述主站,用于向所述DCU发送标识符通知消息,所述标识符通知消息中包括第一标识符;The primary station is configured to send an identifier notification message to the DCU, where the identifier notification message includes a first identifier; 所述DCU,用于接收所述标识符通知消息,根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对,广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对;The DCU is configured to receive the identifier notification message, assign a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address Yes, sending a communication address allocation message by broadcast, where the communication address allocation message includes the pair of the first identifier and the first communication address; 所述智能仪表,用于接收所述通信地址分配消息,并在确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。The smart meter is configured to receive the communication address assignment message, and configure the first communication address when it is determined that the first identifier is the identifier of the smart meter.
CN201510678813.0A 2015-10-19 2015-10-19 A method, device and system for allocating a communication address of a smart meter Active CN106603735B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510678813.0A CN106603735B (en) 2015-10-19 2015-10-19 A method, device and system for allocating a communication address of a smart meter
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 A method, device and system for allocating a communication address of a smart meter

Publications (2)

Publication Number Publication Date
CN106603735A true CN106603735A (en) 2017-04-26
CN106603735B 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 A method, device and system for allocating a communication address of a smart meter

Country Status (2)

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

Cited By (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
CN108270862A (en) * 2018-01-18 2018-07-10 华立科技股份有限公司 Ammeter data acquisition methods and device
CN109936640A (en) * 2017-12-19 2019-06-25 苏州阿特斯阳光电力科技有限公司 Address allocation method and device for slave node equipment
CN110070703A (en) * 2019-05-06 2019-07-30 南方电网科学研究院有限责任公司 A communication method, device, system and medium for a low-voltage centralized reading communication system
CN110635984A (en) * 2019-09-24 2019-12-31 杭州海兴电力科技股份有限公司 A method, device and system for obtaining a communication address of an 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
CN113242170A (en) * 2021-05-21 2021-08-10 深圳易马达科技有限公司 Address allocation method and device

Citations (9)

* 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
US20130070780A1 (en) * 2011-09-19 2013-03-21 Hiroshi HOZUMI Device, method, and system of communicating via relay device, and recording medium storing communication control program
CN103116975A (en) * 2013-01-21 2013-05-22 孙建东 Direct reading type remote meter reading system
US20130339794A1 (en) * 2012-06-19 2013-12-19 Oracle International Corporation Method and system for inter-processor communication
CN103686672A (en) * 2012-09-24 2014-03-26 华为终端有限公司 Method and device for transmitting data
JP2014110462A (en) * 2012-11-30 2014-06-12 Toshiba Corp Authentication device, method thereof, and control program
CN104579942A (en) * 2013-10-17 2015-04-29 中兴通讯股份有限公司 Network message forwarding method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5106707B1 (en) * 2012-01-10 2012-12-26 三菱電機株式会社 IP address distribution system and IP address distribution method
CN102685273B (en) * 2012-06-08 2015-08-19 陈梓平 The address distribution method of smart machine
CN103475747B (en) * 2013-08-21 2017-04-12 广东浩迪创新科技有限公司 Address information sending method of electric energy meter networked system capable of automatically sending address information

Patent Citations (9)

* 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
US20130070780A1 (en) * 2011-09-19 2013-03-21 Hiroshi HOZUMI Device, method, and system of communicating via relay device, and recording medium storing communication control program
US20130339794A1 (en) * 2012-06-19 2013-12-19 Oracle International Corporation Method and system for inter-processor communication
CN103686672A (en) * 2012-09-24 2014-03-26 华为终端有限公司 Method and device for transmitting data
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
CN104579942A (en) * 2013-10-17 2015-04-29 中兴通讯股份有限公司 Network message forwarding method and device

Cited By (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 苏州阿特斯阳光电力科技有限公司 Address allocation method and device for slave node equipment
CN108270862A (en) * 2018-01-18 2018-07-10 华立科技股份有限公司 Ammeter data acquisition methods and device
CN110070703A (en) * 2019-05-06 2019-07-30 南方电网科学研究院有限责任公司 A communication method, device, system and medium for a low-voltage centralized reading communication system
CN110635984A (en) * 2019-09-24 2019-12-31 杭州海兴电力科技股份有限公司 A method, device and system for obtaining a communication address of an 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
CN113242170A (en) * 2021-05-21 2021-08-10 深圳易马达科技有限公司 Address allocation method and device

Also Published As

Publication number Publication date
WO2017067179A1 (en) 2017-04-27
CN106603735B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN106603735B (en) A method, device and system for allocating a communication address of a smart meter
CN104219065B (en) Broadcasting method and Beacon equipment based on Beacon
WO2019010797A1 (en) Method and device for selecting operating frequency point
CN105007340B (en) Distributed CAN network supporting plug-and-play and method for automatic allocation of node addresses
CN102857382A (en) Network management equipment, access convergent equipment, access terminal equipment, and management method and system for access terminal equipment
EP3422655B1 (en) Method for managing address of meter device, and acquisition terminal and meter device
CN114968843A (en) Address allocation method and system of chip assembly based on serial connection mode
CN109769038A (en) A kind of method and device of configuring internet protocol address
CN103795573A (en) Network topology generation method, device and system
WO2016154918A1 (en) Data processing method, apparatus and device
CN107734082B (en) Address allocation method and system
CN110495157A (en) A communication system for serial communication between communication devices
CN115484684A (en) Channel resource mapping method and device, storage medium and electronic device
CN110661588B (en) Message transmission method, switching device, wireless communication equipment and storage medium
CN104509133B (en) Device-to-device closes in service method, base station and the user equipment for transmitting signal
CN114900429A (en) Equipment communication parameter configuration method and system
CN113395366B (en) A network address allocation method and device
CN113949628B (en) Automatic equipment adding method and system
CN117156598A (en) Communication link setting method and system for 5G MIMO frequency shifting system
CN107708110A (en) A kind of mark distributing method and device
CN107734634B (en) Sensor registration method, device and system
CN115334041A (en) Method for automatically allocating addresses to communication equipment of master station and slave station, master station, slave station and system
CN113767662B (en) Method, device and system for determining type of wireless signal
CN104486720B (en) A kind of localization method and device
WO2019015268A1 (en) Network system and network configuration method thereof

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