Data reporting method and device, electric energy meter and computer readable storage medium
By controlling the communication module to establish a transmissive mode with the main station in the power meter and reporting data in the preset format, the data reporting problem caused by the differences in protocols of different communication modules is solved, and efficient and reliable data transmission is achieved.
Patent Information
- Application Number
- CN202411335949.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-20
AI Technical Summary
In the prior art, different communication modules of the power meter use different communication protocols, which leads to the need to modify the protocol when reporting data, which takes a long time and is complex in the mechanism, making it difficult to achieve reliable data reporting.
When receiving the data reporting instruction, the control communication module establishes a communication connection with the main station and enters the transmissible mode, and directly reports data in the preset format without modifying the communication protocol. If the connection fails, re-establish the connection until the preset number is reached. until.
Data reporting can be realized without modifying the communication protocol, which improves the reliability and efficiency of data reporting, simplifies the process and reduces time-consuming.
Smart Images

Figure CN119172393A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric energy meters, and in particular to a data reporting method, device, electric energy meter and computer-readable storage medium. Background Art
[0002] At present, the main body of the electric energy meter generally needs a communication module to report data to the main station. However, with the expansion of the electric energy meter market, different electric energy meter main bodies may need to cooperate with different communication modules and different main stations, but different communication modules may use different communication protocols. For example, some communication modules developed by different countries will use the ALICE protocol, some will use the 02 protocol, and some will use the HDLC (High-level Data Link Control) protocol.
[0003] However, in the prior art, for a master station, communication modules with the same communication protocol are often required to realize data reporting. Therefore, if the communication protocols of various communication modules are different, it is difficult to realize data reporting. At this time, it is generally necessary to modify the communication protocols of various communication modules to be consistent. However, modifying the communication protocol is time-consuming and the modification mechanism is complicated, which may lead to unreliable data reporting. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a data reporting method, device, electric energy meter and computer-readable storage medium, so as to solve the problems of time-consuming and complex modification mechanism without modifying the communication protocols of each communication module, thereby improving the reliability of data reporting.
[0005] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, the present invention provides a data reporting method, which is applied to an electric energy meter, wherein the electric energy meter includes a communication module, and the method includes:
[0007] When receiving a data reporting instruction, control the communication module to establish a communication connection with the master station and enter a transparent transmission mode;
[0008] The data to be reported is reported to the main station through the communication module according to a preset format.
[0009] In an optional embodiment, the method further comprises:
[0010] Determining whether a connection success flag sent by the communication module is received within a first preset time period after controlling the communication module to establish a communication connection with the master station;
[0011] The step of reporting the data to be reported to the main station through the communication module in a preset format includes:
[0012] If a connection success identifier sent by the communication module is received within the first preset time period, the data to be reported is reported to the main station through the communication module according to a preset format.
[0013] In an optional embodiment, the method further comprises:
[0014] If the connection success mark sent by the communication module is not received within the first preset time period, it is determined that the communication module fails to connect to the master station, and the number of failures of the communication module to connect to the master station is determined;
[0015] If the number of failures does not reach the preset number, re-controlling the communication module to establish a communication connection with the main station;
[0016] If the number of failures reaches a preset number, it is determined that the reporting of the data to be reported has failed.
[0017] In an optional embodiment, the method further comprises:
[0018] Determine the reporting result of the data to be reported, control the communication module to disconnect the communication connection with the master station, and exit the transparent transmission mode.
[0019] In an optional implementation manner, determining a reporting result of the data to be reported includes:
[0020] If the reception success information sent by the communication module is received within the second preset time length of reporting the data to be reported to the master station, determining that the reporting result is a successful reporting;
[0021] If the reception success information sent by the communication module is not received within the second preset time length of reporting the data to be reported to the master station, it is determined that the reporting result is a reporting failure.
[0022] In a second aspect, the present invention provides a data reporting device, which is applied to an electric energy meter, wherein the electric energy meter includes a communication module, and the device includes:
[0023] A connection module, used to control the communication module to establish a communication connection with the master station and enter a transparent transmission mode when receiving a data reporting instruction;
[0024] The reporting module is used to report the data to be reported to the main station through the communication module according to a preset format.
[0025] In an optional embodiment, the reporting module is also used to determine whether a connection success mark sent by the communication module is received within a first preset time period after controlling the communication module to establish a communication connection with the main station; if a connection success mark sent by the communication module is received within the first preset time period, the data to be reported is reported to the main station through the communication module in a preset format.
[0026] In an optional embodiment, the reporting module is also used to determine that the communication module has failed to connect with the main station and the number of failures of the communication module to connect with the main station if the connection success identifier sent by the communication module is not received within the first preset time period; if the number of failures does not reach the preset number, control the communication module to establish a communication connection with the main station; if the number of failures reaches the preset number, determine that the reporting of the data to be reported has failed.
[0027] In a third aspect, the present invention provides an electric energy meter, comprising a processor, a memory and a communication module, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement any of the methods described in the aforementioned embodiments.
[0028] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any one of the aforementioned embodiments.
[0029] The data reporting method, device, electric energy meter and computer-readable storage medium provided in the embodiments of the present application are such that, upon receiving a data reporting instruction, the electric energy meter can control the communication module to establish a communication connection with the main station and enable the communication module to enter the transparent transmission mode. In the transparent transmission mode, the communication module will not use a pre-set communication protocol to process the data. Therefore, the electric energy meter can directly report the data to be reported to the main station through the communication module in a preset format without modifying the communication protocol of the communication module. Therefore, the problem of long time consumption and complex modification mechanism can be solved, thereby improving the reliability of data reporting.
[0030] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A block diagram of an electric energy meter provided in an embodiment of the present application is shown;
[0033] Figure 2 A schematic diagram of a process of a data reporting method provided in an embodiment of the present application is shown;
[0034] Figure 3 Another schematic diagram of a data reporting method provided in an embodiment of the present application is shown;
[0035] Figure 4 Another schematic diagram of a data reporting method provided in an embodiment of the present application is shown;
[0036] Figure 5 A functional module diagram of a data reporting device provided in an embodiment of the present application is shown.
[0037] Icon: 10 - electric energy meter; 100 - memory; 110 - processor; 120 - communication module; 200 - connection module; 210 - reporting module. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0039] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0040] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0041] Figure 1 For a block diagram of the electric energy meter 10 provided in the embodiment of the present application, see Figure 1 The electric energy meter 10 includes a memory 100, a processor 110 and a communication module 120. The memory 100, the processor 110 and the communication module 120 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0042] The memory 100 is used to store computer programs or data that can be executed by the processor. The memory 100 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.
[0043] The processor 110 is used to read / write data or computer programs stored in the memory, and execute the computer program to implement the data reporting method provided in the embodiment of the present application.
[0044] The communication module 120 is used to establish a communication connection between the electric energy meter 10 and other communication terminals through the network, and is used to send and receive data through the network.
[0045] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electric energy meter. The electric energy meter may also include a Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0046] Next, the above Figure 1 The electric energy meter in the embodiment is the execution subject, and the data reporting method provided in the embodiment of the present application is exemplarily introduced in combination with the flow chart.
[0047] Specifically, Figure 2 A flow chart of a data reporting method provided in the embodiment of the present application is shown in Figure 2 The method includes steps S20 and S21.
[0048] Step S20, when receiving the data reporting instruction, control the communication module to establish a communication connection with the master station and enter the transparent transmission mode.
[0049] Optionally, the data reporting instruction may be generated by the electric energy meter according to actual application conditions, for example, triggered by a data reporting item in the electric energy meter.
[0050] Optionally, the electric energy meter may control the communication module to send a connection request to the master station by sending an AT command to the communication module, so as to establish a communication connection with the master station.
[0051] In a possible implementation, the AT command can be represented as follows:
[0052] 'AT+DTDLMS="ip,port" <crlf>'
[0053] Among them, ip,port refers to the IP address of the main station.
[0054] Optionally, the communication module may initiate a connection request to the main station based on the ip and port in the AT command to establish a communication connection with the main station.
[0055] Optionally, the communication connection may be a TCP (Transmission Control Protocol) connection.
[0056] Optionally, the communication module may enter the transparent transmission mode after establishing a communication connection with the master station.
[0057] In a possible implementation, after the communication module establishes a connection with the master station, it can receive a TCP response signal sent by the master station to indicate that the communication connection is successfully established. The communication module can enter the transparent transmission mode after receiving the TCP response signal.
[0058] It is understandable that in the transparent transmission mode, the communication module will not use the communication protocol to perform relevant processing on the data.
[0059] Step S22: reporting the data to be reported to the main station through the communication module according to a preset format.
[0060] Optionally, the preset format may be a standard data format that can be processed by the electric energy meter and the master station, such as an HDLC format.
[0061] Optionally, the electric energy meter can report the data to be reported to the main station through the communication module. Since the communication module is in the transparent transmission mode at this time, the communication module will not use the communication protocol set by it to process the data, but directly report the data. The main station can directly analyze the data to be reported in the preset format.
[0062] It can be understood that in this case, the data can be reported to the master station without modifying the communication protocols used by the different communication modules.
[0063] The data reporting method provided in the embodiment of the present application is that the electric energy meter can control the communication module to establish a communication connection with the main station and make the communication module enter the transparent transmission mode when receiving the data reporting instruction. In the transparent transmission mode, the communication module will not use the pre-set communication protocol to process the data. Therefore, the electric energy meter can directly report the data to be reported to the main station through the communication module according to the preset format, without modifying the communication protocol of the communication module. Therefore, the problem of long time consumption and complex modification mechanism can be solved, thereby improving the reliability of data reporting.
[0064] Optionally, considering that the communication module may fail to establish a communication connection with the master station, in order to ensure data reporting only after the communication connection is successfully established, the communication module may also send a connection success flag to the electric energy meter when the communication connection is successfully established.
[0065] Specifically, in Figure 2 On the basis of Figure 3 For another flow chart of the data reporting method provided in the embodiment of the present application, please refer to Figure 3 , the method further comprises:
[0066] Step S21, determining whether a connection success mark sent by the communication module is received within a first preset time period after the communication module is controlled to establish a communication connection with the master station.
[0067] Optionally, the first preset duration can be set according to actual application conditions.
[0068] In one possible implementation, the first preset duration may be 20 seconds.
[0069] Optionally, the connection success mark may be a connection signal, such as "CONNECT", to indicate that the communication connection between the communication module and the master station has been successfully established.
[0070] Optionally, in order to further improve the success rate of data reporting, the communication module may determine whether the transparent transmission mode is successfully entered after the communication connection is successfully established, and if the transparent transmission mode is successfully entered, send a connection success flag to the electric energy meter.
[0071] On this basis, the above step S22 can also be implemented by the following steps:
[0072] Step S22-1: If a connection success mark sent by the communication module is received within a first preset time period, the data to be reported is reported to the main station through the communication module according to a preset format.
[0073] Optionally, if the electric energy meter does not receive the connection success mark sent by the communication module within the first preset time, it can be determined that the communication module fails to connect to the master station, and the number of failures of the communication module to connect to the master station can be determined.
[0074] Optionally, if the electric energy meter does not receive the connection success mark sent by the communication module within the first preset time, it may indicate that the connection has failed. In this case, the electric energy meter needs to determine whether to re-establish the communication connection between the communication module and the main station based on the number of connection failures.
[0075] In this embodiment, if the number of failures does not reach the preset number, the electric energy meter can re-control the communication module to establish a communication connection with the master station, and if the number of failures reaches the preset number, the electric energy meter can determine that the reporting of the data to be reported has failed.
[0076] Optionally, the preset number of times can be set according to actual application conditions, for example, the preset number of times can be 2 times, or 3 times, etc.
[0077] Optionally, if the number of connection failures has reached a preset number, it means that the communication module may not be able to establish a communication connection with the master station, so it can be determined that the data reporting matter has failed.
[0078] Optionally, considering that if the communication module cannot establish a communication connection with the main station, it may be because there are some faults in the communication module. Therefore, in order to ensure that normal data reporting is not affected, the electric energy meter can also report an error when the number of connection failures reaches a preset number, so that the staff can inspect the communication module and troubleshoot the fault in time.
[0079] Optionally, if the electric energy meter can obtain the reporting result when executing the data reporting process, it means that the reporting matter has been completed at this time. Therefore, in order not to affect the communication module's processing of other data, the electric energy meter can control the communication module to disconnect the communication connection with the main station and make the communication module exit the transparent transmission mode.
[0080] Specifically, the electric energy meter can determine the reporting result of the data to be reported, control the communication module to disconnect the communication connection with the master station, and make the communication module exit the transparent transmission mode.
[0081] Optionally, the electric energy meter may send a master station disconnection instruction to the communication module to control the communication module to disconnect the communication connection with the master station and make the communication module exit the transparent transmission mode.
[0082] In one example, the disconnect instruction may be characterized as "+++".
[0083] Optionally, after receiving the disconnection instruction, the communication module may first disconnect the communication connection with the master station and then exit the transparent transmission mode.
[0084] In a possible implementation, the communication module may disconnect the communication connection with the master station, and after receiving a TCP response signal sent by the master station and used to indicate the disconnection, the communication module may exit the transparent transmission mode.
[0085] Optionally, the communication module may also send disconnection information, such as "DISCONNECT", to the electric meter after the communication connection is disconnected, to indicate that the communication connection with the master station has been disconnected.
[0086] Optionally, the reporting results of the data to be reported may include two types, one is reporting success, and the other is reporting failure.
[0087] In this embodiment, if the communication module cannot establish a communication connection with the main station, the electric energy meter can directly determine that the reporting result of the data to be reported is a reporting failure, and then control the communication module to disconnect the communication connection with the main station and make the communication module exit the transparent transmission mode.
[0088] In this embodiment, if the communication module successfully establishes a communication connection with the master station, the electric energy meter can perform a data reporting operation. Based on this, the electric energy meter needs to determine whether the data is successfully reported after performing the data reporting operation.
[0089] In one possible implementation, if the electric energy meter receives a successful reception message sent by the communication module within the second preset time period for reporting the data to be reported to the main station, the reporting result can be determined as a successful reporting. If the electric energy meter does not receive a successful reception message sent by the communication module within the second preset time period for reporting the data to be reported to the main station, the reporting result can be determined as a failed reporting.
[0090] Optionally, the second preset time length may be determined according to actual application conditions. In one example, the second preset time length may be 3 minutes.
[0091] Optionally, the successful reception information may be sent by the master station to the electric energy meter via the communication module.
[0092] For example, the successful reception information may be "PUSH ACK".
[0093] For ease of understanding, the following Figure 4 Take the example to introduce the overall process of this solution.
[0094] See also Figure 4 The communication module includes an MCU and a communication device, and the method includes the following steps:
[0095] Step 1, the energy meter sends AT commands to the MCU;
[0096] Step 2: The MCU processes the AT command and sends the processed AT command to the communication device;
[0097] Step 3, the communication device establishes a communication connection with the main station according to the processed AT command;
[0098] Step 4, the communication device turns on the transparent transmission mode;
[0099] Step 5: The communication device sends a connection success mark "CONNECT" to the electric energy meter to indicate that the connection is successfully established;
[0100] Step 6, the electric energy meter reports the data to be reported to the main station through the communication device;
[0101] Step 7: After receiving the data to be reported, the master station sends a receiving success message "PUSH ACK" to the electric energy meter through the communication device;
[0102] Step 8, after receiving the successful reception information, the electric energy meter sends a disconnection instruction "+++" to the communication device; Step 9, the communication device disconnects the communication connection with the master station;
[0103] Step 10, the communication device exits the transparent transmission mode;
[0104] Step 11, sending a disconnection message "DISCONNECT" to the electric energy meter.
[0105] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing a data reporting device is given below. Figure 5 , Figure 5 A functional module diagram of a data reporting device provided in an embodiment of the present application. It should be noted that the basic principle and technical effects of the data reporting device provided in this embodiment are the same as those of the above embodiments. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiments. The data reporting device includes: a connection module 200 and a reporting module 210.
[0106] The connection module 200 is used to control the communication module to establish a communication connection with the master station and enter a transparent transmission mode when receiving a data reporting instruction.
[0107] It can be understood that the connection module 200 can also be used to execute the above step S20.
[0108] The reporting module 210 is used to report the data to be reported to the main station through the communication module according to a preset format.
[0109] It can be understood that the reporting module 210 can also be used to execute the above step S22.
[0110] Optionally, the reporting module 210 is further used to determine whether a connection success identifier sent by the communication module is received within a first preset time period after the communication module is controlled to establish a communication connection with the master station.
[0111] It can be understood that the reporting module 210 can also be used to execute the above step S21.
[0112] Optionally, the reporting module 210 is further configured to report the data to be reported to the main station through the communication module in a preset format if a connection success identifier sent by the communication module is received within a first preset time period.
[0113] It can be understood that the reporting module 210 can also be used to execute the above step S22-1.
[0114] Optionally, the reporting module 210 is also used to determine that the connection between the communication module and the main station has failed, and to determine the number of failures of the connection between the communication module and the main station if the connection success identifier sent by the communication module is not received within the first preset time period; if the number of failures does not reach the preset number, control the communication module to establish a communication connection with the main station; if the number of failures reaches the preset number, determine that the reporting of the data to be reported has failed.
[0115] Optionally, the reporting module 210 is further used to determine the reporting result of the data to be reported, control the communication module to disconnect the communication connection with the master station, and exit the transparent transmission mode.
[0116] Optionally, the reporting module 210 is also used to determine that the reporting result is a successful reporting if a reception success information sent by the communication module is received within a second preset time length for reporting the data to be reported to the main station; if the reception success information sent by the communication module is not received within the second preset time length for reporting the data to be reported to the main station, the reporting result is determined to be a failed reporting.
[0117] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory shown in the figure may be fixed in the operating system (OS) of the electric energy meter and may be Figure 1 Meanwhile, the data and program codes required for executing the above modules can be stored in the memory.
[0118] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data reporting method provided in the embodiment of the present application can be implemented.
[0119] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0121] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0122] The above description is only the 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.< / crlf>
Claims
1. A data reporting method, characterized in that: Applied to an electric energy meter, the electric energy meter includes a communication module, and the method includes: When receiving a data reporting instruction, control the communication module to establish a communication connection with the master station and enter a transparent transmission mode; The data to be reported is reported to the main station through the communication module according to a preset format.
2. The method according to claim 1, characterized in that The method further comprises: Determining whether a connection success flag sent by the communication module is received within a first preset time period after controlling the communication module to establish a communication connection with the master station; The step of reporting the data to be reported to the main station through the communication module in a preset format includes: If a connection success identifier sent by the communication module is received within the first preset time period, the data to be reported is reported to the main station through the communication module according to a preset format.
3. The method according to claim 2, characterized in that The method further comprises: If the connection success mark sent by the communication module is not received within the first preset time period, it is determined that the communication module fails to connect to the master station, and the number of failures of the communication module to connect to the master station is determined; If the number of failures does not reach the preset number, re-controlling the communication module to establish a communication connection with the main station; If the number of failures reaches a preset number, it is determined that the reporting of the data to be reported has failed.
4. The method according to claim 1, characterized in that: The method further comprises: Determine the reporting result of the data to be reported, control the communication module to disconnect the communication connection with the master station, and exit the transparent transmission mode.
5. The method according to claim 4, characterized in that The determining the reporting result of the data to be reported includes: If the reception success information sent by the communication module is received within the second preset time length of reporting the data to be reported to the master station, determining that the reporting result is a successful reporting; If the reception success information sent by the communication module is not received within the second preset time length of reporting the data to be reported to the master station, it is determined that the reporting result is a reporting failure.
6. A data reporting device, characterized in that: Applied to an electric energy meter, the electric energy meter includes a communication module, and the device includes: A connection module, used to control the communication module to establish a communication connection with the master station and enter a transparent transmission mode when receiving a data reporting instruction; The reporting module is used to report the data to be reported to the main station through the communication module according to a preset format.
7. The device according to claim 6, characterized in that The reporting module is also used to determine whether a connection success mark sent by the communication module is received within a first preset time period after controlling the communication module to establish a communication connection with the main station; if a connection success mark sent by the communication module is received within the first preset time period, the data to be reported is reported to the main station through the communication module in a preset format.
8. The device according to claim 7, characterized in that The reporting module is also used to determine that the communication module has failed to connect to the main station and the number of failures of the communication module to connect to the main station if the connection success identifier sent by the communication module is not received within the first preset time period; if the number of failures does not reach the preset number, control the communication module to establish a communication connection with the main station; if the number of failures reaches the preset number, determine that the reporting of the data to be reported has failed.
9. An electric energy meter, characterized in that: The method comprises a processor, a memory and a communication module, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement any one of the methods described in claims 1-5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
