A method, system and device for breakpoint continuation and incremental synchronization of anti-misoperation data of a mobile terminal of a substation and a medium

CN122932910APending Publication Date: 2026-10-16GUIZHOU POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611075035.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-20
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0005]因此,本发明提供一种变电站移动终端防误数据的断点续传与增量同步方法、系统、设备及介质,解决当前变电站移动终端防误系统中长期存在的离线操作记录丢失、重复传输及效率低下的问题

Benefits of technology

[0016]与现有技术相比,本发明的有益效果为:本发明通过在线端内置事务日志与非易失性存储保护机制,确保每一次接地线操作即使在完全离线状态下也能被持久化记录,网络恢复后能够有序、无误地补传所有离线记录,彻底杜绝因信号中断导致的走空程与记录丢失,为防误系统提供真实可信的数据基础。本发明利用哈希摘要树技术实现终端与服务器之间仅通过比对哈希值即可精确定位数据差异,仅同步变更内容的增量传输,避免传统全量同步引发的网络拥塞与资源浪费,显著减少终端能耗,延长电池供电设备在现场的持续作业时间。本发明通过断点续传机制使传输意外中断后能从断点处自动续传,无需重复已成功传输的部分,保障批量数据在恶劣网络环境中也能高效、完整地完成同步,从而全面提升变电站移动终端在弱网环境下的数据同步可靠性、效率与鲁棒性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122932910A_ABST
    Figure CN122932910A_ABST
Patent Text Reader

Abstract

The application discloses a kind of substation mobile terminal anti-error data breakpoint continuation and incremental synchronization method, system, equipment and medium, comprising: establishing trusted wireless connection;Each state change is written in the form of log into nonvolatile memory;When trusted wireless connection is interrupted, terminal continues to save operation record according to local log sequence, after wireless link is recovered, mobile terminal reads log entry of unconfirmed synchronization state bit, determines the data range to be supplemented;Hash digest tree is constructed, and root hash is sent to master station and compared with historical hash value saved by master station, to locate change data of state change;Change data is packaged as incremental data packet, and incremental data packet is uploaded to master station in breakpoint continuation, master station carries out check processing to incremental data packet and returns confirmation information, and terminal updates local log synchronization state.The application can comprehensively improve the data synchronization reliability, efficiency and robustness of substation mobile terminal in weak network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data synchronization technology, and in particular to a method, system, device, and medium for preventing data loss and incremental synchronization in substation mobile terminals. Background Technology

[0002] In power systems, substation switching operations and grounding wire installation / removal are directly related to the safety of power grid operation and the personal safety of on-site personnel. With the increasing prevalence of mobile smart terminals in substation operations, the use of handheld terminals or grounding wire status acquisition modules to complete critical grounding steps has become a significant trend in intelligent substation operation and maintenance management. However, substation sites, especially high-voltage equipment areas, switchgear interiors, and areas near metal-enclosed equipment, suffer from severe metal shielding effects and electromagnetic interference, leading to frequent interruptions or significant signal quality degradation in the communication link between mobile terminals and the station's wireless access points. In such weak network environments, operation records and status change data generated by mobile terminals during grounding operations often cannot be transmitted back to the main station in real time, causing delays or even missing information on the on-site operation status on the server side, creating safety hazards.

[0003] Currently, existing technologies mainly employ two solutions to address the data synchronization problem of mobile terminals in substations under intermittent signal conditions. One approach combines strong signal coverage with local buffering and retransmission. This involves densely deploying wireless access points and signal amplifiers within the substation to achieve full signal coverage of the work area. When offline, mobile terminals temporarily store data in a local buffer, and retransmit all buffered data to the server once the network is restored. However, this method faces several challenges in practical applications: the complex metal shielding environment within substations necessitates the deployment of numerous access devices to achieve full coverage, resulting in high construction and maintenance costs, and it still cannot guarantee uninterrupted signal transmission at all work times and locations. Furthermore, when multiple offline terminals simultaneously regain network connectivity, the concentrated and explosive uploading of buffered data from each terminal can easily lead to network congestion and a surge in server processing pressure. If the upload fails, the terminal typically performs a full retransmission, further exacerbating resource waste. The other approach is a timestamp-based incremental synchronization method. Terminals generate timestamps at fixed intervals or based on the data itself, packaging new data since the last synchronization and uploading it to the server. The server then identifies and receives the incremental data based on the timestamps. This method also has limitations in actual substation environments: there may be discrepancies between the terminal's local clock and the server's time. Terminals with faster clocks may send future data prematurely, which may be ignored by the server. New data generated by terminals with slower clocks may be misjudged as old data and discarded because the timestamp is earlier than the server's existing records. At the same time, if multiple network outages occur within the synchronization period, the terminal has difficulty accurately determining which data has been successfully received by the server, and simple retransmission can easily lead to data omissions or duplications. For the transmission of batch data or log files, if an interruption occurs during transmission, this mechanism lacks the ability to resume transmission from the beginning and can only retransmit the entire data packet from the beginning, resulting in low transmission efficiency. Summary of the Invention

[0004] In view of the aforementioned existing problems, the present invention is proposed.

[0005] Therefore, this invention provides a method, system, device, and medium for interrupted resume transmission and incremental synchronization of anti-misoperation data for substation mobile terminals, solving the long-standing problems of lost offline operation records, duplicate transmission, and low efficiency in current substation mobile terminal anti-misoperation systems.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides a method for resuming interrupted data transmission and incremental synchronization of anti-misoperation data in a substation mobile terminal, comprising: After the mobile terminal enters the work area, it establishes a trusted wireless connection by completing certificate verification and key negotiation with the wireless access device and authentication server. During the grounding operation, the mobile terminal writes each state change to non-volatile memory in the form of a log. When the trusted wireless connection is interrupted, the terminal continues to save the operation records in the order of the local log. After the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit as unconfirmed and determines the range of data to be retransmitted. The terminal constructs a hash digest tree based on the grounding wire status corresponding to the range of data to be retransmitted, and sends the root hash to the master station to compare it with the historical hash values ​​stored by the master station to locate the changed data whose status has changed; The terminal packages the changed data into an incremental data packet and uploads the incremental data packet to the main station using a breakpoint resume method. The main station verifies the incremental data packet and returns confirmation information. The terminal then updates its local log synchronization status.

[0007] As a preferred embodiment of the method for preventing data loss and incremental synchronization in a substation mobile terminal according to the present invention, the establishment of a trusted wireless connection includes: After the mobile terminal starts up, it passively detects the beacon frames sent by the wireless access device and triggers the access authentication process. The mobile terminal initiates an access request to the wireless access point on the network side, and exchanges and transmits digital identity credentials between the two parties through an authentication server as an intermediary; the mobile terminal verifies the legitimacy of the network-side access point, and the wireless access point verifies the legitimacy of the mobile terminal at the same time. After the identities of both parties are verified, the mobile terminal and the wireless access point enter the key negotiation phase, exchange session key parameters, and complete the establishment of the encrypted channel. After successful key negotiation, the mobile terminal establishes a protected and trusted wireless connection with the network side.

[0008] As a preferred embodiment of the method for interrupted resume and incremental synchronization of data for substation mobile terminals described in this invention, wherein: during grounding operations, the mobile terminal writes each state change to non-volatile memory in log form, including: During the process of grounding wire requisition, connection, removal or return, the mobile terminal captures each state change event in real time and constructs the captured state change events into structured log entries. The log entries include log sequence number, operation type, operation object, state value, operation timestamp, complete data snapshots before and after the operation, and synchronization status bit. The constructed log entries are sequentially stored in the terminal's local non-volatile memory by appending them. After the log is written, an initial synchronization status bit is assigned to the log entry to indicate that the record has not yet been confirmed by the master station and is waiting for subsequent synchronization processing.

[0009] As a preferred embodiment of the method for preventing data loss and incremental synchronization in a substation mobile terminal according to the present invention, wherein: when the trusted wireless connection is interrupted, the terminal continues to save operation records in the order of the local log; after the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit as unconfirmed, determines the range of data to be retransmitted, including: The mobile terminal monitors the link quality and connectivity status of the trusted wireless connection in real time. In response to the detection of a wireless connection interruption or signal quality below a threshold, the terminal enters offline working mode and continues to save newly generated operation records to non-volatile memory in the order of local logs, forming a queue to be synchronized. In response to the terminal detecting that the wireless link has regained a stable connection, a synchronization scan process is triggered, which traverses the log records in the local non-volatile memory and reads the synchronization status bit saved in each log entry. Filter out log entries whose synchronization status is marked as unacknowledged or pending synchronization; Based on the log sequence number of the selected log entries, determine the range of data to be retransmitted.

[0010] As a preferred embodiment of the method for interrupted resume transmission and incremental synchronization of anti-misoperation data for substation mobile terminals according to the present invention, the changed data of the location status change includes: The mobile terminal constructs a hash digest tree structure based on the grounding wire status data involved in the range of data to be retransmitted, calculates and generates a root hash value, and sends the root hash value to the master station when the terminal initiates synchronization. The master station will perform a consistency comparison between the received root hash value and the historical root hash value saved in the previous synchronization cycle; In response to the determination that the two root hash values ​​are inconsistent, starting from the root node, the system collaborates with the terminal layer by layer to exchange and compare the hash values ​​of each child node, accurately locating the specific leaf node whose hash value has changed, that is, determining the grounding wire identifier and the changed content of the state change; the terminal generates change data based on the location result.

[0011] As a preferred embodiment of the method for interrupted resume transmission and incremental synchronization of anti-misoperation data in a substation mobile terminal according to the present invention, the terminal packages the changed data into an incremental data packet and uploads the incremental data packet to the main station in an interrupted resume mode, including: The mobile terminal extracts log entries that match the changed data from the range of data to be retransmitted, packages them into incremental data packets, and assigns a unique session identifier to the incremental data packets. The incremental data packet is divided into multiple fragments, and the sequence number and byte offset of each fragment are recorded. The terminal initiates the upload process, sending each data fragment to the main station in sequence according to the fragment number. After each fragment is successfully sent, the terminal persistently stores the byte offset of the currently successfully uploaded data locally. In response to a wireless connection interruption during transmission, the terminal retains the offset of the currently successfully uploaded bytes as the breakpoint and suspends the current upload task; in response to the terminal detecting that the wireless link has been restored, it sends a resume request to the master station, which carries the session identifier of the current incremental data packet and the last confirmed byte offset. The master station locates the starting position of the data that has not yet been received in the incremental data packet based on the received session identifier and byte offset, and continues to receive subsequent data fragments from the starting position of the data until all data fragments are transmitted. During transmission, the terminal determines the transmission priority of each fragment based on the size and importance of the data packet. When network bandwidth is limited, it prioritizes sending data fragments with smaller data size and higher importance.

[0012] As a preferred embodiment of the method for interrupted resume transmission and incremental synchronization of anti-misoperation data in a substation mobile terminal according to the present invention, wherein: the master station performs verification processing on the incremental data packet and returns confirmation information including: After receiving the incremental data packet uploaded by the terminal, the main station performs verification processing on the incremental data packet; After the verification process is successful, the master station returns confirmation information to the terminal. The confirmation information includes the synchronization result status and the range of data that has been successfully processed. After receiving the confirmation information, the terminal updates the synchronization status bit of the corresponding log entry in its local non-volatile memory to "confirmed".

[0013] Secondly, the present invention provides a system for interrupted data resumption and incremental synchronization of mobile terminal data in substations, comprising: The trusted connection module is used to establish a trusted wireless connection after the mobile terminal enters the work area by completing certificate verification and key negotiation with the wireless access device and authentication server. The log storage module is used to write each state change into non-volatile memory in the form of a log during the grounding operation of the mobile terminal. The offline protection module is used to ensure that when the trusted wireless connection is interrupted, the terminal continues to save operation records in the order of local logs. After the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit as unconfirmed to determine the range of data to be retransmitted. The differential positioning module is used by the terminal to construct a hash digest tree based on the grounding wire status corresponding to the range of data to be retransmitted, and to send the root hash to the main station and compare it with the historical hash value stored by the main station to locate the changed data whose status has changed. The incremental synchronization module is used by the terminal to package the changed data into an incremental data packet, upload the incremental data packet to the master station in a breakpoint resume mode, the master station verifies the incremental data packet and returns confirmation information, and the terminal updates the local log synchronization status.

[0014] Thirdly, the present invention provides an electronic device, including a memory and a processor; the memory is used to store computer-executable instructions, and the processor, when executing the computer-executable instructions, implements the steps of a method for resuming interrupted data transmission and incremental synchronization of anti-misoperation data in a substation mobile terminal.

[0015] Fourthly, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of a method for resuming interrupted data transmission and incremental synchronization of anti-misoperation data in a substation mobile terminal.

[0016] Compared with existing technologies, the beneficial effects of this invention are as follows: This invention, through an online terminal-built-in transaction log and non-volatile storage protection mechanism, ensures that every grounding operation is persistently recorded even in a completely offline state. After network recovery, all offline records can be retransmitted in an orderly and error-free manner, completely eliminating idle travel and record loss caused by signal interruption, providing a reliable data foundation for the error prevention system. This invention utilizes hash digest tree technology to enable precise location of data differences between the terminal and server simply by comparing hash values, synchronizing only incremental transmissions of changed content. This avoids network congestion and resource waste caused by traditional full synchronization, significantly reducing terminal power consumption and extending the continuous operating time of battery-powered equipment in the field. This invention, through a breakpoint resume mechanism, allows automatic resumption of transmission from the point of interruption after unexpected interruption, without repeating successfully transmitted portions. This ensures that batch data can be synchronized efficiently and completely even in harsh network environments, thereby comprehensively improving the reliability, efficiency, and robustness of data synchronization for substation mobile terminals in weak network environments. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of the overall process logic of the method for preventing data loss and incremental synchronization in substation mobile terminals provided in this embodiment of the invention.

[0019] Figure 2This is a schematic diagram of the wireless secure access network architecture for the substation mobile terminal's breakpoint resume and incremental synchronization method for preventing data malfunctions, provided in an embodiment of the present invention.

[0020] Figure 3 The flowchart of the breakpoint resume transmission procedure for the substation mobile terminal anti-misoperation data prevention and incremental synchronization method provided in the embodiment of the present invention is shown. Detailed Implementation

[0021] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.

[0022] Example 1, referring to Figure 1 As one embodiment of the present invention, a method for resuming interrupted data transmission and incremental synchronization of mobile terminals in substations to prevent data errors is provided, such as... Figure 1 The specific steps shown are as follows: S100: After the mobile terminal enters the work area, it establishes a trusted wireless connection by completing certificate verification and key negotiation with the wireless access device and authentication server; S200: During the grounding operation, the mobile terminal writes each state change to non-volatile memory in the form of a log. S300: When the trusted wireless connection is interrupted, the terminal continues to save the operation record in the order of the local log. After the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit as unacknowledged and determines the range of data to be retransmitted. S400: The terminal constructs a hash digest tree based on the grounding wire status corresponding to the range of data to be retransmitted, and sends the root hash to the master station to compare it with the historical hash value stored by the master station to locate the changed data whose status has changed; S500: The terminal packages the changed data into an incremental data packet and uploads the incremental data packet to the master station in the breakpoint resume mode. The master station verifies the incremental data packet and returns confirmation information. The terminal updates the local log synchronization status. It should be noted that this invention, through its built-in online transaction log and non-volatile storage protection mechanism, ensures that every grounding operation is persistently recorded even in a completely offline state. After network recovery, all offline records can be retransmitted in an orderly and error-free manner, completely eliminating idle travel and record loss caused by signal interruption, providing a reliable data foundation for the error prevention system. This invention utilizes hash digest tree technology to enable precise location of data differences between the terminal and server simply by comparing hash values, synchronizing only incremental transmissions of changed content. This avoids network congestion and resource waste caused by traditional full synchronization, significantly reducing terminal power consumption and extending the continuous operating time of battery-powered equipment in the field. This invention employs a breakpoint resume mechanism to automatically resume transmission from the point of interruption after unexpected interruption, without repeating successfully transmitted portions. This ensures efficient and complete synchronization of batch data even in harsh network environments, thereby comprehensively improving the reliability, efficiency, and robustness of data synchronization for substation mobile terminals in weak network environments.

[0023] Example 2, refer to Figure 2 and Figure 3 Based on the previous embodiment, this embodiment provides a specific implementation method for the interrupted resume and incremental synchronization method of mobile terminal data in substations to prevent errors.

[0024] In this embodiment of the invention, after the mobile terminal enters the operating area in step S100, it establishes a trusted wireless connection by completing certificate verification and key negotiation with the wireless access device and the authentication server. This includes the following sub-steps A1-A4: In A1: After the mobile terminal starts up, it passively detects the beacon frames sent by the wireless access device and triggers the access authentication process; In A2: The mobile terminal initiates an access request to the wireless access point on the network side, and exchanges and transmits the digital identity credentials of both parties through the authentication server as an intermediary; the mobile terminal verifies the legitimacy of the network access point, and at the same time the wireless access point verifies the legitimacy of the mobile terminal. In A3: After the identities of both parties are verified, the mobile terminal and the wireless access point enter the key negotiation phase, exchange session key parameters, and complete the establishment of the encrypted channel; In A4: After successful key negotiation, the mobile terminal establishes a protected and trusted wireless connection with the network side; It should be noted that the specific deployment method involves planning and deploying a trusted wireless network within the substation. The core is to install wireless access points (APs) in key areas such as the main equipment area, high-voltage room, and near switchgear to ensure signal coverage along the work path. APs are connected to the switch via wired connections and are managed uniformly by the access controller (AC) deployed within the substation or central control station. Simultaneously, an authentication server (AS) employing a two-way certificate authentication mechanism is deployed. Each mobile terminal (i.e., the modified grounding wire status collector STA) and AP device must be pre-installed with a legitimate digital certificate issued by the AS. When a terminal moves within the substation, it establishes a secure association with the nearest AP based on WAPI "three-element peer authentication." This process not only establishes an encrypted communication link but also provides a trusted identity for subsequent data synchronization. To meet security requirements and considering the characteristics of grounding wire services, the wireless network system architecture is as follows: Figure 2 As shown.

[0025] Specifically, for trusted wireless deployments, the network access security process is as follows: ① After the grounding wire module is started, it will first passively detect beacon frames sent by wireless (WLAN) devices, or actively search for WLAN devices and start the authentication process; ② The grounding connector module sends an access authentication request to the WLAN device. When the WLAN device receives the request and returns its own certificate, the grounding connector module attaches its certificate to the request and sends them together to the authentication server AS for certificate verification; ③ After receiving the request, the authentication server AS will verify the certificates of the grounding head module and the WLAN device to confirm their legitimacy; the verification result will be returned to the WLAN device. ④ The WLAN device checks the legitimacy of the grounding connector module based on the verification result returned by the authentication server. If the grounding connector module is determined to be an illegitimate device, the connection will be terminated and the authentication process will end; if the verification is successful, proceed to the next step. ⑤ After receiving the authentication result from the WLAN device, the grounding terminal module verifies the legitimacy of the WLAN device. If the verification fails, the system will identify the WLAN device as an illegal device, and access will be terminated; if the verification passes, it will continue to the next step. ⑥ After authentication is completed, the grounding terminal module and the WLAN device enter the key negotiation phase, where both parties exchange keys to prepare for subsequent secure communication; ⑦ After successful key negotiation, the authentication phase ends, and the system enters normal network communication mode. At this time, the communication data will be encrypted to ensure the security of data transmission.

[0026] It should be noted that step S100 establishes a trusted wireless connection through two-way certificate authentication and key negotiation, ensuring the legitimacy of the identities of the mobile terminal and the network-side equipment and the encryption security of the communication link, providing a trusted transmission channel for subsequent data synchronization, and preventing unauthorized device access and data theft or tampering.

[0027] In this embodiment of the invention, step S200, during the grounding operation, involves the mobile terminal writing each state change to non-volatile memory in log form, specifically including the following sub-steps B1 and B2: In B1: During the process of grounding wire being issued, connected, removed, or returned, the mobile terminal captures every state change event in real time and constructs the captured state change events into structured log entries. Specifically, log entries include log sequence number, operation type, operation object, status value, operation timestamp, complete data snapshots before and after the operation, and synchronization status bit; The log sequence number (LSN) is a locally strictly incrementing unique ID used to ensure the absolute timing of local operations. Operation type (OpType) is an enumerated value, such as TAKE_OUT (off-database), INSTALL (attached), REMOVE (removed), and RETURN (returned). Operation object (DeviceID) is the number of the grounding wire and / or grounding stake involved. Status value (Status) indicates the post-operation status, such as IN_STORAGE (in-database) and DEPLOYED (attached). Operation timestamp (Timestamp) is the terminal's local high-precision clock time. Before / AfterImage are complete data snapshots before and after the operation, used for conflict resolution and status reconstruction. Synchronization status bit (SyncFlag) indicates whether the record has been acknowledged by the server, typically PENDING (pending synchronization), SENT (sent), or CONFIRMED (acknowledged).

[0028] In B2: The constructed log entries are sequentially stored in the terminal's local non-volatile memory by appending them; after the log is written, an initial synchronization status bit is assigned to the log entry to indicate that the record has not yet been confirmed by the master station and is waiting for subsequent synchronization processing; Specifically, the terminal employs a dual optimization approach: write-ahead logging and a local lightweight database. Write-ahead logging means that before any state change, the complete log entry is appended to a circular, protected flash sector. This ensures that even if the system experiences an unexpected power outage, the operation logs will not be lost. In this embodiment, each terminal uses non-volatile memory (NVM), which has the advantages of low write latency and high data throughput. The write latency is 100ns, and the throughput can reach 100,000 TPS. A crash recovery mechanism is also included. The NVM log crash recovery process starts by reading the storage offset of the currently valid log and processes each log record in reverse order.

[0029] Specifically, for each log entry read, the algorithm first determines its type: if it's a committed transaction, its operations are reapplied to the system to restore the data state; if it's an aborted transaction, a rollback operation is performed based on the transaction identifier, undoing all incomplete changes. After each processing step, the system calculates the storage location of the previous log entry based on its length and continues tracing back until all log records have been processed, ensuring the system can recover to a consistent state after an unexpected crash. This algorithm can perform reverse recovery, processing from the latest log to the oldest log to ensure data consistency; it also guarantees idempotency, ensuring safe repeated execution without data corruption.

[0030] It should be noted that in step S200 above, each state change is written to non-volatile memory in the form of a transaction log on the terminal side, ensuring that every operation record is persistently saved. Even if the terminal loses power unexpectedly, the operation logs that have already occurred will not be lost, providing a complete and traceable data foundation for operations during offline periods.

[0031] In this embodiment of the invention, when the trusted wireless connection is interrupted in step S300, the terminal continues to save the operation records in the order of the local log. After the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit as unacknowledged and determines the range of data to be retransmitted. This includes the following sub-steps C1-C5: In C1: The mobile terminal monitors the link quality and connectivity status of the trusted wireless connection in real time. In C2: In response to the detection of a wireless connection interruption or signal quality below the threshold, the terminal enters offline working mode and continues to save newly generated operation records to non-volatile memory in the order of local logs, forming a queue to be synchronized; In C3: In response to the terminal detecting that the wireless link has regained a stable connection, a synchronization scan process is triggered, which traverses the log records in the local non-volatile memory and reads the synchronization status bit saved in each log entry; In C4: Filter out log entries whose synchronization status bit is marked as unacknowledged or pending synchronization; In C5: Determine the range of data to be retransmitted based on the log sequence number of the selected log entries; Specifically, during normal operation, the mobile terminal continuously monitors the link quality and connectivity status of the trusted wireless connection in real time. When a wireless connection interruption or signal quality below a threshold is detected, the terminal automatically enters offline mode. In this mode, the terminal no longer attempts to send data to the master station, but instead continues to save each new operation record generated during the offline period to non-volatile memory in strict order according to the local log. When each new record is written, the synchronization status bit is initially marked as pending synchronization, forming a pending synchronization queue waiting for subsequent retransmission. In this embodiment, the threshold is a pre-set threshold value used to determine whether the wireless link has reliable transmission conditions. Its specific value is configured according to the actual network environment at the substation site and can be characterized by one or more indicators among signal-to-noise ratio, received signal strength, or bit error rate.

[0032] Specifically, once the terminal detects that the wireless link has been re-established and is stable, it immediately triggers a synchronization scan process. This involves traversing all log records stored in local non-volatile memory and reading the synchronization status bit stored in each log entry. The terminal then filters out log entries marked as "unacknowledged" or "pending synchronization" from all log records, identifying these as data records that have not yet been successfully received by the master station. Based on the continuous range and chronological order of the log sequence numbers of these filtered log entries, the terminal determines the range of data that needs to be retransmitted.

[0033] It should be noted that during the S300 wireless link interruption, the terminal continues to save operation records in the order of local logs. After recovery, only log entries with the synchronization status bit set to unconfirmed are read to determine the range to be retransmitted. This avoids the processing overhead of scanning the logs in full after recovery, ensures the accurate location of the data to be retransmitted, and ensures that all operation records generated during offline period are not lost.

[0034] In this embodiment of the invention, step S400 involves the terminal constructing a hash digest tree based on the grounding wire status corresponding to the range of data to be retransmitted, and then sending the root hash to the main station and comparing it with the historical hash values ​​stored by the main station to locate the changed data whose status has changed. This includes the following sub-steps D1 and D2: In D1: The mobile terminal constructs a hash digest tree structure based on the grounding wire status data involved in the range of data to be retransmitted, calculates and generates a root hash value, and sends the root hash value to the master station when the terminal initiates synchronization; Specifically, a Merkle hash tree is constructed for the local grounding wire status data at each terminal. The leaf nodes are the current status of each grounding wire, such as cable ID: 001, status: attached, location: stake A, timestamp: T, which is then hashed using a hash function. Generate a leaf hash The calculation method is as follows: Where D represents complete state information. To execute the serialization function, To apply the hash function, the function compresses and maps the input of arbitrary length into a fixed-length 256-bit (32-byte) hash value output.

[0035] Specifically, the hash value of each non-leaf node is generated by concatenating the hash values ​​of all its child nodes and then hashing them again. For example, two child nodes... and The generated parent node hash value for: The final result is a unique hash value at the top level of the tree, representing a complete and unique digital fingerprint of the entire dataset. Any tiny data change will cause a drastic change in the root hash value. When the network connection is restored and the terminal initiates synchronization, the terminal sends its local root hash to the master station.

[0036] In D2: The master station compares the received root hash value with the historical root hash value saved in the previous synchronization cycle; in response to the determination that the two root hash values ​​are inconsistent, it starts from the root node, and exchanges and compares the hash values ​​of each child node with the terminal layer by layer to accurately locate the specific leaf node whose hash value has changed, that is, to determine the grounding wire identifier and the changed content of the state change; the terminal generates change data based on the location result. Specifically, the master station compares the received root hash value with the historical root hash value saved in the previous synchronization cycle. If the two root hash values ​​are consistent, no synchronization is needed. If the two root hash values ​​are inconsistent, the hash value changes are compared layer by layer. The server and the terminal cooperate to compare the hashes of child nodes layer by layer, starting from the root node. Through a logarithmic number of hash value exchanges, rather than transmitting the data itself, the specific leaf node that has changed is finally located precisely, that is, the grounding wire identifier and the changed content are determined.

[0037] Specifically, after comparing hash values ​​layer by layer and accurately locating the leaf nodes that have changed, the terminal obtains all grounding wire identifiers that have undergone status changes and their corresponding current status information based on the location results. The terminal organizes the grounding wire identifiers and their status changes obtained above into a difference list. This difference list records each grounding wire device that has changed and its corresponding changed status, serving as an index for extracting the corresponding log entries from the local transaction log. The terminal then uses this difference list as the final result of the changed data to guide the assembly and uploading of subsequent incremental data packets.

[0038] It should be noted that step S400 above compares the root hash and child node hashes layer by layer through the hash digest tree to accurately locate the changed grounding wire status data. It only identifies the changed content without transmitting all the data, thereby reducing the amount of data exchange between the terminal and the master station, and reducing wireless bandwidth usage and terminal power consumption.

[0039] In this embodiment of the invention, in step S500, the terminal packages the changed data into an incremental data packet and uploads the incremental data packet to the main station using a breakpoint resume method. The main station verifies the incremental data packet and returns confirmation information. The terminal updates the local log synchronization status. This includes the following sub-steps E1 and E2: In E1: The terminal packages the changed data into an incremental data packet and uploads the incremental data packet to the main station using a resume-from-breakpoint method; detailed steps include: The mobile terminal extracts log entries that match the changed data from the range of data to be retransmitted, packages them into incremental data packets, and assigns a unique session identifier to each incremental data packet. The incremental data packet is divided into multiple fragments, and the sequence number and byte offset of each fragment are recorded. The terminal initiates the upload process, sending each data fragment to the main station in sequence according to the fragment number. After each fragment is successfully sent, the terminal persistently stores the byte offset of the currently successfully uploaded data locally. In response to a wireless connection interruption during transmission, the terminal retains the offset of the currently successfully uploaded bytes as the breakpoint and suspends the current upload task; in response to the terminal detecting that the wireless link has been restored, it sends a resume request to the master station, which carries the session identifier of the current incremental data packet and the last confirmed byte offset. The master station locates the starting position of the data that has not yet been received in the incremental data packet based on the received session identifier and byte offset, and continues to receive subsequent data fragments from the starting position until all data fragments are transmitted. During transmission, the terminal determines the transmission priority of each fragment based on the size and importance of the data packet. When network bandwidth is limited, it prioritizes sending data fragments with smaller data size and higher importance.

[0040] In E2: The master station verifies the incremental data packets and returns confirmation information; the terminal updates the local log synchronization status. Detailed steps include: After receiving the incremental data packets uploaded by the terminal, the main station performs verification processing on the incremental data packets; After the verification process is successful, the master station returns an confirmation message to the terminal, which includes the synchronization result status and the range of data that has been successfully processed. After receiving the confirmation message, the terminal updates the synchronization status bit of the corresponding log entry in its local non-volatile memory to "confirmed".

[0041] In this embodiment of the invention, the verification process includes: after the master station receives each data fragment of the incremental data packet uploaded by the terminal, it combines and restores each fragment to obtain a complete incremental data packet; it performs integrity verification on the restored complete incremental data packet to confirm that the data has not been damaged or lost during transmission; after the integrity verification passes, the master station merges the received incremental data with the existing local data, writes the data into the master station database in an orderly manner according to the log sequence number, and updates the status snapshot corresponding to the terminal.

[0042] Specifically, when transmitting incremental data packets, the terminal persists the offset of the currently successfully uploaded bytes for each session identifier locally. If the connection is lost during transmission, the terminal retains the current progress. After the network recovers, the terminal sends a resume request to the server, carrying the session identifier and the last confirmed byte offset. The server must support the ability to continue receiving data from the specified byte offset and verify the integrity of the resumed data using a pre-transmitted hash checksum. The detailed flowchart is as follows: Figure 3 As shown. During the breakpoint resumption process, a hash value can be calculated for each data packet during transmission and compared with the receiving end after the network is restored to ensure the integrity of each data packet. The hash verification formula is: in, For hash functions, This is the currently transmitted data block. If the checksum does not match, the data packet needs to be retransmitted.

[0043] Furthermore, to further improve system efficiency, this embodiment dynamically determines which data packets need to be transmitted first based on network conditions. The network bandwidth status is monitored after each breakpoint occurs. If network bandwidth is low, smaller, more important data packets are transmitted first. Data packets are assigned priorities based on their importance; for example, some data packets may be critical operation records, the loss of which would affect system security, and must be transmitted first; other non-critical data can be transmitted later. Therefore, this embodiment can set a priority parameter for each data packet and determine the retransmission order based on the priority. in, For data types, For timestamps, Based on importance, each data packet is assigned a basic priority score according to its data type. It can be represented by an enumeration value: For operation records, especially those related to the connection and removal of grounding wires, an importance coefficient can be introduced. Assess the urgency of the operation. The importance of the operation is closely related to its impact on grid security; important operations have higher priority, as expressed by the formula: To ensure timeliness, data timestamp deviation needs to be considered. If the timestamp of a data packet is closer to the current time, it indicates higher timeliness and should be given higher priority. The following formula can be used to calculate this: in, This represents the difference between the current time and the timestamp of the data packet. The smaller the time difference, the faster the data packet timestamp. The larger the value, the higher the priority.

[0044] Furthermore, based on the priority markings above, the total priority parameter can be obtained: It should be noted that the weights of each parameter in the overall priority parameters mentioned above are not fixed empirical values, but are determined according to the principles of "safety first, real-time second, weak network transmission capability, and failure compensation" in substation error prevention services. Let the first... i The overall priority of the data packets to be transmitted is P i Then it can be expressed as P i = αA i + βB i + γC i + δD i ,in A i For safety importance, B i For freshness of time, C i For transmission cost factor, D i This is a retransmission risk factor. All parameters are normalized to between 0 and 1. α , β , c , d All are greater than or equal to 0, and α + β + c + d =1.

[0045] in, A iThis is used to represent the degree of impact of data content on the safety of on-site operations. Data such as grounding wire connection and removal, and anti-misoperation interlock confirmation, which directly affect the safety of switching operations, have higher values, ranging from 0.8 to 1; general status queries, heartbeat packets, or auxiliary logs have lower values, ranging from 0.2 to 0.5. Since this method serves the anti-misoperation scenario in substations, safety importance should be the primary factor. α Typically, a value of 0.40 to 0.60 is used; however, during periods of concentrated maintenance or switching operations within the station, α It can be increased to 0.60 to 0.70. B i The timeliness of data is indicated by the difference between the current time and the timestamp of the data packet. Data with high time freshness is used when it directly serves the execution of the current operation ticket, verification of on-site status, or judgment of interlocking logic. β A value of 0.20 to 0.30 is acceptable; when the data is primarily used for post-event archiving or statistical analysis, β This can be reduced to 0.10 to 0.20. This avoids newer, critical operation records being blocked by a large amount of historical data after the network is restored. C i This indicates the transmission cost of a data packet under current wireless link conditions. Smaller data packets are easier to transmit within a weak network window. C i The higher the value, the better; this is suitable for larger data packets or packets requiring longer continuous transmission times. C i The value is relatively lower. This is especially true when the wireless link bandwidth is low or signal fluctuations are significant. c A value of 0.15 to 0.25 can be used to prioritize the transmission of smaller and more critical data packets; when the network condition is relatively stable, c It can be appropriately reduced. D i This factor is used to represent retransmission risk, primarily reflecting situations where data packets fail to be verified multiple times, fail to receive confirmation from the master station for an extended period, or are at a critical point for resuming transmission. This factor is used to prevent some data packets from remaining in an unacknowledged state for a long time, and is generally set to 0.05 to 0.15. Since retransmission risk mainly serves to correct ordering, it should not exceed key factors such as security importance, time freshness, and transmission cost.

[0046] It should be noted that in conventional substation mobile operation scenarios, the following can be adopted: α =0.45、 β =0.25、 c =0.20、 d=0.10 is the default value. In this weight group, safety importance has the largest weight, aligning with the safety-first requirement of error prevention services; time freshness ensures timely synchronization of current operation data; transmission cost adapts to weak network environments caused by obstructions and interference within the substation; retransmission risk is used to compensate for and sort abnormal data packets. Different substations can adjust the weights within the above range based on the operation type, wireless coverage quality, and master station load, but the sum of the four weights must still be 1 after adjustment.

[0047] Furthermore, during resuming interrupted transmissions, network interruptions may cause some data packets to fail to transmit. To optimize the retransmission strategy, the retransmission operation can be controlled by calculating the retransmission rate formula: in, This represents the number of data packets that have been successfully transmitted. This represents the number of failed or lost data packets. When the system's retransmission rate is high (i.e., most data packets are successfully transmitted), unnecessary retransmissions can be reduced. In this case, the system can choose appropriate transmission times to avoid duplicate transmissions and waste network resources. Retransmission operations can be more intelligent, such as delaying retransmissions based on network conditions or using fast recovery mechanisms to avoid full retransmissions. When the system's retransmission rate is low (i.e., many data packets fail to be transmitted successfully), the system can proactively increase retransmission efforts and strengthen its retransmission strategy. In this case, it may be necessary to reassess the network condition, select a more stable transmission path, or adopt a more robust protocol to improve transmission stability.

[0048] It should be noted that in step S500 above, incremental data packets are uploaded in fragments using a breakpoint resume method. After the transmission is interrupted, the transmission resumes from the breakpoint, avoiding the retransmission of already transmitted parts and improving the success rate and synchronization efficiency of batch data transmission in weak network environments. After the master station verifies and confirms, the terminal updates the local synchronization status to ensure that the data at both ends are consistent.

[0049] Example 3 provides an application example of a method for preventing data loss due to interruption and incremental synchronization in substation mobile terminals, and verifies and explains the technical effectiveness of this method.

[0050] This embodiment sets up a simulation example of mobile terminal synchronization in a substation. The simulation uses 30 mobile terminals, each generating 600 operation records during offline periods, with each record being 512 bytes. The wireless link is interrupted for 5 minutes, 10 minutes, and 30 minutes respectively. After network recovery, the synchronization results are compared between traditional full retransmission, timestamp-based incremental synchronization, and the synchronization method of this invention.

[0051] The full retransmission method re-uploads all records on the terminal side after each recovery; the timestamp-based incremental synchronization method only uploads data whose timestamps are later than those of the master station records, but there is a risk of missing or duplicate transmissions when there is a terminal clock deviation or out-of-order writing; this invention first ensures the order and integrity of records through NVM transaction logs, then locates the difference data through hash digest trees, and finally continues to transmit incomplete data blocks based on session identifier, fragment sequence number, and byte offset.

[0052] Simulation results show that, under a 30-minute interruption, the synchronization completion rate of the full retransmission method is approximately 91.06%, the recovery time is approximately 221.35 seconds, and the repetition or out-of-order ratio is approximately 10.34%; the synchronization completion rate of the timestamp-based incremental synchronization method is approximately 94.46%, the recovery time is approximately 123.62 seconds, and the repetition or out-of-order ratio is approximately 5.31%; the synchronization completion rate of the present invention is approximately 99.21%, the recovery time is approximately 50.36 seconds, and the repetition or out-of-order ratio is approximately 0.55%. Under the same conditions, the data transmission volume of the present invention is approximately 2.18 MB, significantly lower than the 8.79 MB of the full retransmission method.

[0053] Therefore, this invention can reduce duplicate transmissions while ensuring the integrity of critical operation records after a wireless link interruption, and shorten the synchronization time after network recovery. It is suitable for anti-misoperation data synchronization scenarios of substation mobile terminals under conditions of strong electromagnetic interference, equipment obstruction, and concurrent operation of multiple terminals.

[0054] Example 4: This example provides a system for resuming interrupted data transmission and incremental synchronization of mobile terminals in substations to prevent data malfunctions. The trusted connection module is used to establish a trusted wireless connection after the mobile terminal enters the work area by completing certificate verification and key negotiation with the wireless access device and authentication server. The log storage module is used to write each state change into non-volatile memory in the form of a log during the grounding operation of the mobile terminal. The offline protection module is used to ensure that the terminal continues to save operation records in the order of local logs when the trusted wireless connection is interrupted. After the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit as unacknowledged to determine the range of data to be retransmitted. The differential positioning module is used by the terminal to construct a hash digest tree based on the grounding wire status corresponding to the range of data to be retransmitted, and to send the root hash to the main station and compare it with the historical hash value stored by the main station to locate the changed data whose status has changed. The incremental synchronization module is used by the terminal to package changed data into incremental data packets, upload the incremental data packets to the master station in a breakpoint resume mode, the master station verifies the incremental data packets and returns confirmation information, and the terminal updates the local log synchronization status.

[0055] It should be noted that the technical solution of the substation mobile terminal anti-misoperation data interruption resume and incremental synchronization system belongs to the same concept as the above-mentioned substation mobile terminal anti-misoperation data interruption resume and incremental synchronization method. For details not described in detail in this embodiment, please refer to the description of the above-mentioned substation mobile terminal anti-misoperation data interruption resume and incremental synchronization method.

[0056] The above-mentioned unit modules can be embedded in the processor of the electronic device in hardware form or independent of it, or they can be stored in the memory of the electronic device in software form, so that the processor can call and execute the corresponding operations of the above modules.

[0057] This embodiment also provides an electronic device, which includes a processor, a memory, a communication interface, a display screen, and an input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface is used for wired or wireless communication with external terminals. Wireless communication can be achieved through WiFi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a method for resuming interrupted data transmission and incremental synchronization for substation mobile terminals to prevent data errors. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the device's casing, or an external keyboard, touchpad, or mouse.

[0058] This embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method proposed in the above embodiments.

[0059] The storage medium proposed in this embodiment belongs to the same inventive concept as the method proposed in the above embodiments. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0060] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory, random access memory, flash memory, hard disk, or optical disk, and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute the method of the embodiments of the present invention.

[0061] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the present invention.

Claims

1. A method for resuming interrupted data transmission and incremental synchronization of mobile terminals in substations to prevent data malfunctions, characterized in that, include: After the mobile terminal enters the work area, it establishes a trusted wireless connection by completing certificate verification and key negotiation with the wireless access device and authentication server. During the grounding operation, the mobile terminal writes each state change to non-volatile memory in the form of a log. When the trusted wireless connection is interrupted, the terminal continues to save the operation records in the order of the local log. After the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit as unconfirmed and determines the range of data to be retransmitted. The terminal constructs a hash digest tree based on the grounding wire status corresponding to the range of data to be retransmitted, and sends the root hash to the master station to compare it with the historical hash values ​​stored by the master station to locate the changed data whose status has changed; The terminal packages the changed data into an incremental data packet and uploads the incremental data packet to the main station using a breakpoint resume method. The main station verifies the incremental data packet and returns confirmation information. The terminal then updates its local log synchronization status.

2. The method for interrupted data resumption and incremental synchronization of a substation mobile terminal as described in claim 1, characterized in that, Establishing a trusted wireless connection includes: After the mobile terminal starts up, it passively detects the beacon frames sent by the wireless access device and triggers the access authentication process. The mobile terminal initiates an access request to the wireless access point on the network side, and exchanges and transmits digital identity credentials between the two parties through an authentication server as an intermediary; the mobile terminal verifies the legitimacy of the network-side access point, and the wireless access point verifies the legitimacy of the mobile terminal at the same time. After the identities of both parties are verified, the mobile terminal and the wireless access point enter the key negotiation phase, exchange session key parameters, and complete the establishment of the encrypted channel. After successful key negotiation, the mobile terminal establishes a protected and trusted wireless connection with the network side.

3. The method for resuming interrupted data transmission and incremental synchronization of a substation mobile terminal as described in claim 2, characterized in that, During the grounding operation, the mobile terminal writes each state change to non-volatile memory in log form, including: During the process of grounding wire requisition, connection, removal or return, the mobile terminal captures each state change event in real time and constructs the captured state change events into structured log entries. The log entries include log sequence number, operation type, operation object, state value, operation timestamp, complete data snapshots before and after the operation, and synchronization status bit. The constructed log entries are sequentially stored in the terminal's local non-volatile memory by appending them. After the log is written, an initial synchronization status bit is assigned to the log entry to indicate that the record has not yet been confirmed by the master station and is waiting for subsequent synchronization processing.

4. The method for interrupted data resumption and incremental synchronization of a substation mobile terminal as described in claim 3, characterized in that, When the trusted wireless connection is interrupted, the terminal continues to save operation records in the order of the local log. After the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit set to unacknowledged to determine the range of data to be retransmitted, including: The mobile terminal monitors the link quality and connectivity status of the trusted wireless connection in real time. In response to the detection of a wireless connection interruption or signal quality below a threshold, the terminal enters offline working mode and continues to save newly generated operation records to non-volatile memory in the order of local logs, forming a queue to be synchronized. In response to the terminal detecting that the wireless link has regained a stable connection, a synchronization scan process is triggered, which traverses the log records in the local non-volatile memory and reads the synchronization status bit saved in each log entry. Filter out log entries whose synchronization status is marked as unacknowledged or pending synchronization; Based on the log sequence number of the selected log entries, determine the range of data to be retransmitted.

5. The method for interrupted data resumption and incremental synchronization of a substation mobile terminal as described in claim 4, characterized in that, The changed data regarding the change in positioning status includes: The mobile terminal constructs a hash digest tree structure based on the grounding wire status data involved in the range of data to be retransmitted, calculates and generates a root hash value, and sends the root hash value to the master station when the terminal initiates synchronization. The master station will perform a consistency comparison between the received root hash value and the historical root hash value saved in the previous synchronization cycle; In response to the determination that the two root hash values ​​are inconsistent, starting from the root node, the system collaborates with the terminal layer by layer to exchange and compare the hash values ​​of each child node, accurately locating the specific leaf node whose hash value has changed, that is, determining the grounding wire identifier and the changed content of the state change; the terminal generates change data based on the location result.

6. The method for interrupted data resumption and incremental synchronization of a substation mobile terminal as described in claim 5, characterized in that, The terminal packages the changed data into an incremental data packet and uploads the incremental data packet to the main station using a resume upload method, including: The mobile terminal extracts log entries that match the changed data from the range of data to be retransmitted, packages them into incremental data packets, and assigns a unique session identifier to the incremental data packets. The incremental data packet is divided into multiple fragments, and the sequence number and byte offset of each fragment are recorded. The terminal initiates the upload process, sending each data fragment to the main station in sequence according to the fragment number. After each fragment is successfully sent, the terminal persistently stores the byte offset of the currently successfully uploaded data locally. In response to a wireless connection interruption during transmission, the terminal retains the offset of the currently successfully uploaded bytes as the breakpoint and suspends the current upload task; in response to the terminal detecting that the wireless link has been restored, it sends a resume request to the master station, which carries the session identifier of the current incremental data packet and the last confirmed byte offset. The master station locates the starting position of the data that has not yet been received in the incremental data packet based on the received session identifier and byte offset, and continues to receive subsequent data fragments from the starting position of the data until all data fragments are transmitted. During transmission, the terminal determines the transmission priority of each fragment based on the size and importance of the data packet. When network bandwidth is limited, it prioritizes sending data fragments with smaller data size and higher importance.

7. The method for interrupted data resumption and incremental synchronization of a substation mobile terminal as described in claim 6, characterized in that, The main station verifies the incremental data packet and returns confirmation information, including: After receiving the incremental data packet uploaded by the terminal, the main station performs verification processing on the incremental data packet; After the verification process is successful, the master station returns confirmation information to the terminal. The confirmation information includes the synchronization result status and the range of data that has been successfully processed. After receiving the confirmation information, the terminal updates the synchronization status bit of the corresponding log entry in its local non-volatile memory to "confirmed".

8. A system for interrupted transmission and incremental synchronization of anti-misoperation data for substation mobile terminals, employing the method for interrupted transmission and incremental synchronization of anti-misoperation data for substation mobile terminals as described in any one of claims 1 to 7, characterized in that, include: The trusted connection module is used to establish a trusted wireless connection after the mobile terminal enters the work area by completing certificate verification and key negotiation with the wireless access device and authentication server. The log storage module is used to write each state change into non-volatile memory in the form of a log during the grounding operation of the mobile terminal. The offline protection module is used to ensure that when the trusted wireless connection is interrupted, the terminal continues to save operation records in the order of local logs. After the wireless link is restored, the mobile terminal reads the log entries with the synchronization status bit as unconfirmed to determine the range of data to be retransmitted. The differential positioning module is used by the terminal to construct a hash digest tree based on the grounding wire status corresponding to the range of data to be retransmitted, and to send the root hash to the main station and compare it with the historical hash value stored by the main station to locate the changed data whose status has changed. The incremental synchronization module is used by the terminal to package the changed data into an incremental data packet, upload the incremental data packet to the main station in a breakpoint resume mode, the main station verifies the incremental data packet and returns confirmation information, and the terminal updates the local log synchronization status.

9. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store computer-executable instructions, and when the processor executes the computer-executable instructions, it implements the steps of the method for resuming interrupted data transmission and incremental synchronization of substation mobile terminal according to any one of claims 1 to 7.

10. A computer-readable storage medium having computer-executable instructions stored thereon, characterized in that: When the computer-executable instructions are executed by the processor, they implement the steps of the method for resuming interrupted data transmission and incremental synchronization of a substation mobile terminal as described in any one of claims 1 to 7.