Method, apparatus, device and storage medium for data transmission

CN122621931APending Publication Date: 2026-08-21QINGDAO HAIER MULTI MEDIA CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510188482.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2026-08-21

AI Technical Summary

Technical Problem

[0003]在WIFI设备的WIFI模块性能有限的情况下,STA模式和P2P模式对应的传输总速率有限,若STA模式和P2P模式在整个WIFI活动周期中的时长占比一定的情况下,有的场景下,会出现STA模式对应的数据传输满占用,P2P模式对应的数据传输为空闲,或者,有的场景下,P2P模式对应的数据传输满占用,STA模式对应的数据传输为空闲的情况,加上WIFI模块性能有限的情况,进而导致传输速率不足、连接质量低等问题

Benefits of technology

[0029] After successfully connecting to the data transmitter via the first Wi-Fi working mode, the time ratio of the second Wi-Fi working mode and the first Wi-Fi working mode in the entire Wi-Fi activity cycle is adjusted to match the first Wi-Fi working mode. Based on the first ratio, data is transmitted with the data transmitter via the first Wi-Fi working mode. In this way, the time ratio corresponding to the two working modes can be dynamically adjusted, which improves the efficiency of data transmission and further improves the quality of communication connection even with limited device performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122621931A_ABST
    Figure CN122621931A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent devices, and discloses a method, device and equipment for data transmission and a storage medium. The method comprises the following steps: in the case that a first WIFI working mode is determined to be successfully connected with a current data sending end, adjusting the time length proportion of a second WIFI working mode and the first WIFI working mode in a whole WIFI activity period to a first proportion; and performing data transmission with the current data sending end through the first WIFI working mode according to the first proportion. In this way, the time proportions corresponding to the two working modes can be dynamically adjusted, the data transmission efficiency is improved in the case that the device performance is limited, and the communication connection quality is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart device technology, such as methods, apparatus, devices, and storage media for data transmission. Background Technology

[0002] With the development of network technology, many devices have wireless communication technology WIFI modules to conduct network communication. These devices can be called WIFI devices. At present, many WIFI devices support multiple interface concurrency and support two or more WIFI working modes at the same time. For example, the Android operating system supports WIFI devices to have both STA (Station) and P2P (Wi-Fi Direct) working modes at the same time.

[0003] When the performance of a Wi-Fi module in a Wi-Fi device is limited, the total transmission rate corresponding to STA mode and P2P mode is limited. If the duration of STA mode and P2P mode in the entire Wi-Fi activity cycle is fixed, in some scenarios, the data transmission corresponding to STA mode will be fully occupied while the data transmission corresponding to P2P mode will be idle, or in other scenarios, the data transmission corresponding to P2P mode will be fully occupied while the data transmission corresponding to STA mode will be idle. Combined with the limited performance of the Wi-Fi module, this will lead to problems such as insufficient transmission rate and low connection quality.

[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0005] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.

[0006] This disclosure provides a method, apparatus, device, and storage medium for data transmission to address the technical problem that data transmission quality still needs improvement.

[0007] In some embodiments, the method includes:

[0008] If a successful connection is established with the current data sending end using the first WIFI working mode, the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle will be adjusted to the first ratio.

[0009] Based on the first proportion, data is transmitted with the current data sender through the first WIFI working mode.

[0010] In some embodiments, adjusting the time ratio of the second Wi-Fi working mode to the first Wi-Fi working mode in the entire Wi-Fi activity cycle to the first ratio includes:

[0011] When the first WIFI working mode is P2P mode and the second WIFI working mode is STA mode, the duty cycle adjustment function is called to determine the corresponding duration parameter of STA mode to 500000.

[0012] The duty cycle adjustment function is called to set the duration parameter corresponding to the P2P mode to 450000.

[0013] In some embodiments, it also includes:

[0014] If it is determined that the connection with the current data sender is disconnected, the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle is adjusted to the second ratio, wherein the time ratio corresponding to the second WIFI working mode in the second ratio is greater than the time ratio corresponding to the second WIFI working mode in the first ratio.

[0015] In some embodiments, adjusting the time ratio of the second WIFI working mode to the first WIFI working mode in the entire WIFI activity cycle to a second ratio includes:

[0016] When the first WIFI working mode is P2P mode and the second WIFI working mode is STA mode, the duty cycle adjustment function is called to determine the corresponding duration parameter of STA mode as 370000.

[0017] Call the duty cycle adjustment function to set the duration parameter corresponding to P2P mode to 200000.

[0018] In some embodiments, it also includes:

[0019] Once it is confirmed that a successful connection has been established with the current data sender using the second WIFI working mode, data transmission will be performed with the current data sender using the second WIFI working mode, based on the saved second ratio.

[0020] In some embodiments, it also includes:

[0021] If a successful connection is established with the current data sender using the second WIFI working mode, the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle is adjusted to the third ratio. Based on the third ratio, data is transmitted with the current data sender using the second WIFI working mode. The duration of the second WIFI working mode in the third ratio is greater than the duration of the second WIFI working mode in the first ratio.

[0022] In some embodiments, the device includes:

[0023] The first adjustment module is configured to, upon confirming a successful connection with the current data sender using the first WIFI working mode, adjust the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to the first ratio.

[0024] The first transmission module is configured to transmit data with the current data sender through a first WIFI working mode according to a first proportion.

[0025] In some embodiments, the means for data transmission includes a processor and a memory storing program instructions, the processor being configured to execute the above-described method for data transmission when the program instructions are executed.

[0026] In some embodiments, the device includes a device body; the means for data transmission described above is mounted on the device body.

[0027] In some embodiments, the storage medium stores program instructions that, when executed, perform the above-described method for data transmission.

[0028] The method, apparatus, and air conditioner for data transmission provided in this disclosure can achieve the following technical effects:

[0029] After successfully connecting to the data transmitter via the first Wi-Fi working mode, the time ratio of the second Wi-Fi working mode and the first Wi-Fi working mode in the entire Wi-Fi activity cycle is adjusted to match the first Wi-Fi working mode. Based on the first ratio, data is transmitted with the data transmitter via the first Wi-Fi working mode. In this way, the time ratio corresponding to the two working modes can be dynamically adjusted, which improves the efficiency of data transmission and further improves the quality of communication connection even with limited device performance.

[0030] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description

[0031] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein:

[0032] Figure 1 This is a schematic diagram of an architecture for a data transmission scenario provided in an embodiment of this disclosure;

[0033] Figure 2 This is a schematic flowchart of a data transmission method provided in an embodiment of this disclosure;

[0034] Figure 3 This is a flowchart illustrating a data transmission method provided in an embodiment of this disclosure;

[0035] Figure 4 This is a schematic diagram of a data transmission device provided in an embodiment of this disclosure;

[0036] Figure 5 This is a schematic diagram of a data transmission device provided in an embodiment of this disclosure;

[0037] Figure 6 This is a schematic diagram of a data transmission device provided in an embodiment of this disclosure;

[0038] Figure 7 This is a schematic diagram of a device provided in an embodiment of this disclosure. Detailed Implementation

[0039] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.

[0040] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure 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 for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0041] Unless otherwise stated, the term "multiple" means two or more.

[0042] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.

[0043] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0044] Wi-Fi devices can simultaneously support two or more Wi-Fi operating modes. For example, the Android operating system allows Wi-Fi devices to simultaneously operate in both STA (Station) and P2P (Wi-Fi Direct) modes. In this embodiment, the time ratio of the second Wi-Fi operating mode to the first Wi-Fi operating mode in the entire Wi-Fi activity cycle can be dynamically adjusted according to different connection modes with the data transmitter. This means different proportions correspond to different Wi-Fi operating modes with the data transmitter, thus improving data transmission efficiency and further enhancing communication connection quality even with limited device performance.

[0045] Figure 1 This disclosure provides an architectural diagram for a data transmission scenario. For example... Figure 1 As shown, this scenario may include a first device 100 and a second device 200, wherein both the first device 100 and the second device 200 can simultaneously support two or more WIFI working modes. In the current scenario, the first device 100 can be the current data receiver, while the second device 200 can be the current data sender. Of course, the first device 100 may also be communicating with other devices at the same time.

[0046] In this way, when the first device 100 and the second device 200 are successfully connected through the first WIFI working mode, that is, when the second device 200 can send current data to the first device 100 through the first WIFI working mode, and the first device 100 can receive current data through the first WIFI working mode, the first device 100 can adjust the proportion of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to a first proportion that matches the first WIFI working mode, and transmit data with the data sending end through the first WIFI working mode according to the first proportion.

[0047] When the first Wi-Fi operating mode is P2P mode and the second Wi-Fi operating mode is STA mode, if the first device 100 and the second device 200 successfully connect via P2P (i.e., the first device 100 and the second device 200 connect via P2P mode), the first device 100 can adjust the time ratio of STA mode to P2P mode in the entire Wi-Fi activity cycle to the first ratio. The first ratio can be 500,000:450,000; or other values ​​obtained through multiple experiments in a shielded room environment, such as 510,000:460,000, 490,000:430,000, etc.

[0048] At this time, when the first device 100 supports multiple concurrent interfaces and communicates with other devices simultaneously through STA mode and P2P mode, and the first device 100 and the second device 200 are successfully connected through P2P mode, the proportion of P2P mode in the entire WIFI activity cycle is increased, the probability of P2P mode being fully occupied and STA mode being idle is reduced, the data transmission rate is improved, and the quality of data connection between devices is further improved.

[0049] In some embodiments, when the first device 100 and the second device 200 disconnect, that is, when the second device 200 no longer sends data to the first device 100, the first device 100 can adjust the duration ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to a second ratio that matches the second WIFI working mode, wherein the duration ratio value corresponding to the second WIFI working mode in the second ratio is greater than the duration ratio value corresponding to the second WIFI working mode in the first ratio.

[0050] Since the first device 100 and the second device 200 no longer use the first WIFI working mode for data communication, the first device 100 can communicate with other devices. At this time, the duration corresponding to the first WIFI working mode can be reduced, while the duration corresponding to the second WIFI working mode can be increased.

[0051] When the first Wi-Fi operating mode is P2P mode and the second Wi-Fi operating mode is STA mode, if the first device 100 and the second device 200 no longer use P2P mode for connection, the first device 100 can adjust the time ratio of STA mode to P2P mode in the entire Wi-Fi activity cycle to the second ratio. The second ratio can be 370000:200000; or other values ​​obtained through multiple experiments in a shielded room environment, such as 380000:200000, 390000:220000, etc.

[0052] The first device 100 supports multiple concurrent interfaces. When communicating with other devices simultaneously through STA mode and P2P mode, if the first device 100 does not use P2P mode to receive data, the proportion of time spent in P2P mode during the entire WIFI activity cycle can be reduced, while the proportion of time spent in STA mode during the entire WIFI activity cycle can be increased. This further reduces the probability of situations where data transmission in STA mode is fully occupied and data transmission in P2P mode is idle. Under the condition of limited device performance, this improves the efficiency of data transmission and further improves the quality of communication connection.

[0053] Of course, in some embodiments, the first device 100 may transmit data with the current data generating end by default according to the second ratio. That is, the first device 100 may save the second ratio. Thus, when the first device 100 and the second device 200 successfully connect using the second WIFI working mode, the first device 100 may receive the current data sent by the second device 200 through the second WIFI working mode according to the saved second ratio.

[0054] In related technologies, during the process of receiving data, STA mode is the main WIFI working mode. That is, when the first WIFI working mode is P2P mode and the second WIFI working mode is STA mode, if the first device 100 and the second device 200 successfully connect using STA mode, the first device 100 can receive the current data sent by the second device 200 through STA mode according to the saved second ratio.

[0055] Of course, in some embodiments, the second Wi-Fi working mode may not be the default primary working mode. Therefore, when a successful connection is established with the current data sender using the second Wi-Fi working mode, the first device 100 adjusts the duration ratio of the second Wi-Fi working mode to the first Wi-Fi working mode throughout the entire Wi-Fi activity cycle to a third ratio. Based on this third ratio, data is transmitted with the current data sender using the second Wi-Fi working mode. The duration corresponding to the second Wi-Fi working mode in the third ratio is greater than the duration corresponding to the second Wi-Fi working mode in the first ratio. The third ratio matches the second Wi-Fi working mode and may be equal to the second ratio; however, in some embodiments, they may not be equal.

[0056] Of course, in data transmission scenarios, any device can be a data receiver, and the duration of the second and first Wi-Fi modes within the entire Wi-Fi activity cycle can be adjusted according to the connection method with the data sender. Thus, even with limited device performance, data transmission efficiency is improved, and the quality of the communication connection is further enhanced.

[0057] Figure 2 This is a schematic flowchart illustrating a data transmission method provided in an embodiment of this disclosure. The device is equipped with a millimeter-wave radar, such as... Figure 2 As shown, the data transmission process includes:

[0058] Step 201: If it is confirmed that the connection with the current data sending end using the first WIFI working mode is successful, adjust the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to the first ratio.

[0059] The first proportion matches the first Wi-Fi working mode. The device has already connected to the current data transmitter using the first Wi-Fi working mode. Thus, the duration proportion of the second Wi-Fi working mode, which matches the first Wi-Fi working mode, can be adjusted to match the first Wi-Fi working mode throughout the entire Wi-Fi activity cycle. In some embodiments, adjusting the duration proportion of the second Wi-Fi working mode to match the first Wi-Fi working mode throughout the entire Wi-Fi activity cycle includes: when the first Wi-Fi working mode is P2P mode and the second Wi-Fi working mode is STA mode, calling the duty cycle adjustment function to determine the duration parameter corresponding to the STA mode as 500000; and calling the duty cycle adjustment function to determine the duration parameter corresponding to the P2P mode as 450000.

[0060] For example: When a P2P connection is received from the current data sender, the receiving end will receive [data] after the connection is successful.

[0061] The broadcast of `WifiP2pManager.ACTION_MIRACAST_WIFI_P2P_AS_GO_CONNECT_SUCCESS` indicates a successful connection negotiation. At this point, before the receiving end updates the connection information, the duty cycle adjustment function is called.

[0062] executeCommand("iwpriv wlan0 driver\"SET_CFG

[0063] MccStaQuotaTimeInUs 50000\"");

[0064] executeCommand("iwpriv wlan0 driver\"SET_CFGMccP2pGoQuotaTimeInUs450000\"");

[0065] executeCommand("iwpriv wlan0 driver\"SET_CFGMccP2pGcQuotaTimeInUs450000\"");

[0066] Among them, the implementation of the executeCommand function is as follows:

[0067] public static String executeCommand(String command){

[0068] StringBuilder output = new StringBuilder();

[0069] try{

[0070] Process process = Runtime.getRuntime().exec(command);

[0071] BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));

[0072] String line;

[0073] while((line = reader.readLine())!= null){

[0074] output.append(line + "\n");

[0075] }

[0076] [[ID=​​​​​​​​​​​​​​​​​​​​After the call is completed, the ratio of the receiving end is modified to sta:p2p = 50000:450000. At this time, the p2p method has a larger proportion, ensuring that the connection update and connection quality that will be performed immediately are relatively better.

[0084] Step 202: Based on the first proportion, transmit data with the current data sending end through the first WIFI working mode.

[0085] After adjusting the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to the first ratio, the first WIFI working mode is allocated more resources. Thus, according to the first ratio, data sent by the current data sender can be received through the first WIFI working mode.

[0086] As can be seen, in this embodiment, after adjusting the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle, the efficiency of receiving data sent by the data sender through the first WIFI working mode is higher, which further improves the communication connection quality.

[0087] Of course, in some embodiments, when it is determined that the connection with the current data sender is disconnected, the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle is adjusted to a second ratio, wherein the time ratio corresponding to the second WIFI working mode in the second ratio is greater than the time ratio corresponding to the second WIFI working mode in the first ratio.

[0088] This means that data is no longer being received from the current data sender. At this point, the time ratio of the second Wi-Fi working mode and the first Wi-Fi working mode in the entire Wi-Fi activity cycle can be adjusted to the second ratio. The time ratio corresponding to the first Wi-Fi working mode decreases, while the time ratio corresponding to the second Wi-Fi working mode increases.

[0089] In some embodiments, adjusting the duration ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to a second ratio includes: when the first WIFI working mode is P2P mode and the second WIFI working mode is STA mode, calling the duty cycle adjustment function to determine the duration parameter corresponding to STA mode as 370000; calling the duty cycle adjustment function to determine the duration parameter corresponding to P2P mode as 200000.

[0090] For example: When disconnecting after use, after the receiver receives the WifiP2pManager.ACTION_MIRACAST_WIFI_P2P_DISCONNECTED broadcast, the duty cycle recovery function is called after the connected device is removed.

[0091] executeCommand("iwpriv wlan0 driver\"SET_CFG MccStaQuotaTimeInUs370000\"");

[0092] executeCommand("iwpriv wlan0 driver\"SET_CFGMccP2pGoQuotaTimeInUs200000\"");

[0093] executeCommand("iwpriv wlan0 driver\"SET_CFGMccP2pGcQuotaTimeInUs200000\"");

[0094] The ratio will be adjusted to the second ratio, i.e., sta:p2p = 370000:200000. This increases the sta ratio to maintain the quality of communication connections in the normal mode.

[0095] Therefore, in some embodiments, the device can default the second WIFI working mode to the normal mode. Thus, the second ratio can be saved. In this way, when it is determined that the connection with the current data sender is successful using the second WIFI working mode, data is transmitted with the current data sender through the second WIFI working mode according to the saved second ratio.

[0096] At this point, even if the connection with the current data sender is confirmed to be lost, there is no need to adjust the time ratio of the second Wi-Fi working mode to the first Wi-Fi working mode throughout the entire Wi-Fi activity cycle; the second ratio can still be maintained. Only when a successful connection with the current data sender using the first Wi-Fi working mode is established will the ratio be adjusted to the first ratio, and data transmission with the current data sender will proceed according to the first ratio using the first Wi-Fi working mode.

[0097] In some embodiments, there is no default normal mode. Therefore, when it is determined that a connection with the current data sender is successfully established using the second WIFI working mode, the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle is adjusted to a third ratio. Based on the third ratio, data is transmitted with the current data sender through the second WIFI working mode. The duration of the second WIFI working mode in the third ratio is greater than the duration of the second WIFI working mode in the first ratio.

[0098] The third proportion can be the same as or different from the second proportion, or the corresponding value can be obtained through multiple experiments in a shielded room environment. That is, after successfully connecting to the current working mode of the current data transmitter, data transmission can be performed with the current data transmitter through the current Wi-Fi working mode based on the current proportion matching the current working mode. Specifically, if the current working mode is the first Wi-Fi working mode, data transmission can be performed with the current data transmitter through the first Wi-Fi working mode based on the corresponding first proportion. If the current working mode is the second Wi-Fi working mode, data transmission can be performed with the current data transmitter through the second Wi-Fi working mode based on the corresponding third proportion.

[0099] As can be seen, the time ratio of different second WIFI working modes and first WIFI working modes in the entire WIFI activity cycle can be determined flexibly according to the WIFI working mode used to connect to the data sending end. Therefore, the time ratio corresponding to the two working modes can be dynamically adjusted, which improves the efficiency of data transmission and further improves the quality of communication connection when the device performance is limited.

[0100] The following describes the operation process in a specific embodiment, illustrating the data transmission process provided by the embodiments of the present invention.

[0101] In one embodiment of this disclosure, the first device may be a television, and the second device may be a signal source device. The first WIFI working mode is P2P mode, the second WIFI working mode is STA mode, and STA mode is a conventional receiver communication mode. The second ratio stored in the device is 370000:200000, while the first ratio is 300000:430000.

[0102] Figure 3 This is a flowchart illustrating a data transmission method provided in an embodiment of this disclosure. Figure 3 As shown, the data transmission process includes:

[0103] Step 301: Does the TV determine whether a communication connection has been established with the signal source device? If yes, proceed to step 302; otherwise, return to step 301.

[0104] Step 302: Does the TV determine if the communication connection is a P2P mode connection? If yes, proceed to step 303; otherwise, proceed to step 307.

[0105] Step 303: The TV calls the duty cycle adjustment function to determine the duration parameter corresponding to STA mode as 300000; and calls the duty cycle adjustment function to determine the duration parameter corresponding to P2P mode as 430000.

[0106] Step 304: The TV receives data sent by the signal source device via P2P mode based on 300000:430000.

[0107] Step 305: Does the TV determine if the communication connection with the signal source device has been lost? If yes, proceed to step 306; otherwise, return to step 304.

[0108] Step 306: The TV calls the duty cycle adjustment function to set the duration parameter for STA mode to 370000; it then calls the duty cycle adjustment function to set the duration parameter for P2P mode to 200000. This process is now complete.

[0109] Step 307: The TV receives data sent by the signal source device through STA mode based on the saved second ratio.

[0110] Step 308: Does the TV determine if the communication connection with the signal source device has been lost? If yes, this process ends; otherwise, proceed to step 307.

[0111] As can be seen, in this embodiment, the TV can simultaneously have both STA (Station) and P2P (Wi-Fi Direct) working modes, and dynamically adjust the proportion of STA mode and P2P mode in the entire WIFI activity cycle according to different connection modes with the signal source device. That is, different proportions correspond to different WIFI working modes with the signal source. In this way, the efficiency of data transmission is improved and the quality of communication connection is further improved when the TV has limited performance.

[0112] Based on the above-described process for data transmission, a device for data transmission can be constructed, which can be applied to WIFI devices that simultaneously support two or more WIFI working modes.

[0113] Figure 4 This is a schematic diagram of a data transmission device provided in an embodiment of this disclosure. Figure 4 As shown, the data transmission device 400 includes a first adjustment module 410 and a first transmission module 420.

[0114] The first adjustment module 410 is configured to, upon confirming a successful connection with the current data sending end using the first WIFI working mode, adjust the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to the first ratio.

[0115] The first transmission module 420 is configured to transmit data with the current data sender through a first WIFI working mode according to a first ratio.

[0116] In some embodiments, the first adjustment module 410 is specifically configured to, when the first WIFI working mode is P2P mode and the second WIFI working mode is STA mode, call the duty cycle adjustment function to determine the duration parameter corresponding to STA mode as 500000; and call the duty cycle adjustment function to determine the duration parameter corresponding to P2P mode as 450000.

[0117] In some embodiments, it also includes:

[0118] The second adjustment module is configured to, when it is determined that the connection with the current data sending end has been disconnected, adjust the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to a second ratio, wherein the time ratio corresponding to the second WIFI working mode in the second ratio is greater than the time ratio corresponding to the second WIFI working mode in the first ratio.

[0119] In some embodiments, the second adjustment module is specifically configured to, when the first WIFI working mode is P2P mode and the second WIFI working mode is STA mode, call the duty cycle adjustment function to determine the duration parameter corresponding to STA mode as 370000; and call the duty cycle adjustment function to determine the duration parameter corresponding to P2P mode as 200000.

[0120] In some embodiments, the system further includes a second transmission module configured to, upon determining that a successful connection has been established with the current data sender using a second WIFI working mode, transmit data with the current data sender using the second WIFI working mode according to a saved second ratio.

[0121] In some embodiments, the system further includes a third adjustment module, configured to, upon determining that a successful connection has been established with the current data transmitter using the second WIFI working mode, adjust the duration ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to a third ratio, and transmit data with the current data transmitter using the second WIFI working mode according to the third ratio, wherein the duration corresponding to the second WIFI working mode in the third ratio is greater than the duration corresponding to the second WIFI working mode in the first ratio.

[0122] The data transmission process for the data transmission device is further described below with reference to embodiments.

[0123] In this embodiment, the first device can be a television, and the second device can be a signal source device. The first WIFI working mode is P2P mode, the second WIFI working mode is STA mode, and STA mode is a conventional receiver communication mode. The second ratio stored in the device is 370000:200000, while the first ratio is 300000:430000.

[0124] Figure 5 This is a schematic diagram of a data transmission device provided in an embodiment of this disclosure. Figure 5 As shown, the data transmission device 500 includes: a first adjustment module 410, a first transmission module 420, a second adjustment module 430, and a second transmission module 440.

[0125] In this embodiment, after the television and the signal source device establish a P2P mode connection, the first adjustment module 410 calls the duty cycle adjustment function to determine the duration parameter corresponding to the STA mode as 300000; and calls the duty cycle adjustment function to determine the duration parameter corresponding to the P2P mode as 430000. Therefore, the first transmission module 420 receives data sent by the signal source device through the P2P mode according to 300000:430000.

[0126] After confirming that the TV and the signal source device have disconnected the P2P mode connection, the second adjustment module 430 calls the duty cycle adjustment function to set the duration parameter corresponding to the STA mode to 370000; and calls the duty cycle adjustment function to set the duration parameter corresponding to the P2P mode to 200000.

[0127] Of course, after the TV and the signal source device establish a STA mode connection, the second transmission module 440 can receive the data sent by the signal source device through STA mode according to the saved second ratio.

[0128] As can be seen, in this embodiment, the television can simultaneously have both STA (Station) and P2P (Wi-Fi Direct) working modes. The data transmission device dynamically adjusts the proportion of STA mode and P2P mode in the entire WIFI activity cycle according to different connection modes with the signal source device. That is, different proportions correspond to different WIFI working modes with the signal source. In this way, the efficiency of data transmission is improved and the quality of communication connection is further improved when the television performance is limited.

[0129] Combination Figure 6 This disclosure provides an apparatus 600 for data transmission, comprising:

[0130] The processor 1000 and memory 1001 may further include a communication interface 1002 and a bus 1003. The processor 1000, communication interface 1002, and memory 1001 can communicate with each other via the bus 1003. The communication interface 1002 can be used for information transmission. The processor 1000 can invoke logical instructions stored in the memory 1001 to execute the data transmission method described in the above embodiments.

[0131] Furthermore, the logic instructions in the aforementioned memory 1001 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0132] The memory 1001, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 1000 executes functional applications and data processing by running the program instructions / modules stored in the memory 1001, that is, it implements the method for data transmission in the above method embodiments.

[0133] The memory 1001 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 1001 may include high-speed random access memory and may also include non-volatile memory.

[0134] This disclosure provides a data transmission apparatus, including: a processor and a memory storing program instructions, wherein the processor is configured to execute a data transmission method when executing the program instructions.

[0135] Combination Figure 7 This disclosure provides a device 700, which can be a smart device, such as a television, projector, or handheld terminal, etc., including: a device body and the aforementioned data transmission device 400 (600). The data transmission device 400 (600) is installed in the device body. The installation relationship described herein is not limited to placement inside the product, but also includes installation connections with other components of the product, including but not limited to physical connections, electrical connections, or signal transmission connections. Those skilled in the art will understand that the data transmission device 400 (600) can be adapted to feasible device bodies to achieve other feasible embodiments.

[0136] This disclosure provides a storage medium storing program instructions that, when executed, perform the method for data transmission as described above.

[0137] This disclosure provides a computer program product, which includes a computer program stored on a storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the above-described data transmission method.

[0138] The aforementioned storage medium can be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0139] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media capable of storing program code; it can also be a transient storage medium.

[0140] The foregoing description and accompanying drawings fully illustrate embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included or replace parts and features of other embodiments. The scope of the embodiments of this disclosure includes the entire scope of the claims and all available equivalents of the claims. While the terms “first,” “second,” etc., may be used in this application to describe elements, these elements should not be limited by these terms. These terms are used only to distinguish one element from another. For example, a first element may be called a second element without changing the meaning of the description, and similarly, a second element may be called a first element, provided that all occurrences of “first element” are consistently renamed and all occurrences of “second element” are consistently renamed. First and second elements are both elements, but may not be the same element. Moreover, the terminology used in this application is only for describing embodiments and is not intended to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “the” are intended to also include the plural forms. Similarly, the term “and / or” as used herein means including one or more of the associated listed elements and all possible combinations thereof. Additionally, when used herein, the terms “comprise” and its variations “comprises” and / or “comprising” refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase “comprising an…” does not exclude the presence of additional identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.

[0141] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0142] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0143] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

Claims

1. A method for data transmission, characterized in that, include: If a successful connection is established with the current data sending end using the first WIFI working mode, the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle will be adjusted to the first ratio. Based on the first proportion, data is transmitted with the current data sender through the first WIFI working mode.

2. The method according to claim 1, characterized in that, The adjustment of the time ratio of the second WIFI working mode to the first WIFI working mode in the entire WIFI activity cycle to the first ratio includes: When the first WIFI working mode is P2P mode and the second WIFI working mode is STA mode, the duty cycle adjustment function is called to determine the corresponding duration parameter of STA mode to 500000. The duty cycle adjustment function is called to set the duration parameter corresponding to the P2P mode to 450000.

3. The method according to claim 1, characterized in that, Also includes: If it is determined that the connection with the current data sender is disconnected, the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle is adjusted to the second ratio, wherein the time ratio corresponding to the second WIFI working mode in the second ratio is greater than the time ratio corresponding to the second WIFI working mode in the first ratio.

4. The method according to claim 3, characterized in that, The adjustment of the time ratio of the second WIFI working mode to the first WIFI working mode in the entire WIFI activity cycle to the second ratio includes: When the first WIFI working mode is P2P mode and the second WIFI working mode is STA mode, the duty cycle adjustment function is called to determine the corresponding duration parameter of STA mode as 370000. Call the duty cycle adjustment function to set the duration parameter corresponding to P2P mode to 200000.

5. The method according to any one of claims 1-4, characterized in that, Also includes: Once it is confirmed that a successful connection has been established with the current data sender using the second WIFI working mode, data transmission will be performed with the current data sender using the second WIFI working mode, based on the saved second ratio.

6. The method according to claim 1 or 2, characterized in that, Also includes: If a successful connection is established with the current data sender using the second WIFI working mode, the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle is adjusted to the third ratio. Based on the third ratio, data is transmitted with the current data sender using the second WIFI working mode. The duration of the second WIFI working mode in the third ratio is greater than the duration of the second WIFI working mode in the first ratio.

7. An apparatus for data transmission, characterized in that, include: The first adjustment module is configured to, upon confirming a successful connection with the current data sender using the first WIFI working mode, adjust the time ratio of the second WIFI working mode and the first WIFI working mode in the entire WIFI activity cycle to the first ratio. The first transmission module is configured to transmit data with the current data sender through a first WIFI working mode according to a first proportion.

8. An apparatus for data transmission, the apparatus comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to perform the method for data transmission as described in any one of claims 1 to 6 when executing the program instructions.

9. A device, characterized in that, include: Equipment body; The means for data transmission as described in claim 7 is mounted on the device body.

10. A storage medium storing program instructions, characterized in that, When the program instructions are executed, they perform the method for data transmission as described in any one of claims 1 to 6.