CN115833877A - Method and device for storing and controlling data curve of distribution room based on HPLC communication - Google Patents

Method and device for storing and controlling data curve of distribution room based on HPLC communication Download PDF

Info

Publication number
CN115833877A
CN115833877A CN202211458387.6A CN202211458387A CN115833877A CN 115833877 A CN115833877 A CN 115833877A CN 202211458387 A CN202211458387 A CN 202211458387A CN 115833877 A CN115833877 A CN 115833877A
Authority
CN
China
Prior art keywords
data
sta
clock
cco
curve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211458387.6A
Other languages
Chinese (zh)
Inventor
贺星
余敏琪
黄瑞
胡婷
曾文伟
张随涵
刘谋海
苏玉萍
马叶钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Hunan Electric Power Co Ltd
Metering Center of State Grid Hunan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Hunan Electric Power Co Ltd
Metering Center of State Grid Hunan Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Hunan Electric Power Co Ltd, Metering Center of State Grid Hunan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202211458387.6A priority Critical patent/CN115833877A/en
Publication of CN115833877A publication Critical patent/CN115833877A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a device for storing and controlling a data curve of a distribution room based on HPLC communication, wherein the method comprises the following steps: s01, issuing a starting command and parameters of STA storage curve data by a master station; s02, after receiving the starting instruction, the concentrator issues the starting instruction and parameters to the CCO and the STA; s03, carrying out clock maintenance by the CCO, carrying out clock timing on the STA, and broadcasting and sending a starting instruction and parameters; s04, performing clock maintenance by the STA in real time, and reading data of the electric energy meter according to the parameters for storage; s05, the concentrator reads curve data from the STA according to a preset period and uploads the curve data to the master station according to the preset period; and S06, when the concentrator receives a closing instruction, sending the closing instruction to a CCO (central control unit), and sending CCO broadcast to the STA. The invention has the advantages of simple realization method, high acquisition efficiency and data integrity, time consistency among data and the like.

Description

Method and device for storing and controlling data curve of distribution room based on HPLC communication
Technical Field
The invention relates to the technical field of low-voltage distribution room data storage, in particular to a distribution room data curve storage control method and device based on HPLC communication.
Background
With the large-scale application of a low-voltage high-speed carrier communication technology (HPLC) in the collection of electricity utilization information of an electric energy meter in a platform area, the efficiency of transmitting electricity utilization data such as electric power quantity, voltage, current, power and the like in the low-voltage platform area is higher and higher, and the transmission speed and the data quantity are also increased in multiple levels. The concentrator collects real-time or frozen data of the electric energy meter by using an HPLC communication technology, electric energy information collected at different moments is collected to form an electric energy curve, the curve data is transmitted to a remote master station, the quality of electric energy for power utilization can be monitored, a small-level electric bill can be provided, time-sharing line loss calculation and the like can be carried out through curve data such as electric quantity, voltage and the like of a user or equipment, and therefore intelligent management of the power utilization of the user can be achieved by means of the stored electric energy curve.
At present, the collection of curve data of the electric energy meter is mainly realized through interaction of a main station (a control end), a concentrator (a gateway) and an intelligent electric meter (an equipment end), the main station sends a setting and query instruction of electric energy curve storage to the concentrator through a wireless network, the concentrator sends configuration information of the main station to the intelligent electric meter through HPLC after receiving the instruction, and the intelligent electric meter reports the electric energy curve of a user according to the instruction. However, since the distribution room adopts a full carrier communication mode, and is affected by signal interference of a field distribution room or multiple processing tasks of distribution room equipment, etc., the electrical quantity curve data of a distribution room user is often incompletely collected, so that it is difficult to completely collect 24-point or 96-point electrical quantity curve data, and the data is easily affected by the clock of the intelligent electric energy meter, so that time points of the freezing curve data of the electric energy meter collected in the distribution room are inconsistent, and subsequent use of the data is affected. Therefore, it is desirable to provide a method capable of simultaneously ensuring the integrity of the collected data of the electrical quantity curve data of the station area users and the time consistency between the curve data.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the technical problems in the prior art, the invention provides a method and a device for storing and controlling the data curve of the platform area based on HPLC communication, which have the advantages of simple implementation method, high acquisition efficiency and data integrity and time consistency among data.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
a distribution room data curve storage control method based on HPLC communication comprises the following steps:
s01, when curve data storage is needed, a master station sends a starting command of STA storage curve data and corresponding data storage control parameters;
s02, after receiving a starting instruction sent by a master station, a concentrator starts a STA (station) curve data storage function and issues the starting instruction and the data storage control parameters to a CCO (central control unit) and the STA;
step S03. The CCO maintains the clock in the running process, and performs clock timing to the whole network or the appointed STA and broadcasts and sends the starting instruction and the corresponding data storage control parameter to each STA in the CCO clock maintenance process;
s04, performing clock maintenance by the STA in real time, and reading electric energy meter data according to the data storage control parameters for storage;
s05, the concentrator reads curve data from the STA according to a preset period and uploads the curve data to the master station according to the preset period;
and S06, when the concentrator receives a closing instruction of the STA storage curve data sent by the master station, the concentrator sends the closing instruction to the CCO, and the CCO receives the closing instruction and then broadcasts and sends the closing instruction to the STA to close curve data storage.
Further, the data storage control parameters include a curve type, a curve period and a CCO timing period.
Further, the step S03 includes:
s301, judging whether the storage function of the CCO is started, and if so, turning to S302;
step S302, when the CCO is powered on or reset, requesting a clock from the concentrator to carry out clock calibration per se and carrying out broadcast timing on the whole network or a designated STA;
and S303, requesting a clock to a concentrator according to a preset period in the CCO operation process to carry out broadcast timing on the whole network or the appointed STA.
Further, in the step S302, in the CCO networking process, the CCO performs broadcast timing according to a preset period, and sends a request to the concentrator clock for broadcast timing again after the networking is successful; when the CCO receives the re-association request, the broadcasting time correction is triggered after the specified time delay, the clock of the electric energy meter read from the STA is used as the current clock in the time delay period, and the clock is synchronized with the clock of the CCO after the time correction command of the CCO is received.
Further, the step of performing, by the STA in real time in step S04, clock maintenance includes:
step S401, starting a calibration real-time clock, reading an ammeter clock by an STA after the timing is successful, and calculating the time deviation T between the ammeter clock and the real-time clock;
s402, when a timing message is received, setting a clock effective mark and storing a time deviation T;
s403, judging whether to start data acquisition according to the acquisition period and the state of the current clock effective judgment mark;
and S404, when the STA is powered on or reset, judging whether the clock needs to be restarted or not according to the clock effective mark stored before resetting and the state of the clock deviation T.
Further, in the step S404, if the clock valid flag is valid, the time is not corrected; if the clock valid flag is invalid, the STA does not start the clock, the clock deviation T stored before power-on or resetting is judged, if the clock deviation T is null, the clock valid flag is invalid, if the clock deviation T is not null, the STA reads the electricity meter time, calculates the clock initial time according to the time deviation T, and restarts the clock rear clock valid flag to be valid.
Further, in step S04, after receiving the start instruction and the data storage control parameter, the STA reads the real-time electric energy data according to the curve period in the data storage control parameter, and stores the reading time and data; when the STA starts a periodic reading task and senses that a reading task exists in a carrier layer, the current reading task is suspended after the current data is completely read, the reading task is switched to be processed, and the reading task is executed at a breakpoint after the reading task is completely processed; when the STA is powered on to read the table address, the read table address is compared with the table address stored before, if the table address is changed, the previous stored record is cleared, otherwise, the current task is continuously executed.
Further, in step S05, when the concentrator detects that the STA function is turned on, reading the curve data and the data time scale in the meter STA according to the curve data item and the curve period, if the data time scale is correct, using the read data as the meter curve data, and if the data time scale is incorrect, discarding the data; the master station periodically collects the electric meter curve data and the data time scales from the concentrator, when the data time scales are correct, the read electric meter curve is reserved and stored in the master station, and when the data time scales are incorrect, the data are discarded.
A platform district data curve storage controlling means based on HPLC communication includes:
the first starting control module is used for sending a starting command of the STA for storing the curve data and corresponding data storage control parameters by the main station when the curve data is required to be stored;
the second starting control module is used for starting the STA curve data storage function after the concentrator receives a starting instruction sent by the master station, and issuing the starting instruction and the data storage control parameters to the CCO and the STA;
the first clock maintenance and storage control module is used for performing clock maintenance on the CCO in the running process, performing clock timing on the whole network or the appointed STA in the CCO clock maintenance process, and broadcasting and sending the starting instruction and the corresponding data storage control parameters to the STAs;
the second clock maintenance and storage control module is used for performing clock maintenance on the STA in real time and reading the data of the electric energy meter according to the data storage control parameters for storage;
the data uploading module is used for reading curve data from the STA by the concentrator according to a preset period and uploading the curve data to the main station according to the preset period;
and the storage closing control module is used for sending a closing instruction to the CCO by the concentrator when the concentrator receives a closing instruction of the STA storage curve data sent by the master station, and the CCO broadcasts and sends the closing instruction to the STA to close the curve data storage after receiving the closing instruction.
A computer apparatus comprising a processor and a memory, the memory being arranged to store a computer program, the processor being arranged to execute the computer program to perform the method as described above.
Compared with the prior art, the invention has the advantages that: the invention expands the function of STA storage curve data in an HPLC communication unit, a concentrator and a master station, the master station sends a setting and control instruction of STA storage curve data to the concentrator, the concentrator starts the function of STA storage curve data after receiving the instruction and issues an STA storage and parameter setting instruction to CCO and STA, the CCO sends a timing instruction to the STA after networking or periodically, the STA reads electric energy meter data periodically according to the set data type and time interval and stores the electric energy meter data in the STA, the concentrator waits for reading and uploading to the master station, and the storage and transmission of a station area data curve are realized by directly reading the electric energy meter data by using an STA module, so that the integrity, the real-time performance and the reliability of the curve data can be effectively ensured, the data acquisition and reading can be completely carried out, the data acquisition insufficiency is avoided, the time consistency among the acquired data points can be ensured, and the problems of incomplete data acquisition and inaccurate data time in the traditional method are solved.
Drawings
Fig. 1 is a schematic flow chart of an implementation of the table area data curve storage control method based on HPLC communication in this embodiment.
Fig. 2 is a detailed implementation flow diagram of the table area data curve storage control based on HPLC communication in the embodiment of the present invention.
Fig. 3 is a schematic flow chart illustrating triggering of a network-wide broadcast clock after a CCO is powered on or reset in an embodiment of the present invention.
Fig. 4 is a flowchart illustrating an implementation of a CCO periodically triggering a broadcast clock over the network in an embodiment of the present invention.
Fig. 5 is a flowchart illustrating STA module data curve storage control in an embodiment of the present invention.
Fig. 6 is a flowchart illustrating data curve storage control after the STA module is reset according to an embodiment of the present invention.
Fig. 7 is a schematic flow chart of the storage start and storage setting of the CCO broadcast transmitting STA in the embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the drawings and specific preferred embodiments of the description, without thereby limiting the scope of protection of the invention.
As shown in fig. 1, the step of the table area data curve storage control method based on HPLC communication in this embodiment includes:
s01, when curve data storage is needed, a master station sends an opening command of STA storage curve data and corresponding data storage control parameters, wherein the data storage control parameters specifically comprise a curve type, a curve period, a CCO timing period and the like;
s02, after receiving a starting instruction sent by a master station, a concentrator starts a STA (station) curve data storage function and issues the starting instruction and the data storage control parameters to a CCO (central control unit) and the STA;
step S03. The CCO maintains the clock in the running process, and performs clock timing to the whole network or the appointed STA and broadcasts and sends an opening instruction and the corresponding data storage control parameters to each STA in the CCO clock maintenance process;
s04, performing clock maintenance by the STA in real time, and reading electric energy meter data according to the data storage control parameters for storage;
s05, the concentrator reads curve data from the STA according to a preset period and uploads the curve data to the master station according to the preset period;
and S06, when the concentrator receives a closing instruction of the STA storage curve data sent by the master station, the concentrator sends the closing instruction to the CCO, and the CCO receives the closing instruction and then broadcasts and sends the closing instruction to the STA to close curve data storage.
The embodiment aims at the station area data curve storage control based on HPLC communication, the STA curve data storage function is expanded in an HPLC communication unit, a concentrator and a master station, the master station interacts with an STA module installed on an electric meter through the master station, the concentrator and a CCO, the master station sends a setting and control instruction of STA curve data storage to the concentrator, the concentrator receives the instruction, starts the STA curve data storage function and sends an STA storage and parameter setting instruction to the CCO and the STA, the CCO sends a timing instruction to the STA after networking or periodically, the STA reads electric energy meter data periodically according to the set data type and time interval and stores the electric energy meter data in the STA, the concentrator is waited to read and upload the master station, the STA module is used for directly reading the electric energy meter data and stores the electric energy meter data in the STA module, the storage and transmission of the station area data curve are realized, the data collection and reading can be carried out completely, the data collection and incomplete, the time consistency among data points can be ensured, the tradition, the real-time and the reliability of the curve data can be effectively ensured, and the problems of incomplete data collection and the data time are solved.
The embodiment can specifically read and store the data in the STA module through the hardware interface of the STA module, and can solve the problem that the electric energy meter data cannot be stored when the curve data of 1 minute or 5 minutes is acquired in the prior art because the data is directly read and stored through the hardware interface of the STA module; meanwhile, when the meter reading period is up, the curve data in the STA is reliably read by the hardware interface in a low-delay state, and the reading time is recorded, so that the problems of delay increase or data loss caused by interference of the traditional carrier network can be solved, and the time precision and the real-time property of the data are further improved.
As shown in fig. 2, in this embodiment, specifically, a master station issues an on/off S command for STA to store curve data and a corresponding data storage control parameter, and when issuing an on command, the master station may issue data storage parameters at the same time, where the data storage control parameter includes a curve type, a curve period, and a CCO timing period; when the close command is issued, only the close command is issued.
In step S02 of this embodiment, after receiving the master station startup instruction and the data storage parameters such as the storage type and period, the concentrator controls the concentrator to start the STA storage curve function, set the curve type and period, and simultaneously synchronously start the instruction and the parameters from the original concentrator to the CCO, and immediately send the instruction to the CCO and the STA. When the concentrator is restarted, reset and re-networked, if the STA storage curve is detected to be started, an instruction is immediately sent to the CCO and parameters are synchronized so as to directly read the data of the electric energy meter and change the data into the data of the STA curve, and then the data are regularly read according to a task period acquired by the concentrator issued by the master station.
In order to ensure the consistency of data, the CCO needs to perform real-time clock maintenance, and the specific step of performing CCO real-time clock maintenance in step S03 in this embodiment includes:
s301, judging whether the storage function of the CCO is started, and if so, turning to S302;
step S302, when the CCO is powered on or reset, requesting a clock to a concentrator to carry out self clock calibration and carrying out broadcast timing on the whole network or a designated STA;
and S303, requesting a clock to a concentrator according to a preset period in the CCO operation process to carry out broadcast timing on the whole network or the appointed STA.
In step S302 of this embodiment, specifically, in the CCO networking process, the CCO performs broadcast timing according to a preset period, and sends a request to the concentrator clock for broadcast timing again until the networking is successful; when the CCO receives the re-association request, the broadcasting time correction is triggered after the specified time delay, the clock of the electric energy meter read from the STA is used as the current clock in the time delay period, and the clock is synchronized with the clock of the CCO after the time correction command of the CCO is received.
In the embodiment, clock maintenance is performed in real time through the CCO, when the CCO is powered on or reset, the concentrator is requested to perform clock calibration per se and perform broadcast timing on the whole network or the designated STA, and when the concentrator is requested to perform broadcast timing on the whole network or the designated STA according to the preset period in the operation process, the real-time performance and the consistency of curve data acquisition points can be effectively ensured.
In a specific application embodiment, a detailed flow of the CCO performing real-time clock maintenance includes:
triggering a whole network broadcast clock after CCO is electrified or reset: when the CCO storage function is enabled, the CCO immediately requests a clock to the concentrator to calibrate its own clock after being powered on or reset, records the current request time T1, the CCO starts networking, performs clock timing on the STA in the whole network by broadcasting a timing message through the HPLC module, and requests the clock of the concentrator again and performs the broadcast in the whole network until the CCO networking is completed, as shown in fig. 3.
In the CCO networking process, the CCO can be specifically configured to broadcast the time correction once every appointed time until all networking is successful and then broadcast the time correction once again. When the CCO receives the re-association request, the broadcast timing is triggered by the time delay designated duration, the broadcast timing is not triggered by the association request in the time delay period, the slave STA reads the clock of the electric energy meter as the current clock firstly, and then the slave STA receives the timing command of the CCO and then synchronizes with the clock of the CCO.
The CCO periodically triggers the whole network broadcast clock: when the CCO storage function is started, from the moment T1, the CCO requests a clock from the concentrator according to a fixed period to calibrate the clock of the CCO, and the clock timing is carried out on the STA in the whole network through the broadcast timing message. As shown in fig. 4.
In the process of maintaining the clock in real time by the CCO, the clock maintenance of the STA is performed in real time by the CCO through broadcasting time correction, so that time consistency can be realized among curve data directly read by the STA module. The specific steps of the STA performing clock maintenance in real time in step S04 in this embodiment include:
step S401, starting a calibration real-time clock, reading an ammeter clock by an STA after the timing is successful, and calculating the time deviation T between the ammeter clock and the real-time clock;
s402, when a timing message is received, setting a clock effective mark and storing a time deviation T;
s403, judging whether to start data acquisition according to the acquisition period and the state of the current clock valid judgment mark;
and S404, when the STA is powered on or reset, judging whether the clock needs to be restarted or not according to the clock effective mark stored before resetting and the state of the clock deviation T.
In step S404, in this embodiment, specifically, if the clock valid flag is valid, the time is not corrected; if the clock valid flag is invalid, the STA does not start the clock, the clock deviation T stored before power-on or resetting is judged, if the clock deviation T is null, the clock valid flag is invalid, if the clock deviation T is not null, the STA reads the electricity meter time, calculates the clock initial time according to the time deviation T, and restarts the clock rear clock valid flag to be valid.
In a specific application embodiment, after receiving the timing message sent by the HPLC module of the CCO, the STA specifically executes the following steps:
1. and starting or calibrating the real-time clock, and reading the electric meter clock by the STA after the time calibration is successful.
STA module curve data storage control: as shown in fig. 5, in a state where the storage function of the STA module is enabled, it is determined whether a broadcast timing message of the CCO is received, if the broadcast timing message is received, a clock valid flag is set to be valid, and a time deviation T between the electric meter clock and the real-time clock is calculated and stored, and if the clock deviation T is greater than a preset threshold (for example, 24 hours), the clock deviation T is not stored as empty. Meanwhile, the configuration ensures that the storage time deviation T cannot be lost after power failure or reset, and the clock valid mark can be lost together with clock loss; and judging whether to start data acquisition (the starting data acquisition condition is that the STA data acquisition task function is started, the clock valid flag is valid and the acquisition period is up), and if the clock valid flag is valid and the acquisition period is up, acquiring and storing according to a preset acquisition scheme (a required data item list).
And 3, controlling the storage of curve data after the STA module is reset: as shown in fig. 6, after the STA is powered on or reset, the clock valid flag stored before reset is determined, and if the clock valid flag is valid, the time is not corrected; if the clock valid flag is invalid, the STA does not start the clock, and judges the clock deviation T stored before power-on or reset, if the clock deviation T is null, the clock valid flag is set to be invalid; if the clock deviation T is not null, the STA reads the time of the electric meter, corrects the real-time clock, calculates the initial time of the clock according to the time deviation T, and resets the clock valid flag to be valid after starting the clock.
In a specific application embodiment, when the CCO broadcasts and sends the storage start and storage setting of the STA, the CCO receives the network access request of the STA and succeeds in network access, the CCO immediately configures the acquisition scheme for the STA, and after the STA succeeds in network access, the CCO immediately configures without waiting for the CCO to judge that the networking is completed and then uniformly configures, so that the acquisition efficiency can be further improved. As shown in fig. 7, when the CCO storage function is started, it is determined whether an STA access request is received and the access is successful, and if so, the CCO immediately configures an acquisition scheme (data item, acquisition period, etc.) for the STA and records a unicast result.
In step S04 of this embodiment, after receiving the start instruction and the data storage control parameter, the STA reads the real-time electric energy data according to the curve period in the data storage control parameter, and stores the reading time and data; and meanwhile, configuring an STA (station) to preferentially ensure the priority of a carrier layer meter reading data task, when the STA starts a periodic meter reading task and senses that the carrier layer has meter reading tasks (such as fee control, reading day freezing and other services), controlling to stop the current meter reading task after reading the current data, switching to the meter reading task processing, and continuing to execute the reading task at a breakpoint after processing the meter reading task, so that the data storage task does not influence the execution of the carrier layer meter reading data task. When the STA is electrified to read the table address, the read table address is compared with the table address stored before, if the table address is changed, the previous storage record is cleared, otherwise, the current task is continuously executed, namely, the curve data reading task is executed only under the condition that the table addresses are consistent, and the reliability of the curve data reading is ensured.
In step S05, in this embodiment, when the concentrator detects that the STA curve storage function is turned on, the concentrator reads the curve data and the data time stamp (data time stamp) in the meter STA according to the curve data item and the curve period, if the data time stamp is correct, the read data is used as the meter curve data, and if the data time stamp is incorrect, the data is discarded, so as to ensure that the data is read when the data time is consistent, and ensure the reliability of the data; the master station periodically collects the electric meter curve data and the data time scale from the concentrator, when the data time scale is correct, the read electric meter curve is stored in the master station, when the data time scale is incorrect, the data is discarded, so that the data reading is carried out when the data time is consistent, and the reliability of the data is ensured.
In this embodiment, the detailed steps of interactively closing the STA storage curve function by the master station, the concentrator, the CCO, and the STA include: after receiving a master station closing instruction, the concentrator changes the original reading of STA curve data into the reading of electric energy meter data and takes the data as the electric energy meter curve data; the concentrator synchronizes the CCO storage closing instruction, and immediately sends the closing instruction to the CCO; and broadcasting and sending the STA storage closing instruction to the STA by the CCO after the CCO receives the STA storage closing instruction. When the CCO is restarted, re-networked or reset, the CCO receives the STA storage closing instruction, and after networking is successful, the CCO broadcasts and sends the closing instruction to the STA.
The present invention will be further described below by taking the above-described method of the present invention as an example in a specific application example. As shown in fig. 2 to 7, the detailed steps of implementing the table area data curve storage control are as follows:
step 1: the main station issues an on/off command of STA curve data storage and data storage control parameters (curve type, curve period, CCO timing period and the like), wherein when the on command is issued, the data storage parameters are issued at the same time, and when the off command is issued, only the off command is issued.
Step 2: the concentrator starts the STA storage curve function to set the curve type and period, after receiving the master station starting instruction and the storage type and period, the concentrator changes the original direct reading of the electric energy meter data into reading of the STA curve data, and the data are read regularly according to the concentrator collection task period issued by the master station.
And 3, step 3: the concentrator synchronizes the startup command and parameters to the CCO and immediately sends commands to the CCO and STAs. When the concentrator is restarted, reset and re-networked, if the STA storage curve is detected to be opened, an instruction is immediately sent to the CCO and the parameters are synchronized.
And 4, step 4: and (5) carrying out real-time maintenance process of the CCO clock.
And 4.1, after the CCO is powered on or reset, the clock is immediately requested to the concentrator to calibrate the clock of the concentrator, and the HPLC module broadcasts a timing message to perform clock timing on the STA in the whole network.
And 4.2, the CCO requests a clock from the concentrator in a fixed period to calibrate the clock of the concentrator, and the clock timing is carried out on the STA in the whole network through the broadcast timing message.
And 4.3. In the CCO networking process, broadcasting the time correction once every 5 minutes by the CCO until all networking is successful, and then broadcasting the time correction once again. The CCO receives the re-association request, the broadcast time correction is triggered by delaying for 5 minutes, and the association request within 5 minutes of the broadcast time correction does not trigger the broadcast time correction any more; during the time delay, the slave STA reads the clock of the electric energy meter as the current clock, and then receives the timing command of the CCO and synchronizes with the clock of the CCO.
The CCO requests the concentrator for a clock default period of 4 hours, which can be set by an extended 1376.2 message. The default cycle timing start time is the first time the CCO requests a clock time from the concentrator.
And 5: the STA starts a clock real-time maintenance flow. And the STA executes the following steps after receiving the HPLC module timing message of the CCO.
5.1. And after the time correction is successful, the STA reads the electric meter clock and calculates the time deviation T between the electric meter clock and the real-time clock.
5.2. And after receiving the timing message, setting a clock valid flag to be valid, storing the time deviation T, and if the clock deviation T is more than 24 hours, not storing the time deviation T as null. After power failure or reset, the storage time deviation T is not lost, and the clock valid flag should be lost together with clock loss.
And 5.3, judging whether to start data acquisition, and if the data acquisition task function is started, the clock valid flag is valid and the acquisition cycle is up, judging to start data acquisition.
5.4. When the STA is powered on or reset, judging a clock valid flag stored before resetting, and if the clock valid flag is valid, not correcting time; if the clock valid flag is invalid, the STA does not start the clock, judges the clock deviation T stored before power-on or reset, and if the clock deviation T is null, sets the clock valid flag to be invalid; if the clock deviation T is not null, the STA reads the electric meter time, calculates the clock initial time according to the time deviation T, starts the clock and sets the clock valid flag to be valid.
Step 6: the CCO broadcast transmitting STA stores open and stores settings: the CCO receives the network access request of the STA and successfully accesses the network, the CCO immediately configures the acquisition scheme for the STA, and immediately configures the CCO after the STA successfully accesses the network without uniformly configuring the acquisition scheme after the CCO judges that the networking is finished.
And 7: reading the data of the electric energy meter by the STA according to the curve period and the data type and storing the data: and after the STA receives the storage curve starting instruction and the setting parameters, reading the real-time electric energy data according to the curve period, and storing the reading time and the data. When the STA starts the periodic reading task, the reading task is sensed to exist in the carrier layer, the current data item is read and the task is suspended, the reading task is processed in time, and after the reading task is processed, the periodic task is executed at the breakpoint. And comparing the power-on reading table address of the STA with the previously stored table address, clearing the previously stored record if the table address is changed, and otherwise, continuing the current task.
And 8: the concentrator periodically reads curve data from the STA according to the task acquisition requirement of the master station; and after the concentrator detects that the STA storage curve is started, reading curve data and a data time scale in the electricity meter STA according to the curve data item and the curve period, taking the electricity meter curve data when the data time scale is correct, and discarding the data when the data time scale is incorrect.
And 8: the main station regularly acquires the STA curve data of the concentrator ammeter: and the master station periodically collects the electric meter curve data and the time scale from the concentrator, the electric meter curve data and the time scale are stored in the master station when the data time scale is correct, and the data are discarded when the data time scale is incorrect.
And step 9: the concentrator closes the STA storage curve function and informs the CCO and the STA at the same time; and after receiving the master station closing instruction, the concentrator changes the original reading of STA curve data into the reading of electric energy meter data to be used as the electric energy meter curve data.
Step 10: the concentrator synchronizes the CCO store close command and the concentrator immediately sends the close command to the CCO.
Step 11: CCO broadcast transmitting STA store off: after receiving the STA storage closing instruction, the CCO broadcasts and sends the closing instruction to the STA; when the CCO is restarted, re-networked or reset, the CCO receives the STA storage closing instruction, and after networking is successful, the CCO broadcasts and sends the closing instruction to the STA.
The station area data curve storage control device based on HPLC communication in the embodiment comprises:
the first starting control module is used for sending a starting command of the STA for storing the curve data and corresponding data storage control parameters by the main station when the curve data is required to be stored;
the second starting control module is used for starting the STA storage curve data function after the concentrator receives a starting instruction sent by the master station, and issuing the starting instruction and the data storage control parameters to the CCO and the STA;
the first clock maintenance and storage control module is used for performing clock maintenance on the CCO in the running process, performing clock timing on the whole network or the appointed STA in the CCO clock maintenance process, and broadcasting and sending a starting instruction and corresponding data storage control parameters to the STAs;
the second clock maintenance and storage control module is used for performing clock maintenance on the STA in real time and reading and storing the data of the electric energy meter according to the data storage control parameters;
the data uploading module is used for reading curve data from the STA by the concentrator according to a preset period and uploading the curve data to the main station according to the preset period;
and the storage closing control module is used for sending a closing instruction to the CCO by the concentrator when the concentrator receives a closing instruction of the STA storage curve data sent by the master station, and the CCO broadcasts and sends the closing instruction to the STA to close the curve data storage after receiving the closing instruction.
The modules may be specifically disposed in corresponding master stations, concentrators, CCOs, and STA modules, for example, a first start control module is disposed in a master station to perform start control of the master station, a second start control module is disposed in a concentrator to perform start control of the concentrator, a first clock maintenance and storage control module is disposed in a CCO to perform clock maintenance and storage control of the CCO, a second clock maintenance and storage control module is disposed in an STA module to perform clock maintenance and storage control of the STA module, a data upload module may be implemented by a data transmission device in the concentrator, or may be directly implemented by control systems in the master station, the concentrators, the CCO, and the STA module to implement corresponding control functions, for example, a storage close control module may be implemented by control systems respectively disposed in the master station, the concentrators, the CCO, and the STA module, or a remote control system may be used to implement functions of the modules uniformly, and may be configured specifically according to actual requirements.
In this embodiment, the station area data curve storage control device based on HPLC communication corresponds to the station area data curve storage control method based on HPLC communication one to one, and is not described herein again.
The embodiment also provides a computer device, comprising a processor and a memory, wherein the memory is used for storing the computer program, and the processor is used for executing the computer program to execute the method.
The foregoing is considered as illustrative of the preferred embodiments of the invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.

Claims (10)

1. A data curve storage control method for a distribution room based on HPLC communication is characterized by comprising the following steps:
s01, when curve data storage is needed, a master station sends an opening command of STA storage curve data and corresponding data storage control parameters;
s02, after receiving a starting instruction sent by a master station, a concentrator starts a STA (station) curve data storage function and issues the starting instruction and the data storage control parameters to a CCO (central control unit) and the STA;
step S03. The CCO maintains the clock in the running process, and performs clock timing to the whole network or the appointed STA and broadcasts and sends the starting instruction and the corresponding data storage control parameter to each STA in the CCO clock maintenance process;
s04, performing clock maintenance by the STA in real time, and reading electric energy meter data for storage according to the data storage control parameters;
s05, the concentrator reads curve data from the STA according to a preset period and uploads the curve data to the master station according to the preset period;
and S06, when the concentrator receives a closing instruction of the STA storage curve data sent by the master station, the concentrator sends the closing instruction to the CCO, and the CCO receives the closing instruction and then broadcasts and sends the closing instruction to the STA to close curve data storage.
2. The HPLC communication-based plot data storage control method of claim 1, wherein the data storage control parameters comprise a plot type, a plot period and a CCO timing period.
3. The HPLC communication-based table area data curve storage control method according to claim 1, wherein the step S03 comprises:
s301, judging whether the storage function of the CCO is started, and if so, turning to S302;
step S302, when the CCO is powered on or reset, requesting a clock from the concentrator to carry out clock calibration per se and carrying out broadcast timing on the whole network or a designated STA;
and S303, requesting a clock to a concentrator according to a preset period in the CCO operation process to carry out broadcast timing on the whole network or the appointed STA.
4. The plot data storage control method based on HPLC communication of claim 3, wherein in step S302, during CCO networking, the CCO performs broadcast timing according to a preset period, and requests the concentrator clock to perform broadcast timing again after successful networking; when the CCO receives the re-association request, the broadcasting time correction is triggered after the specified time delay, the clock of the electric energy meter read from the STA is used as the current clock in the time delay period, and the clock is synchronized with the clock of the CCO after the time correction command of the CCO is received.
5. The method for controlling data curve storage of a distribution room based on HPLC communication of claim 1, wherein the step of maintaining the clock by the STA in real time in step S04 comprises:
step S401, starting a calibration real-time clock, reading an ammeter clock by an STA after the timing is successful, and calculating the time deviation T between the ammeter clock and the real-time clock;
s402, when a timing message is received, setting a clock effective mark and storing a time deviation T;
s403, judging whether to start data acquisition according to the acquisition period and the state of the current clock valid judgment mark;
and S404, when the STA is powered on or reset, judging whether the clock needs to be restarted or not according to the clock effective mark stored before resetting and the state of the clock deviation T.
6. The method for controlling data curve storage of a distribution room based on HPLC communication of claim 5, wherein in said step S404, if the clock valid flag is valid, the time is not corrected; if the clock valid flag is invalid, the STA does not start the clock, the clock deviation T stored before power-on or resetting is judged, if the clock deviation T is null, the clock valid flag is set to be invalid, if the clock deviation T is not null, the STA reads the electric meter time, calculates the clock initial time according to the time deviation T, and restarts the clock rear-mounted clock valid flag to be valid.
7. The method for controlling the curve storage of the data in the platform area based on the HPLC communication according to any one of claims 1 to 6, wherein in step S04, after receiving the start command and the data storage control parameter, the STA reads the real-time data of the electric energy according to the curve period in the data storage control parameter, and stores the reading time and data; when the STA starts a periodic reading task and senses that a reading task exists in a carrier layer, the current reading task is suspended after the current data is completely read, the reading task is switched to be processed, and the reading task is executed at a breakpoint after the reading task is completely processed; when the STA is powered on to read the table address, the read table address is compared with the table address stored before, if the table address is changed, the previous stored record is cleared, otherwise, the current task is continuously executed.
8. The plot data curve storage control method based on HPLC communication of any one of claims 1-6, wherein in step S05, when the concentrator detects that the STA storage curve function is on, the curve data and the data time scale in the electric meter STA are read according to the curve data item and the curve cycle, if the data time scale is correct, the read data are used as the electric meter curve data, and if the data time scale is incorrect, the data are discarded; the master station periodically collects the electric meter curve data and the data time scale from the concentrator, when the data time scale is correct, the read electric meter curve is stored in the master station, and when the data time scale is incorrect, the data is discarded.
9. A platform district data curve storage controlling means based on HPLC communication, characterized by comprising:
the first starting control module is used for sending a starting command of the STA for storing the curve data and corresponding data storage control parameters by the main station when the curve data is required to be stored;
the second starting control module is used for starting the STA curve data storage function after the concentrator receives a starting instruction sent by the master station, and issuing the starting instruction and the data storage control parameters to the CCO and the STA;
the first clock maintenance and storage control module is used for performing clock maintenance on the CCO in the running process, performing clock timing on the whole network or the appointed STA in the CCO clock maintenance process, and broadcasting and sending the starting instruction and the corresponding data storage control parameters to the STAs;
the second clock maintenance and storage control module is used for performing clock maintenance on the STA in real time and reading and storing the data of the electric energy meter according to the data storage control parameters;
the data uploading module is used for reading curve data from the STA by the concentrator according to a preset period and uploading the curve data to the main station according to the preset period;
and the storage closing control module is used for sending a closing instruction to the CCO by the concentrator when the concentrator receives a closing instruction of the STA storage curve data sent by the master station, and the CCO broadcasts and sends the closing instruction to the STA to close the curve data storage after receiving the closing instruction.
10. A computer arrangement comprising a processor and a memory for storing a computer program, wherein the processor is adapted to execute the computer program to perform the method according to any of claims 1-8.
CN202211458387.6A 2022-11-21 2022-11-21 Method and device for storing and controlling data curve of distribution room based on HPLC communication Pending CN115833877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211458387.6A CN115833877A (en) 2022-11-21 2022-11-21 Method and device for storing and controlling data curve of distribution room based on HPLC communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211458387.6A CN115833877A (en) 2022-11-21 2022-11-21 Method and device for storing and controlling data curve of distribution room based on HPLC communication

Publications (1)

Publication Number Publication Date
CN115833877A true CN115833877A (en) 2023-03-21

Family

ID=85529810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211458387.6A Pending CN115833877A (en) 2022-11-21 2022-11-21 Method and device for storing and controlling data curve of distribution room based on HPLC communication

Country Status (1)

Country Link
CN (1) CN115833877A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116582603A (en) * 2023-07-13 2023-08-11 北京前景无忧电子科技股份有限公司 Low-voltage station clock level data acquisition method based on HPLC+HRF communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116582603A (en) * 2023-07-13 2023-08-11 北京前景无忧电子科技股份有限公司 Low-voltage station clock level data acquisition method based on HPLC+HRF communication
CN116582603B (en) * 2023-07-13 2023-09-22 北京前景无忧电子科技股份有限公司 Low-voltage station clock level data acquisition method based on HPLC+HRF communication

Similar Documents

Publication Publication Date Title
JP4868645B2 (en) Failure data synchronization via peer-to-peer communication network
CN115833877A (en) Method and device for storing and controlling data curve of distribution room based on HPLC communication
WO2016106730A1 (en) Sleeping and awakening method and apparatus for master-slave network, and power-saving system for master-slave network
CN106900042B (en) Sensor node of tree-type sensor network ad hoc network
CN111031491B (en) Method and system for reporting power failure in real time
CN105917683A (en) Communication node, system and synchronization method
CN107357621B (en) Method for carrying out remote wireless software upgrading on satellite time service equipment
CN112333022B (en) Intelligent electric energy meter remote upgrading system and method based on multilayer transparent transmission
CN110764801A (en) High-speed power line carrier remote upgrading method and device
CN103209473A (en) Information acquisition method for low-power-consumption wireless sensor network
CN102064605B (en) Method for realizing mutual hot backup of electric energy acquisition systems
US10412161B2 (en) Method and system for coherent aggregation and synchronization of gathered data from spread devices
CN106935007B (en) Method for managing uplink connection of mobile network meter
CN112803970B (en) System and method for monitoring power line broadband carrier communication system of whole network
CN107426633B (en) Meter reading system, communication method and communication forwarding device
CN111541598B (en) Distributed multi-host communication system, functional module and communication method thereof
CN110958713B (en) Low-power-consumption communication method based on dormancy and awakening mechanism
CN107483569A (en) A kind of server with automatically upgrading firmware, system and upgrade method
CN112770280A (en) Wireless communication method for Internet of things
CN113395753B (en) Method and system for synchronizing wireless terminal and base station and wireless terminal
CN107454661B (en) Weather-based Internet of things terminal device control method and system
CN115866452A (en) Cloud BMS system based on wireless communication and cloud-up method
US11456944B1 (en) Managing outage reporting using last gasps
CN112820092B (en) Method for collecting electricity consumption data, terminal equipment and storage medium
CN110958580B (en) Low-power-consumption multifunctional data convergence gateway and data convergence transmission method thereof

Legal Events

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