CN106920382B - Method for controlling intelligent instrument to access network, master station and data centralized unit - Google Patents

Method for controlling intelligent instrument to access network, master station and data centralized unit Download PDF

Info

Publication number
CN106920382B
CN106920382B CN201510992032.9A CN201510992032A CN106920382B CN 106920382 B CN106920382 B CN 106920382B CN 201510992032 A CN201510992032 A CN 201510992032A CN 106920382 B CN106920382 B CN 106920382B
Authority
CN
China
Prior art keywords
intelligent instrument
dcu
filing
master station
meter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510992032.9A
Other languages
Chinese (zh)
Other versions
CN106920382A (en
Inventor
罗文�
丁玲玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510992032.9A priority Critical patent/CN106920382B/en
Priority to PCT/CN2016/090517 priority patent/WO2017107473A1/en
Publication of CN106920382A publication Critical patent/CN106920382A/en
Application granted granted Critical
Publication of CN106920382B publication Critical patent/CN106920382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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

The application provides a method for controlling the network access of an intelligent instrument, wherein a DCU receives a network access request message sent by the intelligent instrument, and when the address of the intelligent instrument does not exist in an access record, the DCU sends a filing request message comprising a meter number of the intelligent instrument and an identifier of the DCU to a master station, and requests the master station to establish a file for the intelligent instrument; then the DCU determines whether to allow the intelligent instrument to access the network according to a filing result in a filing response message returned by the master station; when the result of filing is determined to be successful, allowing the intelligent instrument to access the network; and when the file building result is determined to be failure, refusing the intelligent instrument to access the network. Therefore, files do not need to be manually input into the master station, automatic filing from bottom to top is achieved, and the flexibility and the network access efficiency of the intelligent instrument are improved.

Description

Method for controlling intelligent instrument to access network, master station and data centralized unit
Technical Field
The invention relates to the technical field of communication, in particular to a method for controlling an intelligent instrument to access a network, a master station and a data centralized unit.
Background
A Power Line Communication (PLC) technology is a Communication method for data transmission by using a Power Line. In an intelligent electric meter system deployed by using an Advanced Metering Infrastructure (AMI), a PLC technology is generally used. The master station performs data acquisition, management, control and the like on the PLC electric meter through a Data Centralizing Unit (DCU). For this purpose, the master station has to store the relevant information, i.e. the archive, of the DCU and PLC meters. Generally, the files are manually recorded into the master station, and the master station stores the files and then sends the files to the DCU. The PLC electric meter is usually networked by using an auto discovery mechanism, that is, the PLC electric meter is accessed to the DCU according to a network access notification sent by the DCU. Thus, the electric meter may not have access to the DCU specified by the profile, resulting in the electric meter not being recognized by the master station.
Disclosure of Invention
The embodiment of the invention provides a method for controlling the network access of an intelligent instrument, a master station and a data concentration unit.
In a first aspect, a method for controlling network access of an intelligent instrument is provided, in which a DCU receives a network access request message sent by the intelligent instrument, where the network access request message includes a meter number and an address of the intelligent instrument; the DCU inquires an access record according to the address of the intelligent instrument so as to judge whether the access record contains the intelligent instrument;
when the address of the intelligent instrument exists in the access record, which indicates that the intelligent instrument is accessed from the DCU earlier, the DCU directly accepts the network access request of the intelligent instrument and allows the intelligent instrument to be accessed to the network;
when the address of the intelligent instrument does not exist in the access record, the DCU sends a filing request message to a master station, wherein the filing request message comprises the meter number of the intelligent instrument and the identification of the DCU, and the master station is requested to establish a file for the intelligent instrument; then the DCU determines whether to allow the intelligent instrument to access the network or not according to a filing response message returned by the master station, wherein the filing response message returned by the master station comprises the meter number and the filing result of the intelligent instrument; when the result of filing is determined to be successful, the DCU adds the address of the intelligent instrument in the access record to allow the intelligent instrument to access the network; when the file building result is determined to be failure, the DCU can refuse the intelligent instrument to access the network. Therefore, after receiving the network access request of the intelligent instrument, the DCU requests the master station to establish the file for the intelligent instrument, allows the intelligent instrument to access the network under the condition that the master station successfully establishes the file, not only realizes automatic file establishment from bottom to top, improves the flexibility and the network access efficiency of the intelligent instrument, but also can ensure the consistency of the file. Therefore, files need not to be manually recorded in the master station and issued to the DCU, the labor cost can be reduced, and the problem that manual recording is prone to error can be avoided.
With reference to the first aspect, in a possible implementation manner, the network entry request message further includes additional information of the smart meter; when the address of the intelligent instrument exists in the access record, the DCU can further judge that the additional information of the intelligent instrument is updated; when the additional information of the intelligent meter is updated, the DCU sends a file updating message to the master station, wherein the file updating message comprises the identification of the DCU, the meter number of the intelligent meter and the additional information of the intelligent meter, so that the master station updates the additional information in the file of the intelligent meter. Therefore, the files of the intelligent instrument on the main station can be updated in time, and smooth communication among the main station, the DCU and the intelligent instrument is guaranteed.
With reference to the first aspect or the foregoing possible implementation manner, in another possible implementation manner, before querying an access record according to an address of the smart meter, the DCU may first determine whether the number of smart meters accessing the DCU is smaller than a preset access threshold; if the number of the intelligent instruments accessed to the DCU is smaller than the preset accessible threshold value, the DCU continues the step of inquiring the access records according to the addresses of the intelligent instruments; if the access threshold is not less than the preset access threshold, the DCU can reject the network access request of the intelligent instrument, and the process of the method is ended. Therefore, whether the DCU is saturated or not is judged by presetting the accessible threshold value, and the situations that the DCU is accessed to too many intelligent instruments and is overloaded can be avoided. Load balancing among DCUs can be achieved in the case where multiple DCUs are deployed.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, before the DCU receives an access request message sent by a smart meter, the DCU sends a broadcast message, where the broadcast message includes an identifier of the DCU, so as to notify that the smart meter receiving the broadcast message can access a network from the DCU. Correspondingly, the network access request message also comprises the identification of the DCU.
In a second aspect, a method for controlling an intelligent instrument to access a network is provided, in which a master station receives a filing request message sent by a DCU, where the filing request message includes an identifier of the DCU and a table number of a first intelligent instrument, and the master station queries an archive according to the table number of the first intelligent instrument to determine whether the archive includes the first intelligent instrument;
when the table number of the first intelligent instrument does not exist in the archive library, the first intelligent instrument possibly enters the network for the first time, the master station establishes the archive of the first intelligent instrument in the archive library according to the filing request message, wherein the archive comprises the corresponding relation between the table number of the first intelligent instrument and the identification of the DCU, and then sends a filing response message to the DCU, wherein the archive comprises the table number of the first intelligent instrument and a first filing result, and the first filing result is successful and indicates that the master station successfully establishes the archive of the first intelligent instrument. Like this, when first intelligent instrument is netted for the first time, the main website according to DCU's the request of filing is for archives are established to first intelligent instrument, have realized automatic filing from bottom to top, have improved intelligent instrument flexibility and the efficiency of networking of logging into to need not the manual work and type in archives at the main website, can reduce the human cost, also can avoid the problem that artifical type is makeed mistakes easily.
When the table number of the first intelligent instrument exists in the archive, the first intelligent instrument is not accessed to the network for the first time, and the method comprises the following two possible implementation modes:
in a possible implementation manner, the master station may reject the filing request of the DCU, and send a filing response message to the DCU, where the filing response message includes the table number of the first intelligent instrument and a second filing result, and the first filing result is a failure, which indicates that the master station fails to establish the file of the first intelligent instrument. Therefore, the intelligent instrument can be ensured to be always connected to the network from the same DCU, and the frequent change of the network topology caused by the fact that the connected DCU is replaced by the intelligent instrument can be avoided. However, the smart meter may send a network access request multiple times to access the network from the DCU (e.g., the other DCUs described above) accessed at the time of the first network access.
In another possible implementation manner, the master station may update the profile of the first smart meter according to the filing request message, in other words, the master station makes the profile of the first smart meter include a correspondence between the meter number of the first smart meter and the identifier of the DCU, and then the master station sends the filing response message to the DCU, where the filing response message includes the meter number of the first smart meter and a first filing result, and the first filing result is successful. Therefore, even if the intelligent instrument accesses the network from other DCUs, the intelligent instrument still can access the network from a new DCU (the DCU) through updating the file, the situation that the intelligent instrument can access the network only by trying for many times is avoided, and the network access efficiency is improved.
Further optionally, the master station receives a profile update message sent by the DCU, where the profile update message includes an identifier of the DCU, a meter number of a second intelligent meter, and additional information of the second intelligent meter; and when the archive of the second intelligent instrument is matched with the meter number of the second intelligent instrument and the identification of the DCU, the master station updates the archive of the second intelligent instrument by using the additional information of the second intelligent instrument. Therefore, when the information of the intelligent instrument is updated, the master station can update the file of the intelligent instrument in time, and smooth communication among the master station, the DCU and the intelligent instrument is guaranteed.
In a third aspect, a method for controlling network access of an intelligent instrument is provided, in which a DCU receives a network access request message sent by the intelligent instrument, where the network access request message includes a meter number and an address of the intelligent instrument; the DCU inquires an access record according to the address of the intelligent instrument so as to judge whether the access record contains the intelligent instrument; when the address of the intelligent instrument exists in the access record, which indicates that the intelligent instrument has accessed the network from the DCU earlier, the DCU accepts the network access request of the intelligent instrument and directly allows the intelligent instrument to access the network; and when the address of the intelligent instrument does not exist in the access record, the DCU adds the address of the intelligent instrument in the access record, allows the intelligent instrument to access the network, and sends a filing request message to a master station, wherein the filing request message comprises the meter number of the intelligent instrument and the identification of the DCU, so that the master station builds the file of the intelligent instrument according to the filing request message. Therefore, after receiving the network access request of the first intelligent instrument, the DCU allows the first intelligent instrument to access the DCU for network access no matter whether the first intelligent instrument is accessed to the network for the first time, and synchronously triggers the master station to establish or update the file of the first intelligent instrument. Therefore, the intelligent instrument can access the network from any DCU, and the situation that the intelligent instrument can access the network after trying for many times is avoided. The real-time performance of the intelligent instrument network access is high, and the network access efficiency is improved. In addition, files need not to be manually recorded in the master station and issued to the DCU, so that the labor cost can be reduced, and the problem that manual recording is easy to make mistakes can be avoided.
With reference to the first aspect, in a possible implementation manner, the network entry request message further includes additional information of the smart meter; when the address of the intelligent instrument exists in the access record, the DCU can further judge that the additional information of the intelligent instrument is updated; when the additional information of the intelligent meter is updated, the DCU sends a file updating message to the master station, wherein the file updating message comprises the identification of the DCU, the meter number of the intelligent meter and the additional information of the intelligent meter, so that the master station updates the additional information in the file of the intelligent meter. Therefore, the files of the intelligent instrument on the main station can be updated in time, and smooth communication among the main station, the DCU and the intelligent instrument is guaranteed.
With reference to the first aspect or the foregoing possible implementation manner, in another possible implementation manner, before querying an access record according to an address of the smart meter, the DCU may first determine whether the number of smart meters accessing the DCU is smaller than a preset access threshold; if the number of the intelligent instruments accessed to the DCU is smaller than the preset accessible threshold value, the DCU continues the step of inquiring the access records according to the addresses of the intelligent instruments; if the access threshold is not less than the preset access threshold, the DCU can reject the network access request of the intelligent instrument, and the process of the method is ended. Therefore, whether the DCU is saturated or not is judged by presetting the accessible threshold value, and the situations that the DCU is accessed to too many intelligent instruments and is overloaded can be avoided. Load balancing among DCUs can be achieved in the case where multiple DCUs are deployed.
With reference to the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, before the DCU receives an access request message sent by the smart meter, the DCU sends a broadcast message, where the broadcast message includes an identifier of the DCU, and the broadcast message is used to notify that the smart meter can access a network from the DCU. Correspondingly, the network access request message also comprises the identification of the DCU. In this way, any smart meter that receives the broadcast message may request to be networked from the DCU.
In a fourth aspect, a method for controlling an intelligent instrument to access a network is provided, in which a master station receives a filing request message sent by a DCU, where the filing request message includes an identifier of the DCU and a meter number of a first intelligent instrument; the master station queries an archive according to the meter number of the first intelligent meter to judge whether the archive contains the first intelligent meter; when the table number of the first intelligent instrument does not exist in the archive library, the first intelligent instrument possibly enters the network for the first time, and the master station establishes an archive of the first intelligent instrument in the archive library according to the filing request message, wherein the archive comprises a corresponding relation between the table number of the first intelligent instrument and the identification of the DCU; and when the meter number of the first intelligent meter exists in the archive library, the master station updates the archive of the first intelligent meter according to the filing request message, in other words, the master station enables the archive of the first intelligent meter to comprise the corresponding relation between the meter number of the first intelligent meter and the identification of the DCU. Therefore, no matter the first intelligent instrument is firstly accessed to the network or is accessed to the network from other DCUs, the master station directly establishes or updates the file of the first intelligent instrument according to the filing request of the DCU, and the network access efficiency of the intelligent instrument is improved.
Optionally, after the master station completes establishment or update of the file of the first intelligent meter, the master station sends a filing response message to the DCU, where the filing response message includes the table number of the first intelligent meter, so that the DCU knows that the master station has established or updated the file of the first intelligent meter, and consistency of the files on the master station and the DCU is ensured.
Further optionally, the master station receives a profile update message sent by the DCU, where the profile update message includes an identifier of the DCU, a meter number of a second intelligent meter, and additional information of the second intelligent meter; and when the archive of the second intelligent instrument is matched with the meter number of the second intelligent instrument and the identification of the DCU, the master station updates the archive of the second intelligent instrument by using the additional information of the second intelligent instrument. Therefore, when the information of the intelligent instrument is updated, the master station can update the file of the intelligent instrument in time, and smooth communication among the master station, the DCU and the intelligent instrument is guaranteed.
In a fifth aspect, a DCU is provided, where the DCU has a function of implementing the DCU in the method for controlling smart meter to access a network, where the function may be implemented by hardware, or may be implemented by hardware executing corresponding software, and the hardware or software includes one or more modules corresponding to the function.
In a sixth aspect, a master station is provided, where the master station has a function of implementing the master station in the method for controlling an intelligent instrument to access a network, the function may be implemented by hardware, or may be implemented by hardware executing corresponding software, and the hardware or software includes one or more modules corresponding to the function.
In a seventh aspect, a computer storage medium is provided, in which a program code is stored, and the program code includes instructions for implementing the method of the first aspect.
In an eighth aspect, there is provided a computer storage medium having program code stored therein, the program code including instructions for implementing the method of the second aspect.
In 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.
A tenth aspect provides a computer storage medium having program code stored therein, the program code including instructions for implementing the method of the fourth aspect.
In an eleventh aspect, a system for controlling access to a network of a smart meter is provided, which includes the smart meter, a DCU implementing the method of the first aspect, and a master station implementing the method of the second aspect.
The DCU receives a network access request message sent by an intelligent instrument, wherein the network access request message comprises a meter number and an address of the intelligent instrument, and inquires an access record according to the address of the intelligent instrument so as to judge whether the access record contains the intelligent instrument; when the address of the intelligent instrument exists in the access record, the DCU directly receives the network access request of the intelligent instrument and allows the intelligent instrument to access the network; and when the address of the intelligent instrument does not exist in the access record, the DCU sends a filing request message to a master station, wherein the filing request message comprises the meter number of the intelligent instrument and the identification of the DCU.
The master station inquires an archive according to the meter number of the first intelligent meter so as to judge whether the first intelligent meter is contained in the archive or not; and when the table number of the first intelligent instrument does not exist in the archive library, the master station establishes the archive of the first intelligent instrument in the archive library according to the archive establishment request message, and then sends an archive establishment response message which includes that the archive establishment result is successful to the DCU. When the table number of the first intelligent instrument exists in the archive library, the master station can reject the filing request of the DCU and send a filing response message which comprises a filing result which is failed to the DCU; or the master station may update the profile of the first smart meter according to the filing request message, and send a filing response message including that the filing result is successful to the DCU.
The DCU determines whether to allow the intelligent instrument to access the network according to a filing result in a filing response message returned by the master station, and when the filing result is determined to be successful, the DCU adds the address of the intelligent instrument in the access record to allow the intelligent instrument to access the network; when the file building result is determined to be failure, the DCU can refuse the intelligent instrument to access the network.
In an eleventh aspect, a system for controlling a smart meter to access a network is provided, where the system includes a smart meter, a DCU implementing the method of the third aspect, and a master station implementing the method of the fourth aspect.
The DCU receives a network access request message sent by an intelligent instrument, wherein the network access request message comprises a meter number and an address of the intelligent instrument, and inquires an access record according to the address of the intelligent instrument so as to judge whether the access record contains the intelligent instrument; when the address of the intelligent instrument exists in the access record, the DCU directly receives the network access request of the intelligent instrument and allows the intelligent instrument to access the network; and when the address of the intelligent instrument does not exist in the access record, the DCU sends a filing request message to a master station, wherein the filing request message comprises the meter number of the intelligent instrument and the identification of the DCU, so that the master station builds or updates the file of the first intelligent instrument.
The master station inquires an archive according to the meter number of the first intelligent meter so as to judge whether the first intelligent meter is contained in the archive or not; when the table number of the first intelligent instrument does not exist in the archive library, the master station establishes the archive of the first intelligent instrument in the archive library according to the archive establishment request message; and when the table number of the first intelligent instrument exists in the archive library, the master station updates the archive of the first intelligent instrument according to the filing request message.
Drawings
Fig. 1 is a schematic diagram of an intelligent meter reading system provided in an embodiment of the present application;
fig. 2 is a flowchart of a method for controlling an intelligent instrument to access a network according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another method for controlling a smart meter to access a network according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a DCU according to an embodiment of the present application;
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 master station according to an embodiment of the present application;
fig. 7 is another schematic structural diagram of a master station according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of another DCU provided in the embodiments of the present application;
FIG. 9 is a schematic diagram of another structure of another DCU according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of another master station provided in an embodiment of the present application;
FIG. 11 is a schematic diagram of another alternate master station according to an embodiment of the present application;
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 application;
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 application.
Detailed Description
The technical scheme for controlling the intelligent instrument to access the network is used for controlling the intelligent instrument to access the network in the intelligent meter reading system which is deployed by adopting AMI and is based on the PLC technology as shown in figure 1. The system shown in fig. 1 includes a master station, a DCU, and a smart meter (smart meter). The intelligent instrument is hung on (accessed into) the DCU, and is communicated with the DCU by adopting a PLC technology, and the DCU can be communicated with the master station through a wired or wireless network. The intelligent instrument in this application is the smart electric meter that supports PLC technique, table metering equipment such as intelligent water gauge.
According to the method for controlling the intelligent instrument to access the network, the DCU generates the file according to the accessed intelligent instrument information and sends the file to the main station for storage, so that the file is automatically generated from bottom to top, the problems that the workload of manually inputting the file is large and error is easy to occur, and the intelligent instrument randomly accesses the network to generate crosstalk can be solved, and the network access success rate of the intelligent instrument and the networking efficiency of the system can be improved.
The technical solution of the present application will be described in detail below with reference to the accompanying drawings and specific embodiments.
Referring to fig. 2, the present application provides a method for controlling a smart meter to access a network, including:
201. the DCU sends a broadcast message;
the broadcast message is used to inform smart meters on a power line that they can be brought into the network from the DCU. The broadcast message includes an identification of the DCU.
Specifically, the broadcast message destination address is a broadcast address defined in the PLC technology, for example, 0 xaaaaaaaaaa.
202. The first intelligent instrument sends a network access request message to the DCU according to the broadcast message; the network access request message comprises a meter number of the first intelligent instrument and an address of the first intelligent instrument;
the address of the first smart meter is used to uniquely identify the first smart meter in a network communication process, and may be, for example, a Media Access Control (MAC) address or an Internet Protocol (IP) address. The meter number of the first smart meter may uniquely identify the first smart meter during management, control and data collection of the first smart meter, and may be, for example, a string of numbers or a combination of letters and numbers.
The network access request message may further include additional information of the first smart meter, such as a model number, authentication information, and the like.
203. The DCU receives the network access request message and inquires whether an address of the first intelligent instrument exists in an access record or not;
the DCU maintains an access record that records the smart meters accessing the DCU. The access record comprises the address of the intelligent instrument; of course, the number of the smart meter may also be included. Initially, the access record may be empty, and as the smart meter is brought into the network, the access record is added with addresses of the respective smart meters, for example, the address of the smart meter 1, the address of the smart meter 2, and so on.
The access record can also be set in a white list form, so that the access record can be used for recording the accessed intelligent instrument and controlling the access of the intelligent instrument, namely, the intelligent instrument in the white list is allowed to directly access the network.
Specifically, the DCU receives the network access request message sent by the first smart meter, acquires the address of the first smart meter from the network access request message, and queries the access record according to the address of the first smart meter to determine whether the address of the first smart meter exists in the access record; and if the address of the first intelligent meter does not exist in the access record, executing steps 204-210. If the address of the first smart meter is present in the access record, step 211 is performed.
204. When the first intelligent instrument does not exist in the access record, the DCU sends a filing request message to a master station, wherein the filing request message comprises the identification of the DCU and the table number of the first intelligent instrument;
the filing request message can also comprise the address of the first intelligent instrument; further, the profiling request message may further include additional information of the first smart meter, where the additional information includes a model number, authentication information, and the like.
205. The master station receives the filing request message and inquires whether the table number of the first intelligent instrument exists in an archive or not;
the master station typically maintains a repository for storing the files of each smart meter. Initially, the archive may be empty, and subsequently, based on the filing request message from each DCU, a file of each smart meter, e.g. the file of smart meter 1, the file of smart meter 2, etc. may be established. The file of the intelligent instrument comprises the meter number of the intelligent instrument and the identification of the accessed DCU; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included.
Specifically, the master station acquires the meter number of the first intelligent meter from the filing request message, and queries an archive according to the meter number of the first intelligent meter to judge whether the meter number of the first intelligent meter exists in the archive; when the table number of the first intelligent instrument does not exist in the archive, executing step 206; when the table number of the first smart meter exists in the archive, step 207 or 208 is executed.
206. When the table number of the first intelligent instrument does not exist in the archive library, the master station establishes the archive of the first intelligent instrument in the archive library according to the archive establishing request message and sends an archive establishing response message to the DCU, wherein the archive establishing response message comprises the table number of the first intelligent instrument and a first archive establishing result (success);
when the table number of the first intelligent meter does not exist in the archive, which is generally the case when the first intelligent meter is first networked, the master station automatically creates the archive of the first intelligent meter in the archive according to the filing request message, that is, stores a first corresponding relationship including the table number of the first intelligent meter and the identification of the DCU 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.
After processing the filing request message, the master station sends a filing response message to the DCU, and responds to the filing request of the DCU to inform the DCU whether the filing (establishing the file of the first intelligent meter) is successful or failed.
And the first filing result is used for indicating that the master station successfully establishes the file of the first intelligent instrument.
207. When the table number of the first intelligent instrument exists in the archive library, the master station refuses the filing request of the DCU and sends a filing response message to the DCU, wherein the filing response message comprises the table number of the first intelligent instrument and a second filing result (failure);
and the second filing result is used for indicating that the master station fails to establish the file of the first intelligent instrument.
When the table number of the first smart meter is present in the archive, it may be that the first smart meter is not first networked, the master station has maintained the archive of the first smart meter, e.g. the first smart meter has previously been networked from other DCUs, the master station maintains an existing correspondence of the table number of the first smart meter and the identities of the other DCUs. And the master station refuses the filing request of the DCU so that the DCU refuses the intelligent instrument to access the network. Therefore, the intelligent instrument can be ensured to be always connected to the network from the same DCU, and the frequent change of the network topology caused by the fact that the connected DCU is replaced by the intelligent instrument can be avoided. However, the smart meter may send a network access request for multiple times to access the network from the DCU (e.g., the other DCUs) accessed when the smart meter first accesses the network, and thus the network access efficiency of the smart meter is relatively low.
208. When the table number of the first intelligent instrument exists in the archive library, the master station updates the archive of the first intelligent instrument according to the filing request message and sends a filing response message to the DCU, wherein the filing response message comprises the table number of the first intelligent instrument and the first filing result (success);
when the table number of the first smart meter is present in the archive, it may be that the first smart meter is not first networked, the master station has maintained the archive of the first smart meter, e.g. the first smart meter has previously been networked from other DCUs, the master station maintains an existing correspondence of the table number of the first smart meter and the identities of the other DCUs. The master station may update the identifiers of other DCUs in the existing correspondence in the archive to the identifiers of the DCUs (of course, if the address, the additional information, and the like of the first smart meter are different, the identifiers may also be updated synchronously); alternatively, the master station may delete the existing correspondence in the archive, and then store the first correspondence including the table number of the first smart meter and the identification of the DCU. Therefore, even if the intelligent instrument accesses the network from other DCUs, the intelligent instrument still can access the network from a new DCU (the DCU) through updating the file, the situation that the intelligent instrument can access the network only by trying for many times is avoided, and the network access efficiency is improved.
The steps 207 and 208 are two alternative implementations, and the implementation of step 207 or the implementation of step 208 may be selected according to the network size, or the system performance requirement, or the customer requirement.
209. The DCU receives the filing response message, and when the filing result is determined to be a first filing result (success), the DCU adds the address of the intelligent instrument in the access record to allow the intelligent instrument to access the network;
210. and the DCU receives the filing response message, and refuses the intelligent instrument to access the network when the filing result is determined to be a second filing result (failure).
In this embodiment, in order to avoid inconsistency between the DCU and the master station in the file of the first intelligent instrument and ensure the accuracy of network access, the DCU allows the first intelligent instrument to access the network only when receiving the filing response message and the filing result is successful.
211. When the address of the first intelligent instrument exists in the access record, the DCU allows the first intelligent instrument to access the network;
in particular, when the address of the first smart meter is present in the access record, it is possible that the first smart meter is not first networked (has been networked earlier from the DCU), and the DCU allows the first smart meter to access (network entry). Of course, it is also possible that a human or a master station has configured the address of the first smart meter in the white list in advance.
Further, when the first smart meter exists in the access record, the DCU may further determine whether additional information of the first smart meter is updated. If the additional information of the first intelligent meter is updated, the DCU may send a profile update message to the master station, where the profile update message includes the identification of the DCU and the meter number of the first intelligent meter, and also includes the additional information of the first intelligent meter, so that the master station updates the additional information in the profile of the first intelligent meter (i.e., the first corresponding relationship).
The archive request Message, the archive response Message, and the archive update Message in the embodiment of the present application may be implemented by extending a Distribution Line Message Specification (DLMS) Message, and may be implemented by self-defining a new Message. The DLMS protocol message implementation is illustrated in fig. 1, and is not limited to the implementation of the present application.
Optionally, before querying an access record according to the address of the first smart meter in step 203, the method may further include:
and the DCU judges whether the number of the intelligent instruments accessed to the DCU is less than a preset accessible threshold value.
If the number of the intelligent instruments accessed to the DCU is determined to be smaller than a preset accessible threshold value, the DCU continues to the step 203;
and if the number of the intelligent instruments accessed to the DCU is not smaller than the preset access threshold value, the DCU can refuse the access of the first intelligent instrument, and the process is ended.
Therefore, whether the DCU is saturated or not is judged by presetting the accessible threshold value, and the situations that the DCU is accessed to too many intelligent meters and is overloaded can be avoided. In this way, load balancing among DCUs can also be achieved in the case where multiple DCUs are deployed.
According to the method for controlling the access of the intelligent instrument, after the DCU receives the network access request of the intelligent instrument, the DCU requests the master station to establish the file for the intelligent instrument, the intelligent instrument is allowed to access the network under the condition that the master station is successful in establishing the file, automatic file establishment from bottom to top is realized, the flexibility and the network access efficiency of the intelligent instrument are improved, and the consistency of the file can be ensured. Therefore, files need not to be manually recorded in the master station and issued to the DCU, manual recording errors can be avoided, and labor cost can be reduced.
Referring to fig. 3, the present application provides another method for controlling a smart meter to access a network, including:
301. the DCU sends a broadcast message;
the broadcast message is used to inform smart meters on a power line that they can be brought into the network from the DCU. The broadcast message includes an identification of the DCU.
302. The first intelligent instrument sends a network access request message to the DCU according to the broadcast message; the network access request message comprises a meter number of the first intelligent instrument and an address of the first intelligent instrument;
the network access request message may further include a model number, authentication information, and the like of the first smart meter.
303. The DCU receives the network access request message and judges whether the number of the intelligent instruments accessed to the DCU is smaller than a preset accessible threshold value or not;
if the number of the intelligent meters accessing the DCU is determined to be smaller than a preset accessible threshold value, continuing to step 304;
and if the number of the intelligent instruments accessed to the DCU is not smaller than a preset access threshold value, rejecting the access of the first intelligent instrument and ending the whole process.
Whether the DCU is saturated or not is judged by presetting the accessible threshold value, so that the condition that the DCU is connected with too many intelligent instruments and is overloaded can be avoided. In this way, load balancing among DCUs may be achieved in the case where multiple DCUs are deployed.
304. When the number of the intelligent instruments accessed to the DCU is smaller than a preset accessible threshold value, the DCU inquires whether the address of the first intelligent instrument exists in an access record;
the DCU maintains an access record that records the smart meters accessing the DCU. The access record comprises the address of the intelligent instrument; of course, the number of the smart meter may also be included.
The access records can also be set in a white list mode and used for controlling the network access of the intelligent instrument.
Specifically, the DCU acquires an address of the first smart meter from the network access request message, and queries the access record according to the address of the first smart meter to determine whether the access record includes the first smart meter; if the address of the first smart meter is not present in the access record, step 305 and 308 are performed. If the address of the first smart meter is present in the access record, step 309 is performed.
305. When the first intelligent instrument does not exist in the access record, the DCU adds the address of the intelligent instrument in the access record, allows the intelligent instrument to access the network and sends a file-establishing request message to a master station;
and the filing request message comprises the identification of the DCU and the meter number of the first intelligent meter.
The filing request message can also comprise the address of the first intelligent instrument; further, the profiling request message may further include additional information of the first smart meter, where the additional information includes a model number, authentication information, and the like.
306. The master station receives the filing request message and inquires whether the table number of the first intelligent instrument exists in an archive or not;
the master station typically maintains a repository for storing the files of each smart meter. The file of the intelligent instrument comprises the meter number of the intelligent instrument and the identification of the accessed DCU; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included.
Specifically, the master station obtains the meter number of the first intelligent meter from the filing request message, and queries the archive according to the meter number of the first intelligent meter to determine whether the archive contains the file of the first intelligent meter. When the table number of the first intelligent instrument does not exist in the archive, executing step 307; when the table number of the first smart meter exists in the archive, step 308 is executed.
307. When the table number of the first intelligent instrument does not exist in the archive library, the master station establishes the archive of the first intelligent instrument in the archive library according to the archive establishment request message;
when the table number of the first intelligent meter does not exist in the archive, which is generally the case when the first intelligent meter is first networked, the master station automatically creates the archive of the first intelligent meter in the archive according to the filing request message, that is, stores a first corresponding relationship including the table number of the first intelligent meter and the identification of the DCU 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.
After completing the establishment of the profile of the first smart meter, the master station may send a filing response message to the DCU, where the filing response message includes the meter number of the first smart meter, so as to respond to the filing request of the DCU.
308. When the table number of the first intelligent instrument exists in the archive library, the master station updates the archive of the first intelligent instrument according to the filing request message;
when the table number of the first smart meter is present in the archive, it may be that the first smart meter is not first networked, the master station has maintained the archive of the first smart meter, e.g. the first smart meter has previously been networked from other DCUs, the master station maintains an existing correspondence of the table number of the first smart meter and the identities of the other DCUs. The master station may update the identifiers of other DCUs in the existing correspondence in the archive to the identifiers of the DCUs (of course, if the address, the additional information, and the like of the first smart meter are different, the identifiers may also be updated synchronously); alternatively, the master station may delete the existing correspondence in the archive, and then store the first correspondence including the table number of the first smart meter and the identification of the DCU.
After the file update of the first intelligent meter is completed, the master station may send a filing response message to the DCU, where the filing response message includes the meter number of the first intelligent meter, so as to respond to the filing request of the DCU.
Optionally, in order to ensure that the master station receives the archive request message and builds or updates the archive of the first intelligent meter, the DCU may start a timer after sending the archive request message to the master station, set a response threshold, and if the archive response message returned by the master station is not received within the response threshold time, the DCU may send the archive request message to the master station again until receiving the archive response message returned by the master station. Therefore, the consistency of the files on the main station and the DCU can be ensured, and the communication among the follow-up main station, the DCU and the intelligent instrument is ensured to be smooth.
309. When the address of the first intelligent instrument exists in the access record, the DCU allows the first intelligent instrument to access the network;
in particular, when the first smart meter is included in the access, the DCU allows the first smart meter access (network access) if the first smart meter has been previously networked from the DCU. Of course, it is also possible that a human or a master station has configured the address of the first smart meter in the access record beforehand.
Further, when the address of the first smart meter exists in the access record, the DCU may further determine whether additional information of the first smart meter, such as a model number, authentication information, and the like, is updated. If the additional information of the first intelligent meter is updated, the DCU may send a profile update message to the master station, where the profile update message includes the identification of the DCU and the meter number of the first intelligent meter, and also includes the additional information of the first intelligent meter, so that the master station updates the additional information in the profile of the first intelligent meter (i.e., the first corresponding relationship).
The archive request message, the archive response message and the archive update message in the embodiment of the application can be realized by DLMS messages, and certainly, can also be realized by customizing new messages.
In this embodiment of the application, the DCU receives the network access request of the first intelligent instrument, and can immediately add the address of the first intelligent instrument into the access record, grant the first intelligent instrument to access the network, and trigger the master station to establish or update the file of the first intelligent instrument. Therefore, the intelligent instrument can access the network from any DCU, the situation that the intelligent instrument can access the network only after trying for many times is avoided, the real-time performance of the network access is high, and the network access efficiency can be improved.
Referring to fig. 4, in an embodiment of the present application, a DCU 400 is provided for implementing a function of the DCU in the method for controlling smart meter networking shown in fig. 2, where the DCU 400 includes: a sending module 401, a receiving module 402 and a processing module 403;
the receiving module 402 is configured to receive a network access request message sent by a first intelligent instrument, where the network access request message includes a meter number of the first intelligent instrument and an address of the first intelligent instrument;
the processing module 403 is configured to query, according to the address of the first smart meter, whether an address of the first smart meter exists in an access record; when the address of the first intelligent instrument exists in the access record, allowing the first intelligent instrument to access the network; when the address of the first intelligent instrument does not exist in the access record, sending a filing request message to a master station, wherein the filing request message comprises the meter number of the first intelligent instrument and the identification of the DCU;
the sending module 401 is configured to send the filing request message;
the filing request message can also comprise the address of the first intelligent instrument; further optionally, the profiling 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 the address of the first smart meter, so as to determine whether the access record includes the address of the first smart meter.
Before the receiving module 402 receives a network access request message sent by a 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 inform smart meters on the power line that they can be brought into the network from the DCU 400.
The DCU 400 may further include a storage module for storing the access record, where the access record is used to record the smart meter accessed to the DCU. The access record can be set in a white list form and used for controlling the intelligent instrument to access the network. The access record can comprise the address of the intelligent instrument; of course, the number of the smart meter may also be included.
The receiving module 402 is further configured to receive a profiling response message returned by the master station, where the profiling response message includes a meter number of the first intelligent instrument and a profiling result;
the filing result comprises the following steps: a first filing result (success) for indicating that the master station successfully establishes the file of the first intelligent instrument; and a second file establishing result (failure) for indicating that the master station fails to establish the file of the first intelligent instrument.
The processing module 403 is further configured to add an address of the first smart meter to the access record when the filing result is successful, so as to allow the first smart meter to access the network; and when the file building result is failure, refusing the first intelligent instrument to access the network.
The master station usually maintains a file repository for storing files of each intelligent instrument, wherein the files of the intelligent instruments comprise the meter numbers of the intelligent instruments and the identifications of the accessed DCUs; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included. The file of the first smart meter includes a first corresponding relationship between the meter number of the first smart meter and the identification of the DCU, and may further include an address, additional information, and the like of the first smart meter.
Therefore, when the DCU receives the filing response message returned by the master station and the filing result is successful, the first intelligent instrument is allowed to access the network, the inconsistency of the files of the first intelligent instrument between the DCU and the master station can be avoided, and the accuracy of network access is ensured.
Optionally, the network entry 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:
judging whether the additional information of the first intelligent instrument is updated or not; and if the additional information of the first intelligent instrument is updated, sending a file updating message to the master station, wherein the file updating message comprises the identification of the DCU 400, the meter number of the first intelligent instrument and the additional information of the first intelligent instrument, so that the master station updates the additional information in the file of the first intelligent instrument. This ensures the profile consistency of the first smart meter between the DCU and the master station.
The sending module 401 may further be configured to send the profile update message.
The archive request message, the archive response message and the archive update message in the embodiment of the application can be realized by extending the DLMS protocol message, and certainly, can be realized by customizing a new message.
Optionally, the DCU 400 further includes a threshold determining module, configured to determine whether the number of the intelligent meters accessing the DCU 400 is smaller than a preset accessible threshold; if it is determined that the number of the intelligent instruments connected to the DCU is smaller than a preset accessible threshold, continuing the operation of querying an access record by the processing module 403 according to the address of the first intelligent instrument; and if the number of the intelligent instruments accessed to the DCU is not smaller than a preset access threshold value, rejecting the access of the first intelligent instrument and finishing the whole operation.
Whether the DCU 400 is saturated or not is judged by presetting an accessible threshold value, so that the situations that the DCU 400 is accessed into excessive intelligent instruments and is overloaded can be avoided. In this way, load balancing between DCUs may be achieved where multiple DCUs are deployed.
Referring to fig. 5, an embodiment of the present application provides a DCU 500, configured to implement the function of the DCU in the method for controlling smart meter networking shown in fig. 2, where 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 with each other through a bus 504; the bus 504 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or 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 an intelligent meter accessing the DCU 500. The access record can be set in a white list form and used for controlling the intelligent instrument to access the network. The access record can comprise the address of the intelligent instrument; of course, the number of the smart meter may also be included.
The memory 502 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory 502 may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (hard-disk drive, HDD) or a solid-state drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 500; receiving a network access request message sent by a first intelligent instrument, wherein the network access request message comprises an address of the first intelligent instrument and a meter number of the first intelligent instrument; inquiring an access record according to the address of the first intelligent instrument, and judging whether the address of the first intelligent instrument exists in the access record;
the processor 501 is further configured to allow the first smart meter to access the network when the address of the first smart meter exists in the access record;
the processor 501 is further configured to send a profiling request message to a master station when it is determined that the address of the first intelligent instrument does not exist in the access record, where the profiling request message includes a table number of the first intelligent instrument and an identifier of the DCU; receiving a filing response message returned by the master station, wherein the filing response message comprises the meter number and the filing result of the first intelligent instrument; when the filing result is successful, adding the address of the first intelligent instrument in the access record, and allowing the first intelligent instrument to access the network; and when the file building result is failure, refusing the first intelligent instrument to access the network.
The filing result comprises the following steps: a first filing result (success) for indicating that the master station successfully establishes the file of the first intelligent instrument; and a second file establishing result (failure) for indicating that the master station fails to establish the file of the first intelligent instrument.
Specifically, the processor 501 sends the broadcast message through the communication interface 503, and receives the network access request message through the communication interface 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, such as a master station, a smart meter, and the like, and may be one or more, and for convenience of description, the communication interface 503 is used in the present application, and is not intended to limit the technical solution of the present application.
The communication interface 503 includes a power line interface for communicating with the smart meter; the system also comprises a wired communication access port, a wireless communication interface or a combination thereof which are communicated with the main station; the wired communication interface may be an ethernet interface, for example. The ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a WLAN interface, a cellular network communication interface, a combination thereof, or the like.
The processor 501 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 the address of the first smart meter, so as to determine whether the access record includes the address of the first smart meter.
The master station usually maintains a file repository for storing files of each intelligent instrument, wherein the files of the intelligent instruments comprise the meter numbers of the intelligent instruments and the identifications of the accessed DCUs; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included. The file of the first smart meter includes a first corresponding relationship between the meter number of the first smart meter and the identification of the DCU, and may further include an address, additional information, and the like of the first smart meter.
Therefore, when the DCU receives the filing response message returned by the master station and the filing result is successful, the first intelligent instrument is allowed to access the network, the inconsistency of the files of the first intelligent instrument between the DCU and the master station can be avoided, and the accuracy of network access is ensured.
Optionally, the network entry 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: judging whether the additional information of the first intelligent instrument is updated or not; and sending a file updating message to the master station after determining that the additional information of the first intelligent meter is updated, wherein the file updating message comprises the identification of the DCU 500, the meter number of the first intelligent meter and the additional information of the first intelligent meter, so that the master station updates the additional information in the file (namely, the first corresponding relation) of the first intelligent meter. This ensures the profile consistency of the first smart meter between the DCU and the master station.
Optionally, the processor 501 is further configured to determine whether the number of smart meters accessing the DCU is smaller than a preset access threshold; if the number of the intelligent instruments connected to the DCU is smaller than a preset access threshold value, continuing the operation of inquiring access records according to the address of the first intelligent instrument; and if the number of the intelligent instruments accessed to the DCU is not smaller than a preset access threshold value, rejecting the access of the first intelligent instrument and finishing the whole operation.
Whether the DCU is saturated or not is judged by presetting an accessible threshold value, so that the phenomenon that the DCU is overloaded due to access of too many intelligent meters can be avoided. In this way, load balancing between DCUs may be achieved where multiple DCUs are deployed.
The processor 501 may be a Central Processing Unit (CPU), a Network Processor (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 (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 502 is also used for storing program instructions; the processor 501 may call the program instructions stored in the memory 502 to execute one or more steps of the DCU in the embodiment shown in fig. 2, or in an alternative embodiment thereof, implement the method for controlling the smart meter to access the network shown in fig. 2.
The first DCU that this application embodiment provided, after receiving intelligent instrument's network access request, request main website establish archives for intelligent instrument, under the successful condition of filing of main website, allow intelligent instrument to go into the net, realized automatic filing from bottom to top, not only improved intelligent instrument flexibility and the efficiency of accessing to the net, and can guarantee the uniformity of archives between DCU and the main website. In addition, the problems of high labor cost and easy error caused by manually recording files in the main station are also avoided.
Referring to fig. 6, in an embodiment of the present application, a master station 600 is provided for implementing a function of the master station in the method for controlling an intelligent meter to access a network shown in fig. 2, where the master station 600 includes: a receiving module 601, a sending module 602 and a processing module 603;
the receiving module 601 is configured to receive a filing request message sent by a DCU, where the filing request message includes an identifier of the DCU and a table number of a first intelligent instrument;
the processing module 603 is configured to query whether the table number of the first smart meter exists in an archive according to the table number of the first smart meter; when the table number of the first intelligent instrument does not exist in the archive library, establishing the archive of the first intelligent instrument in the archive library according to the archive establishment request message, wherein the archive of the first intelligent instrument comprises the corresponding relation between the table number of the first intelligent instrument and the identification of the DCU, and sending a first archive establishment response message to the DCU, wherein the first archive establishment response message comprises the table number of the first intelligent instrument and a first archive establishment result (success);
the processing module 603 is specifically configured to obtain the meter number of the first smart meter from the archive request message, and query an archive according to the meter number of the first smart meter, so as to determine whether the meter number of the first smart meter exists in the archive.
When the table number of the first smart meter exists in the archive, the processing module 603 is further configured to:
rejecting the filing request of the DCU, and sending a second filing response message to the DCU, wherein the second filing response message comprises the table number of the first intelligent instrument and a second filing result (failure); therefore, an intelligent instrument can be guaranteed to be always connected to the network from the same DCU, frequent changes of network topology caused by the fact that the intelligent instrument is changed into the connected DCU are avoided, and therefore network management efficiency can be improved. Alternatively, the first and second electrodes may be,
updating the file of the first intelligent instrument according to the filing request message, and sending the first filing response message to the DCU; therefore, the intelligent instrument can be rapidly connected to the network, the real-time performance is high, and the network connection efficiency is improved.
The sending module 602 is further configured to send the first profiling response message or the second profiling response message.
The first file creating result is used for indicating that the master station successfully creates the file of the first intelligent instrument; and the second file establishing result is used for indicating that the master station fails to establish the file of the first intelligent instrument.
The master station 600 may further include a storage module for storing the archive; the file repository is used for storing files of the intelligent instruments, and the files of the intelligent instruments comprise the meter numbers of the intelligent instruments and the identifications of the accessed DCUs; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included.
The file of the first smart meter includes a first corresponding relationship between the meter number of the first smart meter and the identification 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 a file update message sent by the DCU, where the file update message includes an identifier of the DCU, a meter number of a second intelligent instrument, and additional information of the second intelligent instrument;
and the processing module is further used for updating the file of the second intelligent instrument by using the additional information of the second intelligent instrument when the file of the second intelligent instrument matched with the meter number of the second intelligent instrument and the identification of the DCU exists in the file repository. Specifically, when there is a file in the archive, which contains the second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the archive is considered to have the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU, the additional information in the file is updated by the additional information of the second smart meter.
Referring to fig. 7, the present application provides a master station for implementing the function of the master station in the method for controlling the smart meter to access the network shown in fig. 2, where the master 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, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The memory 702 is configured to store an archive maintained by the processor for the master station; the file repository is used for storing files of the intelligent instruments, and the files of the intelligent instruments comprise the meter numbers of the intelligent instruments and the identifications of the accessed DCUs; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included.
The memory 702 may include volatile memory, such as RAM; the memory 702 may also include non-volatile memory, such as flash memory, a HDD or SSD; the memory 702 may also comprise a combination of the above types of memory.
The processor 701 is configured to receive a filing request message sent by a DCU, where the filing request message includes an identifier of the DCU and a table number of a first intelligent instrument, and query, according to the table number of the first intelligent instrument, whether a table number of the first intelligent instrument exists in an archive; and when the table number of the first intelligent instrument does not exist in the archive, establishing the archive of the first intelligent instrument in the archive according to the archive establishing request message, and sending a first archive establishing response message to the DCU, wherein the first archive establishing response message comprises the table number of the first intelligent instrument and a first archive establishing result (success).
The processor 701 is specifically configured to obtain the meter number of the first smart meter from the filing request message, and query an archive according to the meter number of the first smart meter to determine whether the meter number of the first smart meter exists in the archive.
When the table number of the first smart meter exists in the archive, the processor 701 is further configured to:
rejecting the filing request of the DCU, and sending a second filing response message to the DCU, wherein the second filing response message comprises the table number of the first intelligent instrument and a second filing result (failure); therefore, an intelligent instrument can be guaranteed to be always connected to the network from the same DCU, frequent changes of network topology caused by the fact that the intelligent instrument is changed into the connected DCU are avoided, and therefore network management efficiency can be improved. Alternatively, the first and second electrodes may be,
updating the file of the first intelligent instrument according to the filing request message, and sending the first filing response message to the DCU; therefore, the intelligent instrument can be rapidly connected to the network, the real-time performance is high, and the network connection efficiency is improved.
The filing request message can also comprise the address of the first intelligent instrument; further optionally, additional information of the first smart meter may also be included, such as model number, authentication information, etc.
The first file creating result is used for indicating that the master station successfully creates the file of the first intelligent instrument; and the second file establishing result is used for indicating that the master station fails to establish the file of the first intelligent instrument.
The file of the first smart meter includes a first corresponding relationship between the meter number of the first smart meter and the identification 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 a profile update message sent by the DCU, where the profile update message includes an identifier of the DCU, a meter number of a second smart meter, and additional information of the second smart meter; and when the file of the second intelligent instrument matched with the meter number of the second intelligent instrument and the identification of the DCU exists in the file library, updating the file of the second intelligent instrument by using the additional information of the second intelligent instrument.
Specifically, when there is a file in the archive, which contains the second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the archive is considered to have the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU, the additional information in the file is updated by the additional information of the second smart meter.
The processor 701 specifically receives the filing request message and the archive 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.
In this embodiment, the communication interface 703 represents one or more interfaces between the master station and other devices in the network, such as dcus(s), and for convenience of description, the communication interface 703 is used in this application, and is not intended to limit the technical solution of this application.
The communication interface 703 may be a wired communication access port, a wireless communication interface, or a combination thereof, wherein the wired communication interface may be, for example, an ethernet interface. The ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a WLAN interface, a cellular network communication interface, a combination thereof, or the like.
The processor 701 may be a CPU, an NP, or a combination of a CPU and an NP. The processor 701 may further include a hardware chip. The hardware chips may be ASICs, PLDs, or a combination thereof. The PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
Optionally, the memory 702 is also used for storing program instructions; the processor 701 may call the program instructions stored in the memory 702 to perform one or more steps of the primary station in the embodiment shown in fig. 2, or in an alternative embodiment thereof, implement the method for controlling the smart meter to access the network shown in fig. 2.
The master station provided by the embodiment of the application determines whether to establish a file for the intelligent instrument according to the filing request message sent by the DCU, and feeds back the success or failure of filing to the DCU so as to control whether the intelligent instrument can access the network from the DCU. Like this, can establish archives from bottom to top automatically, and guarantee the uniformity of archives, improve intelligent instrument flexibility and the efficiency of going into the net. In addition, because files do not need to be manually entered into the main station, the labor cost can be reduced, and the problem that manual entry is easy to make mistakes can be avoided.
Referring to fig. 8, another DCU 800 provided in the embodiment of the present application is used to implement the function of the DCU in the method for controlling smart meter networking shown in fig. 3, where the DCU 800 includes: a sending module 801, a receiving module 802 and a processing module 803;
the receiving module 802 is configured to receive a network access request message sent by a first intelligent instrument, where the network access request message includes a meter number of the first intelligent instrument and an address of the first intelligent instrument;
the processing module 803 is configured to query an access record according to the address of the first smart meter; when the address of the first intelligent instrument exists in the access record, allowing the first intelligent instrument to access the network; when the address of the first intelligent instrument does not exist in the access record, adding the address of the first intelligent instrument in the access record, allowing the first intelligent instrument to access the network, and sending a filing request message to a master station, wherein the filing request message comprises the meter number of the first intelligent instrument and the identification of the DCU;
the sending module 801 is configured to send the profiling request message.
Before the receiving module 802 receives a network access request message sent by a 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 inform smart meters on the power line that they can be brought into the network from the DCU 800.
The DCU 800 may further include a storage module for storing the access record, where the access record is used to record the smart meter accessed to the DCU. The access record can be set in a white list form and used for controlling the intelligent instrument to access the network. The access record can comprise the address of the intelligent instrument; of course, the number of the smart meter may also be included.
The receiving module 802 is further configured to receive a profiling response message returned by the master station, where the profiling response message includes a meter number of the first intelligent meter.
The master station usually maintains a file repository for storing files of each intelligent instrument, wherein the files of the intelligent instruments comprise the meter numbers of the intelligent instruments and the identifications of the accessed DCUs; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included. The file of the first smart meter includes a first corresponding relationship between the meter number of the first smart meter and the identification of the DCU, and may further include an address, additional information, and the like of the first smart meter. And the DCU can determine that the master station establishes the file of the first intelligent instrument according to the file-establishing response message returned by the master station.
Optionally, the DCU 800 further includes a retransmission module, configured to send the archive request message to the master station again until the archive response message returned by the master station is received when the archive response message returned by the master station is not received within the time of the response threshold. Therefore, the master station can be ensured to receive the filing request message, and files of the first intelligent instrument are established or updated according to the request, so that the consistency of the files on the master station and the DCU is ensured, and the communication among the follow-up master station, the DCU and the intelligent instrument is ensured to be smooth.
The retransmission module can judge whether the time of the response threshold is reached or not in a timer mode.
Optionally, the network entry 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:
judging whether the additional information of the intelligent instrument is updated or not; and if the additional information of the first intelligent instrument is updated, sending a file updating message to the master station, wherein the file updating message comprises the identification of the DCU 800, the meter number of the first intelligent instrument and the additional information of the first intelligent instrument, so that the master station updates the additional information in the file of the first intelligent instrument. This ensures the profile consistency of the first smart meter between the DCU and the master station.
The sending module 801 may be further configured to send the profile update message.
Optionally, the DCU 800 further includes a threshold determining module, configured to determine whether the number of intelligent meters accessing the DCU is smaller than a preset accessible threshold; if the number of the intelligent instruments accessing the DCU is determined to be smaller than a preset access threshold, continuing the operation of querying an access record by the processing module 803 according to the address of the first intelligent instrument; and if the number of the intelligent instruments accessed to the DCU is not smaller than a preset access threshold value, rejecting the access of the first intelligent instrument and finishing the whole operation.
Whether the DCU 800 is saturated or not is judged by presetting an accessible threshold value, so that the situations that the DCU 800 is accessed to too many intelligent meters and overload occurs can be avoided. In this way, load balancing between DCUs may be achieved where multiple DCUs are deployed.
Referring to fig. 9, another DCU 900 provided in the embodiment of the present application is used to implement the function of the DCU in the method for controlling smart meter networking shown in fig. 3, where the DCU 900 includes: a processor 901, memory 902, and a communication interface 903;
the processor 901, the memory 902 and the communication interface 903 can be connected with each other through a bus 904; the bus 904 may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate 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 an intelligent meter accessing the DCU 900. The access record can be set in a white list form and used for controlling the intelligent instrument to access the network. The access record can comprise the address of the intelligent instrument; of course, the number of the smart meter may also be included.
The memory 902 may include volatile memory, such as RAM; the memory 902 may also include a non-volatile memory, such as a flash memory, HDD, or SSD; the memory 902 may also comprise a combination of the above-described types of memory.
The processor is configured to send a broadcast message, where the broadcast message includes an identifier of the DCU 900; receiving a network access request message sent by a first intelligent instrument, wherein the network access request message comprises a meter number of the first intelligent instrument and an address of the first intelligent instrument; inquiring the access record according to the address of the first intelligent instrument; when the address of the first intelligent instrument exists in the access record, allowing the first intelligent instrument to access the network; when the address of the first intelligent instrument does not exist in the access record, adding the address of the first intelligent instrument in the access record, allowing the first intelligent instrument to access the network, and sending a filing request message to a master station, wherein the filing request message comprises the meter number of the first intelligent instrument and the identification of the DCU 900.
Specifically, the processor 901 sends the broadcast message through the communication interface 903, and receives the network access request message through the communication interface 903.
In the embodiment of the present application, the communication interface 903 represents an interface for the DCU to communicate with other devices in the network, such as a master station, a smart meter, and the like, and may be one or more interfaces, and for convenience of description, the communication interface 903 is used in the present application, and is not limited to the technical solution of the present application.
The communication interface 903 includes a power line interface for communicating with the smart meter; the system also comprises a wired communication access port, a wireless communication interface or a combination thereof which are communicated with the main station; the wired communication interface may be an ethernet interface, for example. The ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a WLAN interface, a cellular network communication interface, a combination thereof, or the like.
Optionally, the network entry 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 additional information of the first smart meter is updated; and sending a file updating message to the master station after determining that the additional information of the first intelligent meter is updated, wherein the file updating message comprises the identification of the DCU 900, the meter number of the first intelligent meter and the additional information of the first intelligent meter, so that the master station updates the additional information in the file (namely, the first corresponding relation) of the first intelligent meter. This ensures the profile consistency of the first smart meter between the DCU and the master station.
Optionally, the processor 501 is further configured to determine whether the number of smart meters accessing the DCU is smaller than a preset access threshold; if the number of the intelligent instruments connected to the DCU is smaller than a preset access threshold value, continuing the operation of inquiring access records according to the address of the first intelligent instrument; and if the number of the intelligent instruments accessed to the DCU is not smaller than a preset access threshold value, rejecting the access of the first intelligent instrument and finishing the whole operation.
Whether the DCU is saturated or not is judged by presetting an accessible threshold value, so that the phenomenon that the DCU is overloaded due to access of too many intelligent meters can be avoided. In this way, load balancing between DCUs may be achieved where multiple DCUs are deployed.
Optionally, the processor 901 is further configured to determine whether a profiling response message returned by the master station is received within a response threshold time; and when the master station does not receive the filing response message returned by the master station within the response threshold time, sending the filing request message to the master station again until the filing response message returned by the master station is received. Therefore, the master station can be ensured to receive the filing request message, and files of the first intelligent instrument are established or updated according to the request, so that the consistency of the files on the master station and the DCU is ensured, and the communication among the follow-up master station, the DCU and the intelligent instrument is ensured to be smooth.
The processor 901 may start a timer to determine whether a response threshold time is reached.
The processor 901 may be a CPU, an NP, or a combination of a CPU and an NP. The processor 901 may further include a hardware chip. The hardware chips may be ASICs, PLDs, or a combination thereof. The PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
Optionally, the memory 902 is also used for storing program instructions; the processor 901 may call the program instructions stored in the memory 902 to execute one or more steps of the DCU in the embodiment shown in fig. 3, or in an alternative embodiment thereof, implement the method for controlling the smart meter to access the network shown in fig. 3.
Referring to fig. 10, another master station 1000 provided in the embodiment of the present application is used to implement the function of the master station in the method for controlling an intelligent meter to access a network as shown in fig. 3, where the master station 1000 includes: a receiving module 1001 and a processing module 1002;
the receiving module 1001 is configured to receive a filing request message sent by a DCU, where the filing request message includes an identifier of the DCU and a table number of a first smart meter;
the processing module 1002 is configured to query whether the table number of the first intelligent instrument exists in an archive according to the table number of the first intelligent instrument; when the table number of the first intelligent instrument does not exist in the archive, establishing the archive of the first intelligent instrument in the archive according to the filing request message, wherein the archive of the first intelligent instrument comprises the corresponding relation between the table number of the first intelligent instrument and the identification of the DCU; and when the table number of the first intelligent instrument exists in the archive library, updating the archive of the first intelligent instrument according to the filing request message.
Optionally, the master station 1000 further includes a storage module 1003, configured to store the archive; the file repository is used for storing files of the intelligent instruments, and the files of the intelligent instruments comprise the meter numbers of the intelligent instruments and the identifications of the accessed DCUs; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included.
The file of the first smart meter includes a first corresponding relationship between the meter number of the first smart meter and the identification of the DCU, and may further include an address, additional information, and the like of the first smart meter.
Optionally, the master station 1000 further includes a sending module 1004, configured to send a profiling response message to the DCU, where the profiling response message includes the meter number of the first smart meter.
Optionally, the receiving module 1001 is further configured to receive a profile update message sent by the DCU, where the profile update message includes an identifier of the DCU, a meter number of a second smart meter, and additional information of the second smart meter;
the processing module 1002 is further configured to update the file of the second smart meter with the additional information of the second smart meter when the file of the second smart meter exists in the archive, where the file of the second smart meter matches the meter number of the second smart meter and the identifier of the DCU. Specifically, when there is a file in the archive, which contains the second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the archive is considered to have the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU, the additional information in the file is updated by the additional information of the second smart meter.
Referring to fig. 11, another master station 1100 provided in an embodiment of the present application is used to implement a function of the master station in the method for controlling an intelligent meter to access a network shown in fig. 3, where the master station 1100 includes:
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, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.
The memory 1102 is configured to store an archive maintained by the processor for the master station; the file repository is used for storing files of the intelligent instruments, and the files of the intelligent instruments comprise the meter numbers of the intelligent instruments and the identifications of the accessed DCUs; of course, the address of the smart meter, additional information of the smart meter, etc. may also be included.
The memory 1102 may include volatile memory, such as RAM; the memory 1102 may also include non-volatile memory, such as flash memory, a HDD, or a SSD; memory 1102 may also comprise a combination of memories of the type described above.
The processor 1101 is configured to receive a filing request message sent by a DCU, where the filing request message includes an identifier of the DCU and a table number of a first intelligent instrument, and query, according to the table number of the first intelligent instrument, whether the table number of the first intelligent instrument exists in an archive; when the table number of the first intelligent instrument does not exist in the archive, establishing the archive of the first intelligent instrument in the archive according to the filing request message, wherein the archive of the first intelligent instrument comprises the corresponding relation between the table number of the first intelligent instrument and the identification of the DCU; and when the table number of the first intelligent instrument exists in the archive library, updating the archive of the first intelligent instrument according to the filing request message.
The file of the first smart meter includes a first corresponding relationship between the meter number of the first smart meter and the identification of the DCU, and may further include an address, additional information, and the like of the first smart meter.
Optionally, the processor 1101 is further configured to send a profiling response message to the DCU, where the profiling response message includes the meter number of the first smart meter.
Optionally, the processor 1101 is further configured to receive a profile update message sent by the DCU, where the profile update message includes an identifier of the DCU, a meter number of a second smart meter, and additional information of the second smart meter; and when the file of the second intelligent instrument matched with the meter number of the second intelligent instrument and the identification of the DCU exists in the file library, updating the file of the second intelligent instrument by using the additional information of the second intelligent instrument.
Specifically, when there is a file in the archive, which contains the second correspondence between the table number of the second smart meter and the identifier of the DCU, that is, the archive is considered to have the file of the second smart meter matching the table number of the second smart meter and the identifier of the DCU, the additional information in the file is updated by the additional information of the second smart meter.
The processor 1101 specifically receives the profiling request message and the profile update message through the communication interface 1103, and sends the profiling response message through the communication interface 1103.
In this embodiment, the communication interface 1103 represents one or more interfaces between the master station and other devices in the network, such as dcus(s), and for convenience of description, the communication interface 1103 is used in this application, and is not intended to limit the technical solution of this application.
The communication interface 1103 may be a wired communication access port, a wireless communication interface, or a combination thereof; the wired communication interface may be an ethernet interface, for example. The ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a WLAN interface, a cellular network communication interface, a combination thereof, or the like.
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 hardware chips may be ASICs, PLDs, or a combination thereof. The PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
Optionally, the memory 1102 is also used for storing program instructions; the processor 1101 may call the program instructions stored in the memory 1102 to perform one or more steps of the master station in the embodiment shown in fig. 3, or in an alternative embodiment thereof, implement the method for controlling the smart meter to access the network shown in fig. 3.
The master station provided by the embodiment of the application establishes the files for the intelligent instruments according to the filing request message sent by the DCU. The files are automatically established from bottom to top, and the network access flexibility and the network access efficiency of the intelligent instrument are improved. In addition, because files do not need to be manually entered into the main station, the labor cost can be reduced, and the problem that manual entry is easy to make mistakes can be avoided.
The embodiment of the present application further provides a system 1200 for controlling access of an intelligent instrument, which includes a master station 1201, a DCU1202 and an intelligent instrument 1203; the intelligent instrument 1203 is connected with the DCU1202 through a power line, and a PLC technology is adopted for communication.
The master station 1201 is configured to implement the function of the master station in the method for controlling the smart meter to access the network shown in fig. 2, and the structure and the function of the master station may refer to the embodiment shown in fig. 6 or 7, which is not described herein again.
The DCU1202 is configured to implement the function of the DCU in the method for controlling the smart meter to access the network shown in fig. 2, and the structure and the function of the DCU refer to the embodiment shown in fig. 4 or 5, which is not described herein again.
Multiple DCUs, multiple smart meters may be included in the system 1200. When a large number of intelligent instruments and DCUs exist in the system, the technical scheme provided by the application can save labor cost more obviously and improve the network access efficiency of the intelligent instruments.
The embodiment of the present application further provides another system 1300 for controlling access of an intelligent instrument, which includes a master station 1301, a DCU1302 and an intelligent instrument 1303; the intelligent instrument 1303 is connected with the DCU1302 through a power line, and communicates by using a PLC technology.
The master station 1301 is configured to implement the function of the master station in the method for controlling the smart meter to access the network shown in fig. 3, and the structure and the function of the master station may refer to the embodiment shown in fig. 10 or 11, which is not described herein again.
The DCU1302 is configured to implement the function of the DCU in the method for controlling the smart meter to access the network shown in fig. 3, and the structure and the function of the DCU refer to the embodiment shown in fig. 8 or 9, which is not described herein again.
Multiple DCUs, multiple smart meters may be included in the system 1300. When a large number of intelligent instruments and DCUs exist in the system, the technical scheme provided by the application can save labor cost more obviously and improve the network access efficiency of the intelligent instruments.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a 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 stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (25)

1. A method for controlling the network access of a smart meter is characterized by comprising the following steps:
a data concentration unit DCU receives a network access request message sent by an intelligent instrument, wherein the network access request message comprises a meter number of the intelligent instrument and an address of the intelligent instrument;
the DCU inquires an access record according to the address of the intelligent instrument;
when the address of the intelligent instrument does not exist in the access record, the DCU sends a filing request message to a master station, wherein the filing request message is used for requesting the master station to establish the file of the intelligent instrument, and the filing request message comprises the meter number of the intelligent instrument and the identification of the DCU; and the DCU receives a filing response message returned by the master station, wherein the filing response message comprises the table number and the filing result of the intelligent instrument, and when the filing result is determined to be successful, the DCU adds the address of the intelligent instrument in the access record to allow the intelligent instrument to access the network.
2. The method of claim 1, further comprising:
and when the file building result is failure, the DCU refuses the intelligent instrument to access the network.
3. The method of claim 1 or 2, wherein the network entry 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 comprises:
and when determining that the additional information of the intelligent instrument is updated, the DCU sends a file updating message to the master station, wherein the file updating message comprises the identification of the DCU, the meter number of the intelligent instrument and the additional information of the intelligent instrument.
4. The method of claim 1, wherein prior to the DCU querying an access record based on the address of the smart meter, the method further comprises:
the DCU determines that the number of intelligent meters accessed to the DCU is smaller than a preset accessible threshold value.
5. The method of claim 1, wherein prior to the DCU receiving a network entry request message sent by a smart meter, the method further comprises:
the DCU sends a broadcast message, wherein the broadcast message comprises an identifier of the DCU;
correspondingly, the network access request message also comprises the identification of the DCU.
6. A method for controlling the network access of a smart meter is characterized by comprising the following steps:
the method comprises the steps that a master station receives a filing request message sent by a DCU, wherein the filing request message is used for requesting the master station to establish a file of an intelligent instrument, and the filing request message comprises an identification of the DCU and a table number of a first intelligent instrument;
the master station queries an archive library according to the meter number of the first intelligent instrument;
when the table number of the first intelligent instrument does not exist in the archive library, the master station establishes the archive of the first intelligent instrument in the archive library according to the filing request message, the archive of the first intelligent instrument comprises the corresponding relation between the table number of the first intelligent instrument and the identification of the DCU, and sends a first filing response message to the DCU, and the first filing response message comprises the table number of the first intelligent instrument and a first filing result, so that the DCU determines whether to allow the first intelligent instrument to access the network according to the first filing result.
7. The method of claim 6, further comprising:
and when the table number of the first intelligent instrument exists in the archive library, the master station refuses the filing request of the DCU and sends a second filing response message to the DCU, wherein the second filing response message comprises the table number of the first intelligent instrument and a second filing result.
8. The method of claim 6, further comprising:
and when the table number of the first intelligent instrument exists in the archive library, the master station updates the archive of the first intelligent instrument according to the archive establishing request message and sends the first archive establishing response message to the DCU.
9. The method of any of claims 6 to 8, further comprising:
the master station receives a file updating message sent by the DCU, wherein the file updating message comprises an identification of the DCU, a meter number of a second intelligent instrument and additional information of the second intelligent instrument;
and when the archive of the second intelligent instrument is matched with the meter number of the second intelligent instrument and the identification of the DCU, the master station updates the archive of the second intelligent instrument by using the additional information of the second intelligent instrument.
10. A DCU, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a network access request message sent by an intelligent instrument, and the network access request message comprises a meter number of the intelligent instrument and an address of the intelligent instrument;
the processing module is used for inquiring the access record according to the address of the intelligent instrument; when the address of the intelligent instrument does not exist in the access record, sending a filing request message to a master station, wherein the filing request message is used for requesting the master station to establish the file of the intelligent instrument, and the filing request message comprises the meter number of the intelligent instrument and the identification 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 master station, where the filing response message includes a meter number of the intelligent instrument and a filing result, so that the DCU determines whether to allow the intelligent instrument to access the network according to the filing result;
and the processing module is further used for adding the address of the intelligent instrument in the access record when the filing result is determined to be successful, and allowing the intelligent instrument to access the network.
11. The DCU of claim 10, wherein the processing module is further configured to deny the smart meter access when the profiling result is a failure.
12. The DCU of claim 10 or 11, wherein the network entry request message further includes additional information of the smart meter;
the processing module is further used for judging whether the additional information of the intelligent instrument is updated or not when the address of the intelligent instrument exists in the access record;
the sending module is further configured to send a file update message to the master station when the processing module determines that the additional information of the intelligent instrument is updated, where the file update message includes the identification of the DCU, the meter number of the intelligent instrument, and the additional information of the intelligent instrument.
13. The DCU of claim 10, further comprising a threshold determination module configured to determine whether a number of smart meters coupled to the DCU is less than a predetermined coupling threshold.
14. A DCU, comprising: a processor and a memory;
the memory is used for storing an access record maintained by the processor for the DCU;
the processor is used for receiving a network access request message sent by an intelligent instrument, wherein the network access request message comprises a meter number of the intelligent instrument and an address of the intelligent instrument; inquiring the access record according to the address of the intelligent instrument; when the address of the intelligent instrument does not exist in the access record, sending a filing request message to a master station, wherein the filing request message is used for requesting the master station to establish the file of the intelligent instrument, and the filing request message comprises the meter number of the intelligent instrument and the identification of the DCU; and receiving a filing response message returned by the master station, wherein the filing response message comprises the meter number of the intelligent meter and a filing result, and when the filing result is determined to be successful, adding the address of the intelligent meter in the access record to allow the intelligent meter to access the network.
15. The DCU of claim 14, wherein the processor is further configured to deny the smart meter access when the profiling result is a failure.
16. The DCU of claim 14 or 15, wherein the network entry request message further includes additional information of the smart meter;
when the address of the intelligent instrument exists in the access record, the processor is further configured to send a file update message to the master station when it is determined that the additional information of the intelligent instrument is updated, where the file update message includes the identifier of the DCU, the meter number of the intelligent instrument, and the additional information of the intelligent instrument.
17. The DCU of claim 14, wherein the processor, prior to querying the access record based on the address of the smart meter, is further configured to determine that the number of smart meters accessing the DCU is less than a preset accessibility threshold.
18. A primary station, comprising:
the system comprises a receiving module, a configuration module and a configuration module, wherein the receiving module is used for receiving a configuration request message sent by a DCU (data communication unit), the configuration request message is used for requesting the master station to establish a file of an intelligent instrument, and the configuration request message comprises an identification of the DCU and a table number of a first intelligent instrument;
the processing module is used for inquiring an archive library according to the meter number of the first intelligent instrument; when the table number of the first intelligent instrument does not exist in the archive library, establishing the archive of the first intelligent instrument in the archive library according to the archive establishment request message, wherein the archive of the first intelligent instrument comprises the corresponding relation between the table number of the first intelligent instrument and the identification of the DCU, and sending a first archive establishment response message to the DCU, wherein the first archive establishment response message comprises the table number of the first intelligent instrument and a first archive establishment result; enabling the DCU to determine whether to allow the first intelligent instrument to access the network according to the first gear-building result;
and the sending module is used for sending the first filing response message.
19. The master station of claim 18, wherein the processing module is further configured to reject the filing request of the DCU when the table number of the first smart meter is present in the archive; sending a second filing response message to the DCU, wherein the second filing response message comprises the meter number of the first intelligent instrument and a second filing result;
the sending module is further configured to send the second profiling response message.
20. The master station of claim 18, wherein the processing module is further configured to update the profile of the first smart meter according to the profiling request message and send the first profiling response message to the DCU when the table number of the first smart meter exists in the profile repository.
21. The primary station of any one of claims 18 to 20,
the receiving module is further configured to receive a file update message sent by the DCU, where the file update message includes an identifier of the DCU, a meter number of a second intelligent instrument, and additional information of the second intelligent instrument;
and the processing module is further used for updating the file of the second intelligent instrument by using the additional information of the second intelligent instrument when the file of the second intelligent instrument matched with the meter number of the second intelligent instrument and the identification of the DCU exists in the file repository.
22. A primary station, comprising: a processor and a memory;
the memory is used for storing an archive database maintained by the processor for the master station;
the processor is configured to receive a filing request message sent by a DCU, where the filing request message is used to request the master station to establish a file of an intelligent instrument, the filing request message includes an identifier of the DCU and a table number of a first intelligent instrument, query an archive repository according to the table number of the first intelligent instrument, establish a file of the first intelligent instrument in the archive repository according to the filing request message when the table number of the first intelligent instrument does not exist in the archive repository, the file of the first intelligent instrument includes a correspondence between the table number of the first intelligent instrument and the identifier of the DCU, and send a first filing response message to the DCU, where the first filing response message includes the table number of the first intelligent instrument and a first filing result.
23. The master station of claim 22, wherein the processor is further configured to reject the filing request of the DCU and send a second filing response message to the DCU when the table number of the first smart meter exists in the archive, the second filing response message including the table number of the first smart meter and a second filing result.
24. The master station of claim 22, wherein the processor is further configured to update the profile of the first smart meter based on the profiling request message and send the first profiling response message to the DCU when the table number of the first smart meter is present in the profile repository.
25. The master station of claim 22, wherein the processor is further configured to receive a profile update message sent by the DCU, the profile update message including an identification of the DCU, a meter number of a second smart meter, and additional information for the second smart meter; and when the file of the second intelligent instrument matched with the meter number of the second intelligent instrument and the identification of the DCU exists in the file library, updating the file of the second intelligent instrument by using the additional information of the second intelligent instrument.
CN201510992032.9A 2015-12-26 2015-12-26 Method for controlling intelligent instrument to access network, master station and data centralized unit Active CN106920382B (en)

Priority Applications (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
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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN106920382A CN106920382A (en) 2017-07-04
CN106920382B true CN106920382B (en) 2020-02-21

Family

ID=59089001

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (6)

* 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
CN111767292A (en) * 2020-05-26 2020-10-13 宁波三星医疗电气股份有限公司 Ammeter communication module file fault tolerance method
CN112867102B (en) * 2021-01-14 2022-12-20 深圳海令科技有限公司 PLC-IoT equipment networking method and device
CN113395721B (en) * 2021-06-07 2023-10-31 阳光电源股份有限公司 Wireless networking method, node and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909248A (en) * 2009-06-04 2010-12-08 中兴通讯股份有限公司 User access method and system, user management method and system of closed user group
CN102299977A (en) * 2011-08-08 2011-12-28 深圳市金正方科技有限公司 Method for automatic register of electric energy meter by collector and collector
CN102545961A (en) * 2010-12-31 2012-07-04 弥亚微电子(上海)有限公司 Active reporting and automatic networking method and system for non-networked node
CN102832973A (en) * 2012-09-19 2012-12-19 湖南大学 Network accessing method of automatic meter reading system
CN103312563A (en) * 2013-06-24 2013-09-18 深圳市金正方科技股份有限公司 Automatic information collection method and system based on power line carrier communication
CN105023410A (en) * 2015-05-26 2015-11-04 江苏林洋电子股份有限公司 No-address-mode micropower wireless centralized collecting method
US9191378B2 (en) * 2012-02-27 2015-11-17 Kabushiki Kaisha Toshiba Communication apparatus and communication method
CN104916103B (en) * 2015-05-20 2018-04-20 成都秦川物联网科技股份有限公司 The wireless communication and control method of intelligence instrument

Family Cites Families (6)

* 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
JP2002325144A (en) * 2001-04-25 2002-11-08 Furukawa Electric Co Ltd:The Information collection system
CN102468986B (en) * 2010-11-04 2015-09-16 国家电网公司 The method of testing of power information acquisition system and system, main website
JP6168444B2 (en) * 2013-02-13 2017-07-26 パナソニックIpマネジメント株式会社 Meter reading system, communication device, smart meter
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909248A (en) * 2009-06-04 2010-12-08 中兴通讯股份有限公司 User access method and system, user management method and system of closed user group
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
US9191378B2 (en) * 2012-02-27 2015-11-17 Kabushiki Kaisha Toshiba Communication apparatus and communication method
CN102832973A (en) * 2012-09-19 2012-12-19 湖南大学 Network accessing method of automatic meter reading system
CN103312563A (en) * 2013-06-24 2013-09-18 深圳市金正方科技股份有限公司 Automatic information collection method and system based on power line carrier communication
CN104916103B (en) * 2015-05-20 2018-04-20 成都秦川物联网科技股份有限公司 The wireless communication and control method of intelligence instrument
CN105023410A (en) * 2015-05-26 2015-11-04 江苏林洋电子股份有限公司 No-address-mode micropower wireless centralized collecting method

Also Published As

Publication number Publication date
WO2017107473A1 (en) 2017-06-29
CN106920382A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
CN106920382B (en) Method for controlling intelligent instrument to access network, master station and data centralized unit
CN109117275B (en) Account checking method and device based on data slicing, computer equipment and storage medium
EP3675543B1 (en) Device control method and apparatus
CN109417492B (en) Network function NF management method and NF management equipment
CN109561054B (en) Data transmission method, controller and access device
US20220014434A1 (en) Slice Resource Deployment Method and Apparatus, and Slice Manager and Computer Storage Medium
EP2822307A1 (en) Charging method and device
CN112752324B (en) Network distribution method, device and system of intelligent equipment, electronic equipment and storage medium
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
EP3468234A1 (en) Information processing method for m2m application, cse and ae
KR20150087354A (en) Method and device for group management in machine communication
CN105635931A (en) Method and apparatus for resource access
CN106686752A (en) Method and device for establishing wireless connection through first application on user device
CN104917794A (en) Data sharing method, device and system
CN112765035A (en) Distributed pressure test system, method, device, electronic equipment and storage medium
CN112615945A (en) Domain name resolution record management method and device, computer equipment and storage medium
CN106877904B (en) Method and device for controlling meter equipment access
US20160294465A1 (en) Information collection system, relay terminal, control method for relay terminal to connect to center system, sensor terminal, and control method for sensor terminal to connect to center system
WO2016154918A1 (en) Data processing method, apparatus and device
CN112954716A (en) Network access method and device of mesh network, computer equipment and storage medium
US20230045914A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
CN113993129B (en) PDU session establishment method, terminal and computer readable storage medium
CN110830540A (en) Method for accessing smart television to cloud server, storage medium and application server
CN106028303B (en) Intelligent device discovery method and device
CN115499514A (en) Data storage service access method, computing device and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant