Movatterモバイル変換


[0]ホーム

URL:


CN114665941B - Data transmission method, device, storage medium and terminal - Google Patents

Data transmission method, device, storage medium and terminal

Info

Publication number
CN114665941B
CN114665941BCN202210399938.XACN202210399938ACN114665941BCN 114665941 BCN114665941 BCN 114665941BCN 202210399938 ACN202210399938 ACN 202210399938ACN 114665941 BCN114665941 BCN 114665941B
Authority
CN
China
Prior art keywords
data transmission
call
antenna
terminal
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210399938.XA
Other languages
Chinese (zh)
Other versions
CN114665941A (en
Inventor
李江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210399938.XApriorityCriticalpatent/CN114665941B/en
Publication of CN114665941ApublicationCriticalpatent/CN114665941A/en
Application grantedgrantedCritical
Publication of CN114665941BpublicationCriticalpatent/CN114665941B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

一种数据传输方法、装置、存储介质及终端,其中方法通过当终端通过有线数据传输接口进行数据传输时,对终端进行通话检测;若终端采用预设频段进行通话时,从终端的多个天线中确定目标天线,预设频段为干扰有线数据传输接口进行数据传输的频段,目标天线距离有线数据传输接口的距离大于当前通话采用的天线距离有线数据传输接口的距离;将当前通话采用的天线切换至目标天线进行通话。通过该方法,可以在终端通过有线数据传输接口进行数据传输时将通话采用的天线切换到距离有线数据传输接口较远的天线,从而降低通话频段信号对数据传输的干扰,进而可以提升数据传输的稳定性。

A data transmission method, device, storage medium, and terminal are disclosed. The method detects a call on the terminal when the terminal is transmitting data via a wired data transmission interface. If the terminal is using a preset frequency band for the call, a target antenna is determined from multiple antennas of the terminal, where the preset frequency band is a frequency band that interferes with data transmission via 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 currently used for the call and the wired data transmission interface. The method then switches the antenna currently used for the call to the target antenna for the call. This method allows the antenna currently used for the call to be switched to an antenna farther from the wired data transmission interface when the terminal is transmitting data via the wired data transmission interface, thereby reducing interference from the call frequency band signal on the data transmission and improving the stability of data transmission.

Description

Data transmission method, device, storage medium and terminal
Technical Field
The present application relates to the technical field of intelligent terminals, and in particular, to a data transmission method, a data transmission device, a storage medium, and a terminal.
Background
USB3.0 is a standard interface specification initiated by intel et al. USB3.0 provides a standard interface for personal computers (Personal Computer, PCs) to connect with audio/smart devices, and various devices can be plug and play connected using such low cost interfaces. The new USB3.0 has the following enhanced functions of improving the transmission rate (USB 3.0:5Gbps, USB2.0:480 Mbps) while keeping compatibility with the USB2.0, better power management, quicker device identification and quicker data processing. However, in the process of data transmission using a wired data transmission interface such as USB3.0, a problem of transmission interruption often occurs, and the stability of the data transmission process is poor.
Disclosure of Invention
The application provides a data transmission method, a data transmission device, a storage medium and a terminal.
In a first aspect, the present application provides a data transmission method, including:
When a terminal performs data transmission through a wired data transmission interface, performing call detection on the terminal;
If the terminal adopts a preset frequency band to carry out call, determining a target antenna from a plurality of antennas of the terminal, wherein the preset frequency band is a frequency band interfering with the wired data transmission interface to carry out data transmission, and the distance between the target antenna and the wired data transmission interface is larger than the distance between the antenna adopted by the current call and the wired data transmission interface;
And switching the antenna adopted by the current call to the target antenna to perform the call.
Accordingly, a second aspect of the present application provides a data transmission apparatus, the apparatus comprising:
The detection module is used for detecting the call of the terminal when the terminal performs data transmission through the wired data transmission interface;
The determining module is used for determining a target antenna from a plurality of antennas of the terminal when the terminal adopts a preset frequency band to carry out conversation, wherein the preset frequency band is a frequency band interfering with the wired data transmission interface to carry out data transmission, and the distance between the target antenna and the wired data transmission interface is larger than the distance between the antenna adopted by the current conversation and the wired data transmission interface;
and the switching module is used for switching the antenna adopted by the current call to the target antenna to carry out the call.
In a third aspect, the present application provides a storage medium having stored thereon a computer program which, when loaded by a processor of an electronic device, performs the steps of any of the data transmission methods as provided by the present application.
In a fourth aspect, the present application also provides an electronic device comprising a processor and a memory, the memory storing a computer program, the processor executing steps of any of the data transmission methods provided by the present application by loading the computer program stored in the memory.
The technical scheme provided by the application is that when the terminal performs data transmission through the wired data transmission interface, call detection is performed on the terminal, if the terminal performs call through a preset frequency band, a target antenna is determined from a plurality of antennas of the terminal, the preset frequency band is a frequency band interfering with the wired data transmission interface to perform data transmission, the distance between the target antenna and the wired data transmission interface is larger than the distance between the antenna adopted by the current call and the wired data transmission interface, and the antenna adopted by the current call is switched to the target antenna to perform call. According to the method, when the terminal performs data transmission through the wired data transmission interface, the antenna used for communication can be switched to the antenna far away from the wired data transmission interface, so that interference of communication frequency band signals on data transmission is reduced, and further stability of data transmission can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a data transmission method according to an embodiment of the application.
Fig. 2 is a schematic hardware structure of a mobile terminal according to an embodiment of the present application.
Fig. 3 is another flow chart of a data transmission method according to an embodiment of the present application.
Fig. 4 is a block diagram of a data transmission device according to an embodiment of the present application.
Fig. 5 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
It should be noted that the terms "first," "second," and "third," etc. are used herein to distinguish between different objects and not to describe a particular order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the particular steps or modules listed and certain embodiments may include additional steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The embodiment of the application provides a data transmission method, a device, a storage medium and a terminal, wherein an execution main body of the data transmission method can be the data transmission device provided by the embodiment of the application or electronic equipment integrated with the data transmission device, and the data transmission device can be realized in a hardware or software mode. The electronic device may be a mobile terminal. The mobile terminal can be a smart phone, a tablet, a vehicle-mounted terminal or an intelligent wearable device.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present application, and as shown in fig. 1, the flow chart of the data transmission method according to the embodiment of the present application may be as follows:
in 110, when the terminal performs data transmission through the wired data transmission interface, call detection is performed on the terminal.
The following describes an example of a data transmission device as an execution body of the data transmission method. Wherein the data transmission device may be integrated in a mobile terminal. In particular, the data transmission means may be integrated in an application processor (Application Processor, AP) of the mobile terminal.
The method is driven by the requirements of the consumer electronic terminal for improving resolution and storage performance, and users hope to obtain faster and more stable transmission performance when the electronic terminal is connected with internet resources so as to achieve the purposes of resource downloading, storage and sharing. In this context, the USB3.0 standard interface has also evolved. The USB3.0 standard interface not only can greatly improve the efficiency of data transmission, but also has the advantages of convenient transmission and use, hot plug support, flexible connection, independent power supply and the like, and is more and more favored by users.
However, the USB3.0 uses spread spectrum technology, and brings about broadband noise of 0-5 GHz while it runs high-speed transmission signals. Particularly, the noise with the frequency range of 2.4 GHz-2.5 GHz is about 20dB, which is enough to interfere with the normal use of wireless devices (such as a wireless network card, a wireless mouse and a wireless earphone). Similarly, USB3.0 also has poor interference immunity, so the grounding of the connector to the printed circuit board (Printed Circuit Board, PCB)/center is critical. When a high-power call is made by an antenna near the connector (for example, global system for mobile communications (Global System for Mobile Communications, GSM)), the main energy radiated by the antenna may cause interference to the transmission of USB3.0, resulting in the problem of interruption of the USB3.0 transmission. In order to solve the problem that the data transmission of the USB3.0 is interrupted and unstable due to the call under the condition, the application provides a data transmission method which can effectively improve the stability of the USB3.0 during data transmission.
Specifically, when the wired data transmission interface of the terminal is connected to the USB3.0 and receives an instruction to perform data transmission through the connected USB3.0, the terminal may be first subjected to call detection to determine whether the terminal is in a call state.
In some embodiments, when the terminal performs data transmission through the wired data transmission interface, performing call detection on the terminal includes:
A. When the terminal performs data transmission through the wired data transmission interface, detecting the transmission rate of the data transmission;
B. And when the transmission rate is lower than the target rate value, performing call detection on the terminal.
In the embodiment of the present application, when the AP receives an instruction for performing data transmission by connecting the wired data transmission interface with the USB3.0, the AP may not need to directly perform call detection on the terminal, but may perform data transmission first and detect the rate of current data transmission. If the rate of the current data transmission is detected to be greater than a preset target rate value, it can be determined that the current data transmission is not interfered or is interfered less, and further call control is not needed, otherwise, if the rate of the current data transmission is detected to be less than the target rate value, it can be determined that the current data transmission is interfered by a signal to cause transmission drop or transmission interruption, and then the call process needs to be controlled to avoid the signal interference of the current call on the data transmission. And when the transmission rate is smaller than the preset target rate value, detecting the call of the terminal.
In some embodiments, when the terminal performs data transmission through the wired data transmission interface, the call detection on the terminal includes:
1. When detecting that the terminal performs data transmission through the wired data transmission interface, sending a target broadcast to a radio frequency modem of the terminal, wherein the target broadcast is used for controlling the radio frequency modem to acquire call state information of the terminal;
2. and receiving call state information returned by the radio frequency modem, and performing call detection on the terminal based on the call state information.
In the embodiment of the application, the call detection is performed on the terminal, and the call detection can be performed through a radio frequency modem of the terminal, namely a radio frequency modem. Wherein the radio frequency modem may be integrated in a baseband processor (Baseband Processor, BP) of the terminal. The terminal typically separates the AP from the BP because the rf control related functions (e.g., signal modulation, coding, rf shifting, etc.) are highly time dependent, and preferably run on a central processing unit (central processing unit, CPU) core and on this CPU core a real-time operating system, so that vulnerabilities in the operating system and drivers on the AP core do not cause the device to send catastrophic data to the mobile network, and once the BP is designed and authenticated, it can perform communication functions correctly regardless of the operating system and application software employed, and the handset designer can design user interfaces and application software more freely. Specifically, the operating system, user interface and application program are all running on the AP, and the radio frequency communication and control software is running on the BP.
When the AP of the terminal detects that data transmission needs to be performed by connecting the USB3.0 through the wired data transmission interface, a broadcast, which may be referred to herein as a target broadcast, may be sent to the radio frequency modem in the BP. The target broadcast is used for controlling the radio frequency modem to acquire the radio frequency call state in the BP, namely controlling the radio frequency modem to acquire call state information of the terminal. After the radio frequency modem acquires the call state information of the terminal, the acquired call state information can be returned to the AP, and the AP can perform call detection on the terminal according to the received call state information. The call detection may specifically include detecting whether the terminal is in a call state and further detecting what type of call state the terminal is in when the terminal is in the call state. The call state types of the terminal may specifically include GSM call (i.e., 2G call), 3G call (wherein 3G is 3-generation, third generation mobile communication technology), long Term Evolution Voice-over-Term Evolution (VoLTE) call (i.e., 4G call), and New Radio (NR) call (i.e., 5G call). The radio frequency modem can determine what type of call state the terminal is currently in by detecting the frequency band of the voice channel in operation.
In 120, if the terminal uses the preset frequency band to make a call, determining a target antenna from multiple antennas of the terminal.
When the AP determines that the terminal is currently in a call state through call state information returned by the radio frequency modem, the AP can further determine what type of call the terminal is currently in. For example, determining that the terminal is currently in a GSM call or in a 3G call, etc.
At this time, it may be further determined whether the call type currently described by the terminal is a preset call type. The frequency bands adopted by different call types are different, so that whether the call adopts the preset call type for call can be judged by judging the current call frequency band adopted by the terminal. When it is determined that the terminal performs the call by using the preset frequency band, where the preset frequency band may be a frequency band interfering with the wired data transmission interface to perform data transmission, specifically, for example, a frequency band corresponding to a GSM call type, a target antenna may be determined from multiple antennas of the terminal, where a distance between the target antenna and the wired data transmission interface is greater than a distance between an antenna used for the current call and the wired data transmission interface.
In particular, a terminal may have multiple antennas, for example, a mobile handset may have an upper antenna and a lower antenna, where the upper antenna is typically mounted on the top of the mobile handset and the lower antenna is typically mounted on the bottom of the mobile handset near the microphone and wired data transmission interface or power interface. Fig. 2 is a schematic diagram of a hardware structure of a mobile phone according to the present application. The mobile phone 10 includes a wired data transmission interface 13, and the wired data transmission interface 13 may be used to connect with the USB3.0 for data transmission. In addition, the mobile handset 10 also includes an upper antenna 11 and a lower antenna 12. When the mobile phone is in communication, the upper antenna 11 can be used for communication and the lower antenna 12 can be used for communication, and the antenna used for communication of the mobile phone is not particularly limited, and can be switched back and forth according to the real-time communication quality condition. However, since the lower antenna 12 of the mobile phone is very close to the wired data transmission interface 13, if the lower antenna is used for communication, the main energy of the radiation generated by the lower antenna will interfere with the data transmission of the USB3.0, and may even cause the problem of interruption of the data transmission of the USB 3.0. Then the upper antenna 11 of the mobile handset may be determined to be the target antenna at this point. Because the upper antenna 11 of the mobile phone is farther from the wired data transmission interface 13 than the lower antenna 12, the interference of the energy generated by the radiation to the USB3.0 is reduced, so that the USB3.0 can be ensured to perform data transmission stably. The mobile phone 10 further includes a radio frequency modem14, where the radio frequency modem14 is connected to the upper antenna 11 and the lower antenna 12, and the radio frequency modem14 is used for specifically controlling the working states of the upper antenna 11 and the lower antenna 12.
The above mobile handset is only an example and in some embodiments the terminal may have a greater number of antennas, for example three or more antennas. When the current data transmission is determined to be interfered, that is, the data transmission rate is smaller than the target rate value, the current data transmission is determined to be interfered, that is, the terminal is in the call state of the preset frequency band, and then the antenna adopted by the current call of the terminal can be further determined. For example, the terminal has three antennas, antenna a, antenna B, and antenna C, respectively, which are located from near to far from the wired data transmission interface. If the antenna adopted by the current call is determined to be the antenna A, the antenna B or the antenna C can be determined to be the target antenna, and if the antenna adopted by the current call is determined to be the antenna B, the antenna C can be determined to be the target antenna. If the antenna adopted by the current call is the antenna C, the antenna C is also determined to be the target antenna. Or in some embodiments, when the terminal has multiple antennas, the antenna farthest from the wired data transmission interface may be determined as the target antenna.
At 130, the antenna used for the current call is switched to the target antenna for the call.
After the target antenna is determined, the antenna adopted by the current call can be switched to the target antenna to perform the call. Because the distance between the target antenna and the wired data transmission interface is farther than that between the antenna used for the current call and the wired data transmission interface, the interference of the main wave energy of the radiation generated by the call based on the target antenna to the USB3.0 connected with the wired data transmission interface is smaller, so that the stability of the wired data transmission interface for data transmission by adopting the USB3.0 can be improved.
In some embodiments, switching an antenna adopted by the current call to a target antenna to perform the call includes:
1. Generating an antenna locking instruction according to the target antenna;
2. and sending 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.
In this embodiment of the present application, switching the antenna used for the current call to the target antenna to perform the call may specifically be sending an antenna locking instruction to the radio frequency modem, where the antenna locking instruction is used to control the radio frequency modem to lock the antenna used for the current call to the target antenna. Specifically, the AP may first generate an antenna locking instruction according to the determined target antenna, and then send the antenna locking instruction to the radio frequency modem, so that the radio frequency modem locks the call antenna to the target antenna. For example, when it is determined that the target antenna is the upper antenna of the mobile handset, an instruction to lock the call antenna to the upper antenna may be sent to the radio frequency modem, so that the radio frequency modem locks the call antenna to the upper antenna of the mobile handset.
In some embodiments, the data transmission method provided by the present application may further include:
A. acquiring a data transmission rate of data transmission through a wired data transmission interface;
B. And when the data transmission rate is lower than the target rate value, reducing the call power according to a preset adjustment step length until the data transmission rate reaches the target rate value.
In the embodiment of the application, after the antenna adopted by the current call is switched to the target antenna to perform the call, the data transmission efficiency of data transmission through the wired data transmission interface can be further obtained, that is, the AP can further obtain the data transmission rate of USB3.0 at this time. If the data transmission rate of the USB3.0 can reach the target rate value after the call antenna is locked on the target antenna, it is indicated that locking the target antenna to perform the call has improved the interference problem caused by the call energy to the data transmission, and at this time, the data transmission can be continued through the USB 3.0. If the data transmission rate of the USB3.0 still does not reach the preset target rate value after the call antenna is locked on the target antenna, the call power can be further gradually reduced according to the preset step length until the data transmission rate of the USB3.0 reaches the target rate value.
In some embodiments, when the data transmission rate is lower than the target rate value, reducing the call power according to the preset adjustment step until the data transmission rate reaches the target rate value, including:
b1, when the data transmission rate is lower than a target rate value, generating a power adjustment instruction according to a preset adjustment step length;
And B2, sending a power adjustment instruction to the radio frequency modem of the terminal so that the radio frequency modem reduces the call power according to the preset step length until the data transmission rate reaches a target rate value.
In the embodiment of the application, the call power can also be adjusted through the radio frequency modem. Specifically, when the AP detects that the data transmission rate of USB3.0 still fails to reach the preset target rate value after the call is made by binding the call antenna in the target antenna, it may perform to generate a power adjustment instruction according to the preset adjustment step, where the power adjustment instruction is used to adjust the call power. And then, the AP sends the generated power adjustment instruction to the radio frequency modem, so that the radio frequency modem adopts the preset adjustment step length to reduce the call power of the current call. When the terminal adopts the USB3.0 to carry out data transmission through the wired data transmission interface, if the terminal is also in a call state, the antenna radiation during call is the factor affecting the data transmission stability of the USB3.0 with a high probability, and at the moment, the antenna radiation near the wired data transmission interface can be reduced by controlling the call antenna to be far away from the wired data transmission interface, so that the influence on the data transmission of the USB3.0 is reduced. If the transmission rate of the USB3.0 still fails to reach the preset target rate value after the call antenna is controlled to be far away from the wired data transmission interface, the radiation intensity at the USB3.0 interface can be further reduced by reducing the call power, so that the interference on the data transmission of the USB3.0 is reduced. The call power can be reduced step by step according to a certain adjustment step length, so as to avoid the reduction of call quality caused by excessive reduction.
In some embodiments, in a terminal with multiple antennas, when the call antenna is locked on the target antenna and the data transmission rate of the USB3.0 still fails to reach the target rate value, it may be further determined whether there is a better antenna in the terminal with a distance from the wired data transmission interface greater than the distance between the target antenna and the wired data transmission interface, and if so, the call antenna may be further locked on the better antenna to perform a call so as to further reduce the radiation intensity at the USB3.0 interface, thereby further reducing the data transmission interference to the USB3.0 and improving the data transmission stability of the USB 3.0.
In some embodiments, the data transmission method provided by the present application further includes:
And when the end of data transmission is detected, sending a locking release instruction to a radio frequency modem of the terminal, wherein the locking release instruction is used for releasing the locking of the call antenna.
In the embodiment of the application, after the call antenna is locked on the target antenna, the data transmission process can be monitored in real time. If the end of the data transmission is detected, the antenna locking operation of locking the call antenna on the target antenna can be released in order to ensure the call quality. Specifically, after the call antenna is locked on the target antenna, the AP may monitor data transmission in real time, and when it is monitored that data transmission is finished, the AP may further send a lock release instruction to the radio frequency modem, and after the radio frequency modem receives the lock release instruction, the radio frequency modem further releases the lock on the call antenna.
In some embodiments, if the call power is also controlled to be reduced during the call control process, after the data transmission is finished, the call power can be further reduced, so that the call power is restored to the initial value, and the call quality is ensured.
When the terminal adopts the USB3.0 to carry out data transmission, if the terminal is detected to carry out the call of the preset frequency band, the call antenna of the terminal can be locked on the antenna far away from the USB3.0 data transmission interface. The method reduces the influence of the energy of call radiation on USB3.0 data transmission, thereby ensuring the stability of USB3.0 data transmission. Meanwhile, the USB3.0 also brings noise during data transmission and also can generate interference on the call quality in the call process, so that the call antenna is locked on the antenna far away from the USB3.0 interface, and the call quality can be further improved.
According to the description, according to the data transmission method provided by the application, when the terminal performs data transmission through the wired data transmission interface, call detection is performed on the terminal, if the terminal performs call by adopting a preset frequency band, a target antenna is determined from a plurality of antennas of the terminal, the preset frequency band is a frequency band interfering with the wired data transmission interface to perform data transmission, the distance between the target antenna and the wired data transmission interface is larger than the distance between the antenna adopted by the current call and the wired data transmission interface, and the antenna adopted by the current call is switched to the target antenna to perform call. According to the method, when the terminal performs data transmission through the wired data transmission interface, the antenna used for communication can be switched to the antenna far away from the wired data transmission interface, so that interference of communication frequency band signals on data transmission is reduced, and further stability of data transmission can be improved.
Referring to fig. 3, fig. 3 is another flow chart of a data transmission method according to an embodiment of the application. As shown in fig. 3, the flow of the data transmission method provided in the embodiment of the present application may be as follows:
In 210, when the AP of the mobile terminal receives an instruction to perform data transmission using USB3.0, a broadcast is transmitted to the radio frequency modem of the mobile terminal.
When the data transmission interface of the mobile terminal is connected with the USB3.0, and then a user initiates data transmission, after the AP of the mobile terminal receives a data transmission instruction, a broadcast is sent to the radio frequency modem in the BP of the mobile terminal, and the broadcast is used for controlling the radio frequency modem to carry out call detection on the mobile terminal.
In 220, the radio frequency modem of the mobile terminal detects whether the mobile terminal is currently in a talk state.
After receiving the broadcast sent by the AP, the radio frequency modem of the mobile terminal detects the call state of the mobile terminal to determine whether the mobile terminal is in the call state. If the mobile terminal is not in a call state, step 280 may be performed, i.e., performing data transmission of USB 3.0.
In 230, the radio frequency modem of the mobile terminal detects whether the mobile terminal is in a GSM call state.
When the radio frequency modem of the mobile terminal detects that the mobile terminal is in a call state, whether the mobile terminal is in a GSM call state can be further detected. In general, when the mobile terminal is in a 3G, 4G or 5G call, the radiation energy generated by the mobile terminal is smaller, and the interference to the data transmission of the USB3.0 is smaller. If it is detected that the mobile terminal is in 3G, 4G or 5G communication, step 280 may be performed, i.e. performing data transmission of USB 3.0. If it is detected that the mobile terminal is in a GSM call state, step 240 may be performed.
The radio frequency modem of the mobile terminal locks the GSM call to the upper antenna at 240.
When it is determined that the mobile terminal has employed a GSM call, then the antenna for the GSM call may be locked to the upper antenna of the mobile terminal. In general, the lower antenna of the mobile terminal is disposed at the data transmission interface, and the upper antenna is disposed at the top end of the mobile terminal at a distance from the data transmission interface. Therefore, the radiation generated by the antenna when the upper antenna of the mobile terminal is used for communication has less influence on the USB3.0 interface. Meanwhile, the interference of noise generated by the USB3.0 on the call is reduced, so that the stability of data transmission is ensured, and the call quality of the call is improved.
In 250, the AP of the mobile terminal detects whether the transmission rate of USB3.0 is lower than a preset rate value.
After locking the call antenna to the upper antenna of the mobile terminal, the AP of the mobile terminal may further detect whether the data transmission rate of USB3.0 is lower than a preset rate value. The preset speed value may be set to 480Mbps. If the data transmission rate of the USB3.0 interface is still not guaranteed by locking the call antenna to the upper antenna, further call control is required.
At 260, the AP of the mobile terminal sends a power down instruction to the radio frequency modem.
Specifically, if the data transmission rate of USB3.0 cannot be guaranteed after the call antenna of the mobile terminal is locked to the upper antenna, the call power may be further reduced. The call power of the GSM call can be reduced by 3dB, for example. At this time, the AP of the mobile terminal may send a power-down instruction to the radio frequency modem, so that the radio frequency modem performs power-down processing on the current GSM call.
In 270, the radio frequency modem of the mobile terminal reduces the talk power.
When the radio frequency modem of the mobile terminal receives a power-down instruction sent by the AP of the mobile terminal, the power of the current GSM call can be reduced by 3dB according to the instruction. Or in some embodiments, a small power-down step length can be set, the radio frequency modem gradually reduces the power of the GSM call according to the step length and monitors the change of the data transmission rate of the USB3.0 interface in the power-down process in real time, and when the data transmission rate of the USB3.0 interface reaches a preset transmission rate value, the power-down operation can be stopped to continue data transmission.
In 280, the AP of the mobile terminal performs USB3.0 data transmission.
After the GSM call is subjected to the power-down processing, the data transmission task of USB3.0 can be continuously executed. When the mobile terminal is not in a call state or the mobile terminal is in a call state but is not in a GSM call state, the data transmission task of the USB3.0 can also be continuously executed.
At 290, when a USB3.0 data transfer stop is detected, the radio frequency modem executes an instruction to release the lock antenna and power down.
In the process of executing the data transmission task of the USB3.0, the data transmission state may also be detected in real time, and when the data transmission is detected to be finished, the AP of the mobile terminal sends a release instruction to the radio frequency modem of the mobile terminal, where the release instruction is used to release the instruction of the antenna and the power reduction, that is, the instruction of touching the foregoing locking antenna to perform a call and reduce the call power.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data transmission device 300 according to an embodiment of the application. The data transmission device 300 is applied to the electronic equipment provided by the application. As shown in fig. 4, the data transmission apparatus 300 may include:
the detection module 310 is configured to detect a call of the terminal when the terminal performs data transmission through the wired data transmission interface;
The determining module 320 is configured to determine, if the terminal performs a call with a preset frequency band, a target antenna from multiple antennas of the terminal, where the preset frequency band is a frequency band interfering with the wired data transmission interface to perform data transmission, and a distance between the target antenna and the wired data transmission interface is greater than a distance between an antenna used for the current call and the wired data transmission interface;
And the switching module 330 is configured to switch the antenna used for the current call to the target antenna for the call.
Optionally, in an embodiment, the data transmission device provided by the present application further includes:
the acquisition module is used for acquiring the data transmission rate of data transmission through the wired data transmission interface;
And the adjusting module is used for reducing the call power according to a preset adjusting step length when the data transmission rate is lower than the target rate value until the data transmission rate reaches the target rate value.
Optionally, in an embodiment, the adjusting module includes:
the first generation sub-module is used for generating a power adjustment instruction according to a preset adjustment step length when the data transmission rate is lower than a target rate value;
and the first sending submodule is used for sending a power adjustment instruction to the radio frequency modem of the terminal so that the radio frequency modem reduces the call power according to the preset adjustment step length until the data transmission rate reaches the target rate value.
Optionally, in an embodiment, the detection module includes:
the second sending sub-module is used for sending target broadcasting to the radio frequency modem of the terminal when detecting that the terminal performs data transmission through the wired data transmission interface, wherein the target broadcasting is used for controlling the radio frequency modem to acquire call state information of the terminal;
And the receiving sub-module is used for receiving the call state information returned by the radio frequency modem and carrying out call detection on the terminal based on the call state information.
Optionally, in an embodiment, the switching module includes:
the second generation submodule is used for generating an antenna locking instruction according to the target antenna;
and the third transmitting sub-module is used for transmitting 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.
Optionally, in an embodiment, the data transmission device provided by the present application further includes:
And the unlocking module is used for sending a locking unlocking instruction to the radio frequency modem of the terminal when the data transmission is detected to be finished, wherein the locking unlocking instruction is used for unlocking the call antenna.
Optionally, in an embodiment, the detection module includes:
the first detection sub-module is used for detecting the transmission rate of data transmission when the terminal performs data transmission through the wired data transmission interface;
and the second detection sub-module is used for carrying out call detection on the terminal when the transmission rate is lower than the target rate value.
It should be noted that, the data transmission device 300 provided in the embodiment of the present application and the data transmission method shown in fig. 1 in the above embodiment belong to the same concept, and detailed implementation processes of the data transmission device are described in the above related embodiments, which are not repeated here.
As can be seen from the above description, the data transmission device provided by the present application performs call detection on the terminal by the detection module 310 when the terminal performs data transmission through the wired data transmission interface, if the terminal performs call with a preset frequency band, the determination module 320 determines a target antenna from a plurality of antennas of the terminal, the preset frequency band is a frequency band interfering with the wired data transmission interface to perform data transmission, the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for current call and the wired data transmission interface, and the switching module 330 switches the antenna used for current call to the target antenna to perform call. According to the method, when the terminal performs data transmission through the wired data transmission interface, the antenna used for communication can be switched to the antenna far away from the wired data transmission interface, so that interference of communication frequency band signals on data transmission is reduced, and further stability of data transmission can be improved.
The embodiment of the application also provides a storage medium, on which a computer program is stored, which when executed on a processor of an electronic device provided by the embodiment of the application, causes the processor of the electronic device to execute any of the steps in the data transmission method suitable for the electronic device. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The present application also provides a terminal, referring to fig. 5, the terminal 400 includes a processor 410 and a memory 420.
The processor 410 in embodiments of the present application may be a general purpose processor such as an ARM architecture processor.
The memory 420 has stored therein a computer program, which may be a high speed random access memory, or may be a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device, etc. Accordingly, memory 420 may also include a memory controller to provide processor 401 with access to memory 420. The processor 410 is configured to execute any of the above data transmission methods by executing a computer program in the memory 420, such as:
When the terminal uses a preset frequency band to carry out data transmission, determining a target antenna from a plurality of antennas of the terminal, wherein the preset frequency band is a frequency band interfering with the wired data transmission interface to carry out data transmission, the distance between the target antenna and the wired data transmission interface is larger than the distance between the antenna used in the current call and the wired data transmission interface, and switching the antenna used in the current call to the target antenna to carry out the call.
The foregoing describes the data transmission method, apparatus, storage medium and terminal provided by the present application in detail, and specific examples are used herein to describe the principles and embodiments of the present application, and the above examples are only for helping to understand the method and core ideas of the present application, and meanwhile, for those skilled in the art, according to the ideas of the present application, there are all changes in the specific embodiments and application scope, so the disclosure should not be construed as limiting the present application.

Claims (9)

Translated fromChinese
1.一种数据传输方法,其特征在于,所述方法包括:1. A data transmission method, characterized in that the method comprises:当终端通过有线数据传输接口进行数据传输时,对所述终端进行通话检测,包括:当终端的AP检测到有线数据传输接口连接了USB3.0并接收到通过连接的USB3.0进行数据传输的指令时,向BP中的射频modem发送目标广播,所述目标广播用于控制射频modem对BP中的射频通话状态进行获取;射频modem在获取到终端的通话状态信息后,将获取到的通话状态信息返回给AP;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;将所述当前通话采用的天线切换至所述目标天线进行通话,包括:AP根据确定的目标天线生成天线锁定指令,将天线锁定指令发送给射频modem,使得射频modem将通话天线锁定于目标天线。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.根据权利要求1所述的方法,其特征在于,所述将所述当前通话采用的天线切换至所述目标天线进行通话之后,还包括: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 comprises:获取通过所述有线数据传输接口进行数据传输的数据传输速率;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.根据权利要求2所述的方法,其特征在于,所述当所述数据传输速率低于目标速率值时,按照预设调整步长降低通话功率,直至所述数据传输速率达到所述目标速率值,包括:3. The method according to claim 2, wherein 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, comprises:当所述数据传输速率低于目标速率值时,根据预设调整步长生成功率调节指令;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.根据权利要求1所述的方法,其特征在于,所述当终端通过有线数据传输接口进行数据传输时,对所述终端进行通话检测,包括:4. The method according to claim 1, wherein when the terminal transmits data through the wired data transmission interface, performing call detection on the terminal comprises:当检测到终端通过有线数据传输接口进行数据传输时,向所述终端的射频调制解调器发送目标广播,所述目标广播用于控制所述射频调制解调器获取所述终端的通话状态信息;When detecting that the terminal is transmitting data through the wired data transmission interface, sending a target broadcast to the radio frequency modem of the terminal, the target broadcast is used to control the radio frequency modem to obtain the 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.根据权利要求4所述的方法,其特征在于,所述将所述当前通话采用的天线切换至所述目标天线进行通话,包括:5. The method according to claim 4, wherein switching the antenna used for the current call to the target antenna for the call comprises:根据所述目标天线生成天线锁定指令;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.根据权利要求5所述的方法,其特征在于,所述方法还包括:6. The method according to claim 5, further comprising:当检测到数据传输结束时,向所述终端的射频调制解调器发送锁定解除指令,所述锁定解除指令用于解除对通话天线的锁定。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.一种数据传输装置,其特征在于,所述装置包括:7. A data transmission device, characterized in that the device comprises:检测模块,用于当终端通过有线数据传输接口进行数据传输时,对所述终端进行通话检测,包括:当终端的AP检测到有线数据传输接口连接了USB3.0并接收到通过连接的USB3.0进行数据传输的指令时,向BP中的射频modem发送目标广播,所述目标广播用于控制射频modem对BP中的射频通话状态进行获取;射频modem在获取到终端的通话状态信息后,将获取到的通话状态信息返回给AP;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;切换模块,用于将所述当前通话采用的天线切换至所述目标天线进行通话,包括:AP根据确定的目标天线生成天线锁定指令,将天线锁定指令发送给射频modem,使得射频modem将通话天线锁定于目标天线。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.一种存储介质,其上存储有计算机程序,其特征在于,当所述计算机程序被电子设备的处理器加载时执行如权利要求1-6中任一项所述的数据传输方法中的步骤。8. A storage medium having a computer program stored thereon, wherein 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.一种终端,所述终端包括处理器和存储器,所述存储器储存有计算机程序,其特征在于,所述处理器通过加载所述计算机程序执行如权利要求1-6中任一项所述的数据传输方法中的步骤。9. A terminal comprising a processor and a memory, wherein the memory stores a computer program, wherein the processor executes the steps of the data transmission method according to any one of claims 1 to 6 by loading the computer program.
CN202210399938.XA2022-04-152022-04-15Data transmission method, device, storage medium and terminalActiveCN114665941B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210399938.XACN114665941B (en)2022-04-152022-04-15Data transmission method, device, storage medium and terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210399938.XACN114665941B (en)2022-04-152022-04-15Data transmission method, device, storage medium and terminal

Publications (2)

Publication NumberPublication Date
CN114665941A CN114665941A (en)2022-06-24
CN114665941Btrue CN114665941B (en)2025-09-16

Family

ID=82036056

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210399938.XAActiveCN114665941B (en)2022-04-152022-04-15Data transmission method, device, storage medium and terminal

Country Status (1)

CountryLink
CN (1)CN114665941B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107026682A (en)*2017-03-312017-08-08维沃移动通信有限公司A kind of antenna switching method and device
CN109257081A (en)*2018-09-032019-01-22珠海格力电器股份有限公司Communication control method and device of terminal, storage medium and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5265119A (en)*1989-11-071993-11-23Qualcomm IncorporatedMethod and apparatus for controlling transmission power in a CDMA cellular mobile telephone system
CN107770785A (en)*2016-08-152018-03-06中兴通讯股份有限公司A kind of data transmission method and terminal
CN109639368A (en)*2018-12-042019-04-16Oppo广东移动通信有限公司electromagnetic interference control method and related device
CN113826423B (en)*2019-08-092023-07-11华为技术有限公司 Method and device for data transmission
CN111092626B (en)*2019-11-152022-04-15上海移为通信技术股份有限公司Antenna adjusting method and device and terminal equipment
CN113840364B (en)*2020-06-242024-10-29深圳市万普拉斯科技有限公司Antenna transmission power setting method, device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107026682A (en)*2017-03-312017-08-08维沃移动通信有限公司A kind of antenna switching method and device
CN109257081A (en)*2018-09-032019-01-22珠海格力电器股份有限公司Communication control method and device of terminal, storage medium and terminal

Also Published As

Publication numberPublication date
CN114665941A (en)2022-06-24

Similar Documents

PublicationPublication DateTitle
CN106230492B (en)Terminal antenna switching method and device and mobile terminal
US11671809B2 (en)Bluetooth profile fast connect
KR20210020462A (en)Electronic device for adjusting transmission power based on sar and method for operating thereof
CN106130572B (en) Method and device for switching terminal antenna and mobile terminal
CN111654316A (en) Antenna switching method, device, storage medium and electronic device
CN112956134B (en)Method and apparatus for performing beam search in mobile communication system
CN112867069B (en)Interference processing method and device, storage medium and electronic equipment
KR20200040073A (en)Method for mitigating interference between cells in dynamic time division duplex environment and electronic device thereof
CN107147419A (en)Method for reducing signal interference, storage medium and terminal
CN104955080A (en)Mobile terminal work mode control method and device as well as mobile terminal
CN105491190A (en)Multi-antenna selection method and mobile terminal
CN110011743B (en) Wireless communication method and related device
CN108834176A (en)Antenna signal interference processing method, antenna signal interference processing device, electronic device and storage medium
CN106685468A (en) Radio frequency circuit, terminal and radio frequency circuit control method
CN113543237B (en)Cell selection method and device
KR20210011166A (en)Electronic device and method for controlling data throughput based on overheat of the electronic device
KR20210017157A (en)Transmission power controlling method in multiple connection environment and electronic device using it
US20210258083A1 (en)Method for Electromagnetic Interference Control and Related Devices
JP6673656B2 (en) Portable wireless device and transmission method
CN111506131B (en)Communication method, device, terminal and storage medium based on millimeter wave antenna
CN113472397B (en)Antenna control method, antenna control device, storage medium and electronic equipment
CN106255185A (en) Method and device for switching terminal antenna and mobile terminal
KR20210012810A (en)An optimal antenna setting method in multiple connection environment and electronic device using it
CN114665941B (en)Data transmission method, device, storage medium and terminal
CN108769368A (en)Electronic equipment and information processing method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp