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.