Non-contact offline data transmission method, system and equipment in power system
By employing a contactless offline data transmission method that uses data fragmentation and animation grouping, the problems of low reliability and fault tolerance in large file transmission under network-free and contactless conditions in power systems are solved, achieving stable and efficient data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-10
AI Technical Summary
In high-security scenarios, existing power system data transmission methods cannot meet the requirements for high reliability and high fault tolerance of large file transmission under network-free and contactless conditions. In particular, QR code encoding transmission methods have limited data capacity and are prone to timeouts or failures.
A contactless offline data transmission method using data segmentation and animation grouping is adopted. The data file is merged and segmented at the encoding end to generate an animation group that matches the scanning end. Data is collected by multiple scanning ends and decoded and restored at the decoding end.
It enables stable transmission of large files without network or contact, improving data transmission speed, reliability, and fault tolerance, and solving the problem of low reliability and fault tolerance in the transmission of large files in existing technologies.
Smart Images

Figure CN121842385A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital image encoding and decoding technology, and more specifically, to a non-contact offline data transmission method, system, and device in a power system. Background Technology
[0002] With the expansion of power system scale and the improvement of intelligence level, the monitoring data of power equipment operation status exhibits characteristics such as massive volume, high dimension, and strong time-series correlation. In order to maintain and monitor the operation status of the power system, it is necessary to collect power system operation data in a controlled network environment. Existing data acquisition methods in controlled network environments typically employ wired or wireless network transmission (such as data transmission via USB, WiFi, Bluetooth, or internal private networks), QR code encoding transmission, and transmission via mobile media (USB flash drive).
[0003] However, in high-security scenarios, the use of networks or external devices is usually prohibited, rendering traditional network transmission methods unusable. For example, when acquiring power system operation data from grid customers, grid organizations have requirements for contactless and offline data transmission, necessitating data transfer without a network or physical contact. Furthermore, existing QR code encoding methods suffer from limited data capacity, making it difficult to effectively handle medium to large files. For large files, scanning also presents challenges, including long scanning times and the risk of timeouts or failures. Therefore, there is an urgent need for a highly reliable and fault-tolerant large file transfer solution that operates without a network or physical contact. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a non-contact offline data transmission method, system and device in a power system to overcome at least one of the above-mentioned defects.
[0005] In a first aspect, embodiments of this application provide a contactless offline data transmission method for a power system, applied to a contactless offline data transmission system in a power system. The contactless offline data transmission system in the power system includes an encoding end, multiple scanning ends, and a decoding end, comprising: Multiple data files of different types are acquired at the encoding end, and the multiple data files are merged to obtain a merged data file. The multiple data files are generated based on data collected on-site in the power system engineering project. The merged data file is segmented to obtain multiple animation groups that match the sampling frequency of the scanning end and the display refresh rate of the encoding end. The number of multiple animation groups corresponds to the number of multiple scanning ends. Each animation group includes multiple consecutive animation frames, and each animation frame includes a visual code used to represent frame information. Using multiple scanning terminals, data is collected from the visual codes in each animation group, and the collected data for each animation group is obtained. The target transmission data determined based on the collected data is then sent to the decoding terminal. Each scanning terminal collects data for one animation group. On the decoding end, the target transmission data sent by different scanning ends is decoded to restore multiple data files.
[0006] Optionally, the step of segmenting the merged data file to obtain multiple animation groups that match the sampling frequency of the scanning terminal and the display refresh rate of the encoding terminal includes: segmenting the merged data file based on the number of scanning terminals and the size of the merged data file to obtain multiple segmented data; encoding each segmented data using a redundant encoding method to obtain the animation group corresponding to the segmented data that matches the sampling frequency of the scanning terminal and the display refresh rate of the encoding terminal, and setting a corresponding animation group identifier for each animation group.
[0007] Optionally, the step of encoding each data segment using redundant encoding to obtain an animation group corresponding to that data segment that matches the sampling frequency of the scanning end and the display refresh rate of the encoding end includes: at the encoding end, determining the frame rate matching relationship among the display refresh rate of the encoding end, the animation frame rate of the animation group, and the sampling frame rate of the scanning end; determining the animation frame rate of each animation group based on the frame rate matching relationship, so as to generate the animation group based on the animation frame rate; wherein, the frame rate matching relationship includes an integer multiple relationship between the animation frame rate and the sampling frame rate, and the animation frame rate being less than half of the display refresh rate.
[0008] Optionally, the collected data includes visual codes. After using multiple scanning terminals to collect data from the visual codes in each animation group, the process further includes: after collecting the visual codes in each animation frame, performing image restoration and local decoding on the visual codes to obtain parsed data; and determining the target transmission data based on the collected data in the following ways: either using the visual codes directly as the target transmission data, or using the parsed data as the target transmission data.
[0009] Optionally, the target transmitted data is parsed data, which includes frame data and animation group identifiers. At the decoding end, the steps of decoding the target transmitted data sent by different scanning ends to restore multiple data files include: at the decoding end, decoding the frame data in the target transmitted data to obtain fragmented data; combining multiple fragmented data together according to the animation group identifiers to obtain a compressed and encrypted merged data file; and decrypting and decompressing the compressed and encrypted merged data file to restore multiple data files.
[0010] Optionally, the target transmission data also includes the end identifier of the encoding end. Multiple fragment data are combined together according to the animation group identifier to obtain a compressed and encrypted merged data file. This includes: when the decoding end receives multiple target transmission data from different encoding ends, the multiple target transmission data are grouped according to the end identifier to combine the fragment data corresponding to the target transmission data in the same group together.
[0011] Optionally, the target transmission data is a visual code. At the decoding end, the steps of decoding the target transmission data sent by different scanning ends to restore multiple data files include: performing image restoration, decoding and parsing processing on the visual code to obtain parsed data, and restoring multiple data files based on the parsed data.
[0012] Optionally, the step of merging multiple data files to obtain a merged data file includes: sequentially merging, compressing, and encrypting the multiple data files to obtain a compressed and encrypted merged data file.
[0013] Secondly, this application also provides a contactless offline data transmission system in a power system, which includes an encoding end, multiple scanning ends, and a decoding end. The encoding end is used to acquire multiple data files of different types, merge the multiple data files to obtain a merged data file. The multiple data files are generated based on data collected on-site in power system engineering projects. The merged data file is segmented to obtain multiple animation groups that match the sampling frequency of the scanning end and the display refresh rate of the encoding end. The number of multiple animation groups corresponds to the number of multiple scanning ends. Each animation group includes multiple consecutive animation frames, and each animation frame includes a visual code used to represent frame information. Multiple scanning terminals are used to collect data from the visual codes in each animation group, obtain the collected data of each animation group, and send the target transmission data determined based on the collected data to the decoding terminal. Each scanning terminal collects data for one animation group. The decoding end is used to decode the target transmission data sent by different scanning ends in order to restore multiple data files.
[0014] Thirdly, embodiments of this application also provide an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the contactless offline data transmission method in the power system described above are performed.
[0015] The embodiments of this application bring the following beneficial effects: This application provides a contactless offline data transmission method, system, and device for power systems. This method enables stable transmission of large files under network-free and contactless conditions through data fragmentation, animation grouping, and multi-terminal collaborative data acquisition. It not only improves data transmission speed but also enhances data transmission reliability and fault tolerance. Compared with existing contactless offline data transmission methods in power systems, this method solves the problem of low reliability and fault tolerance in large file transmission under network-free and contactless conditions.
[0016] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 A flowchart of a non-contact offline data transmission method in a power system provided in an embodiment of this application is shown; Figure 2 A flowchart illustrating the processing steps of the encoding end provided in the embodiments of this application is shown; Figure 3 A flowchart illustrating the processing steps of the barcode scanning terminal provided in the embodiments of this application is shown; Figure 4 A flowchart illustrating the processing steps of the decoding end provided in the embodiments of this application is shown; Figure 5 A schematic diagram of the structure of the contactless offline data transmission device in the power system provided in the embodiment of this application is shown; Figure 6 A schematic diagram of the structure of the electronic device provided in the embodiments of this application is shown. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. Based on the embodiments of this application, every other embodiment obtained by those skilled in the art without inventive effort falls within the scope of protection of this application.
[0020] Please see Figure 1 , Figure 1 This is a flowchart illustrating a non-contact offline data transmission method in a power system, as provided in an embodiment of this application. Figure 1 As shown in the embodiments of this application, the non-contact offline data transmission method in a power system includes: Step S101: Obtain multiple data files of different types at the encoding end, merge the multiple data files to obtain a merged data file.
[0021] Non-contact offline data transmission refers to a data transmission method where there is no physical contact between the encoding end and the scanning end, and the data is transmitted offline. When acquiring power system operation data from power grid customers, power grid organizations have set requirements for non-contact and offline data transmission, which necessitates data transmission under conditions of no network and no physical contact.
[0022] The encoding end can be a server in a substation or power supply bureau used to store power system operation data.
[0023] The encoding end obtains multiple data files of different types from power system equipment. These multiple data files are generated based on data collected on-site in power system engineering projects. The different types of multiple data files include, but are not limited to: document files, database files, compressed files, and image files.
[0024] After acquiring multiple data files of different types, the encoding end automatically performs file merging, compression, and encryption on the multiple data files of different types to generate a merged data file.
[0025] Step S102: The merged data file is segmented to obtain multiple animation groups that match the sampling frequency of the scanning end and the display refresh rate of the encoding end.
[0026] After generating the merged data file, the encoding end splits the merged data file into multiple data segments. Then, based on the sampling frequency of the scanning end and the display refresh rate of the encoding end, the animation frame rate of the animation group is determined, and the animation group corresponding to each data segment is generated according to the animation frame rate.
[0027] The number of animation groups corresponds to the number of scanning terminals. The number of scanning terminals determines the number of data segments and the number of animation groups. For example, if there are five scanning terminals, then five data segments will be obtained. Each data segment corresponds to one animation group. Each animation group includes multiple consecutive animation frames. Each animation frame includes a visual code used to represent frame information. As an example, the visual code can be a QR code with colored icons. Compared with traditional QR codes, QR codes with colored icons can carry more information.
[0028] After generating multiple animation groups, the encoding end will display these animation groups on the screen for the scanning end to collect data.
[0029] Step S103: Using multiple scanning terminals, data is collected from the visual codes in each animation group to obtain the collected data for each animation group, and the target transmission data determined based on the collected data is sent to the decoding terminal.
[0030] Using multiple scanning devices to collect data from multiple animation groups not only improves file transfer efficiency but also reduces data transmission error rates and enhances data transmission stability. Each scanning device collects data from only one animation group, which consists of multiple consecutive animation frames. The scanning device essentially collects data from all visual codes within that animation group.
[0031] When collecting data from multiple animation groups, the data collection and transmission processes between different scanning terminals are independent and do not affect each other. Multiple scanning terminals can collect data simultaneously or sequentially according to a timeline.
[0032] After each scanning terminal collects data, the target data processing method can be determined based on the device information of the scanning terminal. The collected data is then processed according to the target data processing method to determine the target transmission data, and the target transmission data is sent to the decoding terminal.
[0033] Step S104: At the decoding end, the target transmission data sent by different scanning ends is decoded to restore multiple data files.
[0034] The decoding end receives target transmission data sent from different scanning ends, decodes each target transmission data to obtain fragmented data, then merges multiple fragmented data to obtain a merged data file, and then parses the merged data file to obtain multiple data files of different types.
[0035] The contactless offline data transmission method in the power system provided in this application embodiment can stably transmit large files under network-free and contactless conditions through data fragmentation, animation grouping, and multi-terminal collaborative data acquisition. This not only improves the data transmission speed but also enhances the reliability and fault tolerance of data transmission, solving the problem of low reliability and fault tolerance in large file transmission under network-free and contactless conditions.
[0036] To facilitate understanding of this embodiment, the following description uses the application of the non-contact offline data transmission method in a power system provided in this application embodiment to illustrate the exemplary steps provided above. The non-contact offline data transmission system in the power system includes an encoding end, multiple scanning ends, and a decoding end.
[0037] The following reference Figure 2 Let's introduce the processing procedure at the encoding end.
[0038] Figure 2 A flowchart illustrating the processing steps of the encoding end provided in the embodiments of this application is shown, such as... Figure 2 As shown, the processing steps at the encoding end include: Step S201: Merge multiple data files to obtain a merged data file.
[0039] Different types of data files constitute a file set. The file set is then merged, compressed, and encrypted in sequence to obtain a compressed and encrypted merged data file.
[0040] At the same time, the encoded segment will automatically generate a 4-bit Base32 encoded random number, which can be called the transmission success code. This transmission success code will be merged and processed together with multiple data files.
[0041] Step S202: The merged data file is split into multiple animation groups.
[0042] After the encoding end generates the merged data file, the number of fragments is determined based on the number of scanning ends and the size of the merged data file. The merged data file is then fragmented according to the determined number of fragments to obtain multiple fragmented data. For example, the optimal range of data transmitted by each scanning end is 0.5MB to 1MB. If the number of scanning ends is 12 and the size of the merged data file is 5MB, then the number of fragments can be determined to be 10; if the number of scanning ends is 5 and the size of the merged data file is 5MB, then the number of fragments can be determined to be 5.
[0043] Step S203: Encode each data segment to obtain the animation group corresponding to that data segment.
[0044] Each data segment is encoded using a redundant encoding method (such as fountain coding) to obtain the corresponding animation group, and a corresponding animation group identifier is set for each animation group.
[0045] The animation groups are independent of each other. Each animation group is a sequence of animation frames. Each animation group includes dozens to hundreds of consecutive animation frames. Each animation frame includes a visual code to represent frame information. The visual code records the frame header index, timestamp, check information and specific fragment data.
[0046] In one embodiment, to avoid frame skipping when collecting data at the scanning terminal and to improve the data collection success rate, animation groups can be generated according to the optimal animation frame rate.
[0047] On the encoding side, the frame rate matching relationship among the display refresh rate of the encoding side, the animation frame rate of the animation group, and the sampling frame rate of the scanning side is determined. This frame rate matching relationship includes the animation frame rate and the sampling frame rate being integer multiples of each other, and the animation frame rate being less than half of the display refresh rate. For example, if the display refresh rate of the encoding side is 60Hz and the sampling frame rate of the scanning side is 60fps, then the optimal animation frame rate is 30fps.
[0048] In this way, based on the display refresh rate of the encoding end and the sampling frame rate of the scanning end, the animation frame rate of each animation group can be determined by using the frame rate matching relationship, so as to generate an animation group that matches the sampling frequency of the scanning end and the display refresh rate of the encoding end according to the animation frame rate.
[0049] After the encoding end generates the animation groups, all animation groups are displayed for multiple scanning terminals to collect data. Depending on the device's performance, each scanning terminal has two working modes, which are described below. Figure 3 This section will introduce the processing procedures of the scanning terminal under different working modes.
[0050] Figure 3 A flowchart illustrating the processing steps of the scanning terminal provided in this application embodiment is shown, as follows: Figure 3As shown, the processing steps at the scanning end include: Step S301: Use each scanning terminal to collect data from the visual codes in an animation group to obtain the collected data.
[0051] Each scanning terminal collects data from the visual codes in an animation group to obtain the collected data, which includes the visual codes.
[0052] Step S302: Determine the target transmission data based on the collected data.
[0053] The scanning terminal has two working modes: the first working mode and the second working mode.
[0054] In the first working mode, the scanning terminal is only responsible for collecting the visual code and directly transmitting the collected visual code as the target data. In the first working mode, the scanning terminal does not perform data decoding and parsing processing.
[0055] In the second working mode, after the scanning terminal collects the visual code of each frame, it performs image restoration and local decoding on the visual code to obtain parsed data, which is then used as the target transmission data. The parsed data includes the frame data corresponding to the animation frame and identification information. The identification information includes the encoder identifier of the encoding terminal to which the data packet belongs (i.e., which encoding terminal the data packet comes from), the segment identifier of the segment to which it belongs, and the animation group identifier.
[0056] Step S303: Send the target transmission data to the decoding end.
[0057] In the first operating mode, the target transmission data also includes the scanner identifier. The scanner will send the scanner identifier and the visual code together as target transmission data to the decoder in the form of a video stream. After sending the target transmission data to the decoder, the scanner waits for a notification message from the decoder and automatically stops scanning upon receiving the notification message.
[0058] In the second operating mode, the target transmission data also includes the scanner identifier. The scanner will send the scanner identifier along with the parsed data as the target transmission data to the decoder. In the second operating mode, the scanner automatically stops scanning after the scanning task is completed.
[0059] The decoding end receives target transmission data sent from different scanning ends, and decodes the target transmission data sent from different scanning ends according to the type of target transmission data, so as to restore multiple data files.
[0060] The following reference Figure 4 Let's introduce the processing procedure at the decoding end.
[0061] Figure 4 A flowchart illustrating the processing steps of the decoding end provided in the embodiments of this application is shown, as follows: Figure 4 As shown, the processing steps at the decoding end include: Step S401: Decode the frame data in the target transmission data to obtain fragmented data.
[0062] In the first scenario, if the target transmission data received by the decoding end is a video stream, then image restoration, real-time decoding, and data parsing are performed on the visual codes in the video stream to obtain parsed data. The parsed data includes segmented data (including multiple frame data) and recognition information. When it is detected that the target transmission data of the corresponding scanning end has been completely received and parsed, the decoding end sends a notification message to that scanning end to indicate the completion of parsing. Then, the multiple frame data in the parsed data are aggregated according to the frame header index and segment identifier to obtain the segmented data corresponding to a single animation frame.
[0063] In the second scenario, if the target transmission data received by the decoding end is parsed data, then multiple frame data in the parsed data are aggregated according to the frame header index and the fragment identifier to obtain the fragment data corresponding to a single animation frame.
[0064] Step S402: Combine multiple data segments according to the animation group identifier to obtain a compressed and encrypted merged data file.
[0065] The data fragments are sorted and concatenated according to the identification information to generate a compressed and encrypted merged data file.
[0066] In one embodiment, the target transmission data further includes an end identifier of the encoding end. When the decoding end receives multiple target transmission data from different encoding ends, it groups the multiple target transmission data according to the end identifier to combine the fragment data corresponding to the target transmission data in the same group together.
[0067] Step S403: Decrypt and decompress the merged data file after compression and encryption to restore multiple data files.
[0068] The process involves decrypting and decompressing multiple merged data files that have been compressed and encrypted to restore the different types of data files obtained from the encoding end.
[0069] Simultaneously, the decoder also parses the transmission success code generated by the encoder. Each time the decoder parses a transmission success code corresponding to an encoder, it sends the parsed code to the corresponding scanner, allowing the scanner to receive and display the code. The user can then input this transmission success code into the encoder. The encoder verifies the input code, and upon successful verification, stops playing the animation group and automatically deletes the corresponding animation group and its segment data, thus completing the entire data transmission process.
[0070] Based on the same inventive concept, this application also provides a contactless offline data transmission device in a power system, which corresponds to the contactless offline data transmission method in a power system. Since the principle of the device in this application is similar to the contactless offline data transmission method in a power system described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0071] Please see Figure 5 , Figure 5 This is a schematic diagram of a contactless offline data transmission system in a power system, provided as an embodiment of this application. Figure 5 As shown, the contactless offline data transmission system 500 in the power system includes an encoding terminal 501, multiple scanning terminals 502, and a decoding terminal 503; Encoding end 501 is used to acquire multiple data files of different types, merge the multiple data files to obtain a merged data file. The multiple data files are generated based on data collected on-site in power system engineering. The merged data file is segmented to obtain multiple animation groups that match the sampling frequency of the barcode scanner 502 and the display refresh rate of the encoder 501. The number of multiple animation groups corresponds to the number of multiple barcode scanners 502. Each animation group includes multiple consecutive animation frames, and each animation frame includes a visual code used to represent frame information. Multiple scanning terminals 502 are used to collect data from the visual codes in each animation group, obtain the collected data of each animation group, and send the target transmission data determined based on the collected data to the decoding terminal 503. Each scanning terminal 502 collects data for one animation group. The decoding end 503 is used to decode the target transmission data sent by different scanning ends in order to restore multiple data files.
[0072] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
[0073] The memory 620 stores machine-readable instructions executable by the processor 610. When the electronic device 600 is running, the processor 610 and the memory 620 communicate via the bus 630. When the machine-readable instructions are executed by the processor 610, they can perform the operations described above. Figure 1 The steps of the non-contact offline data transmission method in the power system shown in the method embodiment can be found in the method embodiment for specific implementation, and will not be repeated here.
[0074] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the above-described actions. Figure 1 The steps of the non-contact offline data transmission method in the power system shown in the method embodiment can be found in the method embodiment for specific implementation, and will not be repeated here.
[0075] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0076] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0077] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0078] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0079] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0080] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A non-contact offline data transmission method in a power system, characterized in that, A contactless offline data transmission system applied in a power system, the contactless offline data transmission system in the power system including an encoding end, multiple scanning ends, and a decoding end, the method including: Multiple data files of different types are acquired at the encoding end, and the multiple data files are merged to obtain a merged data file. The multiple data files are generated based on data collected on-site in power system engineering projects. The merged data file is segmented to obtain multiple animation groups that match the sampling frequency of the scanning terminal and the display refresh rate of the encoding terminal. The number of the multiple animation groups corresponds to the number of the multiple scanning terminals. Each animation group includes multiple consecutive animation frames, and each animation frame includes a visual code for representing frame information. Using the multiple scanning terminals, data is collected from the visual codes in each animation group to obtain the collected data for each animation group. The target transmission data determined based on the collected data is then sent to the decoding terminal. Each scanning terminal collects data for one animation group. At the decoding end, the target transmission data sent by different scanning ends is decoded to restore the multiple data files.
2. The method according to claim 1, characterized in that, The step of segmenting the merged data file to obtain multiple animation groups that match the sampling frequency of the scanning terminal and the display refresh rate of the encoding terminal includes: Based on the number of scanning terminals and the size of the merged data file, the merged data file is split into multiple data segments. Each data segment is encoded using a redundant encoding method to obtain an animation group that matches the sampling frequency of the scanning terminal and the display refresh rate of the encoding terminal. A corresponding animation group identifier is then set for each animation group.
3. The method according to claim 2, characterized in that, The step of encoding each data segment using redundant encoding to obtain an animation group corresponding to that data segment that matches the sampling frequency of the scanning end and the display refresh rate of the encoding end includes: At the encoding end, the frame rate matching relationship among the display refresh rate of the encoding end, the animation frame rate of the animation group, and the sampling frame rate of the scanning end is determined; Based on the frame rate matching relationship, the animation frame rate of each animation group is determined, so as to generate the animation group according to the animation frame rate; The frame rate matching relationship includes an integer multiple relationship between the animation frame rate and the sampling frame rate, and the animation frame rate being less than half of the display refresh rate.
4. The method according to claim 1, characterized in that, The collected data includes visual codes. After collecting data from the visual codes in each animation group using the multiple scanning terminals to obtain the collected data for each animation group, the process further includes: After capturing the visual code in each animation frame, the visual code is subjected to image restoration and local decoding to obtain parsed data. The target transmission data is determined based on the collected data using the following methods: The visual code can be directly used as the target data for transmission, or the parsed data can be used as the target data for transmission.
5. The method according to claim 4, characterized in that, The target transmission data is parsed data, which includes frame data and animation group identifiers. The step of decoding the target transmission data sent by different scanning terminals at the decoding end to reconstruct the multiple data files includes: At the decoding end, the frame data in the target transmission data is decoded to obtain fragmented data; Multiple data segments are combined together according to the animation group identifier to obtain a compressed and encrypted merged data file. The compressed and encrypted merged data file is decrypted and decompressed to restore the multiple data files.
6. The method according to claim 5, characterized in that, The target transmission data also includes the end identifier of the encoding end. The step of combining multiple data segments according to the animation group identifier to obtain a compressed and encrypted merged data file includes: When the decoding end receives multiple target transmission data from different encoding ends, the multiple target transmission data are grouped according to the end identifier so as to combine the fragment data corresponding to the target transmission data in the same group together.
7. The method according to claim 4, characterized in that, The target transmission data is a visual code. The step of decoding the target transmission data sent by different scanning terminals at the decoding end to reconstruct the multiple data files includes: The visual code is subjected to image restoration, decoding, and parsing processes to obtain parsed data, and multiple data files are reconstructed based on the parsed data.
8. The method according to claim 1, characterized in that, The step of merging the multiple data files to obtain a merged data file includes: The multiple data files are sequentially merged, compressed, and encrypted to obtain a compressed and encrypted merged data file.
9. A contactless offline data transmission system in a power system, characterized in that, The contactless offline data transmission system in the power system includes an encoding end, multiple scanning ends, and a decoding end; The encoding end is used to acquire multiple data files of different types, merge the multiple data files to obtain a merged data file, and the multiple data files are generated based on data collected on the power system engineering site. The merged data file is segmented to obtain multiple animation groups that match the sampling frequency of the scanning terminal and the display refresh rate of the encoding terminal. The number of the multiple animation groups corresponds to the number of the multiple scanning terminals. Each animation group includes multiple consecutive animation frames, and each animation frame includes a visual code for representing frame information. The multiple scanning terminals are used to collect data from the visual codes in each animation group, obtain the collected data of each animation group, and send the target transmission data determined based on the collected data to the decoding terminal. Each scanning terminal collects data for one animation group. The decoding end is used to decode the target transmission data sent by different scanning ends in order to restore the multiple data files.
10. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the contactless offline data transmission method in a power system as claimed in any one of claims 1 to 8.