Data transmission method and device based on dual channels, electronic device and storage medium
By employing a dual-channel wireless Wi-Fi connection for data transmission in the aerospace environment, the problem of unstable data transmission for aerospace equipment was solved, enabling reliable data transmission to the ground control center.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 深圳开鸿数字产业发展有限公司
- Filing Date
- 2024-11-18
- Publication Date
- 2026-05-12
Smart Images

Figure CN119729443B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of transaction processing technology, and in particular to a method, apparatus, electronic device and storage medium for data transmission based on dual channels. Background Technology
[0002] The aerospace environment is rife with electromagnetic interference sources, such as interference from spacecraft electronics and cosmic rays. These sources can severely impact the stability and quality of data transmission between various devices in space, easily leading to data loss or transmission delays. Consequently, it becomes impossible to reliably ensure the real-time transmission of data collected by spacecraft equipment (e.g., sensors) to the ground control center. Therefore, improving the reliability of data transmission in the aerospace environment is a pressing technical problem that needs to be solved.
[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this application is to provide a dual-channel data transmission method, apparatus, electronic device, and storage medium, aiming to solve the technical problem of how to improve the reliability of data transmission in aerospace environments.
[0005] To achieve the above objectives, this application provides a dual-channel data transmission method applied to an aerospace transmission system. The aerospace transmission system is equipped with a network center device and a controller, which are connected via a dual-channel wireless Wi-Fi connection. The method includes:
[0006] Control the network center device to perform a scanning operation;
[0007] The network center device is controlled to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, so that the trusted aerospace equipment can transmit data to the network center device through the dual-channel wireless Wi-Fi connection.
[0008] The network center device transmits the data sent by the trusted aerospace equipment to the controller, which is used to interact with the ground control center corresponding to the aerospace transmission system.
[0009] In one embodiment, the step of controlling the network center device to perform a scanning operation includes:
[0010] The network center device is controlled to send broadcast signals to the outside world;
[0011] The network center device receives response signals sent from outside based on the broadcast signals, so that the network center device can support receiving network requests from aerospace equipment that sent the response signals.
[0012] In one embodiment, the step of controlling the network center device to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection includes:
[0013] When the network center device receives a network request, it obtains the aerospace equipment identifier from the network request and sends the network identifier to the trusted aerospace equipment corresponding to the aerospace equipment identifier, so as to control the network center device to establish a wireless Wi-Fi dual-channel connection with the trusted aerospace equipment.
[0014] In one embodiment, after the step of controlling the network center device to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, the method further includes:
[0015] The network center device receives the key sent by the trusted aerospace equipment.
[0016] The environmental data collected by the trusted aerospace equipment and the key are encrypted and transmitted to the network center equipment.
[0017] When the network center device receives the encrypted environmental data, it parses the encrypted environmental data using the key and sends a data reception signal back to the trusted aerospace equipment.
[0018] In one embodiment, the dual-channel wireless Wi-Fi includes a first channel and a second channel; after the step of controlling the network center device to connect with the scanned trusted aerospace equipment via the dual-channel wireless Wi-Fi, the following is included:
[0019] When a data transmission request is triggered by a preset transmitter, the preset transmitter is controlled to continuously transmit data in the first and second channels;
[0020] The preset transmitting end transmits the same data in the first channel and the second channel, and the preset transmitting end is a trusted aerospace device or a network center device.
[0021] In one embodiment, after the step of controlling the network center device to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, the following is included:
[0022] If it is detected that both the first data received by the preset receiving end in the first channel and the second data received in the second channel have lost data bytes, target reference data and target recovery data are determined from the first data and the second data, wherein the preset receiving end is a network center device or controller;
[0023] For each lost byte in the target recovery data, determine the lost position of the lost byte in the target recovery data, and find the compensation byte corresponding to the lost position in the target reference data;
[0024] The compensation bytes are applied to the missing byte positions of the target recovery data to recover the target recovery data;
[0025] Wherein, the target reference data is either the first data or the second data; when the target reference data is the first data, the target recovery data is the second data; and when the target reference data is the second data, the target recovery data is the first data.
[0026] In one embodiment, the dual-channel wireless Wi-Fi system includes a first channel and a second channel, which are a 2.4G Wi-Fi channel and a 5G Wi-Fi channel, respectively.
[0027] Furthermore, to achieve the above objectives, this application also provides a data transmission device applied to an aerospace transmission system. The aerospace transmission system is equipped with a network center device and a controller, which are connected via a dual-channel wireless Wi-Fi communication connection. The device includes:
[0028] The scanning module is used to control the network center device to perform scanning operations;
[0029] The connection module is used to control the network center device to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, so that the trusted aerospace equipment can transmit signals to the network center device through the dual-channel wireless Wi-Fi connection.
[0030] The network center device transmits the signals sent by the trusted aerospace equipment to the controller, which is used to interact with the ground control center corresponding to the aerospace transmission system.
[0031] In addition, to achieve the above objectives, this application also provides an electronic device, the electronic device comprising: a memory, a processor, and a program of the dual-channel data transmission method stored in the memory and executable on the processor, wherein when the program of the dual-channel data transmission method is executed by the processor, it can implement the steps of the dual-channel data transmission method as described above.
[0032] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a program implementing a dual-channel data transmission method, wherein when the program is executed by a processor, it implements the steps of the dual-channel data transmission method as described above.
[0033] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the dual-channel data transmission method described above.
[0034] One or more technical solutions proposed in this application have at least the following technical effects: This application is applied to an aerospace transmission system, which deploys a controller for a network center device. The network center device and the controller can be connected via a dual-channel wireless Wi-Fi connection, facilitating dual-channel data transmission between them and improving transmission reliability. Furthermore, this application allows control of the network center device to perform scanning operations, thereby controlling the network center device to connect with scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection. This allows the trusted aerospace equipment to transmit data to the network center device via the dual-channel wireless Wi-Fi connection. The dual-channel transmission improves data transmission reliability, facilitating the network center device to transmit data sent by the trusted aerospace equipment to the controller, and also facilitating the controller to transmit data from the trusted aerospace equipment to the ground control center, thus further improving data transmission reliability. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a flowchart illustrating an embodiment of the dual-channel data transmission method of this application;
[0038] Figure 2 This is a schematic diagram illustrating the connection between trusted aerospace equipment, network center equipment, and controller in the dual-channel data transmission method of this application;
[0039] Figure 3 This is a schematic diagram illustrating the interaction process between the network center equipment and the trusted aerospace equipment in the dual-channel data transmission method of this application;
[0040] Figure 4 This is a schematic diagram showing the delay variation curve in the dual-channel data transmission method of this application;
[0041] Figure 5This is a schematic diagram illustrating the lost bytes in the dual-channel data transmission method of this application;
[0042] Figure 6 This is a schematic diagram of the data transmission device based on the dual-channel data transmission method of this application;
[0043] Figure 7 This is a schematic diagram of the device structure of the hardware operating environment involved in the dual-channel data transmission method in the embodiments of this application.
[0044] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0045] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0046] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0047] The space environment contains various sources of electromagnetic interference, such as interference from spacecraft electronics and cosmic rays. These sources can severely affect the stability and quality of transmission between various devices in space, easily leading to data loss or transmission delays, and consequently making it impossible to reliably ensure the real-time transmission of data collected by spacecraft equipment (e.g., sensors) to the ground control center.
[0048] Therefore, this application uses a dual-channel transmission method to control the network center equipment, controller, and corresponding trusted aerospace equipment. The network is connected via dual-path wireless Wi-Fi and maintained through network heartbeats. This enables the trusted aerospace equipment, network center equipment, and controller to form a real-time online network, ensuring the reliability and stability of data transmission.
[0049] This application provides a dual-channel data transmission method applied to aerospace transmission systems, with reference to... Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the dual-channel data transmission method of this application. This embodiment is applied to an aerospace transmission system, which is equipped with a network center device and a controller. The network center device and the controller are connected via a dual-channel wireless Wi-Fi connection. The dual-channel data transmission method includes steps S10 to S20:
[0050] Step S10: Control the network center device to perform a scanning operation;
[0051] It should be noted that the aerospace transmission system is equipped with a network center and controller. The aerospace transmission system also includes multiple aerospace devices, which can be aerospace sensors or cameras and other devices used to collect data. Aerospace sensors are used to collect data in the aerospace environment. Aerospace sensors can be sensors used to collect temperature, humidity, light, etc. This embodiment does not make specific limitations on this.
[0052] Trusted aerospace equipment refers to aerospace devices that establish communication connections with the network center equipment. Each aerospace sensor includes a sensor unit, a converter unit, and a wireless communication unit. The sensor unit collects data from the environment in which the aerospace sensor is located. The converter unit performs analog-to-digital conversion on the data collected by the sensor unit, that is, converts analog signals into digital signals. The wireless communication unit is connected to a dual-channel wireless Wi-Fi network and is used to send digital signals to the network center equipment via the dual-channel wireless Wi-Fi network. The wireless communication unit can also send data such as the device identifier of the aerospace sensor to the network center equipment via the dual-channel wireless Wi-Fi network.
[0053] The camera device includes a camera unit, an encoding unit, and a wireless communication unit. The camera unit is used to capture video, the encoding unit is used to compress the video captured by the camera unit to improve transmission efficiency, the wireless communication unit is used to send the compressed video to the network center device via dual-channel wireless Wi-Fi, and the wireless communication unit is also used to send the camera's device identifier to the network center device via dual-channel wireless Wi-Fi, etc.
[0054] The network center equipment is used to establish connections with various trusted aerospace devices and can receive data sent by these devices. It can then centrally transmit the received data to the controller. Connecting these trusted aerospace devices through the network center equipment improves the reliability and stability of the aerospace transmission system. The network center equipment includes a wireless communication unit, a control unit, and a 3U VPX motherboard architecture.
[0055] For example, the network center device can be controlled to perform a scanning operation to scan for trusted aerospace devices that can be added to the network center device.
[0056] In a feasible embodiment, step S10 further includes steps S11 to S12:
[0057] Step S11: Control the network center device to send broadcast signals to the outside world;
[0058] Step S12: The network center device receives a response signal sent from outside based on the broadcast signal, so that the network center device can support receiving the network request from the device that sent the response signal.
[0059] It should be noted that the broadcast signal can be a CoAP (Constrained Application Protocol) broadcast signal. The broadcast signal is used to indicate that the network center device can currently access the aerospace equipment. The broadcast signal can carry the network address where the network center device is located and the type of data content that the network center device needs to obtain. The data content type is, for example, temperature data, video stream data, etc. This embodiment does not make specific limitations on this.
[0060] When the network center device sends a broadcast signal, multiple aerospace devices in the aerospace transmission system can receive it. Each aerospace device can determine whether it needs to send a response signal to the network center device based on the broadcast signal. For example, the aerospace device can determine whether to send a response signal based on the data content type in the broadcast signal. If the data content type in the broadcast signal includes the data type collected by the aerospace device, the aerospace device can send a response signal to the network center device so that the network center device can support receiving the aerospace device's networking request. If the data content type in the broadcast signal does not include the data type collected by the aerospace device, the aerospace device will not send a response signal to the network center device, and the aerospace device will not establish a connection with the network center device.
[0061] The response signal can be CoAP unicast data, which represents communication between the network center device and a corresponding spacecraft device. Multiple spacecraft devices can be sending response signals to the network center device.
[0062] The process by which the network center equipment sends broadcast signals and receives response signals from aerospace equipment is the process by which the network center equipment discovers trusted aerospace equipment. Aerospace equipment that sends response signals back to the network center equipment can be considered trusted aerospace equipment.
[0063] For example, the control network center device sends a CoAP broadcast signal. When each space device in the space transmission system receives the CoAP broadcast signal, it can determine whether the data content type carried in the CoAP broadcast signal includes the data type collected by the space device. If the data content type carried in the CoAP broadcast signal does not include the data type collected by the space device, the control device does not send a response signal to the network center device. If the data content type carried in the CoAP broadcast signal includes the data type collected by the space device, the control device sends a response signal to the network center device to inform the network center device that the space device can establish a dual-channel Wi-Fi communication connection with the network center device.
[0064] Step S20: Control the network center device to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, so that the trusted aerospace equipment can transmit data to the network center device via the dual-channel wireless Wi-Fi connection;
[0065] The network center device transmits the data sent by the trusted aerospace equipment to the controller, which is used to interact with the ground control center corresponding to the aerospace transmission system.
[0066] It should be noted that trusted aerospace equipment refers to aerospace equipment that establishes a dual-channel wireless Wi-Fi connection with the network center equipment. The dual-channel wireless Wi-Fi connection includes two channels: a first channel and a second channel. Data transmission can occur on both channels, and the first and second channels can transmit the same data, or they can transmit different data.
[0067] Trusted aerospace equipment can transmit data to the network center equipment via dual-channel wireless Wi-Fi, and the network center equipment can also transmit data to the trusted aerospace equipment via dual-channel wireless Wi-Fi. Each trusted aerospace device has its own corresponding dual-channel wireless Wi-Fi connection to the network center equipment. The ground control center is a control device located on the ground, which can be a server, computer, or other similar device; this embodiment does not specifically limit its functionality.
[0068] The controller can receive data sent by the network center equipment and transmit it to the ground control center. Since data transmission between the controller and the network center equipment, and between the network center equipment and various trusted aerospace devices, is conducted via dual-channel wireless Wi-Fi, the reliability of data transmission in the aerospace environment is improved. This ensures the controller receives reliable data for transmission to the ground control center, thereby enhancing data transmission reliability.
[0069] For example, the control network center device communicates with each scanned trusted aerospace device via a dual-channel wireless Wi-Fi connection. For instance, see [reference needed]. Figure 2 , Figure 2 This diagram illustrates the connections between the controller, the network center equipment, and the trusted aerospace equipment. Figure 2 The aerospace sensors and cameras shown are all reliable aerospace equipment. The aerospace sensors are connected to the network center equipment via dual-channel wireless Wi-Fi communication, the aerospace cameras are connected to the network center equipment via dual-channel wireless Wi-Fi communication, and the network center equipment is connected to the controller via dual-channel wireless Wi-Fi communication. Figure 2 The structure of the control unit and other components of the network center equipment is not shown in the document.
[0070] For example, wireless communication units can all be based on the HarmonyOS system. For instance, the wireless communication units of aerospace sensors include HarmonyOS-based ESP32 (a microcontroller that integrates Wi-Fi and Bluetooth functions) and BES2600 (a navigation chip developed by Beijing Beidou Navigation Technology Co., Ltd.). The wireless communication units of the network center equipment, the controller, and the aerospace camera equipment can include the HarmonyOS-based 3568J core board.
[0071] In one feasible embodiment, step S20 includes step S21:
[0072] Step S21: When the network center device receives a network request, it obtains the aerospace equipment identifier from the network request and sends the network identifier to the trusted aerospace equipment corresponding to the aerospace equipment identifier, so as to control the network center device to establish a wireless Wi-Fi dual-channel connection with the trusted aerospace equipment.
[0073] It should be noted that the network formation request is initiated by the spacecraft that has sent a response signal, and it is used to initiate a connection request to the network center equipment. The spacecraft identifier is a unique identifier for each spacecraft; different spacecraft have different identifiers. The network formation request carries the identifier of the spacecraft that needs to connect to the network center equipment.
[0074] The network identifier serves as the identifier for the network center device. After receiving the aerospace equipment identifier, the network center device can send its own network identifier to the trusted aerospace equipment corresponding to that identifier. This allows the trusted aerospace equipment to receive the network identifier and identify the network center device, which in turn can use it to recognize the corresponding trusted aerospace equipment. Since the wireless communication unit in the trusted aerospace equipment includes two wireless frequency bands, and the wireless communication unit of the network center device also supports two wireless frequency bands, a dual-channel Wi-Fi connection can be established between the network center device and the trusted aerospace equipment. The two wireless frequency bands can be the 2.4GHz band and the 5GHz band, respectively.
[0075] For example, the aerospace equipment that sends a response signal to the network center device can then send a network request to the network center device. The aerospace equipment that sends the response signal to the network center device can also be a trusted aerospace equipment. When the network center device receives the network request, it obtains the aerospace equipment identifier from the network request and sends a network identifier to the trusted aerospace equipment corresponding to the aerospace equipment identifier, so that the trusted aerospace equipment can access the network center device, thereby enabling the network center device to establish a dual-channel wireless Wi-Fi connection with the trusted aerospace equipment.
[0076] This embodiment connects trusted aerospace equipment to the network center equipment, enabling the trusted aerospace equipment to connect with the network center equipment via dual-channel wireless Wi-Fi, thus facilitating reliable data transmission in the future.
[0077] In a feasible embodiment, steps S30 to S50 are further included after step S20:
[0078] Step S30: Receive the key sent by the trusted aerospace equipment through the network center device;
[0079] Step S40: Using the trusted aerospace equipment and the key, the environmental data collected by the trusted aerospace equipment is encrypted and transmitted to the network center equipment;
[0080] Step S50: When the network center device receives the encrypted environmental data, it parses the encrypted environmental data using the key and sends a data reception signal back to the trusted aerospace equipment.
[0081] It should be noted that the key is used to encrypt the data sent by the trusted aerospace equipment to the network center equipment. The key can be a session key, which is a temporary key used during the current communication between the trusted aerospace equipment and the network center equipment. After the current communication ends, the session key can be destroyed, and the trusted aerospace equipment can send a new session key to the network center equipment during the next data transmission.
[0082] Trusted aerospace equipment can send a session key to the network center equipment. After receiving the session key, the network center equipment will send a response key signal back to the trusted aerospace equipment to inform it that the session key has been received.
[0083] Trusted aerospace equipment can encrypt collected environmental data based on the session key and send the encrypted environmental data to the network center equipment. The network center equipment can decrypt the encrypted environmental data based on the session key. After receiving the encrypted environmental data, the network center equipment can send a data reception signal back to the trusted aerospace equipment, indicating that the network center equipment has received the encrypted environmental data. This improves the security of data transmission.
[0084] In this embodiment, before the network center device receives the encrypted environmental data, the trusted aerospace equipment continuously transmits the encrypted environmental data via dual-channel wireless Wi-Fi. The environmental data can be sensor data, video stream data, etc., and the sensor data can be data such as temperature data; this embodiment does not specifically limit this.
[0085] For example, you can refer to Figure 3 This document describes the data transmission process between the trusted aerospace device and the network center device via dual-channel Wi-Fi in this embodiment. It includes steps a through h: Step a, the network center device initiates a CoAP broadcast; Step b, the trusted aerospace device sends a response signal to the network center device, i.e., a CoAP unicast response; Step c, the trusted aerospace device sends a network request to the network center device; Step d, the network center device replies with its network identifier to the trusted aerospace device; Step e, a session key is negotiated, i.e., the trusted aerospace device sends a session key to the network center device; Step f, the session key is acknowledged, i.e., the network center device reports receipt of the session key to the trusted aerospace device; Step g, the trusted aerospace device encrypts and transmits data to the network center device; Step h, the network center device reports receipt of the encrypted data to the trusted aerospace device.
[0086] In one possible embodiment, after step S20, the method further includes:
[0087] Step A10: When the preset sending end triggers a data transmission request, control the preset sending end to continuously send data in the first and second channels;
[0088] The preset transmitting end transmits the same data in the first channel and the second channel, and the preset transmitting end is a trusted aerospace device or a network center device.
[0089] It should be noted that the preset transmitter can be a trusted aerospace device or a network center device. When the preset transmitter is a trusted aerospace device, the corresponding receiver is a network center device; when the preset transmitter is a network center device, the corresponding receiver can be a controller.
[0090] A data transmission request indicates that a preset sender needs to send data. For example, when the preset sender is a trusted aerospace device, the data to be sent is environmental data collected by the trusted aerospace device. When the preset sender is a network center device, the data to be sent can be environmental data collected by all trusted aerospace devices received by the network center device, etc.
[0091] To ensure the reliability of data transmission, the transmitter is pre-programmed to send the same data in the first and second channels. Even if the first or second channel fails, data can still be transmitted through the normal channel. For example, if the first channel fails, data can still be transmitted through the second channel, and vice versa. This ensures the reliability of data transmission. When the channel returns to normal, data transmission can continue on both the first and second channels, guaranteeing the reliability of data transmission.
[0092] Furthermore, in a feasible embodiment, the dual-channel wireless Wi-Fi includes a first channel and a second channel, which are respectively a 2.4G Wi-Fi channel and a 5G Wi-Fi channel.
[0093] It should be noted that the 2.4G Wi-Fi channel refers to the channel corresponding to the 2.4G Wi-Fi frequency band, and the 5G Wi-Fi channel refers to the channel corresponding to the 5G Wi-Fi frequency band. The operating frequency range of the 2.4G Wi-Fi band is 2400–2483.5 MHz, and the operating frequency range of the 5G Wi-Fi band is 5150 MHz–5825 MHz. Since the more wireless communication devices communicating on the same Wi-Fi frequency band, the more congested the corresponding channel becomes, easily leading to transmission delays. Because the time points at which delays occur may differ across different Wi-Fi frequency bands, this embodiment uses dual-channel Wi-Fi data transmission to reduce data transmission delays. For example, the sending end can simultaneously transmit data on both Wi-Fi channels, but the arrival times of the data on the first and second channels at the receiving end may differ. In this embodiment, the aerospace transmission system has richer 5G frequency band resources, so data transmitted on the 5G Wi-Fi channel can be transmitted to the receiving end relatively quickly. If the transmission latency on the 5G Wi-Fi channel suddenly increases during data transmission, this embodiment can also transmit data through the 2.4G Wi-Fi channel. The data on the 2.4G Wi-Fi channel may be transmitted to the receiving end before the data on the 5G Wi-Fi channel. Therefore, compared with single-channel transmission, this embodiment can reduce the data transmission latency and improve the real-time performance and reliability of data transmission.
[0094] For example, you can refer to Figure 4 , Figure 4The graph shows the rate of change of latency over time. The rate of change of latency refers to the change in the transmission latency of different data packets in network communication. The higher the rate of change of latency, the greater the difference in transmission latency of data packets in the network. Figure 4 The vertical axis represents the rate of change of time delay, and the horizontal axis represents time. Figure 4 Specifically, this includes the latency changes of 2.4GHz Wi-Fi when only the 2.4GHz channel is transmitting, the latency changes of 5GHz Wi-Fi when only the 5GHz channel is transmitting, and the latency changes of dual-channel Wi-Fi transmission. (Refer to...) Figure 4 It can be seen that the latency variation rate of 2.4 WiFi fluctuates the most, while the latency variation rate of dual-channel wireless WiFi is the most stable. Therefore, in this embodiment, data transmission through dual-channel wireless WiFi can reduce the latency of data transmission.
[0095] In a feasible embodiment, steps B10 to B30 are further included after step S20:
[0096] Step B10: If it is detected that both the first data received by the preset receiving end in the first channel and the second data received in the second channel have lost data bytes, determine the target reference data and the target recovery data in the first data and the second data, wherein the preset receiving end is the network center device or controller;
[0097] It should be noted that the preset receiving end can be the network center device or controller. Due to interference in the aerospace environment, data loss may occur during data transmission on the first and second channels. Both the first and second data contain multiple fields; data byte loss refers to the loss of any field within the data.
[0098] The first data is the data transmitted on the first channel, and the second data is the data transmitted on the second channel. When the transmitting end corresponding to the preset receiving end transmits data, the first data transmitted on the first channel and the second data transmitted on the second channel are the same. However, due to interference from the aerospace environment during transmission, there may be data byte loss in the first data and / or the second data.
[0099] For example, if neither the first nor the second data byte is lost, the preset receiving end can delete the first data and retain the second data, or delete the second data and retain the first data, thereby reducing the storage pressure on the preset receiving end while ensuring the reliability of data transmission. If the first data byte is lost and the second data is not lost, the preset receiving end can retain the second data and delete the first data. If the second data byte is lost and the first data is not lost, the preset receiving end can retain the first data and delete the second data. This ensures the reliability of data reception.
[0100] When both the first data and the second data contain missing bytes, target reference data and target recovery data can be determined from the first data and the second data. The target reference data is either the first data or the second data. When the target reference data is the first data, the target recovery data is the second data. When the target reference data is the second data, the target recovery data is the first data. Preferably, the target data with the fewest missing fields can be determined from the first data and the second data as the target recovery data, and the target data with the most missing fields can be determined from the first data and the second data as the target reference data.
[0101] Step B20: For each lost byte in the target recovered data, determine the lost position of the lost byte in the target recovered data, and find the compensation byte corresponding to the lost position in the target reference data;
[0102] Step B30: The compensation bytes are applied to the lost position of the target recovery data to recover the target recovery data;
[0103] Wherein, the target reference data is either the first data or the second data; when the target reference data is the first data, the target recovery data is the second data; and when the target reference data is the second data, the target recovery data is the first data.
[0104] It should be noted that the target recovered data may contain one or more lost bytes. The lost position refers to the location of the lost byte within the target recovered data. Each lost byte has its own corresponding lost position. Since the original data before the loss is identical in both the target recovered data and the target reference data, the compensation byte corresponding to the lost position can be found in the target reference data. This compensation byte represents the byte lost at that position. This improves the reliability of data transmission.
[0105] When all lost positions in the target recovery data have corresponding compensation bytes in the target reference data, each compensation byte can be used to compensate for its corresponding lost position, thereby restoring the target recovery data. This allows for compensation and recovery even if both the first and second data received by the preset receiver have lost bytes, resulting in the restored target recovery data and improving data transmission reliability. Since data is transmitted on different channels, the positions of the lost bytes in both the first and second data may differ. Therefore, data restoration is possible, increasing the probability that the preset receiver receives data without lost bytes and further enhancing data transmission reliability.
[0106] For example, refer to Figure 5 L1 represents the data on the first channel, and L2 represents the data on the second channel. Unlost bytes in L2 can be compensated for the missing bytes in L1. For example, refer to... Figure 5 The arrow in the image represents the replacement of the missing bytes in L2 with the missing bytes in L1.
[0107] Reference Figure 6 , Figure 6 The diagram shows the structure of a data transmission device applied in an aerospace transmission system. The aerospace transmission system deploys a network center device and a controller, which are connected via a dual-channel wireless Wi-Fi communication network. The device includes:
[0108] Scanning module 10 is used to control the network center device to perform scanning operations;
[0109] The connection module 20 is used to control the network center device to connect with the scanned trusted aerospace equipment through a dual-channel wireless Wi-Fi connection, so that the trusted aerospace equipment can transmit signals to the network center device through the dual-channel wireless Wi-Fi connection.
[0110] The network center device transmits the signals sent by the trusted aerospace equipment to the controller, which is used to interact with the ground control center corresponding to the aerospace transmission system.
[0111] The data transmission device provided in this application employs the dual-channel data transmission method described in the above embodiments, aiming to address the technical problem of improving the reliability of data transmission in aerospace environments. Compared with the prior art, the beneficial effects of the dual-channel data transmission method provided in this application are the same as those of the dual-channel data transmission method described in the above embodiments, and other technical features of this data transmission device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here. This application also provides an electronic device, which can be a playback device. The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the dual-channel data transmission method described in the above embodiments.
[0112] The following is for reference. Figure 7 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0113] like Figure 7As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device allows the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although the diagrams show electronic devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.
[0114] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.
[0115] The electronic device provided in this application addresses the technical problem of improving the reliability of data transmission in aerospace environments by employing the dual-channel data transmission method described in Embodiment 1 above. Compared with the prior art, the beneficial effects of the product flow data allocation provided in this application embodiment are the same as those of the dual-channel data transmission method provided in the above embodiments, and other technical features in this data transmission device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here. It should be understood that the various parts of this disclosure can be implemented using hardware, software, firmware, or combinations thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples. The above descriptions are merely specific embodiments of this application, but the protection scope of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims. This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the dual-channel data transmission method described in Embodiment 1 above. The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, apparatuses, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable EPROM (Electrical Programmable Read Only Memory) or flash memory, optical fiber, portable compact disk CD-ROM (compact disc read-only memory), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution device, apparatus, or apparatus. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof. The aforementioned computer-readable storage medium may be included in an electronic device; or it may exist independently and not assembled into an electronic device.The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by an electronic device, the electronic device causes the electronic device to: control the network center device to perform a scanning operation; control the network center device to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, so that the trusted aerospace equipment can transmit data to the network center device via the dual-channel wireless Wi-Fi connection; wherein the network center device transmits the data sent by the trusted aerospace equipment to a controller, and the controller is used to interact with the ground control center corresponding to the aerospace transmission system.
[0116] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a LAN (local area network) or WAN (wide area network)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0117] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based device that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0118] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the specific unit. The computer-readable storage medium provided in this application stores computer-readable program instructions for executing the aforementioned dual-channel data transmission method, aiming to address the technical problem of improving the reliability of data transmission in aerospace environments. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiments of this application are the same as the beneficial effects of the dual-channel data transmission method provided in the above embodiments, and will not be repeated here.
[0119] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the dual-channel data transmission method described above. The computer program product provided in this application addresses the technical problem of improving the reliability of data transmission in aerospace environments. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the dual-channel data transmission method provided in the above embodiments, and will not be repeated here. The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made based on the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.
Claims
1. A data transmission method based on dual channels, characterized in that, Applied to aerospace transmission systems, the aerospace transmission system is equipped with a network center device and a controller, the network center device and the controller are connected via a dual-channel wireless Wi-Fi connection, the method comprising: Control the network center device to perform a scanning operation; The network center device is controlled to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, so that the trusted aerospace equipment can transmit data to the network center device through the dual-channel wireless Wi-Fi connection. The network center device transmits the data sent by the trusted aerospace equipment to the controller, which is used to interact with the ground control center corresponding to the aerospace transmission system. If it is detected that both the first data received by the preset receiving end in the first channel and the second data received in the second channel have lost data bytes, target reference data and target recovery data are determined from the first data and the second data, wherein the preset receiving end is a network center device or controller; For each lost byte in the target recovery data, determine the lost position of the lost byte in the target recovery data, and find the compensation byte corresponding to the lost position in the target reference data; The compensation bytes are applied to the missing byte positions of the target recovery data to recover the target recovery data; Among them, the target data with the fewest missing fields in the first data and the second data is the target recovery data, and the target data with the most missing fields in the first data and the second data is the target reference data. The steps for controlling the network center device to perform scanning operations include: The network center device is controlled to send broadcast signals to the outside world; The network center device receives response signals sent from outside based on the broadcast signal, so that the network center device can support receiving network requests from aerospace equipment that sends the response signals; The aerospace transmission system also includes multiple aerospace devices. These devices are used to determine whether a response signal needs to be sent back to the network center device based on the data content type in the broadcast signal. When the data content type in the broadcast signal includes the data type collected by the aerospace devices, a response signal is sent back to the network center device so that the network center device can support receiving the networking request from the aerospace devices.
2. The method as described in claim 1, characterized in that, The steps of controlling the network center device to connect with the scanned trusted aerospace equipment via dual-channel wireless Wi-Fi include: When the network center device receives a network request, it obtains the aerospace equipment identifier from the network request and sends the network identifier to the trusted aerospace equipment corresponding to the aerospace equipment identifier, so as to control the network center device to establish a wireless Wi-Fi dual-channel connection with the trusted aerospace equipment.
3. The method as described in claim 1, characterized in that, After the step of controlling the network center device to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, the method further includes: The network center device receives the key sent by the trusted aerospace equipment. The environmental data collected by the trusted aerospace equipment and the key are encrypted and transmitted to the network center equipment. When the network center device receives the encrypted environmental data, it parses the encrypted environmental data using the key and sends a data reception signal back to the trusted aerospace equipment.
4. The method as described in claim 1, characterized in that, The dual-channel wireless Wi-Fi system includes a first channel and a second channel; after the step of controlling the network center device to connect with the scanned trusted aerospace equipment via the dual-channel wireless Wi-Fi system, the following is included: When a data transmission request is triggered by a preset transmitter, the preset transmitter is controlled to continuously transmit data in the first and second channels; The preset transmitting end transmits the same data in the first channel and the second channel, and the preset transmitting end is a trusted aerospace device or a network center device.
5. The method according to any one of claims 1-4, characterized in that, The dual-channel wireless Wi-Fi system includes a first channel (2.4G Wi-Fi channel) and a second channel (5G Wi-Fi channel).
6. A data transmission device based on dual channels, characterized in that, An application in aerospace transmission systems, wherein the aerospace transmission system is equipped with a network center device and a controller, the network center device and the controller being connected via dual-channel wireless Wi-Fi communication, the device comprising: The scanning module is used to control the network center device to perform scanning operations; The connection module is used to control the network center device to connect with the scanned trusted aerospace equipment via a dual-channel wireless Wi-Fi connection, so that the trusted aerospace equipment can transmit signals to the network center device through the dual-channel wireless Wi-Fi connection. The network center equipment transmits the signals sent by the trusted aerospace equipment to the controller, which is used to interact with the ground control center corresponding to the aerospace transmission system. The connection module is further configured to, when detecting that both the first data received by the preset receiving end in the first channel and the second data received in the second channel have data byte loss, determine target reference data and target recovery data in the first data and the second data, wherein the preset receiving end is a network center device or controller; for each lost byte in the target recovery data, determine the lost position of the lost byte in the target recovery data, and find the compensation byte corresponding to the lost position in the target reference data; compensate the lost byte position of the target recovery data to recover the target recovery data; wherein the target data with the fewest lost fields in the first data and the second data is the target recovery data, and the target data with the most lost fields in the first data and the second data is the target reference data; The scanning module is also used to control the networking center device to send broadcast signals to the outside world; and to receive response signals sent by the outside based on the broadcast signals through the networking center device, so that the networking center device can support receiving networking requests from aerospace equipment that send the response signals. The aerospace transmission system also includes multiple aerospace devices. These devices are used to determine whether a response signal needs to be sent back to the network center device based on the data content type in the broadcast signal. When the data content type in the broadcast signal includes the data type collected by the aerospace devices, a response signal is sent back to the network center device so that the network center device can support receiving the networking request from the aerospace devices.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the steps of the dual-channel data transmission method according to any one of claims 1 to 5.
8. A readable storage medium, characterized in that, The readable storage medium is a computer-readable storage medium, on which a program implementing a dual-channel data transmission method is stored. The program implementing the dual-channel data transmission method is executed by a processor to implement the steps of the dual-channel data transmission method as described in any one of claims 1 to 5.