Data transmission method, device, storage medium and terminal
By detecting the call status at the terminal and switching to an antenna farther away from the wired data transmission interface for the call, the problem of USB 3.0 data transmission interruption is solved and the stability and continuity of data transmission are improved.
Patent Information
- Application Number
- CN202210399938.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-15
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-04-15
AI Technical Summary
When using the USB 3.0 wired data transmission interface for data transmission, transmission interruption problems often occur, resulting in unstable data transmission, mainly due to interference from the wireless call frequency band.
By detecting the call status of the terminal and switching to an antenna farther away from the wired data transmission interface for the call, the interference of the call frequency band signal on the data transmission is reduced.
It improves the stability of USB 3.0 data transmission, reduces the interference of call band signals on data transmission, and ensures the continuity and quality of data transmission.
Smart Images

Figure CN114665941B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent terminals, and in particular to a data transmission method, device, storage medium and terminal. Background Art
[0002] USB 3.0 is a standard interface specification initiated by Intel and other companies. It provides a standard interface for connecting personal computers (PCs) with audio devices and smart devices, enabling plug-and-play connectivity for a wide range of devices. While maintaining compatibility with USB 2.0, USB 3.0 offers several enhancements: increased transfer rates (USB 3.0: 5Gbps, USB 2.0: 480Mbps), improved power management, faster device recognition, and faster data processing. However, data transmission using wired data transmission interfaces such as USB 3.0 often suffers from interruptions and poor data transmission stability. Summary of the Invention
[0003] The present application provides a data transmission method, device, storage medium and terminal, which can improve the stability of data transmission.
[0004] In a first aspect, the present application provides a data transmission method, the method comprising:
[0005] When the terminal is transmitting data through the wired data transmission interface, performing call detection on the terminal;
[0006] If the terminal uses a preset frequency band for a call, determining a target antenna from multiple antennas of the terminal, the preset frequency band is a frequency band that interferes with data transmission of the wired data transmission interface, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface;
[0007] The antenna used for the current call is switched to the target antenna for the call.
[0008] Accordingly, a second aspect of the present application provides a data transmission device, comprising:
[0009] A detection module, configured to perform call detection on the terminal when the terminal is transmitting data via the wired data transmission interface;
[0010] a determination module, configured to determine, if the terminal uses a preset frequency band for a call, a target antenna from multiple antennas of the terminal, wherein the preset frequency band is a frequency band that interferes with data transmission by the wired data transmission interface, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface;
[0011] The switching module is used to switch the antenna used for the current call to the target antenna for the call.
[0012] In a third aspect, the present application provides a storage medium on which a computer program is stored. When the computer program is loaded by a processor of an electronic device, the steps in any data transmission method provided in the present application are executed.
[0013] In a fourth aspect, the present application also provides an electronic device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps in any data transmission method provided in the present application by loading the computer program stored in the memory.
[0014] The technical solution provided in this application is adopted, that is, when a terminal is transmitting data through a wired data transmission interface, a call detection is performed on the terminal; if the terminal is using a preset frequency band for a call, a target antenna is determined from multiple antennas of the terminal, where the preset frequency band is a frequency band that interferes with the data transmission of the wired data transmission interface, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; and the antenna used for the current call is switched to the target antenna for the call. With this method, when the terminal is transmitting data through the wired data transmission interface, the antenna used for the call can be switched to an antenna farther away from the wired data transmission interface, thereby reducing the interference of the call frequency band signal on the data transmission, and thus improving the stability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 This is a flow chart of the data transmission method provided in an embodiment of the present application.
[0017] Figure 2 This is a schematic diagram of the hardware structure of the mobile terminal provided in an embodiment of the present application.
[0018] Figure 3This is another flowchart of the data transmission method provided in an embodiment of the present application.
[0019] Figure 4 This is a structural block diagram of the data transmission device provided in an embodiment of the present application.
[0020] Figure 5 This is a structural block diagram of the terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] It should be noted that the terms "first," "second," and "third," etc., in this application are used to distinguish between different objects, rather than to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or modules is not limited to the listed steps or modules, but rather some embodiments may include steps or modules not listed, or some embodiments may include other steps or modules that are inherent to the process, method, product, or apparatus.
[0022] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0023] The embodiments of the present application provide a data transmission method, apparatus, storage medium, and terminal. The data transmission method may be performed by the data transmission apparatus provided in the embodiments of the present application, or by an electronic device incorporating the data transmission apparatus. The data transmission apparatus may be implemented in hardware or software. The electronic device may be a mobile terminal. The mobile terminal may be a smartphone, tablet, vehicle-mounted terminal, or smart wearable device.
[0024] Please refer to Figure 1 , Figure 1 A flow chart of a data transmission method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the process of the data transmission method provided in the embodiment of the present application can be as follows:
[0025] In 110, when the terminal is transmitting data through the wired data transmission interface, a call detection is performed on the terminal.
[0026] The following description will be made using a data transmission device as an example in which the data transmission method is performed. The data transmission device may be integrated into a mobile terminal. Specifically, the data transmission device may be integrated into an application processor (AP) of the mobile terminal.
[0027] Driven by the demand for higher resolution and improved storage performance in consumer electronic devices, users are demanding faster and more stable transmission performance when connecting their devices to internet resources, enabling them to download, store, and share resources. This has given rise to the USB 3.0 standard interface. Not only does it significantly improve data transmission efficiency, but it also offers advantages such as ease of use, hot-swappable support, flexible connectivity, and independent power supply, making it increasingly popular among users.
[0028] However, USB3.0 uses spread spectrum technology, which brings broadband noise from 0 to 5 GHz while running high-speed signal transmission. In particular, there is about 20dB of noise in the 2.4GHz to 2.5GHz frequency band, which is enough to interfere with the normal use of wireless devices (such as wireless network cards, wireless mice, and wireless headphones). Similarly, the anti-interference performance of USB3.0 is also poor, so the grounding measures of the connector and the printed circuit board (PCB) / middle frame are crucial. When the antenna near the connector makes a high-power call (such as the Global System for Mobile Communications (GSM)), the main wave energy radiated by the antenna will interfere with the transmission of USB3.0, resulting in the problem of USB3.0 transmission interruption. In order to solve the problem that calls in the above situation cause the interruption of USB3.0 data transmission and the unstable data transmission, the present application provides a data transmission method, which can effectively improve the stability of USB3.0 during data transmission.
[0029] Specifically, when the wired data transmission interface of the terminal is connected to USB 3.0 and receives an instruction to perform data transmission via the connected USB 3.0, a call detection may be performed on the terminal to determine whether the terminal is in a call state.
[0030] In some embodiments, when a terminal is transmitting data through a wired data transmission interface, performing call detection on the terminal includes:
[0031] A. When the terminal transmits data through the wired data transmission interface, the transmission rate of the data transmission is detected;
[0032] B. When the transmission rate is lower than the target rate value, perform call detection on the terminal.
[0033] In an embodiment of the present application, when the AP receives an instruction to connect to USB3.0 for data transmission via a wired data transmission interface, it is not necessary to directly perform call detection on the terminal. Instead, data transmission can be performed first and the current data transmission rate can be detected. If it is detected that the current data transmission rate is greater than a preset target rate value, it can be determined that the current data transmission is not interfered with or is less interfered with, and no further call control is required; on the contrary, if it is detected that the current data transmission rate is less than the target rate value, it can be determined that the current data transmission is caused by signal interference, resulting in transmission degradation or transmission interruption. In this case, it is necessary to control the call process to avoid signal interference of the current call on the data transmission. That is, when the transmission rate is less than the preset target rate value, call detection is performed on the terminal again.
[0034] In some embodiments, when the terminal is transmitting data through the wired data transmission interface, performing call detection on the terminal includes:
[0035] 1. When it is detected that the terminal is transmitting data through the wired data transmission interface, a target broadcast is sent to the terminal's radio frequency modem. The target broadcast is used to control the radio frequency modem to obtain the terminal's call status information;
[0036] 2. Receive the call status information returned by the RF modem and perform call detection on the terminal based on the call status information.
[0037] In the embodiments of the present application, call detection is performed on the terminal, specifically by using the terminal's radio frequency modem. The radio frequency modem can be integrated into the terminal's baseband processor (BP). Typically, the terminal separates the AP and BP because radio frequency control-related functions (such as signal modulation, coding, and radio frequency shifting) are highly time-dependent. It's best to run these functions on a central processing unit (CPU) core, with a real-time operating system running on this CPU core. This prevents vulnerabilities in the operating system and driver on the AP core from causing the device to send catastrophic data to the mobile network. Once the BP is designed and certified, it can correctly perform communication functions regardless of changes in the operating system and application software used, allowing mobile phone designers greater freedom in designing user interfaces and application software. Specifically, the operating system, user interface, and application programs all run on the AP, while the radio frequency communication and control software runs on the BP.
[0038] When the terminal's AP detects the need to connect to a USB 3.0 wired data transmission interface for data transmission, it can send a broadcast, referred to herein as a targeted broadcast, to the RF modem in the BP. This targeted broadcast controls the RF modem to retrieve the RF call status in the BP, specifically, the terminal's call status information. After obtaining the terminal's call status information, the RF modem returns it to the AP, which then performs call detection on the terminal based on the received call status information. Call detection can specifically include detecting whether the terminal is in a call state and, if so, further detecting the type of call state. Terminal call states can include GSM calls (i.e., 2G calls), 3G calls (3G stands for 3rd generation mobile communication technology), Voice over Long-Term Evolution (VoLTE) calls (i.e., 4G calls), and New Radio (NR) calls (i.e., 5G calls). The RF modem can determine the terminal's current call state by detecting the frequency band of the active voice channel.
[0039] In 120, if the terminal uses a preset frequency band for communication, a target antenna is determined from multiple antennas of the terminal.
[0040] When the AP determines that the terminal is currently in a call state through the call state information returned by the radio modem, it can further determine the type of call the terminal is currently in, for example, whether the terminal is currently in a GSM call or a 3G call.
[0041] At this point, it can be further determined whether the call type currently described by the terminal is a preset call type. Since different call types use different frequency bands, it is possible to determine whether the call uses the preset call type by determining the call frequency band currently used by the terminal. When it is determined that the terminal uses a preset frequency band for the call, the preset frequency band here can be a frequency band that interferes with the data transmission of the wired data transmission interface, such as the frequency band corresponding to the GSM call type. A target antenna can be determined from the multiple antennas of the terminal, wherein the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface.
[0042] Specifically, a terminal may have multiple antennas. For example, a mobile phone has an upper antenna and a lower antenna. Generally, the upper antenna is installed at the top of the mobile phone, and the lower antenna is generally installed at the bottom of the mobile phone near the microphone and the wired data transmission interface or the power interface. Figure 2FIG. 1 is a schematic diagram of the hardware structure of the mobile phone provided in this application. The mobile phone 10 includes a wired data transmission interface 13, which can be used to connect to a USB 3.0 device for data transmission. Furthermore, the mobile phone 10 includes an upper antenna 11 and a lower antenna 12. During a call, the mobile phone can use either the upper antenna 11 or the lower antenna 12. The antenna used for calls is not specifically limited, and the antenna used for calls can be switched based on real-time call quality. However, because the lower antenna 12 of the mobile phone is located very close to the wired data transmission interface 13, if the lower antenna is used for calls, the main wave energy radiated by the lower antenna will interfere with USB 3.0 data transmission and may even cause USB 3.0 data transmission interruptions. In this case, the upper antenna 11 of the mobile phone can be identified as the target antenna. Because the upper antenna 11 of the mobile phone is located farther from the wired data transmission interface 13 than the lower antenna 12, the energy radiated by the upper antenna 11 significantly reduces the interference with USB 3.0, thereby ensuring stable USB 3.0 data transmission. The mobile phone 10 further includes a radio frequency modem 14 , which is connected to the upper antenna 11 and the lower antenna 12 respectively. The radio frequency modem 14 is used to specifically control the working status of the upper antenna 11 and the lower antenna 12 .
[0043] The mobile phone described above is merely an example. In some embodiments, a terminal may have a greater number of antennas, for example, three or more. Therefore, when it is determined that the current data transmission is experiencing interference, that is, the data transmission rate is less than a target rate, the current data transmission is determined to be experiencing interference. This also means that the terminal is currently in a call state within a preset frequency band. The antenna used by the terminal for the current call can then be further determined. For example, the terminal may have three antennas: antenna A, antenna B, and antenna C. These three antennas are located from closest to farthest from the wired data transmission interface. If antenna A is determined to be the antenna used for the current call, antenna B or antenna C can be determined as the target antenna. If antenna B is the antenna used for the current call, antenna C can be determined to be the target antenna. If antenna C is the antenna used for the current call, antenna C can also be determined to be the target antenna. Alternatively, in some embodiments, when the terminal has multiple antennas, the antenna farthest from the wired data transmission interface can be determined as the target antenna.
[0044] In 130 , the antenna used for the current call is switched to the target antenna for the call.
[0045] After determining the target antenna, the current call can be switched to the target antenna. Because the target antenna is farther from the wired data transmission interface than the current call antenna, the main wave energy radiated by the target antenna during the call will have less interference with the USB 3.0 interface connected to the wired data transmission interface, thereby improving the stability of data transmission using USB 3.0 on the wired data transmission interface.
[0046] In some embodiments, switching the antenna used for the current call to the target antenna for the call includes:
[0047] 1. Generate antenna lock command according to the target antenna;
[0048] 2. Send an antenna lock command to the radio frequency modem so that the radio frequency modem locks the antenna of the current call to the target antenna.
[0049] In this embodiment of the present application, switching the antenna used for the current call to the target antenna for the call can specifically include sending an antenna lock instruction to the RF modem. The antenna lock instruction is used to control the RF modem to lock the antenna used for the current call to the target antenna. Specifically, the AP can first generate an antenna lock instruction based on the determined target antenna, and then send the antenna lock instruction to the RF modem, causing the RF modem to lock the call antenna to the target antenna. For example, when the target antenna is determined to be the upper antenna of a mobile phone, a command to lock the call antenna to the upper antenna can be sent to the RF modem, causing the RF modem to lock the call antenna to the upper antenna.
[0050] In some embodiments, the data transmission method provided by this application may further include:
[0051] A. Obtaining the data transmission rate of data transmitted through the wired data transmission interface;
[0052] B. When the data transmission rate is lower than the target rate value, the call power is reduced according to the preset adjustment step until the data transmission rate reaches the target rate value.
[0053] In this embodiment of the present application, after the antenna currently used for a call is switched to the target antenna for the call, the data transmission efficiency of the data transmission via the wired data transmission interface can be further obtained, that is, the AP can further obtain the USB 3.0 data transmission rate. If the USB 3.0 data transmission rate reaches the target rate value after the call antenna is locked to the target antenna, it means that locking the target antenna for the call has improved the interference problem caused by the call energy on the data transmission, and data transmission via USB 3.0 can continue. If the USB 3.0 data transmission rate still does not reach the preset target rate value after the call antenna is locked to the target antenna, the call power can be further gradually reduced according to the preset step size until the USB 3.0 data transmission rate reaches the target rate value.
[0054] In some embodiments, when the data transmission rate is lower than the target rate value, reducing the call power according to a preset adjustment step until the data transmission rate reaches the target rate value includes:
[0055] B1. When the data transmission rate is lower than the target rate value, a power adjustment instruction is generated according to a preset adjustment step size;
[0056] B2. Send a power adjustment instruction to the radio frequency modem of the terminal, so that the radio frequency modem reduces the call power according to a preset step size until the data transmission rate reaches the target rate value.
[0057] In embodiments of the present application, call power can also be adjusted via a radio frequency modem. Specifically, when the AP detects that the USB 3.0 data transmission rate still fails to reach a preset target rate after binding the call antenna to the target antenna for a call, it can generate a power adjustment command based on a preset adjustment step size. This power adjustment command is used to adjust the call power. The AP then sends the generated power adjustment command to the radio frequency modem, causing the radio frequency modem to reduce the call power for the current call using the preset adjustment step size. If a terminal is using USB 3.0 for data transmission through a wired data transmission interface and is also in a call state, antenna radiation during the call is likely the factor affecting USB 3.0 data transmission stability. In this case, positioning the call antenna away from the wired data transmission interface can reduce antenna radiation near the wired data transmission interface, thereby minimizing the impact on USB 3.0 data transmission. If the USB 3.0 transmission rate still fails to reach the preset target rate after positioning the call antenna away from the wired data transmission interface, the call power can be further reduced to further reduce the radiation intensity at the USB 3.0 interface, thereby minimizing interference with USB 3.0 data transmission. The call power can be reduced gradually according to a certain adjustment step size to avoid excessive reduction that may lead to a decrease in call quality.
[0058] In some embodiments, in a terminal with multiple antennas, when the call antenna is locked on the target antenna and the USB3.0 data transmission rate still fails to reach the target rate value, it can be further determined whether there is a better antenna in the terminal whose distance from the wired data transmission interface is greater than the distance between the target antenna and the wired data transmission interface. If so, the call antenna can be further locked to the better antenna for communication to further reduce the radiation intensity at the USB3.0 interface, thereby further reducing interference with USB3.0 data transmission and improving USB3.0 data transmission stability.
[0059] In some embodiments, the data transmission method provided by the present application further includes:
[0060] When the data transmission is detected to be finished, a lock release instruction is sent to the radio frequency modem of the terminal, and the lock release instruction is used to release the lock of the communication antenna.
[0061] In this embodiment of the present application, after the call antenna is locked to the target antenna, the data transmission process can be monitored in real time. If the data transmission is detected to have ended, the antenna lock operation that locked the call antenna to the target antenna can be released to ensure call quality. Specifically, after the call antenna is locked to the target antenna, the AP can monitor the data transmission in real time. When the data transmission is detected to have ended, the AP can further send a lock release command to the RF modem. Upon receiving the lock release command, the RF modem further releases the lock on the call antenna.
[0062] In some embodiments, if the call power reduction control is also performed during the call control process, then after the data transmission is completed, the call power reduction operation can be further released so that the call power returns to the initial value, thereby ensuring the call quality.
[0063] The data transmission method provided in this application can lock the terminal's call antenna to an antenna farther from the USB 3.0 data transmission interface if it detects that the terminal is also conducting a call on a preset frequency band when the terminal is using USB 3.0 for data transmission. This method reduces the impact of call radiation energy on USB 3.0 data transmission, thereby ensuring the stability of USB 3.0 data transmission. Furthermore, since USB 3.0 also introduces noise during data transmission, which can interfere with call quality, locking the call antenna to an antenna farther from the USB 3.0 interface can further improve call quality.
[0064] According to the above description, the data transmission method provided by the present application performs call detection on the terminal when the terminal performs data transmission through the wired data transmission interface; if the terminal uses a preset frequency band for the call, a target antenna is determined from multiple antennas of the terminal, the preset frequency band is a frequency band that interferes with the data transmission of the wired data transmission interface, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; the antenna used for the current call is switched to the target antenna for the call. Through this method, when the terminal performs data transmission through the wired data transmission interface, the antenna used for the call can be switched to an antenna that is farther away from the wired data transmission interface, thereby reducing the interference of the call frequency band signal on the data transmission, and thus improving the stability of data transmission.
[0065] Please refer to Figure 3 , Figure 3 Another flow chart of the data transmission method provided in the embodiment of the present application. Figure 3 As shown, the process of the data transmission method provided in the embodiment of the present application can be as follows:
[0066] In 210 , when the AP of the mobile terminal receives an instruction to use USB 3.0 for data transmission, it sends a broadcast to the radio frequency modem of the mobile terminal.
[0067] When the data transmission interface of the mobile terminal is connected to USB3.0 and the user initiates data transmission, the AP of the mobile terminal receives the data transmission instruction and then sends a broadcast to the RF modem in the BP of the mobile terminal. The broadcast is used to control the RF modem to perform call detection on the mobile terminal.
[0068] In 220, the radio frequency modem of the mobile terminal detects whether the mobile terminal is currently in a call state.
[0069] After receiving the broadcast sent by the AP, the RF modem of the mobile terminal detects the call status of the mobile terminal to determine whether the mobile terminal is in a call state. If the mobile terminal is not in a call state, step 280 can be executed, that is, USB 3.0 data transmission is performed.
[0070] In 230, the radio frequency modem of the mobile terminal detects whether the mobile terminal is in a GSM call state.
[0071] When the mobile terminal's RF modem detects that the mobile terminal is in a call, it can further detect whether the mobile terminal is in a GSM call. Generally, when the mobile terminal is in a 3G, 4G, or 5G call, the radiated energy generated is low, and interference with USB 3.0 data transmission is minimal. If the mobile terminal is detected to be in a 3G, 4G, or 5G call, step 280 can be executed, i.e., USB 3.0 data transmission can be performed. If the mobile terminal is detected to be in a GSM call, step 240 can be executed.
[0072] In 240, the RF modem of the mobile terminal locks the GSM call to the upper antenna.
[0073] If the mobile terminal is using GSM, the GSM antenna can be locked to the upper antenna. Since the lower antenna is typically located near the data transmission port, while the upper antenna is located at the top of the mobile terminal, further away from the port, the radiation generated by the upper antenna will have less impact on the USB 3.0 port when using the upper antenna. This also reduces interference from USB 3.0 noise, ensuring both stable data transmission and improved call quality.
[0074] In 250 , the AP of the mobile terminal detects whether the USB 3.0 transmission rate is lower than a preset rate value.
[0075] After locking the call antenna to the mobile terminal's upper antenna, the mobile terminal's access point can further detect whether the USB 3.0 data transfer rate is lower than a preset rate value. This preset rate value can be set to 480 Mbps. If locking the call antenna to the upper antenna still cannot guarantee the USB 3.0 interface's data transfer rate, further call control is required.
[0076] In 260, the AP of the mobile terminal sends a power reduction instruction to the radio modem.
[0077] Specifically, if the USB 3.0 data transfer rate cannot be maintained even after locking the mobile terminal's call antenna to the upper antenna, the call power can be further reduced. For example, the call power for GSM calls can be reduced by 3dB. The mobile terminal's AP can then send a power reduction command to the RF modem, causing it to reduce the power for the current GSM call.
[0078] In 270, the radio frequency modem of the mobile terminal reduces the call power.
[0079] When the mobile terminal's radio modem receives a power reduction instruction from the mobile terminal's AP, it can reduce the power of the current GSM call by 3dB according to the instruction. Alternatively, in some embodiments, a small power reduction step size can be set. The radio modem gradually reduces the power of the GSM call according to the step size and monitors the data transmission rate of the USB 3.0 interface in real time during the power reduction process. When the data transmission rate of the USB 3.0 interface reaches a preset transmission rate value, the power reduction operation can be stopped and data transmission can continue.
[0080] In 280 , the AP of the mobile terminal performs USB 3.0 data transmission.
[0081] After the GSM call is powered down, the USB 3.0 data transmission task can continue. When the mobile terminal is not in a call state or the mobile terminal is in a call state but not in a GSM call state, the USB 3.0 data transmission task can also continue.
[0082] In 290 , when it is detected that the USB 3.0 data transmission stops, the RF modem executes instructions to release the antenna lock and reduce power.
[0083] Among them, during the execution of USB3.0 data transmission tasks, the data transmission status can also be detected in real time. When the data transmission is detected to be completed, the AP of the mobile terminal sends a release instruction to the RF modem of the mobile terminal. The release instruction is used to release the antenna and reduce the power, that is, to contact the aforementioned locked upper antenna for calls and reduce the call power.
[0084] Please refer to Figure 4 , Figure 4 Schematic diagram of a data transmission device 300 provided in an embodiment of the present application. The data transmission device 300 is applied to the electronic device provided in the present application. Figure 4 As shown, the data transmission device 300 may include:
[0085] The detection module 310 is used to perform call detection on the terminal when the terminal is transmitting data through the wired data transmission interface;
[0086] a determination module 320 for determining a target antenna from multiple antennas of the terminal when the terminal uses a preset frequency band for a call, the preset frequency band being a frequency band that interferes with data transmission on a wired data transmission interface, and a distance between the target antenna and the wired data transmission interface being greater than a distance between the antenna used for the current call and the wired data transmission interface;
[0087] The switching module 330 is configured to switch the antenna currently used for the call to the target antenna for the call.
[0088] Optionally, in one embodiment, the data transmission device provided by the present application further includes:
[0089] An acquisition module, configured to acquire a data transmission rate for data transmission via a wired data transmission interface;
[0090] The adjustment module is used to reduce the call power according to a preset adjustment step when the data transmission rate is lower than the target rate value until the data transmission rate reaches the target rate value.
[0091] Optionally, in one embodiment, the adjustment module includes:
[0092] A first generating submodule is configured to generate a power adjustment instruction according to a preset adjustment step size when the data transmission rate is lower than a target rate value;
[0093] The first sending submodule is configured to send a power adjustment instruction to the radio frequency modem of the terminal, so that the radio frequency modem reduces the call power according to a preset adjustment step until the data transmission rate reaches a target rate value.
[0094] Optionally, in one embodiment, the detection module includes:
[0095] The second sending submodule is used to send a target broadcast to the radio frequency modem of the terminal when it is detected that the terminal is transmitting data through the wired data transmission interface. The target broadcast is used to control the radio frequency modem to obtain the call status information of the terminal;
[0096] The receiving submodule is used to receive the call status information returned by the radio frequency modem and perform call detection on the terminal based on the call status information.
[0097] Optionally, in one embodiment, the switching module includes:
[0098] A second generating submodule is used to generate an antenna locking instruction according to the target antenna;
[0099] The third sending submodule is configured to send an antenna locking instruction to the radio frequency modem so that the radio frequency modem locks the antenna of the current call to the target antenna.
[0100] Optionally, in one embodiment, the data transmission device provided by the present application further includes:
[0101] The release module is used to send a lock release instruction to the radio frequency modem of the terminal when detecting the end of data transmission. The lock release instruction is used to release the lock of the communication antenna.
[0102] Optionally, in one embodiment, the detection module includes:
[0103] A first detection submodule is configured to detect a transmission rate of data transmission when the terminal transmits data through the wired data transmission interface;
[0104] The second detection submodule is used to perform call detection on the terminal when the transmission rate is lower than the target rate value.
[0105] It should be noted that the data transmission device 300 provided in the embodiment of the present application is different from the data transmission device 300 in the embodiment above. Figure 1 The data transmission method shown belongs to the same concept, and its specific implementation process is detailed in the above related embodiments, which will not be repeated here.
[0106] According to the above description, the data transmission device provided by the present application is as follows: when the terminal transmits data through the wired data transmission interface, the detection module 310 performs call detection on the terminal; if the terminal uses a preset frequency band for a call, the determination module 320 determines the target antenna from the multiple antennas of the terminal, the preset frequency band is a frequency band that interferes with the data transmission of the wired data transmission interface, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; the switching module 330 switches the antenna used for the current call to the target antenna for the call. Through this method, when the terminal transmits data through the wired data transmission interface, the antenna used for the call can be switched to an antenna that is farther away from the wired data transmission interface, thereby reducing the interference of the call frequency band signal on the data transmission, and thus improving the stability of the data transmission.
[0107] The present application also provides a storage medium having a computer program stored thereon. When the computer program stored thereon is executed on a processor of an electronic device provided in the present application, the processor of the electronic device performs the steps of any of the above-mentioned data transmission methods applicable to electronic devices. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0108] This application also provides a terminal, please refer to Figure 5 , the terminal 400 includes a processor 410 and a memory 420 .
[0109] The processor 410 in the embodiment of the present application may be a general-purpose processor, such as an ARM architecture processor.
[0110] The memory 420 stores a computer program, which may be a high-speed random access memory or a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 420 may also include a memory controller to provide the processor 401 with access to the memory 420. The processor 410 executes the computer program in the memory 420 to perform any of the above data transmission methods, such as:
[0111] When the terminal transmits data through the wired data transmission interface, the terminal is detected for a call; if the terminal uses a preset frequency band for a call, the target antenna is determined from the multiple antennas of the terminal, the preset frequency band is the frequency band that interferes with the data transmission of the wired data transmission interface, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; the antenna used for the current call is switched to the target antenna for the call.
[0112] The above is a detailed introduction to a data transmission method, device, storage medium and terminal provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data transmission method, characterized in that: The method comprises: When the terminal is transmitting data through the wired data transmission interface, a call detection is performed on the terminal, including: when the AP of the terminal detects that the wired data transmission interface is connected to USB3.0 and receives an instruction to perform data transmission through the connected USB3.0, sending a target broadcast to the radio frequency modem in the BP, wherein the target broadcast is used to control the radio frequency modem to obtain the radio frequency call status in the BP; after obtaining the call status information of the terminal, the radio frequency modem returns the obtained call status information to the AP; Detecting whether the terminal is in a call state and, when the terminal is in a call state, further detecting the frequency band of the working voice channel to determine what type of call state the terminal is currently in; if the terminal uses a preset frequency band for a call, determining a target antenna from multiple antennas of the terminal, the preset frequency band being a frequency band that interferes with data transmission of the wired data transmission interface, and the distance between the target antenna and the wired data transmission interface being greater than the distance between the antenna used for the current call and the wired data transmission interface; Switching the antenna used for the current call to the target antenna for the call includes: the AP generates an antenna locking instruction according to the determined target antenna, and sends the antenna locking instruction to the radio frequency modem, so that the radio frequency modem locks the call antenna to the target antenna.
2. The method according to claim 1, characterized in that After switching the antenna used for the current call to the target antenna for the call, the method further includes: Acquiring a data transmission rate for data transmission via the wired data transmission interface; When the data transmission rate is lower than the target rate value, the call power is reduced according to a preset adjustment step until the data transmission rate reaches the target rate value.
3. The method according to claim 2, characterized in that When the data transmission rate is lower than the target rate value, reducing the call power according to a preset adjustment step until the data transmission rate reaches the target rate value, includes: When the data transmission rate is lower than the target rate value, generating a power adjustment instruction according to a preset adjustment step size; The power adjustment instruction is sent to the radio frequency modem of the terminal, so that the radio frequency modem reduces the call power according to the preset adjustment step until the data transmission rate reaches the target rate value.
4. The method according to claim 1, wherein When the terminal is transmitting data through the wired data transmission interface, performing call detection on the terminal includes: When detecting that a terminal is transmitting data through a wired data transmission interface, sending a target broadcast to a radio frequency modem of the terminal, the target broadcast being used to control the radio frequency modem to obtain call status information of the terminal; The call status information returned by the radio frequency modem is received, and call detection is performed on the terminal based on the call status information.
5. The method according to claim 4, characterized in that The switching the antenna used for the current call to the target antenna for the call includes: generating an antenna locking instruction according to the target antenna; The antenna locking instruction is sent to the radio frequency modem so that the radio frequency modem locks the antenna of the current call to the target antenna.
6. The method according to claim 5, characterized in that The method further comprises: When the data transmission is detected to be finished, a lock release instruction is sent to the radio frequency modem of the terminal, where the lock release instruction is used to release the lock on the communication antenna.
7. A data transmission device, characterized in that: The device comprises: The detection module is configured to perform call detection on the terminal when the terminal is transmitting data through the wired data transmission interface, including: when the terminal's access point detects that the wired data transmission interface is connected to USB3.0 and receives an instruction to perform data transmission through the connected USB3.0, sending a target broadcast to the radio frequency modem in the BP, wherein the target broadcast is used to control the radio frequency modem to obtain the radio frequency call status in the BP; after obtaining the call status information of the terminal, the radio frequency modem returns the obtained call status information to the AP; a determination module, configured to detect whether the terminal is in a call state and, when the terminal is in a call state, further detect the frequency band of the working voice channel to determine what type of call state the terminal is currently in; if the terminal uses a preset frequency band for a call, determine a target antenna from multiple antennas of the terminal, the preset frequency band being a frequency band that interferes with data transmission by the wired data transmission interface, and the distance between the target antenna and the wired data transmission interface being greater than the distance between the antenna used for the current call and the wired data transmission interface; The switching module is used to switch the antenna used for the current call to the target antenna for the call, including: the AP generates an antenna locking instruction according to the determined target antenna, and sends the antenna locking instruction to the radio frequency modem, so that the radio frequency modem locks the call antenna to the target antenna.
8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is loaded by a processor of an electronic device, the steps of the data transmission method according to any one of claims 1 to 6 are executed.
9. A terminal comprising a processor and a memory, wherein the memory stores a computer program, wherein: The processor executes the steps in the data transmission method according to any one of claims 1 to 6 by loading the computer program.
Citation Information
Patent Citations
Antenna switching method and apparatus
CN107026682A
Communication control method, device, storage medium of terminal, and terminal
CN109257081A