Virtual module containing functions of electric energy meter, STA and CCO for terminal acquisition
By designing a virtual module including power meter, STA, and CCO functions, the problem that the existing technology cannot meet multiple application scenarios and supports STA and CCO functions is solved, and the effect of supporting multiple communication protocols and improving work efficiency is achieved in the terminal acquisition.
Patent Information
- Application Number
- CN202411990341.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-16
AI Technical Summary
The existing virtual power meters cannot realize the relevant functions in the real environment, cannot meet multiple application scenarios, and cannot support STA, CCO and other functions, resulting in limited applications in complex test scenarios.
A virtual module for terminal acquisition is designed, including power meter, STA, and CCO functions. It connects the acquisition terminal through 485, CAN, and carrier serial ports, and provides clock regulation, data regulation, parameter regulation, STA functional unit and CCO functional unit to simulate and implement related functions in the real environment.
It realizes the support of multiple communication protocols in terminal acquisition, meets various application scenarios, improves work efficiency, avoids the large-scale use of real meters, and provides functions such as power meter data freezing time design, event triggering and custom interfaces.
Smart Images

Figure CN120017990A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual electric energy meters, and in particular to a virtual module for terminal acquisition comprising electric energy meters, STAs and CCO functions. Background Art
[0002] The electric energy meter is a metering tool for measuring the amount of electric energy transactions. Although the equipment produced by the domestic electric energy meter industry (including electric energy meters, concentrators, and collectors) fully complies with the standards of the national power industry, according to the metering requirements of local power information, each metering device will be configured with corresponding parameters according to the requirements of the tenderer before leaving the factory. For example, electric meters can be divided into prepaid and postpaid. These two schemes only need to set the configuration parameters of the electric energy meter to make the electric energy meter work in which mode. There are hundreds of configuration items like this in an electric energy meter, and other equipment such as concentrators, collectors, and terminal devices require more configuration combinations.
[0003] The existing virtual energy meter only supports a single energy meter function, only supports 645 and object-oriented protocols, supports single-channel 485 uplink communication, cannot achieve data control, does not support Guonan network carrier protocol, and STA, CCO and other related functions, and cannot be used for carrier channel related tests. It can only be used in simple test scenarios. Summary of the invention
[0004] The technical problem to be solved by the present invention is to simulate and realize relevant functions in a real environment, meet various application scenarios, and improve work efficiency. In order to overcome the defects of the above-mentioned prior art (or related technology), the present invention provides a virtual module for terminal acquisition including electric energy meter, STA, and CCO functions.
[0005] The present invention provides a virtual module for terminal collection including electric energy meter, STA, and CCO functions, including:
[0006] A collection terminal, wherein the collection terminal is provided with a 485 serial port, a CAN serial port and a carrier serial port;
[0007] A virtual table module is connected to the 485 serial port via a USB to 485 serial port cable, connected to the CAN serial port via a USB to CAN serial port cable, and connected to the carrier serial port via a USB carrier serial port cable. The virtual table module includes:
[0008] A clock control unit, used for users to design the current clock of the electric energy meter, and to set or synchronize the time information of year, month, day, hour, minute, second and week;
[0009] A data control unit, used for users to initialize protocol data, automatically measure data, and set and modify electric energy meter parameters;
[0010] A parameter control unit, used for allowing users to set parameters of DL / T645 protocol and DL / T698 protocol, and run the system according to the set corresponding parameters;
[0011] A STA functional unit is used to assemble HPLC application layer messages, allowing users to set different response intervals and illegal message formats;
[0012] A CCO functional unit is used for users to obtain version information, synchronize files, query nodes, and search tables.
[0013] Compared with the prior art, the virtual module for terminal collection including electric energy meter, STA and CCO functions in the present application has the following advantages:
[0014] In this application, the STA function and the CCO function are integrated into a virtual electric energy meter and deployed in a computer, avoiding the extensive use of real electric meters and greatly improving work efficiency. A 485 serial port, a CAN serial port and a carrier serial port are set on the acquisition terminal to support data acquisition from acquisition terminals of different protocols of the State Grid and the Southern Grid, and to meet multiple communication protocols such as the 645 protocol, the object-oriented protocol, the State Grid carrier protocol and the Southern Grid carrier protocol to meet various application scenarios. A clock control unit, a data control unit, a parameter control unit, a STA functional unit and a CCO functional unit are configured to simulate and realize relevant functions in a real environment.
[0015] In a possible implementation manner, the clock control unit is also used for the user to design the freezing time of the electric energy meter data, and to set the automatic freezing time, the triggered freezing time, and the illegal freezing time.
[0016] Compared with the prior art, the above technical solution can provide users with the function of designing the freezing time of electricity meter data and provide more diverse scenario application functions.
[0017] In a possible implementation, the virtual table module further includes an event triggering unit for supporting DL / T645 protocol events and DL / T698 protocol events, adding event records after an event is triggered, and allowing users to manually trigger events.
[0018] Compared with the prior art, the above technical solution can provide users with event triggering and event recording functions, and provide more diverse scenario application functions.
[0019] In a possible implementation manner, the virtual table module is further configured with a communication interface, and the event triggering unit is connected to an external platform through the communication interface and reports a triggering event.
[0020] Compared with the prior art, the above technical solution can report and record the triggering event, making it easier to trace the source.
[0021] In a possible implementation, the virtual table module further includes a session negotiation unit, which is used for the user to call the physical encryption machine to establish an application link and perform a key update operation of the EASM class.
[0022] Compared with the prior art, the above technical solution can provide users with application link establishment function and key update function, and provide more diverse scenario application functions.
[0023] In a possible implementation, the virtual table module further includes a custom interface unit for allowing the user to set conditional options for response judgment, including delayed response, no response, and reply with a null value, and for allowing the user to customize the character content of the message header and tail connection.
[0024] Compared with the prior art, the above technical solution can provide users with a conditional option setting function for answer judgment and provide more diverse scenario application functions.
[0025] In a possible implementation manner, the STA functional unit is further configured to receive an upgrade message and set an upgrade success or failure message for feedback.
[0026] In a possible implementation manner, the CCO functional unit is further configured to allow the user to customize the message framing interface, automatically respond according to the address field, and allow the user to configure the message content and sending time. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a structural principle diagram of the present invention;
[0028] Figure 2 It is a structural schematic diagram of the virtual table module of the present invention;
[0029] Explanation of the accompanying drawings: 1. Acquisition terminal; 2. Virtual table module; 21. Clock control unit; 22. Data control unit; 23. Parameter control unit; 24. STA functional unit; 25. CCO functional unit; 26. Event triggering unit; 27. Session negotiation unit; 28. Custom interface unit. DETAILED DESCRIPTION
[0030] First, those skilled in the art should understand that these implementations are only used to explain the technical principles of the embodiments of the present application, and are not intended to limit the protection scope of the embodiments of the present application. Those skilled in the art can make adjustments to them as needed to adapt to specific application scenarios.
[0031] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0032] See also Figure 1and Figure 2 The embodiment of the present application discloses a virtual module for terminal acquisition including electric energy meter, STA, and CCO functions, including an acquisition terminal 1 and a virtual meter module 2, wherein the virtual meter module 2 further includes a clock control unit 21, a data control unit 22, a parameter control unit 23, a STA function unit 24, a CCO function unit 25, an event trigger unit 26, a session negotiation unit 27, and a custom interface unit 28. In terms of function, the clock control unit 21 is used for users to design the current clock of the electric energy meter, set or synchronize the time information of year, month, day, hour, minute, second, and week; the data control unit 22 is used for users to initialize protocol data, automatically measure data, and set and modify electric energy meter parameters; the parameter control unit 23 is used for users to set parameters of DL / T645 protocol and DL / T698 protocol, and run the system according to the corresponding set parameters; the STA function unit 24 is used to assemble HPLC application layer messages for The user sets different response intervals and illegal message formats; the CCO function unit 25 is used for the user to obtain version information, synchronize files, query nodes, and search tables; the event trigger unit 26 is used to support DL / T645 protocol events and DL / T698 protocol events, and add event records after the event is triggered, and for the user to manually trigger events; the session negotiation unit 27 is used for the user to call the physical encryption machine to establish an application link and perform EASM-type key update operations; the custom interface unit 28 is used for the user to set the condition options for response judgment, including delayed response, no response, and reply null value, and for the user to customize the character content of the message head and tail connection; in terms of connection relationship, the acquisition terminal 1 is provided with a 485 serial port, a CAN serial port and a carrier serial port; the virtual table module 2 is connected to the 485 serial port via a USB to 485 serial port cable, connected to the CAN serial port via a USB to CAN serial port cable, and connected to the carrier serial port via a USB carrier serial port cable.
[0033] The virtual module in the embodiment of the present application has the following advantages:
[0034] (1) Strong versatility: Supports data collection from different protocol collection terminals of State Grid and Southern Grid, and meets multiple communication protocols such as 645 protocol, object-oriented protocol, State Grid carrier protocol, Southern Grid carrier protocol, etc., to meet various application scenarios;
[0035] (2) Easy to operate: The software of the virtual meter module 2 can be deployed on a computer to realize related functions, avoiding the use of a large number of real meters, which greatly improves work efficiency;
[0036] (3) Data control: After the software of the virtual table module 2 is turned on, there should be reasonable default values, mimicking the operation of the physical table and automatically running data. At the same time, the software of the virtual table module 2 supports data setting and modification, batch setting of electric energy meter data, and simulation of CCO functions and STA functions, such as obtaining version information, file synchronization, node query, table search, etc.
[0037] (4) Customized interface: The customized interface needs to design the conditional options for response judgment and respond to the following windows externally: customized framing interface, fully open message interface, and fixed response interface.
[0038] Continue to see Figure 1 In this application, the virtual table data is collected through multiple communication channels through USB to 485, CAN, carrier, etc., and the virtual table module 2 is divided into electric energy meter, STA, and CCO to achieve the following functions:
[0039] 1. Virtual meter - electric energy meter function
[0040] 1.1 Clock Control
[0041] 1.1.1 Current clock design of electric energy meter
[0042] Can print year, month, day, hour, minute, second, week in real time, can be set or synchronized;
[0043] 1.1.2 Electricity meter data freezing time
[0044] You can set the automatic freezing time, trigger freezing time, and illegal freezing time;
[0045] 1.2 Data Control
[0046] The virtual table module implements DL / T645 protocol and DL / T698 protocol data items;
[0047] 1.2.1 It has the function of initializing protocol data;
[0048] 1.2.2 With automatic measurement function;
[0049] 1.2.3 Data modification and freezing design, support data setting and modification, batch setting of electric energy meter parameters;
[0050] 1.3 Event triggering, configurable, supports DL / T645 protocol, DL / T698 protocol events, and can automatically add event records, manually trigger events, and actively report events through the communication interface;
[0051] 1.4 Parameter control, which can support DL / T645 protocol and DL / T698 protocol parameter settings and can run virtual table module 2 according to the corresponding parameters;
[0052] 1.5 It has session negotiation function, can call physical encryption machine to establish application link, and supports ESAM-type key update operation;
[0053] 1.6 It has a custom interface function, which can set the condition options for response judgment, including delayed response, no response, reply null value, and custom message header and tail connection character content;
[0054] 2. Virtual Table-STA Function
[0055] It can assemble HPLC application layer messages, set different response intervals and illegal message formats, support module upgrade function, receive upgrade messages and set the message return of upgrade success and failure;
[0056] 3. Virtual table - CCO function
[0057] It has the functions of obtaining version information, file synchronization, node query, and table search. It has a custom message framing interface, can automatically respond according to the address domain, and can freely configure the message content and sending time.
[0058] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "in the present embodiment", "specific example", or "some examples" etc. means that the specific features, mechanisms, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, mechanisms, materials or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0059] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A virtual module for terminal acquisition including electric energy meter, STA, CCO functions, characterized in that: include: A collection terminal (1), wherein the collection terminal (1) is provided with a 485 serial port, a CAN serial port and a carrier serial port; A virtual table module (2) is connected to the 485 serial port via a USB to 485 serial port cable, connected to the CAN serial port via a USB to CAN serial port cable, and connected to the carrier serial port via a USB carrier serial port cable. The virtual table module (2) comprises: A clock control unit (21) is used for the user to design the current clock of the electric energy meter, and to set or synchronize the time information of year, month, day, hour, minute, second and week; A data control unit (22) for enabling users to perform protocol data initialization, automatic metering, and electric energy meter parameter setting and modification; A parameter control unit (23) is used for allowing the user to set parameters of the DL / T645 protocol and the DL / T698 protocol, and to operate the system according to the set corresponding parameters; A STA functional unit (24), used for assembling HPLC application layer messages, allowing users to set different response intervals and illegal message formats; A CCO functional unit (25) is used for users to obtain version information, synchronize files, query nodes, and search tables.
2. The virtual module according to claim 1, characterized in that: The clock control unit (21) is also used for the user to design the freezing time of the electric energy meter data, and to set the automatic freezing time, the triggered freezing time, and the illegal freezing time.
3. The virtual module according to claim 1, characterized in that: The virtual table module (2) also includes an event triggering unit (26) for supporting DL / T645 protocol events and DL / T698 protocol events, adding event records after an event is triggered, and allowing users to manually trigger events.
4. The virtual module according to claim 3, characterized in that: The virtual table module (2) is also provided with a communication interface, and the event triggering unit (26) is connected to an external platform via the communication interface and reports a triggering event.
5. The virtual module according to claim 1, characterized in that: The virtual table module (2) also includes a session negotiation unit (27) for allowing the user to call the physical encryption machine to establish an application link and perform a key update operation of the EASM class.
6. The virtual module according to claim 1, characterized in that: The virtual table module (2) also includes a custom interface unit (28) for allowing the user to set the condition options for response judgment, including delayed response, no response, and reply null value, and for allowing the user to customize the character content of the message head and tail connection.
7. The virtual module according to claim 1, characterized in that: The STA functional unit (24) is also used to receive an upgrade message and set a message indicating success or failure of the upgrade for feedback.
8. The virtual module according to claim 1, characterized in that: The CCO functional unit (25) is also used for allowing users to customize the message framing interface, automatically respond according to the address field, and also for users to configure the message content and sending time.