Power meter reading method, device and system, electronic equipment and storage medium
By improving the operation mode of the central coordinator, and retransmitting the meter reading frames using unicast and broadcast methods, the problem of incomplete data when meter reading fails in the prior art is solved, and the success rate and data integrity of power meter reading are improved.
Patent Information
- Application Number
- CN202411035187.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-29
AI Technical Summary
In the existing power meter reading method, the interaction between the central coordinator and the site adopts a simple model of back and forth, resulting in the incomplete data and low success rate of meter reading.
By improving the operation mode of the central coordinator, the first meter reading frame is sent by unicast method, and retransmitted when no reply is received. If it is still not successful, the second meter reading frame is sent by broadcast, including the address information of the target site. to ensure complete acquisition of data.
It improves the success rate of meter reading, ensures the integrity and accuracy of data, and enhances the reliability and stability of the system.
Smart Images

Figure CN119052678A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of broadband power line carrier communication, and in particular to an electric power meter reading method, device, system, electronic equipment and storage medium. Background Art
[0002] High-speed power line carrier (HPLC) meter reading technology is based on broadband power line carrier communication technology, which realizes remote data collection and transmission by transmitting high-frequency signals on power lines. The collected data is converted into high-frequency signals through the HPLC module and sent to the concentrator. The concentrator is responsible for receiving data from smart meters and uploading the data to the main station through the communication network. The main station processes and analyzes the data to realize the automation and intelligence of electricity billing. In the current power line carrier communication field, three equipment roles are defined, CCO (Central Coordinator), PCO (Proxy Coordinator) and STA (Station). CCO and PCO are responsible for completing functions such as networking control, network maintenance and management, and STA is responsible for terminal data collection and transmission.
[0003] The current electricity meter reading methods are all simple models of a one-way round trip, that is, the CCO sends the meter reading frame to the STA, the STA sends the meter reading data to the CCO, and the CCO sends the meter reading data to the concentrator. This method has many disadvantages. For example, if there is no reply to the uplink message after the downlink message is sent, subsequent processing cannot be performed. In other words, if a single meter reading fails, in the field application, it means that the data at that time or that period is missing, which will lead to incomplete data and a low success rate of meter reading. The current method for dealing with the low success rate of meter reading is to process it on the concentrator side, and there is no improvement on the CCO side. The CCO side performs a simple one-way operation and cannot provide feedback or reply to the failure of meter reading. Summary of the invention
[0004] In view of this, embodiments of the present invention provide an electric power meter reading method, device, system, electronic device and computer-readable storage medium, thereby improving the success rate of meter reading by improving the central coordinator.
[0005] In a first aspect, an embodiment of the present invention provides a power meter reading method, which is applied to a central coordinator, and the method includes:
[0006] Sending a first meter reading frame to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data;
[0007] In response to not receiving the meter reading data returned by the target site, resending the first meter reading frame to the target site at least once in a unicast manner;
[0008] In response to not receiving the meter reading data returned by the target site, a second meter reading frame is sent in a broadcasting manner, wherein the second meter reading frame includes the address information of the target site.
[0009] In some embodiments, the response to not receiving the meter reading data returned by the target site specifically includes:
[0010] In response to not receiving the meter reading data returned by the target site within a predetermined time after sending the first meter reading frame.
[0011] In some embodiments, resending the first meter reading frame to the target site at least once in a unicast manner specifically comprises iteratively performing the following steps:
[0012] In response to not receiving the meter reading data corresponding to the i-1th first meter reading frame, sending the i-th first meter reading frame to the target site in a unicast manner until the meter reading data is received or i=N, where i is a positive integer greater than 1 and less than or equal to N, and N is a positive integer greater than 1.
[0013] In some embodiments, the method further comprises:
[0014] In response to not receiving the meter reading data corresponding to the second meter reading frame, determining that the meter reading has failed;
[0015] Send meter reading failure information to the concentrator.
[0016] In some embodiments, the method further comprises:
[0017] In response to receiving the meter reading data returned by the target site, the meter reading data is sent to the concentrator.
[0018] In some embodiments, the meter reading data includes at least one of voltage, current, power factor, and power quantity.
[0019] In a second aspect, an embodiment of the present invention provides an electric power meter reading device, the device comprising:
[0020] A first unicast sending unit, configured to send a first meter reading frame to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data;
[0021] a second unicast sending unit, configured to resend the first meter reading frame to the target site at least once in a unicast manner in response to failure to receive the meter reading data returned by the target site;
[0022] The broadcast sending unit is used to send a second meter reading frame in a broadcast manner in response to not receiving the meter reading data returned by the target site, wherein the second meter reading frame includes the address information of the target site.
[0023] In a third aspect, an embodiment of the present invention provides an electric power meter reading system, the system comprising:
[0024] Concentrator;
[0025] A central coordinator connected to the concentrator;
[0026] A plurality of proxy coordinators connected to the central coordinator or the proxy coordinator;
[0027] A plurality of sites connected to the central coordinator or the proxy coordinator;
[0028] A plurality of electricity meters, each of which is connected to a corresponding site;
[0029] The central coordinator is configured to implement the method as described in the first aspect.
[0030] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in the first aspect.
[0031] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described in the first aspect is implemented.
[0032] The technical solution of the embodiment of the present invention is to send a first meter reading frame to the target site in a unicast manner, the first meter reading frame is used to instruct the target site to obtain meter reading data, in response to not receiving the meter reading data returned by the target site, resend the first meter reading frame to the target site in a unicast manner at least once, and in response to not receiving the meter reading data returned by the target site, send a second meter reading frame in a broadcast manner, the second meter reading frame includes the address information of the target site. Therefore, the success rate of meter reading can be improved by improving the central coordinator. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0034] Figure 1 is a schematic diagram of an electric power meter reading system according to an embodiment of the present invention;
[0035] Figure 2is a schematic diagram of the operation of the electric power meter reading system according to an embodiment of the present invention;
[0036] Figure 3 is a flow chart of a power meter reading method according to an embodiment of the present invention;
[0037] Figure 4 is a schematic diagram of the connection between a collector and multiple electric meters according to an embodiment of the present invention;
[0038] Figure 5 is a schematic diagram of the connection between a modified collector and multiple electric meters according to an embodiment of the present invention;
[0039] Figure 6 is a schematic diagram of an electric power meter reading method according to an embodiment of the present invention;
[0040] Figure 7 is a schematic diagram of an electric power meter reading device according to an embodiment of the present invention;
[0041] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.
[0043] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0044] At the same time, it should be understood that in the following description, "circuit" refers to a conductive loop composed of at least one element or subcircuit through electrical connection or electromagnetic connection. When an element or circuit is said to be "connected to" another element or an element / circuit is said to be "connected between" two nodes, it can be directly coupled or connected to another element or there can be an intermediate element, and the connection between the elements can be physical, logical, or a combination thereof. On the contrary, when an element is said to be "directly coupled to" or "directly connected to" another element, it means that there is no intermediate element between the two.
[0045] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".
[0046] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.
[0047] The HPLC network is a tree structure consisting of CCO central coordination nodes, PCO proxy coordination nodes, and STA terminal nodes. For example, a CCO node can connect to one or more PCO nodes, or one or more STA nodes; a PCO node can connect to one or more STA nodes, or one or more PCO nodes. The network communication method adopts the central scheduling method. After the CCO node is powered on, it will perform a full network detection to determine the PCO node and STA node, and then listen to the message of the STA node or actively inquire the STA node, and perform transmission management and control through CSMA (Carrier Sense Multiple Access) carrier detection multiple access.
[0048] Figure 1 Schematic diagram of an electric power meter reading system according to an embodiment of the present invention. Figure 1 As shown, the electric power meter reading system includes a concentrator, a central coordinator (CCO), a proxy coordinator (PCO, Professional Conference Organizer), and a station (STA, Station).
[0049] The concentrator is connected to the central coordinator and is a device that plays a core role in the remote centralized meter reading system. It is mainly responsible for data collection, processing, transmission and system control. It is the central management device and control device of the remote meter reading system, and is mainly used to collect, store and synchronize the readings of multiple meters. Specifically, the concentrator reads the user's meter data according to the instructions of the control center, and sends data back to the control center or conveys the instructions of the master control station to the meter reading controller.
[0050] The central coordinator is connected to the concentrator upwards and to the proxy coordinator and site downwards. The embodiment of the present invention is described with PCO1, PCO2, PCO3, and PCO4 as proxy coordinators and STA1, STA2, and STA3 as central coordinators. The main functions include networking control, network maintenance management, and data exchange with other devices. Specifically, CCO is responsible for receiving meter reading tasks sent by the concentrator and collecting data from STA. After completing data collection, CCO will feed the data back to the concentrator, which will then store, process, or forward the data to the background server. Through the efficient work of CCO, the power meter reading system can realize functions such as remote meter reading, real-time monitoring, and abnormal alarm, greatly improving meter reading efficiency and data accuracy.
[0051] The proxy coordinator is connected to the central coordinator or proxy coordinator upwards, and to the proxy coordinator and the site downwards. It is an important relay device in the communication network and acts as a relay agent. The PCO plays a bridge role in the tree-type networking structure, connecting the CCO and each STA, helping the CCO to indirectly connect and manage all sites. The PCO can assist the CCO in data collection and transmission, ensuring that data is transmitted stably and accurately in a complex network environment. On the other hand, the PCO also has certain network management functions, which can monitor the network status, detect and handle network failures in a timely manner, thereby ensuring the stable operation of the entire meter reading system. With the introduction of the PCO, the power meter reading system can more flexibly cope with complex network topologies and improve the efficiency and reliability of data transmission.
[0052] The site is connected to the central coordinator or proxy coordinator, and is a smart meter communication module installed at each power user. It can also be the meter itself. In the embodiment of the present invention, it is specifically a meter communication module. As the basic unit of the system, the site is responsible for real-time collection and accurate recording of the user's electricity consumption data, such as key parameters such as power, voltage, and current. The site uses advanced wireless communication technology to efficiently transmit data with the central coordinator or proxy coordinator to ensure the real-time and accuracy of the data. In addition to being able to respond to remote meter reading, parameter setting and other control instructions issued by the system center, the site also has a self-status monitoring function to promptly detect and handle potential problems.
[0053] In the embodiment of the present invention, a first meter reading frame is sent to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data, and in response to not receiving the meter reading data returned by the target site, the first meter reading frame is resent to the target site in a unicast manner at least once, and in response to not receiving the meter reading data returned by the target site, a second meter reading frame is sent in a broadcast manner, wherein the second meter reading frame includes the address information of the target site. Thus, the success rate of meter reading can be improved by improving the central coordinator.
[0054] Figure 2 FIG. 1 is a flowchart of the operation of the electric power meter reading system according to an embodiment of the present invention. Figure 2 As shown, the working process of the power meter reading system is as follows:
[0055] Step S1011: The concentrator sends a meter reading frame of the electric meter E1 to the CCO.
[0056] Step S1012: The concentrator sends a meter reading frame of the electric meter E2 to the CCO.
[0057] Step S1013: The concentrator sends a meter reading frame of the electric meter EN to the CCO.
[0058] The meter reading frame is used to instruct the CCO to send a meter reading frame to the STA corresponding to the meter, so that the STA reads the meter data according to the meter reading frame.
[0059] Specifically, the embodiment of the present invention is described by taking the example that the concentrator can concurrently read the data of N electric meters, that is, the maximum concurrent number of the concentrator is N. Through steps S1011 to S1013, N meter reading frames (E1-EN) are sent to the CCO, and each meter reading frame corresponds to a different electric meter.
[0060] Among them, the communication between the concentrator and the CCO can be achieved through the Q / GDW 1376.2 protocol. The Q / GDW 1376.2 protocol is mainly applicable to the data exchange between the concentrator and the local communication module in the power user power consumption information collection system, including the data transmission frame format, data encoding and transmission rules of local communication networking methods such as low-voltage power line carrier, micro-power wireless communication, and Ethernet transmission channel. It stipulates the data transmission format and rules between the concentrator and the local communication module, ensuring the accuracy and efficiency of data exchange in the power system.
[0061] It should be understood that for ease of explanation, Figure 2 Only three steps are shown for the concentrator to send a meter reading frame to the CCO, but in actual application scenarios, a total of N steps are included, and the meter reading frames sent in the N steps correspond to different meters. At the same time, the embodiment of the present invention does not limit the execution order of the N steps for the concentrator to send a meter reading frame to the CCO, and they can be executed simultaneously or sequentially.
[0062] Step S1021: The CCO sends a meter reading frame of the electric meter E1 to STA1.
[0063] Step S1022: The CCO sends a meter reading frame of the electric meter E2 to STA2.
[0064] Step S1023: The CCO sends a meter reading frame of the electric meter EN to the STAN.
[0065] Specifically, the meter reading frame includes a corresponding destination address, which can be the address of the meter or the address of the STA. After receiving the meter reading frame sent by the concentrator, the CCO parses the meter reading frame to obtain the destination address corresponding to each meter reading frame, determines the address of the next-level node according to the destination address, and sends the meter reading frame to the next-level node until the meter reading frame is sent to the STA. When the next-level node is the STA, it can be sent directly, but when the next-level node is the PCO, the PCO continues to send the meter reading frame to the next-level node according to the received meter reading frame until the meter reading frame is sent to the STA.
[0066] It should be understood that for ease of explanation, Figure 2 Only three steps are shown for CCO to send meter reading frames to STA, but in actual application scenarios, a total of N steps are included, and the meter reading frames sent in the N steps correspond to different meters. At the same time, the embodiment of the present invention does not limit the execution order of the N steps for CCO to send meter reading frames to STA, which can be executed simultaneously or sequentially.
[0067] The meter reading frame is used to instruct the STA to read the meter, and the meter reading frame includes the address of the STA. The embodiment of the present invention also specifically improves this step. Specifically, in the prior art, the interaction between the CCO and the STA is a simple back-and-forth model, that is, the CCO sends a meter reading frame to the STA, and the STA returns the meter reading data to the CCO after the meter reading is completed. Therefore, if the CCO sends a meter reading frame to the STA and the STA does not reply, the meter reading process will terminate, resulting in the loss of data of the corresponding meter in the corresponding time period.
[0068] In the embodiment of the present invention, the meter reading frame is implemented by a PLC (Power Line Communication) meter reading message, which specifically refers to a data message in a specific format transmitted through the power line for reading or querying status information, measurement data or control parameters of various devices or nodes in the power system. The PLC message follows a specific communication protocol to ensure efficient, accurate and secure transmission of data on the power line.
[0069] Step S1031: STA1 sends a meter reading instruction to the electric meter E1.
[0070] Step S1032: The STA2 sends a meter reading instruction to the electric meter E2.
[0071] Step S1033: The STAN sends a meter reading instruction to the electric meter EN.
[0072] The meter reading instruction is used to instruct the electric meter to upload the meter reading data to the STA, which is specifically implemented through the DLT645 protocol or DLT698.45.
[0073] The DLT645 protocol is a communication protocol for power information collection. It mainly regulates the communication method between electric energy metering equipment and collection equipment, supports multiple physical layer communication media, such as RS-485 bus, optical fiber communication, etc., to ensure the flexibility and reliability of communication. At the same time, it adopts a request-response based communication method, defines detailed data frame format, data transmission method and function code, making the communication between electric energy metering equipment and data collection equipment more efficient and accurate.
[0074] The DLT698.45 protocol is the multi-function electric energy meter communication protocol, which mainly stipulates the communication method, communication protocol and communication parameters between the electric energy meter and other devices. It has the characteristics of high efficiency, reliability, strong flexibility and high security. It supports multiple communication methods and security mechanisms, such as data encryption, session key management, etc., to ensure the efficiency and security of data transmission.
[0075] It should be understood that for ease of explanation, Figure 2 Only three steps are shown for STA to send a meter reading instruction to the electric meter, but in actual application scenarios, a total of N steps are included, and the meter reading instructions sent in the N steps correspond to different electric meters. At the same time, the embodiment of the present invention does not limit the execution order of the N steps for STA to send a meter reading instruction to the electric meter, and they can be executed simultaneously or sequentially.
[0076] Step S1041 : The electric meter E1 uploads the meter reading data to STA1 .
[0077] Step S1042: Electric meter E2 uploads meter reading data to STA2.
[0078] Step S1043: The electric meter EN uploads the meter reading data to STAN.
[0079] In this embodiment, after receiving the meter reading instruction, each electric meter obtains the meter reading data, and the corresponding STA sends the meter reading data.
[0080] In some embodiments, the meter reading data includes at least one of voltage, current, power factor, and power quantity.
[0081] It should be understood that for ease of explanation, Figure 2 Only three steps are shown for the meter to upload meter reading data to the STA, but in actual application scenarios, a total of N steps are included, and the meter reading instructions sent in the N steps correspond to different meters. At the same time, the embodiment of the present invention does not limit the execution order of the N steps of the STA sending the meter reading instruction to the meter, which can be executed simultaneously or sequentially.
[0082] Step S1051: STA1 sends meter reading data of electric meter E1 to CCO.
[0083] Step S1052: STA2 sends meter reading data of electric meter E2 to CCO.
[0084] Step S1053: STAN sends the meter reading data of the electricity meter EN to the CCO.
[0085] It should be understood that for ease of explanation, Figure 2 Only three steps are shown for STA to send meter reading data to CCO, but in actual application scenarios, a total of N steps are included, and the meter reading data sent in the N steps correspond to the meter reading data of different meters. At the same time, the embodiment of the present invention does not limit the execution order of the N steps for STA to send meter reading data to CCO, which can be executed simultaneously or successively.
[0086] Step S1061: The CCO sends the meter reading data of the electric meter E1 to the concentrator.
[0087] Step S1062: The CCO sends the meter reading data of the electric meter E2 to the concentrator.
[0088] Step S1063: The CCO sends the meter reading data of the electric meter EN to the concentrator.
[0089] In response to receiving the meter reading data returned by the STA, the CCO sends the meter reading data to the concentrator.
[0090] It should be understood that for ease of explanation, Figure 2 Only three steps are shown for the CCO to send meter reading data to the concentrator, but in actual application scenarios, a total of N steps are included, and the meter reading data sent in the N steps correspond to different electricity meters. At the same time, the embodiment of the present invention does not limit the execution order of the N steps for the CCO to send meter reading data to the concentrator, and they can be executed simultaneously or sequentially.
[0091] Step S1014: The concentrator sends a meter reading frame of the electric meter E(N+1) to the CCO.
[0092] As mentioned above, the maximum concurrent number of the concentrator is N. When the number of meters is greater than N, the concentrator resends the meter reading frame corresponding to the next meter each time it receives meter reading data corresponding to a meter, so that the number of meters being read at each moment is always N, so as to improve the efficiency of meter reading.
[0093] That is, after step S1061, when the concentrator receives the meter reading data returned by the CCO, the concentrator resends the N+1 meter reading frame to the CCO. When the concentrator receives the meter reading data returned by the next CCO, the concentrator resends the N+2 meter reading frame to the CCO. And so on, so that the concurrent number of the system operation reaches the maximum.
[0094] In the embodiment of the present invention, a first meter reading frame is sent to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data, and in response to not receiving the meter reading data returned by the target site, the first meter reading frame is resent to the target site in a unicast manner at least once, and in response to not receiving the meter reading data returned by the target site, a second meter reading frame is sent in a broadcast manner, wherein the second meter reading frame includes the address information of the target site. Thus, the success rate of meter reading can be improved by improving the central coordinator.
[0095] Figure 3 Schematic diagram of a power meter reading method according to an embodiment of the present invention, which is applied to a central coordinator, such as Figure 3 The embodiment of the present invention takes sending the first meter reading frame twice as an example for explanation, and the number of times of sending the first meter reading frame can also be set according to actual conditions, and the embodiment of the present invention does not limit this.
[0096] Step S201: Send a first meter reading frame to a target site in a unicast manner.
[0097] Among them, the unicast is a point-to-point communication method, which ensures that data is directly and accurately transmitted from the sending end to the designated receiving end, and can ensure the accuracy of user electricity bill measurement and data security. In other words, the meter reading frame has a fixed address, specifically the address of the target site, that is, the CCO only sends the first meter reading frame to the target site.
[0098] The function of the first meter reading frame is to instruct the target site to perform a meter reading operation, that is, to obtain the meter reading data of the corresponding electric meter. If the target site receives the meter reading frame and works normally, it can read the data of the corresponding electric meter and send it to the CCO. Therefore, the specific content of the first meter reading frame includes meter reading item designation, electric meter identification, checksum / error detection, etc. Among them, the meter reading item designation is specifically used to specify the power consumption information data items that the target site needs to obtain from the corresponding electric meter, such as voltage and current. The electric meter identification is specifically used to ensure that the target site can accurately match the meter reading instruction with the corresponding electric meter. The checksum / error detection is used to detect and verify the acquired meter reading data.
[0099] Step S202: Determine whether meter reading data is received.
[0100] Specifically, it is determined whether the CCO receives the meter reading data returned by the target site within a predetermined time after sending the first meter reading frame. For example, the predetermined time is 8 seconds. If the CCO still does not receive the meter reading data within 8 seconds after sending the meter reading frame, it is determined that the meter reading data has not been received. It should be understood that the predetermined time needs to be set according to actual conditions and actual needs.
[0101] If so, it indicates that the meter reading is successful and the meter reading data is obtained, and the process goes to step S208.
[0102] If not, it indicates that the meter reading has failed and no meter reading data has been obtained, and a re-reading is required, and the process goes to step S203.
[0103] Step S203: resend the first meter reading frame to the target site in unicast mode.
[0104] After the CCO sends the meter reading frame to the target site, if the target site is working normally, the meter reading data of the meter should be obtained and returned to the target site. However, if there is a problem in the communication between the CCO and the target site, it is possible that the meter reading data returned by the target site is not received. In other words, if the CCO does not receive the meter reading data, the data storage of this meter reading in the concentrator is missing. Therefore, it is necessary to continue to send the first meter reading frame to the target site again and request to obtain the meter reading data again.
[0105] Step S204: Determine whether meter reading data is received.
[0106] Specifically, it is determined whether the CCO receives the meter reading data returned by the target site within a predetermined time after sending the first meter reading frame.
[0107] If so, it indicates that the meter reading is successful and the meter reading data is obtained, and the process goes to step S208.
[0108] If not, it indicates that the meter reading has failed and no meter reading data has been obtained, and it is necessary to read the meter again, and the process goes to step S205.
[0109] Step S205: resend the first meter reading frame to the target site in unicast mode.
[0110] After the CCO resends the meter reading frame to the target site, if the target site works normally, the meter reading data of the electric meter should be obtained and returned to the target site. However, if there is still a problem in the communication between the CCO and the target site, it may result in the meter reading data returned by the target site not being received. Therefore, it is necessary to continue to send the first meter reading frame to the target site again to request the meter reading data again.
[0111] Step S206: Determine whether meter reading data is received.
[0112] If so, it indicates that the meter reading is successful and the meter reading data is obtained, and the process goes to step S208.
[0113] If not, it indicates that the meter reading has failed and no meter reading data has been obtained, and a re-reading is required, and the process goes to step S207.
[0114] Step S207: broadcast and send the second meter reading frame.
[0115] The broadcast mode is a point-to-all communication mode, in which one node sends data to all other nodes. In the power meter reading system, the concentrator broadcasts the control instructions to all meters or other devices in the system. Sending data by broadcasting can reduce the problem of data transmission interruption caused by single point failure and improve the reliability of the system.
[0116] Specifically, after the first meter reading frame is resent at least once in unicast mode, if the CCO still does not receive the meter reading data returned by the target site, it is necessary to send the second meter reading frame to the site in broadcast mode. It should be noted that although the first meter reading frame and the second meter reading frame both instruct the target site to make the same response, the two meter reading frames are not the same. Specifically, when the meter reading frame is broadcast, the address of the frame is set to the broadcast address. After the CCO broadcasts and sends it, all sites on the network will receive and process the frame, but not all devices will respond. Only the target site will respond.
[0117] Regarding the purpose of broadcasting the second meter reading frame, Figure 4 and Figure 5 The content of is used as an example to illustrate. Figure 4 Schematic diagram of the connection between the collector and multiple electric meters according to an embodiment of the present invention. Figure 4 As shown, the initial state of the collector is that two meters are connected. The collector will search for the hanging meters when powered on, and then form its own hanging file to record the hanging meters. At this time, the collector hanging meter files are two. At this time, hang any meter under the collector, such as Figure 5 As shown, the collector will have three meters hanging below it, but since the collector has searched its own hanging situation, it cannot recognize that the meter E3 is hanging below it. At this time, the CCO cannot read the meter E3 because the hanging situation reported by the collector to the CCO does not include the meter E3.
[0118] At this time, CCO cannot meet the reading conditions for the collector's meter E3 in a single meter reading and will fail to read the meter, because ordinary meter reading messages are sent unicast, CCO does not know the collector corresponding to meter E3, and the unicast meter reading frame will not be received when sent to the collector, so the meter E3 cannot be read.
[0119] However, when reading meters according to the solution of the embodiment of the present invention, when rereading by broadcast, because the message is sent by broadcast, the collector can definitely receive the meter reading frame through the message sent by broadcast, send the meter reading frame to the electric meter E3, and reply the corresponding meter reading data. Therefore, it can ensure that the data of all electric meters are read and avoid data omission.
[0120] After the second meter reading frame is broadcast and sent, no matter whether the CCO receives the meter reading data returned by the target site, the meter reading process for the target site is terminated.
[0121] Step S208, end.
[0122] It should be understood that, in general, when the number of times the meter reading frame is resent by unicast is N, the resending of the first meter reading frame to the target site in a unicast manner at least once is specifically to iteratively perform the following steps: in response to not receiving the meter reading data corresponding to the i-1th first meter reading frame, sending the first meter reading frame to the target site in a unicast manner i times until the meter reading data is received or i=N, wherein i is a positive integer greater than 1 and less than or equal to N, and N is a positive integer greater than 1.
[0123] When the number of times the meter reading frame is resent by unicast is 1, in response to not receiving the meter reading data returned by the target site, resending the first meter reading frame to the target site in unicast at least once specifically includes: in response to not receiving the meter reading data returned by the target site, resending the first meter reading frame to the target site in unicast once.
[0124] In some embodiments, in response to not receiving the meter reading data corresponding to the second meter reading frame, it is determined that the meter reading has failed, and the CCO sends information of the meter reading failure to the concentrator.
[0125] In the embodiment of the present invention, a first meter reading frame is sent to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data, and in response to not receiving the meter reading data returned by the target site, the first meter reading frame is resent to the target site in a unicast manner at least once, and in response to not receiving the meter reading data returned by the target site, a second meter reading frame is sent in a broadcast manner, wherein the second meter reading frame includes the address information of the target site. Thus, the success rate of meter reading can be improved by improving the central coordinator.
[0126] Figure 6 is a flow chart of an electric power meter reading method according to an embodiment of the present invention, wherein the electric power meter reading method is applied to a central coordinator, such as Figure 6 As shown, the electric power meter reading method comprises the following steps:
[0127] Step S301: Send a first meter reading frame to a target site in a unicast manner, where the first meter reading frame is used to instruct the target site to obtain meter reading data.
[0128] Step S302: in response to not receiving the meter reading data returned by the target site, resending the first meter reading frame to the target site in a unicast manner at least once.
[0129] Specifically, after the meter reading data of the target site is not received, the data is repackaged and the first meter reading frame is sent to the target site again. If the meter reading data of the target site is still not received, the first meter reading frame is continuously sent until the meter reading data is received or the number of transmissions reaches a predetermined value.
[0130] Step S303: in response to not receiving the meter reading data returned by the target site, sending a second meter reading frame in a broadcasting manner, wherein the second meter reading frame includes the address information of the target site.
[0131] Specifically, since all sites will receive the broadcast transmission, the second meter reading frame needs to include the address information of the target site to ensure that only the target site responds to the second meter reading frame. Regardless of whether a response is received from the target site in this step, the meter reading process ends.
[0132] In the embodiment of the present invention, a first meter reading frame is sent to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data, and in response to not receiving the meter reading data returned by the target site, the first meter reading frame is resent to the target site in a unicast manner at least once, and in response to not receiving the meter reading data returned by the target site, a second meter reading frame is sent in a broadcast manner, wherein the second meter reading frame includes the address information of the target site. Thus, the success rate of meter reading can be improved by improving the central coordinator.
[0133] Figure 7 Schematic diagram of an electric power meter reading device according to an embodiment of the present invention. Figure 7 As shown, the power meter reading device includes a first unicast sending unit 71, a second unicast sending unit 72, and a broadcast sending unit 73. The first unicast sending unit 71 is used to send a first meter reading frame to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data. The second unicast sending unit 72 is used to resend the first meter reading frame to the target site in a unicast manner at least once in response to not receiving the meter reading data returned by the target site. The broadcast sending unit 73 is used to send a second meter reading frame in a broadcast manner in response to not receiving the meter reading data returned by the target site, wherein the second meter reading frame includes the address information of the target site.
[0134] In some embodiments, the response to not receiving the meter reading data returned by the target site specifically includes:
[0135] In response to not receiving the meter reading data returned by the target site within a predetermined time after sending the first meter reading frame.
[0136] In some embodiments, resending the first meter reading frame to the target site at least once in a unicast manner specifically comprises iteratively performing the following steps:
[0137] In response to not receiving the meter reading data corresponding to the i-1th first meter reading frame, sending the i-th first meter reading frame to the target site in a unicast manner until the meter reading data is received or i=N, where i is a positive integer greater than 1 and less than or equal to N, and N is a positive integer greater than 1.
[0138] In some embodiments, the apparatus further comprises:
[0139] a meter reading failure determination unit, configured to determine that the meter reading has failed in response to failure to receive the meter reading data corresponding to the second meter reading frame;
[0140] The information sending unit is used to send the meter reading failure information to the concentrator.
[0141] In some embodiments, the apparatus further comprises:
[0142] The meter reading data sending unit is used to send the meter reading data to the concentrator in response to receiving the meter reading data returned by the target site.
[0143] In some embodiments, the meter reading data includes at least one of voltage, current, power factor, and power quantity.
[0144] In the embodiment of the present invention, a first meter reading frame is sent to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data, and in response to not receiving the meter reading data returned by the target site, the first meter reading frame is resent to the target site in a unicast manner at least once, and in response to not receiving the meter reading data returned by the target site, a second meter reading frame is sent in a broadcast manner, wherein the second meter reading frame includes the address information of the target site. Thus, the success rate of meter reading can be improved by improving the central coordinator.
[0145] Figure 8 Schematic diagram of an electronic device according to an embodiment of the present invention. Figure 8 As shown, Figure 8The electronic device shown is a general address query device, which includes a general computer hardware structure, which at least includes a processor 81 and a memory 82. The processor 81 and the memory 82 are connected via a bus 83. The memory 82 is suitable for storing instructions or programs executable by the processor 81. The processor 81 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 81 executes the instructions stored in the memory 82, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 83 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 84 and the display device and the input / output (I / O) device 85. The input / output (I / O) device 85 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 85 is connected to the system via an input / output (I / O) controller 86.
[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0147] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.
[0148] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.
[0149] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.
[0150] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.
[0151] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0152] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for reading electric power meters, applied to a central coordinator, characterized in that: The method comprises: Sending a first meter reading frame to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data; In response to not receiving the meter reading data returned by the target site, resending the first meter reading frame to the target site at least once in a unicast manner; In response to not receiving the meter reading data returned by the target site, sending a second meter reading frame in a broadcasting manner, wherein the second meter reading frame includes the address information of the target site.
2. The method according to claim 1, characterized in that: The response to not receiving the meter reading data returned by the target site is specifically: In response to not receiving the meter reading data returned by the target site within a predetermined time after sending the first meter reading frame.
3. The method according to claim 1, characterized in that The resending of the first meter reading frame at least once to the target site in a unicast manner specifically includes performing the following steps in an iterative manner: In response to not receiving the meter reading data corresponding to the i-1th first meter reading frame, sending the i-th first meter reading frame to the target site in a unicast manner until the meter reading data is received or i=N, where i is a positive integer greater than 1 and less than or equal to N, and N is a positive integer greater than 1.
4. The method according to claim 1, characterized in that: The method further comprises: In response to not receiving the meter reading data corresponding to the second meter reading frame, determining that the meter reading has failed; Send meter reading failure information to the concentrator.
5. The method according to claim 1, characterized in that The method further comprises: In response to receiving the meter reading data returned by the target site, the meter reading data is sent to the concentrator.
6. The method according to claim 1, characterized in that The meter reading data includes at least one of voltage, current, power factor and power quantity.
7. An electric power meter reading device, characterized in that: The device comprises: A first unicast sending unit, configured to send a first meter reading frame to a target site in a unicast manner, wherein the first meter reading frame is used to instruct the target site to obtain meter reading data; a second unicast sending unit, configured to resend the first meter reading frame to the target site at least once in a unicast manner in response to failure to receive the meter reading data returned by the target site; The broadcast sending unit is used to send a second meter reading frame in a broadcast manner in response to not receiving the meter reading data returned by the target site, wherein the second meter reading frame includes the address information of the target site.
8. An electric power meter reading system, characterized in that: The system comprises: Concentrator; A central coordinator connected to the concentrator; A plurality of proxy coordinators connected to the central coordinator or the proxy coordinator; A plurality of sites connected to the central coordinator or the proxy coordinator; A plurality of electricity meters, each of which is connected to a corresponding site; The central coordinator is configured to implement the method according to any one of claims 1-6.
9. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 6.
10. A computer-readable storage medium storing computer program instructions, characterized in that: The computer program instructions implement the method according to any one of claims 1 to 6 when executed by a processor.
