Data transmission method and device, electronic equipment, medium and computer program product

By obtaining the signal strength of the WiFi network and the utilization rate of the data transmission channel and choosing an appropriate transmission method, the problem of low transmission efficiency caused by WiFi signal attenuation is solved, and more stable and reliable WiFi data transmission is achieved.

CN119012231APending Publication Date: 2024-11-22VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000121.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When electronic devices transmit WiFi data, the signal attenuation caused by obstacles such as walls and doors leads to poor transmission efficiency.

Method used

By obtaining the signal strength of the WiFi network and the utilization rate of the data transmission channel, selecting appropriate transmission methods, including modulating data to multiple subcarriers to send or using multiple antennas to send/receive data packets, to improve signal coverage and anti-interference capabilities. .

Benefits of technology

It improves the stability and reliability of data transmission of electronic devices under WiFi network, thereby improving the transmission efficiency of WiFi data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012231A_ABST
    Figure CN119012231A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device, electronic equipment, a medium and a computer program product, and belongs to the technical field of communication, and the method comprises the steps that first information is acquired, and the first information comprises at least one of the following items: the signal strength of a WiFi network and the utilization rate of a data transmission channel of the WiFi network; under the condition that the first information meets a target condition, transmitting the data packet according to a target transmission mode matched with the target condition; wherein the target transmission mode comprises any one of the following modes: the first transmission mode is that data contained in a first data packet to be transmitted is modulated to N subcarriers to be sent, and a lead code contained in the first data packet comprises a first field and a second field; the second transmission mode is that when the electronic equipment is transmitting end equipment, multiple antennas are adopted to transmit the data packet, or when the electronic equipment is receiving end equipment, multiple antennas are adopted to receive the data packet; the third transmission mode comprises the first transmission mode and the second transmission mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a data transmission method, device, electronic device, medium and computer program product. Background Art

[0002] With the continuous development of communication technology, the functions of electronic devices are becoming more and more abundant. For example, electronic devices can perform WiFi data transmission through a Wireless Fidelity (WiFi) network.

[0003] However, during the process of WiFi data transmission by electronic devices, WiFi signals are often attenuated due to obstacles such as walls, doors or other furniture, thus resulting in poor transmission efficiency of WiFi data. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a data transmission method, device, electronic device, medium and computer program product, which can improve the transmission efficiency of WiFi data.

[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to an electronic device, and the method includes: obtaining first information, the first information includes at least one of the following: the signal strength of the WiFi network to which the electronic device is connected, and the utilization rate of the data transmission channel of the WiFi network; when the first information meets the target condition, transmitting the data packet according to the target transmission mode that matches the target condition; wherein the target transmission mode includes any one of the following: the first transmission mode, the second transmission mode, and the third transmission mode; the first transmission mode is: modulating the data contained in the first data packet to be transmitted onto N subcarriers for transmission, the preamble code contained in the first data packet includes a first field and a second field, the transmission power of the first field is greater than the first threshold, the second field includes at least two repeated subfields, and N is a positive integer; the second transmission mode is: when the electronic device is a transmitting device, multiple antennas are used to send the data packet, or, when the electronic device is a receiving device, multiple antennas are used to receive the data packet; the third transmission mode includes the first transmission mode and the second transmission mode.

[0006] In a second aspect, an embodiment of the present application provides a data transmission device, which includes: an acquisition module and a transmission module; the acquisition module is used to acquire first information, and the first information includes at least one of the following: the signal strength of the WiFi network to which the electronic device is connected, and the utilization rate of the data transmission channel of the WiFi network; the transmission module is used to transmit a data packet according to a target transmission mode that matches the target condition when the first information acquired by the acquisition module meets the target condition; wherein the target transmission mode includes any one of the following: a first transmission mode, a second transmission mode, and a third transmission mode; the first transmission mode is: modulating the data contained in the first data packet to be transmitted onto N subcarriers for transmission, and the preamble code contained in the first data packet includes a first field and a second field, the transmission power of the first field is greater than a first threshold, and the second field includes at least two repeated subfields, and N is a positive integer; the second transmission mode is: when the electronic device is a transmitting device, multiple antennas are used to send data packets, or, when the electronic device is a receiving device, multiple antennas are used to receive data packets; the third transmission mode includes the first transmission mode and the second transmission mode.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0011] In an embodiment of the present application, an electronic device obtains first information, and the first information includes at least one of the following: signal strength of a WiFi network to which the electronic device is connected, and utilization rate of a data transmission channel of the WiFi network; when the first information satisfies a target condition, a data packet is transmitted in a target transmission mode that matches the target condition; wherein the target transmission mode includes any one of the following: a first transmission mode, a second transmission mode, and a third transmission mode; the first transmission mode is: modulating data contained in a first data packet to be transmitted onto N subcarriers for transmission, a preamble contained in the first data packet includes a first field and a second field, a transmission power of the first field is greater than a first threshold, the second field includes at least two repeated subfields, and N is a positive integer; the second transmission mode is: when the electronic device is a transmitting device, multiple antennas are used to send data packets, or, when the electronic device is a receiving device, multiple antennas are used to receive data packets; the third transmission mode includes the first transmission mode and the second transmission mode. Through this solution, the electronic device can select a suitable transmission optimization method according to at least one of the signal strength of the connected WiFi network and the utilization rate of the data transmission channel of the WiFi network, and improve the coverage and anti-interference capability of the WiFi network by processing the data packets to be sent or using multiple antennas to receive data packets, thereby improving the stability and reliability of data transmission of electronic devices under the WiFi network, and further improving the transmission efficiency of WiFi data. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is one of the flow charts of a data transmission method provided in an embodiment of the present application;

[0013] Figure 2 is a schematic diagram of dual-carrier modulation provided in an embodiment of the present application;

[0014] Figure 3 is a schematic diagram of a data packet frame format provided in an embodiment of the present application;

[0015] Figure 4 This is a transmission schematic diagram of space-time block coding provided by an embodiment of the present application;

[0016] Figure 5 It is a transmission schematic diagram of a multi-antenna receiving a data packet provided in an embodiment of the present application;

[0017] Figure 6 This is the second flowchart of a data transmission method provided in an embodiment of the present application;

[0018] Figure 7 It is a structural schematic diagram of a data transmission device provided in an embodiment of the present application;

[0019] Figure 8This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;

[0020] Fig. 9 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0022] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0023] The terms "at least one (item)", "at least one of" and the like in the specification of the present application refer to any one, any two or a combination of more than two of the objects contained therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)". The logo in the present application is text, symbol, image, etc. used to indicate information, and logos or other containers can be used as carriers for displaying information, including but not limited to text logos, image logos, symbol logos, etc.

[0024] The data transmission method, device, electronic device, medium and computer program product provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0025] The data transmission method, device, electronic device, medium, and computer program product provided in the embodiments of the present application can be applicable to scenarios where electronic devices transmit data in a WiFi network, especially scenarios where electronic devices transmit data in a weak signal area of ​​a WiFi network.

[0026] The data transmission method, device, electronic device, medium and computer program product provided in the embodiments of the present application can select a suitable transmission optimization mode for the electronic device according to at least one of the signal strength of the connected WiFi network and the utilization rate of the data transmission channel of the WiFi network, and improve the coverage and anti-interference capability of the WiFi network by processing the data packets to be sent or using multiple antennas to receive the data packets, thereby improving the stability and reliability of the data transmission of the electronic device in the WiFi network, and further improving the transmission efficiency of the WiFi data.

[0027] The execution subject of the data transmission method provided in the embodiment of the present application may be a data transmission device. Exemplarily, the data transmission device may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The data transmission method provided in the embodiment of the present application will be exemplarily described below using an electronic device as an example.

[0028] The present application provides a data transmission method. Figure 1 FIG. 1 is a flow chart of a data transmission method provided by an embodiment of the present application, which can be applied to electronic devices. Figure 1 As shown, the data transmission method provided in the embodiment of the present application may include the following steps 101 and 102.

[0029] Step 101: An electronic device obtains first information.

[0030] The first information may include at least one of the following: signal strength of the WiFi network to which the electronic device is connected, and utilization rate of a data transmission channel of the WiFi network.

[0031] In some embodiments of the present application, the signal strength indication of the WiFi network to which the above-mentioned electronic device is connected is: the strength of the signal received by the electronic device in the WiFi network.

[0032] It is understandable that in the strong signal coverage area of ​​the WiFi network, the electronic device receives a higher signal strength; in the weak signal coverage area of ​​the WiFi network, the electronic device receives a lower signal strength. The value of the WiFi network signal strength affects the stability of the connection between the electronic device and the WiFi network and the data transmission speed.

[0033] In some embodiments of the present application, the signal strength of the WiFi network can be represented by a received signal strength indication (RSSI), the unit of which is decibel milliwatt (dBm). Generally, the signal strength of the WiFi network can range from -30dBm to -100dBm. Among them, -30dBm can indicate that the signal strength of the WiFi network is relatively high, and -100dBm can indicate that the signal strength of the WiFi network is relatively low.

[0034] It is understandable that when the signal strength of the WiFi network is low, the connection speed between the electronic device and the WiFi network is slow and the delay is large, that is, the electronic device is in the weak signal coverage area of ​​the WiFi network, which may cause the user's Internet access to be stuck or fail.

[0035] In some embodiments of the present application, the data transmission channel of the above-mentioned WiFi network may indicate a frequency band for data transmission of the WiFi network, which is a data signal transmission channel using a wireless signal as a transmission carrier.

[0036] In some embodiments of the present application, the utilization rate of the data transmission channel of the above-mentioned WiFi network refers to the ratio of the busy time of the data transmission channel to the total time within a certain period of time, which is one of the important indicators for measuring the performance of the WiFi network.

[0037] In some embodiments of the present application, the utilization rate of the data transmission channel of the WiFi network can be detected by a wireless access point (AP) device.

[0038] In some embodiments of the present application, the AP device may detect the total duration of the signal on the data transmission channel as the busy time of the data transmission channel. The total duration of the signal on the data transmission channel may include the time occupied by the AP device sending and receiving signals, and may also include the time occupied by interference signals in the environment.

[0039] It should be noted that for electronic devices, the more devices that use the same data transmission channel for data transmission, the lower the utilization rate of the data transmission channel of the WiFi network, and the weaker the signal strength of the WiFi network, that is, the electronic device is in the weak signal coverage area of ​​the WiFi network.

[0040] In some embodiments of the present application, the above step 101 may include the following step 101a.

[0041] Step 101a: The electronic device obtains first information according to a first cycle.

[0042] In some embodiments of the present application, the electronic device may periodically detect the signal strength of the WiFi network and the utilization rate of the data transmission channel of the WiFi network according to a first period, and periodically determine whether it is in a weak signal coverage area of ​​the WiFi network.

[0043] For example, taking the first period as 30 seconds, the electronic device may acquire the first information once every 30 seconds.

[0044] In some embodiments of the present application, the first period may be a default period of the electronic device or may be set by a user. The present application does not specifically limit this.

[0045] In this way, since the electronic device can periodically obtain the first information, the electronic device can promptly determine whether it is in a weak signal coverage area of ​​the WiFi network, so that when it is in a weak signal coverage area of ​​the WiFi network, it can promptly perform subsequent signal enhancement processing to avoid deterioration in data transmission efficiency between the electronic device and the WiFi network.

[0046] Step 102: When the first information meets the target condition, the electronic device transmits the data packet in a target transmission mode that matches the target condition.

[0047] The target transmission mode mentioned above includes any one of the following: a first transmission mode, a second transmission mode, and a third transmission mode.

[0048] In some embodiments of the present application, the above-mentioned first transmission mode may be: modulating the data contained in the first data packet to be transmitted onto N subcarriers and sending them, the preamble code contained in the first data packet includes a first field and a second field, the transmission power of the first field is greater than a first threshold, the second field includes at least two repeated subfields, and N is a positive integer.

[0049] In some embodiments of the present application, the second transmission mode may be: when the electronic device is a transmitting device, multiple antennas are used to send data packets; or, when the electronic device is a receiving device, multiple antennas are used to receive data packets.

[0050] In some embodiments of the present application, the third transmission mode may include the first transmission mode and the second transmission mode.

[0051] In some embodiments of the present application, the first information meeting the target condition may indicate that the electronic device is in a weak signal coverage area of ​​the WiFi network. At this time, the data transmission efficiency between the electronic device and the WiFi network is poor, and the user may experience problems such as freezing or failure when surfing the Internet. Therefore, the electronic device may select different transmission methods to transmit data according to different conditions met by the first information, and receive or send data through different transmission methods and different signal enhancement processing methods to ensure the smoothness of data transmission between the electronic device and the WiFi network.

[0052] In some embodiments of the present application, the first transmission method mentioned above is to improve the success rate of data transmission by processing the first data packet to be sent, thereby improving the reliability of data transmission.

[0053] In some embodiments of the present application, in the above-mentioned first transmission mode, modulating the data contained in the first data packet to be transmitted onto N subcarriers for sending may include the following step A or step B.

[0054] Step A: The electronic device modulates the data contained in the first data packet onto dual subcarriers and sends it repeatedly.

[0055] In some embodiments of the present application, the electronic device may adopt dual carrier modulation (DCM) to modulate the data included in the first data packet onto dual subcarriers and transmit the data repeatedly.

[0056] For example, Figure 2 As shown, the electronic device can encode or interleave the data stream of the data contained in the first data packet, adopt DCM dual-carrier modulation, and modulate the signal used to transmit and transfer data to subcarrier K and subcarrier K+M / 2 for repeated transmission through binary phase shift keying mapping (BPSK Mapping). K is the subcarrier sequence number, and M is the number of subcarriers configured by the network side device for the electronic device.

[0057] In this way, the electronic device can modulate the data contained in the first data packet onto the dual subcarriers and send the data repeatedly, thereby improving the reliability of data transmission by redundantly sending data.

[0058] Step B: The electronic device determines N subcarriers according to the number N, and modulates the data included in the first data packet onto the N subcarriers for transmission.

[0059] Among them, N can be half of the number of subcarriers configured by the network side device for the electronic device, and N is a positive integer.

[0060] In some embodiments of the present application, the electronic device may also modulate the data contained in the first data packet to half of the subcarriers configured by the network side device for the electronic device and send it, so that the modulated resource unit (RU) contains 106 effective subcarriers, that is, 106 Tones. In other words, the electronic device reduces the number of subcarriers for transmitting the data contained in the first data packet by half, so that the bandwidth for transmitting the data contained in the first data packet becomes half of the original bandwidth.

[0061] It can be understood that since the number of subcarriers for transmitting the data included in the first data packet is halved, but the total transmission power for transmitting the data remains unchanged, it is equivalent to increasing the transmission power on each subcarrier for data transmission by 3dBm.

[0062] In this way, the electronic device can reduce the number of subcarriers for transmitting the data contained in the first data packet by half, which is equivalent to increasing the transmission power of the data transmission, thereby improving the success rate and reliability of the data transmission.

[0063] In some embodiments of the present application, the electronic device may use the HEERSU PPDU data packet frame format to process the data packet to improve the data transmission range under the WiFi network, thereby realizing longer-distance data packet transmission under the WiFi network and improving data transmission with weak signal quality under the WiFi network.

[0064] In some embodiments of the present application, in the above-mentioned first transmission mode, the electronic device may use extended range (ER) technology to process the preamble code of the data packet before encapsulating the first data packet, so that the transmission power of the preamble code in the obtained first data packet is increased or has the effect of increasing the transmission power.

[0065] In some embodiments of the present application, the transmission power of the first field being greater than the first threshold may be understood as: increasing the transmission power of the first field.

[0066] In some embodiments of the present application, the first threshold may be a default threshold of the electronic device or may be set by a user. The present application does not specifically limit this.

[0067] In some embodiments of the present application, the first field and the second field in the preamble code included in the first data packet are different fields. That is, the first field for increasing the transmission power does not need to be sent repeatedly; the subfield in the second field for repeated transmission has the effect of increasing the transmission power, so there is no need to increase the transmission power.

[0068] For example, the transmission power of the preamble is increased by 3dBm or the preamble has the effect of increasing the transmission power by 3dBm. Figure 3 As shown, Figure 3In the HE ER SU PPDU data packet frame format shown in , PE is an identifier used for filling in the position; data is the data contained in the data packet; and the remaining fields are preambles. Among them, the field HE-SIG-A may contain repeated subfields HE-SIG-A1 and subfields HE-SIG-A2, so that when the electronic device sends a data packet, it is equivalent to increasing the gain of the transmission power by 3dBm. The field RL-SIG is a repetition of the field L-SIG, so the 4 subcarriers used for channel estimation can increase the transmission power by 3dBm. For other fields in the preamble, the transmission power can be increased by 3dBm.

[0069] In this way, the electronic device can increase the transmission power of data transmission and improve the success rate and reliability of data transmission through the above-mentioned first transmission mode.

[0070] In some embodiments of the present application, the above-mentioned second transmission mode can improve the data transmission rate and anti-interference capability in the weak signal coverage area of ​​the WiFi network by using multiple antennas to send data packets or by using multiple antennas to receive data packets, thereby ensuring the stability and reliability of data transmission.

[0071] In some embodiments of the present application, the data included in the data packet sent using multiple antennas may be the same as the data included in the first data packet.

[0072] In some embodiments of the present application, the preamble code included in the data packet sent using multiple antennas may be different from the preamble code included in the first data packet.

[0073] It can be understood that the fields in the preamble code contained in the data packet sent using multiple antennas do not need to increase the transmission power or perform repeated transmission.

[0074] Exemplarily, when the electronic device is a transmitting device, the electronic device can use space-time block coding (STBC) to orthogonally encode the data packets to be transmitted and transmit them from multiple antennas, thereby increasing the redundancy of the signal and improving the anti-interference capability of the WiFi network.

[0075] For example, an electronic device has four antennas. Figure 4 As shown, electronic devices can use STBC to redundantly encode the transmitted data in time and space for the data packets to be transmitted, and send multiple copies of the data packets to be transmitted on 4 antennas to increase the stability of data transmission. Thus, the receiving device can extract as much information as possible from each received copy, so that the receiving device has a higher chance of correctly decoding the received data packets.

[0076] In some embodiments of the present application, when the electronic device is a receiving device, the electronic device may use multiple antennas to receive data packets.

[0077] Exemplarily, the electronic device may use Maximum Ratio Combining (MRC) to receive data packets.

[0078] For example, an electronic device has three antennas. Figure 5 As shown, for the same signal sent from the transmitting device, the electronic device can use three antennas to receive, that is, the electronic device can receive the signal through three receiving paths, so that the electronic device can use an algorithm to weight the signals on each receiving path and assign a high weight to the receiving path with a good signal to improve the signal received by the receiving device. In this way, even if the electronic device is in a weak signal coverage area of ​​the WiFi network, it can obtain a better receiving signal and thus receive data packets better.

[0079] In this way, through the above-mentioned second transmission mode, the data transmission rate and anti-interference ability in the weak signal coverage area under the WiFi network can be improved, thereby ensuring the stability and reliability of data transmission.

[0080] In some embodiments of the present application, the third transmission mode may be the sum of the first transmission mode and the second transmission mode. It can be understood that the third transmission mode has the transmission optimization effect of the first transmission mode and the transmission optimization effect of the second transmission mode.

[0081] The data transmission method provided in the embodiment of the present application can enable the electronic device to select a suitable transmission optimization method based on at least one of the signal strength of the connected WiFi network and the utilization rate of the data transmission channel of the WiFi network, and improve the coverage and anti-interference capability of the WiFi network by processing the data packets to be sent or using multiple antennas to receive the data packets, thereby improving the stability and reliability of data transmission of the electronic device under the WiFi network, and further improving the transmission efficiency of the WiFi data.

[0082] In some embodiments of the present application, the above step 102 may include any one of the following: step 102a, step 102b, step 102c.

[0083] Step 102a: When the first information satisfies the first condition, the electronic device transmits the data packet in a first transmission mode that matches the first condition.

[0084] The first condition may include: the signal strength is within a first signal strength range, and the utilization rate of the data transmission channel is less than or equal to a second threshold.

[0085] In some embodiments of the present application, the first signal strength range may indicate a coverage area with weaker signals under a WiFi network.

[0086] In some embodiments of the present application, the upper limit of the first signal strength range may be a third threshold, and the lower limit may be a fourth threshold, wherein the third threshold is greater than the fourth threshold.

[0087] In some embodiments of the present application, the third threshold and the fourth threshold may be a default threshold of the electronic device or may be set by a user. The present application does not specifically limit the third threshold and the fourth threshold.

[0088] For example, taking the third threshold value as -75dBm and the fourth threshold value as -80dBm as an example, if the signal strength is -78dBm, the electronic device may determine that the signal strength is within the first signal strength range.

[0089] In some embodiments of the present application, the utilization rate of the above-mentioned data transmission channel being less than or equal to the second threshold can be understood as: at this time, there are more devices transmitting data through the data transmission channel, the channel utilization rate is low, and the data transmission speed is slow.

[0090] In some embodiments of the present application, the second threshold may be a default value of the electronic device or may be set by a user. The present application does not specifically limit this.

[0091] In some embodiments of the present application, when the first information satisfies the first condition, the electronic device can determine that the signal strength is weak and the data transmission speed is slow, so the electronic device can improve the success rate and reliability of data transmission through the first transmission method.

[0092] Step 102b: When the first information satisfies the second condition, the electronic device transmits the data packet in a second transmission mode that matches the second condition.

[0093] The second condition may include: the signal strength is within the first signal strength range, and the utilization rate of the data transmission channel is greater than a second threshold.

[0094] In some embodiments of the present application, the utilization rate of the above-mentioned data transmission channel being greater than the second threshold can be understood as: at this time, there are fewer devices transmitting data through the data transmission channel, the channel utilization rate is higher, and the data transmission speed is faster.

[0095] In some embodiments of the present application, when the first information satisfies the second condition, the electronic device can determine that the signal strength is weak at this time, but the data transmission speed is fast. Therefore, the electronic device can improve the data transmission rate and anti-interference capability in the weak signal coverage area under the WiFi network through the second transmission mode.

[0096] Step 102c: When the first information satisfies the third condition, the electronic device transmits the data packet in a third transmission mode that matches the third condition.

[0097] The third condition includes: the signal strength is within the second signal strength range; and the lower limit of the first signal strength range is greater than or equal to the upper limit of the second signal strength range.

[0098] In some embodiments of the present application, since the lower limit of the first signal strength range is greater than or equal to the upper limit of the second signal strength range, the second signal strength range may indicate a coverage area with extremely weak signals under the WiFi network.

[0099] In some embodiments of the present application, when the first information satisfies the third condition, the electronic device can determine that the signal strength is extremely weak at this time. Therefore, the electronic device can use the third transmission method to improve the data transmission rate and anti-interference capability in the weak signal coverage area of ​​the WiFi network while ensuring the stability and reliability of data transmission.

[0100] In this way, since the electronic device can determine different transmission methods to transmit data packets when the signal strength of the WiFi network and the utilization rate of the data transmission channel of the WiFi network meet different conditions, the flexibility of determining the transmission optimization method is improved, so that data packets can be transmitted through a suitable transmission optimization method, thereby improving the stability and reliability of data transmission of electronic devices under the WiFi network and improving the transmission efficiency of WiFi data.

[0101] In some embodiments of the present application, the data transmission method provided by the embodiments of the present application may further include the following step 103.

[0102] Step 103: When the first information does not meet the target condition, the electronic device transmits the data packet in a fourth transmission mode.

[0103] The fourth transmission mode is: when the electronic device is a transmitting device, the data packet to be transmitted is not processed; or, when the electronic device is a receiving device, a single antenna is used to receive the data packet.

[0104] In some embodiments of the present application, the fact that the first information does not meet the target condition can be understood as: the signal strength of the WiFi network is high at this time, and the electronic device can determine that the data transmission rate and the data transmission success rate are both high at this time. Therefore, the electronic device can receive and send data packets in a conventional data transmission manner without performing additional optimization processing.

[0105] In this way, when the first information does not meet the target condition, the electronic device can receive and send data packets in a conventional data transmission manner without performing additional optimization processing, thereby saving power consumption of the electronic device.

[0106] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0107] The following is an illustrative example of the data transmission method provided in the embodiment of the present application.

[0108] like Figure 6 As shown, the data transmission method may include the following steps 201 to 205.

[0109] Step 201: The electronic device obtains first information according to a first cycle.

[0110] Step 202: When the signal strength is within a second signal strength range and the utilization rate of the data transmission channel is less than or equal to a second threshold, the electronic device transmits a data packet in a first transmission mode.

[0111] Step 203: When the signal strength is within the second signal strength range and the utilization rate of the data transmission channel is greater than the second threshold, the electronic device transmits the data packet in the first transmission mode.

[0112] Step 204: When the signal strength is within the first signal strength range, the electronic device transmits the data packet in a third transmission mode.

[0113] Step 205: When the signal strength is not within the second signal strength range, the electronic device transmits the data packet in the fourth transmission mode.

[0114] Among them, the first information includes at least one of the following: the signal strength of the wireless fidelity WiFi network to which the electronic device is connected, and the utilization rate of the data transmission channel of the WiFi network; the first transmission mode is: modulating the data contained in the first data packet to be transmitted onto N subcarriers for transmission, the preamble code contained in the first data packet includes a first field and a second field, the transmission power of the first field is greater than the first threshold, the second field includes at least two repeated subfields, and N is a positive integer; the second transmission mode is: when the electronic device is a transmitting device, encoding the data packet to be transmitted and then transmitting it, or, when the electronic device is a receiving device, using multiple antennas to receive the data packet; the third transmission mode includes the first transmission mode and the second transmission mode; the fourth transmission mode is: when the electronic device is a transmitting device, not processing the data packet to be transmitted, or, when the electronic device is a receiving device, using a single antenna to receive the data packet; the lower limit of the first signal strength range is greater than or equal to the upper limit of the second signal strength range.

[0115] In some embodiments of the present application, the electronic device may periodically detect the signal strength of the WiFi network and the utilization rate of the data transmission channel of the WiFi network, and periodically determine whether the electronic device is in an area with weak signal coverage of the WiFi network.

[0116] In some embodiments of the present application, the electronic device can determine whether it is in a weak signal coverage area of ​​the WiFi network based on the signal strength of the WiFi network.

[0117] In some embodiments of the present application, when the signal strength is not within the second signal strength range, the electronic device can determine that it is not in a weak signal coverage area of ​​the WiFi network. Therefore, the electronic device can transmit the data packet in the fourth transmission mode.

[0118] In some embodiments of the present application, when the signal strength is within the second signal strength range, the electronic device can determine that it is in a weak signal coverage area of ​​the WiFi network. The electronic device can further determine whether the signal strength is within the first signal strength range. That is, the electronic device can further determine whether it is in an extremely weak signal coverage area of ​​the WiFi network.

[0119] In some embodiments of the present application, the electronic device may transmit data packets according to the third transmission mode when it is in an area with extremely weak signal coverage of the WiFi network.

[0120] In some embodiments of the present application, the electronic device may transmit data packets in accordance with the second transmission mode when it is in an area with weak signal coverage of the WiFi network but not in an area with extremely weak signal coverage of the WiFi network and the utilization rate of the data transmission channel is greater than a second threshold.

[0121] In some embodiments of the present application, the electronic device may transmit data packets in accordance with the first transmission mode when it is in an area with weak signal coverage of the WiFi network but not in an area with extremely weak signal coverage of the WiFi network and the utilization rate of the data transmission channel is less than or equal to a second threshold.

[0122] It should be noted that, for other descriptions of the above steps 201 to 205, the detailed descriptions of the above steps 101 to 103 can be referred to. To avoid repetition, they will not be described here.

[0123] In this way, the electronic device can select a suitable transmission optimization method according to at least one of the signal strength of the connected WiFi network and the utilization rate of the data transmission channel of the WiFi network, and improve the coverage and anti-interference capability of the WiFi network by processing the data packets to be sent or using multiple antennas to receive data packets, thereby improving the stability and reliability of data transmission of electronic devices under the WiFi network, and further improving the transmission efficiency of WiFi data.

[0124] The data transmission method provided in the embodiment of the present application can be executed by a data transmission device. In the embodiment of the present application, the data transmission method executed by a data transmission device is taken as an example to illustrate the data transmission device provided in the embodiment of the present application.

[0125] Figure 7 A possible structural diagram of a data transmission device involved in an embodiment of the present application is shown. Figure 7 As shown, the data transmission device 70 may include: an acquisition module 71 and a transmission module 72 .

[0126] Among them, the acquisition module 71 is used to obtain first information, and the first information includes at least one of the following: the signal strength of the WiFi network to which the electronic device is connected, and the utilization rate of the data transmission channel of the WiFi network; the transmission module 72 is used to transmit the data packet according to the target transmission mode matching the target condition when the first information obtained by the acquisition module 71 meets the target condition; wherein the target transmission mode includes any one of the following: the first transmission mode, the second transmission mode, and the third transmission mode; the first transmission mode is: modulating the data contained in the first data packet to be transmitted onto N subcarriers for transmission, the preamble code contained in the first data packet includes a first field and a second field, the transmission power of the first field is greater than the first threshold, the second field includes at least two repeated subfields, and N is a positive integer; the second transmission mode is: when the electronic device is a transmitting device, multiple antennas are used to send data packets, or, when the electronic device is a receiving device, multiple antennas are used to receive data packets; the third transmission mode includes the first transmission mode and the second transmission mode.

[0127] In a possible implementation, the transmission module 72 is specifically configured to:

[0128] modulate the data contained in the first data packet onto the dual subcarriers and send repeatedly; or,

[0129] According to the number N, N subcarriers are determined, and the data contained in the first data packet is modulated onto the N subcarriers for transmission, where N is half of the number of subcarriers configured by the network side device for the electronic device, and N is a positive integer.

[0130] In a possible implementation, the transmission module 72 is specifically configured to:

[0131] When the first information satisfies a first condition, the data packet is transmitted in a first transmission mode matching the first condition, wherein the first condition includes: the signal strength is within a first signal strength range, and the utilization rate of the data transmission channel is less than or equal to a second threshold; or

[0132] When the first information satisfies the second condition, the data packet is transmitted in a second transmission mode matching the second condition, wherein the second condition includes: the signal strength is within the first signal strength range, and the utilization rate of the data transmission channel is greater than a second threshold; or

[0133] When the first information satisfies a third condition, transmitting the data packet in a third transmission mode matching the third condition, the third condition including: the signal strength is within a second signal strength range;

[0134] The lower limit of the first signal strength range is greater than or equal to the upper limit of the second signal strength range.

[0135] In a possible implementation, the transmission module 72 is further configured to transmit the data packet in a fourth transmission mode when the first information does not meet the target condition;

[0136] The fourth transmission mode is: when the electronic device is a transmitting device, the data packet to be transmitted is not processed; or, when the electronic device is a receiving device, a single antenna is used to receive the data packet.

[0137] In a possible implementation, the acquisition module 71 is specifically configured to acquire the first information according to a first period.

[0138] An embodiment of the present application provides a data transmission device. The data transmission device can select a suitable transmission optimization method according to at least one of the signal strength of the connected WiFi network and the utilization rate of the data transmission channel of the WiFi network, and improve the coverage and anti-interference capability of the WiFi network by processing the data packets to be sent or using multiple antennas to receive the data packets, thereby improving the stability and reliability of data transmission of electronic devices in the WiFi network, and further improving the transmission efficiency of WiFi data.

[0139] The data transmission device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0140] The data transmission device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0141] The data transmission device provided in the embodiment of the present application can implement various processes implemented in the above-mentioned data transmission method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0142] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores programs or instructions that can be executed on the processor 801, and when the program or instructions are executed by the processor 801, the various steps of the above-mentioned data transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0143] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0144] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0145] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0146] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0147] The processor 1010 is used to obtain first information, and the first information includes at least one of the following: the signal strength of the WiFi network to which the electronic device is connected, and the utilization rate of the data transmission channel of the WiFi network; the radio frequency unit 1001 is used to transmit a data packet according to a target transmission mode that matches the target condition when the first information obtained by the processor 1010 meets the target condition; wherein the target transmission mode includes any one of the following: a first transmission mode, a second transmission mode, and a third transmission mode; the first transmission mode is: modulating the data contained in the first data packet to be transmitted onto N subcarriers for transmission, the preamble code contained in the first data packet includes a first field and a second field, the transmission power of the first field is greater than a first threshold, the second field includes at least two repeated subfields, and N is a positive integer; the second transmission mode is: when the electronic device is a transmitting device, multiple antennas are used to send data packets, or, when the electronic device is a receiving device, multiple antennas are used to receive data packets; the third transmission mode includes the first transmission mode and the second transmission mode.

[0148] In a possible implementation manner, the radio frequency unit 1001 is specifically configured to:

[0149] modulate the data contained in the first data packet onto the dual subcarriers and send repeatedly; or,

[0150] According to the number N, N subcarriers are determined, and the data contained in the first data packet is modulated onto the N subcarriers for transmission, where N is half of the number of subcarriers configured by the network side device for the electronic device, and N is a positive integer.

[0151] In a possible implementation manner, the radio frequency unit 1001 is specifically configured to:

[0152] When the first information satisfies a first condition, the data packet is transmitted in a first transmission mode matching the first condition, wherein the first condition includes: the signal strength is within a first signal strength range, and the utilization rate of the data transmission channel is less than or equal to a second threshold; or

[0153] When the first information satisfies the second condition, the data packet is transmitted in a second transmission mode matching the second condition, wherein the second condition includes: the signal strength is within the first signal strength range, and the utilization rate of the data transmission channel is greater than a second threshold; or

[0154] When the first information satisfies a third condition, transmitting the data packet in a third transmission mode matching the third condition, the third condition including: the signal strength is within a second signal strength range;

[0155] The lower limit of the first signal strength range is greater than or equal to the upper limit of the second signal strength range.

[0156] In a possible implementation manner, the radio frequency unit 1001 is further configured to transmit the data packet in a fourth transmission manner when the first information does not meet the target condition;

[0157] The fourth transmission mode is: when the electronic device is a transmitting device, the data packet to be transmitted is not processed; or, when the electronic device is a receiving device, a single antenna is used to receive the data packet.

[0158] In a possible implementation, the processor 1010 is specifically configured to obtain the first information according to a first cycle.

[0159] An embodiment of the present application provides an electronic device, which can select a suitable transmission optimization method according to at least one of the signal strength of the connected WiFi network and the utilization rate of the data transmission channel of the WiFi network, and improve the coverage and anti-interference capability of the WiFi network by processing the data packets to be sent or using multiple antennas to receive the data packets, thereby improving the stability and reliability of the data transmission of the electronic device in the WiFi network, and further improving the transmission efficiency of the WiFi data.

[0160] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0161] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0162] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0163] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0164] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0165] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0166] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0167] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned data transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0168] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0169] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0170] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data transmission method, characterized in that: Applied to electronic equipment, the method comprises: Acquire first information, where the first information includes at least one of the following: signal strength of a WiFi network to which the electronic device is connected, and utilization rate of a data transmission channel of the WiFi network; When the first information satisfies the target condition, transmitting the data packet in a target transmission mode matching the target condition; The target transmission mode includes any one of the following: a first transmission mode, a second transmission mode, and a third transmission mode; The first transmission mode is: modulating data contained in a first data packet to be transmitted onto N subcarriers for transmission, wherein the preamble contained in the first data packet includes a first field and a second field, the transmission power of the first field is greater than a first threshold, the second field includes at least two repeated subfields, and N is a positive integer; The second transmission mode is: when the electronic device is a transmitting device, multiple antennas are used to send data packets, or when the electronic device is a receiving device, multiple antennas are used to receive data packets; The third transmission mode includes the first transmission mode and the second transmission mode.

2. The method according to claim 1, characterized in that The step of modulating data contained in a first data packet to be transmitted onto N subcarriers for transmission includes: modulate the data contained in the first data packet onto dual subcarriers and send repeatedly; or, According to the number N, the N subcarriers are determined, and the data contained in the first data packet is modulated onto the N subcarriers for transmission, where N is half of the number of subcarriers configured by the network side device for the electronic device, and N is a positive integer.

3. The method according to claim 1, characterized in that: When the received signal strength meets the target condition, transmitting the data packet according to the target transmission mode matching the target condition includes: If the first information satisfies the first condition, the data packet is transmitted according to the first transmission mode matching the first condition, wherein the first condition includes: the signal strength is within a first signal strength range, and the utilization rate of the data transmission channel is less than or equal to a second threshold; or If the first information satisfies the second condition, transmitting the data packet in accordance with the second transmission mode matching the second condition, wherein the second condition includes: the signal strength is within the first signal strength range, and the utilization rate of the data transmission channel is greater than the second threshold; or In the case where the first information satisfies the third condition, transmitting the data packet according to the third transmission mode matching the third condition, the third condition comprising: the signal strength is within the second signal strength range; The lower limit of the first signal strength range is greater than or equal to the upper limit of the second signal strength range.

4. The method according to any one of claims 1 to 3, characterized in that: The obtaining of the first information includes: According to a first cycle, the first information is acquired.

5. A data transmission device, characterized in that: Applied to electronic equipment, the device comprises: an acquisition module and a transmission module; The acquisition module is used to acquire first information, where the first information includes at least one of the following: signal strength of the WiFi network to which the electronic device is connected, and utilization rate of a data transmission channel of the WiFi network; The transmission module is used to transmit the data packet in a target transmission mode matching the target condition when the first information acquired by the acquisition module meets the target condition; The target transmission mode includes any one of the following: a first transmission mode, a second transmission mode, and a third transmission mode; The first transmission mode is: modulating data contained in a first data packet to be transmitted onto N subcarriers for transmission, wherein the preamble contained in the first data packet includes a first field and a second field, the transmission power of the first field is greater than a first threshold, the second field includes at least two repeated subfields, and N is a positive integer; The second transmission mode is: when the electronic device is a transmitting device, multiple antennas are used to send data packets, or when the electronic device is a receiving device, multiple antennas are used to receive data packets; The third transmission mode includes the first transmission mode and the second transmission mode.

6. The device according to claim 5, characterized in that The transmission module is specifically used for: modulate the data contained in the first data packet onto dual subcarriers and send repeatedly; or, According to the number N, the N subcarriers are determined, and the data contained in the first data packet is modulated onto the N subcarriers for transmission, where N is half of the number of subcarriers configured by the network side device for the electronic device, and N is a positive integer.

7. The device according to claim 5, characterized in that The transmission module is specifically used for: If the first information satisfies the first condition, the data packet is transmitted according to the first transmission mode matching the first condition, wherein the first condition includes: the signal strength is within a first signal strength range, and the utilization rate of the data transmission channel is less than or equal to a second threshold; or If the first information satisfies the second condition, transmitting the data packet in accordance with the second transmission mode matching the second condition, wherein the second condition includes: the signal strength is within the first signal strength range, and the utilization rate of the data transmission channel is greater than the second threshold; or In the case where the first information satisfies the third condition, transmitting the data packet according to the third transmission mode matching the third condition, the third condition comprising: the signal strength is within the second signal strength range; The lower limit of the first signal strength range is greater than or equal to the upper limit of the second signal strength range.

8. The device according to any one of claims 5 to 7, characterized in that The acquisition module is specifically used to acquire the first information according to a first period.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the data transmission method according to any one of claims 1 to 4 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 4 are implemented.