Intelligent power transformation and distribution station house sensor interconnection linkage control method
By configuring the linkage interaction method dictionary and linkage lock time in the sensor interconnection control method of the power transformation and distribution station, combined with the mechanism of writing to the cache area, the problem of linkage disorder in the sensor interconnection control is solved and the stability of the system is improved. and accuracy.
Patent Information
- Application Number
- CN202411448664.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, the sensor interconnection control method of the transformer distribution station house has delayed control command cache and status reporting feedback due to sensor problems themselves or data collection and communication problems, causing linkage disorder.
By configuring the linkage method dictionary and linkage lock time, the mechanism that is introduced into the cache area is introduced to ensure that the control command and status feedback are effective within the linkage time to avoid the linkage of linkage.
It effectively solves the problem of linked chaos caused by the feedback delay under control and state reporting, improves the stability and accuracy of the system, and avoids the chaos and error execution of the linkage operation.
Smart Images

Figure CN119356920A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart substations, and in particular to a sensor interconnection control method for smart substations. Background Art
[0002] With the vigorous development of information technology and network communication technology, various information technologies have been developed and popularized in smart substations; the linkage function means that when one device is in action, its associated devices should act according to the preset goals; this technology is widely used in smart substations; generally, a gateway device is deployed in the substation, and the linkage rules of the device are configured. The data information of the sensor devices in the station is collected through wired, wireless or other means, and the sensor linkage conditions are comprehensively judged. When the device triggers and meets the conditions, the associated related devices will be synchronously linked to achieve the purpose of intelligent linkage; the interconnected control method refers to the linkage conditions of two or more devices that are each other's numerical values. In some scenarios, it is necessary to realize the operation of one device, and multiple devices recognize the state changes of the operated device and perform synchronous operations.
[0003] Generally, the gateway device needs to configure the linkage conditions, and judge the linkage conditions by collecting the values of related devices. When the linkage conditions are met, the linkage action is triggered and the target value is written to the linked device to achieve the purpose of the linkage action.
[0004] However, under the existing technology, due to problems with the sensor itself or data acquisition and communication problems, for example, wireless devices will cache control commands first due to low power consumption requirements when the control is issued, and will only forward the control commands when the wireless device communication is established; if the wireless device status is received before the control command is forwarded, then the status value is the value before the control, which then becomes another linkage condition to trigger the linkage action, which will inevitably cause linkage confusion problems. Summary of the invention
[0005] In order to overcome the existing technology of transformer substation sensor interconnection control method, the linkage condition is generally judged by collecting the numerical values of sensor equipment. However, when operating some interconnected equipment, the control command will be cached first and will not be issued until the wireless device establishes communication. When the control happens to be near the reporting cycle of the wireless sensor, the control has not yet taken effect. At this time, the reported status is still the status before the control, resulting in control confusion.
[0006] The technical solution of the present invention is: a method for controlling the interconnected dynamic movement of sensors in a smart substation, comprising the following steps:
[0007] S1: Configure the linkage interoperability method dictionary and linkage lock time; set the dictionary item handletype to 4, corresponding to "state interconnection"; set the dictionary item LinkControlLockTime to 10 seconds as the linkage lock time;
[0008] S2: Configure the Internet operation rules and store the rules in the configuration system and database;
[0009] S3: Load the state interconnection configuration, read the linkage rule configuration, establish a mapping relationship between the triggering data point and the linked data point, store it in the map table, and start the background processing thread to process the linkage logic;
[0010] S4: Collect sensor data in real time through wired 、 Collect status data of sensor equipment in the station room by wireless or other means;
[0011] S5: Searching for the data point that triggers linkage. When the sensor data changes, the map table is searched to check whether the data point is the data point that triggers linkage.
[0012] S6: Determine and prepare for linkage operation. If a trigger data point is found, obtain a list of linked data points, check whether these data points have been written into the cache area, and whether their status is consistent with the target control value. If the linked data point is not in the cache area or is inconsistent with the target control value, write the linked data point according to the target value and write the linked data point into the cache area.
[0013] S7: The thread processes the write buffer area. The background thread checks the data points written into the buffer area every second. For each data point, it checks whether its recording time exceeds the set linkage lock time. The thread monitors the status of the linked data point every second. When the recording time exceeds the timeout time, it is removed from the buffer queue.
[0014] S8: Send control commands. For data points that are still in the buffer and have not timed out, send them to the corresponding devices according to the control commands, perform linkage operations, monitor device status feedback, and ensure that the linkage operations are successfully completed; the processing thread receives control commands. If the control command is received again, if there are linked data points in the buffer queue, it is judged as control locked, and the control command is not sent to the target sensor; if there are no linked data points in the buffer queue, it is judged as control unlocked, and the control command is sent to the target sensor
[0015] S9: Update the status information of related devices according to the device feedback and re-collected data;
[0016] S10: Capture and handle possible errors during data collection, linkage triggering, command sending, etc.; record error information, and retry or alarm as needed;
[0017] S11: Record key information of each operation, including timestamp, operation type, and data point status.
[0018] As a preferred method, when configuring the linkage interoperability method dictionary and linkage lock time, the specific steps are as follows:
[0019] S201: Read system configuration and preset files to obtain the values of handletype and LinkControlLockTime;
[0020] S202: Create or update a global configuration dictionary in the system, set handletype to 4 as the key, and describe its value as "state interconnection";
[0021] S203: Set the value of LinkControlLockTime to 10 seconds and store it in the configuration dictionary as another key-value pair to indicate the linkage lock time.
[0022] As a preferred method, when configuring the interconnection operation rules, the specific steps are as follows:
[0023] S301: define the data structure of linkage rules, including trigger conditions and linkage actions;
[0024] S302: Acquire linkage rules through user interface, configuration file and database;
[0025] S303: Parse the rules and store them in the memory and database.
[0026] As a preferred embodiment, when performing the loading state interconnection dynamic configuration, the specific steps are as follows:
[0027] S401: Reading interconnection operation rules from the configuration system and database;
[0028] S402: traverse the rule list, and for each rule, extract the triggering data point and the linked data point;
[0029] S403: Create a map table in memory, with the key being the trigger data point and the value being the list of linked data points;
[0030] S404: Initialize the background processing thread and set the thread's running parameters and loop logic.
[0031] As a preferred embodiment, when collecting sensor data, the specific steps are as follows:
[0032] S501: Start the data collection task according to the preset collection frequency and event triggering conditions;
[0033] S502: calling a data acquisition interface to obtain real-time status data from a sensor device;
[0034] S503: Store the collected data into temporary variables and cache.
[0035] As a preferred method, when searching and triggering the linked data points, the specific steps are as follows:
[0036] S601: Traverse the list of collected sensor data;
[0037] S602: For each piece of data, check whether its corresponding data point exists in the key of the created map table;
[0038] S603: If a match is found, the data point is marked as a data point that triggers linkage.
[0039] As a preferred method, when making a judgment and preparing for linkage operation, the specific steps are as follows:
[0040] S701: Obtain a list of linked data points from the map table;
[0041] S702: traverse the linked data point list, and check for each data point whether the data point has been written into the cache area;
[0042] S703: If it is not in the buffer area or the state is inconsistent with the target control value, prepare a control command;
[0043] S704: Write the control command and data point information into the write buffer area, and record the current timestamp.
[0044] As a preferred embodiment, when thread processing is performed to write to the cache area, the specific steps are as follows:
[0045] S801: The background thread performs the inspection task regularly;
[0046] S802: Traverse all records written into the buffer area;
[0047] S803: For each record, calculate the difference between the current time and the record timestamp to determine whether it exceeds LinkControlLockTime;
[0048] S804: If the lock time is exceeded, remove the record from the cache area.
[0049] Preferably, when sending a control command and updating the status, the specific steps are as follows:
[0050] S901: traverse the records in the write buffer area that have not timed out;
[0051] S902: For each record, according to the control command and data point information, call the corresponding device control interface and send a control signal;
[0052] S903: Wait for the device to respond and set a timeout mechanism to ensure that the control command is correctly executed;
[0053] S904: Update the status information of the relevant equipment according to the equipment feedback and the re-collected data;
[0054] S905: Store the updated status information in the database and synchronize it to the front-end interface.
[0055] As a preference, when performing error handling and logging, the specific steps are as follows:
[0056] S1001: Capture and identify anomalies and errors during data collection, control command sending, etc.;
[0057] S1002: Execute corresponding error handling logic according to the error type, including retry, rollback, and alarm;
[0058] S1003: Record the error information into a log file;
[0059] S1004: Setting log recording points at key positions of the system including data collection, linkage triggering, and control command sending;
[0060] S1005: When executing to these positions, record relevant log information, including timestamp, operation type, data point status, and processing result;
[0061] S1006: Write the log information into the log file and the database.
[0062] Beneficial effects of the present invention:
[0063] 1. Compared with the existing technology, the sensor interconnection control method of the substation room is due to the problem of the sensor itself or the data acquisition communication problem. For example, due to the low power consumption requirement of the wireless device, the control command will be cached first when the control is issued, and the control command will be forwarded only when the wireless device communication is established; if the wireless device status is received before the control command is forwarded, then the status value is the value before the control, and it becomes another linkage condition to trigger the linkage action, which will inevitably cause the linkage confusion problem; this method effectively solves the linkage confusion problem caused by the delay in control issuance and status reporting feedback by introducing the linkage lock time and the mechanism of writing to the cache area, thereby avoiding the confusion and erroneous execution of the linkage operation, and improving the stability and accuracy of the system;
[0064] 2. Configure the linkage interoperability method dictionary and linkage lock time; set the dictionary item handletype to 4, corresponding to "status interconnection"; set the dictionary item LinkControlLockTime to 10 seconds as the linkage lock time; configure the interconnection operation rules and store the rules in the configuration system and database; load the status interconnection configuration, read the linkage rule configuration, establish a mapping relationship between the triggering data point and the linked data point, store it in the map table, start the background processing thread to process the linkage logic; collect sensor data, and collect the status data of the sensor equipment in the station room in real time through wired and wireless methods; search for the data point that triggers the linkage, and when the sensor data changes, check whether the data point is the triggering linkage by searching the map table. The data points that are moving; judge and prepare for linkage operation. If the trigger data point is found, obtain the list of linked data points, check whether these data points have been written into the cache one by one, and whether their status is consistent with the target control value. The background thread checks the data points written into the cache every second. For each data point, check whether its recorded time exceeds the set linkage lock time; for the data points that still exist in the cache and have not timed out, send them to the corresponding device according to the control command, execute the linkage operation, listen to the device status feedback, and ensure that the linkage operation is successfully completed; thus, by introducing the linkage lock time and the mechanism of writing the cache area, the problem of status feedback delay caused by the low power consumption requirement of the wireless device and the control command cache processing is effectively solved, thereby avoiding the confusion and erroneous execution of the linkage operation;
[0065] 3. By configuring the linkage interoperability method dictionary and detailed configuration steps, users can flexibly define and adjust linkage rules to support complex interconnection operations between multiple sensors; at the same time, through detailed error handling logic and logging mechanism, exceptions and errors in the operation process can be discovered and handled in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 The figure shows a flow chart of the steps of the intelligent substation sensor interconnection control method of the present invention;
[0067] Figure 2 Shown is a schematic diagram of the lighting linkage control process of the intelligent substation room sensor interconnection control method of the present invention. DETAILED DESCRIPTION
[0068] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0069] See also Figure 1-2 The present invention provides an embodiment: a method for controlling the interconnected dynamic movement of sensors in a smart substation, comprising the following steps:
[0070] S1: Configure the linkage interoperability method dictionary and linkage lock time; set the dictionary item handletype to 4, corresponding to "state interconnection"; set the dictionary item LinkControlLockTime to 10 seconds as the linkage lock time;
[0071] S2: Configure the Internet operation rules and store the rules in the configuration system and database;
[0072] S3: Load the state interconnection configuration, read the linkage rule configuration, establish a mapping relationship between the triggering data point and the linked data point, store it in the map table, and start the background processing thread to process the linkage logic;
[0073] S4: Collect sensor data, and collect status data of sensor devices in the station room in real time through wired or wireless methods or other methods;
[0074] S5: Searching for the data point that triggers linkage. When the sensor data changes, the map table is searched to check whether the data point is the data point that triggers linkage.
[0075] S6: Determine and prepare for linkage operation. If a trigger data point is found, obtain a list of linked data points, check whether these data points have been written into the cache area, and whether their status is consistent with the target control value. If the linked data point is not in the cache area or is inconsistent with the target control value, write the linked data point according to the target value and write the linked data point into the cache area.
[0076] S7: The thread processes the write buffer area. The background thread checks the data points written into the buffer area every second. For each data point, it checks whether its recording time exceeds the set linkage lock time. The thread monitors the status of the linked data point every second. When the recording time exceeds the timeout time, it is removed from the buffer queue.
[0077] S8: Send control commands. For data points that are still in the buffer and have not timed out, send them to the corresponding devices according to the control commands, perform linkage operations, monitor device status feedback, and ensure that the linkage operations are successfully completed; the processing thread receives control commands. If the control command is received again, if there are linked data points in the buffer queue, it is judged as control locked, and the control command is not sent to the target sensor; if there are no linked data points in the buffer queue, it is judged as control unlocked, and the control command is sent to the target sensor
[0078] S9: Update the status information of related devices according to the device feedback and re-collected data;
[0079] S10: Capture and handle possible errors during data collection, linkage triggering, command sending, etc.; record error information, and retry or alarm as needed;
[0080] S11: Record key information of each operation, including timestamp, operation type, and data point status.
[0081] As a preferred method, when configuring the linkage interoperability method dictionary and linkage lock time, the specific steps are as follows:
[0082] S201: Read system configuration and preset files to obtain the values of handletype and LinkControlLockTime;
[0083] S202: Create or update a global configuration dictionary in the system, set handletype to 4 as the key, and describe its value as "state interconnection";
[0084] S203: Set the value of LinkControlLockTime to 10 seconds and store it in the configuration dictionary as another key-value pair to indicate the linkage lock time.
[0085] As a preferred method, when configuring the interconnection operation rules, the specific steps are as follows:
[0086] S301: define the data structure of linkage rules, including trigger conditions and linkage actions;
[0087] S302: Acquire linkage rules through user interface, configuration file and database;
[0088] S303: Parse the rules and store them in the memory and database.
[0089] As a preferred embodiment, when performing the loading state interconnection dynamic configuration, the specific steps are as follows:
[0090] S401: Reading interconnection operation rules from the configuration system and database;
[0091] S402: traverse the rule list, and for each rule, extract the triggering data point and the linked data point;
[0092] S403: Create a map table in memory, with the key being the trigger data point and the value being the list of linked data points;
[0093] S404: Initialize the background processing thread and set the thread's running parameters and loop logic.
[0094] As a preferred embodiment, when collecting sensor data, the specific steps are as follows:
[0095] S501: Start the data collection task according to the preset collection frequency and event triggering conditions;
[0096] S502: calling a data acquisition interface to obtain real-time status data from a sensor device;
[0097] S503: Store the collected data into temporary variables and cache.
[0098] As a preferred method, when searching and triggering the linked data points, the specific steps are as follows:
[0099] S601: Traverse the list of collected sensor data;
[0100] S602: For each piece of data, check whether its corresponding data point exists in the key of the created map table;
[0101] S603: If a match is found, the data point is marked as a data point that triggers linkage.
[0102] As a preferred method, when making a judgment and preparing for linkage operation, the specific steps are as follows:
[0103] S701: Obtain a list of linked data points from the map table;
[0104] S702: traverse the linked data point list, and check for each data point whether the data point has been written into the cache area;
[0105] S703: If it is not in the buffer area or the state is inconsistent with the target control value, prepare a control command;
[0106] S704: Write the control command and data point information into the write buffer area, and record the current timestamp.
[0107] As a preferred embodiment, when thread processing is performed to write to the cache area, the specific steps are as follows:
[0108] S801: The background thread performs the inspection task regularly;
[0109] S802: Traverse all records written into the buffer area;
[0110] S803: For each record, calculate the difference between the current time and the record timestamp to determine whether it exceeds LinkControlLockTime;
[0111] S804: If the lock time is exceeded, remove the record from the cache area.
[0112] Preferably, when sending a control command and updating the status, the specific steps are as follows:
[0113] S901: traverse the records in the write buffer area that have not timed out;
[0114] S902: For each record, according to the control command and data point information, call the corresponding device control interface and send a control signal;
[0115] S903: Wait for the device to respond and set a timeout mechanism to ensure that the control command is correctly executed;
[0116] S904: Update the status information of the relevant equipment according to the equipment feedback and the re-collected data;
[0117] S905: Store the updated status information in the database and synchronize it to the front-end interface.
[0118] As a preference, when performing error handling and logging, the specific steps are as follows:
[0119] S1001: Capture and identify anomalies and errors during data collection, control command sending, etc.;
[0120] S1002: Execute corresponding error handling logic according to the error type, including retry, rollback, and alarm;
[0121] S1003: Record the error information into a log file;
[0122] S1004: Setting log recording points at key positions of the system including data collection, linkage triggering, and control command sending;
[0123] S1005: When executing to these positions, record relevant log information, including timestamp, operation type, data point status, and processing result;
[0124] S1006: Write the log information into the log file and the database.
[0125] Example
[0126] Optionally, a variety of sensor devices are installed in the smart substation, including temperature sensors, humidity sensors, lighting control sensors, etc., to monitor the environmental parameters and equipment status in the station in real time; in order to improve the intelligent level of station management, it is necessary to realize the interconnection and dynamic control between sensors, especially in lighting control, requiring that when the lights in a certain area are turned on, the lights in the adjacent areas are automatically turned on to achieve better lighting effects;
[0127] Configure linkage interoperability method dictionary and linkage lock time, create a global configuration dictionary in the system, set handletype to 4 (state interconnection), LinkControlLockTime to 10 seconds;
[0128] Configure the interconnection operation rules. The specific rules are as follows:
[0129] Rule 1: When the lights in "Lighting Area 1" are turned on, the lights in "Lighting Area 2" will be turned on in conjunction;
[0130] Rule 2: When the lights in "Lighting Area 2" are turned on, the lights in "Lighting Area 1" will be turned on in conjunction;
[0131] Loading state interconnection configuration, reading the above interconnection operation rules from the configuration system and database, establishing a mapping relationship and storing it in the map table, the map table contains the following key-value pairs: {"light 1 area": ["light 2 area"]} and {"light 2 area": ["light 1 area"]}; at the same time, starting the background processing thread to process the linkage logic;
[0132] Collect the light status data of "Light Area 1" and "Light Area 2" in the station room in real time through wired and wireless methods; assuming that initially, the light of "Light Area 1" is off, and the light of "Light Area 2" is also off;
[0133] Find the data point that triggers the linkage. When it is detected that the light status of the "light 1 area" changes from off to on, confirm that it is the data point that triggers the linkage by searching the map table.
[0134] Determine and prepare for linkage operation, obtain the list of linked data points (i.e. "Light 2 Area"), check whether the light status of "Light 2 Area" is already in the write cache and the status is off (inconsistent with the target control value "on"); if it is not in the cache or the status is inconsistent, prepare the control command, set the light status of "Light 2 Area" to on, write the control command and data point information to the write cache, and record the current timestamp;
[0135] The background thread checks the write cache every second. For the light control command of "Lighting Area 2", it checks whether its recording time exceeds 10 seconds (linkage lock time). Since the lock time has not been exceeded at this time, the record remains in the cache.
[0136] For the lighting control commands of "Lighting Area 2" that are still in the cache and have not timed out, the linkage operation is performed by sending control signals by calling the corresponding device control interface; at the same time, the lighting status feedback of "Lighting Area 2" is monitored to ensure that the linkage operation is successfully completed;
[0137] According to the feedback from the equipment and the re-collected data, the light status information of "Lighting Area 2" is updated to on, and the updated status information is stored in the database and synchronized to the front-end interface for display; in the process of data collection and control command sending, possible errors are captured and processed, such as no response from the equipment and failure to send control commands; error information is recorded in the log file, and log recording points are set at key locations in the system, including detailed information such as timestamp, operation type, data point status, and processing results;
[0138] Record key information of each operation step, such as timestamp, operation type (the light in "Light Zone 1" turns on, triggering the linkage of the light in "Light Zone 2"), and data point status (the light in "Light Zone 1" changes from off to on, and the light in "Light Zone 2" changes from off to on) to facilitate subsequent auditing and performance optimization.
[0139] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of those skilled in the art without departing from the spirit of the present invention.
Claims
1. A method for controlling the interconnection of sensors in a smart substation, characterized in that: The following steps are included: S1: Configure the linkage interoperability method dictionary and linkage lock time; set the dictionary item handletype to 4, corresponding to "state interconnection"; set the dictionary item LinkControlLockTime to 10 seconds as the linkage lock time; S2: Configure the Internet operation rules and store the rules in the configuration system and database; S3: Load the state interconnection configuration, read the linkage rule configuration, establish a mapping relationship between the triggering data point and the linked data point, store it in the map table, and start the background processing thread to process the linkage logic; S4: Collect sensor data in real time through wired 、 Collect status data of sensor equipment in the station room by wireless or other means; S5: Searching for the data point that triggers linkage. When the sensor data changes, the map table is searched to check whether the data point is the data point that triggers linkage. S6: Determine and prepare for linkage operation. If a trigger data point is found, obtain a list of linked data points and check one by one whether these data points have been written into the cache area and whether their status is consistent with the target control value. If the linked data point is not in the buffer area or is inconsistent with the target control value, the linked data point is written according to the target value and written into the buffer area; S7: The thread processes the write cache area. The background thread checks the data points in the write cache area every second. For each data point, it checks whether its recording time exceeds the set linkage lock time. The thread monitors the status of the linked data point every second. When the recording time exceeds the timeout, it is removed from the buffer queue. S8: Send control commands. For data points that are still in the buffer and have not timed out, send them to the corresponding devices according to the control commands, perform linkage operations, monitor device status feedback, and ensure that the linkage operations are successfully completed; the processing thread receives control commands. If the control command is received again, if there are linked data points in the buffer queue, it is judged as control locked, and the control command is not sent to the target sensor; if there are no linked data points in the buffer queue, it is judged as control unlocked, and the control command is sent to the target sensor S9: Update the status information of related devices according to the device feedback and re-collected data; S10: Capture and handle possible errors during data collection, linkage triggering, command sending, etc.; Record error information and retry or issue an alarm as needed; S11: Record key information of each operation, including timestamp, operation type, and data point status.
2. According to claim 1, a smart substation sensor interconnection control method is characterized by: To configure the linkage interoperability method dictionary and linkage lock time, follow these steps: S201: Read system configuration and preset files to obtain the values of handletype and LinkControlLockTime; S202: Create or update a global configuration dictionary in the system, set handletype to 4 as the key, and describe its value as "state interconnection"; S203: Set the value of LinkControlLockTime to 10 seconds and store it in the configuration dictionary as another key-value pair to indicate the linkage lock time.
3. According to claim 2, a smart substation sensor interconnection control method is characterized by: When configuring the interconnection operation rules, the specific steps are as follows: S301: define the data structure of linkage rules, including trigger conditions and linkage actions; S302: Acquire linkage rules through user interface, configuration file and database; S303: Parse the rules and store them in the memory and database.
4. According to claim 3, a smart substation sensor interconnection control method is characterized by: When performing loading state interconnection dynamic configuration, the specific steps are as follows: S401: Reading interconnection operation rules from the configuration system and database; S402: traverse the rule list, and for each rule, extract the triggering data point and the linked data point; S403: Create a map table in memory, with the key being the trigger data point and the value being the list of linked data points; S404: Initialize the background processing thread and set the thread's running parameters and loop logic.
5. According to claim 4, a smart substation sensor interconnection control method is characterized in that: When collecting sensor data, the specific steps are as follows: S501: starting a data collection task according to a preset collection frequency and event triggering condition; S502: calling a data acquisition interface to obtain real-time status data from a sensor device; S503: Store the collected data into temporary variables and cache.
6. A smart substation sensor interconnection control method according to claim 5, characterized in that: When searching and triggering linked data points, the specific steps are as follows: S601: traverse the list of collected sensor data; S602: For each piece of data, check whether its corresponding data point exists in the key of the created map table; S603: If a match is found, the data point is marked as a data point that triggers linkage.
7. A smart substation sensor interconnection control method according to claim 6, characterized in that: When making judgments and preparing linkage operations, the specific steps are as follows: S701: Obtain a list of linked data points from the map table; S702: traverse the linked data point list, and check for each data point whether the data point has been written into the cache area; S703: If it is not in the buffer area or the state is inconsistent with the target control value, prepare a control command; S704: Write the control command and data point information into the write buffer area, and record the current timestamp.
8. The method for controlling the interconnected sensors of a smart substation according to claim 7 is characterized by: When thread processing is written to the cache area, the specific steps are as follows: S801: The background thread periodically executes the inspection task; S802: Traverse all records written into the buffer area; S803: For each record, calculate the difference between the current time and the record timestamp to determine whether it exceeds LinkControlLockTime; S804: If the lock time is exceeded, remove the record from the cache area.
9. A smart substation sensor interconnection control method according to claim 8, characterized in that: When sending control commands and updating the status, the specific steps are as follows: S901: traverse the records in the write buffer area that have not timed out; S902: For each record, according to the control command and data point information, call the corresponding device control interface and send a control signal; S903: Wait for the device to respond and set a timeout mechanism to ensure that the control command is correctly executed; S904: Update the status information of the relevant equipment according to the equipment feedback and the re-collected data; S905: Store the updated status information in the database and synchronize it to the front-end interface.
10. A smart substation sensor interconnection control method according to claim 9, characterized in that: When performing error handling and logging, the specific steps are as follows: S1001: Capture and identify anomalies and errors during data collection, control command sending, etc.; S1002: Execute corresponding error handling logic according to the error type, including retry, rollback, and alarm; S1003: Record the error information into a log file; S1004: Setting log recording points at key positions of the system including data collection, linkage triggering, and control command sending; S1005: When executing to these positions, record relevant log information, including timestamp, operation type, data point status, and processing result.