Data transmission method and apparatus, terminal, and storage medium
By adjusting the use of subcarriers in the WiFi transmission protocol, the problem of spectrum resource contention when the router communicates with multiple terminals is solved, improving communication quality and efficiency, reducing latency, and optimizing user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI LIANHONG TECH CO LTD
- Filing Date
- 2022-08-22
- Publication Date
- 2026-06-16
Smart Images

Figure CN115551009B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and more specifically, to a data transmission method, apparatus, terminal, and storage medium. Background Technology
[0002] In recent years, the concept of the Internet of Things (IoT) has gradually emerged, and IoT devices used in smart homes, industrial IoT, and other fields are proliferating. IoT devices typically use communication protocols such as Wi-Fi, Bluetooth, and Zigbee to connect with control devices to receive instructions and execute corresponding operations.
[0003] Currently, time-division multiplexing technology is mainly used for scenarios where routers communicate with multiple terminals to achieve communication between the router and the first and second terminals.
[0004] However, when the router in the above method communicates with the first terminal and the second terminal, the first terminal and the second terminal may compete for spectrum resources, resulting in a decrease in communication quality and efficiency. Summary of the Invention
[0005] The main objective of this application is to provide a data transmission method, apparatus, terminal, and storage medium to solve the problems of reduced communication quality and efficiency in related technologies.
[0006] To achieve the above objectives, firstly, this application provides a data transmission method, comprising:
[0007] Based on the first data, determine the subcarrier vector;
[0008] Based on the subcarriers and subcarrier vectors corresponding to the WiFi transmission protocol, the target effective subcarriers are determined.
[0009] On the target effective subcarrier, the second data is processed based on the WiFi transmission protocol to obtain the data to be sent.
[0010] In one possible implementation, the subcarrier vector is determined based on the first data, including:
[0011] The first data is encoded and split sequentially to obtain multiple data segments;
[0012] Multiple data segments are used as subcarrier vectors.
[0013] In one possible implementation, the subcarrier includes a first subcarrier and a second subcarrier;
[0014] Based on the subcarriers and subcarrier vectors corresponding to the WiFi transmission protocol, the target effective subcarriers are determined, including:
[0015] The first subcarrier is encoded according to the subcarrier vector to obtain the effective subcarrier corresponding to the first subcarrier;
[0016] The effective subcarriers corresponding to the first subcarrier and the second subcarrier are combined to obtain the target effective subcarrier.
[0017] In one possible implementation, the second data is processed on the target effective subcarrier based on the WiFi transmission protocol to obtain the data to be transmitted, including:
[0018] On the target effective subcarrier, the second data is sequentially subjected to serial-to-parallel conversion, modulation, IDFT, and parallel-to-serial conversion based on the WiFi transmission protocol to obtain the data to be transmitted.
[0019] In one possible implementation, after processing the second data on the target effective subcarrier based on the WiFi transmission protocol to obtain the data to be transmitted, the method further includes:
[0020] The data to be transmitted is sent to the first terminal and the second terminal via an antenna, and the first terminal and the second terminal demodulate the data to be transmitted to obtain the target data.
[0021] In one possible implementation, the data to be transmitted is sent to a first terminal via an antenna, and the first terminal demodulates the data to obtain the target data, including:
[0022] The data to be transmitted is sent to the first terminal through the antenna, and the first terminal processes the data to be transmitted through the downmixer and A / D converter to obtain the digital quantity corresponding to the data to be transmitted.
[0023] Perform a DFT on the digital quantity to obtain the target data, where the target data is a subcarrier vector.
[0024] In one possible implementation, after performing a DFT on the digital quantity to obtain the target data, the following steps are also included:
[0025] Invert the subcarrier vector to obtain the idle subcarrier and perform ACK back transmission on the idle subcarrier.
[0026] In one possible implementation, the data to be transmitted is sent to a second terminal via an antenna, and the second terminal demodulates the data to obtain the target data, including:
[0027] The data to be transmitted is sent to the second terminal through the antenna, and the second terminal processes the data to be transmitted through the downmixer and A / D converter to obtain the digital quantity corresponding to the data to be transmitted.
[0028] The digital data is sequentially subjected to serial-to-parallel conversion, DFT, demodulation, and parallel-to-serial conversion to obtain the target data, which is a subcarrier vector.
[0029] In one possible implementation, after sequentially performing serial-to-parallel conversion, DFT, demodulation, and parallel-to-serial conversion on the digital quantity to obtain the target data, the following steps are also included:
[0030] After sequentially performing serial-to-parallel conversion and DFT on the data of the target effective subcarrier, amplitude judgment is performed to obtain the target effective subcarrier;
[0031] ACK is transmitted back based on the target valid subcarrier.
[0032] Secondly, embodiments of the present invention provide a data transmission device, comprising:
[0033] The vector determination module is used to determine the subcarrier vector based on the first data;
[0034] The effective carrier determination module is used to determine the target effective subcarrier based on the subcarrier and subcarrier vector corresponding to the WiFi transmission protocol;
[0035] The data determination module is used to process the second data on the target effective subcarrier based on the WiFi transmission protocol to obtain the data to be sent.
[0036] Thirdly, embodiments of the present invention provide a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above data transmission methods.
[0037] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above data transmission methods.
[0038] This invention provides a data transmission method, apparatus, terminal, and storage medium, comprising: first, determining a subcarrier vector based on first data; then, determining a target effective subcarrier based on the subcarrier and subcarrier vector corresponding to the WiFi transmission protocol; and finally, processing the second data on the target effective subcarrier according to the WiFi transmission protocol to obtain data to be transmitted. Based on the WiFi transmission protocol, this invention determines the usage of subcarriers through subcarrier vectors, enabling the terminal to communicate with the router based on the subcarrier usage. Furthermore, when the router communicates with multiple terminals simultaneously, it avoids the reduction in communication quality and efficiency caused by multiple terminals competing for spectrum resources, while also reducing WiFi transmission latency, optimizing the user experience, and saving network resources. Attached Figure Description
[0039] The accompanying drawings, which form part of this application, are used to provide a further understanding of the application and to make other features, objects, and advantages of the application more apparent. The illustrative embodiments and descriptions of this application are used to explain the application and do not constitute an undue limitation of the application. In the drawings:
[0040] Figure 1 This is a flowchart illustrating the implementation of a data transmission method according to an embodiment of the present invention;
[0041] Figure 2 This is a schematic diagram of the spectrum of a subcarrier of a symbol provided in an embodiment of the present invention;
[0042] Figure 3 This is a scene diagram of a data transmission method provided in an embodiment of the present invention;
[0043] Figure 4 This is a schematic diagram of the spectrum of a subcarrier of a symbol provided in another embodiment of the present invention;
[0044] Figure 5 This is a flowchart illustrating the implementation of a data transmission method according to another embodiment of the present invention;
[0045] Figure 6 This is a flowchart illustrating the implementation of a data transmission method according to another embodiment of the present invention;
[0046] Figure 7 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present invention;
[0047] Figure 8 This is a schematic diagram of the terminal provided in an embodiment of the present invention. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0049] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in sequences other than those illustrated or described herein.
[0050] It should be understood that in the various embodiments of the present invention, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0051] It should be understood that in this invention, "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0052] It should be understood that in this invention, "multiple" refers to two or more. "And / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, "and / or B" can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "Contains A, B, and C", "Contains A, B, and C" means that all three A, B, and C are contained; "Contains A, B, or C" means that one of A, B, and C is contained; "Contains A, B, and / or C" means that any one, two, or three of A, B, and C are contained.
[0053] It should be understood that in this invention, "B corresponding to A", "B corresponding to A", "A and B correspond", or "B and A correspond" means that B is associated with A, and B can be determined based on A. Determining B based on A does not mean determining B solely based on A; B can also be determined based on A and / or other information. Matching A and B is defined as a similarity between A and B that is greater than or equal to a preset threshold.
[0054] Depending on the context, "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection."
[0055] The technical solution of the present invention will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0056] Currently, commonly used communication methods for IoT devices, such as WiFi, Bluetooth, and Zigbee, all have their own shortcomings. WiFi consumes a lot of power, occupies the spectrum resources of other WiFi STAs, and is also relatively expensive. Bluetooth and Zigbee require additional gateway devices or additional control chips in routers and other devices, and they use the same frequency band as Wi-Fi 2.4G, which can lead to problems such as spectrum contention and interference with WiFi devices.
[0057] Taking wireless communication as an example, the router transmits data to the terminal device via wireless (WiFi) communication to control the terminal device, etc. The data transmission process is as follows: Figure 1 As shown in the diagram, during wireless communication, when the transmitting end (such as a router) transmits data to the terminal (such as terminal 1), the transmitting end typically encodes the data to be sent to terminal 1 through serial-to-parallel conversion, modulation, inverse discrete Fourier transform, and parallel-to-serial conversion. Then, it transmits the signal through a digital-to-analog converter and an up-mixer. The receiving end then processes the received signal through the reverse of the above-described processing steps to obtain the final data.
[0058] After the above processing, the transmitting end will send the signal to terminal 1 via the antenna. Taking 802.11n 20MHz as an example, the final waveform output by the antenna consists of a series of subcarriers spaced at 0.3125MHz intervals, forming a total bandwidth of 20MHz. Figure 2 This is a schematic diagram of the spectrum of a symbol composed of 52 subcarriers under 16QAM modulation.
[0059] However, when the transmitter communicates with multiple terminals, the multiple terminals will compete for spectrum resources. In other words, while communicating with one terminal, it is impossible to communicate with another terminal, which leads to a reduction in communication quality and efficiency.
[0060] To address the aforementioned issues, this application provides a data transmission method that, based on the WiFi transmission protocol, adjusts the usage of subcarriers to enable the router to communicate simultaneously with multiple terminals without any frequency resource contention or signal interference among the terminals.
[0061] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.
[0062] The data transmission method provided in this application can be applied to, for example... Figure 3In the application environment shown, router 302 communicates with the first terminal (WiFi-mask terminal) 304 and the second terminal (WiFi terminal) 306. Router 302 first determines the subcarrier vector based on the first data corresponding to WiFi-mask terminal 304. Then, based on the subcarrier and subcarrier vector corresponding to the WiFi transmission protocol, it determines the target effective subcarrier. Next, on the target effective subcarrier, it processes the second data corresponding to WiFi terminal 306 according to the WiFi transmission protocol to obtain the data to be transmitted. Finally, it transmits the data to be transmitted to WiFi-mask terminal 304 and WiFi terminal 306 through antennas, enabling WiFi-mask terminal 304 and WiFi terminal 306 to determine the target data based on the data to be transmitted. Router 302 communicates with the first terminal (WiFi-mask terminal) 304 and the second terminal (WiFi terminal) 306 via WiFi. WiFi-mask terminal 304 can be a smart light bulb, smart switch, or other device, while WiFi terminal 306 can be a user computer or other client device, or a cloud server.
[0063] In one embodiment, such as Figure 5 As shown, a data transmission method is provided, which is applied to... Figure 3 The scenario includes the following steps:
[0064] Step S501: Determine the subcarrier vector based on the first data.
[0065] The first data is the data that will be sent to the first terminal (WiFi-mask terminal) 304.
[0066] This application uses subcarrier vectors to adjust subcarrier usage, enabling the router to communicate simultaneously with both WiFi-mask terminal 304 and WiFi terminal 306. Therefore, the subcarrier vectors need to be determined first. The main steps are as follows: First, the first data to be sent to the first terminal is encoded and split into multiple data segments. Each data segment represents a symbol of the first terminal data, i.e., the subcarrier vector.
[0067] Specifically, taking 0 / 1 encoding as an example, let the first data be
[12345] . First, encode the first data
[12345] , the encoding result is [00010010001101000101]. Then, split the encoding result, for example, into two data segments, [0001001000] and [1101000101]. Then, the subcarrier vector M of the first symbol is [0001001000], and the subcarrier vector M of the second symbol is [1101000101].
[0068] It should be noted that in this application, 0 in the vector represents an idle subcarrier, while 1 represents a valid subcarrier. For example... Figure 4 As shown, Figure 4 It shows Figure 3 A schematic diagram of the spectrum of a subcarrier of a symbol of data transmitted from the router to the terminal, wherein, Figure 4 The subcarrier spectrum in the data includes idle subcarriers and active subcarriers, while Figure 2 The subcarrier spectrum shown contains only valid subcarriers.
[0069] Step S502: Determine the target effective subcarrier based on the subcarrier and subcarrier vector corresponding to the WiFi transmission protocol.
[0070] The subcarriers corresponding to the WiFi transmission protocol include a first subcarrier and a second subcarrier. Taking 11n 20MHz as an example, the protocol specifies 52 subcarriers. These 52 subcarriers are allocated, with a portion selected as WiFi-mask transmission subcarriers (the first subcarriers) and the remaining subcarriers as WiFi transmission subcarriers (the second subcarriers). The number of first and second subcarriers is set according to specific circumstances and is not limited here.
[0071] To determine the target effective subcarrier, the following steps are required: the first subcarrier is encoded according to the subcarrier vector to obtain the effective subcarrier corresponding to the first subcarrier; then the effective subcarrier corresponding to the first subcarrier and the second subcarrier are merged to obtain the target effective subcarrier.
[0072] Specifically, taking 11n 20MHz as an example, the protocol specifies 52 subcarriers. Ten subcarriers are selected as WiFi-mask transmission subcarriers, while the remaining subcarriers continue to follow the WiFi protocol for transmission, thus ensuring minimum throughput. Let the first subcarrier be subcarriers 5-14, and the second subcarrier be the remaining 42 subcarriers. First, assign a value to the first subcarrier according to the subcarrier vector to obtain the first subcarrier [0001001000]. Since 1 represents an effective subcarrier, the effective subcarriers corresponding to the encoded first subcarrier are subcarriers 8 and 11. Then, the effective subcarriers and the second subcarrier are merged to obtain the target effective subcarriers, namely subcarriers 1-4, 8, 11, and 15-42. The subcarrier usage can be represented as: [11110001001000111111111111111111111111111111111111111111111111111].
[0073] Step S503: On the target effective subcarrier, process the second data based on the WiFi transmission protocol to obtain the data to be sent.
[0074] The second data is the data that will be sent to the second terminal 306.
[0075] Specifically, once the target valid subcarrier is determined, the second data needs to be sequentially processed on the target valid subcarrier using the WiFi transmission protocol, including serial-to-parallel conversion, modulation, inverse discrete Fourier transform (IDFT), and parallel-to-serial conversion, to obtain the data to be transmitted. Furthermore, serial-to-parallel conversion, modulation, IDFT, and parallel-to-serial conversion are all conventional processing methods and will not be elaborated upon here.
[0076] In addition, once the data to be sent is determined, it is also transmitted to the terminal via the antenna, enabling the terminal to determine the target data based on the data to be sent.
[0077] Specifically, in order to obtain the target data, the terminal needs to demodulate the received data to be transmitted, that is, send the data to be transmitted to the terminal through the antenna, so that the terminal can demodulate the data to be transmitted based on a preset method to obtain the target data.
[0078] The following example, using a terminal including a first terminal 304 and a second terminal 306, illustrates the process by which the first terminal 304 and the second terminal 306 determine the target data based on the data to be sent. Figure 6 As shown, the details are as follows:
[0079] The transmitting end sends the data to be transmitted to the first terminal via an antenna. Figure 6 After terminal 1) 304, the first terminal 304 processes the data to be transmitted through a downmixer and an analog-to-digital converter (A / D converter) to obtain the digital quantity corresponding to the data to be transmitted. Then, the digital quantity is subjected to a Discrete Fourier Transform (DFT) to obtain the target data, where the target data is a subcarrier vector.
[0080] After the first terminal 304 receives the target data, it inverts the subcarrier vector to obtain an idle subcarrier and sends an acknowledgment character (ACK) back on the idle subcarrier. The ACK back transmission means that the first terminal 304 sends a confirmation message to the router 302 acknowledging that the data has been received.
[0081] The transmitting end sends the data to be transmitted to the second terminal via an antenna. Figure 6After terminal 2)306 in the middle, the second terminal 306 processes the data to be transmitted through a downmixer and an A / D converter to obtain the digital quantity corresponding to the data to be transmitted. Then, the digital quantity is sequentially converted from serial to parallel, DFT, demodulated and converted from parallel to serial to obtain the second data, and the subcarrier vector is obtained by the presence or absence of amplitude.
[0082] After the second terminal 306 obtains the target data, it sequentially performs serial-to-parallel conversion and DFT on the data of the target effective subcarrier, and then performs amplitude judgment to obtain the target effective subcarrier. Then, it performs ACK back transmission based on the target effective subcarrier.
[0083] This invention provides a data transmission method, comprising: first, determining a subcarrier vector based on first data; then, determining a target effective subcarrier based on the subcarrier and subcarrier vector corresponding to the WiFi transmission protocol; and finally, processing the second data on the target effective subcarrier according to the WiFi transmission protocol to obtain data to be transmitted. Based on the WiFi transmission protocol, this invention determines the usage of subcarriers through subcarrier vectors, enabling the terminal to communicate with the router based on the subcarrier usage. Furthermore, when the router communicates with multiple terminals simultaneously, it avoids the reduction in communication quality and efficiency caused by multiple terminals competing for spectrum resources, while also reducing WiFi transmission latency, optimizing the user experience, and saving network resources.
[0084] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0085] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.
[0086] Figure 7 The diagram illustrates a data transmission device according to an embodiment of the present invention. For ease of explanation, only the parts relevant to the embodiment are shown. The data transmission device includes a vector determination module 71, an effective carrier determination module 72, and a data determination module 73, as detailed below:
[0087] Vector determination module 71 is used to determine the subcarrier vector based on the first data;
[0088] The effective carrier determination module 72 is used to determine the target effective subcarrier based on the subcarrier and subcarrier vector corresponding to the WiFi transmission protocol;
[0089] The data determination module 73 is used to process the second data on the target effective subcarrier based on the WiFi transmission protocol to obtain the data to be sent.
[0090] In one possible implementation, the vector determination module 71 includes:
[0091] The first data processing submodule is used to encode and split the first data sequentially to obtain multiple data segments;
[0092] The vector determination submodule is used to use multiple data segments as subcarrier vectors.
[0093] In one possible implementation, the subcarrier includes a first subcarrier and a second subcarrier;
[0094] Effective carrier determination module 72 includes:
[0095] The encoding module is used to encode the first subcarrier according to the subcarrier vector to obtain the effective subcarrier corresponding to the first subcarrier.
[0096] The effective carrier determination submodule is used to merge the effective subcarriers corresponding to the first subcarrier and the second subcarrier to obtain the target effective subcarrier.
[0097] In one possible implementation, the data determination module 73 includes:
[0098] The second data processing submodule is used to sequentially perform serial-to-parallel conversion, modulation, IDFT, and parallel-to-serial conversion on the second data on the target effective subcarrier based on the WiFi transmission protocol to obtain the data to be transmitted.
[0099] In one possible implementation, after the data determination module 73, the following is also included:
[0100] The data transmission module is used to transmit the data to be transmitted to the first terminal and the second terminal via an antenna, so that the first terminal and the second terminal can demodulate the data to be transmitted to obtain the target data.
[0101] In one possible implementation, the data transmission module includes:
[0102] The first data processing submodule is used to transmit the data to be transmitted to the first terminal through the antenna, so that the first terminal processes the data to be transmitted through the downmixer and the A / D converter to obtain the digital quantity corresponding to the data to be transmitted.
[0103] The first target data determination submodule is used to perform DFT on the digital quantity to obtain target data, where the target data is a subcarrier vector.
[0104] In one possible implementation, after the first target data determination submodule, it also includes:
[0105] The first backhaul submodule is used to invert the subcarrier vector to obtain an idle subcarrier and perform ACK backhaul on the idle subcarrier.
[0106] In one possible implementation, the data transmission module includes:
[0107] The second data processing submodule is used to transmit the data to be transmitted to the second terminal through the antenna, so that the second terminal processes the data to be transmitted through the downmixer and A / D converter to obtain the digital quantity corresponding to the data to be transmitted.
[0108] The second target data determination submodule is used to sequentially perform serial-to-parallel conversion, DFT, demodulation, and parallel-to-serial conversion on the digital quantity to obtain the target data.
[0109] In one possible implementation, after the second target data determination submodule, it also includes:
[0110] The third data processing submodule is used to perform serial-to-parallel conversion and DFT on the data of the target effective subcarrier in sequence, and then perform amplitude judgment to obtain the target effective subcarrier.
[0111] The second backhaul unit is used to perform ACK backhaul based on the target valid subcarrier.
[0112] Figure 8 This is a schematic diagram of a terminal provided in an embodiment of the present invention. Figure 8 As shown, the terminal 8 in this embodiment includes: a processor 81, a memory 82, and a computer program 83 stored in the memory 82 and executable on the processor 81. When the processor 81 executes the computer program 83, it implements the steps in the various data transmission method embodiments described above, for example... Figure 5 Steps 501 to 503 are shown. Alternatively, when processor 81 executes computer program 83, it implements the functions of each module / unit in the above-described embodiments of the data transmission device, for example... Figure 7 The functions of modules / units 71 to 73 shown.
[0113] The present invention also provides a readable storage medium storing a computer program, which, when executed by a processor, is used to implement the data transmission methods provided in the various embodiments described above.
[0114] The readable storage medium can be a computer storage medium or a communication medium. A communication medium includes any medium that facilitates the transfer of computer programs from one location to another. A computer storage medium can be any available medium accessible to a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application-Specific Integrated Circuit (ASIC). Alternatively, the ASIC can be located in a user equipment. Of course, the processor and the readable storage medium can also exist as discrete components in a communication device. The readable storage medium can be a read-only memory (ROM), random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0115] The present invention also provides a program product including executable instructions stored in a readable storage medium. At least one processor of the device can read the executable instructions from the readable storage medium, and the execution of the executable instructions by the at least one processor causes the device to implement the data transmission methods provided in the various embodiments described above.
[0116] In the embodiments of the above-described device, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.
[0117] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A data transmission method, characterized in that, include: Based on the first data, determine the subcarrier vector; Based on the subcarriers corresponding to the WiFi transmission protocol and the subcarrier vectors, the target effective subcarriers are determined; On the target effective subcarrier, the second data is processed based on the WiFi transmission protocol to obtain the data to be sent; On the target effective subcarrier, after processing the second data based on the WiFi transmission protocol to obtain the data to be transmitted, the process further includes: The data to be transmitted is transmitted to a first terminal and a second terminal via an antenna, and the first terminal and the second terminal demodulate the data to be transmitted to obtain the target data. The subcarrier includes a first subcarrier and a second subcarrier; determining the target effective subcarrier based on the subcarrier corresponding to the WiFi transmission protocol and the subcarrier vector includes: encoding the first subcarrier according to the subcarrier vector to obtain the effective subcarrier corresponding to the first subcarrier; merging the effective subcarrier corresponding to the first subcarrier and the second subcarrier to obtain the target effective subcarrier; The step of transmitting the data to be transmitted to a first terminal via an antenna, and demodulating the data to be transmitted to obtain the target data, includes: transmitting the data to be transmitted to a first terminal via an antenna, and having the first terminal process the data to be transmitted via a downmixer and an A / D converter to obtain a digital quantity corresponding to the data to be transmitted; performing a DFT on the digital quantity to obtain the target data, wherein the target data is the subcarrier vector; The step of transmitting the data to be transmitted to the second terminal via an antenna, and then demodulating the data to be transmitted to obtain the target data, includes: transmitting the data to be transmitted to the second terminal via an antenna, and then processing the data to be transmitted via a downmixer and an A / D converter to obtain the digital quantity corresponding to the data to be transmitted; and sequentially performing serial-to-parallel conversion, DFT, demodulation, and parallel-to-serial conversion on the digital quantity to obtain the target data.
2. The data transmission method as described in claim 1, characterized in that, The step of determining the subcarrier vector based on the first data includes: The first data is sequentially encoded and split to obtain multiple data segments; The plurality of data segments are used as the subcarrier vector.
3. The data transmission method as described in claim 1, characterized in that, On the target effective subcarrier, the second data is processed based on the WiFi transmission protocol to obtain the data to be transmitted, including: On the target effective subcarrier, the second data is sequentially subjected to serial-to-parallel conversion, modulation, IDFT, and parallel-to-serial conversion based on the WiFi transmission protocol to obtain the data to be transmitted.
4. The data transmission method as described in claim 1, characterized in that, After performing a DFT on the digital quantity to obtain the target data, the method further includes: The subcarrier vector is inverted to obtain an idle subcarrier, and an ACK is transmitted back on the idle subcarrier.
5. The data transmission method as described in claim 1, characterized in that, After sequentially performing serial-to-parallel conversion, DFT, demodulation, and parallel-to-serial conversion on the digital quantity to obtain the target data, the process further includes: After sequentially performing serial-to-parallel conversion and DFT on the data of the target effective subcarrier, amplitude judgment is performed to obtain the target effective subcarrier; ACK back transmission is performed based on the target valid subcarrier.
6. A data transmission apparatus for implementing the data transmission method as described in any one of claims 1 to 5, characterized in that, include: The vector determination module is used to determine the subcarrier vector based on the first data; The effective carrier determination module is used to determine the target effective subcarrier based on the subcarrier corresponding to the WiFi transmission protocol and the subcarrier vector; The data determination module is used to process the second data on the target effective subcarrier based on the WiFi transmission protocol to obtain the data to be sent.
7. A terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the data transmission method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the data transmission method as described in any one of claims 1 to 5.