A lightning protection detection method and system
By combining a handheld smart testing terminal with a recorder, the lightning protection device testing process is automatically recorded and an electronic testing form is generated, solving the problem of difficulty in tracing responsibility in existing technologies and improving the authenticity and traceability of data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- JIANGXI LANTIAN THUNDER SHELTER CO LTD
- Filing Date
- 2026-02-27
- Publication Date
- 2026-06-16
AI Technical Summary
Existing lightning protection testing technologies lack objective evidence, making it difficult to trace responsibility and failing to meet the high-precision requirements for data authenticity, process traceability, and liability delineation.
By combining a handheld smart testing terminal with a recorder, the testing process is automatically recorded by identifying the unique identifier of the testing point. OCR is used to recognize the values on the lightning protection device screen and generate an electronic test form, achieving uninterrupted video recording of the data and ensuring the authenticity and traceability of the data.
It enables full video recording of the lightning protection device testing process, which can constrain testing personnel to operate according to standard procedures, provide objective evidence for subsequent quality verification and fault tracing, and ensure data authenticity and accountability.
Smart Images

Figure CN122218338A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lightning protection testing technology, and in particular to a lightning protection testing method and system. Background Technology
[0002] Lightning is a highly destructive meteorological disaster in nature. A single discharge can have a current of tens to hundreds of kiloamperes and a voltage of millions of volts. It can damage power systems, communication base stations, data centers, buildings and facilities through direct strike, induction and conduction.
[0003] Surge arresters (also known as lightning arresters or surge protectors) are the core equipment of lightning protection systems, protecting equipment by discharging lightning current and limiting overvoltage. However, during long-term operation, surge arresters can experience performance degradation due to environmental corrosion, aging, and other factors. If this degradation is not detected in time, they will lose their protective function. Therefore, surge arrester testing technology has emerged. Its core objective is to verify, through scientific methods, whether the performance parameters of surge arresters meet safety standards, ensuring their reliable operation during lightning strikes.
[0004] In current testing practices, process recording largely relies on manually filled operation logs, lacking objective corroboration. If testing personnel fail to follow standardized procedures, or if equipment malfunctions lead to disputes, it's impossible to reconstruct the testing scene, making it difficult to trace responsibility. Existing solutions only achieve equipment identification and a single method of data recording and uploading, which is insufficient to meet the high-precision requirements of lightning protection testing for data authenticity, process traceability, and definable responsibility. Therefore, they cannot completely resolve the pain points of data disputes and difficulties in tracing responsibility. Summary of the Invention
[0005] In view of this, the purpose of the present invention is to provide a lightning protection detection method and system, which aims to solve the problem of difficulty in tracing responsibility for lightning protection instrument detection in the prior art.
[0006] This invention proposes a lightning protection detection method applied to a handheld intelligent detection terminal. The handheld intelligent detection terminal is connected to a recorder mounted on the inspector and a cloud server. A unique identification medium is placed at each detection point. The method includes: Upon arrival at the detection point, the location information of the detection point is obtained by identifying the unique identifier of the detection point. Upon receiving the start-test command, the recorder mounted on the testing personnel will automatically turn on to record the testing process of the surge protector at the test point. The handheld testing smart terminal communicates and pairs with the lightning protection device to obtain the internal raw digital signal. It then obtains the raw value captured by the calibration personnel through OCR recognition on the screen of the lightning protection device. When the value corresponding to the raw digital signal inside the lightning protection device matches the raw value obtained by recognition on the screen of the lightning protection device, the recognized raw value is filled into the preset position of the test table. Once the lightning protection device has completed its test, the recorder mounted on the testing personnel will automatically shut down and upload the location information and video footage of the testing process to the cloud server.
[0007] Furthermore, in the aforementioned lightning protection detection method, the steps of obtaining the internal raw digital signal by communicating and pairing with the lightning protection device through a handheld detection smart terminal, obtaining the raw value captured by the verification personnel through OCR recognition on the screen of the lightning protection device detector, and filling the recognized raw value into the preset position of the detection table when the value corresponding to the raw digital signal inside the lightning protection device matches the raw value obtained by recognition on the screen of the lightning protection device detector, include: The handheld detection smart terminal is paired with the surge protector for communication. After successful pairing, the raw digital signal inside the surge protector is read directly. The image acquisition system of the handheld detection smart terminal identifies the appearance of the surge protector, matches it with the pre-stored surge protector screen feature library to determine the category of the surge protector, and automatically calls the corresponding template to select the effective data area of the surge protector, and identifies the original value of the effective data area; When the value corresponding to the original digital signal inside the surge protector matches the original value obtained by identifying the valid data area, the identified original value is filled into the preset position of the test table. When the value corresponding to the original digital signal inside the surge protector is inconsistent with the original value obtained by identifying the valid data area, a manual verification is prompted.
[0008] Furthermore, in the above-mentioned lightning protection testing method, the step of controlling the recorder configured on the testing personnel to automatically turn on after receiving the start testing command, so as to record the testing process of the lightning protection device at the testing point by the testing personnel, includes: The handheld detection smart terminal and the recorder are paired for communication in order to perform clock calibration on both devices. When the handheld smart terminal is inputting detection data, it automatically generates a data timestamp containing the location identifier, data value, and generation time, and the recorder simultaneously generates a video timestamp containing the recording time. When the handheld smart terminal collects detection data, it sends a tagging command to the recorder so that the recorder can automatically extract video segments within a preset time period at the time of collection and assign data tags, operation tags, and status tags.
[0009] Furthermore, in the aforementioned lightning protection detection method, before the step of automatically generating a data timestamp containing the location identifier, data value, and generation time when the handheld detection smart terminal inputs detection data, and the recorder simultaneously generating a video timestamp containing the recording time, the method further includes: During the testing process, the handheld testing smart terminal sends a time synchronization data packet to the recorder every preset time interval. The time synchronization data packet contains at least the current UTC time of the handheld testing smart terminal, the time difference of this synchronization, and the random check code generated by the terminal. After the recorder receives the data packet, it compares the recorder's local time with the current UTC time of the handheld detection smart terminal. If the deviation is greater than the threshold, it corrects the local clock and sends a synchronization confirmation signal back to the handheld detection smart terminal.
[0010] Furthermore, in the aforementioned lightning protection detection method, the step of sending a tagging command to the recorder when the handheld detection smart terminal collects detection data, so that the recorder automatically extracts video segments within a preset time period at the time of collection and assigns data tags, operation tags, and status tags, includes: After the handheld detection smart terminal and the recorder complete the first time synchronization, the handheld detection smart terminal extracts the random check code and the time difference of the synchronization from the synchronization data packet, and the recorder simultaneously retains the random check code and the time difference of the synchronization. The terminal key fragment is obtained by hashing the unique identifier of the handheld detection smart terminal, the random verification code, and the time difference of the synchronization. The recorder key fragment is obtained by hashing the unique identifier of the recorder, the random verification code, and the time difference of the synchronization. The terminal key fragment and the recorder key fragment are concatenated to obtain the session master key; the session master key is updated after each time synchronization is completed, and the corresponding video fragment is encrypted using the session master key.
[0011] Furthermore, in the above-mentioned lightning protection detection method, after the step of encrypting the corresponding video segment using the session master key, the method further includes: For the encrypted video clips, a hash algorithm is used to generate a video encryption hash; The event root hash is generated by taking the hash of the data timestamp, the hash of the video timestamp, and the video encryption hash as input and using the Merkle tree algorithm. The handheld detection smart terminal uses its own RSA private key to digitally sign the event root hash and the corresponding point identifier to generate a signature certificate. The hashes of the data timestamp, the video timestamp, the event root hash, and the signature credential are packaged into an integrity verification package and bound to the encrypted video clip for storage.
[0012] Furthermore, the above-mentioned lightning protection detection method further includes: If the inspector manually changes the original value entered into the preset position on the inspection form, the system will automatically record the time of the change, the values before and after the change, the corresponding points, and the associated video clips. Once the lightning protection device completes its test, the changed time, previous and subsequent values, corresponding locations, and associated video clips will be uploaded to the cloud server.
[0013] Another objective of this invention is to provide a lightning protection detection system applied to a handheld intelligent detection terminal. The handheld intelligent detection terminal is connected to a recorder mounted on the inspector and a cloud server. A unique identification medium is placed at each detection point. The system includes: The acquisition module is used to obtain the location information of the detection point by identifying the unique identifier medium of the detection point when the detection point is reached. The control module is used to automatically turn on the recorder configured on the inspector when a start inspection command is received, so as to record the inspector's inspection process of the surge protector at the inspection point. The detection module is used to communicate and pair with the surge protector through a handheld detection smart terminal to obtain the internal raw digital signal, obtain the raw value captured by the verification personnel through OCR recognition on the screen of the surge protector detector, and when the value corresponding to the raw digital signal inside the surge protector is consistent with the raw value obtained by recognition on the screen of the surge protector detector, the recognized raw value is filled into the preset position of the test table. The upload module is used to automatically shut down the recorder attached to the testing personnel after the lightning protection device has completed its test, and then bind the location information with the video information of the testing process and upload it to the cloud server.
[0014] Another object of the present invention is to provide a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.
[0015] Another object of the present invention is to provide an electronic device including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the method described above.
[0016] This invention obtains the location information of a detection point by identifying its unique identifier. Upon receiving a start-of-detection command, a recorder mounted on the testing personnel automatically activates to record the testing process of the surge protector at the detection point. Once the surge protector detects data, the original values captured by the verification personnel using OCR are obtained from the detector screen. If there are no objections to the original values of the current detection point, the verified values are entered into a preset position on the testing form. After the surge protector test is completed, the recorder mounted on the testing personnel automatically deactivates, and the location information is bound to the video information of the testing process before being uploaded to a cloud server. This achieves uninterrupted video recording of the entire testing process. The video can completely recreate key scenarios such as instrument operation, parameter reading, and equipment status, ensuring that testing personnel operate according to standard procedures and providing objective evidence for subsequent quality verification and fault tracing. Dual-source verification ensures data authenticity. This solves the problem of difficulty in tracing responsibility for surge protector testing in existing technologies. Attached Figure Description
[0017] Figure 1 This is a flowchart of the lightning protection detection method in the first embodiment of the present invention; Figure 2 This is a structural block diagram of the lightning protection detection system in the third embodiment of the present invention.
[0018] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation
[0019] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
[0020] It should be noted that when a component is said to be "fixed to" another component, it can be directly on the other component or there may be an intervening component. When a component is said to be "connected to" another component, it can be directly connected to the other component or there may be an intervening component. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the specification of this invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0022] Example 1 Please see Figure 1 The image shows a lightning protection detection method in the first embodiment of the present invention, which is applied to a handheld detection smart terminal. The handheld detection smart terminal is connected to a recorder and a cloud server respectively configured on the testing personnel. A unique identification medium is arranged at each testing point. The method includes steps S10 to S13.
[0023] Step S10: When the detection point is reached, the location information of the detection point is obtained by identifying the unique identifier medium of the detection point.
[0024] Each detection point is equipped with a unique identification medium, including but not limited to a passive NFC tag (attached to the surge protector or its mounting bracket, suitable for close-range touch recognition), a high-frequency anti-pollution QR code (printed next to the device nameplate, suitable for long-range scanning recognition), or an RFID card (fixed in a protective box near the detection point, suitable for recognition in complex electromagnetic environments). The card contains a unique code information pre-stored for that specific point, and this code is unique throughout the entire detection system, accurately corresponding to a specific surge protector device.
[0025] When the testing personnel arrive at the location of the surge protector to be tested (i.e., the testing point), they activate the corresponding identification function by operating the handheld smart testing terminal (such as approaching the NFC tag or scanning the QR code). The terminal's identification module will establish a short-range data interaction with the unique identification medium and read the unique code in the medium. The terminal then performs information matching based on this code. This "location information" is the core foundational data supporting subsequent testing operations. It typically includes the unique identifier of the testing location, the corresponding surge protector's model, manufacturer, installation time, system it belongs to (e.g., a 10kV line surge protection group in a substation, a surge protection unit for core equipment in a communication base station), historical testing records (e.g., grounding resistance value and leakage current data from the previous test), the type of parameter to be tested this time (e.g., determining the current carrying capacity or residual voltage to be measured based on the equipment type), and the specific geographical coordinates of the location. Once the location information is identified, measurements of the specific location for the specific project can begin. Additionally, if it is the first testing, a unique identifier medium must be identified to register the location, completing the binding between the location and the chip before measurements at the specific location can begin.
[0026] In addition, in some optional embodiments of the present invention, before testing, the identity verification and location identification of the testing personnel and the verification personnel are performed by a handheld intelligent testing terminal.
[0027] Step S11: Upon receiving the start test command, the recorder mounted on the tester is automatically turned on to record the tester's test process of the surge protector at the test point.
[0028] The start detection command can be triggered either by the inspector manually clicking the "Start Detection" button on the handheld smart detection terminal via the touch interface, or by the system automatically (e.g., after the terminal identifies the location information, it automatically generates the command when preset conditions are met, such as confirming that the personnel are in place and the instrument is connected normally). The command is transmitted through a stable communication link (such as Bluetooth, Wi-Fi or a dedicated wireless protocol) pre-established between the terminal and the recorder to ensure real-time signal response.
[0029] The recorders worn by inspectors are usually lightweight wearable devices (such as chest-mounted high-definition cameras or head-mounted recorders). When the recorder is turned on automatically, it will capture the entire inspection process in high-definition video.
[0030] Step S12: The handheld testing smart terminal communicates and pairs with the lightning protection device to obtain the internal raw digital signal. The raw value on the screen of the lightning protection device detector is obtained by the verification personnel through OCR recognition. When the value corresponding to the raw digital signal inside the lightning protection device is consistent with the raw value obtained by recognition on the screen of the lightning protection device detector, the recognized raw value is filled into the preset position of the test table.
[0031] Among them, OCR recognition of raw values and verification by the checkers are key verification steps to ensure data authenticity. The checkers can view the OCR recognition results on the handheld terminal interface and compare the recognized values with the original display on the screen to see if they are completely consistent. After confirming that there are no deviations (such as no recognition omissions or symbol errors), the checkers issue a "confirm" command through the terminal and fill it into the preset position of the test form. The handheld smart test terminal has a pre-stored electronic test form that conforms to industry standards. The form has preset corresponding fields according to the test parameter type (such as "grounding resistance", "leakage current", "residual voltage" and other exclusive columns). After receiving the verification approval command, the terminal will automatically match the recognized raw values to the preset fields corresponding to the current test point. There is no need for manual filling in the position, which not only avoids the confusion of "parameters being filled in the wrong column" but also greatly improves the data entry efficiency, realizing a high-reliability flow from "instrument display data" to "electronic archive data" without manual intervention.
[0032] In addition, in some optional embodiments of the present invention, the handheld detection smart terminal is paired with the surge protector for communication, and the original digital signal inside the surge protector is read directly after successful pairing. The image acquisition system of the handheld detection smart terminal identifies the appearance of the surge protector, matches it with the pre-stored surge protector screen feature library to determine the category of the surge protector, and automatically calls the corresponding template to select the effective data area of the surge protector, and identifies the original value of the effective data area; When the value corresponding to the original digital signal inside the surge protector matches the original value obtained by identifying the valid data area, the identified original value is filled into the preset position of the test table. When the value corresponding to the original digital signal inside the surge protector is inconsistent with the original value obtained by identifying the valid data area, a manual verification is prompted.
[0033] Among them, the optimization and iteration of traditional single OCR recognition or single signal reading methods, firstly, the communication pairing process between the handheld detection smart terminal and the surge protector detector relies on wireless communication protocols to achieve a secure connection between the two. Common pairing methods include short-range Bluetooth or NFC, and can also be adapted to long-distance scenarios through low-power wide area networks such as LoRa. After successful pairing, the terminal can directly read the raw digital signal output by the surge protector detector. This type of signal is electrical signal data that has not been converted by the instrument screen, which can avoid numerical deviations caused by instrument display module failures to the greatest extent and provide a hardware-level raw data benchmark for subsequent verification. Secondly, the image acquisition and screen feature matching and recognition stage is a data supplement path based on visual verification: the image acquisition device of the handheld terminal, i.e., the high-definition camera, first captures and identifies the appearance of the surge protector detector, and compares the acquired appearance features with the screen feature library of surge protector detectors pre-stored in the terminal. The feature library stores information such as appearance parameters, screen size, and display area layout of surge protector detectors of different brands and models. By matching, the category of the current surge protector can be quickly determined, and then the corresponding image recognition template is automatically called. This template will accurately select the effective data area on the screen, eliminating interference from irrelevant information such as button labels and brand logos. Subsequently, the image quality of the effective data area is optimized through image preprocessing technology to eliminate the effects of screen reflection, uneven ambient light, etc., and then the original visual values are obtained through OCR algorithm recognition, forming a visual data source.
[0034] The system converts the raw digital signal from the direct reading of the communication pair into a comparable value, and compares it in real time with the value obtained from image recognition. If the two are completely consistent, it indicates that there are no abnormalities in the internal measurement, signal transmission, and screen display of the surge protector detector, and the data credibility meets the dual verification standard. The terminal then automatically fills the value into the corresponding preset position in the pre-stored electronic test table. This position is preset according to the parameter type (such as grounding resistance, leakage current, residual voltage, etc.) according to the test table specifications, and the standardized data entry can be completed without manual intervention. If there is a difference between the two, the system will immediately trigger an abnormality prompt. Possible reasons include internal signal transmission failure of the surge protector, screen display misalignment, or image recognition interference from extreme environments. In this case, manual verification is required.
[0035] Step S13: After the lightning protection device completes the test, the recorder mounted on the testing personnel is automatically turned off, and the location information is bound to the video information of the testing process and uploaded to the cloud server.
[0036] The automatic shutdown of the recorder can be triggered manually by the inspector after completing and confirming the inspection form on the handheld terminal, or it can be automatically determined by the system according to preset logic. When the terminal detects that the core inspection data of the current point has been verified and entered, and there are no unprocessed abnormal prompts, it sends a shutdown command through a stable wireless communication link with the recorder (such as Bluetooth, dedicated short-range radio frequency protocol, etc.). This ensures that the recorder accurately stops recording after the inspection work is truly completed. This avoids redundant video occupying storage space and consuming equipment power due to manual forgetting to shut down, and also ensures the integrity and relevance of video recording, retaining only the effective operation process from the start to the end of the inspection.
[0037] The handheld terminal will deeply associate the location information (including the detection location number, the corresponding surge protector model, installation location, system, etc.) obtained through the unique identification medium in the early stage with the video file generated by the recorder. The core of the association is to establish a unique correspondence - usually using the unique code of the location as the association identifier, embedding it in the metadata of the video file, or establishing an association index containing information such as location code, video storage path, and detection time on the terminal, to ensure that each detection video can be accurately matched with the specific detection location and device.
[0038] Finally, the bound location information and video information will be uploaded to the cloud platform through the communication network between the handheld terminal and the cloud server (4G, 5G or LoRa wireless transmission technologies can be selected to adapt to different scenarios). The cloud server will then classify, store and manage the uploaded data in a structured manner to form electronic inspection files that can be retrieved at any time.
[0039] In summary, the surge protector testing method in the above embodiments of the present invention obtains the location information of the testing point by identifying the unique identifier medium of the testing point; upon receiving a start testing command, the recorder configured on the testing personnel automatically turns on to record the testing process of the surge protector at the testing point; after the surge protector detects data, the raw values on the surge protector detector screen are obtained by the verification personnel through OCR recognition, and if there is no objection to the raw values of the current testing point, the recognized raw values are filled into the preset position of the testing table; after the surge protector testing is completed, the recorder configured on the testing personnel automatically turns off, and the location information and the video information of the testing process are bound together and uploaded to the cloud server. This achieves uninterrupted video recording of the entire testing process, and the video can completely restore key scenarios such as instrument operation, parameter reading, and equipment status. This not only constrains the testing personnel to operate according to standard procedures, but also provides objective evidence for subsequent quality verification and fault tracing, and dual-source verification ensures data authenticity. This solves the problem of difficulty in tracing responsibility for surge protector testing in existing technologies.
[0040] Example 2 This embodiment also proposes a lightning protection detection method. The difference between the lightning protection detection method in this embodiment and the lightning protection detection method in Embodiment 1 is as follows: The steps of controlling the recorder configured on the testing personnel to automatically turn on after receiving the start testing command, so as to record the testing process of the lightning protection device at the testing point by the testing personnel, include: The handheld detection smart terminal and the recorder are paired for communication in order to perform clock calibration on both devices. When the handheld smart terminal is inputting detection data, it automatically generates a data timestamp containing the location identifier, data value, and generation time, and the recorder simultaneously generates a video timestamp containing the recording time. When the handheld smart terminal collects detection data, it sends a tagging command to the recorder so that the recorder can automatically extract video segments within a preset time period at the time of collection and assign data tags, operation tags, and status tags.
[0041] First, basic linkage conditions are established through communication pairing and clock calibration. The handheld terminal and the recorder need to complete secure pairing in advance via Bluetooth, dedicated short-range wireless protocol or NFC to ensure a stable communication link between the two. During the pairing process, the clock calibration program is started simultaneously. Using the high-precision system time of the handheld terminal as a reference, the built-in clock of the recorder is calibrated so that the time error between the two is controlled within the millisecond level. This operation is a prerequisite for subsequent timestamp synchronization and accurate video clip extraction, avoiding data and video mismatch due to time asynchrony, and is especially suitable for the accurate traceability needs in scenarios with multiple devices and high-frequency data acquisition.
[0042] Subsequently, when the handheld terminal inputs test data (such as grounding resistance, leakage current, etc. values identified by OCR or read directly), the system automatically generates a data timestamp containing three core pieces of information. The point identifier corresponds to the test point code identified by the unique medium in the early stage to ensure clear data ownership. The data value is the original test parameter that has been verified and confirmed. The generation time is accurate to milliseconds to record the moment when the data is officially entered. At the same time, the recorder synchronously generates a video timestamp containing the recording time. The recording time is also accurate to milliseconds, and it is based on the same calibrated clock reference as the data timestamp, establishing an initial binding relationship between the two through the time dimension.
[0043] Finally, the video segment extraction and multi-tag assignment mechanism achieves precise and efficient association: After the handheld terminal successfully collects and records the test data, it immediately sends a tagging instruction containing data timestamp information to the recorder. After receiving the instruction, the recorder automatically extracts video segments within a preset time range before and after the data generation time (the preset time can be set according to the test specifications, such as 3 seconds before and 2 seconds after, to ensure complete coverage of the operation preparation before data collection, the reading confirmation at the moment of collection, and the parameter verification process after collection), and automatically assigns three types of tags to the segment: the data tag directly associates the corresponding data value and point identifier, realizing "knowing the corresponding data by watching the video"; the operation tag marks the current test step (such as grounding resistance measurement, leakage current calibration, etc.), which is convenient for subsequent video retrieval by operation type; the status tag provides feedback on the equipment and operation status at the moment of collection (such as normal instrument connection, stable reading, compliant operation, etc., and the abnormality type is marked if there is any abnormality), which helps to quickly screen the segments that need to be checked.
[0044] Additionally, in some optional embodiments of the present invention, before the step of automatically generating a data timestamp containing the location identifier, data value, and generation time when the handheld detection smart terminal inputs detection data, and the recorder simultaneously generating a video timestamp containing the recording time, the method further includes: During the testing process, the handheld testing smart terminal sends a time synchronization data packet to the recorder every preset time interval. The time synchronization data packet contains at least the current UTC time of the handheld testing smart terminal, the time difference of this synchronization, and the random check code generated by the terminal. After the recorder receives the data packet, it compares the recorder's local time with the current UTC time of the handheld detection smart terminal. If the deviation is greater than the threshold, it corrects the local clock and sends a synchronization confirmation signal back to the handheld detection smart terminal.
[0045] Although the handheld detection smart terminal and the recorder have completed clock calibration during pairing, during long-term operation, due to factors such as the natural drift of the device's built-in crystal oscillator, strong electromagnetic interference in high-voltage scenarios, and the decrease in clock accuracy in low-power mode, the local time of the two is prone to gradually deviating. If it is not corrected in time, it will lead to the inaccurate matching of subsequent data timestamps and video timestamps, thereby affecting the effectiveness of the correlation between detection data and operation images.
[0046] Therefore, the handheld terminal actively sends time synchronization data packets to the recorder according to a preset time period (which can be flexibly set according to the detection scenario). The UTC time in the data packet serves as a globally unified absolute time benchmark, ensuring that the two have a unified reference for calibration and avoiding calibration deviations caused by differences in time zones or local time settings. The time difference field records the difference between the terminal's local time and the UTC time, facilitating the recorder to trace historical synchronization trajectories and providing data support for analyzing time drift patterns. The random checksum is used to verify the integrity and authenticity of the data packet transmission process, preventing data from being tampered with or lost in strong electromagnetic environments and ensuring the reliability of synchronization commands. When the recorder receives the data packet, it immediately starts the time comparison program, calculating the difference between its own local time and the UTC time in the data packet at the millisecond level. If the calculation result is greater than the system's preset threshold (usually set to 50 milliseconds, which needs to meet the accuracy requirements of subsequent video segment extraction and data association), it automatically corrects its own local clock based on the UTC time, eliminating time deviations. After calibration, the recorder sends a synchronization confirmation signal to the handheld terminal. Upon receiving the signal, the terminal completes the synchronization loop. If no confirmation signal is received, a retry mechanism is triggered to ensure the synchronization operation is successfully completed. By keeping the time deviation between the handheld terminal and the recorder within an acceptable range, a stable and reliable time basis is provided for the subsequent generation of data timestamps and video timestamps, directly ensuring the accurate correlation between the detection data and the corresponding operation video segments.
[0047] Additionally, in some optional embodiments of the present invention, the step of sending a tagging command to the recorder when the handheld detection smart terminal collects detection data, so that the recorder automatically extracts video segments within a preset time period at the time of collection and assigns data tags, operation tags, and status tags, includes: After the handheld detection smart terminal and the recorder complete the first time synchronization, the handheld detection smart terminal extracts the random check code and the time difference of the synchronization from the synchronization data packet, and the recorder simultaneously retains the random check code and the time difference of the synchronization. The terminal key fragment is obtained by hashing the unique identifier of the handheld detection smart terminal, the random verification code, and the time difference of the synchronization. The recorder key fragment is obtained by hashing the unique identifier of the recorder, the random verification code, and the time difference of the synchronization. The terminal key fragment and the recorder key fragment are concatenated to obtain the session master key; the session master key is updated after each time synchronization is completed, and the corresponding video fragment is encrypted using the session master key.
[0048] After the initial time synchronization is completed, the handheld detection smart terminal and the recorder extract and retain the same random checksum and time difference from the synchronization data packet. These two parameters serve as the core variables for subsequent key generation, ensuring that both parties generate encrypted materials based on the same benchmark. Subsequently, both parties initiate a key fragment generation mechanism. The handheld terminal uses its own unique identifier (such as a hardware serial number to ensure the uniqueness of the terminal's identity), the extracted random checksum, and the time difference as inputs to calculate the terminal key fragment using hash algorithms such as SHA256. The recorder uses its own unique identifier, the same random checksum, and the time difference as inputs to calculate the recorder key fragment using the same hash algorithm. This distributed key generation method based on the unique identifiers and shared parameters of both parties avoids the risk of direct key transmission in the network and ensures that only successfully paired terminals and recorders can generate matching key fragments. Next, the system concatenates the terminal key fragment and the recorder key fragment according to preset rules to form the master key for this session. This master key is unique and time-sensitive, and is only valid for communication content within the current time synchronization period. At the same time, to further enhance security, the system automatically triggers the update of the session master key after each time synchronization (i.e., periodic dynamic calibration). Since the random checksum and time difference are different for each synchronization, the newly generated key fragment will also change accordingly, and the concatenated master key will be updated naturally, realizing a dynamic encryption mechanism of "one key for one synchronization". For example, the concatenation order and insertion interval of key segments can be determined based on the time synchronization deviation value: when the time synchronization deviation value is ≤ a preset minimum deviation threshold, the segments are concatenated in the order of "terminal key segment + preset encryption interval + recorder key segment"; when the time synchronization deviation value is > a preset minimum deviation threshold and ≤ a threshold, the segments are concatenated in the order of "recorder key segment + preset encryption interval + terminal key segment", wherein the preset encryption interval is generated by combining the first 8 bits of the random checksum with the last 4 bits of the time difference. The initial key string after concatenation is then subjected to layered encryption: firstly, AES-25 is used... Algorithm 6 performs a first encryption on the initial key string, with the encryption key being a hash combination of a random checksum and the time difference. Then, it performs an association operation with the unique identifier of the handheld detection smart terminal and the unique identifier of the recorder to generate an intermediate key string. Combining this with the location code corresponding to the unique identifier medium of the detection location, the intermediate key string undergoes a final verification and encryption. The core feature code of the location code is extracted (by concatenating the first 10 bits and the last 6 bits of the location code), and embedded at a designated position in the intermediate key string (the position is dynamically determined by the time synchronization deviation value), generating the final session master key.
[0049] Finally, all video clips captured by the marking command are encrypted using the currently valid session master key before transmission and storage. This ensures that even if the video data is intercepted during transmission, unauthorized parties cannot decrypt and view the content. Only handheld terminals and cloud servers holding the corresponding keys can correctly decrypt the video, thus guaranteeing the confidentiality and integrity of the video during the detection process.
[0050] Furthermore, after the step of encrypting the corresponding video segment using the session master key, the method further includes: For the encrypted video clips, a hash algorithm is used to generate a video encryption hash; The event root hash is generated by taking the hash of the data timestamp, the hash of the video timestamp, and the video encryption hash as input and using the Merkle tree algorithm. The handheld detection smart terminal uses its own RSA private key to digitally sign the event root hash and the corresponding point identifier to generate a signature certificate. The hashes of the data timestamp, the video timestamp, the event root hash, and the signature credential are packaged into an integrity verification package and bound to the encrypted video clip for storage.
[0051] First, a hash algorithm (such as SHA-256) is applied to the encrypted video clip to generate a fixed-length video encryption hash. This hash value is like a digital fingerprint of the video clip. Any slight modification will cause the hash value to change drastically, which can quickly verify the integrity of the encrypted video content. Next, the previously generated data timestamp hash (the result of hashing the data timestamp), video timestamp hash (the result of hashing the video timestamp), and newly generated video encryption hash are used as input. A hash tree structure is constructed using the Merkle tree algorithm to generate the event root hash. The characteristics of the Merkle tree mean that any change in the input hash will cause the root hash to change, thereby realizing the overall verification of the timestamp and the encrypted video content, solving the problem that a single hash is difficult to verify the correlation of multi-source data. Subsequently, the handheld detection smart terminal uses its own exclusive RSA private key to digitally sign the event root hash and the corresponding point identifier, generating a signature certificate containing terminal identity information and encrypted verification information. Due to the asymmetry of the RSA encryption algorithm, only the public key corresponding to the terminal can verify the validity of the signature. This step ensures the uniqueness and non-repudiation of the data source from the identity level, and clarifies the subject that generated the detection data. Finally, the hashes of the data timestamp, video timestamp, event root hash, and signature credential are integrated and packaged into an integrity verification package, which is then bound and stored with the encrypted video clip (it can be temporarily stored on the local terminal and recorder, or simultaneously uploaded to the cloud server). The binding relationship is rigidly associated with the timestamp through point identifiers. Through multi-layered protection of "fragment hash - associated hash tree - identity signature - verification package binding", a complete data authenticity verification chain is formed: whenever data needs to be verified later, the hash value in the verification package can be compared with the recalculated hash, and the signature can be verified using the RSA public key to quickly determine whether the video clip has been tampered with, whether the timestamp matches, and whether the data source is legitimate, completely solving the pain points of "data is easily tampered with and it is difficult to distinguish between true and false" in traditional detection.
[0052] In addition, in some optional embodiments of this method, an "instantaneous phase difference" factor of NFC communication is additionally embedded when generating the signature certificate: When the terminal reads the NFC tag, it simultaneously records the instantaneous phase difference of the radio frequency signal; this instantaneous phase difference is used as an encrypted "data block group identifier"; or, by utilizing the characteristics of NFC near-field electromagnetic coupling, dynamic parameters during communication between the terminal and the NFC tag are collected: RSSI fluctuation characteristics, communication distance threshold, and the dynamic parameters, the previously generated data timestamp hash (the result of hashing the data timestamp), the video timestamp hash (the result of hashing the video timestamp), and the newly generated video encryption hash are used as input, and a hash tree structure is constructed through the Merkle tree algorithm to generate the event root hash.
[0053] In summary, the surge protector testing method in the above embodiments of the present invention obtains the location information of the testing point by identifying the unique identifier medium of the testing point; upon receiving a start testing command, the recorder configured on the testing personnel automatically turns on to record the testing process of the surge protector at the testing point; after the surge protector detects data, the raw values on the surge protector detector screen are obtained by the verification personnel through OCR recognition, and if there is no objection to the raw values of the current testing point, the recognized raw values are filled into the preset position of the testing table; after the surge protector testing is completed, the recorder configured on the testing personnel automatically turns off, and the location information and the video information of the testing process are bound together and uploaded to the cloud server. This achieves uninterrupted video recording of the entire testing process, and the video can completely restore key scenarios such as instrument operation, parameter reading, and equipment status. This not only constrains the testing personnel to operate according to standard procedures, but also provides objective evidence for subsequent quality verification and fault tracing, and dual-source verification ensures data authenticity. This solves the problem of difficulty in tracing responsibility for surge protector testing in existing technologies.
[0054] Example 3 Please see Figure 2 The image shows a lightning protection detection system proposed in the third embodiment of the present invention, applied to a handheld detection smart terminal. The handheld detection smart terminal is connected to a recorder mounted on the inspector and a cloud server, respectively. A unique identification medium is arranged at each detection point. The system includes: The acquisition module 100 is used to acquire the location information of the detection point by identifying the unique identifier medium of the detection point when the detection point is reached. The control module 200 is used to automatically turn on the recorder configured on the testing personnel after receiving the start testing command, so as to record the testing process of the lightning protection device at the testing point by the testing personnel. The detection module 300 is used to communicate and pair with the lightning protection device through a handheld detection smart terminal to obtain the internal raw digital signal, obtain the raw value captured by the verification personnel through OCR recognition on the screen of the lightning protection device detector, and fill the recognized raw value into the preset position of the detection table when the value corresponding to the raw digital signal inside the lightning protection device is consistent with the raw value obtained by recognition on the screen of the lightning protection device detector. The upload module 400 is used to automatically shut down the recorder configured on the testing personnel after the lightning protection device has completed the test, and to upload the point information and the video information of the testing process to the cloud server after binding them together.
[0055] The functions or operation steps implemented by the above modules are largely the same as those in the above method embodiments, and will not be repeated here.
[0056] Example 4 In another aspect, the present invention provides a readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of the method described in any one of Embodiments 1 to 2 above.
[0057] Example 5 In another aspect, the present invention provides an electronic device, the electronic device including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of any one of the methods described in Embodiments 1 to 2 above.
[0058] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0059] Those skilled in the art will understand that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequential list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable storage medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0060] More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable storage media can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0061] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0062] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0063] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A lightning protection detection method, characterized in that, The method, applied to a handheld intelligent inspection terminal, connects to a recorder worn by the inspector and a cloud server, and a unique identification medium is placed at each inspection point. Upon arrival at the detection point, the location information of the detection point is obtained by identifying the unique identifier of the detection point. Upon receiving the start-test command, the recorder mounted on the testing personnel will automatically turn on to record the testing process of the surge protector at the test point. The handheld testing smart terminal communicates and pairs with the lightning protection device to obtain the internal raw digital signal. It then obtains the raw value captured by the calibration personnel through OCR recognition on the screen of the lightning protection device. When the value corresponding to the raw digital signal inside the lightning protection device matches the raw value obtained by recognition on the screen of the lightning protection device, the recognized raw value is filled into the preset position of the test table. Once the lightning protection device has completed its test, the recorder mounted on the testing personnel will automatically shut down and upload the location information and video footage of the testing process to the cloud server.
2. The lightning protection detection method according to claim 1, characterized in that, The steps of obtaining the internal raw digital signal by communicating and pairing with the surge protector via a handheld intelligent terminal, obtaining the raw value captured by the verification personnel through OCR recognition on the surge protector detector screen, and filling the recognized raw value into the preset position of the test table when the value corresponding to the raw digital signal inside the surge protector matches the raw value obtained by recognition on the surge protector detector screen include: The appearance of the surge protector is identified by the image acquisition device of the handheld detection smart terminal. The category of the surge protector is determined by matching it with the pre-stored surge protector screen feature library. The corresponding template is automatically called to select the effective data area of the surge protector and the original value is obtained by identifying the effective data area. When the value corresponding to the original digital signal inside the surge protector matches the original value obtained by identifying the valid data area, the identified original value is filled into the preset position of the test table. When the value corresponding to the original digital signal inside the surge protector is inconsistent with the original value obtained by identifying the valid data area, a manual verification is prompted.
3. The lightning protection detection method according to claim 2, characterized in that, The steps of controlling the recorder configured on the testing personnel to automatically turn on after receiving the start testing command, so as to record the testing process of the lightning protection device at the testing point by the testing personnel, include: The handheld detection smart terminal and the recorder are paired for communication to perform clock calibration on both devices. When the handheld detection smart terminal is inputting detection data, it automatically generates a data timestamp containing the location identifier, data value and generation time, and the recorder simultaneously generates a video timestamp containing the recording time. When the handheld smart terminal collects detection data, it sends a tagging command to the recorder so that the recorder can automatically extract video segments within a preset time period at the time of collection and assign data tags, operation tags, and status tags.
4. The lightning protection detection method according to claim 3, characterized in that, Before the step of automatically generating a data timestamp containing location identifiers, data values, and generation time when the handheld detection smart terminal inputs detection data, and the recorder simultaneously generating a video timestamp containing the recording time, the following steps are also included: During the testing process, the handheld testing smart terminal sends a time synchronization data packet to the recorder every preset time interval. The time synchronization data packet contains at least the current UTC time of the handheld testing smart terminal, the time difference of this synchronization, and the random check code generated by the terminal. After the recorder receives the data packet, it compares the recorder's local time with the current UTC time of the handheld detection smart terminal. If the deviation is greater than the threshold, it corrects the local clock and sends a synchronization confirmation signal back to the handheld detection smart terminal.
5. The lightning protection detection method according to claim 4, characterized in that, The step of sending a tagging command to the recorder when the handheld detection smart terminal collects detection data, so that the recorder automatically extracts video segments within a preset time period at the time of collection and assigns data tags, operation tags, and status tags, includes: After the handheld detection smart terminal and the recorder complete the first time synchronization, the handheld detection smart terminal extracts the random check code and the time difference of the synchronization from the synchronization data packet, and the recorder simultaneously retains the random check code and the time difference of the synchronization. The terminal key fragment is obtained by hashing the unique identifier of the handheld detection smart terminal, the random verification code, and the time difference of the synchronization. The recorder key fragment is obtained by hashing the unique identifier of the recorder, the random verification code, and the time difference of the synchronization. The terminal key fragment and the recorder key fragment are concatenated to obtain the session master key; the session master key is updated after each time synchronization is completed, and the corresponding video fragment is encrypted using the session master key.
6. The lightning protection detection method according to claim 5, characterized in that, Following the step of encrypting the corresponding video segment using the session master key, the method further includes: For the encrypted video clips, a hash algorithm is used to generate a video encryption hash; The event root hash is generated by taking the hash of the data timestamp, the hash of the video timestamp, and the video encryption hash as input and using the Merkle tree algorithm. The handheld detection smart terminal uses its own RSA private key to digitally sign the event root hash and the corresponding point identifier to generate a signature certificate. The hashes of the data timestamp, the video timestamp, the event root hash, and the signature credential are packaged into an integrity verification package and bound to the encrypted video clip for storage.
7. The lightning protection detection method according to claim 1, characterized in that, The method further includes: Before testing, the identities and locations of the testing and verification personnel are verified and identified using a handheld smart testing terminal. If the inspector manually changes the original value entered into the preset position on the inspection form, the system will automatically record the time of the change, the values before and after the change, the corresponding points, and the associated video clips. Once the lightning protection device completes its test, the changed time, previous and subsequent values, corresponding locations, and associated video clips will be uploaded to the cloud server.
8. A lightning protection detection system, characterized in that, The system is applied to handheld inspection smart terminals, which are connected to a recorder worn by the inspection personnel and a cloud server. A unique identification medium is placed at each inspection point. The system includes: The acquisition module is used to obtain the location information of the detection point by identifying the unique identifier medium of the detection point when the detection point is reached. The control module is used to automatically turn on the recorder configured on the inspector when a start inspection command is received, so as to record the inspector's inspection process of the surge protector at the inspection point. The detection module is used to communicate and pair with the surge protector through a handheld detection smart terminal to obtain the internal raw digital signal, obtain the raw value captured by the verification personnel through OCR recognition on the screen of the surge protector detector, and when the value corresponding to the raw digital signal inside the surge protector is consistent with the raw value obtained by recognition on the screen of the surge protector detector, the recognized raw value is filled into the preset position of the test table. The upload module is used to automatically shut down the recorder attached to the testing personnel after the lightning protection device has completed its test, and then bind the location information with the video information of the testing process and upload it to the cloud server.
9. A readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in any one of claims 1 to 7.
10. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor, when executing the program, implements the steps of the method as described in any one of claims 1 to 7.