Isolation channel data transmission method and device based on built-in WiFi
By establishing an isolated channel based on built-in WiFi between the host and the controlled host, two-way data communication is achieved using Probe Response and Probe Request frames, the problem that the device cannot establish a complete connection with the external network but still needs efficient data interaction, and efficient, hidden and reliable data transmission is achieved.
Patent Information
- Application Number
- CN202510203803.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-05-06
AI Technical Summary
In complex and high security requirements scenarios, devices cannot establish a complete WiFi connection with the external Internet or LAN, but they still need to achieve efficient data interaction with the external control end.
By establishing an isolated channel based on built-in WiFi between the host and the controlled host, two-way data communication is achieved using Probe Response and Probe Request frames, and even efficient, hidden and bidirectional data transmission is completed without establishing a complete WiFi connection.
It realizes efficient, hidden and reliable two-way data transmission and control in complex and high security scenarios, avoiding the need for complete connections to external networks.
Smart Images

Figure CN119946618A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of WiFi communication data processing, and in particular to an isolation channel data transmission method and device based on built-in WiFi. Background Art
[0002] With the rapid development of information technology, WiFi technology has been widely used in various devices, including computers, servers, industrial equipment, and IoT terminal devices. Most modern devices have built-in WiFi modules for data transmission, remote control, and system updates. However, in complex and high-security scenarios (such as security audits, industrial control systems, remote maintenance of medical equipment, etc.), the device may be in a network isolation environment, that is, it is impossible to establish a complete WiFi connection with the external Internet or local area network, but it is still necessary to achieve efficient data interaction with the external control terminal. Therefore, in an isolated network environment, how to use the device's own WiFi module to establish an efficient, hidden, and bidirectional data transmission channel without establishing a complete WiFi connection with a wired network or wireless LAN and without explicit perception of the target device is a core problem that current technology urgently needs to solve. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide an isolated channel data transmission method and device based on built-in WiFi, which can establish an efficient, concealed, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, concealed and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0004] In order to solve the above technical problems, the first aspect of the embodiment of the present invention discloses an isolation channel data transmission method based on built-in WiFi, the method is implemented based on a master host and a controlled host, the master host and the controlled host are both equipped with built-in WiFi, the method includes:
[0005] S1, obtain the command frame information;
[0006] S2, processing the instruction issuing frame information to obtain execution result feedback frame information;
[0007] S3, processing the execution result feedback frame information to obtain target result information.
[0008] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the instruction issuing frame information to obtain the execution result feedback frame information includes:
[0009] S21, using the master host, sending the command frame information to the controlled host;
[0010] S22, the controlled host processes the instruction issuing frame information to obtain execution result feedback frame information.
[0011] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the controlled host processes the instruction issuing frame information to obtain the execution result feedback frame information, including:
[0012] S221, parsing the command issuing frame information to obtain command information;
[0013] S222, executing the instruction information to obtain execution result information;
[0014] S223, obtaining the WiFi signal strength value, WiFi channel bandwidth value and maximum fragment size value of the controlled host;
[0015] S224, processing the execution result information, the WiFi signal strength value, and the WiFi channel bandwidth value to obtain execution result compression information and a WiFi bandwidth value;
[0016] S225, processing the execution result compression information, the WiFi signal strength value, the WiFi bandwidth value, and the maximum fragment size value to obtain execution result feedback frame information.
[0017] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the execution result information, the WiFi signal strength value, and the WiFi channel bandwidth value to obtain the execution result compression information and the WiFi bandwidth value includes:
[0018] S2241, using a built-in WiFi bandwidth calculation model, calculating and processing the WiFi signal strength value and the WiFi channel bandwidth value to obtain a WiFi bandwidth value;
[0019] The built-in WiFi bandwidth calculation model is:
[0020]
[0021] Wherein, DK is the WiFi bandwidth value, XD is the WiFi channel bandwidth value, XH is the WiFi signal strength value, ZS is the noise power density value, ∈ is the environmental noise density value, and ρ is the bandwidth efficiency factor;
[0022] S2242, obtaining compression model information; the compression model information includes first compression model information, second compression model information and third compression model information;
[0023] S2243, using a compression calculation model, calculating and processing the execution result information and the WiFi bandwidth value to obtain data transmission time information; the data transmission time information includes a first data transmission time value, a second data transmission time value, and a third data transmission time value;
[0024] Wherein, the compression calculation model is:
[0025]
[0026] 1≤i≤3 and i is a positive integer;
[0027] WYS+WYSM=1;
[0028] 0≤WYS,WYSM≤1;
[0029] Wherein, T1, T2 and T3 are respectively the first data transmission time value, the second data transmission time value and the third data transmission time value, YS1, YS2 and YS3 are respectively the compression rates corresponding to the first compression model information, the second compression model information and the third compression model information, YSM1, YSM2 and YSM3 are respectively the compression ratios corresponding to the first compression model information, the second compression model information and the third compression model information, ZX is the data packet size corresponding to the execution result information, WF is the WiFi bandwidth value, WYS is the first weight parameter, WYSM is the second weight parameter, PRO, BIN and LAT are the obtained transmission protocol efficiency value, the number of concurrent connections and the network delay value;
[0030] S2244: Process the execution result information, the compression model information and the data transmission time information to obtain execution result compression information.
[0031] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the execution result information, the compression model information and the data transmission time information to obtain the execution result compression information includes:
[0032] S22441, determining whether the first data transmission time value is less than the second data transmission time value, and obtaining a first determination result;
[0033] When the first judgment result is yes, determining whether the first data transmission time value is less than the third data transmission time value, and obtaining a second judgment result;
[0034] When the second judgment result is yes, determining that the first compression model information is data compression model information;
[0035] When the second judgment result is no, determining that the third compression model information is the data compression model information;
[0036] When the first judgment result is no, judging whether the second data transmission time value is less than the third data transmission time value, and obtaining a third judgment result;
[0037] When the third judgment result is yes, determining that the second compression model information is the data compression model information;
[0038] When the third judgment result is no, it is determined that the third compression model information is the data compression model information.
[0039] S22442: Utilize the data compression model information to compress the execution result information to obtain compressed execution result information.
[0040] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the execution result compression information, the WiFi signal strength value, the WiFi bandwidth value, and the maximum fragment size value to obtain the execution result feedback frame information includes:
[0041] S2251, obtaining the WiFi packet loss rate at the current moment;
[0042] S2252, calculating and processing the WiFi signal strength value, the WiFi bandwidth value, the maximum fragment size value, and the WiFi packet loss rate to obtain a data packet fragment size value;
[0043] S2253, determining whether the data packet size corresponding to the compressed information of the execution result is greater than the data packet fragment size value, and obtaining a fourth determination result;
[0044] When the fourth judgment result is yes, the execution result compression information is fragmented using the data packet fragment size value to obtain execution result fragment information;
[0045] When the fourth judgment result is no, determining that the execution result compression information is the execution result fragmentation information;
[0046] S2254: Process the execution result fragment information to obtain execution result feedback frame information.
[0047] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the execution result feedback frame information to obtain the target result information includes:
[0048] S31, using the controlled host, sending the execution result feedback frame information to the master host;
[0049] S32, the master control host processes the execution result feedback frame information to obtain target result information.
[0050] A second aspect of an embodiment of the present invention discloses an isolation channel data transmission device based on built-in WiFi, the device comprising:
[0051] An acquisition module is used to obtain the command issuing frame information;
[0052] A first processing module is used to process the instruction issuing frame information to obtain execution result feedback frame information;
[0053] The second processing module is used to process the execution result feedback frame information to obtain target result information.
[0054] A third aspect of an embodiment of the present invention discloses another isolated channel data transmission device based on built-in WiFi, the device comprising:
[0055] processor;
[0056] a memory coupled to the processor and storing executable program code;
[0057] The processor calls the executable program code stored in the memory to execute part or all of the steps of the isolation channel data transmission method based on built-in WiFi disclosed in the first aspect of the embodiment of the present invention.
[0058] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all steps of the isolation channel data transmission method based on built-in WiFi disclosed in the first aspect of the embodiment of the present invention.
[0059] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0060] In an embodiment of the present invention, the method is implemented based on a master host and a controlled host, and both the master host and the controlled host are equipped with built-in WiFi, and the method includes: obtaining instruction frame information; processing the instruction frame information to obtain execution result feedback frame information; processing the execution result feedback frame information to obtain target result information. It can be seen that this embodiment can establish an efficient, concealed, and bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, concealed, and reliable bidirectional data transmission and control in complex and high-security scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0062] Figure 1 A flowchart of a method for transmitting data through an isolated channel based on built-in WiFi disclosed in an embodiment of the present invention;
[0063] Figure 2 This is a structural schematic diagram of an isolation channel data transmission device based on built-in WiFi disclosed in an embodiment of the present invention;
[0064] Figure 3 This is a schematic structural diagram of another isolated channel data transmission device based on built-in WiFi disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0065] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.
[0067] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0068] In the present invention, the built-in WiFi is a built-in WiFi module in the master host and the controlled host; the master host and the controlled host can be a laptop, a desktop computer, an industrial computer, a mobile terminal device (such as a tablet computer), an embedded device, etc., and the specific details are not limited in the present invention; the master host and the controlled host are both provided with a built-in WiFi module; the isolation channel means that a complete WiFi data connection is not established between the master host and the controlled host, and only the Probe Response frame and the Probe Request frame in the WiFi are used to realize two-way data communication; in the present invention, the format of all data sent by the master to the controlled end conforms to the Probe Response frame format, but a part of the custom format is added to the variable-length challenge text field (Challenge text), and the format of all data sent by the controlled end to the master conforms to the Probe Request frame format, and a part of the custom format is also added to the variable-length challenge text field (Challenge text), so a complete WiFi connection is not established in both directions.
[0069] The present invention discloses an isolated channel data transmission method and device based on built-in WiFi, which can establish an efficient, concealed, bidirectional data transmission channel without establishing a complete WiFi connection, and is conducive to realizing efficient, concealed and reliable bidirectional data transmission and control in complex and high-security scenarios. The following are detailed descriptions.
[0070] Embodiment 1
[0071] See also Figure 1 , Figure 1 1 is a flow chart of a method for transmitting data through an isolated channel based on built-in WiFi disclosed in an embodiment of the present invention. Figure 1 The described isolation channel data transmission method based on built-in WiFi is applied to an isolation channel data transmission device based on built-in WiFi, such as a local server or cloud server for optimizing and managing isolation channel data transmission based on built-in WiFi, and the embodiments of the present invention are not limited thereto. Figure 1 As shown, the isolation channel data transmission method based on built-in WiFi is implemented based on the master host and the controlled host. Both the master host and the controlled host are equipped with built-in WiFi. The method may include the following operations:
[0072] It should be noted that the main function of the controlled host is to control the WiFi network establishment and interaction process through the built-in WiFi module. It does not establish a complete connection, but uses some regular frame fields (supports longer information filling) to send information that needs to be interacted; the main function of the master host is to approach the controlled host and establish a Wi-Fi hotspot network with a special prefix name (for example, d i3r7D_iXXX, XXX is a variable serial number), interact with the controlled host, issue control instructions, and collect execution results.
[0073] The master host sends a Beacon message, and the controlled host sends a Probe Request message (equivalent to notifying each other that they can communicate); then the master host sends a Probe Response message with instructions, and the controlled host sends a ProbeRequest message, and repeats the process to complete the two-way communication of data. It can be seen that due to the lack of authentication and association processes, the two ends of the information transmission have not established a complete Wi-Fi connection, but a two-way data transmission channel has been established.
[0074] Before the master host and the controlled host communicate bidirectionally, it is necessary to use other methods to pre-implant the controlled program based on the isolated network access of the built-in WiFi module into the controlled host, and the controlled host needs to have a wireless network adapter or insert a USB wireless network card in advance. After that, the controlled program is connected to the controlled host (the Wi-Fi module is required not to be disabled by CMOS). When the master host approaches the controlled host (5 meters), the controlled host and the master host transmit the charge command and execution result through the Wi-Fi channel. For example, the master host requires the controlled end to search for files with the word "test" in the file name, and send back the searched files in pieces.
[0075] It should be noted that different operating systems use different Wi-Fi protocol stacks. Covert transmission in Wi-Fi channels is implemented by calling the operating system WiFi API. The Windows operating system calls the Windows Native Wi-Fi API, the MacOSX operating system calls coreWLAN, and the Linux operating system calls nl80211 and libnl.
[0076] S1, obtain the command frame information;
[0077] It should be noted that the command frame information is obtained by using the main control host;
[0078] It should be noted that the command frame information is a data frame that conforms to the Probe Response frame format; the frame structure of the command frame information includes a 3-byte TYPE field, an 8-byte Hash field, an 8-byte ClientId field, and a 236-byte Command field; the Type field is the data frame type, the first byte is 1, indicating that the data is sent by the master host, and the second and third bytes indicate the command type; the Hash field is the timestamp hash value of the first frame transmission; ClientId is the host name hash value of the controlled host; the Command field is the command to be executed, and the information of the command to be executed that can be set in the Command field is shown in Table 1 below:
[0079] Table 1 Instructions to be executed
[0080]
[0081]
[0082] It should be noted that the TYPE field in the general network protocol is 1-2 bytes, while it is 3 bytes in the present invention, which improves the scalability of the frame, supports more subdivided instructions, and enhances the readability and parsing efficiency of the frame; through the Hash field, each instruction frame information carries a timestamp hash value to prevent replay attacks, while improving the security and integrity of data transmission; the introduction of the host name hash value can distinguish different controlled hosts, prevent the mis-sending of instructions, and ensure that the instructions are accurately delivered to the target device.
[0083] S2, processing the instruction issuing frame information to obtain the execution result feedback frame information;
[0084] S3, processing the execution result feedback frame information to obtain target result information.
[0085] It should be noted that the execution result feedback frame information is a data frame that conforms to the Probe Request frame format; the frame structure of the execution result feedback frame information includes a 1-byte Type field, a 2-byte Length field, an 8-byte Hash field, a 2-byte FragTotal field, a 2-byte FragCurrent field and a Context field greater than 100 bytes, wherein the Context field is determined according to the fragment size value of the fragmented data packet; wherein, the Type field is the data frame type; the Length field is the Context field length; the Hash field is the timestamp hash; the FragTotal field is the total number of fragments; the FragCurrent field is the current fragment sequence number; and the Context field is the execution result content.
[0086] It should be noted that the frame structure supports fragmented transmission through the FragTotal and FragCurrent fields, so that even if the execution result is large, it can be transmitted through multiple data packet fragments. These fields can clearly indicate the total number of fragments of the data and the sequence number of the current fragment, ensuring that the receiver can accurately reassemble all fragments into a complete execution result. The frame structure design of the execution result feedback frame information optimizes the data transmission process through fragmentation mechanism, flexible Context field, security-enhanced timestamp hash and dynamic data transmission control, making it more efficient, reliable, secure, and more adaptable and extensible. It combines multiple optimization methods for data transmission (such as fragment size, dynamic length, hash check), and at the same time, in the case of unstable network or limited bandwidth, it can still ensure that the data is complete and accurately fed back to the master control end.
[0087] It should be noted that the communication between the master host and the controlled host is carried out through the data exchange of Probe Request and Probe Response frames, rather than through the complete Wi-Fi AP / Stat ion pairing and connection. Under this mechanism, the controlled host does not need to sense or connect to the network, but communicates with the master through standard frames such as Probe Response to complete data communication.
[0088] The above data exchange is: the master host and the controlled host directly establish point-to-point communication through Wi-Fi signals, and use custom frames to transmit commands and return data. The controlled host does not need to connect to the traditional Wi-Fi network, but only needs to receive the Wi-Fi signal from the master host and parse the control commands in it.
[0089] It should be noted that when the master host and the controlled host use the Wi-Fi communication request frame and response frame for connectionless communication, the initial hash value of the master host response frame is the timestamp hash value, and then increases by 1 for each frame; the controlled host request frame hash value is the hash value of the latest received response frame plus 1 (accumulative confirmation can be made, that is, when several consecutive frames are received, the hash of the last frame is increased by 1) to notify the master host that "the previous frame has been received and the next frame can be sent". If the master host does not receive confirmation of certain messages for a long time, it will retransmit all frames after the frame. When the controlled host receives a hash value less than the hash value of the last consecutive message received last time, it will discard the frame, thereby solving the frame loss and frame buffering problems.
[0090] It can be seen that the isolated channel data transmission method based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0091] In an optional embodiment, the instruction issuing frame information is processed to obtain the execution result feedback frame information, including:
[0092] S21, using the master host, sending the command frame information to the controlled host;
[0093] It should be noted that in the standard Wi-Fi protocol, Probe Request is a request frame sent by a client device to an access point, which is usually used for the device to scan the network, and Probe Response is the access point's response to the request frame.
[0094] It should be noted that the above-mentioned sending of the command frame information to the controlled host is sent by the master host through its built-in WiFi module, and the sent frame format is the Probe Response format, which is not limited in detail in the embodiment of the present invention.
[0095] S22, the controlled host processes the command frame information to obtain execution result feedback frame information.
[0096] It can be seen that the isolated channel data transmission method based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0097] In another optional embodiment, the controlled host processes the instruction issuing frame information to obtain the execution result feedback frame information, including:
[0098] S221, parsing and processing the command issuing frame information to obtain command information;
[0099] It should be noted that the above-mentioned analysis and processing is to extract according to the frame structure of the instruction issuing frame information, obtain the to-be-executed instructions of the Command field in the frame structure of the instruction issuing frame information, and obtain the corresponding instruction information according to the to-be-executed instructions. Specifically, the embodiment of the present invention does not limit this.
[0100] S222, executing the instruction information to obtain execution result information;
[0101] It should be noted that the above execution process can be executed by setting a corresponding python script or shell script, and the specific embodiment of the present invention is not limited. For example, if the instruction information is to obtain the / path / to / image.jpg image on the controlled host, the shutil.copy instruction can be executed on the controlled host using a python script to obtain the corresponding image.jpg image.
[0102] S223, obtaining the WiFi signal strength value, WiFi channel bandwidth value and maximum fragment size value of the controlled host;
[0103] It should be noted that the maximum fragment size value is the maximum amount of valid data that can be carried in the Context field in each data frame (or fragment). This value determines how much data content can be encapsulated in a single data frame and affects the data transmission efficiency, the number of fragments, and the reliability of network transmission.
[0104] S224, processing the execution result information, the WiFi signal strength value, and the WiFi channel bandwidth value to obtain execution result compression information and the WiFi bandwidth value;
[0105] S225, processing the execution result compression information, the WiFi signal strength value, the WiFi bandwidth value, and the maximum fragment size value to obtain execution result feedback frame information.
[0106] It can be seen that the isolated channel data transmission method based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0107] In yet another optional embodiment, the execution result information, the WiFi signal strength value, and the WiFi channel bandwidth value are processed to obtain the execution result compression information and the WiFi bandwidth value, including:
[0108] S2241, using a built-in WiFi bandwidth calculation model, calculating and processing the WiFi signal strength value and the WiFi channel bandwidth value to obtain a WiFi bandwidth value;
[0109] Among them, the built-in WiFi bandwidth calculation model is:
[0110]
[0111] Where DK is the WiFi bandwidth value, XD is the WiFi channel bandwidth value, XH is the WiFi signal strength value, ZS is the noise power density value, ∈ is the environmental noise density value, and ρ is the bandwidth efficiency factor;
[0112] It should be noted that the noise power density value, the environmental noise density value and the bandwidth efficiency factor may be set by a user or may be obtained based on historical data, which is not limited in the embodiment of the present invention.
[0113] Exemplarily, the noise power density value under a standard environment (290K) is -174dBm / Hz.
[0114] It should be noted that the range of the environmental noise density value is between [-10,10]. The environmental noise density value is used to characterize the additional noise quantization parameters caused by environmental noise. In the actual environment, external electromagnetic interference, reflection, scattering and noise generated by other devices will cause the actual noise level to deviate from the ideal value. By introducing the environmental noise density value, it reflects the noise contribution introduced by external environmental factors (such as urban interference, electromagnetic radiation, equipment leakage, etc.) in addition to the basic thermal noise (noise power density value), thereby introducing the uncontrollable noise in the actual environment into the model, making the obtained WiFi bandwidth value more accurate. In addition, it avoids relying solely on the theoretical thermal noise density, which leads to large errors in link design. Finally, it can also make the model applicable to different environmental scenarios (urban, rural, indoor, outdoor, etc.).
[0115] It should be noted that the bandwidth efficiency factor is used to characterize the different utilization rates of actual bandwidth by different WiFi protocols. The bandwidth efficiency factor will take different values according to different WiFi protocols. For example, if the WiFi protocols are 802.11n, 802.11ac and 802.11ax, the corresponding bandwidth efficiency factor values are 0.75, 0.85 and 0.95 respectively. By setting the bandwidth efficiency factor, the actual available bandwidth can be evaluated more accurately to avoid over-reliance on ideal theoretical values. In addition, in different scenarios, the dynamic balance of performance, energy efficiency and stability can be achieved through the fine-tuning of the bandwidth efficiency factor.
[0116] S2242, obtaining compression model information; the compression model information includes first compression model information, second compression model information and third compression model information;
[0117] It should be noted that the first compression model information is LZ4 compression algorithm, the corresponding compression ratio is 2, and the compression rate is 200MB / s; the second compression model information is Brotli compression algorithm, the corresponding compression ratio is 3, and the compression rate is 50MB / s; the third compression model information is Gzip compression algorithm, the corresponding compression ratio is 2.5, and the compression rate is 100MB / s.
[0118] S2243, using a compression calculation model, calculating and processing the execution result information and the WiFi bandwidth value to obtain data transmission time information; the data transmission time information includes a first data transmission time value, a second data transmission time value, and a third data transmission time value;
[0119] Among them, the compression calculation model is:
[0120]
[0121] 1≤i≤3 and i is a positive integer;
[0122] WYS+WYSM=1;
[0123] 0≤WYS,WYSM≤1;
[0124] Wherein, T1, T2 and T3 are the first data transmission time value, the second data transmission time value and the third data transmission time value respectively, YS1, YS2 and YS3 are the compression rates corresponding to the first compression model information, the second compression model information and the third compression model information respectively, YSM1, YSM2 and YSM3 are the compression ratios corresponding to the first compression model information, the second compression model information and the third compression model information respectively, ZX is the data packet size corresponding to the execution result information, WF is the WiFi bandwidth value, WYS is the first weight parameter, WYSM is the second weight parameter, PRO, BIN and LAT are the obtained transmission protocol efficiency value, the number of concurrent connections and the network delay value;
[0125] It should be noted that the first weight parameter and the second weight parameter may be set by a user, or may be obtained based on historical data, and the embodiments of the present invention do not limit this.
[0126] It should be noted that the above compression calculation model fully considers the impact of multiple key factors such as data packet size, compression rate, compression ratio, Wi-Fi bandwidth, protocol efficiency, number of concurrent connections, network delay, etc. during data transmission. It can more comprehensively reflect the time overhead in the actual transmission process, reduce deviations, and improve the accuracy of transmission time prediction.
[0127] In different scenarios, the first weight parameter and the second weight parameter can be adjusted to make the transmission time calculation more flexible. For large data transmission scenarios, the weight of the compression ratio can be increased; for scenarios with high real-time requirements, the weight of the compression rate can be increased, so as to obtain more accurate data transmission time information.
[0128] It should be noted that PRO, BIN and LAT are obtained and are not limited in the embodiments of the present invention. The transmission protocol efficiency value indicates the ratio of effective data to total data in the actual data transmission process of the transmission protocol used; the number of concurrent connections indicates the number of connections established simultaneously during the current transmission process; and the network delay value indicates the time delay required for data to be currently transmitted from the master host to the controlled host.
[0129] S2244, process the execution result information, compression model information and data transmission time information to obtain execution result compression information.
[0130] It can be seen that the isolated channel data transmission method based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0131] In an optional embodiment, the execution result information, the compression model information and the data transmission time information are processed to obtain the execution result compression information, including:
[0132] S22441, determining whether the first data transmission time value is less than the second data transmission time value, and obtaining a first determination result;
[0133] When the first judgment result is yes, determine whether the first data transmission time value is less than the third data transmission time value to obtain a second judgment result;
[0134] When the second judgment result is yes, determining that the first compression model information is data compression model information;
[0135] When the second judgment result is no, determining that the third compression model information is data compression model information;
[0136] When the first judgment result is no, judging whether the second data transmission time value is less than the third data transmission time value, and obtaining a third judgment result;
[0137] When the third judgment result is yes, determining that the second compression model information is data compression model information;
[0138] When the third judgment result is no, it is determined that the third compression model information is data compression model information.
[0139] It should be noted that the best compression model may be different for different data types and network conditions. The above judgment dynamically selects the most appropriate compression model by comparing the transmission time, avoiding the inefficient transmission problem that may be caused by using a fixed compression model, ensuring the transmission time is minimized, and at the same time, through fast judgment logic, reducing unnecessary repeated compression and transmission attempts, saving computing and network resources.
[0140] S22442, using the data compression model information, compress the execution result information to obtain the execution result compression information.
[0141] It should be noted that the use of data compression model information to compress the execution result information to obtain the compressed execution result information is to use the data compression model information for compression processing, and the specific embodiments of the present invention are not limited. Exemplarily, when the data compression model information is the LZ4 compression algorithm, when the data packet name corresponding to the execution result information is SQD, the command lz4 SQD can be used for compression, and the command lz4-d SQD.lz4 can be used for decompression; when the data compression model information is the Brotli compression algorithm, the command brotli SQD can be used for compression, and the command brotli-d SQD.br can be used for decompression; when the data compression model information is the Gzip compression algorithm, the command gzip SQD can be used for compression, and the command gzip-d SQD.gz can be used for decompression.
[0142] It can be seen that the isolated channel data transmission method based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0143] In an optional embodiment, the execution result compression information, the WiFi signal strength value, the WiFi bandwidth value, and the maximum fragment size value are processed to obtain execution result feedback frame information, including:
[0144] S2251, obtaining the WiFi packet loss rate at the current moment;
[0145] S2252, calculating and processing the WiFi signal strength value, the WiFi bandwidth value, the maximum fragment size value, and the WiFi packet loss rate to obtain a data packet fragment size value;
[0146] It should be noted that the WiFi signal strength value, WiFi bandwidth value, maximum fragment size value and WiFi packet loss rate are calculated and processed to obtain the data packet fragment size value, including:
[0147] Using the fragmentation calculation model, the WiFi signal strength value, WiFi bandwidth value, maximum fragmentation size value and WiFi packet loss rate are calculated and processed to obtain the data packet fragmentation size value;
[0148] The sharding calculation model is:
[0149]
[0150] Wherein, FPY is the data packet fragment size value, FPM is the maximum fragment size value, DK is the WiFi bandwidth value, DB is the WiFi packet loss rate, XH is the WiFi signal strength value, LXC is the preset data type adjustment factor, LHE is the preset execution result feedback frame header size value, α is the signal attenuation factor, and β is the signal reference offset;
[0151] It should be noted that the preset data type adjustment factor, the preset execution result feedback frame header size value, the signal attenuation factor and the signal reference offset can be set by the user or obtained based on historical data. Specifically, the embodiments of the present invention do not limit this.
[0152] It should be noted that the preset data type adjustment factor has different values according to the data type of the execution result information. When it is text data information, the value is 1.0; when it is image data information, the value is 0.8; when it is video data information, the value is 0.6. Since different types of data have different requirements for network transmission, the data type adjustment factor adjusts the size of the fragment and the transmission strategy according to the data type to improve the overall transmission efficiency. When the execution result information is a text data type, large fragments can reduce the overhead of each fragment and increase the proportion of the effective load; when the execution result information is an image data type, in the case of limited bandwidth, using moderate fragments can balance the transmission speed and stability, and avoid packet loss in large fragments and affect the image quality; when the execution result information is video data information, using smaller fragments helps to reduce the impact of packet loss, ensure the transmission success rate of each data packet, avoid video freezes, image quality degradation and other problems, and in the case of high packet loss rate or unstable bandwidth, smaller fragments can improve the fault tolerance of the network and ensure video quality.
[0153] It should be noted that the preset execution result feedback frame header size value is the additional metadata overhead required for each fragment (such as frame header information, checksum, etc.). By subtracting the execution result feedback frame header size value in the model, the transmission efficiency loss caused by metadata occupancy can be reduced, ensuring that the actual effective data load is maximized.
[0154] It should be noted that the value range of the signal attenuation factor is [0.04, 0.06], and the exemplary value is 0.05. Signals in wireless communication are affected by many factors, including distance, obstacles, weather, wall reflections, etc. As the transmission distance increases, the signal strength will gradually weaken. Attenuation is usually expressed in exponential or logarithmic form, indicating the degree to which the signal strength changes with distance or other environmental factors. By setting the signal attenuation factor, the degree of signal attenuation can be finely controlled. The signal attenuation factor makes the signal attenuation model more flexible and can adjust the attenuation speed according to actual environmental changes. Different environments (such as cities, high-rise buildings, confined spaces, etc.) require different attenuation coefficients to reflect the actual propagation of the signal. It can cope with changing communication environments through simple adjustments.
[0155] It should be noted that the value range of the signal reference offset is [90,110]. For example, the value is 100. By setting the signal reference offset, the signal attenuation model can be flexibly adjusted in different environments, devices and usage scenarios, which can not only improve the accuracy of the model, but also enhance the adaptability of the system, optimize the performance of wireless communication, reduce packet loss rate and improve data transmission efficiency.
[0156] S2253, determining whether the data packet size corresponding to the execution result compression information is greater than the data packet fragment size value, and obtaining a fourth determination result;
[0157] When the fourth judgment result is yes, the execution result compression information is fragmented using the data packet fragment size value to obtain execution result fragment information; the execution result fragment information includes a plurality of execution result fragment data information;
[0158] It should be noted that the above-mentioned fragmentation process may be performed using an automatic fragmentation mechanism in the WiFi protocol, which is not specifically limited in the embodiment of the present invention.
[0159] When the fourth judgment result is no, it is determined that the execution result compression information is the execution result fragmentation information; the execution result fragmentation information includes 1 execution result fragmentation data information;
[0160] S2254, process the execution result slice information to obtain execution result feedback frame information.
[0161] It should be noted that the above processing is to fill the execution result fragment information into the Context field in the frame structure format according to the frame structure format of the execution result feedback frame information. Specifically, it is obtained by the data encapsulation mechanism of the WiFi protocol, and the embodiment of the present invention is not limited.
[0162] It can be seen that the isolated channel data transmission method based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0163] In an optional embodiment, the execution result feedback frame information is processed to obtain target result information, including:
[0164] S31, using the controlled host, sending the execution result feedback frame information to the master host;
[0165] It should be noted that the execution result feedback frame information is sent to the master host by the controlled host through its built-in WiFi module, and the frame format is Probe Request format, which is not limited in detail in the embodiment of the present invention.
[0166] S32, the main control host processes the execution result feedback frame information to obtain target result information.
[0167] It should be noted that the above processing is obtained by the master host, and the embodiment of the present invention does not limit it. Specifically, after the master host receives the execution result feedback frame information, it first verifies the integrity of the frame, checks whether there are fragments, and reorganizes the data. Then, the master host extracts the data in the Context field and parses out the specific execution result information. Through these steps, the master host can correctly process the data feedback from the controlled end and obtain the required target result information.
[0168] It can be seen that the isolated channel data transmission method based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0169] Embodiment 2
[0170] See also Figure 2 , Figure 2 : is a schematic diagram of a structure of an isolated channel data transmission device based on built-in WiFi disclosed in an embodiment of the present invention. Figure 2 The described isolation channel data transmission device based on built-in WiFi is applied to an isolation channel data transmission optimization system based on built-in WiFi, such as a local server or cloud server for isolation channel data transmission based on built-in WiFi, and the embodiments of the present invention are not limited thereto. Figure 2As shown, the isolation channel data transmission device based on built-in WiFi includes:
[0171] The acquisition module 201 is used to acquire the instruction issuing frame information;
[0172] The first processing module 202 is used to process the instruction issuing frame information to obtain the execution result feedback frame information;
[0173] The second processing module 203 is used to process the execution result feedback frame information to obtain target result information.
[0174] It can be seen that the isolated channel data transmission device based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0175] Embodiment 3
[0176] See also Figure 3 , Figure 3 : is a schematic diagram of another structure of an isolated channel data transmission device based on built-in WiFi disclosed in an embodiment of the present invention. Figure 3 The described isolation channel data transmission device based on built-in WiFi is applied to an isolation channel data transmission optimization system based on built-in WiFi, such as a local server or cloud server for isolation channel data transmission based on built-in WiFi, and the embodiments of the present invention are not limited thereto. Figure 3 As shown, the isolation channel data transmission device based on built-in WiFi includes:
[0177] Processor 301;
[0178] A memory 302 coupled to the processor 301 and storing executable program codes;
[0179] The processor 301 calls the executable program code stored in the memory 302 to execute part or all of the steps of the isolation channel data transmission method based on built-in WiFi in the first embodiment.
[0180] It can be seen that the isolated channel data transmission device based on built-in WiFi described in the embodiment of the present invention can establish an efficient, covert, bidirectional data transmission channel without establishing a complete WiFi connection, which is conducive to achieving efficient, covert and reliable bidirectional data transmission and control in complex and high-security scenarios.
[0181] Embodiment 4
[0182] An embodiment of the present invention discloses a computer-readable storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all steps of the isolation channel data transmission method based on built-in WiFi in embodiment 1.
[0183] Embodiment 5
[0184] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute some or all of the steps in the isolation channel data transmission method based on built-in WiFi described in Example 1.
[0185] The system embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative labor.
[0186] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0187] Finally, it should be noted that the isolated channel data transmission method and device based on built-in WiFi disclosed in the embodiment of the present invention discloses only the preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for transmitting data in an isolation channel based on built-in WiFi, characterized in that: The method is implemented based on a master host and a controlled host, both of which are equipped with built-in WiFi. The method includes: S1, obtain the command frame information; S2, processing the instruction issuing frame information to obtain execution result feedback frame information; S3, processing the execution result feedback frame information to obtain target result information.
2. The isolation channel data transmission method based on built-in WiFi according to claim 1, characterized in that: The processing of the instruction issuing frame information to obtain the execution result feedback frame information includes: S21, using the master host, sending the command frame information to the controlled host; S22, the controlled host processes the instruction issuing frame information to obtain execution result feedback frame information.
3. The isolation channel data transmission method based on built-in WiFi according to claim 2 is characterized in that: The controlled host processes the instruction issuing frame information to obtain execution result feedback frame information, including: S221, parsing the command issuing frame information to obtain command information; S222, executing the instruction information to obtain execution result information; S223, obtaining the WiFi signal strength value, WiFi channel bandwidth value and maximum fragment size value of the controlled host; S224, processing the execution result information, the WiFi signal strength value, and the WiFi channel bandwidth value to obtain execution result compression information and a WiFi bandwidth value; S225, processing the execution result compression information, the WiFi signal strength value, the WiFi bandwidth value, and the maximum fragment size value to obtain execution result feedback frame information.
4. The isolation channel data transmission method based on built-in WiFi according to claim 3 is characterized in that: The processing of the execution result information, the WiFi signal strength value, and the WiFi channel bandwidth value to obtain the execution result compression information and the WiFi bandwidth value includes: S2241, using a built-in WiFi bandwidth calculation model, calculating and processing the WiFi signal strength value and the WiFi channel bandwidth value to obtain a WiFi bandwidth value; The built-in WiFi bandwidth calculation model is: Wherein, DK is the WiFi bandwidth value, XD is the WiFi channel bandwidth value, XH is the WiFi signal strength value, ZS is the noise power density value, ∈ is the environmental noise density value, and ρ is the bandwidth efficiency factor; S2242, obtaining compression model information; the compression model information includes first compression model information, second compression model information and third compression model information; S2243, using a compression calculation model, calculating and processing the execution result information and the WiFi bandwidth value to obtain data transmission time information; the data transmission time information includes a first data transmission time value, a second data transmission time value, and a third data transmission time value; Wherein, the compression calculation model is: 1≤i≤3 and i is a positive integer; WYS+WYSM=1; 0≤WYS,WYSM≤1; Wherein, T1, T2 and T3 are respectively the first data transmission time value, the second data transmission time value and the third data transmission time value, YS1, YS2 and YS3 are respectively the compression rates corresponding to the first compression model information, the second compression model information and the third compression model information, YSM1, YSM2 and YSM3 are respectively the compression ratios corresponding to the first compression model information, the second compression model information and the third compression model information, ZX is the data packet size corresponding to the execution result information, WF is the WiFi bandwidth value, WYS is the first weight parameter, WYSM is the second weight parameter, PRO, BIN and LAT are the obtained transmission protocol efficiency value, the number of concurrent connections and the network delay value; S2244: Process the execution result information, the compression model information and the data transmission time information to obtain execution result compression information.
5. The isolation channel data transmission method based on built-in WiFi according to claim 4 is characterized in that: The processing of the execution result information, the compression model information and the data transmission time information to obtain the execution result compression information includes: S22441, determining whether the first data transmission time value is less than the second data transmission time value, and obtaining a first determination result; When the first judgment result is yes, determining whether the first data transmission time value is less than the third data transmission time value, and obtaining a second judgment result; When the second judgment result is yes, determining that the first compression model information is data compression model information; When the second judgment result is no, determining that the third compression model information is the data compression model information; When the first judgment result is no, judging whether the second data transmission time value is less than the third data transmission time value, and obtaining a third judgment result; When the third judgment result is yes, determining that the second compression model information is the data compression model information; When the third judgment result is no, determining that the third compression model information is the data compression model information; S22442: Utilize the data compression model information to compress the execution result information to obtain compressed execution result information.
6. The isolation channel data transmission method based on built-in WiFi according to claim 3 is characterized in that: The processing of the execution result compression information, the WiFi signal strength value, the WiFi bandwidth value, and the maximum fragment size value to obtain execution result feedback frame information includes: S2251, obtaining the WiFi packet loss rate at the current moment; S2252, calculating and processing the WiFi signal strength value, the WiFi bandwidth value, the maximum fragment size value, and the WiFi packet loss rate to obtain a data packet fragment size value; S2253, determining whether the data packet size corresponding to the compressed information of the execution result is greater than the data packet fragment size value, and obtaining a fourth determination result; When the fourth judgment result is yes, the execution result compression information is fragmented using the data packet fragment size value to obtain execution result fragment information; When the fourth judgment result is no, determining that the execution result compression information is the execution result fragmentation information; S2254: Process the execution result fragment information to obtain execution result feedback frame information.
7. The isolation channel data transmission method based on built-in WiFi according to claim 1, characterized in that: The processing of the execution result feedback frame information to obtain target result information includes: S31, using the controlled host, sending the execution result feedback frame information to the master host; S32, the master control host processes the execution result feedback frame information to obtain target result information.
8. An isolation channel data transmission device based on built-in WiFi, characterized in that: The device comprises: An acquisition module is used to obtain the command issuing frame information; A first processing module is used to process the instruction issuing frame information to obtain execution result feedback frame information; The second processing module is used to process the execution result feedback frame information to obtain target result information.
9. An isolation channel data transmission device based on built-in WiFi, characterized in that: The device comprises: processor; a memory coupled to the processor and storing executable program code; The processor calls the executable program code stored in the memory to execute the isolation channel data transmission method based on built-in WiFi as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the isolation channel data transmission method based on built-in WiFi as described in any one of claims 1-7.
Citation Information
Patent Citations
Covert remote control method in WiFi physical isolation environment
CN109361666A
Method and device for selecting situation awareness compression algorithm
CN114979290A
Monitoring information uploading method and system based on unstable network scene
CN117880128A