Information transmission method and device for fault recording device
By using the Wi-Fi Peer-to-Peer protocol stack and TLS encryption technology, combined with the SMTP protocol, wireless, real-time, and secure information transmission of the fault recording device is achieved, solving the problems of deployment flexibility and information security in existing technologies, and reducing system complexity and operation and maintenance costs.
Patent Information
- Application Number
- CN202511190003.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-25
- Publication Date
- 2025-12-02
AI Technical Summary
Existing fault recording devices have limited deployment flexibility in remote or temporary monitoring scenarios, rely on wired networks or specific communication systems, have complex system structures and high costs, lack effective data encryption measures, and pose potential information security risks.
Wireless transmission is achieved using a Wi-Fi Peer-to-Peer protocol stack. Fault recordings and alarm information are encrypted using the TLS protocol, and the encrypted information is sent directly to the client's email address via the SMTP protocol. The cache and port priority are dynamically adjusted to ensure successful connection.
It enables wireless, real-time, and secure transmission of fault recording data, reduces system complexity and maintenance costs, ensures the confidentiality and integrity of information, and improves deployment flexibility and connection success rate.
Smart Images

Figure CN121056299A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of fault recording information transmission, and more specifically, to an information transmission method and apparatus for a fault recording device. Background Technology
[0002] In power system operation monitoring, fault recording devices play a crucial role. They can capture and record waveform data and related alarm information in real time when a power system fault occurs, providing valuable first-hand information for fault analysis, location, and repair. Traditionally, this fault recording and alarm information usually relies on SCADA (Supervisory Control and Data Acquisition) systems for transmission and processing. However, while SCADA systems are powerful, their deployment costs are high, and in some remote or temporary monitoring scenarios, access to SCADA systems may not be feasible.
[0003] Therefore, by utilizing Wi-Fi technology, fault recording devices can achieve wireless data transmission without wiring, greatly improving deployment flexibility and convenience. Meanwhile, SMTP (Simple Mail Transfer Protocol), as a widely used email transmission standard, boasts high compatibility and reliability, ensuring that fault recordings and alarm information are accurately delivered to the client's mailbox.
[0004] Because this information often contains sensitive data and important alarms from the power system, interception or tampering during transmission would pose a serious threat to the safe and stable operation of the power system. Therefore, effective encryption must be applied before transmitting this sensitive information.
[0005] In existing technologies, for example, patent number CN103501047B discloses an intelligent fault recording master station information management system, including a main system and several subsystems. This requires a large management system to support the viewing and management of fault recordings. Although it achieves automatic transmission and analysis of fault recording files, it still relies on wired networks or specific communication systems, resulting in high deployment costs. Regarding information security, this solution does not explicitly mention data encryption measures, posing a risk of information leakage. Another example is patent number CN203368149U, which discloses an intelligent substation fault recording system, including multiple components such as a fault recording device, a central switch, and bay switches, resulting in a complex structure. It relies on wired network connections, limiting deployment flexibility, especially in remote or temporary monitoring scenarios. It does not explicitly mention data encryption and wireless transmission functions, leading to deficiencies in information security and transmission convenience.
[0006] The shortcomings of existing technologies can be summarized as follows: They rely on wired networks or specific communication systems, limiting deployment flexibility and making them unsuitable for remote or temporary monitoring scenarios. The system structure is complex, resulting in high setup and maintenance costs. There is a lack of effective data encryption measures, posing a risk to information security. Furthermore, the lack of effective port filtering mechanisms leads to a low port connection success rate.
[0007] There are currently no effective solutions to the problems in the relevant technologies. Summary of the Invention
[0008] In view of the problems in related technologies, the present invention proposes an information transmission method and apparatus for a fault recording device to overcome the above-mentioned technical problems existing in the prior art.
[0009] Therefore, the specific technical solution adopted by the present invention is as follows: According to one aspect of the present invention, an information transmission method for a fault recording device is provided, comprising: Fault waveform recording and alarm information are generated through a fault waveform recording device; the fault waveform recording and alarm information are encrypted based on a transport layer security protocol; Obtain server configuration data that matches the client's email domain name, and determine whether there is port number information for communicating with the target server; If the judgment result is negative, the target port is determined based on the port number information, combined with security requirements and port dynamic sorting optimization results; If the judgment result is yes, or the fault recording device establishes a connection with the target server through the target port, then based on the email transmission protocol and through the point-to-point protocol stack, it sends encrypted fault recording and alarm information to the customer's email server.
[0010] Furthermore, the encryption processing of fault recordings and alarm information based on transport layer security protocols includes: Based on the statistical forecasting method, the percentile of historical feedback information is calculated and combined with the current percentile to predict the cache capacity, which includes the basic cache capacity and the elastic expansion capacity. By using linear regression prediction and combining it with the data flow information in the most recent time period, the future data flow size can be predicted. Determine the ratio between the basic cache capacity and the elastic expansion capacity within the cache capacity based on the future data traffic volume. Send handshake information to the target server corresponding to the client's email address, and use the cache to receive the feedback information sent by the target server based on the handshake information; Retrieve feedback information from the buffer and encrypt fault recordings and alarm information using transport layer security protocols.
[0011] Furthermore, the percentile of historical feedback information is calculated, and combined with the current percentile, the predicted cache capacity includes: If the percentile of historical feedback information is the first data volume, the current feedback information is the second data volume, and the second data volume is less than the first data volume, then the predicted cache size is the first data volume. Specifically, based on the size of the feedback information data, on-demand mapping of the feedback information is achieved through memory mapping.
[0012] Furthermore, using linear regression prediction and combining it with recent data flow information, the predicted future data flow size includes: Pre-configure a sliding window and record data flow information within the most recent time period; calculate statistical indicators of data flow information within the sliding window; Based on the statistical indicators of data traffic information, the trend of data traffic change is obtained; based on the trend of data traffic change, linear regression is used to predict the amount of data traffic in the future time period.
[0013] Furthermore, based on port number information, and combined with security requirements and dynamic port sorting optimization results, the target ports are determined to include: Obtain port number information and filter out the initial ports corresponding to different security requirements based on the security requirements of encrypted or unencrypted connections; By using Bayesian and machine learning models, and combining the historical connection success rates of each port with the initial ports corresponding to different security requirements, the target port is dynamically determined.
[0014] Furthermore, by utilizing Bayesian and machine learning models, and combining the historical connection success rates of each port with the initial ports corresponding to different security requirements, the target ports are dynamically determined, including: Based on preset security requirements, the connection priority of each initial port is adjusted using a Bayesian model and the historical connection success rate of each initial port. Collect and analyze the environmental characteristics of the initial ports, and use a decision tree model combined with these environmental characteristics, including network latency, network load, and historical connection time, to predict the connection success rate of each initial port. Historical stability is provided by Bayesian model, while decision tree model captures real-time changes. After weighted averaging, the comprehensive connection priority of each initial port is obtained, and the connection results are continuously fed back to Bayesian model and decision tree model. Based on the overall connection priority of the initial ports, the target ports are selected in descending order of priority; When the fault recording device establishes a connection with the target server through the quasi-target port, the quasi-target port is used as the target port.
[0015] Furthermore, based on the email transmission protocol and through a point-to-point protocol stack, encrypted fault recordings and alarm information are sent to the client's email server, including: Based on the email transmission protocol, direct communication between the fault recording device and the customer's email server is achieved. A point-to-point wireless connection is established, and the fault recording device initiates and completes a handshake with the customer's email server to achieve the transmission of fault recording and alarm information.
[0016] According to another aspect of the present invention, an information transmission device for a fault recording apparatus is also provided, comprising: An encryption module is generated to generate fault waveforms and alarm information through the fault waveform recording device; the fault waveforms and alarm information are encrypted based on the transport layer security protocol. The port determination module is used to obtain server configuration data that matches the client's email domain name and determine whether there is port number information for communicating with the target server; The port selection and information sending module is used to determine the target port based on the port number information, combined with security requirements and port dynamic sorting optimization results if the judgment result is negative; if the judgment result is positive or the fault recording device establishes a connection with the target server through the target port, it sends encrypted fault recording and alarm information to the customer's email server based on the email transmission protocol and through the point-to-point protocol stack.
[0017] Furthermore, the encryption processing of fault recordings and alarm information based on transport layer security protocols includes: Based on the statistical forecasting method, the percentile of historical feedback information is calculated and combined with the current percentile to predict the cache capacity, which includes the basic cache capacity and the elastic expansion capacity. By using linear regression prediction and combining it with the data flow information in the most recent time period, the future data flow size can be predicted. Determine the ratio between the basic cache capacity and the elastic expansion capacity within the cache capacity based on the future data traffic volume. Send handshake information to the target server corresponding to the client's email address, and use the cache to receive the feedback information sent by the target server based on the handshake information; Retrieve feedback information from the buffer and encrypt fault recordings and alarm information using transport layer security protocols.
[0018] Furthermore, based on port number information, and combined with security requirements and dynamic port sorting optimization results, the target ports are determined to include: Obtain port number information and filter out the initial ports corresponding to different security requirements based on the security requirements of encrypted or unencrypted connections; By using Bayesian and machine learning models, and combining the historical connection success rates of each port with the initial ports corresponding to different security requirements, the target port is dynamically determined.
[0019] The beneficial effects of this invention are as follows: (1) Breaking Traditional Dependencies: By integrating the Wi-Fi Peer-to-Peer protocol stack, wireless transmission of fault waveform data is achieved, breaking the limitations of traditional reliance on wired networks or specific communication systems and improving the flexibility and convenience of deployment. Ensuring Information Security: The generated fault waveform and alarm information are encrypted using the TLS protocol to ensure the confidentiality and integrity of information during transmission and prevent information leakage or tampering. Simplifying System Structure: The encrypted information is sent to the client's email server in the form of email using the SMTP protocol, eliminating the need to build a large management system, simplifying the information transmission process, and reducing system complexity and maintenance costs.
[0020] (2) The value of this invention lies in breaking the traditional information transmission mode that relies on SCADA systems, and realizing independent, secure, and real-time transmission of fault recording data. Through the dual protection of TLS encryption and SMTP protocol, not only is the confidentiality and integrity of the data ensured, but the flexibility and reliability of information transmission are also improved. At the same time, by using Wi-Fi Peer-to-Peer technology, direct communication between the fault recording device and the client's email address is realized, further simplifying the information transmission process and reducing system complexity and maintenance costs.
[0021] (3) By using the dynamic application of the buffer area mechanism of the fault recording device, customers who are not connected to the SCADA system can also be informed of the fault recording and alarm information issued by the power quality device in a timely manner. In addition, it can save memory and achieve normal communication.
[0022] (4) Using a Bayesian model, the connection priority of ports is dynamically adjusted based on historical success rates. A decision tree model is used to predict the connection success rate of each port based on environmental characteristics. The historical success rate of the Bayesian model is combined with the feature prediction results of the machine learning model to comprehensively evaluate the connection priority of each port. This achieves dynamic ranking optimization and improves the connection success rate of ports. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. 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.
[0024] Figure 1This is a flowchart illustrating the present invention in a specific application; Figure 2 This is a flowchart based on Embodiment 1 of the present invention; Figure 3 This is a flowchart of Embodiment 2 of the present invention; Figure 4 This is a schematic diagram of the structure of a fault recording device according to an embodiment of the present invention; Figure 5 This is a schematic diagram of another fault recording device according to an embodiment of the present invention; Figure 6 This is a flowchart of an information transmission method for a fault recording device according to an embodiment of the present invention. Detailed Implementation
[0025] To further illustrate the various embodiments, the present invention provides accompanying drawings, which are part of the disclosure of the present invention. These drawings are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these drawings, those skilled in the art should be able to understand other possible implementation methods and the advantages of the present invention. The components in the drawings are not drawn to scale, and similar component symbols are generally used to represent similar components.
[0026] According to an embodiment of the present invention, an information transmission method and apparatus for a fault recording device are provided.
[0027] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments, such as... Figure 6 As shown, according to an embodiment of the present invention, an information transmission method for a fault recording device is provided, comprising: S1. Fault waveform and alarm information are generated through the fault waveform recording device; the fault waveform and alarm information are encrypted based on the transport layer security protocol.
[0028] S2. Obtain server configuration data that matches the client's email domain name, and determine whether there is port number information for communicating with the target server.
[0029] S3. If the judgment result is negative, then the target port is determined based on the port number information, combined with the security requirements principle and the port dynamic sorting optimization result.
[0030] S4. If the judgment result is yes or the fault recording device establishes a connection with the target server through the target port, then based on the email transmission protocol and through the point-to-point protocol stack, the encrypted fault recording and alarm information are sent to the customer's email server.
[0031] In one embodiment, encrypting fault recordings and alarm information based on a transport layer security protocol includes: Based on statistical forecasting, the percentile of historical feedback information is calculated and combined with the current percentile to predict the buffer capacity, which includes the basic buffer capacity and the elastic expansion capacity. Linear regression forecasting, combined with recent data flow information, is used to predict future data flow. Based on the future data flow, the ratio between the basic buffer capacity and the elastic expansion capacity is determined. Handshake information is sent to the target server corresponding to the client's email address, and the buffer receives feedback information sent by the target server based on the handshake information. The feedback information in the buffer is retrieved, and fault recordings and alarm information are encrypted using transport layer security protocols.
[0032] In one embodiment, calculating the percentile of historical feedback information and combining it with the current percentile to predict the cache capacity includes: If the percentile of historical feedback information is the first data volume, the current feedback information is the second data volume, and the second data volume is less than the first data volume, then the predicted cache size is the first data volume; wherein, based on the data volume of the feedback information, on-demand mapping of the feedback information is achieved through memory mapping.
[0033] In one embodiment, predicting future data flow volume using linear regression prediction combined with recent data flow information includes: A sliding window is pre-configured, and data flow information within the most recent time period is recorded; statistical indicators of data flow information are calculated within the sliding window; based on the statistical indicators of data flow information, the trend of data flow change is obtained; based on the trend of data flow change, linear regression is used to predict the data flow size in the future time period.
[0034] In one embodiment, based on port number information and combined with security requirements and dynamic port sorting optimization results, the target ports are determined as follows: Obtain port number information and filter out preliminary ports corresponding to different security requirements based on the security requirements of encrypted or unencrypted connections. Utilize Bayesian and machine learning models, and combine the historical connection success rates of each port with the preliminary ports corresponding to different security requirements, to dynamically determine the target port.
[0035] In one embodiment, using Bayesian and machine learning models, and combining historical connection success rates for each port with initial ports corresponding to different security requirements, the target port is dynamically determined, including: Based on preset security requirements, a Bayesian model is used to adjust the connection priority of each preliminary port according to its historical connection success rate. Environmental characteristics of the preliminary ports are collected and analyzed, and a decision tree model is used to combine these characteristics, including network latency, network load, and historical connection time, to predict the connection success rate of each preliminary port. The Bayesian model provides historical stability, while the decision tree model captures real-time changes; these complement each other. After weighted averaging, a comprehensive connection priority for each preliminary port is obtained. The connection success or failure result is continuously fed back to the Bayesian model and the decision tree model. Based on the comprehensive connection priority of the preliminary ports, a quasi-target port is selected in descending order of priority. When the fault recording device establishes a connection with the target server through the quasi-target port, the quasi-target port is used as the target port.
[0036] In one embodiment, sending encrypted fault recordings and alarm information to the client's email server based on the mail transfer protocol and through a point-to-point protocol stack includes: Based on the email transmission protocol, direct communication between the fault recording device and the customer's email server is realized; a point-to-point wireless connection is established, and the fault recording device initiates and completes a handshake with the customer's email server to realize the transmission of fault recording and alarm information.
[0037] According to another embodiment of the present invention, an information transmission device for a fault recording device is also provided, comprising: An encryption module is generated to generate fault waveforms and alarm information through the fault waveform recording device; the fault waveforms and alarm information are encrypted based on the transport layer security protocol.
[0038] The port determination module is used to obtain server configuration data that matches the client's email domain name and determine whether there is port number information for communicating with the target server.
[0039] The port selection and information sending module is used to determine the target port based on the port number information, combined with security requirements and port dynamic sorting optimization results if the judgment result is negative; if the judgment result is positive or the fault recording device establishes a connection with the target server through the target port, it sends encrypted fault recording and alarm information to the customer's email server based on the email transmission protocol and through the point-to-point protocol stack.
[0040] In one embodiment, encrypting fault recordings and alarm information based on a transport layer security protocol includes: Based on statistical forecasting, the percentile of historical feedback information is calculated and combined with the current percentile to predict the buffer capacity, which includes the basic buffer capacity and the elastic expansion capacity. Linear regression forecasting, combined with recent data flow information, is used to predict future data flow. Based on the future data flow, the ratio between the basic buffer capacity and the elastic expansion capacity is determined. Handshake information is sent to the target server corresponding to the client's email address, and the buffer receives feedback information sent by the target server based on the handshake information. The feedback information in the buffer is retrieved, and fault recordings and alarm information are encrypted using transport layer security protocols.
[0041] In one embodiment, based on port number information and combined with security requirements and dynamic port sorting optimization results, the target ports are determined as follows: Obtain port number information and filter out preliminary ports corresponding to different security requirements based on the security requirements of encrypted or unencrypted connections. Utilize Bayesian and machine learning models, and combine the historical connection success rates of each port with the preliminary ports corresponding to different security requirements, to dynamically determine the target port.
[0042] To facilitate understanding of the above technical solutions of the present invention, the working principle of the present invention in actual process will be described in detail below.
[0043] First, the system autonomously generates fault waveforms and alarm information. Then, it uses the TLS (Transport Layer Security) protocol for advanced encryption of this sensitive information, ensuring the security and integrity of the data during transmission. Next, the invention cleverly employs SMTP (Simple Mail Transfer Protocol) and combines it with the built-in Wi-Fi Peer-to-Peer protocol stack of the fault waveform recording device to construct a direct and secure communication link. This link, without relying on a SCADA system, can instantly push the encrypted fault waveforms and alarm information to a pre-set customer email server in the form of email, and ultimately deliver it to the customer's inbox.
[0044] like Figure 1 As shown, this includes: generating fault waveforms and alarm information (providing raw data); encrypting the fault waveforms and alarm information based on the TLS protocol; and sending the encrypted fault waveforms and alarm information to the client's email server via the Wi-Fi Peer-to-Peer protocol stack using the SMTP protocol. Specifically: Encrypting fault recordings and alarm information based on the TLS protocol includes: sending handshake information to the target server corresponding to the client's email address and receiving feedback information from the target server based on the handshake information; calculating the 95th percentile (a type of percentile) of historical feedback information using a statistical prediction method; comparing the current feedback information with the historical distribution to predict future needs; if the historical 95th percentile is 3MB and the current feedback information is 2.5MB, then it is predicted that it needs to be expanded to 3MB; the fault recording device can request a maximum buffer of 10MB; a buffer is dynamically allocated to store the feedback information based on its data size; a basic buffer (2MB) is resident in memory; and an elastic expansion area (0-8MB) is mapped on demand using mmap (memory mapping) based on the size of the feedback information. The fault recordings and alarm information are then encrypted using security parameters contained in the feedback information.
[0045] A fixed-size sliding window is set up to record data traffic information for the most recent hour. The data within the window includes the data traffic volume and the number of fault recordings at each time point. Statistical indicators such as the average, maximum, minimum, and variance of the data traffic are calculated within the sliding window to analyze the trend of data traffic changes, such as increasing, decreasing, or remaining stable. Based on historical traffic trends, simple linear regression is used to predict the data traffic volume for a future period. Based on the predicted future data traffic volume and the size of the base buffer, the required elastic expansion area size is calculated. For example, if the predicted future data traffic is large, the size of the elastic expansion area is appropriately increased; if the predicted future data traffic is small, the size of the elastic expansion area is appropriately decreased. Fault recordings and alarm information are encrypted based on feedback information. The authentication method with the client's email address is a username and password method.
[0046] Before sending encrypted fault logs and alarm information to the client's email address via the Wi-Fi Peer-to-Peer protocol stack using the SMTP protocol, the process includes: searching the configuration for a server configuration matching the client's email domain name, and determining if there is a pre-configured port number for communication with the target server corresponding to the client's email address; if the result is negative (i.e., a valid port cannot be directly determined), the system will attempt to establish a connection with the target server based on a preset port number list. The specific steps are as follows: Port selection is based on security requirements: Unencrypted connection: Select default ports 25 (SMTP) and 110 (POP3). Encrypted connection (SSL / TLS): Select default ports 465 (SMTPS), 995 (POP3S), and 587 (STARTTLS).
[0047] Dynamic ranking optimization: A Bayesian model based on historical success rates records the historical connection success rate of each port. Using the Bayesian model, the connection priority of ports is dynamically adjusted based on the historical success rate. Ports with higher success rates will be prioritized for connection attempts. A machine learning model combining feature prediction is used to collect and analyze environmental features (such as network latency, server load, historical connection time, etc.). A decision tree model is used to predict the connection success rate of each port based on these environmental features. The historical success rate of the Bayesian model is combined with the feature prediction results of the machine learning model to comprehensively evaluate the connection priority of each port. If a connection is successfully established, the port number where the connection was successfully established is determined as the target port number for communication with the target server.
[0048] Sending encrypted fault waveforms and alarm information to the client via the Wi-Fi Peer-to-Peer protocol stack using the SMTP protocol includes: sending encrypted fault waveforms and alarm information from the target port number to the client's mailbox via the Wi-Fi Peer-to-Peer protocol stack using the SMTP protocol (basic communication connection establishment process). Direct communication between devices is achieved through the 802.11 standard protocol, establishing a point-to-point wireless connection and bypassing traditional router relays; the device initiates a TCP three-way handshake to port 25 / 587 of the target mail server through the Wi-Fi P2P channel, completes the SMTP protocol handshake, and upgrades to encrypted transmission via the STARTTLS command (a protocol extension that enables encryption on an established connection), completing certificate verification and symmetric key negotiation; the waveform file is encrypted using the AES-256-GCM algorithm, and the key is transmitted via the SMTP-AUTH extension.
[0049] The client includes at least one of the following devices: a computer, a server. The present invention also provides a fault recording device, comprising: a generation module for generating fault recordings and alarm information; an encryption module for encrypting the fault recordings and alarm information based on the TLS protocol; and a sending module for sending the encrypted fault recordings and alarm information to the client's email address based on the SMTP protocol and via a Wi-Fi Peer-to-Peer protocol stack.
[0050] The encryption module includes: a communication submodule, used to send handshake information to the target server corresponding to the client's email address and receive feedback information sent by the target server based on the handshake information; a cache management submodule, used to dynamically allocate a cache area for feedback information according to the data size of the feedback information; the maximum cache area for the fault recording device can be requested to be 10M; and an encryption submodule, used to encrypt the fault recording and alarm information based on the feedback information. It also includes: The configuration prediction module is used to determine whether there is a pre-configured port number for communication with the target server corresponding to the client's email address. If the result is no, the port adaptation module is triggered. The port adaptation module is used to attempt to establish a connection with the target server based on several pre-set port numbers. If the connection is successfully established, the port number of the successfully established connection is determined as the target port number for communication with the target server. The sending module is specifically used to send encrypted fault recordings and alarm information to the client's email address from the target port number via the Wi-Fi Peer-to-Peer protocol stack based on the SMTP protocol.
[0051] The present invention also provides a readable storage medium storing machine-readable instructions, which, when executed by a machine, enable the machine to perform the email transmission method for a fault recording device as described above.
[0052] This invention first encrypts the generated fault waveform and alarm information using the TLS protocol, and then sends the fault waveform and alarm information to the client's email address in the form of an email using the common SMTP protocol and the Wi-Fi Peer-to-Peer protocol stack inherent in the fault waveform device, so that the customer can be informed of these alarm information in a timely manner even without the SCADA system.
[0053] For certain power networks, fault recordings and alarm information can be promptly pushed to clients' inboxes via email. However, these alarm messages may contain confidential information, so these emails need to be encrypted to ensure information security.
[0054] Example 1:
[0055] In this embodiment, the execution entity is a fault recording device. For example... Figure 2 The diagram shown is a schematic flowchart of an information transmission method for a fault recording device according to the present invention. It includes: Step 101: Generate fault waveform and alarm information. For example, when the fault waveform device detects a sudden change event (such as a voltage surge) or a ground fault, it generates fault waveform and alarm information to alert the user of the problem. The specific method for generating fault waveform and alarm information is existing technology and will not be elaborated here. Step 102: Encrypt the fault waveform and alarm information based on the TLS protocol. TLS (Transport Layer Security) is used to provide confidentiality and data integrity between two applications. Step 103: Send the encrypted fault waveform and alarm information to the client's mailbox via the Wi-Fi Peer-to-Peer protocol stack based on the SMTP protocol. SMTP (Simple Mail Transfer Protocol) is a protocol that provides reliable and efficient email transmission. The client can be any device capable of displaying emails, such as a computer or server. Users can check their emails through the client and thus receive timely fault waveform and alarm information.
[0056] The fault recording device uses an account and password authentication method to connect with the client's email server. Specifically, the client's email username and password can be pre-entered into the fault recording device, enabling subsequent authentication via account and password to ensure data security.
[0057] Furthermore, after step 101 and before step 103, the process includes: determining whether there is pre-configured port number information for communicating with the target server corresponding to the client's email address; if the determination result is no, attempting to establish a connection with the target server based on several pre-set port numbers; if the connection is successfully established, determining the port number of the successfully established connection as the target port number for communicating with the target server; correspondingly, step 103 is: before sending encrypted fault recordings and alarm information to the client via the Wi-Fi Peer-to-Peer protocol stack based on the SMTP protocol. How the target server pushes emails to the client and displays them on the client is existing technology and will not be described in detail here. If there is no pre-configured port number information, attempting to establish a connection with the target server one by one according to the sorted port number list; once a connection is successfully established, determining the port number of the successfully established connection as the target port number for communicating with the target server.
[0058] For a fault recording device, if a pre-configured port number corresponding to the target server for the client's email address is available, then that pre-configured port number is used for communication. If no pre-configured port number is available, it attempts to establish a connection with several ports of the target server (high-priority ports). If the connection is successfully established, then communication with the target server is conducted using that port number. Commonly used ports for SMTP communication are ports 587 and 465, both of which can be used for encrypted communication, while port 25 is used for unencrypted communication. Although most email servers currently support or even require encrypted communication, the communication ports used differ. Some email servers only support encrypted communication using port 587, while others only support encrypted communication using port 465. Therefore, the fault recording device needs to know or query the ports supported by the email server beforehand and configure them correctly for normal communication. The solution provided in this embodiment can automatically identify the port; that is, if configured, it uses the configured port number for communication; if not configured, it attempts to establish a connection using the default port and eventually finds a port number that can be used for communication.
[0059] According to this embodiment, the generated fault waveform and alarm information are first encrypted using the TLS protocol. Then, based on the common SMTP protocol and using the Wi-Fi Peer-to-Peer protocol stack supported by the fault waveform device, the alarm information is sent to the client's mailbox in the form of an email, so that the customer can receive these fault waveform and alarm information in a timely manner even without the SCADA system.
[0060] Example 2:
[0061] This embodiment further supplements the information transmission method for the fault recording device in Embodiment 1. For example... Figure 3 The diagram shown is a flowchart illustrating an information transmission method for a fault recording device according to this embodiment. The method includes: Step 201: Generate fault waveform and alarm information. Step 202: Encrypt the fault waveform and alarm information based on the TLS protocol. Step 203: Send handshake information to the target server corresponding to the client's email address and receive feedback information sent by the target server based on the handshake information. This feedback information may include information such as the version number of the acceptable encryption method TLS. The fault waveform recording device can obtain the necessary information to establish communication based on this feedback information. Step 204: Dynamically allocate a buffer based on the size of the feedback information. The buffer of the fault waveform recording device can be uniformly managed and dynamically allocated, with a maximum size of 10MB. After receiving the feedback information, the fault waveform recording device can apply for a buffer of different sizes based on the size of the feedback information. This is because the fault waveform recording device communicates with the target server corresponding to the client's email address, and the target servers corresponding to these email addresses are diverse, resulting in varying sizes of feedback information. To achieve a compatible receiving buffer, considering both saving buffer space and successful reception, the fault waveform recording device can dynamically allocate and occupy a buffer based on the size of the feedback information. Step 205: Based on the feedback information, send encrypted fault recordings and alarm information to the client's email address via the Wi-Fi Peer-to-Peer protocol stack using the SMTP protocol.
[0062] Example 3:
[0063] This embodiment provides a fault recording device for executing the information transmission method for a fault recording device described in Embodiment 1. For example... Figure 4 The diagram shows a structural schematic of a fault recording device according to this embodiment. The device includes a generation component 401, an encryption component 402, and a transmission component 403. The generation component 401 generates fault waveforms and alarm information; the encryption component 402 encrypts the fault waveforms and alarm information based on the TLS protocol; and the transmission component 403 sends the encrypted fault waveforms and alarm information to the client's email address via the Wi-Fi Peer-to-Peer protocol stack using the SMTP protocol. Before sending the alarm information, the transmission component 403 also requires client email verification, which is performed using a username and password.
[0064] like Figure 5As shown, the fault recording device in this embodiment further includes a judgment component 404 and an establishment component 405. The judgment component 404 is used to determine whether there is pre-configured port number information for communicating with the target server corresponding to the client's email address. If the judgment result is negative, the establishment component 405 is triggered. The operation of the judgment component can be triggered by the sending component 403, the encryption component 402, or other components, which is not limited here. The establishment component 405 is used to attempt to establish a connection with the target server based on several pre-set port numbers. If the connection is successfully established, the port number with the successful connection is determined as the target port number for communicating with the target server. Correspondingly, the sending component 403 specifically uses the SMTP protocol to send encrypted fault recording and alarm information to the client's email address from the target port number through the Wi-Fi Peer-to-Peer protocol stack. The working methods of each component in this embodiment are the same as those in the previous embodiments, and will not be repeated here.
[0065] According to this embodiment, the generated fault waveform and alarm information are first encrypted using the TLS protocol. Then, based on the general SMTP protocol and using the Wi-Fi Peer-to-Peer protocol stack supported by the fault waveform device, the fault waveform and alarm information are sent to the client's mailbox in the form of email, so that the client can receive these fault waveform and alarm information in a timely manner even without the SCADA system.
[0066] The present invention also provides a fault recording device, including at least one memory and at least one processor. The memory is used to store instructions. The processor is used to execute the email transmission method for the fault recording device described in any of the foregoing embodiments, according to the instructions stored in the memory.
[0067] Embodiments of the present invention also provide a readable storage medium. This readable storage medium stores machine-readable instructions, which, when executed by a machine, perform the email transmission method for a fault recording device described in any of the foregoing embodiments.
[0068] The readable medium stores machine-readable instructions that, when executed by a processor, cause the processor to perform any of the aforementioned methods. Specifically, a system or apparatus equipped with a readable storage medium storing software program code that implements the functions of any of the embodiments described above, and causing the computer or processor of the system or apparatus to read and execute the machine-readable instructions stored in the readable storage medium.
[0069] In this case, the program code itself, which can be read from the readable medium, can implement the functionality of any of the embodiments described above. Therefore, the machine-readable code and the readable storage medium storing the machine-readable code constitute a part of this invention. Embodiments of the readable storage medium include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. The program code can be downloaded from a server computer or the cloud via a communication network.
[0070] This invention includes: Information Generation: This invention first generates fault waveforms and alarm information, which are key data for power system monitoring and analysis. Information Encryption: The generated fault waveforms and alarm information are encrypted using the TLS (Transport Layer Security) protocol to ensure data security and integrity during transmission. Transmission Protocol and Path: SMTP (Simple Mail Transfer Protocol) is used as the information transmission protocol, combined with a Wi-Fi Peer-to-Peer protocol stack, to achieve direct communication between the fault waveform recording device and the client's email address. This communication method does not rely on the SCADA system, enhancing the system's independence and flexibility. Sending Method: Through Wi-Fi Peer-to-Peer technology, the encrypted fault waveforms and alarm information are sent directly to the client's email server in the form of email, thus reaching the client's email address, achieving instant information delivery.
[0071] This invention first encrypts the generated fault waveform and alarm information using the TLS (Transport Layer Security) protocol to ensure information security during transmission. Then, utilizing the Wi-Fi Peer-to-Peer protocol stack integrated in the fault waveform device, combined with the SMTP protocol, the encrypted information is sent as an email to the client's email server, and subsequently delivered to the client's inbox. This method not only achieves wireless and real-time transmission of fault waveform and alarm information but also ensures information security, enabling timely access to power system fault alarm information even without SCADA system support, thus providing strong support for the safe and stable operation of the power system.
[0072] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. An information transmission method for a fault recording device, characterized in that, include: Fault waveform recording and alarm information are generated through the fault waveform recording device; The fault recording and alarm information are encrypted based on the transport layer security protocol; Obtain server configuration data that matches the client's email domain name, and determine whether there is port number information for communicating with the target server; If the judgment result is negative, the target port is determined based on the port number information, combined with security requirements and port dynamic sorting optimization results; If the judgment result is yes, or the fault recording device establishes a connection with the target server through the target port, then based on the email transmission protocol and through the point-to-point protocol stack, it sends encrypted fault recording and alarm information to the customer's email server.
2. The information transmission method for a fault recording device according to claim 1, characterized in that, The encryption process for fault recording and alarm information based on transport layer security protocols includes: Based on the statistical forecasting method, the percentile of historical feedback information is calculated and combined with the current percentile to predict the cache capacity, which includes the basic cache capacity and the elastic expansion capacity. By using linear regression prediction and combining it with the data flow information in the most recent time period, the future data flow size can be predicted. Determine the ratio between the basic cache capacity and the elastic expansion capacity within the cache capacity based on the future data traffic volume. Send handshake information to the target server corresponding to the client's email address, and use the cache to receive the feedback information sent by the target server based on the handshake information; Retrieve feedback information from the buffer and encrypt fault recordings and alarm information using transport layer security protocols.
3. The information transmission method for a fault recording device according to claim 2, characterized in that, The calculation of the percentile of historical feedback information, combined with the current percentile, to predict the cache capacity includes: If the percentile of historical feedback information is the first data volume, the current feedback information is the second data volume, and the second data volume is less than the first data volume, then the predicted cache size is the first data volume. Specifically, based on the size of the feedback information data, on-demand mapping of the feedback information is achieved through memory mapping.
4. The information transmission method for a fault recording device according to claim 2, characterized in that, The method of predicting future data flow using linear regression and combining it with recent data flow information includes: Pre-configure a sliding window and record data flow information within the most recent time period; calculate statistical indicators of data flow information within the sliding window; Based on the statistical indicators of data traffic information, the trend of data traffic change is obtained; based on the trend of data traffic change, linear regression is used to predict the amount of data traffic in the future time period.
5. The information transmission method for a fault recording device according to claim 1, characterized in that, The target ports determined based on port number information, combined with security requirements and dynamic port sorting optimization results, include: Obtain port number information and filter out the initial ports corresponding to different security requirements based on the security requirements of encrypted or unencrypted connections; By using Bayesian and machine learning models, and combining the historical connection success rates of each port with the initial ports corresponding to different security requirements, the target port is dynamically determined.
6. The information transmission method for a fault recording device according to claim 5, characterized in that, The method of dynamically determining the target port by utilizing Bayesian and machine learning models, combined with the historical connection success rates of each port and the initial ports corresponding to different security requirements, includes: Based on preset security requirements, the connection priority of each initial port is adjusted using a Bayesian model and the historical connection success rate of each initial port. Collect and analyze the environmental characteristics of the initial ports, and use a decision tree model combined with these environmental characteristics, including network latency, network load, and historical connection time, to predict the connection success rate of each initial port. Historical stability is provided by Bayesian model, while decision tree model captures real-time changes. After weighted averaging, the comprehensive connection priority of each initial port is obtained, and the connection results are continuously fed back to Bayesian model and decision tree model. Based on the overall connection priority of the initial ports, the target ports are selected in descending order of priority; When the fault recording device establishes a connection with the target server through the quasi-target port, the quasi-target port is used as the target port.
7. The information transmission method for a fault recording device according to claim 1, characterized in that, The process of sending encrypted fault recordings and alarm information to the customer's email server based on the email transmission protocol and through a point-to-point protocol stack includes: Based on the email transmission protocol, direct communication between the fault recording device and the customer's email server is achieved. A point-to-point wireless connection is established, and the fault recording device initiates and completes a handshake with the customer's email server to achieve the transmission of fault recording and alarm information.
8. An information transmission device for a fault recording device, used to implement the information transmission method for a fault recording device according to any one of claims 1-7, characterized in that, include: An encryption module is generated to generate fault waveforms and alarm information through the fault waveform recording device. The fault recording and alarm information are encrypted based on the transport layer security protocol; The port determination module is used to obtain server configuration data that matches the client's email domain name and determine whether there is port number information for communicating with the target server; The port selection and information sending module is used to determine the target port based on the port number information, combined with security requirements and dynamic port sorting optimization results, if the judgment result is negative. If the judgment result is yes, or the fault recording device establishes a connection with the target server through the target port, then based on the email transmission protocol and through the point-to-point protocol stack, it sends encrypted fault recording and alarm information to the customer's email server.
9. The information transmission method for a fault recording device according to claim 8, characterized in that, The encryption process for fault recording and alarm information based on transport layer security protocols includes: Based on the statistical forecasting method, the percentile of historical feedback information is calculated and combined with the current percentile to predict the cache capacity, which includes the basic cache capacity and the elastic expansion capacity. By using linear regression prediction and combining it with the data flow information in the most recent time period, the future data flow size can be predicted. Determine the ratio between the basic cache capacity and the elastic expansion capacity within the cache capacity based on the future data traffic volume. Send handshake information to the target server corresponding to the client's email address, and use the cache to receive the feedback information sent by the target server based on the handshake information; Retrieve feedback information from the buffer and encrypt fault recordings and alarm information using transport layer security protocols.
10. The information transmission method for a fault recording device according to claim 8, characterized in that, The target ports determined based on port number information, combined with security requirements and dynamic port sorting optimization results, include: Obtain port number information and filter out the initial ports corresponding to different security requirements based on the security requirements of encrypted or unencrypted connections; By using Bayesian and machine learning models, and combining the historical connection success rates of each port with the initial ports corresponding to different security requirements, the target port is dynamically determined.
Citation Information
Patent Citations
Intelligent fault wave recording main station information management system
CN103501047B
Intelligent substation fault wave recording system
CN203368149U
