WO2017067179A1 - Method, apparatus and system for allocating communication address to smart meter - Google Patents

Method, apparatus and system for allocating communication address to smart meter Download PDF

Info

Publication number
WO2017067179A1
WO2017067179A1 PCT/CN2016/084749 CN2016084749W WO2017067179A1 WO 2017067179 A1 WO2017067179 A1 WO 2017067179A1 CN 2016084749 W CN2016084749 W CN 2016084749W WO 2017067179 A1 WO2017067179 A1 WO 2017067179A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
communication address
dcu
smart meter
message
Prior art date
Application number
PCT/CN2016/084749
Other languages
French (fr)
Chinese (zh)
Inventor
吴木林
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017067179A1 publication Critical patent/WO2017067179A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, apparatus, and system for allocating a smart meter communication address.
  • the smart meter accesses the Data Concentrating Unit (DCU), and the DCU connects to the main station of the Advanced Metering Infrastructure (AMI) through the network.
  • the master station can collect the smart meter through the network. Data, control of smart meters, etc.
  • each smart meter When the DCU communicates with the smart meter via the RS (Recommended Standard)-485 protocol, each smart meter must be assigned a communication address, also known as the 485 address. Usually, the maintenance personnel assign a corresponding 485 address to each smart meter on the primary station, then input the 485 address corresponding to each smart meter in the DCU, and configure the corresponding 485 address in each smart meter so that the DCU can The data of each smart meter is obtained based on the 485 address of each smart meter.
  • RS Recommended Standard
  • An embodiment of the present invention provides a method, an apparatus, and a system for allocating a communication address, in which a maintenance personnel needs to manually input a communication address in a primary station, a DCU, and a smart meter in a process of assigning a communication address to a smart meter.
  • the configuration has a large workload and low efficiency, and can avoid configuration errors occurring at any place in the primary station and the DCU, resulting in address conflicts, and the smart meter reading system cannot work normally.
  • the first aspect provides a method for allocating a communication address, which is performed by a data center unit DCU, and the method specifically includes:
  • the DCU assigns a communication address to the smart meter according to the identifier of the smart meter provided by the main station, and sends the smart meter to the smart meter through the broadcast message, so that the smart meter is automatically configured, so that no maintenance personnel need to manually in the main station, the DCU and the smart meter. Configure the communication address of each smart meter, which can reduce the deployment cost and improve the efficiency and accuracy of communication address allocation.
  • the identifier notification message further includes a second identifier
  • the identifier notification message Assigning, according to the identifier notification message, the first communication address to the first identifier, assigning a second communication address to the second identifier, and saving the first identifier and the first communication An address pair and the second identifier and the second communication address pair;
  • the communication address assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
  • communication addresses can be assigned to multiple smart meters at the same time, further improving the efficiency of communication address allocation.
  • the DCU allocates the first communication to the first identifier according to the identifier notification message An address, the second identifier is assigned to the second identifier, including:
  • the method further includes:
  • the DCU can confirm whether the smart has successfully configured the assigned first communication address.
  • the method further includes:
  • a method for allocating a communication address is provided, which is performed by a smart meter, and the method specifically includes:
  • the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is allocated by the DCU according to the first identifier;
  • the first communication address is configured when the smart meter determines that the first identifier is an identifier of the smart meter.
  • the smart meter automatically allocates the communication address according to the communication address assignment message, which can reduce the deployment cost of manually configuring the communication address for the smart meter, avoid manual configuration errors, and improve the accuracy of communication address allocation.
  • the method further includes:
  • the DUC can know in time whether the smart meter successfully configures the allocated first communication address, and improves the efficiency of the communication address allocation.
  • the method further includes:
  • the DCU Acquiring the current data according to the second data query message, and sending a first feedback message to the DCU, where the first feedback message includes the first communication address and current data of the smart meter.
  • a data concentrating unit DCU having a function of implementing DCU behavior in the above method.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the DCU includes: a processor, a receiver, and a transmitter; wherein
  • the receiver is configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier;
  • the processor configured to allocate a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address pair;
  • the transmitter 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 with the first identifier
  • the meter configures the first communication address.
  • the DCU includes:
  • a first receiving module configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier
  • An allocating module configured to allocate a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address pair;
  • a first sending module configured to broadcast a communication address allocation message, where the communication address assignment message includes the first identifier and the first communication address pair, so that the first smart with the first identifier
  • the meter configures the first communication address
  • a smart meter having a function of implementing the behavior of the smart meter in the above method.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the smart meter includes: a processor and a receiver; wherein
  • the receiver is configured to receive a communication address assignment message sent by the DCU, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the An identifier is assigned;
  • the processor is configured to configure the first communication address when determining that the first identifier is an identifier of the smart meter.
  • the smart meter includes:
  • a first receiving module configured to receive a communication address assignment message sent by the DCU, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the An identifier is assigned;
  • a configuration module configured to configure the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
  • a system for assigning a communication address comprising a primary station, a DCU and a smart meter, wherein:
  • the primary station is configured to send an identifier notification message to the DCU, where the identifier notification message includes 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, and save the first identifier and the first communication address And transmitting, by the broadcast, a communication address assignment message, where the communication address assignment message includes the first identifier and the first communication address pair;
  • the smart meter is configured to receive the communication address assignment message, and configure the first communication address when determining that the first identifier is an identifier of the smart meter.
  • the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves a first identifier and a first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter configuration having the first identifier is configured A communication address, so that the smart meter can be automatically assigned a communication address according to the identifier of the received smart meter, and the maintenance address of the smart meter can be manually configured in the main station, the DCU, and the smart meter without the maintenance personnel, thereby reducing the deployment. Cost, improve the efficiency and accuracy of communication address allocation.
  • FIG. 1 is a flowchart of a method for allocating a communication address according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for allocating a communication address according to an embodiment of the present invention
  • FIG. 3 is a system frame diagram provided by an embodiment of the present invention.
  • FIG. 4 is a flowchart of still another method for allocating a communication address 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 disclosure.
  • FIG. 7 is a schematic structural diagram of another DCU according to an embodiment of the present disclosure.
  • 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.
  • the embodiment of the present invention provides a system for allocating a communication address, including a primary station, a DCU, and a plurality of smart meters.
  • FIG. 3 it is a schematic diagram of a system framework according to an embodiment of the present invention.
  • Each smart meter can have a unique identifier (such as a table number).
  • the smart meters of all users in a certain area (such as a certain cell) access the DCU in the area, and the DCU communicates with the main station.
  • the primary station in the present invention is an AMI primary station.
  • the AMI primary station may include a Data Collection Platform (DCP) device, also referred to as a front-end machine, that communicates with the DCU over the network.
  • DCP Data Collection Platform
  • the primary station is configured to send an identifier notification message to the DCU, where the identifier notification message includes the first identifier.
  • a DCU configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier, assigning a first communication address to the first identifier according to the identifier notification message, and saving the first identifier and the first identifier a communication address pair, a broadcast transmission communication address assignment message, and a communication address assignment message Include a first identifier and a first communication address pair;
  • Each smart meter of the plurality of smart meters may be configured to receive a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is a DCU according to the first identifier
  • the allocation when determining that the first identifier is an identifier of the smart meter, configuring the first communication address, and if it is determined that the first identifier is not its own identifier, the processing may be ended.
  • the DCU may receive the identifier notification message sent by the primary station, and then may assign a corresponding communication address (ie, the first communication address) to the first identifier in the identifier notification message, and save the first identifier and the first identifier.
  • a communication address pair such as a correspondence table between the identifier of the smart meter and the communication address, and then the DCU broadcasts the communication address assignment message, and the communication address assignment message may include the first identifier and the first communication address pair.
  • the DCU can transmit only one set of smart meter identifiers and communication address pairs in a single broadcast manner, or can send multiple sets of identifiers and communication address pairs in a single broadcast manner to improve the efficiency of communication address allocation.
  • the smart meter may determine whether the first identifier is its own identifier. If yes, the first communication address may be configured. If not, the communication address assignment message may be discarded.
  • the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves the first And the first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication
  • the address in this way, can automatically assign a communication address to the smart meter according to the identifier of the received smart meter, and the maintenance address is not required by the maintenance personnel to manually configure the communication address of each smart meter in the main station, the DCU, and the smart meter, thereby reducing the deployment cost. Improve the efficiency and accuracy of communication address allocation.
  • the embodiment of the invention provides a method for allocating a communication address, and the assignment of the communication address is completed by the interaction between the primary station, the DCU and the smart meter.
  • the smart meter can be a smart meter, a smart water meter or a smart gas meter.
  • the smart meter is used as an example for the smart meter, and other situations are similar.
  • the processing flow of the DCU in the method may include the following steps:
  • Step 101 The DCU receives an identifier notification message sent by the primary station, where the identifier notification message includes First identifier.
  • the primary station may add an identifier (ie, a first identifier) of the electrical meter that needs to be assigned a communication address to the identifier notification message, and then may send the identifier notification message to the corresponding DCU, and the DCU may receive the primary The identifier notification message sent by the station, and the identifier notification message may be parsed, the first identifier is obtained, and the received first identifier may be stored.
  • an identifier ie, a first identifier
  • the primary station may send only one identifier of the electric meter to the DCU at a time, or may send the identifiers of the plurality of electric meters to the DCU at a time, and the identifier notification message may further include the second identifier.
  • Step 102 The DCU allocates a first communication address to the first identifier according to the identifier notification message, and saves the first identifier and the first communication address pair.
  • a communication address that can be assigned to the meter can be pre-stored in the DCU, and the used communication address and the unused communication address can be recorded for distribution processing.
  • the communication address of the meter can be represented by an 8-bit binary number.
  • the DCU parses the identifier notification message to obtain the first identifier, and then can determine the unused communication address in the communication address pre-stored by the DCU, in the unused In the communication address, the first communication address is obtained, and the first communication address may be allocated to the electricity meter corresponding to the first identifier, and the first identifier and the first communication address pair may be saved, and the correspondence between the identifier and the communication address is established.
  • the DCU can store the identifier and the communication address pair in the form of a correspondence table, as shown in Table 1:
  • the identifier notification message further includes a second identifier
  • the process in step 102 may be as follows: the DCU allocates a first communication address to the first identifier according to the identifier notification message, and allocates the second identifier. a second communication address and storing the first identifier and the first communication address pair and the second identifier and the second communication address pair.
  • the DCU may parse the identifier notification message to obtain the first identifier and the second identifier, and then may be pre-stored in the DCU.
  • the unused communication addresses two communication addresses (ie, the first communication address and the second communication address) are selected, the first communication address is assigned to the electricity meter corresponding to the first identifier, and the second communication address is assigned to the second communication address.
  • the electric meter corresponding to the identifier and may store the first identifier and the first communication address pair, and the second identifier and the second communication address pair, and establish a correspondence between the identifier and the communication address.
  • 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 identifier notification message carries the first identifier and the second identifier.
  • An address pool can be set in the DCU, and all the communication addresses can be stored in the address pool, and the communication address already assigned to the electricity meter is marked as the used communication address, and the unassigned communication address is marked as unused. Communication address.
  • the DCU can store only unused communication addresses (ie, unassigned communication addresses) in the address pool.
  • the DCU may have two address pools that store the used communication address (ie, the communication address that has been assigned to the meter) and the unused communication address (ie, the unassigned communication address).
  • the DCU can obtain the first communication address and the first communication address in the order of the communication address in the unused communication address. Transmitting the first communication address and the second communication address, and sequentially assigning the first communication address and the second communication address to the first identifier and the second identifier, according to the order of carrying the first identifier and the second identifier in the identifier notification message The identifier is recorded corresponding to the communication address.
  • the DCU obtains the currently unused communication addresses from the address pool to 00001100, 00001101, 00001110, and 00001111, and the received identifiers are 1230 and 1231, you can assign 00001100 to the 1230 corresponding meter and 00001101 to 1231. Electric meter.
  • Step 103 The DCU broadcasts a communication address assignment message, where the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication address.
  • the first communication address and the first identifier pair may be placed in a communication address assignment message, and the communication address assignment message is a broadcast message.
  • the communication address assignment message can then be sent in broadcast form to the meter connected to the DCU.
  • the 485 communication protocol is used between the DCU and the meter for communication.
  • the message that the DCU broadcasts to the communication address of the meter can be a message in the Modbus format or a packet in the High-Level Data Link Control (HDLC) format.
  • HDLC High-Level Data Link Control
  • the address field is 8 bits and is used to write the destination address, usually represented by an 8-bit binary number.
  • the address range is 0 to 255, where 0 is the broadcast address, 248 to 255 is the reserved address, and the address that can be assigned to the node is 1 to 247.
  • the DCU writes a message to the communication address of the electric meter broadcast, and the address field writes 00000000.
  • the function field can use a custom function code to specifically indicate the address assignment.
  • the function code needs to be distinguished from other function codes for the meter to recognize.
  • the specific value of the function code can be defined by the manufacturer of each meter.
  • the data field is used to carry communication data.
  • an identifier and a communication address pair are written in the data field.
  • the data format in the data domain can be as follows:
  • the DCU can assign a communication address to one meter at a time, or can assign a communication address to multiple meters at a time.
  • the identifiers and communication address pairs of different meters can be written together according to the above format. Enter the data field.
  • the packets in HDLC format are as follows:
  • the destination address field can be 16 bits (bit) for writing to the destination address.
  • the source address field is 16 bits (bit) for writing to the source address, usually expressed in hexadecimal numbers.
  • the address range can be 0 ⁇ 0x3FFF, where 0x3FFF is the broadcast address, 0x00002 ⁇ 0x000F is the reserved address, and the remaining addresses can be assigned to node.
  • the communication address assignment message sent by the DCU to the meter broadcast uses the HDLC format message
  • the address of the DCU can be written in the source address field, and the broadcast address 0x3FFF is written in the destination address field.
  • User data information is used to carry communication data.
  • the DCU can write an identifier and a communication address pair in the user data information.
  • the data format in the user data information can be the same as the Modbus message.
  • the DCU can assign a communication address to one smart meter at a time, or can assign a communication address to multiple smart meters at a time.
  • the identifiers and communication address pairs of different electric meters can be defined as above.
  • the data format is written together into the user data information.
  • the address configuration success message may be sent to the DCU.
  • the processing of the DCU may be as follows: the DCU receives the first identifier with the first identifier.
  • the address configuration success message sent by the smart meter includes the first identifier in the address configuration success message.
  • the address configuration success message further includes the first communication address.
  • the DCU After receiving the address configuration success message of the first power meter, the DCU can confirm that the first power meter successfully configures the address. If the DCU broadcasts the communication address assignment message and does not receive the address configuration success message of the first power meter within the preset time period, it is considered that the first power meter does not successfully configure the address, and the communication address can be re-broadcasted. And assigning a message carrying the first identifier and the first communication address pair of the first meter. This can improve the accuracy of address allocation.
  • the DCU In the case of assigning a communication address to a plurality of electric meters at a time, if the address configuration success message of one (or some) of the electric meters is not received within the preset time period, the DCU considers that the electric meter(s) have not successfully configured the address.
  • the communication address assignment message is broadcast again, it is only necessary to carry the identifier of the meter(s) and the communication address pair in the message. This not only improves the efficiency of address allocation but also ensures accuracy.
  • the processing flow of the electric meter in the method may include the following steps:
  • Step 201 The smart meter receives a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, and the first communication address is allocated by the DCU according to the first identifier.
  • the electricity meter can receive the communication address assignment message sent by the DCU, and then parse the communication address assignment message to obtain the first identifier and the first communication. Address for subsequent processing.
  • Step 202 When the smart meter determines that the first identifier is an identifier of the smart meter, the smart meter is configured Set the first communication address.
  • the identifier of the electric meter may be acquired, and if the first identifier is the same (identical) as the identifier of the electric meter, The meter can store the first communication address as the communication address of the self (the meter). If the first identifier in the communication address assignment message is different (inconsistent) from the identifier of the meter, the communication address assignment message may be discarded.
  • the DCU can be notified, and the corresponding processing process can be as follows: the smart meter sends an address configuration success message to the DCU.
  • the address configuration success message may be sent to the DCU, so that the DCU can accurately know whether the first electric meter successfully configures the address. If the DCU broadcasts the communication address assignment message and does not receive the address configuration success message within the preset duration, the transmission communication address assignment message may be rebroadcast.
  • the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves the first And the first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication
  • the address in this way, can automatically assign a communication address to the smart meter according to the identifier of the received smart meter, and the maintenance address is not required by the maintenance personnel to manually configure the communication address of each smart meter in the main station, the DCU, and the smart meter, thereby reducing the deployment cost. Improve the efficiency and accuracy of communication address allocation.
  • An embodiment of the present invention provides a system for allocating a communication address, including a primary station, a data centralized unit DCU, and a smart meter.
  • the process of allocating a communication address for a smart meter includes the following steps:
  • Step 401 The primary station sends an identifier notification message to the DCU, where the identifier notification message includes a first identifier.
  • the primary station may add an identifier (ie, a first identifier) of the smart meter that needs to be assigned a communication address to the identifier notification message, which may then be sent to the corresponding DCU.
  • the primary station knows that the smart meter is connected to the DCU, and when the primary station determines that the smart meter needs to allocate a communication address, for example, when the smart meter just joins the system, the DCU connected to the smart meter by the primary station An identifier notification message is sent, the identifier notification message including an identifier of the smart meter, that is, a first identifier.
  • the primary station may also send multiple identifiers to the DCU at a time, so that the DCU allocates communication addresses for the smart meters corresponding to the multiple identifiers.
  • the DCU may parse the identifier notification message, obtain the first identifier, and store the received first identifier.
  • Step 402 The DCU receives the identifier notification message sent by the primary station, allocates a first communication address to the first identifier according to the identifier notification message, and saves the first identifier and the first communication address pair.
  • a communication address that can be assigned to the meter can be pre-stored in the DCU, and the used communication address and the unused communication address can be recorded for distribution processing.
  • the communication address of the meter can be represented by an 8-bit binary number.
  • the DCU After receiving the identifier notification message sent by the receiving station, the DCU parses the identifier notification message to obtain the first identifier, and then can determine the unused communication address in the communication address pre-stored by the DCU, and is not used. Obtaining a first communication address, and then assigning the first communication address to the electricity meter corresponding to the first identifier, and storing the identifier and the communication address pair, and establishing a correspondence between the identifier and the communication address, for example, 1 is shown.
  • Step 403 The DCU broadcasts a communication address assignment message, where the communication address assignment message includes a first identifier and a first communication address pair.
  • the first communication address and the first identifier pair may be placed in the communication address assignment message, and then sent in the form of a broadcast.
  • the meter connected to the DCU.
  • the DCU and the meter can communicate using the 485 communication protocol.
  • the DCU can assign a message to the communication address broadcasted by the meter in a Modbus format message or a formatted message.
  • Step 404 The smart meter receives a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair.
  • the electric meter may receive the communication address assignment message sent by the DCU broadcast, and then parse the communication address assignment message to obtain the first identifier and the first communication address for subsequent processing.
  • Step 405 When the smart meter determines that the first identifier is an identifier of itself (ie, the smart meter), the smart meter configures the first communication address.
  • the identifier of the electric meter may be acquired, and if the first identifier is the same (identical) as the identifier of the electric meter, The meter can store the first communication address and use the first communication address as its own communication address. If the first identifier is different (inconsistent) from the identifier of the meter, the communication address assignment message can be discarded.
  • the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves the first And the first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication
  • the address in this way, can automatically assign a communication address to the smart meter according to the identifier of the received smart meter, and the maintenance address is not required by the maintenance personnel to manually configure the communication address of each smart meter in the main station, the DCU, and the smart meter, thereby reducing the deployment cost. Improve the efficiency and accuracy of communication address allocation.
  • the embodiment of the present invention further provides a process for performing smart meter data query based on the communication address assigned to the smart meter, wherein the smart meter may be a smart meter, a smart water meter, or a smart gas meter.
  • the smart meter is used as an example for the smart meter, and other situations are similar.
  • the process of querying the smart meter data may specifically include the following steps:
  • Step 501 The DCU receives a first data query message sent by the primary station, where the first data query message includes a first identifier.
  • an application for querying the meter data may be installed in the main station, the maintenance personnel may open the application, and then select an electric meter (ie, the first electric meter) that needs to query the electric meter data, and click the first electric meter data query option.
  • the primary station can receive the data query command corresponding to the first power meter, and then can send the first data query message to the DCU, where the first data query message can carry the first identifier of the first power meter.
  • the primary station may send a first data query message to the DCU when the preset query period is reached, where the first data query message includes the first identifier of the first power meter.
  • the maintenance personnel can also select the DCU of the area in which the meter data needs to be queried in the above application, and then click the meter data query option.
  • the primary station can receive the electric meter data query instruction corresponding to the DCU, and then obtain the identifier of the DCU, and then determine the identifier of the electric meter connected to the DCU according to the correspondence between the pre-stored identifier and the identifier of the DCU. Then you can The DCU sends a first data query message, the first data query message including an identifier of a number of meters connected to the DCU.
  • the maintenance personnel may send a data query message (which may be referred to as a third data query message) that does not carry an identifier to the DCU through the primary station, and after receiving the third data query message, the DCU may send all the electric meters connected to the DCU. Send a data query message to query the meter data.
  • a data query message (which may be referred to as a third data query message) that does not carry an identifier to the DCU through the primary station, and after receiving the third data query message, the DCU may send all the electric meters connected to the DCU. Send a data query message to query the meter data.
  • Step 502 The DCU acquires the first communication address according to the first identifier.
  • the DCU may parse the first data query message, obtain the first identifier in the first data query message, and then communicate with the identifier according to the pre-stored identifier. Corresponding relationship of the address, determining a first communication address corresponding to the first identifier,
  • Step 503 The DCU sends a second data query message to the first smart meter having the first identifier, where the second data query message includes the first communication address.
  • the 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 the address field of the message.
  • the DCU may A communication address is written in the destination address field of the message.
  • Step 504 The first smart meter receives the second data query message sent by the DCU, where the second data query message includes the first communication address.
  • the first power meter may receive the second data query message sent by the DCU, and then parse the second data query message. Get the first communication address in it.
  • Step 505 The first smart meter acquires current data according to the second data query message, and sends a first feedback message to the DCU, where the first feedback message includes the first communication address and current data of the first smart meter.
  • the first electricity meter can determine whether the first communication address is the same as the communication address used by itself, and if the same, the current meter data can be acquired, and then the meter data and the first communication address can be added to the first feedback.
  • the first feedback message is sent to the DCU.
  • the first power table may write the first communication address into the address field of the message.
  • the first The meter can write the first communication address into the source address field of the message.
  • Step 506 The DCU receives the 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 DCU may receive the first feedback message, and then parse the first feedback message to obtain the first communication address and the first electric meter. Meter data for subsequent processing.
  • Step 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 primary station, where the second feedback message includes the current data of the first smart meter and the first identifier.
  • the first identifier corresponding to the first communication address may be determined according to the correspondence between the identifier and the communication address stored in advance, and then the The meter data of the first meter and the first identifier are added to the second feedback message, and the second feedback message can be sent to the primary station.
  • the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves the first And the first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication
  • the address in this way, can automatically assign a communication address to the smart meter according to the identifier of the received smart meter, and the maintenance address is not required by the maintenance personnel to manually configure the communication address of each smart meter in the main station, the DCU, and the smart meter, thereby reducing the deployment cost. Improve the efficiency and accuracy of communication address allocation.
  • the embodiment of the present invention provides a DCU for implementing the function of the DCU in the method for allocating a communication address.
  • the DCU includes:
  • a first receiving module 610 configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier
  • the allocating module 620 is configured to allocate, according to the identifier notification message, a first communication address to the first identifier, and save the first identifier and the first communication address pair;
  • a first sending module 630 configured to broadcast a communication address assignment message, where the first address identifier and the first communication address pair are included in the communication address assignment message, so that the first identifier has the first identifier
  • the smart meter configures the first communication address.
  • the identifier notification message further includes a second identifier
  • the allocating module 620 is specifically configured to: according to the identifier notification message, the first identifier Assigning the first communication address, assigning 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 assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
  • the DCU further includes:
  • a second receiving module 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.
  • the DCU further includes:
  • a third receiving module configured to receive a first data query message sent by the primary station, where the first data query message includes the first identifier
  • An acquiring module configured to acquire 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 having the first identifier, where the second data query message includes the first communication address
  • a fourth receiving module configured to receive a first feedback message sent by the first 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 primary station, where the second feedback message includes The current data of the first smart meter and the first identifier.
  • FIG. 7 is 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 to each other by a bus 740;
  • the receiver 720 is configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier;
  • the processor 710 is configured to allocate, according to the identifier notification message, a first communication address to the first identifier, and save the first identifier and the first communication address pair;
  • 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 identifier has the first identifier
  • the smart meter configures the first communication address.
  • the DCU may further include a memory 750 in which a correspondence table is stored for storing the first identifier and the first communication address pair.
  • the identifier notification message further includes a second identifier.
  • the processor 710 is configured to: allocate the first identifier to the first identifier according to the identifier notification message. a communication address, assigning a second communication address to the second identifier, and storing the first identifier and the first communication address pair and the second identifier and the second communication address pair;
  • the communication address assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
  • the processor 710 is specifically configured to: in the order in which the first identifier and the second identifier are carried in the identifier notification message, the first identifier and the The second identifier assigns the first communication address and the second communication address.
  • the processor 710 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP Processor, etc.), and the like, and may also be a digital signal processor (DSP), an application specific integrated circuit. (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices.
  • CPU central processing unit
  • NP Processor network processor
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the memory 750 can also be used to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 750 may include RAM, and may also include non-volatile memory, such as at least one disk storage.
  • the processor 710 executes the program code stored in the memory 750 to implement the above functions.
  • 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.
  • the receiver 720 is further configured to receive a first data query message sent by the primary station, where the first data query message includes a first identifier;
  • the processor 710 is further configured to acquire the first communication address according to the first identifier, and send, by using the transmitter 730, a second data query to the first smart meter having the first identifier. a message, 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 acquire according to the first communication address in the first feedback message.
  • the first identifier and sending, by the sender 730, a second feedback message to the primary station, where the second feedback message includes current data of the first smart meter and the first identifier.
  • the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves a first identifier and a first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter configuration having the first identifier is configured A communication address, so that the smart meter can be automatically assigned a communication address according to the identifier of the received smart meter, and the maintenance address of the smart meter can be manually configured in the main station, the DCU, and the smart meter without the maintenance personnel, thereby reducing the deployment. Cost, improve the efficiency and accuracy of communication address allocation.
  • an embodiment of the present invention provides a smart meter for implementing the function of the smart meter in the method for allocating a communication address.
  • the smart meter includes:
  • a first receiving module 810 configured to receive a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is The first identifier is assigned;
  • the configuration module 820 is configured to configure the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
  • the smart meter further includes:
  • the first sending module is configured to send an address allocation success message to the DCU, where the address configuration success message includes the first identifier.
  • 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
  • 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, where the first feedback message includes the first communication address and the smart meter Current data.
  • the embodiment of the present application further provides Another smart meter is used to implement the function of the smart meter in the method for allocating the communication address.
  • 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 by a bus 940; wherein:
  • the receiver 920 is configured to receive a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the The first identifier is assigned;
  • the processor 910 is configured to configure the first communication address when determining that the first identifier is an identifier of the smart meter.
  • the smart meter may further include a memory 950 in which the first communication address and an identifier of the smart meter are stored.
  • the processor 910 may be a general purpose processor, including a central processing unit CPU, NP, etc.; or may be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable Logic devices, etc.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the memory 950 can also be used to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • Memory 950 may include RAM and may also include non-volatile memory, such as at least one disk storage. The processor 910 executes the program code stored in the memory 950 to implement the above functions.
  • the sender 930 is configured to send an address configuration success message to the DCU, where the address configuration success message includes the first identifier.
  • 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 the current data of the smart meter according to the second data query message, and send a first feedback message to the DCU by using the sender, where the first feedback message is The first communication address and current data of the smart meter are included.
  • the memory 950 can also be used to store current data of the smart meter.
  • the smart meter receives a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a communication address allocated by the DCU for the smart meter; the smart meter according to the communication
  • the address allocation message obtains the communication address corresponding to the own identifier, and saves (automatically configures) the communication address, which can reduce the deployment cost of manually configuring the communication address for the smart meter, avoid manual configuration errors, and improve the accuracy of the communication address allocation. Sex.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

Disclosed in embodiments of the present invention are a method, apparatus and system for allocating a communication address, belonging to the technical field of communications. The method comprises: a data concentrating unit (DCU) receives an identifier notification message sent by a main station, the identifier notification message comprising a first identifier; the DCU allocates a first communication address to a first identifier according to the identifier notification message, and saves the first identifier and a first communication address pair; and the DCU sends a communication address allocation message in a broadcasting manner, the communication address allocation message comprising the first identifier and the first communication address pair, so that a first smart meter having the first identifier configures the first communication address. By using the present invention, the efficiency of allocating communication addresses to smart meters can be improved.

Description

一种分配智能仪表通信地址的方法、装置和***Method, device and system for distributing smart meter communication address 技术领域Technical field
本发明涉及通信技术领域,特别涉及一种分配智能仪表通信地址的方法、装置和***。The present invention relates to the field of communications technologies, and in particular, to a method, apparatus, and system for allocating a smart meter communication address.
背景技术Background technique
在智能抄表***中,智能电表接入数据集中单元(Data Concentrating Unit,简称DCU),DCU通过网络与高级计量架构(Advanced Metering Infrastructure,简称AMI)主站连接,主站可以通过网络收集智能电表的数据,对智能电表进行控制等。In the smart meter reading system, the smart meter accesses the Data Concentrating Unit (DCU), and the DCU connects to the main station of the Advanced Metering Infrastructure (AMI) through the network. The master station can collect the smart meter through the network. Data, control of smart meters, etc.
当DCU与智能电表之间通过RS(recommended standard,推荐标准)-485协议进行通信时,每个智能电表都要分配一个通信地址,也称为485地址。通常是由维护人员在主站上为每个智能电表分配对应的485地址,然后在DCU中输入各智能电表对应的485地址,并在每个智能电表中配置对应的485地址,以使DCU可以基于各智能电表的485地址,获取各智能电表的数据。When the DCU communicates with the smart meter via the RS (Recommended Standard)-485 protocol, each smart meter must be assigned a communication address, also known as the 485 address. Usually, the maintenance personnel assign a corresponding 485 address to each smart meter on the primary station, then input the 485 address corresponding to each smart meter in the DCU, and configure the corresponding 485 address in each smart meter so that the DCU can The data of each smart meter is obtained based on the 485 address of each smart meter.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
维护人员需要手动在主站、DCU和智能电表中分别输入通信地址,配置工作量大,效率较低。如果在主站、DCU和中任何一处出现配置错误,都可能导致地址冲突,该智能抄表***无法正常工作。Maintenance personnel need to manually input the communication address in the main station, DCU, and smart meter. The configuration workload is large and the efficiency is low. If a configuration error occurs at any of the primary station, DCU, and any of the locations, an address conflict may occur and the smart meter reading system may not work properly.
发明内容Summary of the invention
本发明实施例提供了一种分配通信地址的方法、装置和***,用于解决在为智能仪表分配通信地址的过程中,维护人员需要手动在主站、DCU和智能仪表中分别输入通信地址,配置工作量大,效率较低的问题,并且可以避免出现在主站、DCU中任何一处出现配置错误,导致地址冲突,该智能抄表***无法正常工作的情况。An embodiment of the present invention provides a method, an apparatus, and a system for allocating a communication address, in which a maintenance personnel needs to manually input a communication address in a primary station, a DCU, and a smart meter in a process of assigning a communication address to a smart meter. The configuration has a large workload and low efficiency, and can avoid configuration errors occurring at any place in the primary station and the DCU, resulting in address conflicts, and the smart meter reading system cannot work normally.
第一方面,提供了一种分配通信地址的方法,由数据集中单元DCU执行,所述方法具体包括:The first aspect provides a method for allocating a communication address, which is performed by a data center unit DCU, and the method specifically includes:
接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符; Receiving an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier;
根据标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与第一通信地址对;Assigning a first communication address to the first identifier according to the identifier notification message, and saving the first identifier and the first communication address pair;
广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。Broadcasting a communication address assignment message including the first identifier and the first communication address pair to enable the first smart meter having the first identifier to configure the first communication address.
由DCU根据主站提供的智能仪表的标识符,为智能仪表分配通信地址,并通过广播消息发送给智能仪表,使智能仪表自动配置,这样,无需维护人员手动在主站、DCU和智能仪表中配置各智能仪表的通信地址,从而可以降低部署成本,提高通信地址分配的效率和准确性。结合第一方面,在该第一方面的第一种可能实现方式中,所述标识符通知消息中还包括第二标识符;The DCU assigns a communication address to the smart meter according to the identifier of the smart meter provided by the main station, and sends the smart meter to the smart meter through the broadcast message, so that the smart meter is automatically configured, so that no maintenance personnel need to manually in the main station, the DCU and the smart meter. Configure the communication address of each smart meter, which can reduce the deployment cost and improve the efficiency and accuracy of communication address allocation. 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;
根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对,包括:And assigning the first identifier to the first identifier according to the identifier notification message, and saving the first identifier and the first communication address pair, including:
根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;Assigning, according to the identifier notification message, the first communication address to the first identifier, assigning a second communication address to the second identifier, and saving the first identifier and the first communication An address pair and the second identifier and the second communication address pair;
所述通信地址分配消息中还包括所述第二标识符与所述第二通信地址对,以使具有所述第二标识符的第二智能仪表配置所述第二通信地址。The communication address assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
这样,可以同时为多个智能仪表分配通信地址,进一步提高通信地址分配的效率。In this way, communication addresses can be assigned to multiple smart meters at the same time, further improving the efficiency of communication address allocation.
结合第一方面的第一种可能实现方式,在该第一方面的第二种可能实现方式中,所述DCU根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,包括:In conjunction with the first possible implementation of the first aspect, in a second possible implementation of the first aspect, the DCU allocates the first communication to the first identifier according to the identifier notification message An address, the second identifier is assigned to the second identifier, including:
按照所述标识符通知消息中携带所述第一标识符和所述第二标识符的顺序,依次为所述第一标识符和所述第二标识符分配所述第一通信地址和所述第二通信地址。Assigning the first communication address and the first identifier to the first identifier and the second identifier in sequence according to an order in which the first identifier and the second identifier are carried in the identifier notification message Second communication address.
结合第一方面,在该第一方面的第三种可能实现方式中,所述DCU广播发送通信地址分配消息之后,还包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, after the DCU broadcasts the sending of the communication address allocation message, the method further includes:
接收具有所述第一标识符的所述第一智能仪表发送的地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。Receiving 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.
这样,DCU可以确认该智能是否成功配置了分配的第一通信地址。 In this way, the DCU can confirm whether the smart has successfully configured the assigned first communication address.
结合第一方面至第一方面的第三种可能实现方式中的任意一种可能实现方式,在该第一方面的第四种可能实现方式中,所述方法还包括:With reference to the first aspect to any one of the third possible implementation manners 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 primary station, where the first data query message includes the first identifier;
根据所述第一标识符,获取所述第一通信地址;Obtaining the first communication address according to the first identifier;
向具有所述第一标识符的所述第一智能仪表发送第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址Transmitting, to the first smart meter having the first identifier, a second data query message, where the second data query message includes the first communication address
接收所述第一智能仪表发送的第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述第一智能仪表的当前数据;Receiving 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;
根据所述第一反馈消息中的所述第一通信地址获取所述第一标识符,向所述主站发送第二反馈消息,所述第二反馈消息中包括所述第一智能仪表的当前数据和所述第一标识符。Obtaining the first identifier according to the first communication address in the first feedback message, and sending a second feedback message to the primary station, where the second feedback message includes a current status of the first smart meter Data and the first identifier.
第二方面,提供了一种分配通信地址的方法,由智能仪表执行,所述方法具体包括:In a second aspect, a method for allocating a communication address is provided, which is performed by a smart meter, and the method specifically includes:
接收DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;Receiving a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is allocated by the DCU according to the first identifier;
当所述智能仪表确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。The first communication address is configured when the smart meter determines that the first identifier is an identifier of the smart meter.
智能仪表根据通信地址分配消息,自动配置通信地址,可以降低人工为智能仪表配置通信地址的部署成本,避免人工配置出错,提高了通信地址分配的准确性。The smart meter automatically allocates the communication address according to the communication address assignment message, which can reduce the deployment cost of manually configuring the communication address for the smart meter, avoid manual configuration errors, and improve the accuracy of communication address allocation.
结合第二方面,在该第二方面的第一种可能实现方式中,在所述智能仪表配置所述第一通信地址之后,所述方法还包括: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:
向所述DCU发送地址配置成功消息,以向所述DUC反馈所述智能仪表成功配置了所述DCU分配的所述第一通信地址。Sending an address configuration success message to the DCU to feed back to the DUC that the smart meter successfully configures the first communication address allocated by the DCU.
这样,DUC可以及时获知该智能仪表是否成功配置了分配的第一通信地址,提高了通信地址分配的效率。In this way, the DUC can know in time whether the smart meter successfully configures the allocated first communication address, and improves the efficiency of the communication address allocation.
结合第二方面或第二方面的第一种可能实现方式中的任意一种可能实现方 式,在该第二方面的第二种可能实现方式中,所述方法还包括:Combining the second aspect or any one of the first possible implementations of the second aspect The second possible implementation manner of the second aspect, the method further includes:
接收所述DCU发送的第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;Receiving a second data query message sent by the DCU, where the second data query message includes the first communication address;
根据所述第二数据查询消息,获取当前数据,并向所述DCU发送第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述智能仪表的当前数据。Acquiring the current data according to the second data query message, and sending a first feedback message to the DCU, where the first feedback message includes the first communication address and current data of the smart meter.
第三方面,提供了一种数据集中单元DCU,该DCU具有实现上述方法中DCU行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, there is provided a data concentrating unit DCU having a function of implementing DCU behavior in the above method. The functions may be implemented by hardware or by corresponding software implemented by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
一种可能的实现方式中,所述DCU包括:处理器,接收器和发送器;其中,In a 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 the primary station, where the identifier notification message includes a first identifier;
所述处理器,用于根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;The processor, configured to allocate a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address pair;
所述发送器,用于广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。The transmitter 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 with the first identifier The meter configures the first communication address.
另一种可能的实现方式中,所述DCU包括:In another possible implementation manner, the DCU includes:
第一接收模块,用于接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符;a first receiving module, configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier;
分配模块,用于根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;An allocating module, configured to allocate a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address pair;
第一发送模块,用于广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。a first sending module, configured to broadcast a communication address allocation message, where the communication address assignment message includes the first identifier and the first communication address pair, so that the first smart with the first identifier The meter configures the first communication address.
第四方面,提供了一种智能仪表,该智能仪表具有实现上述方法中智能仪表行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, a smart meter is provided, the smart meter having a function of implementing the behavior of the smart meter in the above method. The functions may be implemented by hardware or by corresponding software implemented by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
一种可能的实现方式中,所述智能仪表包括:处理器和接收器;其中, In a possible implementation manner, the smart meter includes: a processor and a receiver; wherein
所述接收器,用于接收DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;The receiver is configured to receive a communication address assignment message sent by the DCU, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the An identifier is assigned;
所述处理器,用于在确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。The processor is configured to configure the first communication address when determining that the first identifier is an identifier of the smart meter.
另一种可能的实现方式中,所述智能仪表包括:In another possible implementation manner, the smart meter includes:
第一接收模块,用于接收DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;a first receiving module, configured to receive a communication address assignment message sent by the DCU, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the An identifier is assigned;
配置模块,用于当所述智能仪表确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。And a configuration module, configured to configure the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
第五方面,提供了一种分配通信地址的***,所述***包括主站,DCU和智能仪表,其中:In a fifth aspect, a system for assigning a communication address is provided, the system comprising a primary station, a DCU and a smart meter, 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, allocate a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address And transmitting, by the broadcast, a communication address assignment message, where the communication address assignment message includes the first identifier and the first communication address pair;
所述智能仪表,用于接收所述通信地址分配消息,并在确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。The smart meter is configured to receive the communication address assignment message, and configure the first communication address when determining that the first identifier is an identifier of the smart meter.
本发明实施例中,DCU接收主站发送的标识符通知消息,标识符通知消息中包括第一标识符,DCU根据所述标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对,DCU广播发送通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,以使具有第一标识符的第一智能仪表配置第一通信地址,这样,可以根据接收到的智能仪表的标识符,自动为智能仪表分配通信地址,无需维护人员手动在主站、DCU和智能仪表中配置各智能仪表的通信地址,从而可以降低部署成本,提高通信地址分配的效率和准确性。 In the embodiment of the present invention, the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves a first identifier and a first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter configuration having the first identifier is configured A communication address, so that the smart meter can be automatically assigned a communication address according to the identifier of the received smart meter, and the maintenance address of the smart meter can be manually configured in the main station, the DCU, and the smart meter without the maintenance personnel, thereby reducing the deployment. Cost, improve the efficiency and accuracy of communication address allocation.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明实施例提供的一种分配通信地址的方法流程图;FIG. 1 is a flowchart of a method for allocating a communication address according to an embodiment of the present invention;
图2是本发明实施例提供的另一种分配通信地址的方法流程图;FIG. 2 is a flowchart of another method for allocating a communication address according to an embodiment of the present invention; FIG.
图3是本发明实施例提供的***框架图;3 is a system frame diagram provided by an embodiment of the present invention;
图4是本发明实施例提供的再一种分配通信地址的方法流程图;4 is a flowchart of still another method for allocating a communication address according to an embodiment of the present invention;
图5是本发明实施例提供的一种查询智能仪表的当前数据的方法流程图;FIG. 5 is a flowchart of a method for querying current data of a smart meter according to an embodiment of the present invention;
图6是本发明实施例提供的一种DCU的结构示意图;FIG. 6 is a schematic structural diagram of a DCU according to an embodiment of the present disclosure;
图7是本发明实施例提供的另一种DCU的结构示意图;FIG. 7 is a schematic structural diagram of another DCU according to an embodiment of the present disclosure;
图8是本发明实施例提供的一种智能仪表的结构示意图;8 is a schematic structural diagram of a smart meter according to an embodiment of the present invention;
图9是本发明实施例提供的另一种智能仪表的结构示意图。FIG. 9 is a schematic structural diagram of another smart meter according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
本发明实施例提供了一种分配通信地址的***,包括主站,DCU和若干智能仪表,如图3所示,为本发明实施例的***框架示意图。每个智能仪表可以具有唯一的标识符(如表号),某个地区(如某小区)内所有的用户的智能仪表接入该地区的DCU中,DCU与主站通信。The embodiment of the present invention provides a system for allocating a communication address, including a primary station, a DCU, and a plurality of smart meters. As shown in FIG. 3, it is a schematic diagram of a system framework according to an embodiment of the present invention. Each smart meter can have a unique identifier (such as a table number). The smart meters of all users in a certain area (such as a certain cell) access the DCU in the area, and the DCU communicates with the main station.
在基于AMI的智能抄表***中,本发明中的主站为AMI主站。AMI主站可以包括数据收集平台(Data collection platform,简称DCP)设备,也称为前置机,通过网络与DCU通信。In the AMI-based smart meter reading system, the primary station in the present invention is an AMI primary station. The AMI primary station may include a Data Collection Platform (DCP) device, also referred to as a front-end machine, that communicates with the DCU over the network.
其中,主站,用于向DCU发送标识符通知消息,标识符通知消息中包括第一标识符。The primary station is configured to send an identifier notification message to the DCU, where the identifier notification message includes the first identifier.
DCU,用于接收主站发送的标识符通知消息,标识符通知消息中包括第一标识符,根据标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对,广播发送通信地址分配消息,通信地址分配消息中 包括第一标识符和第一通信地址对;a DCU, configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier, assigning a first communication address to the first identifier according to the identifier notification message, and saving the first identifier and the first identifier a communication address pair, a broadcast transmission communication address assignment message, and a communication address assignment message Include a first identifier and a first communication address pair;
若干智能仪表中每个智能仪表,可以用于接收DCU广播发送的通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,第一通信地址为DCU根据第一标识符所分配,当确定第一标识符为智能仪表的标识符时,配置第一通信地址,若确定第一标识符不是自身的标识符,可以结束处理。Each smart meter of the plurality of smart meters may be configured to receive a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is a DCU according to the first identifier The allocation, when determining that the first identifier is an identifier of the smart meter, configuring the first communication address, and if it is determined that the first identifier is not its own identifier, the processing may be ended.
具体实施中,DCU可以接收主站发送的标识符通知消息,然后可以为标识符通知消息中的第一标识符分配对应的通信地址(即第一通信地址),并保存第一标识符与第一通信地址对,如建立智能仪表的标识符与通信地址的对应关系表,然后DCU以广播方式发送通信地址分配消息,通信地址分配消息中可以包括第一标识符和第一通信地址对。DCU可以一次广播方式仅发送一组智能仪表的标识符和通信地址对,也可以一次广播方式发送多组标识符和通信地址对,以提高通信地址分配的效率。In a specific implementation, the DCU may receive the identifier notification message sent by the primary station, and then may assign a corresponding communication address (ie, the first communication address) to the first identifier in the identifier notification message, and save the first identifier and the first identifier. A communication address pair, such as a correspondence table between the identifier of the smart meter and the communication address, and then the DCU broadcasts the communication address assignment message, and the communication address assignment message may include the first identifier and the first communication address pair. The DCU can transmit only one set of smart meter identifiers and communication address pairs in a single broadcast manner, or can send multiple sets of identifiers and communication address pairs in a single broadcast manner to improve the efficiency of communication address allocation.
智能仪表接收到DCU发送通信地址分配消息后,可以确定第一标识符是否是自身的标识符,如果是,则可以配置第一通信地址,如果不是,则可以丢弃该通信地址分配消息。After receiving the communication address assignment message by the DCU, the smart meter may determine whether the first identifier is its own identifier. If yes, the first communication address may be configured. If not, the communication address assignment message may be discarded.
本发明实施例中,DCU接收主站发送的标识符通知消息,标识符通知消息中包括第一标识符,DCU根据标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对,DCU广播发送通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,以使具有第一标识符的第一智能仪表配置第一通信地址,这样,可以根据接收到的智能仪表的标识符,自动为智能仪表分配通信地址,无需维护人员手动在主站、DCU和智能仪表中配置各智能仪表的通信地址,从而可以降低部署成本,提高通信地址分配的效率和准确性。In the embodiment of the present invention, the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves the first And the first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication The address, in this way, can automatically assign a communication address to the smart meter according to the identifier of the received smart meter, and the maintenance address is not required by the maintenance personnel to manually configure the communication address of each smart meter in the main station, the DCU, and the smart meter, thereby reducing the deployment cost. Improve the efficiency and accuracy of communication address allocation.
本发明实施例提供了一种分配通信地址的方法,通过主站、DCU和智能仪表之间的交互,完成通信地址的分配。其中,智能仪表可以是智能电表、智能水表或智能气表等。本实施例以智能仪表为智能电表为例进行说明,其他情况与之类似。The embodiment of the invention provides a method for allocating a communication address, and the assignment of the communication address is completed by the interaction between the primary station, the DCU and the smart meter. Among them, the smart meter can be a smart meter, a smart water meter or a smart gas meter. In this embodiment, the smart meter is used as an example for the smart meter, and other situations are similar.
如图1所示,该方法中DCU的处理流程可以包括如下的步骤:As shown in FIG. 1, the processing flow of the DCU in the method may include the following steps:
步骤101,DCU接收主站发送的标识符通知消息,标识符通知消息中包括 第一标识符。Step 101: The DCU receives an identifier notification message sent by the primary station, where the identifier notification message includes First identifier.
在实施中,主站可以将需要分配通信地址的电表的标识符(即第一标识符)添加到标识符通知消息中,然后可以将标识符通知消息发送给相应的DCU,DCU则可以接收主站发送的标识符通知消息,并可以对标识符通知消息进行解析,获取第一标识符,并可以将接收到的第一标识符进行存储。In an implementation, the primary station may add an identifier (ie, a first identifier) of the electrical meter that needs to be assigned a communication address to the identifier notification message, and then may send the identifier notification message to the corresponding DCU, and the DCU may receive the primary The identifier notification message sent by the station, and the identifier notification message may be parsed, the first identifier is obtained, and the received first identifier may be stored.
主站可以向DCU一次仅发送一个电表的标识符,也可以向DCU一次发送多个电表的标识符,则标识符通知消息中还可以包括第二标识符。The primary station may send only one identifier of the electric meter to the DCU at a time, or may send the identifiers of the plurality of electric meters to the DCU at a time, and the identifier notification message may further include the second identifier.
步骤102,DCU根据标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对。Step 102: The DCU allocates a first communication address to the first identifier according to the identifier notification message, and saves the first identifier and the first communication address pair.
在实施中,DCU中可以预先存储可以为电表分配的通信地址,并且可以记录已使用的通信地址和未使用的通信地址,以便进行分配处理。电表的通信地址可以用8位二进制数来表示。DCU接收到主站发送的标识符通知消息后,对该标识符通知消息进行解析,获取第一标识符,然后可以在DCU预先存储的通信地址中,确定未使用的通信地址,在未使用的通信地址中,获取第一通信地址,进而可以将第一通信地址分配给第一标识符对应的电表,并可以保存第一标识符与第一通信地址对,建立标识符与通信地址的对应关系。DCU可以以对应关系表的形式来存储标识符与通信地址对,如表1所示:In an implementation, a communication address that can be assigned to the meter can be pre-stored in the DCU, and the used communication address and the unused communication address can be recorded for distribution processing. The communication address of the meter can be represented by an 8-bit binary number. After receiving the identifier notification message sent by the primary station, the DCU parses the identifier notification message to obtain the first identifier, and then can determine the unused communication address in the communication address pre-stored by the DCU, in the unused In the communication address, the first communication address is obtained, and the first communication address may be allocated to the electricity meter corresponding to the first identifier, and the first identifier and the first communication address pair may be saved, and the correspondence between the identifier and the communication address is established. . The DCU can store the identifier and the communication address pair in the form of a correspondence table, as shown in Table 1:
表1Table 1
电表的标识符Meter identifier 通信地址contact address
12301230 0000110000001100
12311231 0000110100001101
12321232 0000111000001110
12331233 0000111100001111
可选的,上述标识符通知消息中还包括第二标识符,在步骤102的处理过程可以如下:DCU根据标识符通知消息,为第一标识符分配第一通信地址,为第二标识符分配第二通信地址,并保存第一标识符与第一通信地址对以及第二标识符与第二通信地址对。Optionally, the identifier notification message further includes a second identifier, and the process in step 102 may be as follows: the DCU allocates a first communication address to the first identifier according to the identifier notification message, and allocates the second identifier. a second communication address and storing the first identifier and the first communication address pair and the second identifier and the second communication address pair.
在实施中,DCU接收到收主站发送的标识符通知消息后,可以对该标识符通知消息进行解析,获取第一标识符和第二标识符,然后可以在DCU预先存储 的未使用的通信地址中,选取两个通信地址(即第一通信地址和第二通信地址),将第一通信地址分配给第一标识符对应的电表,将第二通信地址分配给第二标识符对应的电表,并可以保存第一标识符与第一通信地址对,以及第二标识符与第二通信地址对,建立标识符与通信地址的对应关系。In an implementation, after receiving the identifier notification message sent by the receiving station, the DCU may parse the identifier notification message to obtain the first identifier and the second identifier, and then may be pre-stored in the DCU. Among the unused communication addresses, two communication addresses (ie, the first communication address and the second communication address) are selected, the first communication address is assigned to the electricity meter corresponding to the first identifier, and the second communication address is assigned to the second communication address. The electric meter corresponding to the identifier, and may store the first identifier and the first communication address pair, and the second identifier and the second communication address pair, and establish a correspondence between the identifier and the communication address.
更进一步地,DCU可以按照标识符通知消息中携带第一标识符和第二标识符的顺序,依次为第一标识符和第二标识符分配第一通信地址和第二通信地址。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 identifier notification message carries the first identifier and the second identifier.
DCU中可以设置有地址池,该地址池中可以存储有全部的通信地址,并且将已经分配给电表的通信地址,标记为已使用的通信地址,将未做分配的通信地址,标记为未使用的通信地址。或者,DCU可以在地址池中只存储未使用的通信地址(即,未做分配的通信地址)。或者,DCU可以有两个地址池,分别存储已使用的通信地址(即,已经分配给电表的通信地址)和未使用的通信地址(即,未做分配的通信地址)。An address pool can be set in the DCU, and all the communication addresses can be stored in the address pool, and the communication address already assigned to the electricity meter is marked as the used communication address, and the unassigned communication address is marked as unused. Communication address. Alternatively, the DCU can store only unused communication addresses (ie, unassigned communication addresses) in the address pool. Alternatively, the DCU may have two address pools that store the used communication address (ie, the communication address that has been assigned to the meter) and the unused communication address (ie, the unassigned communication address).
由于电表的通信地址用8位二进制数来表示,DCU接收到收第一标识符和第二标识符后,可以在未使用的通信地址中,按照通信地址的顺序,获取第一通信地址和第二通信地址,并根据标识符通知消息中携带第一标识符和第二标识符的顺序,依次为第一标识符和第二标识符分配第一通信地址和第二通信地址,并可以将电表的标识符与通信地址进行对应记录。例如,DCU从地址池获取到当前未使用的通信地址为00001100、00001101、00001110、00001111,接收到的标识符为1230和1231,则可以将00001100分配给1230对应的电表,将00001101分配给1231对应的电表。Since the communication address of the electric meter is represented by an 8-bit binary number, after receiving the first identifier and the second identifier, the DCU can obtain the first communication address and the first communication address in the order of the communication address in the unused communication address. Transmitting the first communication address and the second communication address, and sequentially assigning the first communication address and the second communication address to the first identifier and the second identifier, according to the order of carrying the first identifier and the second identifier in the identifier notification message The identifier is recorded corresponding to the communication address. For example, if the DCU obtains the currently unused communication addresses from the address pool to 00001100, 00001101, 00001110, and 00001111, and the received identifiers are 1230 and 1231, you can assign 00001100 to the 1230 corresponding meter and 00001101 to 1231. Electric meter.
步骤103,DCU广播发送通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,以使具有第一标识符的第一智能仪表配置第一通信地址。Step 103: The DCU broadcasts a communication address assignment message, where the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication address.
在实施中,DCU为具有第一标识符的第一电表配置第一通信地址后,可以将第一通信地址和第一标识符对放在通信地址分配消息中,该通信地址分配消息为广播消息,然后可以将通信地址分配消息以广播的形式发送给与该DCU连接的电表。DCU与电表之间采用485通信协议来进行通信。DCU向电表广播的通信地址分配消息可以是Modbus格式的报文,也可以是高级数据链路控制(High-Level Data Link Control,简称HDLC)格式的报文。 In an implementation, after the DCU configures the first communication address for the first meter having the first identifier, the first communication address and the first identifier pair may be placed in a communication address assignment message, and the communication address assignment message is a broadcast message. The communication address assignment message can then be sent in broadcast form to the meter connected to the DCU. The 485 communication protocol is used between the DCU and the meter for communication. The message that the DCU broadcasts to the communication address of the meter can be a message in the Modbus format or a packet in the High-Level Data Link Control (HDLC) format.
Modbus格式的报文如下:The message in Modbus format is as follows:
Figure PCTCN2016084749-appb-000001
Figure PCTCN2016084749-appb-000001
地址域为8位(bit),用于写入目的地址,通常用8位二进制数来表示。地址范围为十进制0~255,其中,0为广播地址,248~255为保留地址,可分配给节点的地址为1~247。本发明中,DCU向电表广播的通信地址分配消息中,该地址域中写入00000000。The address field is 8 bits and is used to write the destination address, usually represented by an 8-bit binary number. The address range is 0 to 255, where 0 is the broadcast address, 248 to 255 is the reserved address, and the address that can be assigned to the node is 1 to 247. In the present invention, the DCU writes a message to the communication address of the electric meter broadcast, and the address field writes 00000000.
功能域中可以使用自定义的功能码,专门指示地址分配,该功能码需要与其他功能码区分开来,以便电表进行识别,该功能码的具体值可以由各电表的厂家自行定义。The function field can use a custom function code to specifically indicate the address assignment. The function code needs to be distinguished from other function codes for the meter to recognize. The specific value of the function code can be defined by the manufacturer of each meter.
数据域用于携带通信数据。本发明中,DCU向电表广播发送的通信地址分配消息中,在数据域中写入标识符和通信地址对。数据域中的数据格式可以如下:The data field is used to carry communication data. In the present invention, in the communication address assignment message transmitted by the DCU to the meter broadcast, an identifier and a communication address pair are written in the data field. The data format in the data domain can be as follows:
{{
标识符;Identifier
通信地址;contact address;
}}
DCU可以一次为一个电表分配通信地址,也可以一次为多个电表分配通信地址,对于DCU一次为多个电表分配通信地址的情况,不同电表的标识符和通信地址对可以按照上述格式,一起写入到数据域中。The DCU can assign a communication address to one meter at a time, or can assign a communication address to multiple meters at a time. For the case where the DCU assigns a communication address to multiple meters at a time, the identifiers and communication address pairs of different meters can be written together according to the above format. Enter the data field.
HDLC格式的报文如下:The packets in HDLC format are as follows:
Figure PCTCN2016084749-appb-000002
Figure PCTCN2016084749-appb-000002
其中,0x7e用于表示报文的开头和结尾。Where 0x7e is used to indicate the beginning and end of the message.
目的地址域可以为16位(bit),用于写入目的地址,源地址域为16位(bit),用于写入源地址,通常都是用十六进制数来表示。地址范围可以是0~0x3FFF,其中,0x3FFF为广播地址,0x00002~0x000F为保留地址,其余地址可以分配给 节点。本发明中,当DCU向电表广播发送的通信地址分配消息采用HDLC格式的报文时,可以在源地址域中写入DCU的地址,目的地址域中写入广播地址0x3FFF。The destination address field can be 16 bits (bit) for writing to the destination address. The source address field is 16 bits (bit) for writing to the source address, usually expressed in hexadecimal numbers. The address range can be 0~0x3FFF, where 0x3FFF is the broadcast address, 0x00002~0x000F is the reserved address, and the remaining addresses can be assigned to node. In the present invention, when the communication address assignment message sent by the DCU to the meter broadcast uses the HDLC format message, the address of the DCU can be written in the source address field, and the broadcast address 0x3FFF is written in the destination address field.
用户数据信息用于携带通信数据。DCU可以在用户数据信息中写入标识符和通信地址对。用户数据信息中的数据格式可以同上Modbus报文。User data information is used to carry communication data. The DCU can write an identifier and a communication address pair in the user data information. The data format in the user data information can be the same as the Modbus message.
DCU可以一次为一个智能仪表分配通信地址,也可以一次为多个智能仪表分配通信地址,对于DCU一次为多个电表分配通信地址的情况,不同电表的标识符和通信地址对可以按照上述定义的数据格式,一起写入到用户数据信息中。The DCU can assign a communication address to one smart meter at a time, or can assign a communication address to multiple smart meters at a time. For the case where the DCU assigns a communication address to multiple electric meters at a time, the identifiers and communication address pairs of different electric meters can be defined as above. The data format is written together into the user data information.
可选的,具有第一标识符的第一电表成功配置第一通信地址后,可以向DCU发送地址配置配成功消息,相应的,DCU的处理可以如下:DCU接收具有第一标识符的第一智能仪表发送的地址配置成功消息,地址配置成功消息中包括所述第一标识符。所述地址配置成功消息中还包括所述第一通信地址。Optionally, after the first power meter having the first identifier successfully configures the first communication address, the address configuration success message may be sent to the DCU. Accordingly, the processing of the DCU may be as follows: the DCU receives the first identifier with the first identifier. The address configuration success message sent by the smart meter includes the first identifier in the address configuration success message. The address configuration success message further includes the first communication address.
DCU接收到所述第一电表的地址配置配成功消息后,可以确认所述第一电表成功配置地址。如果DCU广播发送通信地址分配消息后,在预设时长内未接收到所述第一电表的地址配置配成功消息,则认为本次所述第一电表没有成功配置地址,可以重新广播发送通信地址分配消息,其中携带所述第一电表的第一标识符和第一通信地址对。这样可以提高地址分配的准确性。在一次为多个电表分配通信地址的情况下,如果在预设时长内没有接收到其中某个(或某些)电表的地址配置成功消息,则DCU认为该(些)电表没有成功配置地址,再次广播发送通信地址分配消息时,只需要在消息中携带该(些)电表的标识符和通信地址对。这样既提高了地址分配的效率又能保证准确性。After receiving the address configuration success message of the first power meter, the DCU can confirm that the first power meter successfully configures the address. If the DCU broadcasts the communication address assignment message and does not receive the address configuration success message of the first power meter within the preset time period, it is considered that the first power meter does not successfully configure the address, and the communication address can be re-broadcasted. And assigning a message carrying the first identifier and the first communication address pair of the first meter. This can improve the accuracy of address allocation. In the case of assigning a communication address to a plurality of electric meters at a time, if the address configuration success message of one (or some) of the electric meters is not received within the preset time period, the DCU considers that the electric meter(s) have not successfully configured the address. When the communication address assignment message is broadcast again, it is only necessary to carry the identifier of the meter(s) and the communication address pair in the message. This not only improves the efficiency of address allocation but also ensures accuracy.
如图2所示,该方法中电表的处理流程可以包括如下的步骤:As shown in FIG. 2, the processing flow of the electric meter in the method may include the following steps:
步骤201,智能仪表接收DCU广播发送的通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,第一通信地址为DCU根据第一标识符所分配。Step 201: The smart meter receives a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, and the first communication address is allocated by the DCU according to the first identifier.
在实施中,DCU将通信地址分配消息广播给电表后,电表则可以接收到DCU发送的通信地址分配消息,然后可以对该通信地址分配消息进行解析,获取其中的第一标识符和第一通信地址,以便进行后续处理。In an implementation, after the DCU broadcasts the communication address assignment message to the electricity meter, the electricity meter can receive the communication address assignment message sent by the DCU, and then parse the communication address assignment message to obtain the first identifier and the first communication. Address for subsequent processing.
步骤202,当智能仪表确定第一标识符为智能仪表的标识符时,智能仪表配 置第一通信地址。Step 202: When the smart meter determines that the first identifier is an identifier of the smart meter, the smart meter is configured Set the first communication address.
在实施中,电表获取到通信地址分配消息中的第一标识符和第一通信地址后,可以获取该电表的标识符,如果第一标识符与该电表的标识符相同(一致),则该电表可以对第一通信地址进行存储,将第一通信地址作为自己(该电表)的通信地址。如果通信地址分配消息中的第一标识符与该电表的标识符不同(不一致),则可以丢弃该通信地址分配消息。In an implementation, after the electric meter acquires the first identifier and the first communication address in the communication address assignment message, the identifier of the electric meter may be acquired, and if the first identifier is the same (identical) as the identifier of the electric meter, The meter can store the first communication address as the communication address of the self (the meter). If the first identifier in the communication address assignment message is different (inconsistent) from the identifier of the meter, the communication address assignment message may be discarded.
可选的,智能仪表配置成功后,可以通知DCU,相应的处理过程可以如下:智能仪表向DCU发送地址配置成功消息。Optionally, after the smart meter is configured successfully, the DCU can be notified, and the corresponding processing process can be as follows: the smart meter sends an address configuration success message to the DCU.
在实施中,具有第一标识符的第一电表成功配置第一通信地址后,可以向DCU发送地址配置成功消息,以使DCU准确获知该第一电表是否成功配置了地址。如果DCU广播发送通信地址分配消息后,在预设时长内未接收到地址配置成功消息,则可以重新广播发送通信地址分配消息。In an implementation, after the first electric meter having the first identifier successfully configures the first communication address, the address configuration success message may be sent to the DCU, so that the DCU can accurately know whether the first electric meter successfully configures the address. If the DCU broadcasts the communication address assignment message and does not receive the address configuration success message within the preset duration, the transmission communication address assignment message may be rebroadcast.
本发明实施例中,DCU接收主站发送的标识符通知消息,标识符通知消息中包括第一标识符,DCU根据标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对,DCU广播发送通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,以使具有第一标识符的第一智能仪表配置第一通信地址,这样,可以根据接收到的智能仪表的标识符,自动为智能仪表分配通信地址,无需维护人员手动在主站、DCU和智能仪表中配置各智能仪表的通信地址,从而可以降低部署成本,提高通信地址分配的效率和准确性。In the embodiment of the present invention, the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves the first And the first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication The address, in this way, can automatically assign a communication address to the smart meter according to the identifier of the received smart meter, and the maintenance address is not required by the maintenance personnel to manually configure the communication address of each smart meter in the main station, the DCU, and the smart meter, thereby reducing the deployment cost. Improve the efficiency and accuracy of communication address allocation.
本发明实施例提供了一种分配通信地址的***,包括主站,数据集中单元DCU和智能仪表,如图4所示,该***中,为智能仪表分配通信地址的过程包括如下的步骤:An embodiment of the present invention provides a system for allocating a communication address, including a primary station, a data centralized unit DCU, and a smart meter. As shown in FIG. 4, the process of allocating a communication address for a smart meter includes the following steps:
步骤401,主站向DCU发送标识符通知消息,所述标识符通知消息中包括第一标识符。Step 401: The primary station sends an identifier notification message to the DCU, where the identifier notification message includes a first identifier.
主站可以将需要分配通信地址的智能仪表的标识符(即第一标识符)添加到标识符通知消息中,然后可以将该标识符通知消息发送给相应的DCU。具体地,主站知道所述智能仪表连接到该DCU,当主站确定该智能仪表需要分配通信地址时,例如该智能仪表刚刚加入该***时,主站向该智能仪表连接的DCU 发送标识符通知消息,所述标识符通知消息中包括该智能仪表的标识符,即第一标识符。The primary station may add an identifier (ie, a first identifier) of the smart meter that needs to be assigned a communication address to the identifier notification message, which may then be sent to the corresponding DCU. Specifically, the primary station knows that the smart meter is connected to the DCU, and when the primary station determines that the smart meter needs to allocate a communication address, for example, when the smart meter just joins the system, the DCU connected to the smart meter by the primary station An identifier notification message is sent, the identifier notification message including an identifier of the smart meter, that is, a first identifier.
当然,主站也可以一次向该DCU下发多个标识符,以使该DCU为该多个标识符对应的智能仪表,分别分配通信地址。Of course, the primary station may also send multiple identifiers to the DCU at a time, so that the DCU allocates communication addresses for the smart meters corresponding to the multiple identifiers.
DCU可以对标识符通知消息进行解析,获取第一标识符,并可以将接收到的第一标识符进行存储。The DCU may parse the identifier notification message, obtain the first identifier, and store the received first identifier.
步骤402,DCU接收主站发送的所述标识符通知消息,根据所述标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对。Step 402: The DCU receives the identifier notification message sent by the primary station, allocates a first communication address to the first identifier according to the identifier notification message, and saves the first identifier and the first communication address pair.
在实施中,DCU中可以预先存储可以为电表分配的通信地址,并且可以记录已使用的通信地址和未使用的通信地址,以便进行分配处理。电表的通信地址可以用8位二进制数来表示。DCU接收到收主站发送的标识符通知消息后,对该标识符通知消息进行解析,获取第一标识符,然后可以在DCU预先存储的通信地址中,确定未使用的通信地址,在未使用的通信地址中,获取第一通信地址,进而可以将第一通信地址分配给第一标识符对应的电表,并可以保存标识符与通信地址对,建立标识符与通信地址的对应关系,例如表1所示。In an implementation, a communication address that can be assigned to the meter can be pre-stored in the DCU, and the used communication address and the unused communication address can be recorded for distribution processing. The communication address of the meter can be represented by an 8-bit binary number. After receiving the identifier notification message sent by the receiving station, the DCU parses the identifier notification message to obtain the first identifier, and then can determine the unused communication address in the communication address pre-stored by the DCU, and is not used. Obtaining a first communication address, and then assigning the first communication address to the electricity meter corresponding to the first identifier, and storing the identifier and the communication address pair, and establishing a correspondence between the identifier and the communication address, for example, 1 is shown.
步骤403,DCU广播发送通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对。Step 403: The DCU broadcasts a communication address assignment message, where the communication address assignment message includes a first identifier and a first communication address pair.
在实施中,DCU为具有第一标识符的第一电表配置第一通信地址后,可以将第一通信地址和第一标识符对放在通信地址分配消息中,然后以广播的形式发送给与该DCU连接的电表。DCU与电表之间的可以采用485通信协议来进行通信。在实际中,DCU向电表广播的通信地址分配消息可以采用Modbus格式的报文,也可以是格式的报文。In an implementation, after the DCU configures the first communication address for the first electricity meter having the first identifier, the first communication address and the first identifier pair may be placed in the communication address assignment message, and then sent in the form of a broadcast. The meter connected to the DCU. The DCU and the meter can communicate using the 485 communication protocol. In practice, the DCU can assign a message to the communication address broadcasted by the meter in a Modbus format message or a formatted message.
步骤404,智能仪表接收DCU广播发送的通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对。Step 404: The smart meter receives a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair.
在实施中,电表可以接收DCU广播发送的通信地址分配消息,然后可以对该通信地址分配消息进行解析,获取其中的第一标识符和第一通信地址,以便进行后续处理。In an implementation, the electric meter may receive the communication address assignment message sent by the DCU broadcast, and then parse the communication address assignment message to obtain the first identifier and the first communication address for subsequent processing.
步骤405,当智能仪表确定第一标识符为自身(即,所述智能仪表)的标识符时,所述智能仪表配置第一通信地址。 Step 405: When the smart meter determines that the first identifier is an identifier of itself (ie, the smart meter), the smart meter configures the first communication address.
在实施中,电表获取到通信地址分配消息中的第一标识符和第一通信地址后,可以获取该电表的标识符,如果第一标识符与该电表的标识符相同(一致),则该电表可以对第一通信地址进行存储,将第一通信地址作为自己的通信地址。如果第一标识符与该电表的标识符不同(不一致),则可以丢弃该通信地址分配消息。In an implementation, after the electric meter acquires the first identifier and the first communication address in the communication address assignment message, the identifier of the electric meter may be acquired, and if the first identifier is the same (identical) as the identifier of the electric meter, The meter can store the first communication address and use the first communication address as its own communication address. If the first identifier is different (inconsistent) from the identifier of the meter, the communication address assignment message can be discarded.
本发明实施例中,DCU接收主站发送的标识符通知消息,标识符通知消息中包括第一标识符,DCU根据标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对,DCU广播发送通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,以使具有第一标识符的第一智能仪表配置第一通信地址,这样,可以根据接收到的智能仪表的标识符,自动为智能仪表分配通信地址,无需维护人员手动在主站、DCU和智能仪表中配置各智能仪表的通信地址,从而可以降低部署成本,提高通信地址分配的效率和准确性。In the embodiment of the present invention, the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves the first And the first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication The address, in this way, can automatically assign a communication address to the smart meter according to the identifier of the received smart meter, and the maintenance address is not required by the maintenance personnel to manually configure the communication address of each smart meter in the main station, the DCU, and the smart meter, thereby reducing the deployment cost. Improve the efficiency and accuracy of communication address allocation.
另外,本发明实施例还提供了基于上述为智能仪表分配的通信地址,进行智能仪表数据查询的处理过程,其中,智能仪表可以是智能电表、智能水表或智能气表等。本实施例以智能仪表为智能电表为例进行说明,其他情况与之类似。如图5所示,该智能仪表数据查询的过程具体可以包括以下步骤:In addition, the embodiment of the present invention further provides a process for performing smart meter data query based on the communication address assigned to the smart meter, wherein the smart meter may be a smart meter, a smart water meter, or a smart gas meter. In this embodiment, the smart meter is used as an example for the smart meter, and other situations are similar. As shown in FIG. 5, the process of querying the smart meter data may specifically include the following steps:
步骤501、DCU接收主站发送的第一数据查询消息,第一数据查询消息中包括第一标识符。Step 501: The DCU receives a first data query message sent by the primary station, where the first data query message includes a first identifier.
在实施中,主站中可以安装有用于查询电表数据的应用程序,维护人员可以开启该应用程序,然后可以选择需要查询电表数据的电表(即第一电表),点击第一电表数据查询选项,主站则可以接收到对应该第一电表的数据查询指令,然后可以向DCU发送第一数据查询消息,第一数据查询消息中可以携带有该第一电表的第一标识符。或者,主站可以在达到预设的查询周期时,向DCU发送第一数据查询消息,第一数据查询消息中包括该第一电表的第一标识符。In the implementation, an application for querying the meter data may be installed in the main station, the maintenance personnel may open the application, and then select an electric meter (ie, the first electric meter) that needs to query the electric meter data, and click the first electric meter data query option. The primary station can receive the data query command corresponding to the first power meter, and then can send the first data query message to the DCU, where the first data query message can carry the first identifier of the first power meter. Alternatively, the primary station may send a first data query message to the DCU when the preset query period is reached, where the first data query message includes the first identifier of the first power meter.
另外,维护人员也可以在上述应用程序中选择需要查询电表数据的地区的DCU,然后点击电表数据查询选项。主站则可以接收到对应该DCU的电表数据查询指令,然后可以获取该DCU的标识,进而可以根据预先存储的标识符与DCU的标识的对应关系,确定与该DCU连接的电表的标识符,然后可以向该 DCU发送第一数据查询消息,第一数据查询消息中包括与该DCU连接的若干电表的标识符。或者,维护人员可以通过主站向DCU发送一个未携带有标识符的数据查询消息(可称作第三数据查询消息),DCU接收到第三数据查询消息后,可以向与DCU连接的所有电表发送数据查询消息,从而进行电表数据查询。In addition, the maintenance personnel can also select the DCU of the area in which the meter data needs to be queried in the above application, and then click the meter data query option. The primary station can receive the electric meter data query instruction corresponding to the DCU, and then obtain the identifier of the DCU, and then determine the identifier of the electric meter connected to the DCU according to the correspondence between the pre-stored identifier and the identifier of the DCU. Then you can The DCU sends a first data query message, the first data query message including an identifier of a number of meters connected to the DCU. Alternatively, the maintenance personnel may send a data query message (which may be referred to as a third data query message) that does not carry an identifier to the DCU through the primary station, and after receiving the third data query message, the DCU may send all the electric meters connected to the DCU. Send a data query message to query the meter data.
步骤502、DCU根据第一标识符,获取第一通信地址。Step 502: The DCU acquires the first communication address according to the first identifier.
在实施中,DCU接收主站发送的第一数据查询消息后,可以对第一数据查询消息进行解析,获取第一数据查询消息中的第一标识符,然后可以根据预先存储的标识符与通信地址的对应关系,确定第一标识符对应的第一通信地址,In an implementation, after receiving the first data query message sent by the primary station, the DCU may parse the first data query message, obtain the first identifier in the first data query message, and then communicate with the identifier according to the pre-stored identifier. Corresponding relationship of the address, determining a first communication address corresponding to the first identifier,
步骤503、DCU向具有第一标识符的第一智能仪表发送第二数据查询消息,第二数据查询消息中包括第一通信地址。Step 503: The DCU sends a second data query message to the first smart meter having the first identifier, where the second data query message includes the first communication address.
在实施中,DCU获取第一通信地址后,可以向具有第一标识符的第一智能仪表发送第二数据查询消息。对于第二数据查询消息是Modbus格式的报文的情况,DCU可以将第一通信地址写入报文的地址域中,对于第二数据查询消息是HDLC格式的报文的情况,DCU可以将第一通信地址写入报文的目的地址域中。In an implementation, after the DCU acquires the first communication address, the second data query message may be sent to the first smart meter having the first identifier. For the case where the second data query message is a message in the Modbus format, the DCU may write the first communication address into the address field of the message. For the case where the second data query message is a message in the HDLC format, the DCU may A communication address is written in the destination address field of the message.
步骤504、第一智能仪表接收DCU发送的第二数据查询消息,第二数据查询消息中包括第一通信地址。Step 504: The first smart meter receives the second data query message sent by the DCU, where the second data query message includes the first communication address.
在实施中,DCU基于第一通信地址向上述第一电表发送第二数据查询消息后,该第一电表则可以接收DCU发送的第二数据查询消息,然后可以对第二数据查询消息进行解析,获取其中的第一通信地址。In an implementation, after the DCU sends the second data query message to the first power meter based on the first communication address, the first power meter may receive the second data query message sent by the DCU, and then parse the second data query message. Get the first communication address in it.
步骤505、根据第二数据查询消息,第一智能仪表获取当前数据,并向DCU发送第一反馈消息,第一反馈消息中包括第一通信地址和第一智能仪表的当前数据。Step 505: The first smart meter acquires current data according to the second data query message, and sends a first feedback message to the DCU, where the first feedback message includes the first communication address and current data of the first smart meter.
在实施中,该第一电表可以判断该第一通信地址是否与自身使用的通信地址相同,如果相同,则可以获取当前的电表数据,然后可以将电表数据和第一通信地址添加到第一反馈消息中,并将第一反馈消息发送给DCU。对于第一反馈消息是Modbus格式的报文的情况,该第一电表可以将第一通信地址写入报文的地址域中,对于第一反馈消息是HDLC格式的报文的情况,该第一电表可以将第一通信地址写入报文的源地址域中。In an implementation, the first electricity meter can determine whether the first communication address is the same as the communication address used by itself, and if the same, the current meter data can be acquired, and then the meter data and the first communication address can be added to the first feedback. In the message, the first feedback message is sent to the DCU. In the case that the first feedback message is a message in the Modbus format, the first power table may write the first communication address into the address field of the message. For the case where the first feedback message is a message in the HDLC format, the first The meter can write the first communication address into the source address field of the message.
步骤506、DCU接收第一智能仪表发送的第一反馈消息,第一反馈消息中包括第一通信地址和第一智能仪表的当前数据。 Step 506: The DCU receives the 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.
在实施中,该第一电表向DCU发送第一反馈消息后,DCU可以接收到该第一反馈消息,然后可以对第一反馈消息进行解析,获取其中的第一通信地址和该第一电表的电表数据,以便进行后续处理。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 parse the first feedback message to obtain the first communication address and the first electric meter. Meter data for subsequent processing.
步骤507、DCU根据第一反馈消息中的第一通信地址获取第一标识符,向主站发送第二反馈消息,第二反馈消息中包括第一智能仪表的当前数据和第一标识符。Step 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 primary station, where the second feedback message includes the current data of the first smart meter and the first identifier.
在实施中,DCU获取第一通信地址和该第一电表的电表数据后,可以根据预先存储的标识符与通信地址的对应关系,确定第一通信地址对应的第一标识符,然后可以将该第一电表的电表数据和第一标识符添加到第二反馈消息中,进而可以将第二反馈消息发送给主站。In an implementation, after the DCU obtains the first communication address and the meter data of the first meter, the first identifier corresponding to the first communication address may be determined according to the correspondence between the identifier and the communication address stored in advance, and then the The meter data of the first meter and the first identifier are added to the second feedback message, and the second feedback message can be sent to the primary station.
本发明实施例中,DCU接收主站发送的标识符通知消息,标识符通知消息中包括第一标识符,DCU根据标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对,DCU广播发送通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,以使具有第一标识符的第一智能仪表配置第一通信地址,这样,可以根据接收到的智能仪表的标识符,自动为智能仪表分配通信地址,无需维护人员手动在主站、DCU和智能仪表中配置各智能仪表的通信地址,从而可以降低部署成本,提高通信地址分配的效率和准确性。In the embodiment of the present invention, the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves the first And the first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter having the first identifier configures the first communication The address, in this way, can automatically assign a communication address to the smart meter according to the identifier of the received smart meter, and the maintenance address is not required by the maintenance personnel to manually configure the communication address of each smart meter in the main station, the DCU, and the smart meter, thereby reducing the deployment cost. Improve the efficiency and accuracy of communication address allocation.
基于相同的技术构思,本发明实施例提供了一种DCU,用于实现上述分配通信地址的方法中DCU的功能,如图6所示,该DCU包括:Based on the same technical concept, the embodiment of the present invention provides a DCU for implementing the function of the DCU in the method for allocating a communication address. As shown in FIG. 6, the DCU includes:
第一接收模块610,用于接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符;a first receiving module 610, configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier;
分配模块620,用于根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;The allocating module 620 is configured to allocate, according to the identifier notification message, a first communication address to the first identifier, and save the first identifier and the first communication address pair;
第一发送模块630,用于广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。a first sending module 630, configured to broadcast a communication address assignment message, where the first address identifier and the first communication address pair are included in the communication address assignment message, so that the first identifier has the first identifier The smart meter configures the first communication address.
可选的,所述标识符通知消息中还包括第二标识符;Optionally, the identifier notification message further includes a second identifier;
所述分配模块620,具体用于:根据所述标识符通知消息,为所述第一标识 符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;The allocating module 620 is specifically configured to: according to the identifier notification message, the first identifier Assigning the first communication address, assigning 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 assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
可选的,所述DCU还包括:Optionally, the DCU further includes:
第二接收模块,用于接收具有所述第一标识符的所述第一智能仪表发送的地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。And a second receiving module, 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.
可选的,所述DCU还包括:Optionally, the DCU further includes:
第三接收模块,用于接收所述主站发送的第一数据查询消息,所述第一数据查询消息中包括所述第一标识符;a third receiving module, configured to receive a first data query message sent by the primary station, where the first data query message includes the first identifier;
获取模块,用于根据所述第一标识符,获取所述第一通信地址;An acquiring module, configured to acquire 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 having the first identifier, where the second data query message includes the first communication address;
第四接收模块,用于接收所述第一智能仪表发送的第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述第一智能仪表的当前数据;a fourth receiving module, configured to receive a first feedback message sent by the first 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 primary station, where the second feedback message includes The current data of the first smart meter and the first identifier.
本申请实施例还提供了另一种DCU,用于实现上述分配通信地址的方法中DCU的功能,该DCU的结构示意图请参阅图7。该DCU包括处理器710、接收器720和发送器730;所述处理器710、接收器720和发送器730之间通过总线740相互连接;其中:The embodiment of the present application further provides another DCU for implementing the function of the DCU in the method for allocating a communication address, and FIG. 7 is 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 to each other by a bus 740;
所述接收器720,用于接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符;The receiver 720 is configured to receive an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier;
所述处理器710,用于根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;The processor 710 is configured to allocate, according to the identifier notification message, a first communication address to the first identifier, and save the first identifier and the first communication address pair;
所述发送器730,用于广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。 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 identifier has the first identifier The smart meter configures the first communication address.
所述DCU还可以包括存储器750,所述存储器750中存储有对应关系表,用于保存所述第一标识符和所述第一通信地址对。The DCU may further include a memory 750 in which a correspondence table is stored for storing the first identifier and the first communication address pair.
可选的,所述标识符通知消息中还包括第二标识符;相应地,所述处理器710,具体用于:根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;Optionally, the identifier notification message further includes a second identifier. Correspondingly, the processor 710 is configured to: allocate the first identifier to the first identifier according to the identifier notification message. a communication address, assigning a second communication address to the second identifier, and storing the first identifier and the first communication address pair and the second identifier and the second communication address pair;
所述通信地址分配消息中还包括所述第二标识符与所述第二通信地址对,以使具有所述第二标识符的第二智能仪表配置所述第二通信地址。The communication address assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
可选的,所述处理器710,具体用于:按照所述标识符通知消息中携带所述第一标识符和所述第二标识符的顺序,依次为所述第一标识符和所述第二标识符分配所述第一通信地址和所述第二通信地址。Optionally, the processor 710 is specifically configured to: in the order in which the first identifier and the second identifier are carried in the identifier notification message, the first identifier and the The second identifier assigns the first communication address and the second communication address.
所述处理器710可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件等。The processor 710 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP Processor, etc.), and the like, and may also be a digital signal processor (DSP), an application specific integrated circuit. (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices.
所述处理器710为CPU时,所述存储器750,还可用于存储程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器750可能包含RAM,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。所述处理器710执行所述存储器750中存储的程序代码,实现上述功能。When the processor 710 is a CPU, the memory 750 can also be used to store a program. In particular, the program can include program code, the program code including computer operating instructions. The memory 750 may include RAM, and may also include non-volatile memory, such as at least one disk storage. The processor 710 executes the program code stored in the memory 750 to implement the above functions.
可选的,所述接收器720,还用于接收具有所述第一标识符的所述第一智能仪表发送的地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。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.
可选的,所述接收器720,还用于接收所述主站发送的第一数据查询消息,所述第一数据查询消息中包括第一标识符;Optionally, the receiver 720 is further configured to receive a first data query message sent by the primary station, where the first data query message includes a first identifier;
所述处理器710,还用于根据所述第一标识符,获取所述第一通信地址,并通过所述发送器730向具有所述第一标识符的第一智能仪表发送第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;The processor 710 is further configured to acquire the first communication address according to the first identifier, and send, by using the transmitter 730, a second data query to the first smart meter having the first identifier. a message, the second data query message includes the first communication address;
所述接收器720,还用于接收所述第一智能仪表发送的第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述第一智能仪表的当前数据;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;
所述处理器710,还用于根据所述第一反馈消息中的所述第一通信地址获取 所述第一标识符,并通过所述发送器730向所述主站发送第二反馈消息,所述第二反馈消息中包括所述第一智能仪表的当前数据和所述第一标识符。The processor 710 is further configured to acquire according to the first communication address in the first feedback message. The first identifier, and sending, by the sender 730, a second feedback message to the primary station, where the second feedback message includes current data of the first smart meter and the first identifier.
本实施例中未尽之细节可参考本发明图1和图4-5所示方法中描述,此处不再赘述。The details of the present embodiment can be referred to in the method shown in FIG. 1 and FIG. 4-5 of the present invention, and details are not described herein again.
本发明实施例中,DCU接收主站发送的标识符通知消息,标识符通知消息中包括第一标识符,DCU根据所述标识符通知消息,为第一标识符分配第一通信地址,并保存第一标识符与第一通信地址对,DCU广播发送通信地址分配消息,通信地址分配消息中包括第一标识符和第一通信地址对,以使具有第一标识符的第一智能仪表配置第一通信地址,这样,可以根据接收到的智能仪表的标识符,自动为智能仪表分配通信地址,无需维护人员手动在主站、DCU和智能仪表中配置各智能仪表的通信地址,从而可以降低部署成本,提高通信地址分配的效率和准确性。In the embodiment of the present invention, the DCU receives the identifier notification message sent by the primary station, where the identifier notification message includes the first identifier, and the DCU allocates the first communication address to the first identifier according to the identifier notification message, and saves a first identifier and a first communication address pair, the DCU broadcasts a communication address assignment message, the communication address assignment message includes a first identifier and a first communication address pair, so that the first smart meter configuration having the first identifier is configured A communication address, so that the smart meter can be automatically assigned a communication address according to the identifier of the received smart meter, and the maintenance address of the smart meter can be manually configured in the main station, the DCU, and the smart meter without the maintenance personnel, thereby reducing the deployment. Cost, improve the efficiency and accuracy of communication address allocation.
基于相同的技术构思,本发明实施例提供一种智能仪表,用于实现上述分配通信地址的方法中智能仪表的功能,如图8所示,所述智能仪表包括:Based on the same technical concept, an embodiment of the present invention provides a smart meter for implementing the function of the smart meter in the method for allocating a communication address. As shown in FIG. 8, the smart meter includes:
第一接收模块810,用于接收DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;a first receiving module 810, configured to receive a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is The first identifier is assigned;
配置模块820,用于当所述智能仪表确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。The configuration module 820 is 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:
第一发送模块,用于向所述DCU发送地址分配成功消息,所述地址配置成功消息中包括所述第一标识符。The first sending module is configured to send an address allocation success message to the DCU, where the address configuration success message includes the first identifier.
可选的,所述智能仪表还包括:Optionally, the smart meter further includes:
第二接收模块,用于接收所述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, where the first feedback message includes the first communication address and the smart meter Current data.
基于与上述分配通信地址的方法相同的技术构思,本申请实施例还提供了 另一种智能仪表,用于实现上述分配通信地址的方法中智能仪表的功能,该智能仪表的结构示意图请参阅图9。该智能仪表包括处理器910、接收器920和发送器930;所述处理器910、接收器920和发送器930之间通过总线940相互连接;其中:Based on the same technical concept as the method for allocating a communication address, the embodiment of the present application further provides Another smart meter is used to implement the function of the smart meter in the method for allocating the communication address. Please refer to FIG. 9 for the structure diagram of the smart meter. 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 by a bus 940; wherein:
所述接收器920,用于接收DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;The receiver 920 is configured to receive a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the The first identifier is assigned;
所述处理器910,用于在确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。The processor 910 is configured to configure the first communication address when determining that the first identifier is an identifier of the smart meter.
所述智能仪表还可以包括存储器950,所述存储器950中存储有所述第一通信地址和所述智能仪表的标识符。The smart meter may further include a memory 950 in which the first communication address and an identifier of the smart meter are stored.
所述处理器910可以是通用处理器,包括中央处理器CPU、NP等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件等。The processor 910 may be a general purpose processor, including a central processing unit CPU, NP, etc.; or may be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable Logic devices, etc.
所述处理器910为CPU时,所述存储器950,还可用于存储程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器950可能包含RAM,也可能还包括非易失性存储器,例如至少一个磁盘存储器。所述处理器910执行所述存储器950中存储的程序代码,实现上述功能。When the processor 910 is a CPU, the memory 950 can also be used to store a program. In particular, the program can include program code, the program code including computer operating instructions. Memory 950 may include RAM and may also include non-volatile memory, such as at least one disk storage. The processor 910 executes the program code stored in the memory 950 to implement the above functions.
可选的,所述发送器930,用于向所述DCU发送地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。Optionally, the sender 930 is configured to send an address configuration success message to the DCU, where the address configuration success message includes the first identifier.
可选的,所述接收器920,还用于接收所述DCU发送的第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;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;
所述处理器910,还用于根据所述第二数据查询消息,获取所述智能仪表的当前数据,并通过所述发送器向所述DCU发送第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述智能仪表的当前数据。The processor 910 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 by using the sender, where the first feedback message is The first communication address and current data of the smart meter are included.
所述存储器950还可用于存储所述智能仪表的当前数据。The memory 950 can also be used to store current data of the smart meter.
本实施例中未尽之细节可参考本发明图2和图4-5所示方法中描述,此处不再赘述。The details of the present embodiment are described in the method shown in FIG. 2 and FIG. 4-5 of the present invention, and details are not described herein again.
本发明实施例中,智能仪表接收DCU广播发送的通信地址分配消息,该通信地址分配消息中包括DCU为智能仪表分配的通信地址;该智能仪表根据该通 信地址分配消息,获得与自己标识符对应的通信地址,并保存(自动配置)该通信地址,可以降低人工为智能仪表配置通信地址的部署成本,避免人工配置出错,提高了通信地址分配的准确性。In the embodiment of the present invention, the smart meter receives a communication address assignment message sent by the DCU broadcast, where the communication address assignment message includes a communication address allocated by the DCU for the smart meter; the smart meter according to the communication The address allocation message obtains the communication address corresponding to the own identifier, and saves (automatically configures) the communication address, which can reduce the deployment cost of manually configuring the communication address for the smart meter, avoid manual configuration errors, and improve the accuracy of the communication address allocation. Sex.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the scope of the present invention, should be included in the scope of the present invention. Inside.

Claims (23)

  1. 一种分配通信地址的方法,其特征在于,包括:A method for allocating a communication address, comprising:
    数据集中单元DCU接收主站发送的标识符通知消息,所述标识符通知消息中包括第一标识符;The data center unit DCU receives an identifier notification message sent by the primary station, where the identifier notification message includes a first identifier;
    所述DCU根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;And the DCU allocates a first communication address to the first identifier according to the identifier notification message, and saves the first identifier and the first communication address pair;
    所述DCU广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。The DCU broadcasts a communication address assignment message, the communication address assignment message including the first identifier and the first communication address pair to cause the first smart meter having the first identifier to configure the First communication address.
  2. 根据权利要求1所述的方法,其特征在于,所述标识符通知消息中还包括第二标识符;The method according to claim 1, wherein the identifier notification message further includes a second identifier;
    所述DCU根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对,包括:And the DCU assigns a first communication address to the first identifier according to the identifier notification message, and saves the first identifier and the first communication address pair, including:
    所述DCU根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;Determining, by the DCU, the first communication address for the first identifier, assigning a second communication address to the second identifier, and saving the first identifier and the a first communication address pair and the second identifier and the second communication address pair;
    所述通信地址分配消息中还包括所述第二标识符与所述第二通信地址对,以使具有所述第二标识符的第二智能仪表配置所述第二通信地址。The communication address assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
  3. 根据权利要求2所述的方法,其特征在于,所述DCU根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,包括:The method of claim 2, wherein the DCU assigns the first communication address to the first identifier and the second communication to the second identifier according to the identifier notification message Address, including:
    所述DCU按照所述标识符通知消息中携带所述第一标识符和所述第二标识符的顺序,依次为所述第一标识符和所述第二标识符分配所述第一通信地址和所述第二通信地址。And the DCU sequentially assigns the first communication address to the first identifier and the second identifier according to an 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广播发送所述通信地址分配消息之后,所述方法还包括:The method according to claim 1, wherein after the DCU broadcasts the sending of 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任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, further comprising:
    所述DCU接收所述主站发送的第一数据查询消息,所述第一数据查询消息 中包括所述第一标识符;Receiving, by the DCU, a first data query message sent by the primary station, the first data query message Include the first identifier;
    所述DCU根据所述第一标识符,获取所述第一通信地址;Determining, by the DCU, the first communication address according to the first identifier;
    所述DCU向具有所述第一标识符的所述第一智能仪表发送第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;The DCU sends a second data query message to the first smart meter having the first identifier, where the second data query message includes the first communication address;
    所述DCU接收所述第一智能仪表发送的第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述第一智能仪表的当前数据;Receiving, by the DCU, 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;
    所述DCU根据所述第一反馈消息中的所述第一通信地址获取所述第一标识符,向所述主站发送第二反馈消息,所述第二反馈消息中包括所述第一智能仪表的当前数据和所述第一标识符。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 primary station, where the second feedback message includes the first intelligence The current data of the meter and the first identifier.
  6. 一种分配通信地址的方法,其特征在于,包括:A method for allocating a communication address, comprising:
    智能仪表接收数据集中单元DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;The smart meter receives a communication address assignment message sent by the data center unit DCU, and the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the first identifier. Assigned by
    当所述智能仪表确定所述第一标识符为所述智能仪表的标识符时,所述智能仪表配置所述第一通信地址。The smart meter configures the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
  7. 根据权利要求6所述的方法,其特征在于,在所述智能仪表配置所述第一通信地址之后,所述方法还包括:The method according to claim 6, wherein 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 to feed back to the DUC that the smart meter successfully configures the first communication address allocated by the DCU.
  8. 根据权利要求6或7所述的方法,其特征在于,所述方法还包括:The method according to claim 6 or 7, wherein the method further comprises:
    所述智能仪表接收所述DCU发送的第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;Receiving, by the smart meter, a second data query message sent by the DCU, where the second data query message includes the first communication address;
    根据所述第二数据查询消息,所述智能仪表获取当前数据,并向所述DCU发送第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述智能仪表的当前数据。The smart meter acquires current data according to the second data query message, and sends a first feedback message to the DCU, where the first feedback message includes the first communication address and current data of the smart meter. .
  9. 一种数据集中单元DCU,其特征在于,包括接收器,发送器和处理器;其中,A data centralized unit DCU, comprising: a receiver, a transmitter and a processor; wherein
    所述接收器,用于接收主站发送的标识符通知消息,所述标识符通知消息 中包括第一标识符;The receiver is configured to receive an identifier notification message sent by the primary station, where the identifier notification message Include the first identifier;
    所述处理器,用于根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;The processor, configured to allocate a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address pair;
    所述发送器,用于广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。The transmitter 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 with the first identifier The meter configures the first communication address.
  10. 根据权利要求9所述的DCU,其特征在于,所述标识符通知消息中还包括第二标识符;The DCU according to claim 9, wherein the identifier notification message further includes a second identifier;
    所述处理器,具体用于根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;The processor is specifically configured to allocate, according to the identifier notification message, the first communication address to the first identifier, assign a second communication address to the second identifier, and save the first An identifier and the first communication address pair and the second identifier and the second communication address pair;
    所述通信地址分配消息中还包括所述第二标识符与所述第二通信地址对,以使具有所述第二标识符的第二智能仪表配置所述第二通信地址。The communication address assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
  11. 根据权利要求9所述的DCU,其特征在于,所述接收器,还用于接收具有所述第一标识符的所述第一智能仪表发送的地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。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, where the address configuration success message is The first identifier is included.
  12. 根据权利要求9至11任一项所述的DCU,其特征在于,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 primary station, where the first data query message includes a first identifier;
    所述处理器,还用于根据所述第一标识符,获取所述第一通信地址,并通过所述发送器向具有所述第一标识符的第一智能仪表发送第二数据查询消息,所述第二数据查询消息中包括所述第一通信地址;The processor is further configured to acquire the first communication address according to the first identifier, and send, by using the transmitter, a second data query message to a first smart meter having the first identifier, where The second data query message includes the first communication address;
    所述接收器,还用于接收所述第一智能仪表发送的第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述第一智能仪表的当前数据;The receiver is further configured to receive a first feedback message sent by the first smart meter, where the first feedback message includes the first communication address and current data of the first smart meter;
    所述处理器,还用于根据所述第一反馈消息中的所述第一通信地址获取所述第一标识符,并通过所述发送器向所述主站发送第二反馈消息,所述第二反馈消息中包括所述第一智能仪表的当前数据和所述第一标识符。The processor is further configured to acquire the first identifier according to the first communication address in the first feedback message, and send a second feedback message to the primary station by using the transmitter, The second feedback message includes current data of the first smart meter and the first identifier.
  13. 一种数据集中单元DCU,其特征在于,包括:A data concentration unit DCU, comprising:
    第一接收模块,用于接收主站发送的标识符通知消息,所述标识符通知消 息中包括第一标识符;a first receiving module, configured to receive an identifier notification message sent by the primary station, where the identifier is notified The first identifier is included in the interest;
    分配模块,用于根据所述标识符通知消息,为所述第一标识符分配第一通信地址,并保存所述第一标识符与所述第一通信地址对;An allocating module, configured to allocate a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address pair;
    第一发送模块,用于广播发送通信地址分配消息,所述通信地址分配消息中包括所述第一标识符和所述第一通信地址对,以使具有所述第一标识符的第一智能仪表配置所述第一通信地址。a first sending module, configured to broadcast a communication address allocation message, where the communication address assignment message includes the first identifier and the first communication address pair, so that the first smart with the first identifier The meter configures the first communication address.
  14. 根据权利要求13所述的DCU,其特征在于,所述标识符通知消息中还包括第二标识符;The DCU according to claim 13, wherein the identifier notification message further includes a second identifier;
    所述分配模块,具体用于:根据所述标识符通知消息,为所述第一标识符分配所述第一通信地址,为所述第二标识符分配第二通信地址,并保存所述第一标识符与所述第一通信地址对以及所述第二标识符与所述第二通信地址对;The allocating module is configured to: allocate, according to the identifier notification message, the first communication address to the first identifier, assign a second communication address to the second identifier, and save the first An identifier and the first communication address pair and the second identifier and the second communication address pair;
    所述通信地址分配消息中还包括所述第二标识符与所述第二通信地址对,以使具有所述第二标识符的第二智能仪表配置所述第二通信地址。The communication address assignment message further includes the second identifier and the second communication address pair, so that the second smart meter having the second identifier configures the second communication address.
  15. 根据权利要求13所述的DCU,其特征在于,所述DCU还包括:The DCU according to claim 13, wherein the DCU further comprises:
    第二接收模块,用于接收具有所述第一标识符的所述第一智能仪表发送的地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。And a second receiving module, 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还包括: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 primary station, where the first data query message includes the first identifier;
    获取模块,用于根据所述第一标识符,获取所述第一通信地址;An acquiring module, configured to acquire 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 having the first identifier, where the second data query message includes the first communication address;
    第四接收模块,用于接收所述第一智能仪表发送的第一反馈消息,所述第一反馈消息中包括所述第一通信地址和所述第一智能仪表的当前数据;a fourth receiving module, configured to receive a first feedback message sent by the first 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 primary station, where the second feedback message includes The current data of the first smart meter and the first identifier.
  17. 一种智能仪表,其特征在于,包括: A smart meter characterized by comprising:
    接收器,用于接收数据集中单元DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;a receiver, configured to receive a communication address assignment message sent by the data center unit DCU, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the The first identifier is assigned;
    处理器,用于在确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。And a processor, configured to configure the first communication address when determining that the first identifier is an identifier of the smart meter.
  18. 根据权利要求17所述的智能仪表,其特征在于,所述智能仪表还包括发送器;The smart meter according to claim 17, wherein the smart meter further comprises a transmitter;
    所述发送器,用于向所述DCU发送地址配置成功消息,所述地址配置成功消息中包括所述第一标识符。The transmitter 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所述的智能仪表,其特征在于,A smart meter according to claim 17 or 18, wherein
    所述接收器,还用于接收所述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: acquire the current data of the smart meter according to the second data query message, and send a first feedback message to the DCU by using the sender, where the first feedback message includes The first communication address and current data of the smart meter.
  20. 一种智能仪表,其特征在于,包括:A smart meter characterized by comprising:
    第一接收模块,用于接收数据集中单元DCU广播发送的通信地址分配消息,所述通信地址分配消息中包括第一标识符和第一通信地址对,所述第一通信地址为所述DCU根据所述第一标识符所分配;a first receiving module, configured to receive a communication address assignment message sent by the data center unit DCU, where the communication address assignment message includes a first identifier and a first communication address pair, where the first communication address is the DCU according to the The first identifier is assigned;
    配置模块,用于当所述智能仪表确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。And a configuration module, configured to configure the first communication address when the smart meter determines that the first identifier is an identifier of the smart meter.
  21. 根据权利要求20所述的智能仪表,其特征在于,所述智能仪表还包括:The smart meter according to claim 20, wherein the smart meter further comprises:
    第一发送模块,用于向所述DCU发送地址分配成功消息,所述地址配置成功消息中包括所述第一标识符。The first sending module is configured to send an address allocation success message to the DCU, where the address configuration success message includes the first identifier.
  22. 根据权利要求20或21所述的智能仪表,其特征在于,所述智能仪表还包括: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 The DCU sends a first feedback message, where the first feedback message includes the first communication address and current data of the smart meter.
  23. 一种分配通信地址的***,其特征在于,包括主站,数据集中单元DCU和智能仪表;其中:A system for allocating a communication address, comprising: a primary station, a data concentration unit DCU and a smart meter; 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, allocate a first communication address to the first identifier according to the identifier notification message, and save the first identifier and the first communication address And transmitting, by the broadcast, a communication address assignment message, where the communication address assignment message includes the first identifier and the first communication address pair;
    所述智能仪表,用于接收所述通信地址分配消息,并在确定所述第一标识符为所述智能仪表的标识符时,配置所述第一通信地址。 The smart meter is configured to receive the communication address assignment message, and configure the first communication address when determining that the first identifier is an identifier of the smart meter.
PCT/CN2016/084749 2015-10-19 2016-06-03 Method, apparatus and system for allocating communication address to smart meter WO2017067179A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2017067179A1 true WO2017067179A1 (en) 2017-04-27

Family

ID=58554716

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084749 WO2017067179A1 (en) 2015-10-19 2016-06-03 Method, apparatus and system for allocating communication address to smart meter

Country Status (2)

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

Families Citing this family (9)

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

Citations (4)

* 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
CN102685273A (en) * 2012-06-08 2012-09-19 陈梓平 Address allocation method for intelligent equipment
CN103475747A (en) * 2013-08-21 2013-12-25 广东浩迪创新科技有限公司 Electric energy meter networked system capable of automatically sending address information and sending method thereof
US20140344477A1 (en) * 2012-01-10 2014-11-20 Mitsubishi Electric Corporation Ip address distribution system and ip address distribution method

Family Cites Families (8)

* 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
CN102157057A (en) * 2011-05-09 2011-08-17 上海大学 Wi-Fi (Wireless Fidelity)-based wireless meter reading device
JP5895415B2 (en) * 2011-09-19 2016-03-30 株式会社リコー COMMUNICATION SYSTEM, COMMUNICATION DEVICE, PROGRAM, AND ALLOCATION DEVICE
US9256502B2 (en) * 2012-06-19 2016-02-09 Oracle International Corporation Method and system for inter-processor communication
CN103686672B (en) * 2012-09-24 2016-12-28 华为终端有限公司 The method and apparatus of transmission data
JP6148458B2 (en) * 2012-11-30 2017-06-14 株式会社東芝 Authentication apparatus and method, and computer program
CN103116975A (en) * 2013-01-21 2013-05-22 孙建东 Direct reading type remote meter reading system
CN104579942B (en) * 2013-10-17 2019-04-16 中兴通讯股份有限公司 The retransmission method and device of network message

Patent Citations (4)

* 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
US20140344477A1 (en) * 2012-01-10 2014-11-20 Mitsubishi Electric Corporation Ip address distribution system and ip address distribution method
CN102685273A (en) * 2012-06-08 2012-09-19 陈梓平 Address allocation method for intelligent equipment
CN103475747A (en) * 2013-08-21 2013-12-25 广东浩迪创新科技有限公司 Electric energy meter networked system capable of automatically sending address information and sending method thereof

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2017067179A1 (en) Method, apparatus and system for allocating communication address to smart meter
CN107852661B (en) Network manager and mesh network system
KR20150120526A (en) Multicast information transmission method and device
CN102710811B (en) Realize method and the switch of dhcp address safety distribution
CN110740460A (en) device network access method, device, network device and storage medium
CN104333517A (en) Automation equipment communication method based on CAN bus
WO2015062479A1 (en) Method, device and system for monitoring terminal status
US10944716B2 (en) Metering device address management method, collection terminal, and metering device
CN111277507A (en) Method for realizing information exchange between wireless terminals
WO2020221326A1 (en) Resource scheduling method and communication device
CN109769038A (en) A kind of method and device of configuring internet protocol address
WO2016154918A1 (en) Data processing method, apparatus and device
JP6147934B2 (en) Method, base station and user equipment for transmitting signals in inter-device proximity service
US20130039246A1 (en) Method and device for allocating resources in wireless communication system
WO2018170877A1 (en) Information sending method and apparatus, terminal, access network device and system
US9877355B2 (en) Wireless communicator connectable to different types of wireless communication networks
WO2020216083A1 (en) Communication method, communication apparatus, and terminal device
CN104080113A (en) Simulation test method of LTE (Long Term Evolution) base station (eNB)
CN113395366A (en) Network address allocation method and device
US9160560B2 (en) CSMA time slot providing and obtaining method and device, networking method and device, and system
CN106850175B (en) Method and device for sharing IP address
CN111385845A (en) Data sending and receiving method, device, terminal and communication equipment
WO2015157945A1 (en) Information transmission method, device, and system
WO2019127204A1 (en) Data transmission method and device
WO2019015049A1 (en) Method and device for exception handling in wireless sensor network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16856620

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16856620

Country of ref document: EP

Kind code of ref document: A1