WO2017107473A1 - Method for controlling network access of intelligent instrument, master station and data concentration unit - Google Patents

Method for controlling network access of intelligent instrument, master station and data concentration unit Download PDF

Info

Publication number
WO2017107473A1
WO2017107473A1 PCT/CN2016/090517 CN2016090517W WO2017107473A1 WO 2017107473 A1 WO2017107473 A1 WO 2017107473A1 CN 2016090517 W CN2016090517 W CN 2016090517W WO 2017107473 A1 WO2017107473 A1 WO 2017107473A1
Authority
WO
WIPO (PCT)
Prior art keywords
smart meter
dcu
file
table number
filing
Prior art date
Application number
PCT/CN2016/090517
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 WO2017107473A1 publication Critical patent/WO2017107473A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, a primary station, and a data centralized unit for controlling a smart meter to access a network.
  • Power Line Communication (PLC) technology is a communication method that uses power lines for data transmission.
  • PLC Power Line Communication
  • AMI Advanced Metering Infrastructure
  • PLC technology is commonly used.
  • the main station performs data collection, management and control on the PLC meter through a data concentrating unit (DCU).
  • DCU data concentrating unit
  • the master station must maintain information about the DCU and the PLC meter, ie the file.
  • the file is manually entered into the main station, and the main station saves the file and then sends it to the DCU.
  • the PLC meter usually uses the automatic discovery mechanism to access the network, that is, access to the DCU according to the network access notification sent by the DCU. In this way, the meter may not have access to the DCU specified by the file, resulting in the meter not being recognized by the primary station.
  • the embodiment of the invention provides a method for controlling the intelligent instrument to enter the network, a main station and a data concentrating unit.
  • the main station is triggered to automatically create a file, which can solve the manual entry of the file at the main station, and the labor cost is high and artificial. Entering problems that are prone to errors increases the flexibility and network access efficiency of smart meters.
  • the first aspect provides a method for controlling a smart meter to access a network, where the DCU receives a network access request message sent by the smart meter, including a table number and an address of the smart meter; and the DCU queries the access record according to the address of the smart meter. And determining whether the smart meter is included in the access record;
  • the DCU When the address of the smart meter exists in the access record, indicating that the smart meter has previously entered the network from the DCU, the DCU directly accepts the network access request of the smart meter, allowing the Smart meter access network;
  • the DCU When the address of the smart meter does not exist in the access record, the DCU sends a file request message to the primary station, where the table number of the smart meter and the identifier of the DCU are included, requesting the primary station to be The smart meter establishes a file; then the DCU determines whether to allow the smart meter to enter the network according to the filing response message returned by the primary station, and the file response message returned by the primary station includes the table number and the filing result of the smart meter; When it is determined that the filing result is successful, the DCU adds the address of the smart meter in the access record, allowing the smart meter to enter the network; when determining that the filing result is a failure, the DCU may reject the Smart meters enter the network.
  • the DCU after receiving the network access request of the smart meter, the DCU first requests the primary station to establish a file for the smart meter, and allows the smart meter to enter the network when the main station is successfully filed, thereby not only realizing automatic file creation from the bottom up, It improves the flexibility and network access efficiency of smart meter access, and can ensure the consistency of files. In this way, it is not necessary to manually send the DCU to the DCU in the main station, which can reduce labor costs and avoid the problem of manual entry.
  • the network access request message further includes additional information of the smart meter; and when the address of the smart meter exists in the access record, the DCU The DCU may further determine that the additional information of the smart meter is updated; when the additional information of the smart meter is updated, the DCU sends an archive update message to the primary station, where the identifier of the DCU is included, where the smart meter The table number, and additional information of the smart meter, to cause the primary station to update the additional information in the file of the smart meter. In this way, the file of the smart meter on the main station can be updated in time to ensure smooth communication between the main station, the DCU and the smart meter.
  • the DCU may first determine the number of smart meters accessing the DCU. Whether it is less than a preset access threshold; if the number of smart meters accessing the DCU is less than the preset accessible threshold, the DCU continues the step of querying the access record according to the address of the smart meter; The DCU may reject the network access request of the smart meter and end the flow of the method. In this way, it is determined whether the DCU is saturated by preset access thresholds, and the DCU can be prevented from accessing too many smart meters and overloading occurs. Case. Load balancing between DCUs can be achieved when multiple DCUs are deployed.
  • the DCU before the DCU receives the access request message sent by the smart meter, the DCU sends a broadcast message, including the The identifier of the DCU to notify the smart meter receiving the broadcast message that the network can be accessed from the DCU.
  • the network request message further includes an identifier of the DCU.
  • a second aspect provides a method for controlling a smart meter to access a network, where the primary station receives a filing request message sent by the DCU, where the identifier of the DCU and the table number of the first smart meter are included, and the primary station is according to the first The table number of the smart meter queries the archive to determine whether the first smart meter is included in the archive;
  • the first smart meter may enter the network for the first time, and the primary station establishes in the archive according to the filing request message.
  • An archive of the first smart meter including a correspondence between a table number of the first smart meter and an identifier of the DCU, and then sending a file response message to the DCU, including a table of the first smart meter
  • the first filing result is successful, indicating that the primary station establishes the file of the first smart meter successfully.
  • the primary station establishes a file for the first smart meter according to the file request of the DCU, thereby realizing automatic file creation from the bottom up, and improving the smart instrument accessing the network.
  • the flexibility and efficiency of the network, and the need to manually enter the file at the main station can reduce labor costs, and can avoid manual error-prone problems.
  • the number of the first smart meter exists in the archive, it indicates that the first smart meter is not the first time to enter the network, and includes the following two possible implementation manners:
  • the primary station may reject the file request of the DCU, and send a file response message to the DCU, where the file response response message includes the table number of the first smart meter.
  • the first filing result is a failure, indicating that the primary station fails to establish the file of the first smart meter.
  • the smart meter can always enter the network from the same DCU, so that the network topology can be frequently changed due to the DCU connected by the smart meter replacement.
  • the smart meter may have to send a network access request multiple times in order to access the DCU from the time of the first network access (for example) For example, the other DCUs mentioned above are connected to the network.
  • the primary station may update an archive of the first smart meter according to the filing request message, in other words, the primary station causes the file of the first smart meter to include the first Corresponding relationship between the table number of the smart meter and the identifier of the DCU, and then the primary station sends the filing response message to the DCU, including the table number of the first smart meter and the first filing result The first result of the filing is success.
  • the new DCU the DCU
  • the new DCU can still be connected to the network, so that the smart meter may have to try multiple times to enter the network, thereby improving the network access efficiency.
  • the primary station receives an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter.
  • the primary station is attached by the second smart meter The information updates the file of the second smart meter. In this way, when the information of the smart meter is updated, the main station can update the file of the smart meter in time to ensure smooth communication between the main station, the DCU and the smart meter.
  • the third aspect provides a method for controlling a smart meter to access a network, where the DCU receives a network access request message sent by the smart meter, including a table number and an address of the smart meter; and the DCU queries the access record according to the address of the smart meter. Determining whether the smart meter is included in the access record; when the address of the smart meter exists in the access record, indicating that the smart meter has previously entered the network from the DCU, the DCU accepts The network access request of the smart meter directly allows the smart meter to enter the network; when the address of the smart meter does not exist in the access record, the DCU adds the smart meter to the access record.
  • An address allowing the smart meter to enter the network, and sending a filing request message to the primary station, including a table number of the smart meter and an identifier of the DCU, so that the primary station establishes a location according to the filing request message
  • the file of the smart meter In this way, after receiving the network access request of the first smart meter, the DCU allows the first smart meter to access the DCU to access the network regardless of whether the first smart meter enters the network for the first time, and triggers the primary station to establish or update the synchronization.
  • the file of the first smart meter can be connected to the network from any DCU, avoiding smart meters to taste Try to enter the network multiple times.
  • the real-time performance of smart meters entering the network is high, which improves the efficiency of network access.
  • there is no need to manually send the DCU to the DCU in the main station which can reduce labor costs and avoid the problem of manual entry.
  • the network access request message further includes additional information of the smart meter; and when the address of the smart meter exists in the access record, the DCU The DCU may further determine that the additional information of the smart meter is updated; when the additional information of the smart meter is updated, the DCU sends an archive update message to the primary station, where the identifier of the DCU is included, where the smart meter The table number, and additional information of the smart meter, to cause the primary station to update the additional information in the file of the smart meter. In this way, the file of the smart meter on the main station can be updated in time to ensure smooth communication between the main station, the DCU and the smart meter.
  • the DCU may first determine the number of smart meters accessing the DCU. Whether it is less than a preset access threshold; if the number of smart meters accessing the DCU is less than the preset accessible threshold, the DCU continues the step of querying the access record according to the address of the smart meter; The DCU may reject the network access request of the smart meter and end the flow of the method. In this way, it is determined whether the DCU is saturated by presetting the accessible threshold, and the DCU can be prevented from accessing too many smart meters and an overload occurs. Load balancing between DCUs can be achieved when multiple DCUs are deployed.
  • the DCU before the DCU receives the access request message sent by the smart meter, the DCU sends a broadcast message, including the An identifier of the DCU, the broadcast message is used to notify the smart meter that the network can be accessed from the DCU.
  • the network request message further includes an identifier of the DCU. In this way, any smart meter that receives the broadcast message can request to access the network from the DCU.
  • the fourth aspect provides a method for controlling a smart meter to access a network, where the primary station receives a filing request message sent by the DCU, where the identifier of the DCU and the table number of the first smart meter are included; the primary station is according to the first The meter number of the smart meter queries the archive to determine whether the file is included in the archive a smart meter; when the number of the first smart meter does not exist in the archive, the first smart meter may enter the network for the first time, and the main station is in the file according to the filing request message.
  • the primary station updates the file of the first smart meter according to the filing request message, in other words, the primary station causes the file of the first smart meter to include the table number of the first smart meter and the The correspondence between the IDs of the DCUs. In this way, whether the first smart meter enters the network for the first time or has entered the network from another DCU, according to the DCU's filing request, the primary station directly establishes or updates the file of the first smart meter, thereby improving the network access efficiency of the smart meter.
  • the primary station sends a file response response message to the DCU after completing the establishing or updating the file of the first smart meter, where the file response response message includes the table number of the first smart meter. So that the DCU knows that the primary station has established or updated the file of the first smart meter, and ensures the consistency of the files on the primary station and the DCU.
  • the primary station receives an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter.
  • the primary station is attached by the second smart meter The information updates the file of the second smart meter. In this way, when the information of the smart meter is updated, the main station can update the file of the smart meter in time to ensure smooth communication between the main station, the DCU and the smart meter.
  • a DCU has the function of implementing the foregoing DCU in the method for controlling the smart meter to access the network, and the function may be implemented by hardware or by executing corresponding software by hardware, where the hardware or software includes One or more modules corresponding to the above functions.
  • a primary station has a function of implementing a primary station in a method for controlling a smart meter to access the network, and the function may be implemented by using hardware or by executing corresponding software by hardware, where the hardware is implemented.
  • the software includes one or more modules corresponding to the functions described above.
  • a computer storage medium wherein a program is stored in the computer storage medium Code, the program code comprising instructions for implementing the method of the first aspect above.
  • a computer storage medium storing program code, the program code including instructions for implementing the method of the second aspect.
  • a computer storage medium having program code stored therein, the program code including instructions for implementing the method of the third aspect.
  • a computer storage medium having program code stored therein, the program code including instructions for implementing the method of the fourth aspect.
  • a system for controlling a smart meter to access a network comprising a smart meter, a DCU implementing the method of the first aspect described above, and a primary station implementing the method of the second aspect described above are provided.
  • the DCU receives the network access request message sent by the smart meter, including the table number and address of the smart meter, and the DCU queries the access record according to the address of the smart meter to determine whether the smart record includes the smart record.
  • the DCU directly accepts the network access request of the smart meter, allowing the smart meter to enter the network; when the smart record does not exist in the access record
  • the DCU sends a filing request message to the primary station, including the table number of the smart meter and the identifier of the DCU.
  • the primary station queries the archive according to the table number of the first smart meter to determine whether the first smart meter is included in the archive; when the number of the first smart meter does not exist in the archive And the primary station establishes the file of the first smart meter in the archive according to the filing request message, and then sends a file response message including the result of the file creation to the DCU.
  • the primary station may reject the filing request of the DCU, and send a filing response message including the failure of the filing result to the DCU; Or the primary station may update the file of the first smart meter according to the filing request message, and send a file response response message including the result of the establishment of the file to the DCU.
  • the DCU adds the smart meter to the access record. Address, allowing the smart meter to enter the network; when it is determined that the result of the filing is a failure, the The DCU can reject the smart meter to access the network.
  • a system for controlling a smart meter to access a network comprising a smart meter, a DCU implementing the method of the third aspect, and a primary station implementing the method of the fourth aspect described above are provided.
  • the DCU receives the network access request message sent by the smart meter, including the table number and address of the smart meter, and the DCU queries the access record according to the address of the smart meter to determine whether the smart record includes the smart record.
  • the DCU directly accepts the network access request of the smart meter, allowing the smart meter to enter the network; when the smart record does not exist in the access record
  • the DCU sends a file request message to the primary station, which includes the table number of the smart meter and the identifier of the DCU, so that the primary station establishes or updates the file of the first smart meter.
  • the primary station queries the archive according to the table number of the first smart meter to determine whether the first smart meter is included in the archive; when the number of the first smart meter does not exist in the archive And the primary station establishes an archive of the first smart meter in the archive according to the filing request message; when the table number of the first smart meter exists in the archive, the main The station updates the file of the first smart meter according to the filing request message.
  • FIG. 1 is a schematic diagram of a smart meter reading system according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for controlling a smart meter to access a network according to an embodiment of the present application
  • FIG. 3 is a flowchart of another method for controlling a smart meter to access a network according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a DCU according to an embodiment of the present disclosure.
  • FIG. 5 is another schematic structural diagram of a DCU according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a primary station according to an embodiment of the present application.
  • FIG. 7 is another schematic structural diagram of a primary station according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another DCU according to an embodiment of the present disclosure.
  • FIG. 9 is another schematic structural diagram of another DCU according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another primary station according to an embodiment of the present disclosure.
  • FIG. 11 is another schematic structural diagram of another primary station according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a system for controlling a smart meter to access a network according to an embodiment of the present disclosure
  • FIG. 13 is a schematic structural diagram of another system for controlling a smart meter to access a network according to an embodiment of the present disclosure.
  • the technical solution for controlling the intelligent instrument network access is used for controlling the smart instrument to enter the network in the intelligent meter reading system based on PLC technology deployed by AMI as shown in FIG. 1 .
  • the system shown in Figure 1 includes a primary station, a DCU, and a smart meter.
  • the smart meter is connected to (accessed) the DCU, and the PLC technology is used to communicate with the DCU, and the DCU and the main station can communicate through a wired or wireless network.
  • the smart meter in this application refers to a meter device such as a smart meter or a smart water meter that supports PLC technology.
  • the method for controlling the intelligent instrument to enter the network provided by the application is generated by the DCU according to the accessed smart meter information, and is sent to the main station for storage, thereby automatically generating files from the bottom up, which can solve the problem that the manual input file is large and error-prone. And the crosstalk problem generated by the smart instrument randomly entering the network, thereby improving the success rate of the intelligent instrument network access and the networking efficiency of the system.
  • the present application provides a method for controlling a smart meter to access a network, including:
  • the DCU sends a broadcast message.
  • the broadcast message is used to notify a smart meter on the power line that the network can be accessed from the DCU.
  • the broadcast message includes an identifier of the DCU.
  • the broadcast message destination address is a broadcast address defined in the PLC technology, for example, 0xAAAAAAAAAAAA.
  • the first smart meter sends an incoming network request message to the DCU according to the broadcast message;
  • the network access request message includes a table number of the first smart meter and an address of the first smart meter;
  • the address of the first smart meter is used to uniquely identify the first smart meter in a network communication process, for example, a Media Access Control (MAC) address, and an Internet Protocol (IP). address.
  • the table number of the first smart meter may uniquely identify the first smart meter during management, control, and data collection of the first smart meter, for example, may be a string of numbers, or letters and numbers combination.
  • the network access request message may further include additional information of the first smart meter, for example, a model number, authentication information, and the like.
  • the DCU receives the network access request message, and queries whether an address of the first smart meter exists in the access record.
  • the DCU maintains an access record for recording smart meters that access the DCU.
  • the access record includes an address of the smart meter; of course, the table number of the smart meter may also be included. Initially, the access record may be empty. As the smart meter enters the network, the address of each smart meter is added to the access record, for example, the address of the smart meter 1, the address of the smart meter 2, and the like.
  • the access record may also be set in a whitelist form, so that the access record may be used to control the access of the smart meter while recording the accessed smart meter, that is, allowing the smart meter in the white list to directly Network access.
  • the DCU receives the network access request message sent by the first smart meter, obtains an address of the first smart meter from the network access request message, and queries the location according to the address of the first smart meter.
  • the access record is used to determine whether the address of the first smart meter exists in the access record; if the address of the first smart meter does not exist in the access record, steps 204-210 are performed. If the address of the first smart meter exists in the access record, step 211 is performed.
  • the DCU sends a file request message to the primary station, where the file request message includes the identifier of the DCU and the first smart The meter number of the meter;
  • the filing request message may further include an address of the first smart meter; further, The file request message may further include additional information of the first smart meter, and the additional information includes a model number, authentication information, and the like.
  • the primary station receives the filing request message, and queries whether the table number of the first smart meter exists in the archive.
  • the master station usually maintains an archive for storing the files of each smart meter.
  • the archive may be empty, and subsequent files of each smart meter may be created according to the filing request message from each DCU, for example, the file of the smart meter 1, the file of the smart meter 2, and the like.
  • the file of the smart meter includes the table number of the smart meter and the identifier of the accessed DCU; of course, it may also include the address of the smart meter, additional information of the smart meter, and the like.
  • the primary station obtains the table number of the first smart meter from the filing request message, and queries the archive according to the table number of the first smart meter to determine whether the archive exists in the archive. a table number of the first smart meter; when the table number of the first smart meter does not exist in the archive, step 206 is performed; when the table number of the first smart meter exists in the archive, Step 207 or 208 is performed.
  • the primary station When the table number of the first smart meter does not exist in the archive, the primary station establishes the file of the first smart meter in the archive according to the filing request message, and Sending a file response message to the DCU, where the file response message includes a table number of the first smart meter and a first file result (success);
  • the situation is generally that the first smart meter first enters the network, and the primary station automatically searches for the file according to the filing request message.
  • the file of the first smart meter is established in the library, that is, the first correspondence relationship between the table number including the first smart meter and the identifier of the DCU is saved in the archive.
  • the file of the first smart meter may further include an address of the first smart meter, additional information of the first smart meter, and the like.
  • the primary station After processing the filing request message, the primary station sends a filing response message to the DCU, and responds to the DCU's filing request to notify the DCU to file (establish the first intelligence) The file of the instrument) success or failure.
  • the first filing result is used to indicate that the primary station establishes the file of the first smart meter successfully.
  • the primary station rejects the file request of the DCU, and sends a file response message to the DCU, where the file response message is sent.
  • the table number of the first smart meter and the second filing result (failure) are included therein;
  • the second filing result is used to indicate that the primary station fails to establish the file of the first smart meter.
  • the primary station When the number of the first smart meter exists in the archive, it may be that the first smart meter is not the first time to enter the network, and the primary station has maintained the file of the first smart meter, for example, the The first smart meter has previously entered the network from other DCUs, and the primary station maintains the existing correspondence between the table number of the first smart meter and the identifiers of other DCUs. The primary station rejects the filing request of the DCU, so that the DCU rejects the smart meter to access the network. In this way, the smart meter can always enter the network from the same DCU, so that the network topology can be frequently changed due to the DCU connected by the smart meter replacement. However, the smart meter may need to send the network access request multiple times to enter the network from the DCU (for example, the other DCUs mentioned above) that is accessed when the network is first accessed, so the network access efficiency of the smart meter is relatively low.
  • the primary station updates the file of the first smart meter according to the filing request message, and sends a file response to the DCU.
  • the file response message includes a table number of the first smart meter and the first file result (success);
  • the primary station When the number of the first smart meter exists in the archive, it may be that the first smart meter is not the first time to enter the network, and the primary station has maintained the file of the first smart meter, for example, the The first smart meter has previously entered the network from other DCUs, and the primary station maintains the existing correspondence between the table number of the first smart meter and the identifiers of other DCUs. The primary station may update the identifiers of the other DCUs in the existing correspondence in the archive to the identifiers of the DCUs. (Of course, if the address, additional information, etc. of the first smart meter are different, the primary station may also be updated simultaneously.
  • the primary station may delete the existing correspondence in the archive, and then save the first correspondence including the table number of the first smart meter and the identifier of the DCU. In this way, even if the smart meter has been connected to the network from other DCUs, By updating the file, this time, the new DCU (the DCU) can still be connected to the network, so that the smart meter may have to try multiple times to enter the network, thereby improving the network access efficiency.
  • steps 207 and 208 are two alternative implementations, and the implementation manner of step 207 or the implementation manner of step 208 may be selected according to network size, or system performance requirements, or customer requirements.
  • the DCU receives the filing response message, and when determining that the result of the filing is the first filing result (success), the DCU adds an address of the smart meter to the access record, allowing the Smart meter access network;
  • the DCU receives the filing response message, and when determining that the filing result is a second filing result (failure), the DCU rejects the smart meter to access the network.
  • the DCU in order to avoid the file consistency of the first smart meter between the DCU and the primary station, and ensuring network access accuracy, the DCU receives the file response message, and the result of the file is When successful, the first smart meter is allowed to enter the network.
  • the DCU When the address of the first smart meter exists in the access record, the DCU allows the first smart meter to enter the network.
  • the first smart meter may not be first accessed (the network has been previously accessed from the DCU), and the DCU allows the first smart Instrument access (into the network).
  • the manual or the primary station has previously configured the address of the first smart meter in the white list.
  • the DCU may further determine whether the additional information of the first smart meter is updated. If the additional information of the first smart meter is updated, the DCU may send an archive update message to the primary station, where the file update message includes an identifier of the DCU and a table number of the first smart meter. An additional information of the first smart meter is further included to cause the primary station to update additional information in an archive of the first smart meter (ie, the first correspondence).
  • the filing request message, the filing response message, and the file update message in the embodiment of the present application can pass The device language message specification (DLMS) message is implemented.
  • DLMS device language message specification
  • new messages can be customized.
  • the implementation of the DLMS protocol message in FIG. 1 is taken as an example and is not a limitation on the implementation of the present application.
  • the method may further include:
  • the DCU determines whether the number of smart meters accessing the DCU is less than a preset access threshold.
  • the DCU proceeds to step 203;
  • the DCU may reject the first smart meter access and end the process.
  • the method for controlling the access of the smart meter provided by the embodiment of the present application, after receiving the network access request of the smart meter, the DCU requests the master station to establish a file for the smart meter, and allows the smart meter to enter the network when the master station successfully files the file, and realizes Automatic file creation from the bottom up not only improves the flexibility and network access efficiency of smart meters, but also ensures the consistency of files. In this way, it is not necessary to manually send the DCU to the DCU in the main station, which not only avoids manual entry errors, but also reduces labor costs.
  • the present application provides another method for controlling a smart meter to access a network, including:
  • the DCU sends a broadcast message.
  • the broadcast message is used to notify a smart meter on the power line that the network can be accessed from the DCU.
  • the broadcast message includes an identifier of the DCU.
  • the first smart meter sends an incoming network request message to the DCU according to the broadcast message.
  • the network access request message includes a table number of the first smart meter and an address of the first smart meter.
  • the network access request message may further include a model, an authentication information, and the like of the first smart meter.
  • the DCU receives the network access request message, and determines whether the number of smart meters accessing the DCU is less than a preset access threshold.
  • step 304 If it is determined that the number of smart meters accessing the DCU is less than the preset access threshold, proceed to step 304;
  • the first smart meter access is denied, and the entire process is ended.
  • the DCU queries whether the address of the first smart meter exists in the access record.
  • the DCU maintains an access record for recording smart meters that access the DCU.
  • the access record includes an address of the smart meter; of course, the table number of the smart meter may also be included.
  • the access record may also be set in a whitelist format for controlling the network access of the smart meter.
  • the DCU obtains an address of the first smart meter from the network access request message, and queries the access record according to an address of the first smart meter to determine whether the access record includes The first smart meter is configured; if the address of the first smart meter does not exist in the access record, steps 305-308 are performed. If the address of the first smart meter exists in the access record, step 309 is performed.
  • the DCU adds an address of the smart meter to the access record, allows the smart meter to enter the network, and sends the smart meter to the primary station.
  • File request message
  • the filing request message includes an identifier of the DCU and a table number of the first smart meter.
  • the filing request message may further include an address of the first smart meter; further, The file request message may further include additional information of the first smart meter, and the additional information includes a model number, authentication information, and the like.
  • the primary station receives the filing request message, and queries whether the table number of the first smart meter exists in the archive.
  • the master station usually maintains an archive for storing the files of each smart meter.
  • the file of the smart meter includes the table number of the smart meter and the identifier of the accessed DCU; of course, it may also include the address of the smart meter, additional information of the smart meter, and the like.
  • the primary station obtains the table number of the first smart meter from the filing request message, and queries the archive according to the table number of the first smart meter to determine whether the file library is An archive containing the first smart meter.
  • step 307 is performed; when the table number of the first smart meter exists in the archive, step 308 is performed.
  • the primary station establishes an archive of the first smart meter in the archive according to the filing request message.
  • the situation is generally that the first smart meter first enters the network, and the primary station automatically searches for the file according to the filing request message.
  • the file of the first smart meter is established in the library, that is, the first correspondence relationship between the table number including the first smart meter and the identifier of the DCU is saved in the archive.
  • the file of the first smart meter may further include an address of the first smart meter, additional information of the first smart meter, and the like.
  • the primary station may send a file response message to the DCU, where the file response response message includes a table number of the first smart meter in response to the DCU filing request.
  • the primary station updates the file of the first smart meter according to the filing request message.
  • the first smart meter When the number of the first smart meter exists in the archive, the first smart meter may be The table is not the first time to enter the network, the primary station has maintained the file of the first smart meter, for example, the first smart meter has previously entered the network from other DCUs, and the primary station maintains the table of the first smart meter The existing relationship between the number and the ID of other DCUs.
  • the primary station may update the identifiers of the other DCUs in the existing correspondence in the archive to the identifiers of the DCUs. (Of course, if the address, additional information, etc. of the first smart meter are different, the primary station may also be updated simultaneously. Or the primary station may delete the existing correspondence in the archive, and then save the first correspondence including the table number of the first smart meter and the identifier of the DCU.
  • the primary station may send a file response message to the DCU, where the file response response message includes a table number of the first smart meter in response to the DCU filing request.
  • the DCU may initiate a timing after sending the filing request message to the primary station. And setting a response threshold, if the filing response message returned by the primary station is not received within the response threshold time, the DCU may send the filing request message to the primary station again until receiving The filing response message returned to the primary station. In this way, the consistency of the files on the primary station and the DCU can be ensured to ensure smooth communication between the subsequent primary station, the DCU and the smart meter.
  • the DCU allows the first smart meter to enter the network.
  • the first smart meter when the first smart meter is included in the access, the first smart meter may have previously entered the network from the DCU, and the DCU allows the first smart meter to access (incoming network).
  • the manual or the primary station has previously configured the address of the first smart meter in the access record.
  • the DCU may further determine whether the additional information of the first smart meter, such as a model, an authentication information, or the like, is updated. If the additional information of the first smart meter is updated, the DCU may send an archive update message to the primary station, where the file update message includes an identifier of the DCU and the first smart The meter number of the meter further includes additional information of the first smart meter to cause the primary station to update the additional information in the file of the first smart meter (ie, the first correspondence).
  • the additional information of the first smart meter such as a model, an authentication information, or the like
  • the filing request message, the filing response message, and the file update message may be implemented by using a DLMS message, and of course, a new message may be customized.
  • the DCU receives the network access request of the first smart meter, and can immediately add the address of the first smart meter to the access record, permitting the first smart meter to enter the network, and then Triggering the primary station to establish or update the file of the first smart meter.
  • the smart meter can enter the network from any DCU, avoiding the situation that the smart meter may have to try multiple times to enter the network, and the real-time access to the network is high, thereby improving the network access efficiency.
  • a DCU 400 is provided for implementing the function of the DCU in the method for controlling the smart meter accessing as shown in FIG. 2, and the DCU 400 includes: a sending module 401, a receiving module 402, and processing. Module 403;
  • the receiving module 402 is configured to receive a network access request message sent by the first smart meter, where the network access request message includes a table number of the first smart meter and an address of the first smart meter;
  • the processing module 403 is configured to query, according to an address of the first smart meter, whether an address of the first smart meter exists in an access record; when an address of the first smart meter exists in the access record And allowing the first smart meter to enter the network; when the address of the first smart meter does not exist in the access record, sending a filing request message to the primary station, where the filing request message includes the first The meter number of the smart meter and the identifier of the DCU;
  • the sending module 401 is configured to send the filing request message
  • the filing request message may further include an address of the first smart meter; further optionally, the filing request message further includes additional information of the first smart meter.
  • the processing module 403 is specifically configured to obtain an address of the first smart meter from the network access request message, and query the access record according to an address of the first smart meter to determine the access record. Whether to include the address of the first smart meter.
  • the sending module 401 is further configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 400; the broadcast message is used to notify the power line
  • the smart meter on it can be connected to the network from the DCU 400.
  • the DCU 400 may further include a storage module, configured to store the access record, where the access record is used to record a smart meter that accesses the DCU.
  • the access record may be set in the form of a white list for controlling the smart meter to access the network.
  • the address of the smart meter may be included in the access record; of course, the table number of the smart meter may also be included.
  • the receiving module 402 is further configured to receive a filing response message returned by the primary station, where the filing response message includes a table number and a filing result of the first smart meter;
  • the result of the setting includes: a first filing result (success) for indicating that the primary station establishes the file of the first smart meter is successful; and a second filing result (failure) for indicating the establishment of the primary station The file of the first smart meter failed.
  • the processing module 403 is further configured to: when the result of the filing is successful, add an address of the first smart meter to the access record, allowing the first smart meter to enter the network; When the result is a failure, the first smart meter is denied access to the network.
  • the main station usually maintains an archive for storing the files of the various smart meters.
  • the file of the smart meter includes the table number of the smart meter and the identifier of the connected DCU; of course, the address of the smart meter can also be included, the smart meter Additional information, etc.
  • the file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
  • the DCU allows the first smart meter to enter the network when receiving the filing response message returned by the primary station, and the result of the file creation is successful, and the first between the DCU and the primary station can be avoided.
  • the file of a smart meter is inconsistent, ensuring the accuracy of network access.
  • the network access request message may further include additional information of the first smart meter, for example, a model number, authentication information, and the like.
  • the processing module 403 is further configured to:
  • Determining whether the additional information of the first smart meter is updated if the additional information of the first smart meter is updated, sending an archive update message to the primary station, where the file update message includes the identifier of the DCU 400 And a table number of the first smart meter and additional information of the first smart meter, so that the primary station updates the additional information in the file of the first smart meter. In this way, the file consistency of the first smart meter between the DCU and the primary station can be guaranteed.
  • the sending module 401 is further configured to send the file update message.
  • the filing request message, the filing response message, and the file update message may be implemented by extending the DLMS protocol message.
  • the new message may be customized.
  • the DCU 400 further includes a threshold determining module, configured to determine whether the number of smart meters accessing the DCU 400 is less than a preset access threshold; and determining that the number of smart meters accessing the DCU is less than a preset If the threshold value is reached, the processing module 403 continues to query the access record according to the address of the first smart meter; if it is determined that the number of smart meters accessing the DCU is not less than a preset access threshold, the method rejects The first smart meter accesses and ends the entire operation.
  • a threshold determining module configured to determine whether the number of smart meters accessing the DCU 400 is less than a preset access threshold; and determining that the number of smart meters accessing the DCU is less than a preset If the threshold value is reached, the processing module 403 continues to query the access record according to the address of the first smart meter; if it is determined that the number of smart meters accessing the DCU is not less than a preset access threshold, the method rejects The first smart meter accesse
  • the DCU 400 can be prevented from being connected to the smart meter and the overload occurs due to the preset accessibility threshold. In this way, load balancing between DCUs can be achieved when multiple DCUs are deployed.
  • a DCU 500 is provided for implementing the function of the DCU in the method for controlling the smart meter accessing as shown in FIG. 2, the DCU 500 includes: a processor 501, a memory 502, and a communication interface. 503;
  • the processor 501, the memory 502 and the communication interface 503 can be connected to each other through a bus 504; the bus 504 can be a peripheral component interconnect (PCI) bus or an extended industry standard structure ( Extended industry standard architecture (EISA) bus.
  • PCI peripheral component interconnect
  • EISA Extended industry standard architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
  • the memory 502 is configured to store an access record maintained by the processor 501 for the DCU 500, where the access record is used to record a smart meter that accesses the DCU 500.
  • the access record may be set in the form of a white list for controlling the smart meter to access the network.
  • the address of the smart meter may be included in the access record; of course, the table number of the smart meter may also be included.
  • the memory 502 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviation: RAM); the memory 502 may also include a non-volatile memory (English: non- Volatile memory), such as flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviated: HDD) or solid state drive (English: solid-state drive, abbreviation: SSD); memory 502 can also include the above categories a combination of memory.
  • a volatile memory English: volatile memory
  • RAM random access memory
  • non-volatile memory such as flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviated: HDD) or solid state drive (English: solid-state drive, abbreviation: SSD)
  • memory 502 can also include the above categories a combination of memory.
  • the processor 501 is configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 500, and receive a network access request message sent by the first smart meter, where the network access request message includes an address of the first smart meter and Determining an access record of the first smart meter according to the address of the first smart meter, and determining whether an address of the first smart meter exists in the access record;
  • the processor 501 is further configured to allow the first smart meter to enter the network when the address of the first smart meter exists in the access record;
  • the processor 501 is further configured to: when determining that the address of the first smart meter does not exist in the access record, send a filing request message to the primary station, where the filing request message includes the first a table number of the smart meter and an identifier of the DCU; receiving a file response message returned by the primary station, where the file response response message includes a table number and a file creation result of the first smart meter; When the result of the file is successful, the address of the first smart meter is added to the access record, and the first smart meter is allowed to enter the network; when the result of the file creation is a failure, the first smart meter is denied access to the network. .
  • the result of the setting includes: a first filing result (success) for indicating that the primary station establishes the file of the first smart meter is successful; and a second filing result (failure) for indicating the establishment of the primary station The file of the first smart meter failed.
  • the processor 501 specifically sends the broadcast message through the communication interface 503, and passes the The communication interface 503 receives the incoming request message.
  • the communication interface 503 represents an interface for the DCU to communicate with other devices in the network, for example, a primary station, a smart meter, etc., and may be one or more.
  • the communication is used in the present application.
  • the interface 503 is not limited to the technical solution of the present application.
  • the communication interface 503 includes a power line interface in communication with the smart meter; a wired communication access port in communication with the primary station, a wireless communication interface, or a combination thereof; wherein the wired communication interface can be, for example, an Ethernet interface.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof.
  • the processor 501 is configured to obtain an address of the first smart meter from the network access request message, and query the access record according to an address of the first smart meter to determine the access record. Whether to include the address of the first smart meter.
  • the main station usually maintains an archive for storing the files of the various smart meters.
  • the file of the smart meter includes the table number of the smart meter and the identifier of the connected DCU; of course, the address of the smart meter can also be included, the smart meter Additional information, etc.
  • the file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
  • the DCU allows the first smart meter to enter the network when receiving the filing response message returned by the primary station, and the result of the file creation is successful, and the first between the DCU and the primary station can be avoided.
  • the file of a smart meter is inconsistent, ensuring the accuracy of network access.
  • the network access request message further includes additional information of the first smart meter, for example, a model number, authentication information, and the like.
  • the processor 501 is further configured to: determine whether the additional information of the first smart meter is updated; and determine additional information of the first smart meter And updating, sending an archive update message to the primary station, where the file update message includes an identifier of the DCU 500, a table number of the first smart meter, and additional information of the first smart meter, so that The primary station updates additional information in an archive of the first smart meter (ie, the first correspondence). This can ensure that the first between the DCU and the primary station The file consistency of a smart meter.
  • the processor 501 is further configured to determine whether the number of smart meters that access the DCU is less than a preset access threshold; if the number of smart meters that access the DCU is determined to be less than a preset access threshold And continuing the operation of querying the access record according to the address of the first smart meter; and if the number of smart meters accessing the DCU is not less than a preset access threshold, rejecting the first smart meter access And end the whole operation.
  • the preset accessibility threshold is used to determine whether the DCU is saturated, and the DCU can be prevented from accessing too many smart meters and overloaded. In this way, load balancing between DCUs can be achieved when multiple DCUs are deployed.
  • the processor 501 may be a central processing unit (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of a CPU and an NP.
  • the processor 501 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (abbreviated as PLD), or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), field-programmable gate array (English: field-programmable gate array, abbreviation: FPGA), general array logic (English: generic array Logic, abbreviation: GAL) or any combination thereof.
  • the memory 502 is further configured to store program instructions; the processor 501 may invoke program instructions stored in the memory 502 to perform one or more steps of the DCU in the embodiment shown in FIG. 2, or In the implementation manner, the method for controlling the smart meter to enter the network shown in FIG. 2 is implemented.
  • the first type of DCU provided by the embodiment of the present application, after receiving the network access request of the smart meter, requests the primary station to establish a file for the smart meter, and allows the smart meter to enter the network when the main station is successfully filed, thereby achieving the bottom-up Automatic file creation not only improves the flexibility and network access efficiency of smart meters, but also ensures the consistency of files between the DCU and the main station. In addition, the problem of high labor cost and error-prone caused by manually entering the file at the main station is also avoided.
  • a primary station 600 is provided for implementing the function of a primary station in a method for controlling a smart meter to enter the network as shown in FIG. 2.
  • the primary station 600 includes: a receiving module 601, and a sending module. 602 and processing module 603;
  • the receiving module 601 is configured to receive a filing request message sent by the DCU, where the filing request message includes an identifier of the DCU and a table number of the first smart meter;
  • the processing module 603 is configured to query, according to the table number of the first smart meter, whether the table number of the first smart meter exists in the archive; when the table of the first smart meter does not exist in the archive And establishing, according to the filing request message, an archive of the first smart meter in the archive, the file of the first smart meter including a table number of the first smart meter and the DCU Corresponding relationship, and sending a first filing response message to the DCU, where the first filing response message includes a table number of the first smart meter and a first filing result (success);
  • the processing module 603 is specifically configured to obtain the table number of the first smart meter from the filing request message, query the archive according to the table number of the first smart meter, to determine whether the file library is There is a table number of the first smart meter.
  • the processing module 603 is further configured to:
  • the smart meter Updating the file of the first smart meter according to the filing request message, and sending the first file response message to the DCU; thus, the smart meter can quickly enter the network, has high real-time performance, and improves network access efficiency.
  • the sending module 602 is further configured to send the first filing response message or the second filing response message.
  • the first result of the setting is used to indicate that the primary station establishes the file of the first smart meter successfully; and the second file is used to indicate that the primary station fails to establish the file of the first smart meter.
  • the primary station 600 may further include a storage module for storing the archive; the archive is used to store files of each smart meter, and the file of the smart meter includes the table number of the smart meter and the accessed DCU. Identification; of course, it can also include the address of the smart meter, additional information of the smart meter, and the like.
  • the file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
  • the receiving module 601 is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter. ;
  • the processing module is further configured to: when the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, use the second smart The additional information of the meter updates the file of the second smart meter.
  • the file includes a second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the file library is considered to exist and The file of the second smart meter whose table number of the second smart meter matches the identifier of the DCU updates the additional information in the file with the additional information of the second smart meter.
  • the present application provides a primary station for implementing the function of a primary station in a method for controlling a smart meter to enter the network as shown in FIG. 2, the primary station includes: a processor 701, a memory 702, and a communication interface 703;
  • the processor 701, the memory 702 and the communication interface 703 may be connected to each other through a bus 704; the bus 704 may be a PCI bus or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.
  • the memory 702 is configured to store an archive maintained by the processor for the primary station;
  • the file library is used to store the files of the smart meters.
  • the file of the smart meter includes the table number of the smart meter and the identifier of the accessed DCU; of course, the address of the smart meter and the additional information of the smart meter may also be included.
  • the memory 702 can include volatile memory, such as RAM; the memory 702 can also include non-volatile memory, such as flash memory, HDD or SSD; the memory 702 can also include a combination of the types of memory described above.
  • the processor 701 is configured to receive a file request message sent by the DCU, where the file request message includes an identifier of the DCU and a table number of the first smart meter, and is queried according to the table number of the first smart meter. Whether the table number of the first smart meter exists in the archive; when the table number of the first smart meter does not exist in the archive, establishing the location in the archive according to the filing request message The file of the first smart meter is sent, and the first file response message is sent to the DCU, where the first file response message includes the table number of the first smart meter and the first file result (success).
  • the processor 701 is configured to obtain a table number of the first smart meter from the filing request message, query an archive according to a table number of the first smart meter, to determine whether the file library is There is a table number of the first smart meter.
  • the processor 701 is further configured to:
  • the smart meter Updating the file of the first smart meter according to the filing request message, and sending the first file response message to the DCU; thus, the smart meter can quickly enter the network, has high real-time performance, and improves network access efficiency.
  • the filing request message may further include an address of the first smart meter; and optionally, may further include additional information of the first smart meter, such as a model number, authentication information, and the like.
  • the first result of the setting is used to indicate that the primary station establishes the file of the first smart meter successfully; and the second file is used to indicate that the primary station fails to establish the file of the first smart meter.
  • the file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
  • the processor 701 is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter.
  • the archive of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, updating the information with the additional information of the second smart meter The file of the second smart meter.
  • the file when there is a file in the archive, the file includes a second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the file library is considered to exist and The file of the second smart meter whose table number of the second smart meter matches the identifier of the DCU updates the additional information in the file with the additional information of the second smart meter.
  • the processor 701 receives the filing request message and the file update message through the communication interface 703, and sends the first filing response message or the second filing response message through the communication interface 703.
  • the communication interface 703 represents an interface between the primary station and other devices in the network, for example, DCU(s), and may be one or more.
  • the communication interface is used in this application. 703 indicates that it is not intended to limit the technical solution of the present application.
  • the communication interface 703 can be a wired communication access port, a wireless communication interface, or a combination thereof, wherein the wired communication interface can be, for example, an Ethernet interface.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof.
  • the processor 701 can be a CPU, an NP, or a combination of a CPU and an NP.
  • the processor 701 may further include a hardware chip.
  • the above hardware chip may be an ASIC, a PLD, or a combination thereof.
  • the above PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
  • the memory 702 is further configured to store program instructions; the processor 701 can be invoked.
  • the program instructions stored in the memory 702 perform one or more steps of the primary station in the embodiment shown in FIG. 2, or an optional implementation thereof, to implement the method for controlling the smart meter to access the network shown in FIG. 2.
  • the primary station determines whether to establish a file for the smart meter according to the filing request message sent by the DCU, and feeds back the successful or failed file creation to the DCU to control whether the smart meter can access the network from the DCU.
  • the file can be automatically created from the bottom up, and the consistency of the file is ensured, and the flexibility of the smart meter to access the network and the efficiency of accessing the network are improved.
  • labor costs can be reduced, and manual error-prone problems can be avoided.
  • FIG. 8 another DCU 800 provided by the embodiment of the present application is used to implement the function of the DCU in the method for controlling the smart meter to enter the network as shown in FIG. 3 .
  • the DCU 800 includes: a sending module 801, a receiving module 802, and Processing module 803;
  • the receiving module 802 is configured to receive a network access request message sent by the first smart meter, where the network access request message includes a table number of the first smart meter and an address of the first smart meter;
  • the processing module 803 is configured to query an access record according to an address of the first smart meter; when the address of the first smart meter exists in the access record, allowing the first smart meter to enter the network; When the address of the first smart meter does not exist in the access record, the address of the first smart meter is added to the access record, and the first smart meter is allowed to enter the network, and is sent to the primary station. a file request message, where the file request message includes a table number of the first smart meter and an identifier of the DCU;
  • the sending module 801 is configured to send the filing request message.
  • the sending module 801 is further configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 800; the broadcast message is used to notify the power line
  • the smart meter on it can be connected to the network from the DCU 800.
  • the DCU 800 may further include a storage module, configured to store the access record, where the access record is used to record a smart meter that accesses the DCU.
  • the access record may be set in the form of a white list for controlling the smart meter to access the network.
  • the access record may include an address of the smart meter; It can also include the meter number of the smart meter.
  • the receiving module 802 is further configured to receive a filing response message returned by the primary station, where the filing response message includes a table number of the first smart meter.
  • the main station usually maintains an archive for storing the files of the various smart meters.
  • the file of the smart meter includes the table number of the smart meter and the identifier of the connected DCU; of course, the address of the smart meter can also be included, the smart meter Additional information, etc.
  • the file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
  • the DCU may determine that the file of the first smart meter has been established by the primary station according to the filing response message returned by the primary station.
  • the DCU 800 further includes a retransmission module, configured to send the filing request message to the primary station again when the filing response message returned by the primary station is not received within a response time threshold Until the receipt of the filing response message returned by the primary station.
  • the primary station can ensure that the above-mentioned filing request message is received, and the file of the first smart meter is created or updated according to the request, so as to ensure the consistency of the files on the primary station and the DCU, so as to ensure the subsequent main The communication between the station, the DCU and the smart meter is smooth.
  • the retransmission module may determine, by means of a timer, whether the response threshold is reached.
  • the network access request message may further include additional information of the first smart meter, for example, a model number, authentication information, and the like.
  • the processing module 803 is further configured to:
  • Determining whether the additional information of the smart meter is updated if the additional information of the first smart meter is updated, sending an archive update message to the primary station, where the file update message includes the identifier of the DCU 800, And a table number of the first smart meter, and additional information of the first smart meter, so that the primary station updates the additional information in the file of the first smart meter. In this way, the file consistency of the first smart meter between the DCU and the primary station can be guaranteed.
  • the sending module 801 is further configured to send the file update message.
  • the DCU 800 further includes a threshold determination module, configured to determine access to the DCU. Whether the number of the smart meters is less than the preset access threshold; if it is determined that the number of the smart meters accessing the DCU is less than the preset access threshold, the processing module 803 continues to query the access according to the address of the first smart meter. Recording operation; if it is determined that the number of smart meters accessing the DCU is not less than a preset access threshold, the first smart meter access is rejected, and the entire operation is ended.
  • a threshold determination module configured to determine access to the DCU. Whether the number of the smart meters is less than the preset access threshold; if it is determined that the number of the smart meters accessing the DCU is less than the preset access threshold, the processing module 803 continues to query the access according to the address of the first smart meter. Recording operation; if it is determined that the number of smart meters accessing the DCU is not less than a preset access threshold, the first smart meter access is rejected, and
  • another DCU 900 provided by the embodiment of the present application is used to implement the function of the DCU in the method for controlling the smart meter accessing as shown in FIG. 3.
  • the DCU 900 includes: a processor 901, a memory 902, and a communication. Interface 903;
  • the processor 901, the memory 902 and the communication interface 903 may be connected to each other through a bus 904; the bus 904 may be a PCI bus or an EISA bus or the like.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 9, but it does not mean that there is only one bus or one type of bus.
  • the memory 902 is configured to store an access record maintained by the processor 901 for the DCU 900, where the access record is used to record a smart meter that accesses the DCU 900.
  • the access record may be set in the form of a white list for controlling the smart meter to access the network.
  • the address of the smart meter may be included in the access record; of course, the table number of the smart meter may also be included.
  • the memory 902 can include volatile memory, such as RAM; the memory 902 can also include non-volatile memory, such as flash memory, HDD or SSD; the memory 902 can also include a combination of the types of memory described above.
  • the processor is configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 900, and receive a network access request message sent by the first smart meter, where the network access request message includes a table number of the first smart meter and An address of the first smart meter; querying the access record according to an address of the first smart meter; and allowing the first smart meter when an address of the first smart meter exists in the access record Entering the network; when the address of the first smart meter does not exist in the access record, Adding an address of the first smart meter to the access record, allowing the first smart meter to enter the network, and sending a file request message to the primary station, where the file request message includes the first smart meter The table number and the identification of the DCU 900.
  • the processor 901 specifically sends the broadcast message through the communication interface 903, and receives the network access request message through the communication interface 903.
  • the communication interface 903 represents one or more interfaces of the DCU and other devices in the network, for example, a primary station, a smart meter, etc., and is used for communication in the present application.
  • the interface 903 is not limited to the technical solution of the present application.
  • the communication interface 903 includes a power line interface in communication with the smart meter; a wired communication access port in communication with the primary station, a wireless communication interface, or a combination thereof; wherein the wired communication interface can be, for example, an Ethernet interface.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof.
  • the network access request message further includes additional information of the first smart meter, for example, a model number, authentication information, and the like.
  • the processor 901 is further configured to determine whether the additional information of the first smart meter is updated; determining additional information of the first smart meter And updating, sending an archive update message to the primary station, where the file update message includes an identifier of the DCU 900, a table number of the first smart meter, and additional information of the first smart meter, so that The primary station updates additional information in an archive of the first smart meter (ie, the first correspondence). In this way, the file consistency of the first smart meter between the DCU and the primary station can be guaranteed.
  • the processor 501 is further configured to determine whether the number of smart meters that access the DCU is less than a preset access threshold; if the number of smart meters that access the DCU is determined to be less than a preset access threshold And continuing the operation of querying the access record according to the address of the first smart meter; and if the number of smart meters accessing the DCU is not less than a preset access threshold, rejecting the first smart meter access And end the whole operation.
  • the DCU can be avoided by determining whether the DCU is saturated by a preset access threshold. Access too many smart meters, overload. In this way, load balancing between DCUs can be achieved when multiple DCUs are deployed.
  • the processor 901 is further configured to: determine whether the filing response message returned by the primary station is received in response to the threshold time; and not receiving the return of the primary station within the response threshold time
  • the filing request message is sent again to the primary station until the filing response message returned by the primary station is received.
  • the primary station can ensure that the above-mentioned filing request message is received, and the file of the first smart meter is created or updated according to the request, so as to ensure the consistency of the files on the primary station and the DCU, so as to ensure the subsequent main The communication between the station, the DCU and the smart meter is smooth.
  • the processor 901 can initiate a timer to determine whether the response threshold is reached.
  • the processor 901 can be a CPU, an NP, or a combination of a CPU and an NP.
  • the processor 901 may further include a hardware chip.
  • the above hardware chip may be an ASIC, a PLD, or a combination thereof.
  • the above PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
  • the memory 902 is further configured to store program instructions; the processor 901 may invoke program instructions stored in the memory 902 to perform one or more steps of the DCU in the embodiment shown in FIG. 3, or In the implementation manner, the method for controlling the smart meter to enter the network shown in FIG. 3 is implemented.
  • another primary station 1000 provided by the embodiment of the present application is configured to implement the function of a primary station in a method for controlling a smart meter to enter the network as shown in FIG. 3.
  • the primary station 1000 includes: a receiving module 1001 and processing. Module 1002;
  • the receiving module 1001 is configured to receive a filing request message sent by the DCU, where the filing request message includes an identifier of the DCU and a table number of the first smart meter;
  • the processing module 1002 is configured to query, according to the table number of the first smart meter, whether the table number of the first smart meter exists in the archive; when the table of the first smart meter does not exist in the archive And establishing, according to the filing request message, an archive of the first smart meter in the archive, the file of the first smart meter including a table number of the first smart meter and the DCU Corresponding relationship of the identifier; when the table number of the first smart meter exists in the archive, according to the file The message is updated to update the file of the first smart meter.
  • the primary station 1000 further includes a storage module 1003, configured to store the archive; the archive is used to store files of each smart meter, and the file of the smart meter includes the table number and the location of the smart meter.
  • the ID of the access to the DCU may also include the address of the smart meter, additional information of the smart meter, and the like.
  • the file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
  • the primary station 1000 further includes a sending module 1004, configured to send a filing response message to the DCU, where the filing response message includes a table number of the first smart meter.
  • a sending module 1004 configured to send a filing response message to the DCU, where the filing response message includes a table number of the first smart meter.
  • the receiving module 1001 is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and the second smart Additional information of the meter;
  • the processing module 1002 is further configured to: when the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, use the second The additional information of the smart meter updates the file of the second smart meter.
  • the file includes a second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the file library is considered to exist and The file of the second smart meter whose table number of the second smart meter matches the identifier of the DCU updates the additional information in the file with the additional information of the second smart meter.
  • another primary station 1100 is provided to implement the function of a primary station in a method for controlling a smart meter to enter the network as shown in FIG. 3.
  • the primary station 1100 includes:
  • processor 1101 a processor 1101, a memory 1102 and a communication interface 1103;
  • the processor 1101, the memory 1102 and the communication interface 1103 may be connected to each other through a bus 1104; the bus 1104 may be a PCI bus or an EISA bus or the like.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 11, but it does not mean that there is only one bus or one type of bus.
  • the memory 1102 is configured to store an archive maintained by the processor for the primary station; the archive is used to store files of each smart meter, and the file of the smart meter includes a table number and a connection of the smart meter
  • the ID of the DCU of course, it can also include the address of the smart meter, additional information of the smart meter, and so on.
  • the memory 1102 can include volatile memory, such as RAM; the memory 1102 can also include non-volatile memory, such as flash memory, HDD or SSD; the memory 1102 can also include a combination of the types of memory described above.
  • the processor 1101 is configured to receive a file request message sent by the DCU, where the file request message includes an identifier of the DCU and a table number of the first smart meter, and is queried according to the table number of the first smart meter. Whether the table number of the first smart meter exists in the archive; when the table number of the first smart meter does not exist in the archive, establishing the location in the archive according to the filing request message Archives of the first smart meter, the file of the first smart meter includes a correspondence between a table number of the first smart meter and an identifier of the DCU; when the first smart meter exists in the archive At the time of the table number, the file of the first smart meter is updated according to the filing request message.
  • the file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
  • the processor 1101 is further configured to send a filing response message to the DCU, where the filing response message includes a table number of the first smart meter.
  • the processor 1101 is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and the second smart Additional information of the meter; when there is an archive of the second smart meter matching the table number of the second smart meter and the identifier of the DCU in the archive, the additional use of the second smart meter The information updates the file of the second smart meter.
  • the file when there is a file in the archive, the file includes a second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the file library is considered to exist and The file of the second smart meter whose table number of the smart meter matches the identifier of the DCU, Then, the additional information in the file is updated with the additional information of the second smart meter.
  • the processor 1101 receives the filing request message and the file update message through the communication interface 1103, and sends the filing response message through the communication interface 1103.
  • the communication interface 1103 represents an interface between the primary station and other devices in the network, for example, DCU(s), and may be one or more.
  • the communication interface is used in the present application. 1103 indicates that it is not intended to limit the technical solution of the present application.
  • the communication interface 1103 can be a wired communication access port, a wireless communication interface, or a combination thereof; wherein the wired communication interface can be, for example, an Ethernet interface.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof.
  • the processor 1101 may be a CPU, an NP, or a combination of a CPU and an NP.
  • the processor 1101 may further include a hardware chip.
  • the above hardware chip may be an ASIC, a PLD, or a combination thereof.
  • the above PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
  • the memory 1102 is further configured to store program instructions; the processor 1101 may invoke program instructions stored in the memory 1102 to perform one or more steps of the primary station in the embodiment shown in FIG. 3, or In the selected implementation manner, the method for controlling the smart meter to enter the network shown in FIG. 3 is implemented.
  • the primary station provided by the embodiment of the present application establishes a file for each smart meter according to the filing request message sent by the DCU. It realizes the automatic creation of files from the bottom up, which improves the flexibility and network access efficiency of smart meters. In addition, since there is no need to manually enter files in the main station, labor costs can be reduced, and manual error-prone problems can be avoided.
  • the embodiment of the present application further provides a system 1200 for controlling smart meter access, including a primary station 1201, a DCU 1202, and a smart meter 1203.
  • the smart meter 1203 and the DCU 1202 are connected by a power line, and adopt PLC technology. Communication.
  • the main station 1201 is used to implement the function of the main station in the method for controlling the smart meter to enter the network shown in FIG. 2 .
  • the structure and function refer to the embodiment shown in FIG. 6 or FIG. 7 , and details are not described herein again.
  • the DCU 1202 is configured to implement the function of the DCU in the method for controlling the smart meter to enter the network shown in FIG.
  • the DCU 1202 is configured to implement the function of the DCU in the method for controlling the smart meter to enter the network shown in FIG.
  • the system 1200 can include a plurality of DCUs and a plurality of smart meters.
  • the technical solution provided by the present application can significantly save labor costs and improve the efficiency of smart meter access.
  • the embodiment of the present application further provides another system 1300 for controlling smart meter access, including a primary station 1301, a DCU 1302, and a smart meter 1303.
  • the smart meter 1303 and the DCU 1302 are connected by a power line, and the PLC is used.
  • Technical communication including a power line, a power line, and a power line.
  • the main station 1301 is configured to implement the function of the primary station in the method for controlling the smart meter to enter the network shown in FIG. 3.
  • the main station 1301 is configured to implement the function of the primary station in the method for controlling the smart meter to enter the network shown in FIG. 3.
  • the DCU 1302 is used to implement the function of the DCU in the method for controlling the smart meter to enter the network shown in FIG. 3.
  • the DCU 1302 is used to implement the function of the DCU in the method for controlling the smart meter to enter the network shown in FIG. 3.
  • the system 1300 can include a plurality of DCUs and a plurality of smart meters.
  • the technical solution provided by the present application can significantly save labor costs and improve the efficiency of smart meter access.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated in one processing unit. It is also possible that each unit physically exists alone, or two or more units may be integrated in one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

A method for controlling network access of an intelligent instrument. The method comprises: a DCU receiving a network access request message sent by an intelligent instrument; when the address of an intelligent instrument does not exist in an access record, the DCU sending a file establishment request message comprising the instrument number of the intelligent instrument and an identifier of the DCU, and requesting that a master station establishes a file for the intelligent instrument; then, the DCU determining whether the intelligent instrument is allowed to access a network according to a file establishment result in a file establishment response message returned by the master station; and when it is determined that the file establishment result indicates failure, the intelligent instrument is prevented from accessing the network. In this way, a file is automatically established from bottom to top without manually inputting the file in a master station, thereby improving the flexibility and network access efficiency of the network access of the intelligent instrument.

Description

控制智能仪表入网的方法、主站和数据集中单元Method for controlling intelligent instrument network access, main station and data centralized unit 技术领域Technical field
本发明涉及通信技术领域,尤其涉及控制智能仪表入网的方法、主站和数据集中单元。The present invention relates to the field of communications technologies, and in particular, to a method, a primary station, and a data centralized unit for controlling a smart meter to access a network.
背景技术Background technique
电力线通信(Power Line Communication,简称PLC)技术是利用电力线进行数据传输的一种通信方式。在采用高级计量架构(Advanced Metering Infrastructure,简称AMI)部署的智能电表系统中,PLC技术被普遍使用。主站通过数据集中单元(data concentrating unit,简称DCU)对PLC电表进行数据采集,管理和控制等。为此,主站须保存DCU和PLC电表的相关信息,即档案。通常,档案是人工录入主站,主站保存档案后,再下发给DCU。PLC电表通常采用自动发现机制入网,即,根据DCU发送的入网通知,接入DCU。这样,电表可能没有接入由档案指定的DCU,导致电表无法被主站识别。Power Line Communication (PLC) technology is a communication method that uses power lines for data transmission. In smart meter systems deployed with Advanced Metering Infrastructure (AMI), PLC technology is commonly used. The main station performs data collection, management and control on the PLC meter through a data concentrating unit (DCU). To this end, the master station must maintain information about the DCU and the PLC meter, ie the file. Usually, the file is manually entered into the main station, and the main station saves the file and then sends it to the DCU. The PLC meter usually uses the automatic discovery mechanism to access the network, that is, access to the DCU according to the network access notification sent by the DCU. In this way, the meter may not have access to the DCU specified by the file, resulting in the meter not being recognized by the primary station.
发明内容Summary of the invention
本发明实施例提供了一种控制智能仪表入网的方法、主站和数据集中单元,根据智能仪表的入网请求,触发主站自动建立档案,可以解决人工在主站录入档案,人力成本高且人工录入易出错的问题,提高了智能仪表入网的灵活性和入网效率。The embodiment of the invention provides a method for controlling the intelligent instrument to enter the network, a main station and a data concentrating unit. According to the network access request of the smart meter, the main station is triggered to automatically create a file, which can solve the manual entry of the file at the main station, and the labor cost is high and artificial. Entering problems that are prone to errors increases the flexibility and network access efficiency of smart meters.
第一方面,提供一种控制智能仪表入网的方法,DCU接收智能仪表发送的入网请求消息,其中包括所述智能仪表的表号和地址;所述DCU根据所述智能仪表的地址查询接入记录,以判断所述接入记录中是否包含所述智能仪表;The first aspect provides a method for controlling a smart meter to access a network, where the DCU receives a network access request message sent by the smart meter, including a table number and an address of the smart meter; and the DCU queries the access record according to the address of the smart meter. And determining whether the smart meter is included in the access record;
当所述接入记录中存在所述智能仪表的地址时,说明所述智能仪表早先已从所述DCU入网,则所述DCU直接接受所述智能仪表的入网请求,允许所述 智能仪表入网;When the address of the smart meter exists in the access record, indicating that the smart meter has previously entered the network from the DCU, the DCU directly accepts the network access request of the smart meter, allowing the Smart meter access network;
当所述接入记录中不存在所述智能仪表的地址时,所述DCU向主站发送建档请求消息,其中包括所述智能仪表的表号和所述DCU的标识,请求主站为所述智能仪表建立档案;然后所述DCU根据主站返回的建档响应消息确定是否允许所述智能仪表入网,主站返回的建档响应消息中包括所述智能仪表的表号和建档结果;当确定建档结果为成功时,所述DCU在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网;当确定建档结果为失败时,所述DCU可以拒绝所述智能仪表入网。这样,DCU在收到智能仪表的入网请求之后,先请求主站为智能仪表建立档案,并在主站建档成功的情况下,允许智能仪表入网,不仅实现了自下而上自动建档,提高了智能仪表入网的灵活性和入网效率,且可以保证档案的一致性。这样,无需人工在主站录入档案下发给DCU,可以减少人力成本,也可以避免人工录入容易出错的问题。When the address of the smart meter does not exist in the access record, the DCU sends a file request message to the primary station, where the table number of the smart meter and the identifier of the DCU are included, requesting the primary station to be The smart meter establishes a file; then the DCU determines whether to allow the smart meter to enter the network according to the filing response message returned by the primary station, and the file response message returned by the primary station includes the table number and the filing result of the smart meter; When it is determined that the filing result is successful, the DCU adds the address of the smart meter in the access record, allowing the smart meter to enter the network; when determining that the filing result is a failure, the DCU may reject the Smart meters enter the network. In this way, after receiving the network access request of the smart meter, the DCU first requests the primary station to establish a file for the smart meter, and allows the smart meter to enter the network when the main station is successfully filed, thereby not only realizing automatic file creation from the bottom up, It improves the flexibility and network access efficiency of smart meter access, and can ensure the consistency of files. In this way, it is not necessary to manually send the DCU to the DCU in the main station, which can reduce labor costs and avoid the problem of manual entry.
结合第一方面,在一种可能的实现方式中,所述入网请求消息中还包括所述智能仪表的附加信息;则在所述接入记录中存在所述智能仪表的地址时,所述DCU可以进一步判断该智能仪表的附加信息有更新时;当该智能仪表的附加信息有更新时,所述DCU向所述主站发送档案更新消息,其中包括所述DCU的标识,所述智能仪表的表号,以及所述智能仪表的附加信息,以使主站更新所述智能仪表的档案中的附加信息。这样,可以及时更新主站上智能仪表的档案,保障主站、DCU和智能仪表间顺利通信。With reference to the first aspect, in a possible implementation, the network access request message further includes additional information of the smart meter; and when the address of the smart meter exists in the access record, the DCU The DCU may further determine that the additional information of the smart meter is updated; when the additional information of the smart meter is updated, the DCU sends an archive update message to the primary station, where the identifier of the DCU is included, where the smart meter The table number, and additional information of the smart meter, to cause the primary station to update the additional information in the file of the smart meter. In this way, the file of the smart meter on the main station can be updated in time to ensure smooth communication between the main station, the DCU and the smart meter.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,在根据所述智能仪表的地址查询接入记录之前,所述DCU可以先判断接入所述DCU的智能仪表数量是否小于预设可接入阈值;如果接入所述DCU的智能仪表数量小于所述预设可接入阈值,所述DCU继续上述根据所述智能仪表的地址查询接入记录的步骤;若不小于所述预设可接入阈值,所述DCU可以拒绝所述智能仪表的入网请求,结束本方法流程。这样,通过预设可接入阈值来判断所述DCU是否已经饱和,可以避免所述DCU接入过多智能仪表、出现过载 的情况。在部署了多个DCUs的情况下,可以实现DCUs之间的负载均衡。With reference to the first aspect or the foregoing possible implementation manner, in another possible implementation manner, before querying the access record according to the address of the smart meter, the DCU may first determine the number of smart meters accessing the DCU. Whether it is less than a preset access threshold; if the number of smart meters accessing the DCU is less than the preset accessible threshold, the DCU continues the step of querying the access record according to the address of the smart meter; The DCU may reject the network access request of the smart meter and end the flow of the method. In this way, it is determined whether the DCU is saturated by preset access thresholds, and the DCU can be prevented from accessing too many smart meters and overloading occurs. Case. Load balancing between DCUs can be achieved when multiple DCUs are deployed.
结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,在所述DCU接收智能仪表发送的接入请求消息之前,所述DCU发送广播消息,其中包括所述DCU的标识,以通知收到该广播消息的智能仪表可以从所述DCU入网。相应地,所述入网请求消息中还包括所述DCU的标识。With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, before the DCU receives the access request message sent by the smart meter, the DCU sends a broadcast message, including the The identifier of the DCU to notify the smart meter receiving the broadcast message that the network can be accessed from the DCU. Correspondingly, the network request message further includes an identifier of the DCU.
第二方面,提供一种控制智能仪表入网的方法,主站接收DCU发送的建档请求消息,其中包括所述DCU的标识和第一智能仪表的表号,所述主站根据所述第一智能仪表的表号查询档案库,以判断所述档案库中是否包含所述第一智能仪表;A second aspect provides a method for controlling a smart meter to access a network, where the primary station receives a filing request message sent by the DCU, where the identifier of the DCU and the table number of the first smart meter are included, and the primary station is according to the first The table number of the smart meter queries the archive to determine whether the first smart meter is included in the archive;
当所述档案库中不存在所述第一智能仪表的表号时,可能是所述第一智能仪表首次入网,所述主站根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,其中包括所述第一智能仪表的表号和所述DCU的标识的对应关系,然后向所述DCU发送建档响应消息,其中包括所述第一智能仪表的表号和第一建档结果,所述第一建档结果为成功,表示所述主站建立所述第一智能仪表的档案成功。这样,当所述第一智能仪表首次入网时,所述主站根据所述DCU的建档请求为所述第一智能仪表建立档案,实现了自下而上自动建档,提高了智能仪表入网的灵活性和入网效率,并且无需人工在主站录入档案,可以减少人力成本,也可以避免人工录入容易出错的问题。When the table number of the first smart meter does not exist in the archive, the first smart meter may enter the network for the first time, and the primary station establishes in the archive according to the filing request message. An archive of the first smart meter, including a correspondence between a table number of the first smart meter and an identifier of the DCU, and then sending a file response message to the DCU, including a table of the first smart meter And the result of the first filing, the first filing result is successful, indicating that the primary station establishes the file of the first smart meter successfully. In this way, when the first smart meter enters the network for the first time, the primary station establishes a file for the first smart meter according to the file request of the DCU, thereby realizing automatic file creation from the bottom up, and improving the smart instrument accessing the network. The flexibility and efficiency of the network, and the need to manually enter the file at the main station, can reduce labor costs, and can avoid manual error-prone problems.
当所述档案库中存在所述第一智能仪表的表号时,表明所述第一智能仪表不是首次入网,包括如下两种可能的实现方式:When the number of the first smart meter exists in the archive, it indicates that the first smart meter is not the first time to enter the network, and includes the following two possible implementation manners:
一种可能的实现方式中,所述主站可以拒绝所述DCU的建档请求,并向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号和第二建档结果,所述第一建档结果为失败,表示所述主站建立所述第一智能仪表的档案失败。这样可以保证所述智能仪表始终从同一个DCU入网,从而可以避免因智能仪表更换所接入的DCU导致网络拓扑频繁变化。但是,所述智能仪表可能要多次发送入网请求,才能从首次入网时接入的DCU(例 如,上述其他DCU)入网。In a possible implementation, the primary station may reject the file request of the DCU, and send a file response message to the DCU, where the file response response message includes the table number of the first smart meter. And the result of the second filing, the first filing result is a failure, indicating that the primary station fails to establish the file of the first smart meter. In this way, the smart meter can always enter the network from the same DCU, so that the network topology can be frequently changed due to the DCU connected by the smart meter replacement. However, the smart meter may have to send a network access request multiple times in order to access the DCU from the time of the first network access (for example) For example, the other DCUs mentioned above are connected to the network.
另一种可能的实现方式中,所述主站可以根据所述建档请求消息更新所述第一智能仪表的档案,换言之,所述主站使所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系,然后所述主站向所述DCU发送所述建档响应消息,其中包括所述第一智能仪表的表号和第一建档结果,所述第一建档结果为成功。这样,智能仪表即使已从其他DCU入网,通过更新档案,本次仍然可以从新的DCU(所述DCU)入网,避免智能仪表可能要尝试多次才能入网的情况,从而提高入网效率。In another possible implementation manner, the primary station may update an archive of the first smart meter according to the filing request message, in other words, the primary station causes the file of the first smart meter to include the first Corresponding relationship between the table number of the smart meter and the identifier of the DCU, and then the primary station sends the filing response message to the DCU, including the table number of the first smart meter and the first filing result The first result of the filing is success. In this way, even if the smart meter has entered the network from other DCUs, by updating the file, the new DCU (the DCU) can still be connected to the network, so that the smart meter may have to try multiple times to enter the network, thereby improving the network access efficiency.
进一步可选地,所述主站接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,所述主站用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。这样,在智能仪表的信息有更新时,主站可以及时更新智能仪表的档案,保障主站、DCU和智能仪表间顺利通信。Further optionally, the primary station receives an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter. When the archive of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, the primary station is attached by the second smart meter The information updates the file of the second smart meter. In this way, when the information of the smart meter is updated, the main station can update the file of the smart meter in time to ensure smooth communication between the main station, the DCU and the smart meter.
第三方面,提供一种控制智能仪表入网的方法,DCU接收智能仪表发送的入网请求消息,其中包括所述智能仪表的表号和地址;所述DCU根据所述智能仪表的地址查询接入记录,以判断所述接入记录中是否包含所述智能仪表;当所述接入记录中存在所述智能仪表的地址时,说明所述智能仪表早先已从所述DCU入网,则所述DCU接受所述智能仪表的入网请求我,直接允许所述智能仪表入网;当所述接入记录中不存在所述智能仪表的地址时,所述DCU在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网,并向主站发送建档请求消息,其中包括所述智能仪表的表号和所述DCU的标识,以使所述主站根据所述建档请求消息建立所述智能仪表的档案。这样,DCU在收到所述第一智能仪表的入网请求之后,无论第一智能仪表是否首次入网,都允许所述第一智能仪表接入所述DCU入网,同步触发主站建立或更新所述第一智能仪表的档案。这样,智能仪表可以从任意DCU入网,避免智能仪表尝 试多次才能入网的情况。智能仪表入网的实时性高,提高了入网效率。此外,无需人工在主站录入档案下发给DCU,可以减少人力成本,也可以避免人工录入容易出错的问题。The third aspect provides a method for controlling a smart meter to access a network, where the DCU receives a network access request message sent by the smart meter, including a table number and an address of the smart meter; and the DCU queries the access record according to the address of the smart meter. Determining whether the smart meter is included in the access record; when the address of the smart meter exists in the access record, indicating that the smart meter has previously entered the network from the DCU, the DCU accepts The network access request of the smart meter directly allows the smart meter to enter the network; when the address of the smart meter does not exist in the access record, the DCU adds the smart meter to the access record. An address, allowing the smart meter to enter the network, and sending a filing request message to the primary station, including a table number of the smart meter and an identifier of the DCU, so that the primary station establishes a location according to the filing request message The file of the smart meter. In this way, after receiving the network access request of the first smart meter, the DCU allows the first smart meter to access the DCU to access the network regardless of whether the first smart meter enters the network for the first time, and triggers the primary station to establish or update the synchronization. The file of the first smart meter. In this way, smart meters can be connected to the network from any DCU, avoiding smart meters to taste Try to enter the network multiple times. The real-time performance of smart meters entering the network is high, which improves the efficiency of network access. In addition, there is no need to manually send the DCU to the DCU in the main station, which can reduce labor costs and avoid the problem of manual entry.
结合第一方面,在一种可能的实现方式中,所述入网请求消息中还包括所述智能仪表的附加信息;则在所述接入记录中存在所述智能仪表的地址时,所述DCU可以进一步判断该智能仪表的附加信息有更新时;当该智能仪表的附加信息有更新时,所述DCU向所述主站发送档案更新消息,其中包括所述DCU的标识,所述智能仪表的表号,以及所述智能仪表的附加信息,以使主站更新所述智能仪表的档案中的附加信息。这样,可以及时更新主站上智能仪表的档案,保障主站、DCU和智能仪表间顺利通信。With reference to the first aspect, in a possible implementation, the network access request message further includes additional information of the smart meter; and when the address of the smart meter exists in the access record, the DCU The DCU may further determine that the additional information of the smart meter is updated; when the additional information of the smart meter is updated, the DCU sends an archive update message to the primary station, where the identifier of the DCU is included, where the smart meter The table number, and additional information of the smart meter, to cause the primary station to update the additional information in the file of the smart meter. In this way, the file of the smart meter on the main station can be updated in time to ensure smooth communication between the main station, the DCU and the smart meter.
结合第一方面或上述可能的实现方式,在另一种可能的实现方式中,在根据所述智能仪表的地址查询接入记录之前,所述DCU可以先判断接入所述DCU的智能仪表数量是否小于预设可接入阈值;如果接入所述DCU的智能仪表数量小于所述预设可接入阈值,所述DCU继续上述根据所述智能仪表的地址查询接入记录的步骤;若不小于所述预设可接入阈值,所述DCU可以拒绝所述智能仪表的入网请求,结束本方法流程。这样,通过预设可接入阈值来判断所述DCU是否已经饱和,可以避免所述DCU接入过多智能仪表、出现过载的情况。在部署了多个DCUs的情况下,可以实现DCUs之间的负载均衡。With reference to the first aspect or the foregoing possible implementation manner, in another possible implementation manner, before querying the access record according to the address of the smart meter, the DCU may first determine the number of smart meters accessing the DCU. Whether it is less than a preset access threshold; if the number of smart meters accessing the DCU is less than the preset accessible threshold, the DCU continues the step of querying the access record according to the address of the smart meter; The DCU may reject the network access request of the smart meter and end the flow of the method. In this way, it is determined whether the DCU is saturated by presetting the accessible threshold, and the DCU can be prevented from accessing too many smart meters and an overload occurs. Load balancing between DCUs can be achieved when multiple DCUs are deployed.
结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,在所述DCU接收智能仪表发送的接入请求消息之前,所述DCU发送广播消息,其中包括所述DCU的标识,该广播消息用于通知智能仪表可以从所述DCU入网。相应地,所述入网请求消息中还包括所述DCU的标识。这样,任何收到该广播消息的智能仪表都可以请求从所述DCU入网。With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, before the DCU receives the access request message sent by the smart meter, the DCU sends a broadcast message, including the An identifier of the DCU, the broadcast message is used to notify the smart meter that the network can be accessed from the DCU. Correspondingly, the network request message further includes an identifier of the DCU. In this way, any smart meter that receives the broadcast message can request to access the network from the DCU.
第四方面,提供一种控制智能仪表入网的方法,主站接收DCU发送的建档请求消息,其中包括所述DCU的标识和第一智能仪表的表号;所述主站根据所述第一智能仪表的表号查询档案库,以判断所述档案库中是否包含所述第 一智能仪表;当所述档案库中不存在所述第一智能仪表的表号时,可能是所述第一智能仪表首次入网,所述主站根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,其中包括所述第一智能仪表的表号和所述DCU的标识的对应关系;当所述档案库中存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息更新所述第一智能仪表的档案,换言之,所述主站使所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系。这样,无论第一智能仪表首次入网,还是已从其他DCU入网,根据DCU的建档请求,主站直接建立或更新所述第一智能仪表的档案,提高了智能仪表的入网效率。The fourth aspect provides a method for controlling a smart meter to access a network, where the primary station receives a filing request message sent by the DCU, where the identifier of the DCU and the table number of the first smart meter are included; the primary station is according to the first The meter number of the smart meter queries the archive to determine whether the file is included in the archive a smart meter; when the number of the first smart meter does not exist in the archive, the first smart meter may enter the network for the first time, and the main station is in the file according to the filing request message. Establishing a file of the first smart meter in the library, where the correspondence between the table number of the first smart meter and the identifier of the DCU is included; when the table number of the first smart meter exists in the archive And the primary station updates the file of the first smart meter according to the filing request message, in other words, the primary station causes the file of the first smart meter to include the table number of the first smart meter and the The correspondence between the IDs of the DCUs. In this way, whether the first smart meter enters the network for the first time or has entered the network from another DCU, according to the DCU's filing request, the primary station directly establishes or updates the file of the first smart meter, thereby improving the network access efficiency of the smart meter.
可选地,所述主站在完成建立或更新所述第一智能仪表的档案之后,向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号,以便所述DCU知道所述主站已建立或更新所述第一智能仪表的档案,保证了主站和DCU上档案的一致性。Optionally, the primary station sends a file response response message to the DCU after completing the establishing or updating the file of the first smart meter, where the file response response message includes the table number of the first smart meter. So that the DCU knows that the primary station has established or updated the file of the first smart meter, and ensures the consistency of the files on the primary station and the DCU.
进一步可选地,所述主站接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,所述主站用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。这样,在智能仪表的信息有更新时,主站可以及时更新智能仪表的档案,保障主站、DCU和智能仪表间顺利通信。Further optionally, the primary station receives an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter. When the archive of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, the primary station is attached by the second smart meter The information updates the file of the second smart meter. In this way, when the information of the smart meter is updated, the main station can update the file of the smart meter in time to ensure smooth communication between the main station, the DCU and the smart meter.
第五方面,提供一种DCU,所述DCU具有实现上述控制智能仪表入网的方法中DCU的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现,所述硬件或软件包括一个或多个与上述功能相对应的模块。In a fifth aspect, a DCU is provided, where the DCU has the function of implementing the foregoing DCU in the method for controlling the smart meter to access the network, and the function may be implemented by hardware or by executing corresponding software by hardware, where the hardware or software includes One or more modules corresponding to the above functions.
第六方面,提供一种主站,所述主站具有实现上述控制智能仪表入网的方法中主站的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现,所述硬件或软件包括一个或多个与上述功能相对应的模块。According to a sixth aspect, a primary station is provided, where the primary station has a function of implementing a primary station in a method for controlling a smart meter to access the network, and the function may be implemented by using hardware or by executing corresponding software by hardware, where the hardware is implemented. Or the software includes one or more modules corresponding to the functions described above.
第七方面,提供了一种计算机存储介质,该计算机存储介质中存储有程序 代码,该程序代码中包括实现上述第一方面的方法的指令。According to a seventh aspect, a computer storage medium is provided, wherein a program is stored in the computer storage medium Code, the program code comprising instructions for implementing the method of the first aspect above.
第八方面,提供了一种计算机存储介质,该计算机存储介质中存储有程序代码,该程序代码中包括实现上述第二方面的方法的指令。In an eighth aspect, a computer storage medium is provided, the program storage medium storing program code, the program code including instructions for implementing the method of the second aspect.
第九方面,提供了一种计算机存储介质,该计算机存储介质中存储有程序代码,该程序代码中包括实现上述第三方面的方法的指令。According to a ninth aspect, there is provided a computer storage medium having program code stored therein, the program code including instructions for implementing the method of the third aspect.
第十方面,提供了一种计算机存储介质,该计算机存储介质中存储有程序代码,该程序代码中包括实现上述第四方面的方法的指令。According to a tenth aspect, there is provided a computer storage medium having program code stored therein, the program code including instructions for implementing the method of the fourth aspect.
第十一方面,提供一种控制智能仪表入网的系统,包括智能仪表,实现上述第一方面所述方法的DCU,以及实现上述第二方面所述方法的主站。In an eleventh aspect, a system for controlling a smart meter to access a network, comprising a smart meter, a DCU implementing the method of the first aspect described above, and a primary station implementing the method of the second aspect described above are provided.
DCU接收智能仪表发送的入网请求消息,其中包括所述智能仪表的表号和地址,所述DCU根据所述智能仪表的地址查询接入记录,以判断所述接入记录中是否包含所述智能仪表;当所述接入记录中存在所述智能仪表的地址时,所述DCU直接接受所述智能仪表的入网请求,允许所述智能仪表入网;当所述接入记录中不存在所述智能仪表的地址时,所述DCU向主站发送建档请求消息,其中包括所述智能仪表的表号和所述DCU的标识。The DCU receives the network access request message sent by the smart meter, including the table number and address of the smart meter, and the DCU queries the access record according to the address of the smart meter to determine whether the smart record includes the smart record. When the address of the smart meter exists in the access record, the DCU directly accepts the network access request of the smart meter, allowing the smart meter to enter the network; when the smart record does not exist in the access record At the address of the meter, the DCU sends a filing request message to the primary station, including the table number of the smart meter and the identifier of the DCU.
主站根据所述第一智能仪表的表号查询档案库,以判断所述档案库中是否包含所述第一智能仪表;当所述档案库中不存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,然后向所述DCU发送包括建档结果为成功的建档响应消息。当所述档案库中存在所述第一智能仪表的表号时,所述主站可以拒绝所述DCU的建档请求,并向所述DCU发送包括建档结果为失败的建档响应消息;或者所述主站可以根据所述建档请求消息更新所述第一智能仪表的档案,并向所述DCU发送包括建档结果为成功的建档响应消息。The primary station queries the archive according to the table number of the first smart meter to determine whether the first smart meter is included in the archive; when the number of the first smart meter does not exist in the archive And the primary station establishes the file of the first smart meter in the archive according to the filing request message, and then sends a file response message including the result of the file creation to the DCU. When the table number of the first smart meter exists in the archive, the primary station may reject the filing request of the DCU, and send a filing response message including the failure of the filing result to the DCU; Or the primary station may update the file of the first smart meter according to the filing request message, and send a file response response message including the result of the establishment of the file to the DCU.
所述DCU根据主站返回的建档响应消息中的建档结果确定是否允许所述智能仪表入网,当确定建档结果为成功时,所述DCU在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网;当确定建档结果为失败时,所 述DCU可以拒绝所述智能仪表入网。Determining, by the DCU, whether the smart meter is allowed to enter the network according to the result of the filing in the filing response message returned by the primary station. When determining that the filing result is successful, the DCU adds the smart meter to the access record. Address, allowing the smart meter to enter the network; when it is determined that the result of the filing is a failure, the The DCU can reject the smart meter to access the network.
第十一方面,提供一种控制智能仪表入网的系统,包括智能仪表,实现上述第三方面所述方法的DCU,以及实现上述第四方面所述方法的主站。In an eleventh aspect, a system for controlling a smart meter to access a network, comprising a smart meter, a DCU implementing the method of the third aspect, and a primary station implementing the method of the fourth aspect described above are provided.
DCU接收智能仪表发送的入网请求消息,其中包括所述智能仪表的表号和地址,所述DCU根据所述智能仪表的地址查询接入记录,以判断所述接入记录中是否包含所述智能仪表;当所述接入记录中存在所述智能仪表的地址时,所述DCU直接接受所述智能仪表的入网请求,允许所述智能仪表入网;当所述接入记录中不存在所述智能仪表的地址时,所述DCU向主站发送建档请求消息,其中包括所述智能仪表的表号和所述DCU的标识,以使主站建立或更新所述第一智能仪表的档案。The DCU receives the network access request message sent by the smart meter, including the table number and address of the smart meter, and the DCU queries the access record according to the address of the smart meter to determine whether the smart record includes the smart record. When the address of the smart meter exists in the access record, the DCU directly accepts the network access request of the smart meter, allowing the smart meter to enter the network; when the smart record does not exist in the access record When the address of the meter is sent, the DCU sends a file request message to the primary station, which includes the table number of the smart meter and the identifier of the DCU, so that the primary station establishes or updates the file of the first smart meter.
主站根据所述第一智能仪表的表号查询档案库,以判断所述档案库中是否包含所述第一智能仪表;当所述档案库中不存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案;当所述档案库中存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息更新所述第一智能仪表的档案。The primary station queries the archive according to the table number of the first smart meter to determine whether the first smart meter is included in the archive; when the number of the first smart meter does not exist in the archive And the primary station establishes an archive of the first smart meter in the archive according to the filing request message; when the table number of the first smart meter exists in the archive, the main The station updates the file of the first smart meter according to the filing request message.
附图说明DRAWINGS
图1为本申请实施例提供的一种智能抄表系统示意图;FIG. 1 is a schematic diagram of a smart meter reading system according to an embodiment of the present application;
图2为本申请实施例提供的一种控制智能仪表入网的方法流程图;2 is a flowchart of a method for controlling a smart meter to access a network according to an embodiment of the present application;
图3为本申请实施例提供的另一种控制智能仪表入网的方法流程图;FIG. 3 is a flowchart of another method for controlling a smart meter to access a network according to an embodiment of the present application;
图4为本申请实施例提供的一种DCU的结构示意图;FIG. 4 is a schematic structural diagram of a DCU according to an embodiment of the present disclosure;
图5为本申请实施例提供的一种DCU的另一结构示意图;FIG. 5 is another schematic structural diagram of a DCU according to an embodiment of the present disclosure;
图6为本申请实施例提供的一种主站的结构示意图;FIG. 6 is a schematic structural diagram of a primary station according to an embodiment of the present application;
图7为本申请实施例提供的一种主站的另一结构示意图;FIG. 7 is another schematic structural diagram of a primary station according to an embodiment of the present disclosure;
图8为本申请实施例提供的另一种DCU的结构示意图;FIG. 8 is a schematic structural diagram of another DCU according to an embodiment of the present disclosure;
图9为本申请实施例提供的另一种DCU的另一结构示意图; FIG. 9 is another schematic structural diagram of another DCU according to an embodiment of the present disclosure;
图10为本申请实施例提供的另一种主站的结构示意图;FIG. 10 is a schematic structural diagram of another primary station according to an embodiment of the present disclosure;
图11为本申请实施例提供的另一种主站的另一结构示意图;FIG. 11 is another schematic structural diagram of another primary station according to an embodiment of the present disclosure;
图12为本申请实施例提供的一种控制智能仪表入网的系统结构示意图;FIG. 12 is a schematic structural diagram of a system for controlling a smart meter to access a network according to an embodiment of the present disclosure;
图13为本申请实施例提供的另一种控制智能仪表入网的系统结构示意图。FIG. 13 is a schematic structural diagram of another system for controlling a smart meter to access a network according to an embodiment of the present disclosure.
具体实施方式detailed description
本申请提供的控制智能仪表入网的技术方案,用于如图1所示的采用AMI部署的基于PLC技术的智能抄表系统中,控制智能仪表的入网。如图1所示的系统包括主站、DCU和智能仪表(smart meter)。智能仪表挂接到(接入)DCU,与该DCU之间采用PLC技术通信,DCU与主站之间可以通过有线或无线网络通信。本申请中的智能仪表是指支持PLC技术的智能电表、智能水表等表计设备。The technical solution for controlling the intelligent instrument network access provided by the application is used for controlling the smart instrument to enter the network in the intelligent meter reading system based on PLC technology deployed by AMI as shown in FIG. 1 . The system shown in Figure 1 includes a primary station, a DCU, and a smart meter. The smart meter is connected to (accessed) the DCU, and the PLC technology is used to communicate with the DCU, and the DCU and the main station can communicate through a wired or wireless network. The smart meter in this application refers to a meter device such as a smart meter or a smart water meter that supports PLC technology.
本申请提供的控制智能仪表入网的方法,由DCU根据接入的智能仪表信息生成档案,发送给主站保存,从而自下而上自动生成档案,可以解决人工录入档案工作量大、易出错,以及智能仪表随机入网产生的串扰问题,从而提高智能仪表入网成功率和系统的组网效率。The method for controlling the intelligent instrument to enter the network provided by the application is generated by the DCU according to the accessed smart meter information, and is sent to the main station for storage, thereby automatically generating files from the bottom up, which can solve the problem that the manual input file is large and error-prone. And the crosstalk problem generated by the smart instrument randomly entering the network, thereby improving the success rate of the intelligent instrument network access and the networking efficiency of the system.
下面结合附图和具体实施方式对本申请的技术方案作详细的说明。The technical solutions of the present application are described in detail below with reference to the accompanying drawings and specific embodiments.
参见图2,本申请提供了一种控制智能仪表入网的方法,包括:Referring to FIG. 2, the present application provides a method for controlling a smart meter to access a network, including:
201、DCU发送广播消息;201. The DCU sends a broadcast message.
所述广播消息用于通知电力线上的智能仪表可以从所述DCU入网。所述广播消息中包括所述DCU的标识。The broadcast message is used to notify a smart meter on the power line that the network can be accessed from the DCU. The broadcast message includes an identifier of the DCU.
具体地,所述广播消息目的地址为PLC技术中定义的广播地址,例如0xAAAAAAAAAAAA。Specifically, the broadcast message destination address is a broadcast address defined in the PLC technology, for example, 0xAAAAAAAAAAAA.
202、第一智能仪表根据所述广播消息,向所述DCU发送入网请求消息;所述入网请求消息中包括所述第一智能仪表的表号和所述第一智能仪表的地址; The first smart meter sends an incoming network request message to the DCU according to the broadcast message; the network access request message includes a table number of the first smart meter and an address of the first smart meter;
所述第一智能仪表的地址用于在网络通信过程中唯一标识所述第一智能仪表,例如,可以是媒体访问控制(Media Access Control,简称MAC)地址,网际协议(Internet Protocol,简称IP)地址。所述第一智能仪表的表号在对所述第一智能仪表进行管理、控制和数据采集过程中可以唯一标识所述第一智能仪表,例如,可以是一串数字,或者,字母与数字的组合。The address of the first smart meter is used to uniquely identify the first smart meter in a network communication process, for example, a Media Access Control (MAC) address, and an Internet Protocol (IP). address. The table number of the first smart meter may uniquely identify the first smart meter during management, control, and data collection of the first smart meter, for example, may be a string of numbers, or letters and numbers combination.
所述入网请求消息中还可以包括所述第一智能仪表的附加信息,例如,型号、认证信息等。The network access request message may further include additional information of the first smart meter, for example, a model number, authentication information, and the like.
203、所述DCU接收所述入网请求消息,查询接入记录中是否存在所述第一智能仪表的地址;203. The DCU receives the network access request message, and queries whether an address of the first smart meter exists in the access record.
所述DCU会维护一个接入记录,所述接入记录用于记录接入所述DCU的智能仪表。所述接入记录中包括智能仪表的地址;当然还可以包括智能仪表的表号。最开始,所述接入记录可以为空,随着智能仪表入网,所述接入记录中添加各个智能仪表的地址,例如,智能仪表1的地址,智能仪表2的地址,等等。The DCU maintains an access record for recording smart meters that access the DCU. The access record includes an address of the smart meter; of course, the table number of the smart meter may also be included. Initially, the access record may be empty. As the smart meter enters the network, the address of each smart meter is added to the access record, for example, the address of the smart meter 1, the address of the smart meter 2, and the like.
所述接入记录也可以白名单形式设置,这样所述接入记录在记录接入的智能仪表的同时,还可用于控制智能仪表的入网,即,允许在所述白名单中的智能仪表直接入网。The access record may also be set in a whitelist form, so that the access record may be used to control the access of the smart meter while recording the accessed smart meter, that is, allowing the smart meter in the white list to directly Network access.
具体地,所述DCU接收所述第一智能仪表发送的所述入网请求消息,从所述入网请求消息中获取所述第一智能仪表的地址,并根据所述第一智能仪表的地址查询所述接入记录,以判断所述接入记录中是否存在所述第一智能仪表的地址;如果所述接入记录中不存在所述第一智能仪表的地址,则执行步骤204~210。如果所述接入记录中存在所述第一智能仪表的地址,则执行步骤211。Specifically, the DCU receives the network access request message sent by the first smart meter, obtains an address of the first smart meter from the network access request message, and queries the location according to the address of the first smart meter. The access record is used to determine whether the address of the first smart meter exists in the access record; if the address of the first smart meter does not exist in the access record, steps 204-210 are performed. If the address of the first smart meter exists in the access record, step 211 is performed.
204、当所述接入记录中不存在所述第一智能仪表时,所述DCU向主站发送建档请求消息,所述建档请求消息中包括所述DCU的标识和所述第一智能仪表的表号;204. When the first smart meter does not exist in the access record, the DCU sends a file request message to the primary station, where the file request message includes the identifier of the DCU and the first smart The meter number of the meter;
所述建档请求消息中还可以包括所述第一智能仪表的地址;进一步地,所 述建档请求消息中还可以包括所述第一智能仪表的附加信息,附加信息包括型号、认证信息等。The filing request message may further include an address of the first smart meter; further, The file request message may further include additional information of the first smart meter, and the additional information includes a model number, authentication information, and the like.
205、主站接收所述建档请求消息,查询档案库中是否存在所述第一智能仪表的表号;205. The primary station receives the filing request message, and queries whether the table number of the first smart meter exists in the archive.
主站通常会维护一个档案库,用于保存各个智能仪表的档案。最开始,所述档案库可以为空,后续根据来自各个DCU的建档请求消息,可以建立各个智能仪表的档案,例如,智能仪表1的档案,智能仪表2的档案,等等。智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。The master station usually maintains an archive for storing the files of each smart meter. Initially, the archive may be empty, and subsequent files of each smart meter may be created according to the filing request message from each DCU, for example, the file of the smart meter 1, the file of the smart meter 2, and the like. The file of the smart meter includes the table number of the smart meter and the identifier of the accessed DCU; of course, it may also include the address of the smart meter, additional information of the smart meter, and the like.
具体地,所述主站从所述建档请求消息中获取所述第一智能仪表的表号,根据所述第一智能仪表的表号查询档案库,以判断所述档案库中是否存在所述第一智能仪表的表号;当所述档案库中不存在所述第一智能仪表的表号时,执行步骤206;当所述档案库中存在所述第一智能仪表的表号时,执行步骤207或208。Specifically, the primary station obtains the table number of the first smart meter from the filing request message, and queries the archive according to the table number of the first smart meter to determine whether the archive exists in the archive. a table number of the first smart meter; when the table number of the first smart meter does not exist in the archive, step 206 is performed; when the table number of the first smart meter exists in the archive, Step 207 or 208 is performed.
206、当所述档案库中不存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,并向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号和第一建档结果(成功);206. When the table number of the first smart meter does not exist in the archive, the primary station establishes the file of the first smart meter in the archive according to the filing request message, and Sending a file response message to the DCU, where the file response message includes a table number of the first smart meter and a first file result (success);
当所述档案库中不存在所述第一智能仪表的表号时,这种情况一般是所述第一智能仪表首次入网,所述主站根据所述建档请求消息,自动在所述档案库中建立所述第一智能仪表的档案,即,在所述档案库中保存包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系。When the number of the first smart meter does not exist in the archive, the situation is generally that the first smart meter first enters the network, and the primary station automatically searches for the file according to the filing request message. The file of the first smart meter is established in the library, that is, the first correspondence relationship between the table number including the first smart meter and the identifier of the DCU is saved in the archive.
所述第一智能仪表的档案中还可以包括所述第一智能仪表的地址,所述第一智能仪表的附加信息等。The file of the first smart meter may further include an address of the first smart meter, additional information of the first smart meter, and the like.
所述主站在处理所述建档请求消息之后,向所述DCU发送建档响应消息,对所述DCU的建档请求作出应答,以通知所述DCU建档(建立所述第一智能 仪表的档案)成功还是失败。After processing the filing request message, the primary station sends a filing response message to the DCU, and responds to the DCU's filing request to notify the DCU to file (establish the first intelligence) The file of the instrument) success or failure.
所述第一建档结果用于指示所述主站建立所述第一智能仪表的档案成功。The first filing result is used to indicate that the primary station establishes the file of the first smart meter successfully.
207、当所述档案库中存在所述第一智能仪表的表号时,所述主站拒绝所述DCU的建档请求,并向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号和第二建档结果(失败);207. When the table number of the first smart meter exists in the archive, the primary station rejects the file request of the DCU, and sends a file response message to the DCU, where the file response message is sent. The table number of the first smart meter and the second filing result (failure) are included therein;
所述第二建档结果用于指示所述主站建立所述第一智能仪表的档案失败。The second filing result is used to indicate that the primary station fails to establish the file of the first smart meter.
当所述档案库中存在所述第一智能仪表的表号时,可能是所述第一智能仪表并非首次入网,所述主站已经维护了所述第一智能仪表的档案,例如,所述第一智能仪表早先已从其他DCU入网,所述主站维护了所述第一智能仪表的表号和其他DCU的标识的已有对应关系。所述主站拒绝所述DCU的建档请求,以使所述DCU拒绝所述智能仪表入网。这样可以保证所述智能仪表始终从同一个DCU入网,从而可以避免因智能仪表更换所接入的DCU导致网络拓扑频繁变化。但是,所述智能仪表可能要多次发送入网请求,才能从首次入网时接入的DCU(例如,上述其他DCU)入网,因此智能仪表的入网效率相对较低。When the number of the first smart meter exists in the archive, it may be that the first smart meter is not the first time to enter the network, and the primary station has maintained the file of the first smart meter, for example, the The first smart meter has previously entered the network from other DCUs, and the primary station maintains the existing correspondence between the table number of the first smart meter and the identifiers of other DCUs. The primary station rejects the filing request of the DCU, so that the DCU rejects the smart meter to access the network. In this way, the smart meter can always enter the network from the same DCU, so that the network topology can be frequently changed due to the DCU connected by the smart meter replacement. However, the smart meter may need to send the network access request multiple times to enter the network from the DCU (for example, the other DCUs mentioned above) that is accessed when the network is first accessed, so the network access efficiency of the smart meter is relatively low.
208、当所述档案库中存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息更新所述第一智能仪表的档案,并向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号和所述第一建档结果(成功);208. When the table number of the first smart meter exists in the archive, the primary station updates the file of the first smart meter according to the filing request message, and sends a file response to the DCU. a message, the file response message includes a table number of the first smart meter and the first file result (success);
当所述档案库中存在所述第一智能仪表的表号时,可能是所述第一智能仪表并非首次入网,所述主站已经维护了所述第一智能仪表的档案,例如,所述第一智能仪表早先已从其他DCU入网,所述主站维护了所述第一智能仪表的表号和其他DCU的标识的已有对应关系。所述主站可以将档案库中所述已有对应关系中的其他DCU的标识更新为所述DCU的标识(当然,如果所述第一智能仪表的地址、附加信息等不同,也可以同步更新);或者,所述主站可以将档案库中所述已有对应关系删除,然后保存包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系。这样,智能仪表即使已从其他DCU入网, 通过更新档案,本次仍然可以从新的DCU(所述DCU)入网,避免智能仪表可能要尝试多次才能入网的情况,从而提高入网效率。When the number of the first smart meter exists in the archive, it may be that the first smart meter is not the first time to enter the network, and the primary station has maintained the file of the first smart meter, for example, the The first smart meter has previously entered the network from other DCUs, and the primary station maintains the existing correspondence between the table number of the first smart meter and the identifiers of other DCUs. The primary station may update the identifiers of the other DCUs in the existing correspondence in the archive to the identifiers of the DCUs. (Of course, if the address, additional information, etc. of the first smart meter are different, the primary station may also be updated simultaneously. Or the primary station may delete the existing correspondence in the archive, and then save the first correspondence including the table number of the first smart meter and the identifier of the DCU. In this way, even if the smart meter has been connected to the network from other DCUs, By updating the file, this time, the new DCU (the DCU) can still be connected to the network, so that the smart meter may have to try multiple times to enter the network, thereby improving the network access efficiency.
上述步骤207和208为两种可替换的实现方式,可以根据网络规模,或者系统性能要求,或者客户需求,选择执行步骤207的实现方式或者步骤208的实现方式。The foregoing steps 207 and 208 are two alternative implementations, and the implementation manner of step 207 or the implementation manner of step 208 may be selected according to network size, or system performance requirements, or customer requirements.
209、所述DCU接收所述建档响应消息,当确定建档结果为第一建档结果(成功)时,所述DCU在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网;209. The DCU receives the filing response message, and when determining that the result of the filing is the first filing result (success), the DCU adds an address of the smart meter to the access record, allowing the Smart meter access network;
210、所述DCU接收所述建档响应消息,当确定建档结果为第二建档结果(失败)时,所述DCU拒绝所述智能仪表入网。210. The DCU receives the filing response message, and when determining that the filing result is a second filing result (failure), the DCU rejects the smart meter to access the network.
本实施例中,为避免所述DCU和所述主站之间所述第一智能仪表的档案不一致,保证入网准确性,所述DCU在收到所述建档响应消息,且建档结果为成功时,才允许所述第一智能仪表入网。In this embodiment, in order to avoid the file consistency of the first smart meter between the DCU and the primary station, and ensuring network access accuracy, the DCU receives the file response message, and the result of the file is When successful, the first smart meter is allowed to enter the network.
211、当所述接入记录中存在所述第一智能仪表的地址时,所述DCU允许所述第一智能仪表入网;211. When the address of the first smart meter exists in the access record, the DCU allows the first smart meter to enter the network.
具体地,当所述接入记录中存在所述第一智能仪表的地址时,可能所述第一智能仪表不是首次入网(早先已从所述DCU入网),所述DCU允许所述第一智能仪表接入(入网)。当然,也可能是人工或主站事先在所述白名单中配置了所述第一智能仪表的地址。Specifically, when the address of the first smart meter exists in the access record, the first smart meter may not be first accessed (the network has been previously accessed from the DCU), and the DCU allows the first smart Instrument access (into the network). Of course, it is also possible that the manual or the primary station has previously configured the address of the first smart meter in the white list.
进一步地,当所述接入记录中存在所述第一智能仪表时,所述DCU还可以判断所述第一智能仪表的附加信息是否有更新。如果所述第一智能仪表的附加信息有更新,所述DCU可以向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU的标识和所述第一智能仪表的表号,还包括所述第一智能仪表的附加信息,以使所述主站更新所述第一智能仪表的档案(即所述第一对应关系)中的附加信息。Further, when the first smart meter exists in the access record, the DCU may further determine whether the additional information of the first smart meter is updated. If the additional information of the first smart meter is updated, the DCU may send an archive update message to the primary station, where the file update message includes an identifier of the DCU and a table number of the first smart meter. An additional information of the first smart meter is further included to cause the primary station to update additional information in an archive of the first smart meter (ie, the first correspondence).
本申请实施例中的建档请求消息,建档响应消息,档案更新消息可以通过 扩展配电线报文规范(Device Language Message Specification,简称DLMS)消息实现,当然,可以自定义新的消息来实现。图1中以DLMS协议消息实现为例,并非对本申请实现的限定。The filing request message, the filing response message, and the file update message in the embodiment of the present application can pass The device language message specification (DLMS) message is implemented. Of course, new messages can be customized. The implementation of the DLMS protocol message in FIG. 1 is taken as an example and is not a limitation on the implementation of the present application.
可选地,在步骤203中根据所述第一智能仪表的地址查询接入记录之前,所述方法还可以包括:Optionally, before the access record is queried according to the address of the first smart meter in step 203, the method may further include:
所述DCU判断接入所述DCU的智能仪表数量是否小于预设可接入阈值。The DCU determines whether the number of smart meters accessing the DCU is less than a preset access threshold.
若确定接入所述DCU的智能仪表数量小于预设可接入阈值,所述DCU则继续步骤203;If it is determined that the number of smart meters accessing the DCU is less than a preset access threshold, the DCU proceeds to step 203;
若确定接入所述DCU的智能仪表数量不小于所述预设可接入阈值,所述DCU可以拒绝所述第一智能仪表接入,结束流程。If it is determined that the number of smart meters accessing the DCU is not less than the preset accessible threshold, the DCU may reject the first smart meter access and end the process.
这样,通过预设可接入阈值来判断所述DCU是否已经饱和,可以避免所述DCU接入过多智能仪表、发生过载的情况。这样,在部署了多个DCUs的情况下,还可以实现DCUs之间的负载均衡。In this way, it is determined whether the DCU is saturated by presetting the accessible threshold, and the DCU can be prevented from accessing too many smart meters and an overload occurs. In this way, load balancing between DCUs can also be achieved when multiple DCUs are deployed.
本申请实施例提供的控制智能仪表接入的方法,DCU收到智能仪表的入网请求之后,请求主站为智能仪表建立档案,在主站建档成功的情况下,允许智能仪表入网,实现了自下而上自动建档,不仅提高了智能仪表入网的灵活性和入网效率,且可以保证档案的一致性。这样,无需人工在主站录入档案下发给DCU,不仅可以避免人工录入出错,还可以减少人力成本。The method for controlling the access of the smart meter provided by the embodiment of the present application, after receiving the network access request of the smart meter, the DCU requests the master station to establish a file for the smart meter, and allows the smart meter to enter the network when the master station successfully files the file, and realizes Automatic file creation from the bottom up not only improves the flexibility and network access efficiency of smart meters, but also ensures the consistency of files. In this way, it is not necessary to manually send the DCU to the DCU in the main station, which not only avoids manual entry errors, but also reduces labor costs.
参见图3,本申请提供了另一种控制智能仪表入网的方法,包括:Referring to FIG. 3, the present application provides another method for controlling a smart meter to access a network, including:
301、DCU发送广播消息;301. The DCU sends a broadcast message.
所述广播消息用于通知电力线上的智能仪表可以从所述DCU入网。所述广播消息中包括所述DCU的标识。The broadcast message is used to notify a smart meter on the power line that the network can be accessed from the DCU. The broadcast message includes an identifier of the DCU.
302、第一智能仪表根据所述广播消息,向所述DCU发送入网请求消息;所述入网请求消息中包括所述第一智能仪表的表号和所述第一智能仪表的地址; 302. The first smart meter sends an incoming network request message to the DCU according to the broadcast message. The network access request message includes a table number of the first smart meter and an address of the first smart meter.
所述入网请求消息中还可以包括所述第一智能仪表的型号、认证信息等。The network access request message may further include a model, an authentication information, and the like of the first smart meter.
303、所述DCU接收所述入网请求消息,并判断接入所述DCU的智能仪表数量是否小于预设可接入阈值;303. The DCU receives the network access request message, and determines whether the number of smart meters accessing the DCU is less than a preset access threshold.
若确定接入所述DCU的智能仪表数量小于预设可接入阈值,则继续步骤304;If it is determined that the number of smart meters accessing the DCU is less than the preset access threshold, proceed to step 304;
若确定接入所述DCU的智能仪表数量不小于预设可接入阈值,则拒绝所述第一智能仪表接入,结束整个流程。If it is determined that the number of smart meters accessing the DCU is not less than a preset access threshold, the first smart meter access is denied, and the entire process is ended.
通过预设可接入阈值来判断DCU是否已经饱和,可以避免DCU接入过多智能仪表,出现过载的情况。这样,在部署了多个DCUs的情况下,可以实现DCUs之间负载均衡。It is judged whether the DCU is saturated by the preset access threshold, and the DCU can be prevented from accessing too many smart meters, and an overload situation occurs. In this way, load balancing between DCUs can be achieved when multiple DCUs are deployed.
304、当接入所述DCU的智能仪表数量小于预设可接入阈值时,所述DCU查询接入记录中是否存在所述第一智能仪表的地址;When the number of the smart meters that are connected to the DCU is less than the preset access threshold, the DCU queries whether the address of the first smart meter exists in the access record.
所述DCU会维护一个接入记录,所述接入记录用于记录接入所述DCU的智能仪表。所述接入记录中包括智能仪表的地址;当然还可以包括智能仪表的表号。The DCU maintains an access record for recording smart meters that access the DCU. The access record includes an address of the smart meter; of course, the table number of the smart meter may also be included.
所述接入记录也可以白名单形式设置,用于控制智能仪表的入网。The access record may also be set in a whitelist format for controlling the network access of the smart meter.
具体地,所述DCU从所述入网请求消息中获取所述第一智能仪表的地址,根据所述第一智能仪表的地址查询所述接入记录,以判断所述接入记录中是否包含所述第一智能仪表;如果所述接入记录中不存在所述第一智能仪表的地址,则执行步骤305-308。如果所述接入记录中存在所述第一智能仪表的地址,则执行步骤309。Specifically, the DCU obtains an address of the first smart meter from the network access request message, and queries the access record according to an address of the first smart meter to determine whether the access record includes The first smart meter is configured; if the address of the first smart meter does not exist in the access record, steps 305-308 are performed. If the address of the first smart meter exists in the access record, step 309 is performed.
305、当所述接入记录中不存在所述第一智能仪表时,所述DCU在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网,并向主站发送建档请求消息;305. When the first smart meter does not exist in the access record, the DCU adds an address of the smart meter to the access record, allows the smart meter to enter the network, and sends the smart meter to the primary station. File request message;
所述建档请求消息中包括所述DCU的标识和所述第一智能仪表的表号。The filing request message includes an identifier of the DCU and a table number of the first smart meter.
所述建档请求消息中还可以包括所述第一智能仪表的地址;进一步地,所 述建档请求消息中还可以包括所述第一智能仪表的附加信息,附加信息包括型号、认证信息等。The filing request message may further include an address of the first smart meter; further, The file request message may further include additional information of the first smart meter, and the additional information includes a model number, authentication information, and the like.
306、主站接收所述建档请求消息,查询档案库中是否存在所述第一智能仪表的表号;306. The primary station receives the filing request message, and queries whether the table number of the first smart meter exists in the archive.
主站通常会维护一个档案库,用于保存各个智能仪表的档案。智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。The master station usually maintains an archive for storing the files of each smart meter. The file of the smart meter includes the table number of the smart meter and the identifier of the accessed DCU; of course, it may also include the address of the smart meter, additional information of the smart meter, and the like.
具体地,所述主站从所述建档请求消息中获取所述第一智能仪表的表号,根据所述第一智能仪表的表号查询所述档案库,以判断所述档案库中是否包含所述第一智能仪表的档案。当所述档案库中不存在所述第一智能仪表的表号时,执行步骤307;当所述档案库中存在所述第一智能仪表的表号时,执行步骤308。Specifically, the primary station obtains the table number of the first smart meter from the filing request message, and queries the archive according to the table number of the first smart meter to determine whether the file library is An archive containing the first smart meter. When the table number of the first smart meter does not exist in the archive, step 307 is performed; when the table number of the first smart meter exists in the archive, step 308 is performed.
307、当所述档案库中不存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案;307. When the table number of the first smart meter does not exist in the archive, the primary station establishes an archive of the first smart meter in the archive according to the filing request message.
当所述档案库中不存在所述第一智能仪表的表号时,这种情况一般是所述第一智能仪表首次入网,所述主站根据所述建档请求消息,自动在所述档案库中建立所述第一智能仪表的档案,即,在所述档案库中保存包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系。When the number of the first smart meter does not exist in the archive, the situation is generally that the first smart meter first enters the network, and the primary station automatically searches for the file according to the filing request message. The file of the first smart meter is established in the library, that is, the first correspondence relationship between the table number including the first smart meter and the identifier of the DCU is saved in the archive.
所述第一智能仪表的档案中还可以包括所述第一智能仪表的地址,所述第一智能仪表的附加信息等。The file of the first smart meter may further include an address of the first smart meter, additional information of the first smart meter, and the like.
所述主站在完成建立所述第一智能仪表的档案之后,可以向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号,以响应所述DCU的建档请求。After completing the establishment of the file of the first smart meter, the primary station may send a file response message to the DCU, where the file response response message includes a table number of the first smart meter in response to the DCU filing request.
308、当所述档案库中存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息更新所述第一智能仪表的档案;308. When the table number of the first smart meter exists in the archive, the primary station updates the file of the first smart meter according to the filing request message.
当所述档案库中存在所述第一智能仪表的表号时,可能是所述第一智能仪 表并非首次入网,所述主站已经维护了所述第一智能仪表的档案,例如,所述第一智能仪表早先已从其他DCU入网,所述主站维护了所述第一智能仪表的表号和其他DCU的标识的已有对应关系。所述主站可以将档案库中所述已有对应关系中的其他DCU的标识更新为所述DCU的标识(当然,如果所述第一智能仪表的地址、附加信息等不同,也可以同步更新);或者,所述主站可以将档案库中所述已有对应关系删除,然后保存包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系。When the number of the first smart meter exists in the archive, the first smart meter may be The table is not the first time to enter the network, the primary station has maintained the file of the first smart meter, for example, the first smart meter has previously entered the network from other DCUs, and the primary station maintains the table of the first smart meter The existing relationship between the number and the ID of other DCUs. The primary station may update the identifiers of the other DCUs in the existing correspondence in the archive to the identifiers of the DCUs. (Of course, if the address, additional information, etc. of the first smart meter are different, the primary station may also be updated simultaneously. Or the primary station may delete the existing correspondence in the archive, and then save the first correspondence including the table number of the first smart meter and the identifier of the DCU.
所述主站在完成所述第一智能仪表的档案更新之后,可以向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号,以响应所述DCU的建档请求。After completing the file update of the first smart meter, the primary station may send a file response message to the DCU, where the file response response message includes a table number of the first smart meter in response to the DCU filing request.
可选地,为了保证所述主站收到上述建档请求消息,建立或更新所述第一智能仪表的档案,所述DCU在向主站发送所述建档请求消息之后,可以启动一个定时器,设定一个响应阈值,如果在所述响应阈值时间内没有收到所述主站返回的建档响应消息,所述DCU可以再次向所述主站发送所述建档请求消息,直至收到所述主站返回的建档响应消息。这样,可以保证所述主站和所述DCU上档案的一致性,以确保后续主站、DCU和智能仪表三者之间通信顺利。Optionally, in order to ensure that the primary station receives the foregoing filing request message, establishing or updating an archive of the first smart meter, the DCU may initiate a timing after sending the filing request message to the primary station. And setting a response threshold, if the filing response message returned by the primary station is not received within the response threshold time, the DCU may send the filing request message to the primary station again until receiving The filing response message returned to the primary station. In this way, the consistency of the files on the primary station and the DCU can be ensured to ensure smooth communication between the subsequent primary station, the DCU and the smart meter.
309、当所述接入记录中存在所述第一智能仪表的地址时,所述DCU允许所述第一智能仪表入网;309. When the address of the first smart meter exists in the access record, the DCU allows the first smart meter to enter the network.
具体地,当所述接入中包含所述第一智能仪表时,可能所述第一智能仪表早先已从所述DCU入网,则所述DCU允许所述第一智能仪表接入(入网)。当然,也可能是人工或主站事先在所述接入记录中配置了所述第一智能仪表的地址。Specifically, when the first smart meter is included in the access, the first smart meter may have previously entered the network from the DCU, and the DCU allows the first smart meter to access (incoming network). Of course, it is also possible that the manual or the primary station has previously configured the address of the first smart meter in the access record.
进一步地,当所述接入记录中存在所述第一智能仪表的地址时,所述DCU还可以判断所述第一智能仪表的附加信息,例如型号、认证信息等,是否有更新。如果所述第一智能仪表的附加信息有更新,所述DCU可以向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU的标识和所述第一智能 仪表的表号,还包括所述第一智能仪表的附加信息,以使所述主站更新所述第一智能仪表的档案(即,所述第一对应关系)中的附加信息。Further, when the address of the first smart meter exists in the access record, the DCU may further determine whether the additional information of the first smart meter, such as a model, an authentication information, or the like, is updated. If the additional information of the first smart meter is updated, the DCU may send an archive update message to the primary station, where the file update message includes an identifier of the DCU and the first smart The meter number of the meter further includes additional information of the first smart meter to cause the primary station to update the additional information in the file of the first smart meter (ie, the first correspondence).
本申请实施例中的建档请求消息,建档响应消息,档案更新消息可以通过DLMS消息实现,当然,也可以自定义新的消息来实现。In the embodiment of the present application, the filing request message, the filing response message, and the file update message may be implemented by using a DLMS message, and of course, a new message may be customized.
本申请实施例中,所述DCU收到所述第一智能仪表的入网请求,可以即刻将所述第一智能仪表的地址加入所述接入记录中,准许所述第一智能仪表入网,再触发主站建立或更新所述第一智能仪表的档案。这样,智能仪表可以从任意DCU入网,避免智能仪表可能要尝试多次才能入网的情况,入网的实时性高,从而可以提高入网效率。In the embodiment of the present application, the DCU receives the network access request of the first smart meter, and can immediately add the address of the first smart meter to the access record, permitting the first smart meter to enter the network, and then Triggering the primary station to establish or update the file of the first smart meter. In this way, the smart meter can enter the network from any DCU, avoiding the situation that the smart meter may have to try multiple times to enter the network, and the real-time access to the network is high, thereby improving the network access efficiency.
参见图4,本申请实施例提供的一种DCU 400,用于实现如图2所示的控制智能仪表入网的方法中DCU的功能,所述DCU 400包括:发送模块401,接收模块402和处理模块403;Referring to FIG. 4, a DCU 400 is provided for implementing the function of the DCU in the method for controlling the smart meter accessing as shown in FIG. 2, and the DCU 400 includes: a sending module 401, a receiving module 402, and processing. Module 403;
所述接收模块402,用于接收第一智能仪表发送的入网请求消息,所述入网请求消息中包括所述第一智能仪表的表号和所述第一智能仪表的地址;The receiving module 402 is configured to receive a network access request message sent by the first smart meter, where the network access request message includes a table number of the first smart meter and an address of the first smart meter;
所述处理模块403,用于根据所述第一智能仪表的地址查询接入记录中是否存在所述第一智能仪表的地址;当所述接入记录中存在所述第一智能仪表的地址时,允许所述第一智能仪表入网;当所述接入记录中不存在所述第一智能仪表的地址时,向主站发送建档请求消息,所述建档请求消息中包括所述第一智能仪表的表号和所述DCU的标识;The processing module 403 is configured to query, according to an address of the first smart meter, whether an address of the first smart meter exists in an access record; when an address of the first smart meter exists in the access record And allowing the first smart meter to enter the network; when the address of the first smart meter does not exist in the access record, sending a filing request message to the primary station, where the filing request message includes the first The meter number of the smart meter and the identifier of the DCU;
所述发送模块401,用于发送所述建档请求消息;The sending module 401 is configured to send the filing request message;
所述建档请求消息中还可以包括所述第一智能仪表的地址;进一步可选地,所述建档请求消息中还包括所述第一智能仪表的附加信息。The filing request message may further include an address of the first smart meter; further optionally, the filing request message further includes additional information of the first smart meter.
所述处理模块403,具体用于从所述入网请求消息中获取所述第一智能仪表的地址,根据所述第一智能仪表的地址查询所述接入记录,以判断所述接入记录中是否包含所述第一智能仪表的地址。 The processing module 403 is specifically configured to obtain an address of the first smart meter from the network access request message, and query the access record according to an address of the first smart meter to determine the access record. Whether to include the address of the first smart meter.
在所述接收模块402接收第一智能仪表发送的入网请求消息之前,所述发送模401,还用于发送广播消息,所述广播消息中包括DCU 400的标识;所述广播消息用于通知电力线上的智能仪表可以从所述DCU 400入网。Before the receiving module 402 receives the network access request message sent by the first smart meter, the sending module 401 is further configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 400; the broadcast message is used to notify the power line The smart meter on it can be connected to the network from the DCU 400.
所述DCU 400还可以包括存储模块,用于存储所述接入记录,所述接入记录用于记录接入所述DCU的智能仪表。所述接入记录可以设置为白名单的形式,用于控制智能仪表入网。所述接入记录中可以包括智能仪表的地址;当然还可以包括智能仪表的表号。The DCU 400 may further include a storage module, configured to store the access record, where the access record is used to record a smart meter that accesses the DCU. The access record may be set in the form of a white list for controlling the smart meter to access the network. The address of the smart meter may be included in the access record; of course, the table number of the smart meter may also be included.
所述接收模块402,还用于接收所述主站返回的建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号和建档结果;The receiving module 402 is further configured to receive a filing response message returned by the primary station, where the filing response message includes a table number and a filing result of the first smart meter;
建档结果包括:第一建档结果(成功),用于指示所述主站建立所述第一智能仪表的档案成功;第二建档结果(失败),用于指示所述主站建立所述第一智能仪表的档案失败。The result of the setting includes: a first filing result (success) for indicating that the primary station establishes the file of the first smart meter is successful; and a second filing result (failure) for indicating the establishment of the primary station The file of the first smart meter failed.
所述处理模块403,还用于当所述建档结果为成功时,在所述接入记录中添加所述第一智能仪表的地址,允许所述第一智能仪表入网;当所述建档结果为失败时,拒绝所述第一智能仪表入网。The processing module 403 is further configured to: when the result of the filing is successful, add an address of the first smart meter to the access record, allowing the first smart meter to enter the network; When the result is a failure, the first smart meter is denied access to the network.
主站通常会维护一个档案库,用于保存各个智能仪表的档案,智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系,还可以包括所述第一智能仪表的地址、附加信息等。The main station usually maintains an archive for storing the files of the various smart meters. The file of the smart meter includes the table number of the smart meter and the identifier of the connected DCU; of course, the address of the smart meter can also be included, the smart meter Additional information, etc. The file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
这样,所述DCU在收到主站返回的建档响应消息,且建档结果为成功时,才允许所述第一智能仪表入网,可以避免所述DCU和所述主站之间所述第一智能仪表的档案不一致,保证入网准确性。In this way, the DCU allows the first smart meter to enter the network when receiving the filing response message returned by the primary station, and the result of the file creation is successful, and the first between the DCU and the primary station can be avoided. The file of a smart meter is inconsistent, ensuring the accuracy of network access.
可选地,所述入网请求消息中还可以包括所述第一智能仪表的附加信息,例如,型号、认证信息等。当所述接入记录中包含所述第一智能仪表时,所述处理模块403还用于: Optionally, the network access request message may further include additional information of the first smart meter, for example, a model number, authentication information, and the like. When the first smart meter is included in the access record, the processing module 403 is further configured to:
判断所述第一智能仪表的附加信息是否有更新;如果所述第一智能仪表的附加信息有更新,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU 400的标识,所述第一智能仪表的表号,以及所述第一智能仪表的附加信息,以使所述主站更新所述第一智能仪表的档案中的附加信息。这样可以保证所述DCU和所述主站之间所述第一智能仪表的档案一致性。Determining whether the additional information of the first smart meter is updated; if the additional information of the first smart meter is updated, sending an archive update message to the primary station, where the file update message includes the identifier of the DCU 400 And a table number of the first smart meter and additional information of the first smart meter, so that the primary station updates the additional information in the file of the first smart meter. In this way, the file consistency of the first smart meter between the DCU and the primary station can be guaranteed.
所述发送模块401,还可用于发送所述档案更新消息。The sending module 401 is further configured to send the file update message.
本申请实施例中的建档请求消息,建档响应消息,档案更新消息可以通过扩展DLMS协议消息实现,当然,可以自定义新的消息来实现。In the embodiment of the present application, the filing request message, the filing response message, and the file update message may be implemented by extending the DLMS protocol message. Of course, the new message may be customized.
可选地,所述DCU 400还包括门限判断模块,用于判断接入所述DCU 400的智能仪表数量是否小于预设可接入阈值;若确定接入所述DCU的智能仪表数量小于预设可接入阈值,则继续所述处理模块403根据所述第一智能仪表的地址查询接入记录的操作;若确定接入所述DCU的智能仪表数量不小于预设可接入阈值,则拒绝所述第一智能仪表接入,并结束整个操作。Optionally, the DCU 400 further includes a threshold determining module, configured to determine whether the number of smart meters accessing the DCU 400 is less than a preset access threshold; and determining that the number of smart meters accessing the DCU is less than a preset If the threshold value is reached, the processing module 403 continues to query the access record according to the address of the first smart meter; if it is determined that the number of smart meters accessing the DCU is not less than a preset access threshold, the method rejects The first smart meter accesses and ends the entire operation.
通过预设可接入阈值来判断所述DCU 400是否已经饱和,可以避免所述DCU 400接入过多智能仪表、出现过载的情况。这样,在部署了多个DCU的情况下,可以实现DCU之间负载均衡。The DCU 400 can be prevented from being connected to the smart meter and the overload occurs due to the preset accessibility threshold. In this way, load balancing between DCUs can be achieved when multiple DCUs are deployed.
参见图5,本申请实施例提供的一种DCU 500,用于实现如图2所示的控制智能仪表入网的方法中DCU的功能,所述DCU 500包括:处理器501,存储器502和通信接口503;Referring to FIG. 5, a DCU 500 is provided for implementing the function of the DCU in the method for controlling the smart meter accessing as shown in FIG. 2, the DCU 500 includes: a processor 501, a memory 502, and a communication interface. 503;
所述处理器501,所述存储器502和所述通信接口503之间可以通过总线504相互连接;总线504可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。 The processor 501, the memory 502 and the communication interface 503 can be connected to each other through a bus 504; the bus 504 can be a peripheral component interconnect (PCI) bus or an extended industry standard structure ( Extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
所述存储器502,用于存储所述处理器501为所述DCU 500维护的接入记录,所述接入记录用于记录接入所述DCU 500的智能仪表。所述接入记录可以设置为白名单的形式,用于控制智能仪表入网。所述接入记录中可以包括智能仪表的地址;当然还可以包括智能仪表的表号。The memory 502 is configured to store an access record maintained by the processor 501 for the DCU 500, where the access record is used to record a smart meter that accesses the DCU 500. The access record may be set in the form of a white list for controlling the smart meter to access the network. The address of the smart meter may be included in the access record; of course, the table number of the smart meter may also be included.
所述存储器502可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器502也可以包括非易失性存储器(英文:non-volatile memory),例如快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);存储器502还可以包括上述种类的存储器的组合。The memory 502 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviation: RAM); the memory 502 may also include a non-volatile memory (English: non- Volatile memory), such as flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviated: HDD) or solid state drive (English: solid-state drive, abbreviation: SSD); memory 502 can also include the above categories a combination of memory.
所述处理器501,用于发送广播消息,所述广播消息中包括DCU 500的标识;接收第一智能仪表发送的入网请求消息,所述入网请求消息中包括所述第一智能仪表的地址和所述第一智能仪表的表号;根据所述第一智能仪表的地址查询接入记录,判断所述接入记录中是否存在所述第一智能仪表的地址;The processor 501 is configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 500, and receive a network access request message sent by the first smart meter, where the network access request message includes an address of the first smart meter and Determining an access record of the first smart meter according to the address of the first smart meter, and determining whether an address of the first smart meter exists in the access record;
所述处理器501,还用于当所述接入记录中存在所述第一智能仪表的地址时,允许所述第一智能仪表入网;The processor 501 is further configured to allow the first smart meter to enter the network when the address of the first smart meter exists in the access record;
所述处理器501,还用于当确定所述接入记录中不存在所述第一智能仪表的地址时,向主站发送建档请求消息,所述建档请求消息中包括所述第一智能仪表的表号和所述DCU的标识;接收所述主站返回的建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号和建档结果;当所述建档结果为成功时,在所述接入记录中添加所述第一智能仪表的地址,允许所述第一智能仪表入网;当所述建档结果为失败时,拒绝所述第一智能仪表入网。The processor 501 is further configured to: when determining that the address of the first smart meter does not exist in the access record, send a filing request message to the primary station, where the filing request message includes the first a table number of the smart meter and an identifier of the DCU; receiving a file response message returned by the primary station, where the file response response message includes a table number and a file creation result of the first smart meter; When the result of the file is successful, the address of the first smart meter is added to the access record, and the first smart meter is allowed to enter the network; when the result of the file creation is a failure, the first smart meter is denied access to the network. .
建档结果包括:第一建档结果(成功),用于指示所述主站建立所述第一智能仪表的档案成功;第二建档结果(失败),用于指示所述主站建立所述第一智能仪表的档案失败。The result of the setting includes: a first filing result (success) for indicating that the primary station establishes the file of the first smart meter is successful; and a second filing result (failure) for indicating the establishment of the primary station The file of the first smart meter failed.
所述处理器501具体通过所述通信接口503发送所述广播消息,并通过所 述通信接口503接收所述入网请求消息。The processor 501 specifically sends the broadcast message through the communication interface 503, and passes the The communication interface 503 receives the incoming request message.
本申请实施例中,所述通信接口503代表所述DCU与网络中其他设备,例如,主站,智能仪表等,通信的接口,可以是一个或多个,为便于表述,本申请中用通信接口503表示,并不作为对本申请技术方案的限定。In the embodiment of the present application, the communication interface 503 represents an interface for the DCU to communicate with other devices in the network, for example, a primary station, a smart meter, etc., and may be one or more. For convenience of description, the communication is used in the present application. The interface 503 is not limited to the technical solution of the present application.
通信接口503包括与智能仪表通信的电力线接口;还包括与主站通信的有线通信接入口、无线通信接口或其组合;其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为WLAN接口,蜂窝网络通信接口或其组合等。The communication interface 503 includes a power line interface in communication with the smart meter; a wired communication access port in communication with the primary station, a wireless communication interface, or a combination thereof; wherein the wired communication interface can be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof.
所述处理器501,具体用于从所述入网请求消息中获取所述第一智能仪表的地址,根据所述第一智能仪表的地址查询所述接入记录,以判断所述接入记录中是否包含所述第一智能仪表的地址。The processor 501 is configured to obtain an address of the first smart meter from the network access request message, and query the access record according to an address of the first smart meter to determine the access record. Whether to include the address of the first smart meter.
主站通常会维护一个档案库,用于保存各个智能仪表的档案,智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系,还可以包括所述第一智能仪表的地址、附加信息等。The main station usually maintains an archive for storing the files of the various smart meters. The file of the smart meter includes the table number of the smart meter and the identifier of the connected DCU; of course, the address of the smart meter can also be included, the smart meter Additional information, etc. The file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
这样,所述DCU在收到主站返回的建档响应消息,且建档结果为成功时,才允许所述第一智能仪表入网,可以避免所述DCU和所述主站之间所述第一智能仪表的档案不一致,保证入网准确性。In this way, the DCU allows the first smart meter to enter the network when receiving the filing response message returned by the primary station, and the result of the file creation is successful, and the first between the DCU and the primary station can be avoided. The file of a smart meter is inconsistent, ensuring the accuracy of network access.
可选地,所述入网请求消息中还包括所述第一智能仪表的附加信息,例如,型号、认证信息等。当所述接入记录中包含所述第一智能仪表时,所述处理器501还用于:判断所述第一智能仪表的附加信息是否有更新;在确定所述第一智能仪表的附加信息有更新,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU 500的标识,所述第一智能仪表的表号,以及所述第一智能仪表的附加信息,以使所述主站更新所述第一智能仪表的档案(即,所述第一对应关系)中的附加信息。这样可以保证所述DCU和所述主站之间所述第 一智能仪表的档案一致性。Optionally, the network access request message further includes additional information of the first smart meter, for example, a model number, authentication information, and the like. When the first smart meter is included in the access record, the processor 501 is further configured to: determine whether the additional information of the first smart meter is updated; and determine additional information of the first smart meter And updating, sending an archive update message to the primary station, where the file update message includes an identifier of the DCU 500, a table number of the first smart meter, and additional information of the first smart meter, so that The primary station updates additional information in an archive of the first smart meter (ie, the first correspondence). This can ensure that the first between the DCU and the primary station The file consistency of a smart meter.
可选地,所述处理器501,还用于判断接入所述DCU的智能仪表数量是否小于预设可接入阈值;若确定接入所述DCU的智能仪表数量小于预设可接入阈值,则继续上述根据所述第一智能仪表的地址查询接入记录的操作;若确定接入所述DCU的智能仪表数量不小于预设可接入阈值,则拒绝所述第一智能仪表接入,并结束整个操作。Optionally, the processor 501 is further configured to determine whether the number of smart meters that access the DCU is less than a preset access threshold; if the number of smart meters that access the DCU is determined to be less than a preset access threshold And continuing the operation of querying the access record according to the address of the first smart meter; and if the number of smart meters accessing the DCU is not less than a preset access threshold, rejecting the first smart meter access And end the whole operation.
通过预设可接入阈值来判断所述DCU是否已经饱和,可以避免所述DCU接入过多智能仪表,过载。这样,在部署了多个DCU的情况下,可以实现DCU之间负载均衡。The preset accessibility threshold is used to determine whether the DCU is saturated, and the DCU can be prevented from accessing too many smart meters and overloaded. In this way, load balancing between DCUs can be achieved when multiple DCUs are deployed.
所述处理器501可以是中央处理器(英文:central processing unit,缩写:CPU),网络处理器(英文:network processor,缩写:NP)或者CPU和NP的组合。处理器501还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(英文:application-specific integrated circuit,缩写:ASIC),可编程逻辑器件(英文:programmable logic device,缩写:PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,缩写:FPGA),通用阵列逻辑(英文:generic array logic,缩写:GAL)或其任意组合。The processor 501 may be a central processing unit (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of a CPU and an NP. The processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (abbreviated as PLD), or a combination thereof. The above PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), field-programmable gate array (English: field-programmable gate array, abbreviation: FPGA), general array logic (English: generic array Logic, abbreviation: GAL) or any combination thereof.
可选地,所述存储器502还用于存储程序指令;所述处理器501可以调用存储器502中存放的程序指令,执行图2所示实施例中DCU的一个或多个步骤,或其中可选的实施方式,实现上述图2所示的控制智能仪表入网的方法。Optionally, the memory 502 is further configured to store program instructions; the processor 501 may invoke program instructions stored in the memory 502 to perform one or more steps of the DCU in the embodiment shown in FIG. 2, or In the implementation manner, the method for controlling the smart meter to enter the network shown in FIG. 2 is implemented.
本申请实施例提供的第一种DCU,在收到智能仪表的入网请求之后,请求主站为智能仪表建立档案,在主站建档成功的情况下,允许智能仪表入网,实现了自下而上自动建档,不仅提高了智能仪表入网的灵活性和入网效率,且可以保证DCU和主站之间档案的一致性。此外,也避免了人工在主站录入档案造成的人力成本高、易出错的问题。 The first type of DCU provided by the embodiment of the present application, after receiving the network access request of the smart meter, requests the primary station to establish a file for the smart meter, and allows the smart meter to enter the network when the main station is successfully filed, thereby achieving the bottom-up Automatic file creation not only improves the flexibility and network access efficiency of smart meters, but also ensures the consistency of files between the DCU and the main station. In addition, the problem of high labor cost and error-prone caused by manually entering the file at the main station is also avoided.
参见图6,本申请实施例提供的一种主站600,用于实现如图2所示的控制智能仪表入网的方法中主站的功能,所述主站600包括:接收模块601,发送模块602和处理模块603;Referring to FIG. 6, a primary station 600 is provided for implementing the function of a primary station in a method for controlling a smart meter to enter the network as shown in FIG. 2. The primary station 600 includes: a receiving module 601, and a sending module. 602 and processing module 603;
所述接收模块601,用于接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号;The receiving module 601 is configured to receive a filing request message sent by the DCU, where the filing request message includes an identifier of the DCU and a table number of the first smart meter;
所述处理模块603,用于根据所述第一智能仪表的表号查询档案库中是否存在所述第一智能仪表的表号;当所述档案库中不存在所述第一智能仪表的表号时,根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系,并向所述DCU发送第一建档响应消息,所述第一建档响应消息中包括所述第一智能仪表的表号和第一建档结果(成功);The processing module 603 is configured to query, according to the table number of the first smart meter, whether the table number of the first smart meter exists in the archive; when the table of the first smart meter does not exist in the archive And establishing, according to the filing request message, an archive of the first smart meter in the archive, the file of the first smart meter including a table number of the first smart meter and the DCU Corresponding relationship, and sending a first filing response message to the DCU, where the first filing response message includes a table number of the first smart meter and a first filing result (success);
所述处理模块603,具体用于从所述建档请求消息中获取所述第一智能仪表的表号,根据所述第一智能仪表的表号查询档案库,以判断所述档案库中是否存在所述第一智能仪表的表号。The processing module 603 is specifically configured to obtain the table number of the first smart meter from the filing request message, query the archive according to the table number of the first smart meter, to determine whether the file library is There is a table number of the first smart meter.
当所述档案库中存在所述第一智能仪表的表号时,所述处理模块603,还用于:When the number of the first smart meter exists in the archive, the processing module 603 is further configured to:
拒绝所述DCU的建档请求,并向所述DCU发送第二建档响应消息,所述第二建档响应消息中包括所述第一智能仪表的表号和第二建档结果(失败);这样,可以保证一个智能仪表始终从同一个DCU入网,避免因智能仪表更换所接入的DCU而导致网络拓扑频繁变化,从而可以提高网络管理效率。或者,Rejecting the file request of the DCU, and sending a second file response message to the DCU, where the second file response message includes the table number of the first smart meter and the second file result (failure) In this way, it can ensure that a smart meter always enters the network from the same DCU, avoiding frequent changes of the network topology due to the DCU connected by the smart meter replacement, thereby improving network management efficiency. or,
根据所述建档请求消息更新所述第一智能仪表的档案,并向所述DCU发送所述第一建档响应消息;这样,智能仪表可以快速入网,实时性高,提高入网效率。Updating the file of the first smart meter according to the filing request message, and sending the first file response message to the DCU; thus, the smart meter can quickly enter the network, has high real-time performance, and improves network access efficiency.
所述发送模块602,还用于发送所述第一建档响应消息,或者所述第二建档响应消息。 The sending module 602 is further configured to send the first filing response message or the second filing response message.
所述第一建档结果,用于指示所述主站建立所述第一智能仪表的档案成功;第二建档结果,用于指示所述主站建立所述第一智能仪表的档案失败。The first result of the setting is used to indicate that the primary station establishes the file of the first smart meter successfully; and the second file is used to indicate that the primary station fails to establish the file of the first smart meter.
所述主站600还可以包括存储模块,用于存储所述档案库;所述档案库用于保存各个智能仪表的档案,智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。The primary station 600 may further include a storage module for storing the archive; the archive is used to store files of each smart meter, and the file of the smart meter includes the table number of the smart meter and the accessed DCU. Identification; of course, it can also include the address of the smart meter, additional information of the smart meter, and the like.
所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系,还可以包括所述第一智能仪表的地址、附加信息等。The file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
所述接收模块601,还用于接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;The receiving module 601 is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter. ;
所述处理模块,还用于当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。具体地,当所述档案库中存在一条档案,该档案中包含所述第二智能仪表的表号和所述DCU的标识的第二对应关系,即认为所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案,则用所述第二智能仪表的附加信息更新该档案中的附加信息。The processing module is further configured to: when the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, use the second smart The additional information of the meter updates the file of the second smart meter. Specifically, when there is a file in the archive, the file includes a second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the file library is considered to exist and The file of the second smart meter whose table number of the second smart meter matches the identifier of the DCU updates the additional information in the file with the additional information of the second smart meter.
参见图7,本申请提供一种主站,用于实现如图2所示的控制智能仪表入网的方法中主站的功能,所述主站包括:处理器701,存储器702和通信接口703;Referring to FIG. 7, the present application provides a primary station for implementing the function of a primary station in a method for controlling a smart meter to enter the network as shown in FIG. 2, the primary station includes: a processor 701, a memory 702, and a communication interface 703;
所述处理器701,所述存储器702和所述通信接口703之间可以通过总线704相互连接;总线704可以是PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The processor 701, the memory 702 and the communication interface 703 may be connected to each other through a bus 704; the bus 704 may be a PCI bus or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.
所述存储器702,用于存储所述处理器为所述主站维护的档案库;所述档 案库用于保存各个智能仪表的档案,智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。The memory 702 is configured to store an archive maintained by the processor for the primary station; The file library is used to store the files of the smart meters. The file of the smart meter includes the table number of the smart meter and the identifier of the accessed DCU; of course, the address of the smart meter and the additional information of the smart meter may also be included.
所述存储器702可以包括易失性存储器,例如RAM;存储器702也可以包括非易失性存储器,例如快闪存储器,HDD或SSD;存储器702还可以包括上述种类的存储器的组合。The memory 702 can include volatile memory, such as RAM; the memory 702 can also include non-volatile memory, such as flash memory, HDD or SSD; the memory 702 can also include a combination of the types of memory described above.
所述处理器701,用于接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号,根据所述第一智能仪表的表号查询档案库中是否存在所述第一智能仪表的表号;当所述档案库中不存在所述第一智能仪表的表号时,根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,并向所述DCU发送第一建档响应消息,所述第一建档响应消息中包括所述第一智能仪表的表号和第一建档结果(成功)。The processor 701 is configured to receive a file request message sent by the DCU, where the file request message includes an identifier of the DCU and a table number of the first smart meter, and is queried according to the table number of the first smart meter. Whether the table number of the first smart meter exists in the archive; when the table number of the first smart meter does not exist in the archive, establishing the location in the archive according to the filing request message The file of the first smart meter is sent, and the first file response message is sent to the DCU, where the first file response message includes the table number of the first smart meter and the first file result (success).
所述处理器701,具体用于从所述建档请求消息中获取所述第一智能仪表的表号,根据所述第一智能仪表的表号查询档案库,以判断所述档案库中是否存在所述第一智能仪表的表号。The processor 701 is configured to obtain a table number of the first smart meter from the filing request message, query an archive according to a table number of the first smart meter, to determine whether the file library is There is a table number of the first smart meter.
当所述档案库中存在所述第一智能仪表的表号时,所述处理器701,还用于:When the table number of the first smart meter exists in the archive, the processor 701 is further configured to:
拒绝所述DCU的建档请求,并向所述DCU发送第二建档响应消息,所述第二建档响应消息中包括所述第一智能仪表的表号和第二建档结果(失败);这样,可以保证一个智能仪表始终从同一个DCU入网,避免因智能仪表更换所接入的DCU而导致网络拓扑频繁变化,从而可以提高网络管理效率。或者,Rejecting the file request of the DCU, and sending a second file response message to the DCU, where the second file response message includes the table number of the first smart meter and the second file result (failure) In this way, it can ensure that a smart meter always enters the network from the same DCU, avoiding frequent changes of the network topology due to the DCU connected by the smart meter replacement, thereby improving network management efficiency. or,
根据所述建档请求消息更新所述第一智能仪表的档案,并向所述DCU发送所述第一建档响应消息;这样,智能仪表可以快速入网,实时性高,提高入网效率。Updating the file of the first smart meter according to the filing request message, and sending the first file response message to the DCU; thus, the smart meter can quickly enter the network, has high real-time performance, and improves network access efficiency.
所述建档请求消息中还可以包括所述第一智能仪表的地址;进一步可选地,还可以包括所述第一智能仪表的附加信息,例如型号、认证信息等。 The filing request message may further include an address of the first smart meter; and optionally, may further include additional information of the first smart meter, such as a model number, authentication information, and the like.
所述第一建档结果,用于指示所述主站建立所述第一智能仪表的档案成功;第二建档结果,用于指示所述主站建立所述第一智能仪表的档案失败。The first result of the setting is used to indicate that the primary station establishes the file of the first smart meter successfully; and the second file is used to indicate that the primary station fails to establish the file of the first smart meter.
所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系,还可以包括所述第一智能仪表的地址、附加信息等。The file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
所述处理器701,还用于接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。The processor 701 is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter. When the archive of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, updating the information with the additional information of the second smart meter The file of the second smart meter.
具体地,当所述档案库中存在一条档案,该档案中包含所述第二智能仪表的表号和所述DCU的标识的第二对应关系,即认为所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案,则用所述第二智能仪表的附加信息更新该档案中的附加信息。Specifically, when there is a file in the archive, the file includes a second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the file library is considered to exist and The file of the second smart meter whose table number of the second smart meter matches the identifier of the DCU updates the additional information in the file with the additional information of the second smart meter.
所述处理器701具体通过所述通信接口703接收所述建档请求消息和档案更新消息,并通过所述通信接口703发送所述第一建档响应消息或第二建档响应消息。The processor 701 receives the filing request message and the file update message through the communication interface 703, and sends the first filing response message or the second filing response message through the communication interface 703.
本申请实施例中,所述通信接口703代表所述主站与网络中其他设备,例如,DCU(s),通信的接口,可以是一个或多个,为便于表述,本申请中用通信接口703表示,并不作为对本申请技术方案的限定。In the embodiment of the present application, the communication interface 703 represents an interface between the primary station and other devices in the network, for example, DCU(s), and may be one or more. For convenience of description, the communication interface is used in this application. 703 indicates that it is not intended to limit the technical solution of the present application.
通信接口703可以为有线通信接入口,无线通信接口或其组合,其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为WLAN接口,蜂窝网络通信接口或其组合等。The communication interface 703 can be a wired communication access port, a wireless communication interface, or a combination thereof, wherein the wired communication interface can be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof.
所述处理器701可以是CPU,NP,或者CPU和NP的组合。处理器701还可以进一步包括硬件芯片。上述硬件芯片可以是ASIC,PLD,或其组合。上述PLD可以是CPLD,FPGA,GAL或其任意组合。The processor 701 can be a CPU, an NP, or a combination of a CPU and an NP. The processor 701 may further include a hardware chip. The above hardware chip may be an ASIC, a PLD, or a combination thereof. The above PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
可选地,所述存储器702还用于存储程序指令;所述处理器701可以调用 存储器702中存放的程序指令,执行图2所示实施例中主站的一个或多个步骤,或其中可选的实施方式,实现图2所示的控制智能仪表入网的方法。Optionally, the memory 702 is further configured to store program instructions; the processor 701 can be invoked. The program instructions stored in the memory 702 perform one or more steps of the primary station in the embodiment shown in FIG. 2, or an optional implementation thereof, to implement the method for controlling the smart meter to access the network shown in FIG. 2.
本申请实施例提供的主站,根据DCU发送的建档请求消息,确定是否为智能仪表建立档案,并向DCU反馈建档成功或失败,以控制智能仪表是否可从该DCU入网。这样,可以自下而上自动建立档案,且保证档案的一致性,提高了智能仪表入网的灵活性和入网效率。此外,由于无需人工在主站录入档案,可以减少人力成本,还可以避免人工录入易出错的问题。The primary station provided by the embodiment of the present application determines whether to establish a file for the smart meter according to the filing request message sent by the DCU, and feeds back the successful or failed file creation to the DCU to control whether the smart meter can access the network from the DCU. In this way, the file can be automatically created from the bottom up, and the consistency of the file is ensured, and the flexibility of the smart meter to access the network and the efficiency of accessing the network are improved. In addition, since there is no need to manually enter files in the main station, labor costs can be reduced, and manual error-prone problems can be avoided.
参见图8,本申请实施例提供的另一种DCU 800,用于实现如图3所示的控制智能仪表入网的方法中DCU的功能,所述DCU 800包括:发送模块801,接收模块802和处理模块803;Referring to FIG. 8 , another DCU 800 provided by the embodiment of the present application is used to implement the function of the DCU in the method for controlling the smart meter to enter the network as shown in FIG. 3 . The DCU 800 includes: a sending module 801, a receiving module 802, and Processing module 803;
所述接收模块802,用于接收第一智能仪表发送的入网请求消息,所述入网请求消息中包括所述第一智能仪表的表号和所述第一智能仪表的地址;The receiving module 802 is configured to receive a network access request message sent by the first smart meter, where the network access request message includes a table number of the first smart meter and an address of the first smart meter;
所述处理模块803,用于根据所述第一智能仪表的地址查询接入记录;当所述接入记录中存在所述第一智能仪表的地址时,允许所述第一智能仪表入网;当所述接入记录中不存在所述第一智能仪表的地址时,在所述接入记录中添加所述第一智能仪表的地址,允许所述第一智能仪表入网,并向主站发送建档请求消息,所述建档请求消息中包括所述第一智能仪表的表号和所述DCU的标识;The processing module 803 is configured to query an access record according to an address of the first smart meter; when the address of the first smart meter exists in the access record, allowing the first smart meter to enter the network; When the address of the first smart meter does not exist in the access record, the address of the first smart meter is added to the access record, and the first smart meter is allowed to enter the network, and is sent to the primary station. a file request message, where the file request message includes a table number of the first smart meter and an identifier of the DCU;
所述发送模块801,用于发送所述建档请求消息。The sending module 801 is configured to send the filing request message.
在所述接收模块802接收第一智能仪表发送的入网请求消息之前,所述发送模801,还用于发送广播消息,所述广播消息中包括DCU 800的标识;所述广播消息用于通知电力线上的智能仪表可以从所述DCU 800入网。Before the receiving module 802 receives the network access request message sent by the first smart meter, the sending module 801 is further configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 800; the broadcast message is used to notify the power line The smart meter on it can be connected to the network from the DCU 800.
所述DCU 800还可以包括存储模块,用于存储所述接入记录,所述接入记录用于记录接入所述DCU的智能仪表。所述接入记录可以设置为白名单的形式,用于控制智能仪表入网。所述接入记录中可以包括智能仪表的地址;当 然还可以包括智能仪表的表号。The DCU 800 may further include a storage module, configured to store the access record, where the access record is used to record a smart meter that accesses the DCU. The access record may be set in the form of a white list for controlling the smart meter to access the network. The access record may include an address of the smart meter; It can also include the meter number of the smart meter.
所述接收模块802,还用于接收所述主站返回的建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号。The receiving module 802 is further configured to receive a filing response message returned by the primary station, where the filing response message includes a table number of the first smart meter.
主站通常会维护一个档案库,用于保存各个智能仪表的档案,智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系,还可以包括所述第一智能仪表的地址、附加信息等。所述DCU根据所述主站返回的建档响应消息,可以确定主站已建立所述第一智能仪表的档案。The main station usually maintains an archive for storing the files of the various smart meters. The file of the smart meter includes the table number of the smart meter and the identifier of the connected DCU; of course, the address of the smart meter can also be included, the smart meter Additional information, etc. The file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter. The DCU may determine that the file of the first smart meter has been established by the primary station according to the filing response message returned by the primary station.
可选地,所述DCU 800还包括重传模块,用于当响应阈值的时间内没有收到所述主站返回的建档响应消息时,再次向所述主站发送所述建档请求消息,直至收到所述主站返回的建档响应消息。这样可以保证所述主站收到上述建档请求消息,并根据请求建立或更新所述第一智能仪表的档案,从而保证所述主站和所述DCU上档案的一致性,以确保后续主站、DCU和智能仪表三者之间通信顺利。Optionally, the DCU 800 further includes a retransmission module, configured to send the filing request message to the primary station again when the filing response message returned by the primary station is not received within a response time threshold Until the receipt of the filing response message returned by the primary station. In this way, the primary station can ensure that the above-mentioned filing request message is received, and the file of the first smart meter is created or updated according to the request, so as to ensure the consistency of the files on the primary station and the DCU, so as to ensure the subsequent main The communication between the station, the DCU and the smart meter is smooth.
所述重传模块,可以通过定时器的方式判断是否达到响应阈值的时间。The retransmission module may determine, by means of a timer, whether the response threshold is reached.
可选地,所述入网请求消息中还可以包括所述第一智能仪表的附加信息,例如,型号、认证信息等。当所述接入记录中包含所述第一智能仪表时,所述处理模块803还用于:Optionally, the network access request message may further include additional information of the first smart meter, for example, a model number, authentication information, and the like. When the first smart meter is included in the access record, the processing module 803 is further configured to:
判断所述智能仪表的附加信息是否有更新;如果所述第一智能仪表的附加信息有更新,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU 800的标识,所述第一智能仪表的表号,以及所述第一智能仪表的附加信息,以使所述主站更新所述第一智能仪表的档案中的附加信息。这样可以保证所述DCU和所述主站之间所述第一智能仪表的档案一致性。Determining whether the additional information of the smart meter is updated; if the additional information of the first smart meter is updated, sending an archive update message to the primary station, where the file update message includes the identifier of the DCU 800, And a table number of the first smart meter, and additional information of the first smart meter, so that the primary station updates the additional information in the file of the first smart meter. In this way, the file consistency of the first smart meter between the DCU and the primary station can be guaranteed.
所述发送模块801,还可用于发送所述档案更新消息。The sending module 801 is further configured to send the file update message.
可选地,所述DCU 800还包括门限判断模块,用于判断接入所述DCU的 智能仪表数量是否小于预设可接入阈值;若确定接入所述DCU的智能仪表数量小于预设可接入阈值,则继续所述处理模块803根据所述第一智能仪表的地址查询接入记录的操作;若确定接入所述DCU的智能仪表数量不小于预设可接入阈值,则拒绝所述第一智能仪表接入,并结束整个操作。Optionally, the DCU 800 further includes a threshold determination module, configured to determine access to the DCU. Whether the number of the smart meters is less than the preset access threshold; if it is determined that the number of the smart meters accessing the DCU is less than the preset access threshold, the processing module 803 continues to query the access according to the address of the first smart meter. Recording operation; if it is determined that the number of smart meters accessing the DCU is not less than a preset access threshold, the first smart meter access is rejected, and the entire operation is ended.
通过预设可接入阈值来判断所述DCU 800是否已经饱和,可以避免所述DCU 800接入过多智能仪表、出现过载的情况。这样,在部署了多个DCU的情况下,可以实现DCU之间负载均衡。It is determined whether the DCU 800 is saturated by the preset accessibility threshold, and the DCU 800 can be prevented from accessing too many smart meters and an overload condition occurs. In this way, load balancing between DCUs can be achieved when multiple DCUs are deployed.
参见图9,本申请实施例提供的另一种DCU 900,用于实现如图3所示的控制智能仪表入网的方法中DCU的功能,所述DCU 900包括:处理器901,存储器902和通信接口903;Referring to FIG. 9, another DCU 900 provided by the embodiment of the present application is used to implement the function of the DCU in the method for controlling the smart meter accessing as shown in FIG. 3. The DCU 900 includes: a processor 901, a memory 902, and a communication. Interface 903;
所述处理器901,所述存储器902和所述通信接口903之间可以通过总线904相互连接;总线904可以是PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The processor 901, the memory 902 and the communication interface 903 may be connected to each other through a bus 904; the bus 904 may be a PCI bus or an EISA bus or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 9, but it does not mean that there is only one bus or one type of bus.
所述存储器902,用于存储所述处理器901为所述DCU 900维护的接入记录,所述接入记录用于记录接入所述DCU 900的智能仪表。所述接入记录可以设置为白名单的形式,用于控制智能仪表入网。所述接入记录中可以包括智能仪表的地址;当然还可以包括智能仪表的表号。The memory 902 is configured to store an access record maintained by the processor 901 for the DCU 900, where the access record is used to record a smart meter that accesses the DCU 900. The access record may be set in the form of a white list for controlling the smart meter to access the network. The address of the smart meter may be included in the access record; of course, the table number of the smart meter may also be included.
所述存储器902可以包括易失性存储器,例如RAM;存储器902也可以包括非易失性存储器,例如快闪存储器,HDD或SSD;存储器902还可以包括上述种类的存储器的组合。The memory 902 can include volatile memory, such as RAM; the memory 902 can also include non-volatile memory, such as flash memory, HDD or SSD; the memory 902 can also include a combination of the types of memory described above.
所述处理器,用于发送广播消息,所述广播消息中包括DCU 900的标识;接收第一智能仪表发送的入网请求消息,所述入网请求消息中包括所述第一智能仪表的表号和所述第一智能仪表的地址;根据所述第一智能仪表的地址查询所述接入记录;当所述接入记录中存在所述第一智能仪表的地址时,允许所述第一智能仪表入网;当所述接入记录中不存在所述第一智能仪表的地址时,在 所述接入记录中添加所述第一智能仪表的地址,允许所述第一智能仪表入网,并向主站发送建档请求消息,所述建档请求消息中包括所述第一智能仪表的表号和所述DCU 900的标识。The processor is configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 900, and receive a network access request message sent by the first smart meter, where the network access request message includes a table number of the first smart meter and An address of the first smart meter; querying the access record according to an address of the first smart meter; and allowing the first smart meter when an address of the first smart meter exists in the access record Entering the network; when the address of the first smart meter does not exist in the access record, Adding an address of the first smart meter to the access record, allowing the first smart meter to enter the network, and sending a file request message to the primary station, where the file request message includes the first smart meter The table number and the identification of the DCU 900.
所述处理器901具体通过所述通信接口903发送所述广播消息,并通过所述通信接口903接收所述入网请求消息。The processor 901 specifically sends the broadcast message through the communication interface 903, and receives the network access request message through the communication interface 903.
本申请实施例中,所述通信接口903代表所述DCU与网络中其他设备,例如,主站,智能仪表等,通信的接口,可以是一个或多个,为便于表述,本申请中用通信接口903表示,并不作为对本申请技术方案的限定。In the embodiment of the present application, the communication interface 903 represents one or more interfaces of the DCU and other devices in the network, for example, a primary station, a smart meter, etc., and is used for communication in the present application. The interface 903 is not limited to the technical solution of the present application.
通信接口903包括与智能仪表通信的电力线接口;还包括与主站通信的有线通信接入口、无线通信接口或其组合;其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为WLAN接口,蜂窝网络通信接口或其组合等。The communication interface 903 includes a power line interface in communication with the smart meter; a wired communication access port in communication with the primary station, a wireless communication interface, or a combination thereof; wherein the wired communication interface can be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof.
可选地,所述入网请求消息中还包括所述第一智能仪表的附加信息,例如,型号、认证信息等。当所述接入记录中存在所述智能仪表的地址时,所述处理器901,还用于判断所述第一智能仪表的附加信息是否有更新;在确定所述第一智能仪表的附加信息有更新,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU 900的标识,所述第一智能仪表的表号,以及所述第一智能仪表的附加信息,以使所述主站更新所述第一智能仪表的档案(即,所述第一对应关系)中的附加信息。这样可以保证所述DCU和所述主站之间所述第一智能仪表的档案一致性。Optionally, the network access request message further includes additional information of the first smart meter, for example, a model number, authentication information, and the like. When the address of the smart meter exists in the access record, the processor 901 is further configured to determine whether the additional information of the first smart meter is updated; determining additional information of the first smart meter And updating, sending an archive update message to the primary station, where the file update message includes an identifier of the DCU 900, a table number of the first smart meter, and additional information of the first smart meter, so that The primary station updates additional information in an archive of the first smart meter (ie, the first correspondence). In this way, the file consistency of the first smart meter between the DCU and the primary station can be guaranteed.
可选地,所述处理器501,还用于判断接入所述DCU的智能仪表数量是否小于预设可接入阈值;若确定接入所述DCU的智能仪表数量小于预设可接入阈值,则继续上述根据所述第一智能仪表的地址查询接入记录的操作;若确定接入所述DCU的智能仪表数量不小于预设可接入阈值,则拒绝所述第一智能仪表接入,并结束整个操作。Optionally, the processor 501 is further configured to determine whether the number of smart meters that access the DCU is less than a preset access threshold; if the number of smart meters that access the DCU is determined to be less than a preset access threshold And continuing the operation of querying the access record according to the address of the first smart meter; and if the number of smart meters accessing the DCU is not less than a preset access threshold, rejecting the first smart meter access And end the whole operation.
通过预设可接入阈值来判断所述DCU是否已经饱和,可以避免所述DCU 接入过多智能仪表,过载。这样,在部署了多个DCU的情况下,可以实现DCU之间负载均衡。The DCU can be avoided by determining whether the DCU is saturated by a preset access threshold. Access too many smart meters, overload. In this way, load balancing between DCUs can be achieved when multiple DCUs are deployed.
可选地,所述处理器901,还用于判断响应阈值时间内是否收到所述主站返回的建档响应消息;并在所述响应阈值时间内没有收到所述主站返回的建档响应消息时,再次向所述主站发送所述建档请求消息,直至收到所述主站返回的建档响应消息。这样可以保证所述主站收到上述建档请求消息,并根据请求建立或更新所述第一智能仪表的档案,从而保证所述主站和所述DCU上档案的一致性,以确保后续主站、DCU和智能仪表三者之间通信顺利。Optionally, the processor 901 is further configured to: determine whether the filing response message returned by the primary station is received in response to the threshold time; and not receiving the return of the primary station within the response threshold time When the file responds to the message, the filing request message is sent again to the primary station until the filing response message returned by the primary station is received. In this way, the primary station can ensure that the above-mentioned filing request message is received, and the file of the first smart meter is created or updated according to the request, so as to ensure the consistency of the files on the primary station and the DCU, so as to ensure the subsequent main The communication between the station, the DCU and the smart meter is smooth.
所述处理器901可以启动一个定时器,来判断是否达到响应阈值的时间。The processor 901 can initiate a timer to determine whether the response threshold is reached.
所述处理器901可以是CPU,NP,或者CPU和NP的组合。处理器901还可以进一步包括硬件芯片。上述硬件芯片可以是ASIC,PLD,或其组合。上述PLD可以是CPLD,FPGA,GAL或其任意组合。The processor 901 can be a CPU, an NP, or a combination of a CPU and an NP. The processor 901 may further include a hardware chip. The above hardware chip may be an ASIC, a PLD, or a combination thereof. The above PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
可选地,所述存储器902还用于存储程序指令;所述处理器901可以调用存储器902中存放的程序指令,执行图3所示实施例中DCU的一个或多个步骤,或其中可选的实施方式,实现上述图3所示的控制智能仪表入网的方法。Optionally, the memory 902 is further configured to store program instructions; the processor 901 may invoke program instructions stored in the memory 902 to perform one or more steps of the DCU in the embodiment shown in FIG. 3, or In the implementation manner, the method for controlling the smart meter to enter the network shown in FIG. 3 is implemented.
参见图10,本申请实施例提供的另一种主站1000,用于实现如图3所示的控制智能仪表入网的方法中主站的功能,所述主站1000包括:接收模块1001和处理模块1002;Referring to FIG. 10, another primary station 1000 provided by the embodiment of the present application is configured to implement the function of a primary station in a method for controlling a smart meter to enter the network as shown in FIG. 3. The primary station 1000 includes: a receiving module 1001 and processing. Module 1002;
所述接收模块1001,用于接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号;The receiving module 1001 is configured to receive a filing request message sent by the DCU, where the filing request message includes an identifier of the DCU and a table number of the first smart meter;
所述处理模块1002,用于根据所述第一智能仪表的表号查询档案库中是否存在所述第一智能仪表的表号;当所述档案库中不存在所述第一智能仪表的表号时,根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系;当所述档案库中存在所述第一智能仪表的表号时,根据所述建档请 求消息更新所述第一智能仪表的档案。The processing module 1002 is configured to query, according to the table number of the first smart meter, whether the table number of the first smart meter exists in the archive; when the table of the first smart meter does not exist in the archive And establishing, according to the filing request message, an archive of the first smart meter in the archive, the file of the first smart meter including a table number of the first smart meter and the DCU Corresponding relationship of the identifier; when the table number of the first smart meter exists in the archive, according to the file The message is updated to update the file of the first smart meter.
可选地,所述主站1000还包括存储模块1003,用于存储所述档案库;所述档案库用于保存各个智能仪表的档案,智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。Optionally, the primary station 1000 further includes a storage module 1003, configured to store the archive; the archive is used to store files of each smart meter, and the file of the smart meter includes the table number and the location of the smart meter. The ID of the access to the DCU; of course, it may also include the address of the smart meter, additional information of the smart meter, and the like.
所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系,还可以包括所述第一智能仪表的地址、附加信息等。The file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
可选地,所述主站1000还包括发送模块1004,用于向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号。Optionally, the primary station 1000 further includes a sending module 1004, configured to send a filing response message to the DCU, where the filing response message includes a table number of the first smart meter.
可选地,所述接收模块1001,还用于接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;Optionally, the receiving module 1001 is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and the second smart Additional information of the meter;
所述处理模块1002,还用于当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。具体地,当所述档案库中存在一条档案,该档案中包含所述第二智能仪表的表号和所述DCU的标识的第二对应关系,即认为所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案,则用所述第二智能仪表的附加信息更新该档案中的附加信息。The processing module 1002 is further configured to: when the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, use the second The additional information of the smart meter updates the file of the second smart meter. Specifically, when there is a file in the archive, the file includes a second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the file library is considered to exist and The file of the second smart meter whose table number of the second smart meter matches the identifier of the DCU updates the additional information in the file with the additional information of the second smart meter.
参见图11,本申请实施例提供的另一种主站1100,用于实现如图3所示的控制智能仪表入网的方法中主站的功能,所述主站1100包括:Referring to FIG. 11, another primary station 1100 is provided to implement the function of a primary station in a method for controlling a smart meter to enter the network as shown in FIG. 3. The primary station 1100 includes:
处理器1101,存储器1102和通信接口1103;a processor 1101, a memory 1102 and a communication interface 1103;
所述处理器1101,所述存储器1102和所述通信接口1103之间可以通过总线1104相互连接;总线1104可以是PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。 The processor 1101, the memory 1102 and the communication interface 1103 may be connected to each other through a bus 1104; the bus 1104 may be a PCI bus or an EISA bus or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 11, but it does not mean that there is only one bus or one type of bus.
所述存储器1102,用于存储所述处理器为所述主站维护的档案库;所述档案库用于保存各个智能仪表的档案,智能仪表的档案中包括该智能仪表的表号和所接入DCU的标识;当然,还可以包括智能仪表的地址,智能仪表的附加信息等。The memory 1102 is configured to store an archive maintained by the processor for the primary station; the archive is used to store files of each smart meter, and the file of the smart meter includes a table number and a connection of the smart meter The ID of the DCU; of course, it can also include the address of the smart meter, additional information of the smart meter, and so on.
所述存储器1102可以包括易失性存储器,例如RAM;存储器1102也可以包括非易失性存储器,例如快闪存储器,HDD或SSD;存储器1102还可以包括上述种类的存储器的组合。The memory 1102 can include volatile memory, such as RAM; the memory 1102 can also include non-volatile memory, such as flash memory, HDD or SSD; the memory 1102 can also include a combination of the types of memory described above.
所述处理器1101,用于接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号,根据所述第一智能仪表的表号查询档案库中是否存在所述第一智能仪表的表号;当所述档案库中不存在所述第一智能仪表的表号时,根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系;当所述档案库中存在所述第一智能仪表的表号时,根据所述建档请求消息更新所述第一智能仪表的档案。The processor 1101 is configured to receive a file request message sent by the DCU, where the file request message includes an identifier of the DCU and a table number of the first smart meter, and is queried according to the table number of the first smart meter. Whether the table number of the first smart meter exists in the archive; when the table number of the first smart meter does not exist in the archive, establishing the location in the archive according to the filing request message Archives of the first smart meter, the file of the first smart meter includes a correspondence between a table number of the first smart meter and an identifier of the DCU; when the first smart meter exists in the archive At the time of the table number, the file of the first smart meter is updated according to the filing request message.
所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的第一对应关系,还可以包括所述第一智能仪表的地址、附加信息等。The file of the first smart meter includes a first correspondence between the table number of the first smart meter and the identifier of the DCU, and may further include an address, additional information, and the like of the first smart meter.
可选地,所述处理器1101,还用于向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号。Optionally, the processor 1101 is further configured to send a filing response message to the DCU, where the filing response message includes a table number of the first smart meter.
可选地,所述处理器1101,还用于接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。Optionally, the processor 1101 is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and the second smart Additional information of the meter; when there is an archive of the second smart meter matching the table number of the second smart meter and the identifier of the DCU in the archive, the additional use of the second smart meter The information updates the file of the second smart meter.
具体地,当所述档案库中存在一条档案,该档案中包含所述第二智能仪表的表号和所述DCU的标识的第二对应关系,即认为所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案, 则用所述第二智能仪表的附加信息更新该档案中的附加信息。Specifically, when there is a file in the archive, the file includes a second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the file library is considered to exist and The file of the second smart meter whose table number of the smart meter matches the identifier of the DCU, Then, the additional information in the file is updated with the additional information of the second smart meter.
所述处理器1101具体通过所述通信接口1103接收所述建档请求消息和档案更新消息,并通过所述通信接口1103发送所述建档响应消息。The processor 1101 receives the filing request message and the file update message through the communication interface 1103, and sends the filing response message through the communication interface 1103.
本申请实施例中,所述通信接口1103代表所述主站与网络中其他设备,例如,DCU(s),通信的接口,可以是一个或多个,为便于表述,本申请中用通信接口1103表示,并不作为对本申请技术方案的限定。In the embodiment of the present application, the communication interface 1103 represents an interface between the primary station and other devices in the network, for example, DCU(s), and may be one or more. For convenience of description, the communication interface is used in the present application. 1103 indicates that it is not intended to limit the technical solution of the present application.
通信接口1103可以是有线通信接入口、无线通信接口或其组合;其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为WLAN接口,蜂窝网络通信接口或其组合等。The communication interface 1103 can be a wired communication access port, a wireless communication interface, or a combination thereof; wherein the wired communication interface can be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof.
所述处理器1101可以是CPU,NP,或者CPU和NP的组合。处理器1101还可以进一步包括硬件芯片。上述硬件芯片可以是ASIC,PLD,或其组合。上述PLD可以是CPLD,FPGA,GAL或其任意组合。The processor 1101 may be a CPU, an NP, or a combination of a CPU and an NP. The processor 1101 may further include a hardware chip. The above hardware chip may be an ASIC, a PLD, or a combination thereof. The above PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
可选地,所述存储器1102还用于存储程序指令;所述处理器1101可以调用存储器1102中存放的程序指令,执行图3所示实施例中主站的一个或多个步骤,或其中可选的实施方式,实现上述图3所示的控制智能仪表入网的方法。Optionally, the memory 1102 is further configured to store program instructions; the processor 1101 may invoke program instructions stored in the memory 1102 to perform one or more steps of the primary station in the embodiment shown in FIG. 3, or In the selected implementation manner, the method for controlling the smart meter to enter the network shown in FIG. 3 is implemented.
本申请实施例提供的主站,根据DCU发送的建档请求消息为各个智能仪表建立档案。实现了自下而上自动建立档案,提高了智能仪表入网的灵活性和入网效率。此外,由于无需人工在主站录入档案,可以减少人力成本,且可以避免人工录入易出错的问题。The primary station provided by the embodiment of the present application establishes a file for each smart meter according to the filing request message sent by the DCU. It realizes the automatic creation of files from the bottom up, which improves the flexibility and network access efficiency of smart meters. In addition, since there is no need to manually enter files in the main station, labor costs can be reduced, and manual error-prone problems can be avoided.
本申请实施例还提供一种控制智能仪表接入的系统1200,包括主站1201,DCU 1202和智能仪表1203;其中,所述智能仪表1203与所述DCU 1202之间通过电力线连接,采用PLC技术通信。The embodiment of the present application further provides a system 1200 for controlling smart meter access, including a primary station 1201, a DCU 1202, and a smart meter 1203. The smart meter 1203 and the DCU 1202 are connected by a power line, and adopt PLC technology. Communication.
所述主站1201,用于实现图2所示控制智能仪表入网的方法中主站的功能,其结构和功能可参见如图6或7所示实施例,在此不再赘述。The main station 1201 is used to implement the function of the main station in the method for controlling the smart meter to enter the network shown in FIG. 2 . For the structure and function, refer to the embodiment shown in FIG. 6 or FIG. 7 , and details are not described herein again.
所述DCU 1202,用于实现图2所示控制智能仪表入网的方法中DCU的功 能,其结构和功能参见如图4或5所示实施例,在此不再赘述。The DCU 1202 is configured to implement the function of the DCU in the method for controlling the smart meter to enter the network shown in FIG. For the structure and function, refer to the embodiment shown in FIG. 4 or 5, and details are not described herein again.
所述系统1200中可以包括多个DCUs,多个智能仪表。当系统中存在大量的智能仪表和DCUs时,本申请提供的技术方案可以更显著的节约人力成本,提高智能仪表入网效率。The system 1200 can include a plurality of DCUs and a plurality of smart meters. When there are a large number of smart meters and DCUs in the system, the technical solution provided by the present application can significantly save labor costs and improve the efficiency of smart meter access.
本申请实施例还提供另一种控制智能仪表接入的系统1300,包括主站1301,DCU 1302和智能仪表1303;其中,所述智能仪表1303与所述DCU 1302之间通过电力线连接,采用PLC技术通信。The embodiment of the present application further provides another system 1300 for controlling smart meter access, including a primary station 1301, a DCU 1302, and a smart meter 1303. The smart meter 1303 and the DCU 1302 are connected by a power line, and the PLC is used. Technical communication.
所述主站1301,用于实现图3所示控制智能仪表入网的方法中主站的功能,其结构和功能可参见如图10或11所示实施例,在此不再赘述。The main station 1301 is configured to implement the function of the primary station in the method for controlling the smart meter to enter the network shown in FIG. 3. For the structure and function, refer to the embodiment shown in FIG. 10 or 11, and details are not described herein again.
所述DCU 1302,用于实现图3所示控制智能仪表入网的方法中DCU的功能,其结构和功能参见如图8或9所示实施例,在此不再赘述。The DCU 1302 is used to implement the function of the DCU in the method for controlling the smart meter to enter the network shown in FIG. 3. For the structure and function, refer to the embodiment shown in FIG. 8 or 9, and details are not described herein again.
所述系统1300中可以包括多个DCUs,多个智能仪表。当系统中存在大量的智能仪表和DCUs时,本申请提供的技术方案可以更显著的节约人力成本,提高智能仪表入网效率。The system 1300 can include a plurality of DCUs and a plurality of smart meters. When there are a large number of smart meters and DCUs in the system, the technical solution provided by the present application can significantly save labor costs and improve the efficiency of smart meter access.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit. It is also possible that each unit physically exists alone, or two or more units may be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (41)

  1. 一种控制智能仪表入网的方法,其特征在于,包括:A method for controlling a smart meter to access a network, comprising:
    数据集中单元DCU接收智能仪表发送的入网请求消息,所述入网请求消息中包括所述智能仪表的表号和所述智能仪表的地址;The data center unit DCU receives the network access request message sent by the smart meter, where the network access request message includes the table number of the smart meter and the address of the smart meter;
    所述DCU根据所述智能仪表的地址查询接入记录;The DCU queries an access record according to an address of the smart meter;
    当所述接入记录中不存在所述智能仪表的地址时,所述DCU向主站发送建档请求消息,所述建档请求消息中包括所述智能仪表的表号和所述DCU的标识;所述DCU接收所述主站返回的建档响应消息,所述建档响应消息中包括所述智能仪表的表号和建档结果,当确定所述建档结果为成功时,所述DCU在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网。When the address of the smart meter does not exist in the access record, the DCU sends a file request message to the primary station, where the file request message includes the table number of the smart meter and the identifier of the DCU. Receiving, by the DCU, a filing response message returned by the primary station, where the filing response message includes a table number and a filing result of the smart meter, and when determining that the filing result is successful, the DCU Adding an address of the smart meter to the access record, allowing the smart meter to access the network.
  2. 如权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    当所述建档结果为失败时,所述DCU拒绝所述智能仪表入网。When the result of the filing is a failure, the DCU rejects the smart meter to access the network.
  3. 如权利要求1或2所述的方法,其特征在于,所述入网请求消息中还包括所述智能仪表的附加信息;The method according to claim 1 or 2, wherein the network access request message further includes additional information of the smart meter;
    当所述接入记录中存在所述智能仪表的地址,所述方法还包括:When the address of the smart meter exists in the access record, the method further includes:
    所述DCU在确定所述智能仪表的附加信息有更新时,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU的标识,所述智能仪表的表号,以及所述智能仪表的附加信息。And when the DCU determines that the additional information of the smart meter is updated, sending an archive update message to the primary station, where the file update message includes an identifier of the DCU, a table number of the smart meter, and the Additional information for smart meters.
  4. 如权利要求1至3任一项所述的方法,其特征在于,在所述DCU根据所述智能仪表的地址查询接入记录之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein before the DCU queries the access record according to the address of the smart meter, the method further includes:
    所述DCU确定接入所述DCU的智能仪表数量小于预设可接入阈值。The DCU determines that the number of smart meters accessing the DCU is less than a preset access threshold.
  5. 如权利要求1至4任一项所述的方法,其特征在于,在所述DCU接收智能仪表发送的接入请求消息之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein before the DCU receives the access request message sent by the smart meter, the method further includes:
    所述DCU发送广播消息,所述广播消息中包括所述DCU的标识;Sending, by the DCU, a broadcast message, where the broadcast message includes an identifier of the DCU;
    相应地,所述入网请求消息中还包括所述DCU的标识。Correspondingly, the network request message further includes an identifier of the DCU.
  6. 一种控制智能仪表入网的方法,其特征在于,包括: A method for controlling a smart meter to access a network, comprising:
    主站接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号;The master station receives the filing request message sent by the DCU, where the filing request message includes the identifier of the DCU and the table number of the first smart meter;
    所述主站根据所述第一智能仪表的表号查询档案库;The primary station queries the archive according to the table number of the first smart meter;
    当所述档案库中不存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系,并向所述DCU发送第一建档响应消息,所述第一建档响应消息中包括所述第一智能仪表的表号和第一建档结果。When the table number of the first smart meter does not exist in the archive, the primary station establishes an archive of the first smart meter in the archive according to the filing request message, where the The file of the smart meter includes a correspondence between the table number of the first smart meter and the identifier of the DCU, and sends a first file response message to the DCU, where the first file response message includes the The table number of the first smart meter and the first file result.
  7. 如权利要求6所述的方法,其特征在于,还包括:The method of claim 6 further comprising:
    当所述档案库中存在所述第一智能仪表的表号时,所述主站拒绝所述DCU的建档请求,并向所述DCU发送第二建档响应消息,所述第二建档响应消息中包括所述第一智能仪表的表号和第二建档结果。When the table number of the first smart meter exists in the archive, the primary station rejects the filing request of the DCU, and sends a second filing response message to the DCU, the second filing The response message includes a table number of the first smart meter and a second filing result.
  8. 如权利要求6所述的方法,其特征在于,还包括:The method of claim 6 further comprising:
    当所述档案库中存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息更新所述第一智能仪表的档案,并向所述DCU发送所述第一建档响应消息。When the table number of the first smart meter exists in the archive, the primary station updates the file of the first smart meter according to the filing request message, and sends the first built to the DCU File response message.
  9. 如权利要求6至8任一项所述的方法,其特征在于,还包括:The method of any of claims 6 to 8, further comprising:
    所述主站接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;Receiving, by the primary station, an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter;
    当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,所述主站用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。When the archive of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, the primary station uses additional information of the second smart meter Updating the file of the second smart meter.
  10. 一种控制智能仪表入网的方法,其特征在于,包括:A method for controlling a smart meter to access a network, comprising:
    数据集中单元DCU接收智能仪表发送的入网请求消息,所述入网请求消息中包括所述智能仪表的表号和所述智能仪表的地址;The data center unit DCU receives the network access request message sent by the smart meter, where the network access request message includes the table number of the smart meter and the address of the smart meter;
    所述DCU根据所述智能仪表的地址查询接入记录; The DCU queries an access record according to an address of the smart meter;
    当所述接入记录中不存在所述智能仪表的地址时,所述DCU在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网,并向主站发送建档请求消息,所述建档请求消息中包括所述智能仪表的表号和所述DCU的标识,以使所述主站根据所述建档请求消息建立所述智能仪表的档案。When the address of the smart meter does not exist in the access record, the DCU adds an address of the smart meter to the access record, allows the smart meter to enter the network, and sends a file request to the primary station. The message requesting message includes the table number of the smart meter and the identifier of the DCU, so that the primary station establishes an archive of the smart meter according to the filing request message.
  11. 如权利要求10所述的方法,其特征在于,所述入网请求消息中还包括所述智能仪表的附加信息;The method according to claim 10, wherein the network access request message further includes additional information of the smart meter;
    当所述接入记录中存在所述智能仪表的地址,所述方法还包括:When the address of the smart meter exists in the access record, the method further includes:
    所述DCU在确定所述智能仪表的附加信息有更新时,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU的标识,所述智能仪表的表号,以及所述智能仪表的附加信息。And when the DCU determines that the additional information of the smart meter is updated, sending an archive update message to the primary station, where the file update message includes an identifier of the DCU, a table number of the smart meter, and the Additional information for smart meters.
  12. 如权利要求10或11所述的方法,其特征在于,在所述DCU根据所述智能仪表的地址查询接入记录之前,所述方法还包括:The method according to claim 10 or 11, wherein before the DCU queries the access record according to the address of the smart meter, the method further includes:
    所述DCU确定接入所述DCU的智能仪表数量小于预设可接入阈值。The DCU determines that the number of smart meters accessing the DCU is less than a preset access threshold.
  13. 一种控制智能仪表入网的方法,其特征在于,包括:A method for controlling a smart meter to access a network, comprising:
    主站接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号;The master station receives the filing request message sent by the DCU, where the filing request message includes the identifier of the DCU and the table number of the first smart meter;
    所述主站根据所述第一智能仪表的表号查询档案库;The primary station queries the archive according to the table number of the first smart meter;
    当所述档案库中不存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系;When the table number of the first smart meter does not exist in the archive, the primary station establishes an archive of the first smart meter in the archive according to the filing request message, where the The file of a smart meter includes a correspondence between a table number of the first smart meter and an identifier of the DCU;
    当所述档案库中存在所述第一智能仪表的表号时,所述主站根据所述建档请求消息更新所述第一智能仪表的档案。When the table number of the first smart meter exists in the archive, the primary station updates the file of the first smart meter according to the filing request message.
  14. 如权利要求13所述的方法,其特征在于,还包括:The method of claim 13 further comprising:
    所述主站向所述DCU发送建档响应消息,所述建档响应消息中包括所述第一智能仪表的表号。The primary station sends a filing response message to the DCU, where the filing response message includes a table number of the first smart meter.
  15. 如权利要求13或14所述的方法,其特征在于,还包括: The method of claim 13 or 14, further comprising:
    所述主站接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;Receiving, by the primary station, an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter;
    当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,所述主站用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。When the archive of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, the primary station uses additional information of the second smart meter Updating the file of the second smart meter.
  16. 一种数据集中单元DCU,其特征在于,包括:A data concentration unit DCU, comprising:
    接收模块,用于接收智能仪表发送的入网请求消息,所述入网请求消息中包括所述智能仪表的表号和所述智能仪表的地址;a receiving module, configured to receive a network access request message sent by the smart meter, where the network access request message includes a table number of the smart meter and an address of the smart meter;
    处理模块,用于根据所述智能仪表的地址查询接入记录;当所述接入记录中不存在所述智能仪表的地址时,向主站发送建档请求消息,所述建档请求消息中包括所述智能仪表的表号和所述DCU的标识;a processing module, configured to query an access record according to an address of the smart meter; when an address of the smart meter does not exist in the access record, send a filing request message to the primary station, where the filing request message is Including the table number of the smart meter and the identifier of the DCU;
    发送模块,用于发送所述建档请求消息;a sending module, configured to send the filing request message;
    所述接收模块,还用于接收所述主站返回的建档响应消息,所述建档响应消息中包括所述智能仪表的表号和建档结果;The receiving module is further configured to receive a filing response message returned by the primary station, where the filing response message includes a table number and a filing result of the smart meter;
    所述处理模块,还用于当确定所述建档结果为成功时,在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网。The processing module is further configured to add an address of the smart meter to the access record when the result of determining the file creation is successful, and allow the smart meter to access the network.
  17. 如权利要求16所述的DCU,其特征在于,所述处理模块,还用于当所述建档结果为失败时,拒绝所述智能仪表入网。The DCU of claim 16, wherein the processing module is further configured to reject the smart meter from entering the network when the filing result is a failure.
  18. 如权利要求16或17所述的DCU,其特征在于,所述入网请求消息中还包括所述智能仪表的附加信息;The DCU according to claim 16 or 17, wherein the network access request message further includes additional information of the smart meter;
    所述处理模块还用于,当所述接入记录中存在所述智能仪表的地址,判断所述智能仪表的附加信息是否有更新;The processing module is further configured to: when an address of the smart meter exists in the access record, determine whether the additional information of the smart meter is updated;
    所述发送模块,还用于在所述处理模块确定所述智能仪表的附加信息有更新时,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU的标识,所述智能仪表的表号,以及所述智能仪表的附加信息。The sending module is further configured to: when the processing module determines that the additional information of the smart meter is updated, send an file update message to the primary station, where the file update message includes an identifier of the DCU, The meter number of the smart meter and the additional information of the smart meter.
  19. 如权利要求16至18任一项所述的DCU,其特征在于,还包括门限 判断模块,用于判断接入所述DCU的智能仪表数量是否小于预设可接入阈值。The DCU according to any one of claims 16 to 18, further comprising a threshold The determining module is configured to determine whether the number of smart meters accessing the DCU is less than a preset access threshold.
  20. 一种数据集中单元DCU,其特征在于,包括:处理器和存储器;A data centralized unit DCU, comprising: a processor and a memory;
    所述存储器,用于存储所述处理器为所述DCU维护的接入记录;The memory is configured to store an access record maintained by the processor for the DCU;
    所述处理器,用于接收智能仪表发送的入网请求消息,所述入网请求消息中包括所述智能仪表的表号和所述智能仪表的地址;根据所述智能仪表的地址查询所述接入记录;当所述接入记录中不存在所述智能仪表的地址时,向主站发送建档请求消息,所述建档请求消息中包括所述智能仪表的表号和所述DCU的标识;接收所述主站返回的建档响应消息,所述建档响应消息中包括所述智能仪表的表号和建档结果,当确定所述建档结果为成功时,在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网。The processor is configured to receive a network access request message sent by the smart meter, where the network access request message includes a table number of the smart meter and an address of the smart meter; and querying the access according to the address of the smart meter Recording; when the address of the smart meter does not exist in the access record, sending a filing request message to the primary station, where the filing request message includes a table number of the smart meter and an identifier of the DCU; Receiving a filing response message returned by the primary station, where the filing response message includes a table number and a filing result of the smart meter, and when determining that the filing result is successful, in the access record Adding the address of the smart meter allows the smart meter to enter the network.
  21. 如权利要求20所述的DCU,其特征在于,所述处理器,还用于当所述建档结果为失败时,拒绝所述智能仪表入网。The DCU of claim 20, wherein the processor is further configured to reject the smart meter from entering the network when the filing result is a failure.
  22. 如权利要求20或21所述的DCU,其特征在于,所述入网请求消息中还包括所述智能仪表的附加信息;The DCU according to claim 20 or 21, wherein the network access request message further includes additional information of the smart meter;
    当所述接入记录中存在所述智能仪表的地址时,所述处理器,还用于在确定所述智能仪表的附加信息有更新时,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU的标识,所述智能仪表的表号,以及所述智能仪表的附加信息。When the address of the smart meter exists in the access record, the processor is further configured to send an file update message to the primary station when determining that the additional information of the smart meter is updated, the file The update message includes an identifier of the DCU, a table number of the smart meter, and additional information of the smart meter.
  23. 如权利要求20至22任一项所述的DCU,其特征在于,在根据所述智能仪表的地址查询接入记录之前,所述处理器,还用于确定接入所述DCU的智能仪表数量小于预设可接入阈值。The DCU according to any one of claims 20 to 22, wherein the processor is further configured to determine the number of smart meters accessing the DCU before inquiring the access record according to the address of the smart meter. Less than the preset access threshold.
  24. 一种主站,其特征在于,包括:A primary station, comprising:
    接收模块,用于接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号;a receiving module, configured to receive a filing request message sent by the DCU, where the filing request message includes an identifier of the DCU and a table number of the first smart meter;
    处理模块,用于根据所述第一智能仪表的表号查询档案库;当所述档案库中不存在所述第一智能仪表的表号时,根据所述建档请求消息,在所述档案库 中建立所述第一智能仪表的档案,所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系,并向所述DCU发送第一建档响应消息,所述第一建档响应消息中包括所述第一智能仪表的表号和第一建档结果;a processing module, configured to query an archive according to a table number of the first smart meter; when the table number of the first smart meter does not exist in the archive, according to the filing request message, in the file Library Establishing an archive of the first smart meter, the file of the first smart meter includes a correspondence between a table number of the first smart meter and an identifier of the DCU, and sending a first file response to the DCU a message, the first document response message includes a table number of the first smart meter and a first file creation result;
    发送模块,用于发送所述第一建档响应消息。And a sending module, configured to send the first filing response message.
  25. 如权利要求24所述的主站,其特征在于,所述处理模块,还用于当所述档案库中存在所述第一智能仪表的表号时,拒绝所述DCU的建档请求;并向所述DCU发送第二建档响应消息,所述第二建档响应消息中包括所述第一智能仪表的表号和第二建档结果;The primary station according to claim 24, wherein the processing module is further configured to reject the file request of the DCU when the table number of the first smart meter exists in the archive; Sending a second filing response message to the DCU, where the second filing response message includes a table number of the first smart meter and a second filing result;
    所述发送模块,还用于发送所述第二建档响应消息。The sending module is further configured to send the second filing response message.
  26. 如权利要求24所述的主站,其特征在于,所述处理模块,还用于当所述档案库中存在所述第一智能仪表的表号时,根据所述建档请求消息更新所述第一智能仪表的档案,并向所述DCU发送所述第一建档响应消息。The primary station according to claim 24, wherein said processing module is further configured to: when said table number of said first smart meter exists in said archive, said updating said said message according to said filing request message An archive of the first smart meter and transmitting the first filing response message to the DCU.
  27. 如权利要求24至26任一项所述的主站,其特征在于,A primary station according to any one of claims 24 to 26, characterized in that
    所述接收模块,还用于接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;The receiving module is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter;
    所述处理模块,还用于当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。The processing module is further configured to: when the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, use the second smart The additional information of the meter updates the file of the second smart meter.
  28. 一种主站,其特征在于,包括:处理器和存储器;A primary station, comprising: a processor and a memory;
    所述存储器用于存储所述处理器为所述主站维护的档案库;The memory is configured to store an archive maintained by the processor for the primary station;
    所述处理器,用于接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号,根据所述第一智能仪表的表号查询档案库,当所述档案库中不存在所述第一智能仪表的表号时,根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,所述第一智能仪 表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系,并向所述DCU发送第一建档响应消息,所述第一建档响应消息中包括所述第一智能仪表的表号和第一建档结果。The processor is configured to receive a file request message sent by the DCU, where the file request message includes an identifier of the DCU and a table number of the first smart meter, and the file is queried according to the table number of the first smart meter. a library, when the file number of the first smart meter does not exist in the archive, the file of the first smart meter is established in the archive according to the filing request message, the first smart Instrument The file of the table includes a correspondence between the table number of the first smart meter and the identifier of the DCU, and sends a first file response message to the DCU, where the first file response message includes the first The meter number of the smart meter and the first file result.
  29. 如权利要求28所述的主站,其特征在于,所述处理器,还用于当所述档案库中存在所述第一智能仪表的表号时,拒绝所述DCU的建档请求,并向所述DCU发送第二建档响应消息,所述第二建档响应消息中包括所述第一智能仪表的表号和第二建档结果。The primary station according to claim 28, wherein the processor is further configured to reject the file request of the DCU when the table number of the first smart meter exists in the archive, and Sending a second filing response message to the DCU, where the second filing response message includes a table number of the first smart meter and a second filing result.
  30. 如权利要求28所述的主站,其特征在于,所述处理器,还用于当所述档案库中存在所述第一智能仪表的表号时,根据所述建档请求消息更新所述第一智能仪表的档案,并向所述DCU发送所述第一建档响应消息。The primary station according to claim 28, wherein said processor is further configured to: when said table number of said first smart meter exists in said archive, said updating said said message according to said filing request message An archive of the first smart meter and transmitting the first filing response message to the DCU.
  31. 如权利要求27至29中任一项所述的主站,其特征在于,所述处理器,还用于接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。The primary station according to any one of claims 27 to 29, wherein the processor is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU a table number of the second smart meter, and additional information of the second smart meter; when there is a second in the archive that matches a table number of the second smart meter and an identifier of the DCU When the file of the smart meter is used, the file of the second smart meter is updated with the additional information of the second smart meter.
  32. 一种数据集中单元DCU,其特征在于,包括:A data concentration unit DCU, comprising:
    接收模块,用于接收智能仪表发送的入网请求消息,所述入网请求消息中包括所述智能仪表的表号和所述智能仪表的地址;a receiving module, configured to receive a network access request message sent by the smart meter, where the network access request message includes a table number of the smart meter and an address of the smart meter;
    处理模块,用于根据所述智能仪表的地址查询接入记录;当所述接入记录中存在所述智能仪表的地址时,允许所述智能仪表入网;当所述接入记录中不存在所述智能仪表的地址时,在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网,并向主站发送建档请求消息,所述建档请求消息中包括所述智能仪表的表号和所述DCU的标识;a processing module, configured to query an access record according to an address of the smart meter; when the address of the smart meter exists in the access record, allowing the smart meter to enter the network; when the access record does not exist When the address of the smart meter is described, the address of the smart meter is added to the access record, the smart meter is allowed to enter the network, and a filing request message is sent to the primary station, where the smart request message includes the smart The meter number of the meter and the identifier of the DCU;
    发送模块,用于发送所述建档请求消息。And a sending module, configured to send the filing request message.
  33. 如权利要求32所述的DCU,其特征在于,所述入网请求消息中还包 括所述智能仪表的附加信息;The DCU according to claim 32, wherein said network access request message is further included Include additional information of the smart meter;
    所述处理模块还用于,当所述接入记录中存在所述智能仪表的地址,判断所述智能仪表的附加信息是否有更新;在确定所述智能仪表的附加信息有更新时,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU的标识,所述智能仪表的表号,以及所述智能仪表的附加信息The processing module is further configured to: when an address of the smart meter exists in the access record, determine whether the additional information of the smart meter is updated; when determining that the additional information of the smart meter is updated, The primary station sends a file update message, where the file update message includes an identifier of the DCU, a table number of the smart meter, and additional information of the smart meter
    所述发送模块,还用于发送所述档案更新消息。The sending module is further configured to send the file update message.
  34. 如权利要求32或33所述的DCU,其特征在于,所述处理模块,还用于判断接入所述DCU的智能仪表数量是否小于预设可接入阈值。The DCU according to claim 32 or 33, wherein the processing module is further configured to determine whether the number of smart meters accessing the DCU is less than a preset access threshold.
  35. 一种数据集中单元DCU,其特征在于,包括:处理器和存储器;A data centralized unit DCU, comprising: a processor and a memory;
    所述存储器,用于存储所述处理器为所述DCU维护的接入记录;The memory is configured to store an access record maintained by the processor for the DCU;
    所述处理器,用于接收智能仪表发送的入网请求消息,所述入网请求消息中包括所述智能仪表的表号和所述智能仪表的地址;根据所述智能仪表的地址查询所述接入记录;当所述接入记录中存在所述智能仪表的地址时,允许所述智能仪表入网;当所述接入记录中不存在所述智能仪表的地址时,在所述接入记录中添加所述智能仪表的地址,允许所述智能仪表入网,并主站发送建档请求消息,所述建档请求消息中包括所述智能仪表的表号和所述DCU的标识。The processor is configured to receive a network access request message sent by the smart meter, where the network access request message includes a table number of the smart meter and an address of the smart meter; and querying the access according to the address of the smart meter Recording; when the address of the smart meter exists in the access record, allowing the smart meter to enter the network; when the address of the smart meter does not exist in the access record, adding in the access record The address of the smart meter allows the smart meter to enter the network, and the master station sends a file request message, where the file request message includes the table number of the smart meter and the identifier of the DCU.
  36. 如权利要求35所述的DCU,其特征在于,所述入网请求消息中还包括所述智能仪表的附加信息;The DCU according to claim 35, wherein the network access request message further includes additional information of the smart meter;
    当所述接入记录中存在所述智能仪表的地址时,所述处理器,还用于在确定所述智能仪表的附加信息有更新时,向所述主站发送档案更新消息,所述档案更新消息中包括所述DCU的标识,所述智能仪表的表号,以及所述智能仪表的附加信息。When the address of the smart meter exists in the access record, the processor is further configured to send an file update message to the primary station when determining that the additional information of the smart meter is updated, the file The update message includes an identifier of the DCU, a table number of the smart meter, and additional information of the smart meter.
  37. 如权利要求35或36所述的DCU,其特征在于,在根据所述智能仪表的地址查询接入记录之前,所述处理器,还用于确定接入所述DCU的智能仪表数量是否小于预设可接入阈值。The DCU according to claim 35 or claim 36, wherein the processor is further configured to determine whether the number of smart meters accessing the DCU is less than a pre-determination before the access record is queried according to the address of the smart meter. Set the access threshold.
  38. 一种主站,其特征在于,包括: A primary station, comprising:
    接收模块,用于接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号;a receiving module, configured to receive a filing request message sent by the DCU, where the filing request message includes an identifier of the DCU and a table number of the first smart meter;
    处理模块,用于根据所述第一智能仪表的表号查询档案库;当所述档案库中不存在所述第一智能仪表的表号时,根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系;当所述档案库中存在所述第一智能仪表的表号时,根据所述建档请求消息更新所述第一智能仪表的档案。a processing module, configured to query an archive according to a table number of the first smart meter; when the table number of the first smart meter does not exist in the archive, according to the filing request message, in the file Configuring an archive of the first smart meter in the library, the file of the first smart meter includes a correspondence between a table number of the first smart meter and an identifier of the DCU; When the meter number of the smart meter is updated, the file of the first smart meter is updated according to the filing request message.
  39. 如权利要求37所述的主站,其特征在于,A primary station according to claim 37, wherein:
    所述接收模块,还用于接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;The receiving module is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, a table number of the second smart meter, and additional information of the second smart meter;
    所述处理模块,还用于当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。The processing module is further configured to: when the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU exists in the archive, use the second smart The additional information of the meter updates the file of the second smart meter.
  40. 一种主站,其特征在于,包括:处理器和存储器;A primary station, comprising: a processor and a memory;
    所述存储器用于存储所述处理器为所述主站维护的档案库;The memory is configured to store an archive maintained by the processor for the primary station;
    所述处理器,用于接收DCU发送的建档请求消息,所述建档请求消息中包括所述DCU的标识和第一智能仪表的表号,根据所述第一智能仪表的表号查询档案库,当所述档案库中不存在所述第一智能仪表的表号时,根据所述建档请求消息,在所述档案库中建立所述第一智能仪表的档案,所述第一智能仪表的档案包括所述第一智能仪表的表号和所述DCU的标识的对应关系;当所述档案库中存在所述第一智能仪表的表号时,根据所述建档请求消息更新所述第一智能仪表的档案。The processor is configured to receive a file request message sent by the DCU, where the file request message includes an identifier of the DCU and a table number of the first smart meter, and the file is queried according to the table number of the first smart meter. a library, when the file number of the first smart meter does not exist in the archive, the file of the first smart meter is established in the archive according to the filing request message, the first smart The file of the meter includes a correspondence between the table number of the first smart meter and the identifier of the DCU; when the table number of the first smart meter exists in the archive, the update request is updated according to the file request message The file of the first smart meter.
  41. 如权利要求40所述的主站,其特征在于,所述处理器,还用于接收所述DCU发送的档案更新消息,所述档案更新消息中包括所述DCU的标识,第二智能仪表的表号,以及所述第二智能仪表的附加信息;当所述档案库中存在与所述第二智能仪表的表号和所述DCU的标识相匹配的所述第二智能仪表的档案时,用所述第二智能仪表的附加信息更新所述第二智能仪表的档案。 The primary station according to claim 40, wherein the processor is further configured to receive an archive update message sent by the DCU, where the file update message includes an identifier of the DCU, and the second smart meter a table number, and additional information of the second smart meter; when there is an archive of the second smart meter in the archive that matches the table number of the second smart meter and the identifier of the DCU, Updating the file of the second smart meter with the additional information of the second smart meter.
PCT/CN2016/090517 2015-12-26 2016-07-19 Method for controlling network access of intelligent instrument, master station and data concentration unit WO2017107473A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510992032.9A CN106920382B (en) 2015-12-26 2015-12-26 Method for controlling intelligent instrument to access network, master station and data centralized unit
CN201510992032.9 2015-12-26

Publications (1)

Publication Number Publication Date
WO2017107473A1 true WO2017107473A1 (en) 2017-06-29

Family

ID=59089001

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/090517 WO2017107473A1 (en) 2015-12-26 2016-07-19 Method for controlling network access of intelligent instrument, master station and data concentration unit

Country Status (2)

Country Link
CN (1) CN106920382B (en)
WO (1) WO2017107473A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767292A (en) * 2020-05-26 2020-10-13 宁波三星医疗电气股份有限公司 Ammeter communication module file fault tolerance method
CN112867102A (en) * 2021-01-14 2021-05-28 深圳海令科技有限公司 PLC-IoT equipment networking method and device
CN111767292B (en) * 2020-05-26 2024-07-02 宁波三星医疗电气股份有限公司 File fault-tolerant method for ammeter communication module

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049449A (en) * 2019-04-23 2019-07-23 宁波弘讯软件开发有限公司 A kind of location determining method, system and relevant apparatus
CN110111556B (en) * 2019-04-25 2022-01-28 国网湖南省电力有限公司 Automatic control method and device for realizing instant installation and instant collection of intelligent electric meter
CN113448741B (en) * 2020-03-26 2024-04-12 普源精电科技股份有限公司 Method, device, equipment and storage medium for managing instrument synchronization group
CN113395721B (en) * 2021-06-07 2023-10-31 阳光电源股份有限公司 Wireless networking method, node and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002325144A (en) * 2001-04-25 2002-11-08 Furukawa Electric Co Ltd:The Information collection system
CN102299977A (en) * 2011-08-08 2011-12-28 深圳市金正方科技有限公司 Method for automatic register of electric energy meter by collector and collector
CN102468986A (en) * 2010-11-04 2012-05-23 北京市电力公司 Test method and system for electricity consumption information collection system, and main station
CN102545961A (en) * 2010-12-31 2012-07-04 弥亚微电子(上海)有限公司 Active reporting and automatic networking method and system for non-networked node

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000287280A (en) * 1999-03-31 2000-10-13 Takaoka Electric Mfg Co Ltd Method and system for automatic metering
CN101909248B (en) * 2009-06-04 2014-07-30 中兴通讯股份有限公司南京分公司 User access method and system, user management method and system of closed user group
JP5701792B2 (en) * 2012-02-27 2015-04-15 株式会社東芝 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
CN102832973B (en) * 2012-09-19 2013-10-16 湖南大学 Network accessing method of automatic meter reading system
JP6168444B2 (en) * 2013-02-13 2017-07-26 パナソニックIpマネジメント株式会社 Meter reading system, communication device, smart meter
CN103312563B (en) * 2013-06-24 2017-06-30 深圳市金正方科技股份有限公司 Automatic information collection method and its system based on power line carrier communication
CN103634873B (en) * 2013-12-18 2017-05-31 北京煜邦电力技术有限公司 The wireless networking method and electricity meter-reading device systems of power meter reading system
CN103957570B (en) * 2014-05-07 2018-05-01 重庆大学 A kind of network communicating system and its method for routing for electric power load control
CN104916103B (en) * 2015-05-20 2018-04-20 成都秦川物联网科技股份有限公司 The wireless communication and control method of intelligence instrument
CN105023410B (en) * 2015-05-26 2018-08-24 江苏林洋能源股份有限公司 A kind of zero-address pattern micropower wireless meter-reading method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002325144A (en) * 2001-04-25 2002-11-08 Furukawa Electric Co Ltd:The Information collection system
CN102468986A (en) * 2010-11-04 2012-05-23 北京市电力公司 Test method and system for electricity consumption information collection system, and main station
CN102545961A (en) * 2010-12-31 2012-07-04 弥亚微电子(上海)有限公司 Active reporting and automatic networking method and system for non-networked node
CN102299977A (en) * 2011-08-08 2011-12-28 深圳市金正方科技有限公司 Method for automatic register of electric energy meter by collector and collector

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767292A (en) * 2020-05-26 2020-10-13 宁波三星医疗电气股份有限公司 Ammeter communication module file fault tolerance method
CN111767292B (en) * 2020-05-26 2024-07-02 宁波三星医疗电气股份有限公司 File fault-tolerant method for ammeter communication module
CN112867102A (en) * 2021-01-14 2021-05-28 深圳海令科技有限公司 PLC-IoT equipment networking method and device

Also Published As

Publication number Publication date
CN106920382B (en) 2020-02-21
CN106920382A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
WO2017107473A1 (en) Method for controlling network access of intelligent instrument, master station and data concentration unit
WO2019242574A1 (en) Method for routing internet of things service
WO2021012568A1 (en) Data processing method and related device
WO2021134861A1 (en) Method for managing resource state information, and resource downloading system
WO2018024121A1 (en) Network function (nf) management method and nf management device
CN111490893B (en) Method, device and system for establishing network forwarding model
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
WO2019001224A1 (en) Method and device for recommending social user
TW201735586A (en) Routing table synchronization method, device and system
WO2019075662A1 (en) Gateway multi-connection method and device
CN113746692A (en) Network flow statistical method, electronic equipment and storage medium
WO2018010595A1 (en) Network access method, apparatus and system
WO2016110078A1 (en) Data acquisition method and apparatus, and storage medium
WO2015123890A1 (en) Method and apparatus for processing information in m2m communications
US20230045914A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
WO2018196463A1 (en) Method and apparatus for network access, storage medium, and processor
WO2022062807A1 (en) Device control method, server, and storage medium
CN115442100A (en) Data access method based on multi-node zero-trust gateway and related equipment
WO2018112745A1 (en) Method, entity and system for obtaining network slice instance information
WO2020048194A1 (en) Method for performing task processing on common service entity, common service entity, apparatus for performing task processing and medium
CN111147468A (en) User access method, device, electronic equipment and storage medium
WO2020010906A1 (en) Method and device for operating system (os) batch installation, and network device
WO2014005268A1 (en) Resource access method and device
CN112286911A (en) Database management method and device, equipment and storage medium
CN109981462B (en) Message processing method and device

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: 16877285

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: 16877285

Country of ref document: EP

Kind code of ref document: A1