HPLC communication-based transformer area data curve storage control method and device

By working collaboratively with the main station, concentrator, CCO, and STA, the completeness and time consistency of low-voltage distribution area data curves were achieved, solving the problems of incomplete data and inaccurate timing in existing technologies, and improving data reliability and acquisition efficiency.

CN115833877BActive Publication Date: 2026-07-24STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +2
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED
Filing Date
2022-11-21
Publication Date
2026-07-24

Smart Images

  • Figure CN115833877B_ABST
    Figure CN115833877B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on HPLC communication's transformer area data curve storage control method and device, the method steps include: S01. main station issues STA to store curve data and opens the command and parameter of station;S02. after concentrator receives the opening instruction, to CCO and STA issues opening instruction and parameter;S03. CCO carries out clock maintenance, to STA clock time correction and broadcast sends opening instruction and parameter;S04. STA real-time clock maintenance is carried out, and according to parameter, electric energy meter data is copied and stored;S05. concentrator reads curve data from STA according to preset period and is uploaded to main station according to preset period;S06. when concentrator receives closing instruction, to CCO sends closing instruction, CCO broadcast sends to STA.The application has the advantages that implementation method is simple, acquisition efficiency and data completeness are high, data has time consistency etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of low-pressure station area data storage technology, and in particular to a method and apparatus for storing and controlling station area data curves based on HPLC communication. Background Technology

[0002] With the large-scale application of low-voltage high-speed carrier communication technology (HPLC) in the collection of electricity consumption information from electricity meters within distribution areas, the efficiency of transmitting electricity consumption data such as power, voltage, current, and power in low-voltage distribution areas is becoming increasingly faster, and the transmission speed and data volume are also increasing exponentially. Concentrators use HPLC communication technology to collect real-time or frozen data from electricity meters. The electricity information collected at different times is aggregated to form an electricity curve, which is then transmitted to a remote master station. Through the electricity consumption and voltage curve data of users or devices, it is possible to monitor power quality, provide hourly electricity bills, and perform time-of-use line loss calculations. Thus, with the help of the stored electricity curves, intelligent management of user electricity consumption can be achieved.

[0003] Currently, the collection of electricity meter curve data mainly relies on the interaction between a master station (control unit), a concentrator (gateway), and smart meters (devices). The master station sends setting and query commands for electricity curve storage to the concentrator via a wireless network. Upon receiving the commands, the concentrator distributes the master station's configuration information to the smart meters via HPLC. The smart meters then report the user's electricity curve according to the commands. However, due to the use of full-carrier communication in the distribution area, the collection of electricity quantity curve data is often incomplete due to signal interference or the heavy processing load of equipment in the area. This makes it difficult to collect complete 24-point or 96-point electricity quantity curve data. Furthermore, the data is easily affected by the smart meter clock, resulting in inconsistent time points for the frozen curve data collected within the distribution area, impacting subsequent data use. Therefore, there is an urgent need to provide a method that can simultaneously ensure the integrity of the collected electricity quantity curve data and the time consistency between the curve data. Summary of the Invention

[0004] The technical problem to be solved by the present invention is: in view of the technical problems existing in the prior art, the present invention provides a method and device for storing and controlling station data curves based on HPLC communication, which has a simple implementation method, high acquisition efficiency, high data integrity, and time consistency between data.

[0005] To solve the above-mentioned technical problems, the technical solution proposed by this invention is as follows:

[0006] A method for storing and controlling station data curves based on HPLC communication, comprising the following steps:

[0007] Step S01. When curve data storage is required, the main station issues the STA command to start storing curve data and the corresponding data storage control parameters;

[0008] Step S02. After receiving the start command sent by the master station, the concentrator starts the STA storage curve data function and sends the start command and the data storage control parameters to the CCO and STA.

[0009] Step S03. During operation, the CCO performs clock maintenance and, during the CCO clock maintenance process, performs clock synchronization for the entire network or a designated STA and broadcasts the start command and the corresponding data storage control parameters to each STA.

[0010] Step S04.STA performs real-time clock maintenance and reads and stores the electricity meter data according to the data storage control parameters;

[0011] Step S05. The concentrator reads curve data from the STA according to a preset cycle and uploads it to the main station according to a preset cycle;

[0012] Step S06. When the concentrator receives the shutdown command for STA storing curve data issued by the master station, the concentrator sends a shutdown command to the CCO. After receiving the shutdown command, the CCO broadcasts it to the STA to shut down the curve data storage.

[0013] Furthermore, the data storage control parameters include curve type, curve period, and CCO calibration period.

[0014] Furthermore, step S03 includes:

[0015] Step S301. Determine whether the storage function of CCO is enabled. If so, proceed to step S302.

[0016] Step S302. When the CCO is powered on or reset, it requests the concentrator to perform its own clock calibration and broadcast time synchronization to the entire network or a designated STA;

[0017] Step S303. During CCO operation, a clock request is sent to the concentrator at a preset cycle to broadcast time synchronization to the entire network or a designated STA.

[0018] Furthermore, in step S302, during the CCO networking process, the CCO broadcasts time synchronization according to a preset cycle until the networking is successful, and then sends another request to the concentrator clock for broadcast time synchronization; when the CCO receives the reassociation request, it triggers broadcast time synchronization after a specified delay. During the delay, it reads the clock of the energy meter from the STA as the current clock, and then synchronizes with the CCO's clock after receiving the time synchronization command from the CCO.

[0019] Furthermore, the step of STA performing real-time clock maintenance in step S04 includes:

[0020] Step S401. Start calibrating the real-time clock. After successful time calibration, STA reads the meter clock and calculates the time deviation T between the meter clock and the real-time clock.

[0021] Step S402. When a clock synchronization message is received, set the clock validity flag and store the time deviation T;

[0022] Step S403. Determine whether to start data acquisition based on the acquisition cycle and the current status of the clock validity flag;

[0023] Step S404. When STA is powered on or reset, determine whether the clock needs to be restarted based on the clock validity flag stored before the reset and the state of the clock deviation T.

[0024] Furthermore, in step S404, if the clock validity flag is valid, the time is not corrected; if the clock validity flag is invalid, the STA does not start the clock, determines the clock deviation T stored before power-on or reset, if the clock deviation T is empty, sets the clock validity flag to invalid, if the clock deviation T is not empty, the STA reads the meter time, calculates the initial clock time based on the time deviation T, restarts the clock, and sets the clock validity flag to valid.

[0025] Furthermore, in step S04, after receiving the start command and the data storage control parameters, the STA reads the real-time power data according to the curve period in the data storage control parameters and stores the reading time and data. When the STA has started the periodic reading task, if it senses that there is a meter reading task at the carrier layer, it controls the current reading task to be paused after reading the current data and switches to processing the meter reading task. After processing the meter reading task, it resumes the breakpoint execution of the reading task. When the STA powers on and reads the meter address, it compares the read meter address with the previously stored meter address. If the meter address has changed, the previous stored record is cleared; otherwise, the current task continues to be executed.

[0026] Furthermore, in step S05, when the concentrator detects that the STA storage curve function is enabled, it reads the curve data and data timestamp in the STA of the electricity meter according to the curve data item and curve period. If the data timestamp is correct, the read data is used as the electricity meter curve data; if the data timestamp is incorrect, the data is discarded. The master station periodically collects the electricity meter curve data and data timestamp from the concentrator. When the data timestamp is correct, the read electricity meter curve is stored in the master station; when the data timestamp is incorrect, the data is discarded.

[0027] A station data curve storage and control device based on HPLC communication, comprising:

[0028] The first activation control module is used to send the STA activation command for storing curve data and the corresponding data storage control parameters when curve data storage is required.

[0029] The second activation control module is used to activate the STA storage curve data function after the concentrator receives the activation command sent by the master station, and to send the activation command and the data storage control parameters to the CCO and STA.

[0030] The first clock maintenance and storage control module is used for the CCO to perform clock maintenance during operation, and to perform clock synchronization for the entire network or designated STAs and broadcast the start command and the corresponding data storage control parameters to each STA during the CCO clock maintenance process.

[0031] The second clock maintenance and storage control module is used by the STA to perform real-time clock maintenance and to read and store the energy meter data according to the data storage control parameters.

[0032] The data upload module is used by the concentrator to read curve data from the STA according to a preset cycle and upload it to the main station according to a preset cycle.

[0033] The storage shutdown control module is used to send a shutdown command to the CCO when the concentrator receives a shutdown command for the STA stored curve data from the master station. After receiving the shutdown command, the CCO broadcasts it to the STA to shut down the curve data storage.

[0034] A computer device includes a processor and a memory, the memory being used to store a computer program, and the processor being used to execute the computer program to perform the method described above.

[0035] Compared with existing technologies, the advantages of this invention are as follows: This invention extends the STA (Stationary Aperture Point) curve data storage function in the HPLC communication unit, concentrator, and master station. The master station sends setting and control commands for STA curve data storage to the concentrator. After receiving the commands, the concentrator activates the STA curve data storage function and issues STA storage and parameter setting commands to the CCO (Concentrator Control Center) and STAs. After the CCO is networked, it sends time synchronization commands to the STAs periodically. The STAs then periodically read the electricity meter data according to the set data type and time interval and store it in the STA, waiting for the concentrator to read it and upload it to the master station. By using the STA module to directly read the electricity meter data, the storage and transmission of the distribution area data curve can be realized, which can effectively ensure the integrity, real-time performance, and reliability of the curve data. It can not only complete the data acquisition and reading, avoiding incomplete data acquisition, but also ensure the time consistency between the acquired data points, solving the problems of incomplete data acquisition and inaccurate data time in traditional methods. Attached Figure Description

[0036] Figure 1 This is a schematic diagram illustrating the implementation process of the HPLC communication-based station data curve storage and control method in this embodiment.

[0037] Figure 2 This is a detailed schematic diagram illustrating the implementation process of HPLC communication-based control of station data curve storage in a specific application embodiment of the present invention.

[0038] Figure 3 This is a schematic diagram illustrating the process of triggering a network-wide broadcast clock after the CCO is powered on or reset in a specific application embodiment of the present invention.

[0039] Figure 4 This is a schematic diagram illustrating the process of implementing the CCO periodic triggering of the network-wide broadcast clock in a specific application embodiment of the present invention.

[0040] Figure 5 This is a schematic diagram of the data curve storage control process of the STA module in a specific application embodiment of the present invention.

[0041] Figure 6 This is a schematic diagram of the data curve storage control after the STA module is reset in a specific application embodiment of the present invention.

[0042] Figure 7 This is a schematic diagram illustrating the process of CCO broadcasting STA storage activation and storage settings in a specific application embodiment of the present invention. Detailed Implementation

[0043] The present invention will be further described below with reference to the accompanying drawings and specific preferred embodiments, but this does not limit the scope of protection of the present invention.

[0044] like Figure 1 As shown, the steps of the station data curve storage control method based on HPLC communication in this embodiment include:

[0045] Step S01. When curve data storage is required, the master station issues a STA command to enable curve data storage and corresponding data storage control parameters. These data storage control parameters specifically include curve type, curve period, and CCO time synchronization period, etc.

[0046] Step S02. After receiving the start command sent by the master station, the concentrator starts the STA storage curve data function and sends the start command and the data storage control parameters to the CCO and STA.

[0047] Step S03. During operation, the CCO performs clock maintenance and, during the CCO clock maintenance process, performs clock synchronization for the entire network or a designated STA and broadcasts an enable command and the corresponding data storage control parameters to each STA.

[0048] Step S04.STA performs real-time clock maintenance and reads and stores the electricity meter data according to the data storage control parameters;

[0049] Step S05. The concentrator reads curve data from the STA according to a preset cycle and uploads it to the main station according to a preset cycle;

[0050] Step S06. When the concentrator receives the shutdown command for STA storing curve data issued by the master station, the concentrator sends a shutdown command to the CCO. After receiving the shutdown command, the CCO broadcasts it to the STA to shut down the curve data storage.

[0051] This embodiment addresses the storage and control of transformer area data curves based on HPLC communication. It extends the STA (Stationary Targeting) curve data storage function to the HPLC communication unit, concentrator, and master station. The master station, concentrator, CCO (Concentrator Control Operator), and STA modules installed on the electricity meters interact. The master station sends STA curve data storage setting and control commands to the concentrator. Upon receiving the commands, the concentrator activates the STA curve data storage function and issues STA storage and parameter setting commands to the CCO and STA. After the CCO forms a network or periodically sends time synchronization commands to the STA, the STA periodically reads the electricity meter data according to the set data type and time interval and stores it in the STA, waiting for the concentrator to read and upload it to the master station. By directly reading and storing the electricity meter data using the STA module, the storage and transmission of transformer area data curves are realized. This ensures complete data acquisition and reading, avoiding incomplete data acquisition, and guarantees time consistency between data points. It effectively ensures the integrity, real-time performance, and reliability of the curve data, solving the problems of incomplete data acquisition and inaccurate data timing in traditional methods.

[0052] In this embodiment, data can be read and stored in the STA module via its hardware interface. Direct reading and storage through the STA module's hardware interface solves the problem of electricity meter data not being saved when traditionally collecting 1-minute or 5-minute curve data. When concentrator data is missing, the STA module can be used to supplement the reading, ensuring the integrity of the electricity meter curve data and further improving data real-time performance and reliability, thus resolving issues of incomplete data and inaccurate data timing. Simultaneously, the curve data in the STA is reliably read from the electricity meter via the hardware interface in a low-latency state when the meter reading cycle arrives, while simultaneously recording the reading time. This solves the problem of increased latency or data loss caused by interference in traditional carrier networks, further improving data time accuracy and real-time performance.

[0053] like Figure 2 As shown, in this embodiment, the master station issues an S-command to enable / disable STA storage curve data and corresponding data storage control parameters. When an enable command is issued, data storage parameters are also issued simultaneously. These data storage control parameters include curve type, curve period, and CCO time synchronization period. When a disable command is issued, only a disable command is issued.

[0054] In step S02 of this embodiment, after receiving the master station's activation command and data storage parameters such as storage type and period, the concentrator controls the concentrator to activate the STA storage curve function, sets the curve type and period, and simultaneously synchronizes the activation command and parameters from the original concentrator to the CCO, immediately sending commands to the CCO and STA. When the concentrator restarts, resets, or reconnects, if it detects that the STA storage curve is activated, it immediately sends a command to the CCO and synchronizes parameters to change from directly reading the energy meter data to reading STA curve data. Then, according to the concentrator's data acquisition task cycle issued by the master station, it periodically reads the data.

[0055] To ensure data consistency, the CCO needs to perform real-time clock maintenance. In this embodiment, step S03, which involves performing real-time clock maintenance for the CCO, includes the following steps:

[0056] Step S301. Determine whether the storage function of CCO is enabled. If so, proceed to step S302.

[0057] Step S302. When the CCO is powered on or reset, it requests the concentrator to perform its own clock calibration and broadcast time synchronization to the entire network or a designated STA;

[0058] Step S303. During CCO operation, a clock request is sent to the concentrator at a preset cycle to broadcast time synchronization to the entire network or a designated STA.

[0059] In step S302 of this embodiment, specifically during the CCO networking process, the CCO broadcasts time synchronization according to a preset cycle until the networking is successful, and then sends another request to the concentrator clock for broadcast time synchronization. When the CCO receives the reassociation request, it triggers broadcast time synchronization after a specified delay. During the delay, it reads the clock of the energy meter from the STA as the current clock. When it receives the time synchronization command from the CCO, it synchronizes with the CCO's clock.

[0060] This embodiment uses the CCO to perform real-time clock maintenance. When the CCO is powered on or reset, it requests the clock from the concentrator to perform its own clock calibration and broadcasts the clock to the entire network or designated STAs for time synchronization. During operation, it requests the clock from the concentrator at preset intervals to broadcast the clock to the entire network or designated STAs for time synchronization. This can effectively ensure the real-time performance and consistency of curve data acquisition points.

[0061] In a specific application embodiment, the detailed process of CCO performing real-time clock maintenance includes:

[0062] 1. CCO Power-On or Reset Triggers Network-Wide Clock Broadcast: When the CCO storage function is enabled, the CCO immediately requests a clock from the concentrator to calibrate its own clock after power-on or reset, recording the request time T1. The CCO begins network setup, broadcasting a calibration message through the HPLC module to synchronize the clocks of all STAs in the network. This process continues until the CCO network setup is complete, at which point it requests the concentrator clock again and broadcasts it network-wide. Figure 3 As shown.

[0063] During the CCO network setup process, the CCO can be configured to broadcast time synchronization every specified time interval until the entire network is successfully established, at which point it will broadcast time synchronization again. When the CCO receives a reassociation request, it will trigger the broadcast time synchronization after a specified delay. During the delay period, association requests will not trigger broadcast time synchronization. The STA will first read the clock of its own electricity meter as its current clock, and then synchronize with the CCO's clock after receiving subsequent time synchronization commands from the CCO.

[0064] 2. CCO periodically triggers network-wide clock broadcast: When the CCO storage function is enabled, starting from time T1, the CCO requests a clock from the concentrator at a fixed period to calibrate its own clock, and performs clock synchronization for all STAs in the network by broadcasting a synchronization message. For example... Figure 4 As shown.

[0065] During the real-time clock maintenance process by the CCO, the CCO performs real-time clock maintenance on the STA via broadcast time synchronization, thereby ensuring time consistency between curve data directly read from the STA module. The specific steps for real-time clock maintenance by the STA in step S04 of this embodiment include:

[0066] Step S401. Start calibrating the real-time clock. After successful time calibration, STA reads the meter clock and calculates the time deviation T between the meter clock and the real-time clock.

[0067] Step S402. When a clock synchronization message is received, set the clock validity flag and store the time deviation T;

[0068] Step S403. Determine whether to start data acquisition based on the acquisition cycle and the current status of the clock validity flag;

[0069] Step S404. When STA is powered on or reset, determine whether the clock needs to be restarted based on the clock validity flag stored before the reset and the state of the clock deviation T.

[0070] In step S404 of this embodiment, if the clock validity flag is valid, the time is not corrected; if the clock validity flag is invalid, the STA does not start the clock, determines the clock deviation T stored before power-on or reset, if the clock deviation T is empty, sets the clock validity flag to invalid, if the clock deviation T is not empty, the STA reads the meter time, calculates the initial clock time based on the time deviation T, restarts the clock, and sets the clock validity flag to valid.

[0071] In a specific application embodiment, after receiving the calibration message sent by the CCO's HPLC module, the STA performs the following steps:

[0072] 1. Start or calibrate the real-time clock. After successful time calibration, STA reads the meter clock.

[0073] 2. STA module curve data storage control: such as Figure 5 As shown, when the STA module's storage function is enabled, it checks whether a broadcast synchronization message from the CCO has been received. If a synchronization message is received, the clock validity flag is set to valid, and the time deviation T between the meter clock and the real-time clock is calculated and stored. If the clock deviation T is greater than a preset threshold (e.g., 24 hours), it is not stored and is left empty. Simultaneously, the configuration ensures that the stored time deviation T is not lost after power failure or reset, although the clock validity flag is lost along with the clock. It then checks whether data acquisition should be started (the conditions for starting data acquisition are that the STA data acquisition task function is enabled, the clock validity flag is valid, and the acquisition cycle has ended). If the clock validity flag is valid and the acquisition cycle has ended, data is acquired and stored according to the preset acquisition scheme (the required data item list).

[0074] 3. STA module reset curve data storage control: such as Figure 6As shown, when the STA is powered on or reset, it checks the clock validity flag stored before the reset. If the clock validity flag is valid, the time is not corrected; if the clock validity flag is invalid, the STA does not start the clock, checks the clock deviation T stored before the power-on or reset. If the clock deviation T is empty, the clock validity flag is set to invalid; if the clock deviation T is not empty, the STA reads the meter time, corrects the real-time clock, calculates the initial clock time based on the time deviation T, starts the clock, and then sets the clock validity flag to valid.

[0075] In a specific application embodiment, when the CCO broadcasts the STA's storage enablement and storage settings, and the CCO receives the STA's network access request and the network access is successful, the CCO immediately configures the data acquisition scheme for the STA. After the STA successfully joins the network, the CCO immediately performs the configuration without waiting for the CCO to determine that the network is complete before making unified configuration, which can further improve data acquisition efficiency. Figure 7 As shown, when the CCO storage function is started, it determines whether a network access request from a STA has been received and whether the network access was successful. If so, the CCO immediately configures the acquisition scheme (data items, acquisition period, etc.) for the STA and records the unicast results.

[0076] In step S04 of this embodiment, after receiving the start command and data storage control parameters, the STA reads real-time energy data according to the curve period in the data storage control parameters and stores the reading time and data. Simultaneously, the STA is configured to prioritize the carrier layer meter reading data task. When the STA has already started the periodic reading task, if it detects a meter reading task on the carrier layer (such as fee control, daily reading freeze, etc.), it controls the current reading task to pause after reading the current data and switches to processing the meter reading task. After processing the meter reading task, it resumes the interrupted reading task, thus ensuring that the data storage task does not affect the execution of the carrier layer meter reading data task. When the STA powers on and reads the meter address, it compares the read table address with the previously stored table address. If the table address has changed, the previous stored record is cleared; otherwise, the current task continues. That is, the curve data reading task is only executed when the table address is consistent, ensuring the reliability of the curve data reading.

[0077] In step S05 of this embodiment, when the concentrator detects that the STA storage curve function is enabled, it reads the curve data and data timestamp (data time stamp) in the meter's STA according to the curve data items and curve cycle. If the data timestamp is correct, the read data is used as the meter curve data; if the data timestamp is incorrect, the data is discarded to ensure that data reading is performed when the data time is consistent, thus ensuring data reliability. The master station periodically collects meter curve data and data timestamp from the concentrator. When the data timestamp is correct, the read meter curve is stored in the master station; when the data timestamp is incorrect, the data is discarded to ensure that data reading is performed when the data time is consistent, thus ensuring data reliability.

[0078] In this embodiment, the detailed steps for disabling the STA storage curve function through interaction between the master station, concentrator, CCO, and STA are as follows: After receiving the shutdown command from the master station, the concentrator changes its operation from reading STA curve data to reading electricity meter data and using it as the electricity meter curve data; the concentrator synchronizes the CCO's storage shutdown command and immediately sends a shutdown command to the CCO; the CCO broadcasts the STA storage shutdown command, and upon receiving the STA storage shutdown command, the CCO broadcasts the shutdown command to the STA. When the CCO restarts, reconnects, or resets, upon receiving the STA storage shutdown command and successfully reconnecting, the CCO broadcasts the shutdown command to the STA.

[0079] The present invention will be further described below using the method described above in a specific application embodiment as an example. For example... Figures 2-7 As shown, the detailed steps for implementing data curve storage control in the distribution area are as follows:

[0080] Step 1: The main station issues the start / stop command for STA curve data storage and data storage control parameters (curve type, curve period, CCO time synchronization period, etc.). When the start command is issued, the data storage parameters are issued at the same time. When the stop command is issued, only the stop command is issued.

[0081] Step 2: The concentrator enables the STA storage curve function and sets the curve type and period. After receiving the master station's enable command and the storage type and period, the concentrator changes from directly reading the electricity meter data to reading the STA curve data. According to the concentrator's data acquisition task period issued by the master station, it reads the data periodically.

[0082] Step 3: The concentrator synchronizes the start command and parameters to the CCO, and immediately sends commands to the CCO and STA. When the concentrator restarts, resets, or reconfigures the network, if it detects that the STA storage curve is enabled, it immediately sends commands to the CCO and synchronizes the parameters.

[0083] Step 4: CCO clock real-time maintenance process.

[0084] 4.1. After powering on or resetting, the CCO immediately requests a clock from the concentrator to calibrate its own clock, and broadcasts a calibration message through the HPLC module to calibrate the clocks of all STAs in the network.

[0085] 4.2. The CCO periodically requests a clock from the concentrator to calibrate its own clock, and then broadcasts a clock synchronization message to synchronize the clocks of all STAs in the network.

[0086] 4.3. During the CCO network setup process, the CCO broadcasts a time synchronization every 5 minutes until the entire network is successfully established, and then broadcasts a time synchronization again. When the CCO receives a re-association request, it triggers a time synchronization broadcast after a 5-minute delay. Association requests within 5 minutes of this broadcast will not trigger a time synchronization broadcast. During the delay period, the STA first reads the clock of its own electricity meter as its current clock, and then synchronizes with the CCO's clock after receiving a time synchronization command from the CCO.

[0087] The default clock cycle requested by the CCO from the concentrator is 4 hours, which can be set via the extended 1376.2 message. The default cycle start time is the time when the CCO first requests the clock from the concentrator.

[0088] Step 5: STA initiates the real-time clock maintenance process. After receiving the HPLC module calibration message from CCO, STA performs the following steps.

[0089] 5.1. Start or calibrate the real-time clock. After successful time calibration, STA reads the meter clock and calculates the time deviation T between the meter clock and the real-time clock.

[0090] 5.2. Upon receiving the clock synchronization message, the clock validity flag is set to valid, and the time deviation T is stored. If the clock deviation T is greater than 24 hours, it is not stored and is left empty. After power failure or reset, the stored time deviation T is not lost, but the clock validity flag should be lost along with the clock itself.

[0091] 5.3 Determine whether to start data acquisition. If the data acquisition task function is enabled, the clock validity flag is valid, and the acquisition period has ended, then determine whether to start data acquisition.

[0092] 5.4. When the STA is powered on or reset, it checks the clock validity flag stored before the reset. If the clock validity flag is valid, the time is not corrected. If the clock validity flag is invalid, the STA does not start the clock, checks the clock deviation T stored before the power-on or reset. If the clock deviation T is empty, the clock validity flag is set to invalid. If the clock deviation T is not empty, the STA reads the meter time, calculates the initial clock time based on the time deviation T, starts the clock, and sets the clock validity flag to valid.

[0093] Step 6: CCO broadcasts STA storage enable and storage settings: When CCO receives the STA's network access request and the network access is successful, CCO immediately configures the data collection scheme to the STA. After the STA successfully joins the network, CCO immediately performs the configuration without waiting for CCO to determine that the network is complete before making unified configuration.

[0094] Step 7: The STA reads and stores electricity meter data according to the curve period and data type: After receiving the storage curve start command and setting parameters, the STA reads real-time electricity data according to the curve period and stores the reading time and data. When the STA has started the periodic reading task, it detects a meter reading task at the carrier layer, pauses the task after reading the current data item, processes the meter reading task in a timely manner, and resumes execution from the breakpoint of the periodic task after processing the meter reading task. The STA reads the meter address upon power-up and compares it with the previously stored meter address. If the meter address has changed, the previous stored record is cleared; otherwise, the current task continues.

[0095] Step 8: The concentrator periodically reads curve data from the STA according to the main station's data acquisition task requirements; when the concentrator detects that the STA's curve storage is enabled, it reads the curve data and data timestamp in the meter's STA according to the curve data item and curve cycle. If the data timestamp is correct, it is used as the meter's curve data; if the data timestamp is incorrect, the data is discarded.

[0096] Step 8: The master station periodically collects the STA curve data of the concentrator meter: The master station periodically collects the meter curve data and time stamp from the concentrator. When the data time stamp is correct, it is retained and stored in the master station. When the data time stamp is incorrect, the data is discarded.

[0097] Step 9: The concentrator disables the STA curve storage function and notifies the CCO and STA. After receiving the master station's shutdown command, the concentrator changes from reading STA curve data to reading electricity meter data as the electricity meter curve data.

[0098] Step 10: The concentrator synchronizes the CCO storage shutdown command and immediately sends the shutdown command to the CCO.

[0099] Step 11: CCO broadcasts STA storage shutdown command: After receiving the STA storage shutdown command, the CCO broadcasts the shutdown command to the STA; when the CCO restarts, reconnects, or resets, after receiving the STA storage shutdown command and successfully reconnecting, the CCO broadcasts the shutdown command to the STA.

[0100] The HPLC communication-based station data curve storage and control device in this embodiment includes:

[0101] The first activation control module is used to send the STA activation command for storing curve data and the corresponding data storage control parameters when curve data storage is required.

[0102] The second activation control module is used to activate the STA storage curve data function after the concentrator receives the activation command sent by the master station, and to send the activation command and the data storage control parameters to the CCO and STA.

[0103] The first clock maintenance and storage control module is used for CCO to perform clock maintenance during operation, and to perform clock synchronization for the entire network or designated STAs and broadcast start commands and corresponding data storage control parameters to each STA during the CCO clock maintenance process.

[0104] The second clock maintenance and storage control module is used by the STA to perform real-time clock maintenance and to read and store the energy meter data according to the data storage control parameters.

[0105] The data upload module is used by the concentrator to read curve data from the STA according to a preset cycle and upload it to the main station according to a preset cycle.

[0106] The storage shutdown control module is used to send a shutdown command to the CCO when the concentrator receives a shutdown command for the STA stored curve data from the master station. After receiving the shutdown command, the CCO broadcasts it to the STA to shut down the curve data storage.

[0107] The aforementioned modules can be specifically set in the corresponding master station, concentrator, CCO, and STA modules. For example, the first power-on control module can be set in the master station to perform the master station's power-on control, the second power-on control module can be set in the concentrator to perform the concentrator's power-on control, the first clock maintenance and storage control module can be set in the CCO to perform the CCO's clock maintenance and storage control, and the second clock maintenance and storage control module can be set in the STA module to perform the STA module's clock maintenance and storage control. The data upload module can be implemented by the data transmission equipment in the concentrator, or the corresponding control functions can be directly implemented by the control systems in the master station, concentrator, CCO, and STA modules. For example, the storage shutdown control module can be implemented by the control systems set in the master station, concentrator, CCO, and STA modules respectively to perform their respective shutdown controls. Alternatively, the functions of the above modules can be uniformly executed by a remote control system. The specific configuration can be based on actual needs.

[0108] The HPLC communication-based station data curve storage and control device in this embodiment corresponds one-to-one with the HPLC communication-based station data curve storage and control method described above, and will not be described in detail here.

[0109] This embodiment also provides a computer device, including a processor and a memory, the memory for storing a computer program and the processor for executing the computer program to perform the methods described above.

[0110] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the invention. Therefore, any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention should fall within the protection scope of the present invention.

Claims

1. A method for storing and controlling station data curves based on HPLC communication, characterized in that the steps include... include: Step S01. When curve data storage is required, the master station issues a STA command to enable curve data storage and corresponding data storage control parameters, including curve type, curve period, and CCO time synchronization period; Step S02. After receiving the start command sent by the master station, the concentrator starts the STA storage curve data function and sends the start command and the data storage control parameters to the CCO and STA. Step S03. During operation, the CCO performs clock maintenance and, during the CCO clock maintenance process, performs clock synchronization for the entire network or a designated STA and broadcasts the start command and the corresponding data storage control parameters to each STA. Step S04.STA performs real-time clock maintenance and reads and stores the electricity meter data according to the data storage control parameters; Step S05. The concentrator reads curve data from the STA according to a preset cycle and uploads it to the main station according to a preset cycle; Step S06. When the concentrator receives the shutdown command for STA to store curve data from the master station, the concentrator sends the shutdown command to the CCO. After receiving the shutdown command, the CCO broadcasts it to the STA to shut down the curve data storage. In step S05, when the concentrator detects that the STA storage curve function is enabled, it reads the curve data and data timestamp in the STA of the electricity meter according to the curve data item and curve period. If the data timestamp is correct, the read data is used as the electricity meter curve data. If the data timestamp is incorrect, the data is discarded. The master station periodically collects the electricity meter curve data and data timestamp from the concentrator. When the data timestamp is correct, the read electricity meter curve is stored in the master station. When the data timestamp is incorrect, the data is discarded.

2. The method for storing and controlling station data curves based on HPLC communication according to claim 1, characterized in that, The steps in step S03 include: Step S301. Determine whether the storage function of CCO is enabled. If so, proceed to step S302. Step S302. When the CCO is powered on or reset, it requests the concentrator to perform its own clock calibration and broadcast time synchronization to the entire network or a designated STA; Step S303. During CCO operation, a clock request is sent to the concentrator at a preset cycle to broadcast time synchronization to the entire network or a designated STA.

3. The method for storing and controlling station data curves based on HPLC communication according to claim 2, characterized in that, In step S302, during the CCO networking process, the CCO broadcasts time synchronization according to a preset cycle until the networking is successful, and then sends another request to the concentrator clock for broadcast time synchronization. When the CCO receives the reassociation request, it triggers broadcast time synchronization after a specified delay. During the delay, it reads the clock of the energy meter from the STA as the current clock. When it receives the time synchronization command from the CCO, it synchronizes with the CCO's clock.

4. The method for storing and controlling station data curves based on HPLC communication according to claim 1, characterized in that, The step of STA performing real-time clock maintenance in step S04 includes: Step S401. Start calibrating the real-time clock. After successful time calibration, STA reads the meter clock and calculates the time deviation T between the meter clock and the real-time clock. Step S402. When a clock synchronization message is received, set the clock validity flag and store the time deviation T; Step S403. Determine whether to start data acquisition based on the acquisition cycle and the current status of the clock validity flag; Step S404. When STA is powered on or reset, determine whether the clock needs to be restarted based on the clock validity flag stored before the reset and the state of the clock deviation T.

5. The method for storing and controlling station data curves based on HPLC communication according to claim 4, characterized in that, In step S404, if the clock validity flag is valid, the time is not corrected. If the clock validity flag is invalid, the STA does not start the clock, but checks the clock deviation T stored before power-on or reset. If the clock deviation T is empty, the clock validity flag is set to invalid. If the clock deviation T is not empty, the STA reads the meter time and calculates the initial clock time based on the time deviation T. After restarting the clock, the clock validity flag is set to valid.

6. The method for storing and controlling station data curves based on HPLC communication according to any one of claims 1 to 5, characterized in that, In step S04, after receiving the start command and the data storage control parameters, the STA reads the real-time power data according to the curve period in the data storage control parameters and stores the reading time and data. When the STA has started the periodic reading task, if it senses that there is a meter reading task at the carrier layer, it controls the current reading task to be paused after reading the current data and switches to processing the meter reading task. After processing the meter reading task, it resumes the breakpoint execution of the reading task. When the STA is powered on and reads the meter address, it compares the read meter address with the previously stored meter address. If the meter address has changed, the previous stored record is cleared; otherwise, the current task continues to be executed.

7. A station data curve storage and control device based on HPLC communication, characterized in that, include: The first activation control module is used to send an activation command for STA curve data storage and corresponding data storage control parameters from the main station when curve data storage is required. The data storage control parameters include curve type, curve period, and CCO time synchronization period. The second activation control module is used to activate the STA storage curve data function after the concentrator receives the activation command sent by the master station, and to send the activation command and the data storage control parameters to the CCO and STA. The first clock maintenance and storage control module is used for the CCO to perform clock maintenance during operation, and to perform clock synchronization for the entire network or designated STAs and broadcast the start command and the corresponding data storage control parameters to each STA during the CCO clock maintenance process. The second clock maintenance and storage control module is used by the STA to perform real-time clock maintenance and to read and store the energy meter data according to the data storage control parameters. The data upload module is used by the concentrator to read curve data from the STA according to a preset cycle and upload it to the main station according to a preset cycle. The storage shutdown control module is used to send a shutdown command to the CCO when the concentrator receives a shutdown command for the STA stored curve data from the master station. After receiving the shutdown command, the CCO broadcasts it to the STA to shut down the curve data storage. In the data upload module, when the concentrator detects that the STA storage curve function is enabled, it reads the curve data and data timestamp in the meter's STA according to the curve data items and curve period. If the data timestamp is correct, the read data is used as the meter curve data; if the data timestamp is incorrect, the data is discarded. The master station periodically collects the meter curve data and data timestamp from the concentrator. When the data timestamp is correct, the read meter curve is stored in the master station; when the data timestamp is incorrect, the data is discarded.

8. A computer device comprising a processor and a memory, the memory being used to store a computer program, characterized in that, The processor is used to execute the computer program to perform the method as described in any one of claims 1 to 6.