CN114665941A - Data transmission method, device, storage medium and terminal - Google Patents
Data transmission method, device, storage medium and terminal Download PDFInfo
- Publication number
- CN114665941A CN114665941A CN202210399938.XA CN202210399938A CN114665941A CN 114665941 A CN114665941 A CN 114665941A CN 202210399938 A CN202210399938 A CN 202210399938A CN 114665941 A CN114665941 A CN 114665941A
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/06—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
- H04B7/0602—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/22—Arrangements for supervision, monitoring or testing
- H04M3/2281—Call monitoring, e.g. for law enforcement purposes; Call tracing; Detection or prevention of malicious calls
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Technology Law (AREA)
- Telephone Function (AREA)
Abstract
一种数据传输方法、装置、存储介质及终端,其中方法通过当终端通过有线数据传输接口进行数据传输时,对终端进行通话检测;若终端采用预设频段进行通话时,从终端的多个天线中确定目标天线,预设频段为干扰有线数据传输接口进行数据传输的频段,目标天线距离有线数据传输接口的距离大于当前通话采用的天线距离有线数据传输接口的距离;将当前通话采用的天线切换至目标天线进行通话。通过该方法,可以在终端通过有线数据传输接口进行数据传输时将通话采用的天线切换到距离有线数据传输接口较远的天线,从而降低通话频段信号对数据传输的干扰,进而可以提升数据传输的稳定性。
A data transmission method, device, storage medium and terminal, wherein the method is to detect a call on the terminal when the terminal transmits data through a wired data transmission interface; Determine the target antenna in , the preset frequency band is the frequency band that interferes with the wired data transmission interface for data transmission, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; switch the antenna used for the current call. Talk to the target antenna. Through this method, when the terminal performs data transmission through the wired data transmission interface, the antenna used for the call can be switched to the antenna farther away from the wired data transmission interface, thereby reducing the interference of the call frequency band signal on the data transmission, thereby improving the data transmission efficiency. stability.
Description
技术领域technical field
本申请涉及智能终端技术领域,具体涉及一种数据传输方法、装置、存储介质及终端。The present application relates to the technical field of intelligent terminals, and in particular, to a data transmission method, device, storage medium and terminal.
背景技术Background technique
USB3.0是由英特尔等公司发起的标准接口规范。USB3.0为个人电脑(PersonalComputer,PC)与音频设备/智能设备的连接提供了一个标准接口,各种器件能够采用这种低成本的接口进行即插即用连接。新的USB3.0在保持与USB2.0兼容性的同时,还有下面几项增强功能:提高传输速率(USB3.0:5Gbps,USB2.0:480Mbps),更好的电源管理,器件识别更快速,数据处理更快速。然而,在采用如USB3.0在内的有线数据传输接口进行数据传输的过程中,经常出现传输中断的问题,数据传输过程的稳定性较差。USB3.0 is a standard interface specification initiated by companies such as Intel. USB3.0 provides a standard interface for connecting a personal computer (Personal Computer, PC) with an audio device/smart device, and various devices can use this low-cost interface for plug-and-play connection. While maintaining compatibility with USB2.0, the new USB3.0 has the following enhancements: increased transfer rate (USB3.0: 5Gbps, USB2.0: 480Mbps), better power management, and better device identification. Fast, data processing is faster. However, in the process of data transmission using a wired data transmission interface such as USB3.0, the problem of transmission interruption often occurs, and the stability of the data transmission process is poor.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种数据传输方法、装置、存储介质及终端,该方法能够提升数据传输的稳定性。The present application provides a data transmission method, device, storage medium and terminal, which can improve the stability of data transmission.
第一方面,本申请提供一种数据传输方法,方法包括:In a first aspect, the present application provides a data transmission method, the method comprising:
当终端通过有线数据传输接口进行数据传输时,对所述终端进行通话检测;When the terminal performs data transmission through the wired data transmission interface, call detection is performed on the terminal;
若所述终端采用预设频段进行通话时,从所述终端的多个天线中确定目标天线,所述预设频段为干扰所述有线数据传输接口进行数据传输的频段,所述目标天线距离所述有线数据传输接口的距离大于当前通话采用的天线距离所述有线数据传输接口的距离;If the terminal uses a preset frequency band for a call, a target antenna is determined from multiple antennas of the terminal, the preset frequency band is a frequency band that interferes with data transmission performed by the wired data transmission interface, and the target antenna is at a distance from The distance of the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface;
将所述当前通话采用的天线切换至所述目标天线进行通话。The antenna used for the current call is switched to the target antenna for the call.
相应地,本申请第二方面提供一种数据传输装置,装置包括:Correspondingly, a second aspect of the present application provides a data transmission device, the device comprising:
检测模块,用于当终端通过有线数据传输接口进行数据传输时,对所述终端进行通话检测;a detection module, configured to perform call detection on the terminal when the terminal performs data transmission through the wired data transmission interface;
确定模块,用于若所述终端采用预设频段进行通话时,从所述终端的多个天线中确定目标天线,所述预设频段为干扰所述有线数据传输接口进行数据传输的频段,所述目标天线距离所述有线数据传输接口的距离大于当前通话采用的天线距离所述有线数据传输接口的距离;A determination module, configured to determine a target antenna from a plurality of antennas of the terminal if the terminal uses a preset frequency band for a call, the preset frequency band is a frequency band that interferes with the wired data transmission interface for data transmission, and the The distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface;
切换模块,用于将所述当前通话采用的天线切换至所述目标天线进行通话。A switching module, configured to switch the antenna used for the current call to the target antenna for the call.
第三方面,本申请提供了一种存储介质,其上存储有计算机程序,当该计算机程序被电子设备的处理器加载时执行如本申请提供的任一数据传输方法中的步骤。In a third aspect, the present application provides a storage medium on which a computer program is stored, and when the computer program is loaded by a processor of an electronic device, the steps in any of the data transmission methods provided by the present application are executed.
第四方面,本申请还提供了一种电子设备,该电子设备包括处理器和存储器,存储器储存有计算机程序,处理器通过加载存储器储存的计算机程序执行如本申请提供的任一数据传输方法中的步骤。In a fourth aspect, the application also provides an electronic device, the electronic device includes a processor and a memory, the memory stores a computer program, and the processor executes any data transmission method as provided in the application by loading the computer program stored in the memory. A step of.
采用本申请所提供的技术方案,即当终端通过有线数据传输接口进行数据传输时,对终端进行通话检测;若终端采用预设频段进行通话时,从终端的多个天线中确定目标天线,预设频段为干扰有线数据传输接口进行数据传输的频段,目标天线距离有线数据传输接口的距离大于当前通话采用的天线距离有线数据传输接口的距离;将当前通话采用的天线切换至目标天线进行通话。通过该方法,可以在终端通过有线数据传输接口进行数据传输时将通话采用的天线切换到距离有线数据传输接口较远的天线,从而降低通话频段信号对数据传输的干扰,进而可以提升数据传输的稳定性。The technical solution provided by the present application is adopted, that is, when the terminal transmits data through the wired data transmission interface, the terminal performs call detection; Set the frequency band as the frequency band that interferes with the wired data transmission interface for data transmission, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; switch the antenna used for the current call to the target antenna for the call. Through this method, when the terminal performs data transmission through the wired data transmission interface, the antenna used for the call can be switched to the antenna farther away from the wired data transmission interface, thereby reducing the interference of the call frequency band signal on the data transmission, thereby improving the data transmission efficiency. stability.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请实施例提供的数据传输方法的一流程示意图。FIG. 1 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
图2是本申请实施例提供的移动终端的硬件结构示意图。FIG. 2 is a schematic diagram of a hardware structure of a mobile terminal provided by an embodiment of the present application.
图3是本申请实施例提供的数据传输方法的另一流程示意图。FIG. 3 is another schematic flowchart of a data transmission method provided by an embodiment of the present application.
图4是本申请实施例提供的数据传输装置的结构框图。FIG. 4 is a structural block diagram of a data transmission apparatus provided by an embodiment of the present application.
图5是本申请实施例提供的终端的结构框图。FIG. 5 is a structural block diagram of a terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
应当说明的是,本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。It should be noted that the terms "first", "second" and "third" in the present application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include unlisted steps or modules, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例提供一种数据传输方法、装置、存储介质及终端,其中数据传输方法的执行主体可以是本申请实施例提供的数据传输装置,或者集成了该数据传输装置的电子设备,其中该数据传输装置可以采用硬件或者软件的方式实现。其中,电子设备可以是移动终端。其中,该移动终端可以为智能手机、平板、车载终端或者智能穿戴式设备等。Embodiments of the present application provide a data transmission method, device, storage medium, and terminal, wherein the execution body of the data transmission method may be the data transmission device provided in the embodiment of the present application, or an electronic device integrating the data transmission device, wherein the The data transmission device can be implemented in hardware or software. Wherein, the electronic device may be a mobile terminal. Wherein, the mobile terminal may be a smart phone, a tablet, a vehicle-mounted terminal, a smart wearable device, or the like.
请参照图1,图1为本申请实施例提供的数据传输方法的流程示意图,如图1所示,本申请实施例提供的数据传输方法的流程可以如下:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a data transmission method provided by an embodiment of the present application. As shown in FIG. 1, a process of the data transmission method provided by the embodiment of the present application may be as follows:
在110中,当终端通过有线数据传输接口进行数据传输时,对终端进行通话检测。In 110, when the terminal performs data transmission through the wired data transmission interface, call detection is performed on the terminal.
以下以数据传输方法的执行主体为数据传输装置为例进行说明。其中,该数据传输装置可以集成在移动终端中。具体地,该数据传输装置可以集成在移动终端的应用处理器(Application Processor,AP)中。The following description will be given by taking an example where the execution body of the data transmission method is a data transmission device. Wherein, the data transmission device can be integrated in the mobile terminal. Specifically, the data transmission device may be integrated in an application processor (Application Processor, AP) of the mobile terminal.
其中,受消费类电子终端提高分辨率和提高存储性能的需求推动,用户在实现电子终端与互联网资源连接时,希望能得到更快速,更稳定的传输性能,以达到资源下载、存储以及共享的目的。在该背景下,USB3.0标准接口也就应运而生。USB3.0标准接口不仅可以极大地提升数据传输的效率,还具有传使用方便、支持热插拔、连接灵活以及独立供电等优点,越来越受到用户的青睐。Among them, driven by the needs of improving the resolution and storage performance of consumer electronic terminals, users hope to obtain faster and more stable transmission performance when connecting electronic terminals to Internet resources, so as to achieve the download, storage and sharing of resources. Purpose. In this context, the USB3.0 standard interface came into being. The USB3.0 standard interface can not only greatly improve the efficiency of data transmission, but also has the advantages of convenient transmission, support for hot swap, flexible connection and independent power supply, etc., and is more and more favored by users.
然而,USB3.0使用扩频技术,在其运行高速传输信号的同时,带来了0~5GHz的宽频噪声。尤其是在2.4GHz~2.5GHz频段范围有约20dB的噪声,足以干扰无线设备(例如无线网卡,无线鼠标,无线耳机)的正常使用。同样地,USB3.0的抗干扰性能也较差,因此连接器与印刷线路板(Printed Circuit Board,PCB)/中框的接地措施至关重要。连接器附近的天线,进行大功率呼叫时候(例如全球移动通信系统(Global System for MobileCommunications,GSM)),天线辐射的主波能量会对USB3.0的传输造成干扰,导致了USB3.0传输断流的问题。为解决上述情况下的通话导致USB3.0数据传输中断,导致数据传输不稳定的问题,本申请提供了一种数据传输方法,该方法可以有效提升USB3.0进行数据传输时的稳定性。However, USB3.0 uses spread spectrum technology, which brings wide-band noise of 0-5GHz while it transmits signals at high speed. Especially in the frequency range of 2.4GHz to 2.5GHz, there is about 20dB of noise, which is enough to interfere with the normal use of wireless devices (such as wireless network cards, wireless mice, and wireless earphones). Similarly, the anti-interference performance of USB3.0 is also poor, so the grounding measures of the connector and the printed circuit board (Printed Circuit Board, PCB)/middle frame are very important. When the antenna near the connector makes a high-power call (such as the Global System for Mobile Communications (GSM)), the main wave energy radiated by the antenna will interfere with the USB3.0 transmission, causing the USB3.0 transmission to be interrupted. flow problem. In order to solve the problem that USB3.0 data transmission is interrupted and unstable data transmission caused by a call in the above situation, the present application provides a data transmission method, which can effectively improve the stability of USB3.0 during data transmission.
具体地,当终端的有线数据传输接口连接了USB3.0并接收到通过连接的USB3.0进行数据传输的指令时,可以先对终端进行通话检测以确定终端是否处于通话状态。Specifically, when the wired data transmission interface of the terminal is connected to USB 3.0 and receives an instruction for data transmission through the connected USB 3.0, the terminal may first perform 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, including:
A、当终端通过有线数据传输接口进行数据传输时,对数据传输的传输速率进行检测;A. When the terminal transmits data through the wired data transmission interface, the transmission rate of the data transmission is detected;
B、当传输速率低于目标速率值时,对终端进行通话检测。B. When the transmission rate is lower than the target rate value, perform call detection on the terminal.
其中,在本申请实施例中,当AP接收到通过有线数据传输接口连接USB3.0进行数据传输的指令时,可以无需直接对终端进行通话检测,而是可以先进行数据传输并对当前数据传输的速率进行检测。如果检测到当前数据传输的速率大于一个预设的目标速率值时,则可以确定当前数据传输并未受到干扰或者受到的干扰较小,则无需进行进一步的通话控制;相反,如果检测到当前数据传输的速率小于该目标速率值时,则可以确定当前数据传输受到信号干扰导致传输下降或者传输中断,那么此时需要对通话过程进行控制来避免当前通话对数据传输的信号干扰。即当传输速率小于预设目标速率值时,再对终端进行通话检测。Among them, in the embodiment of the present application, when the AP receives an instruction to connect the USB3.0 through the wired data transmission interface for data transmission, it may not need to directly perform call detection on the terminal, but may first perform data transmission and transmit the current data. rate is detected. If it is detected that the current data transmission rate is greater than a preset target rate value, it can be determined that the current data transmission is not disturbed or the interference is small, and no further call control is required; on the contrary, if the current data transmission is detected When the transmission rate is less than the target rate value, it can be determined that the current data transmission is affected by signal interference, resulting in transmission drop or transmission interruption, and then the call process needs to be controlled to avoid signal interference of the current call to the data transmission. That is, when the transmission rate is less than the preset target rate value, call detection is performed on the terminal.
其中,在一些实施例中,当终端通过有线数据传输接口进行数据传输时,对终端进行通话检测,包括:Wherein, in some embodiments, when the terminal performs data transmission through the wired data transmission interface, the call detection is performed on the terminal, including:
1、当检测到终端通过有线数据传输接口进行数据传输时,向终端的射频调制解调器发送目标广播,目标广播用于控制射频调制解调器获取终端的通话状态信息;1. When it is detected that the terminal performs data transmission through the wired data transmission interface, the target broadcast is sent to the radio frequency modem of the terminal, and the target broadcast is used to control the radio frequency modem to obtain the call status information of the terminal;
2、接收射频调制解调器返回的通话状态信息,并基于通话状态信息对终端进行通话检测。2. Receive the call state information returned by the radio frequency modem, and perform call detection on the terminal based on the call state information.
其中,在本申请实施例中,对终端进行通话检测,具体可以通过终端的射频调制解调器,即射频modem来进行通话检测。其中,该射频modem可以集成在终端的基带处理器(Baseband Processor,BP)中。一般情况下终端将AP和BP分开,因为射频控制相关的功能(如信号调制、编码、射频位移等)都是高度的时间相关的,最好能将这些函数放在一个中央处理器(central processing unit,CPU)核上运行,并在这个CPU核上运行一个实时的操作系统,这样AP核上操作系统和驱动的漏洞就不会导致设备发送灾难性的数据到移动网络中;并且一旦BP被设计和认证好,不管采用的操作系统和应用软件怎么变化,它都可以正确的执行通讯功能,手机的设计者也可以更加自由的设计用户界面和应用软件。具体地,操作系统、用户界面和应用程序都在AP上运行;射频通讯和控制软件,则运行在BP上。Wherein, in this embodiment of the present application, the call detection is performed on the terminal, and specifically, the call detection may be performed through a radio frequency modem of the terminal, that is, a radio frequency modem. Wherein, the radio frequency modem may be integrated in a baseband processor (Baseband Processor, BP) of the terminal. In general, the terminal separates the AP and the BP, because the functions related to radio frequency control (such as signal modulation, coding, radio frequency shift, etc.) are highly time-related, and it is better to put these functions in a central processing unit (central processing unit). unit, CPU) core, and run a real-time operating system on this CPU core, so that the vulnerability of the operating system and driver on the AP core will not cause the device to send catastrophic data to the mobile network; and once the BP is blocked With good design and certification, no matter how the operating system and application software used are changed, it can correctly perform the communication function, and the designer of the mobile phone can also design the user interface and application software more freely. Specifically, the operating system, user interface and application programs all run on the AP; RF communication and control software run on the BP.
当终端的AP检测到需要通过有线数据传输接口连接USB3.0进行数据传输时,可以向BP中的射频modem发送一条广播,此处可以称为目标广播。该目标广播用于控制射频modem对BP中的射频通话状态进行获取,即控制射频modem对终端的通话状态信息进行获取。射频modem在获取到终端的通话状态信息后,便可以将获取到的通话状态信息返回给AP,AP便可以根据接收到的通话状态信息对终端进行通话检测。其中,通话检测具体可以包括检测终端是否处于通话状态以及当终端处于通话状态时进一步检测终端处于何种类型的通话状态。其中,终端的通话状态类型具体可以包括GSM通话(即2G通话)、3G通话(其中3G即为3-generation,第三代移动通信技术)、长期演进语音承载(Voice over Long-TermEvolution,VoLTE)通话(即4G通话)以及新空口(New Radio,NR)通话(即5G通话)。射频modem可以通过检测在工作的语音通道的频段来确定终端当前处于何种类型的通话状态。When the AP of the terminal detects that it needs to connect to the USB3.0 for data transmission through the wired data transmission interface, it can send a broadcast to the radio frequency modem in the BP, which can be called a target broadcast here. The target broadcast is used to control the radio frequency modem to acquire the radio frequency call state in the BP, that is, to control the radio frequency modem to acquire the call state information of the terminal. After the radio modem obtains the call state information of the terminal, it can return the obtained call state information 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 a call state. The call state type of the terminal may specifically include a GSM call (that is, a 2G call), a 3G call (where 3G is the 3-generation, the third-generation mobile communication technology), and the voice over long-term evolution (Voice over Long-Term Evolution, VoLTE) Calls (ie, 4G calls) and New Radio (NR) calls (ie, 5G calls). The radio frequency modem can determine what type of call state the terminal is currently in by detecting the frequency band of the working voice channel.
在120中,若终端采用预设频段进行通话时,从终端的多个天线中确定目标天线。In 120, if the terminal uses the preset frequency band to make a call, the target antenna is determined from multiple antennas of the terminal.
其中,当AP通过射频modem返回的通话状态信息确定终端当前处于通话状态时,可以进一步确定终端当前处于何种类型的通话。例如确定终端当前处于GSM通话或者处于3G通话等。Wherein, when the AP determines that the terminal is currently in a call state through the call state information returned by the radio modem, it can further determine what type of call the terminal is currently in. For example, it is determined that the terminal is currently in a GSM call or a 3G call.
此时可以进一步判断终端当前所述的通话类型是否为预设的通话类型。其中,由于不同的通话类型采用的频段不同,因此可以通过判断终端当前所采用的通话频段来判断通话是否采用了预设通话类型进行通话。当确定了终端采用了预设频段进行通话,此处预设频段可以为干扰有线数据传输接口进行数据传输的频段,具体例如GSM通话类型对应的频段时,可以从终端的多个天线中确定一个目标天线,其中此处目标天线距离有线数据传输接口的距离大于当前通话采用的天线距离有线数据传输接口的距离。In this case, it can be further determined whether the call type currently described by the terminal is a preset call type. Wherein, since different call types use different frequency bands, it can be judged whether the call adopts the preset call type to conduct the call by judging the call frequency band currently used by the terminal. When it is determined that the terminal uses a preset frequency band for calls, the preset frequency band may be the frequency band that interferes with the wired data transmission interface for data transmission, for example, when the frequency band corresponding to the GSM call type, can be determined from multiple antennas of the terminal. The target antenna, where the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used in the current call and the wired data transmission interface.
具体地,一个终端可以有多个天线,例如移动手机便具有上天线和下天线,一般上天线安装在移动手机的顶端,下天线一般安装在移动手机的底端靠近麦克风和有线数据传输接口或者电源接口处。如图2所示,为本申请提供的移动手机的硬件结构示意图。其中,移动手机10包含有线数据传输接口13,该有线数据传输接口13可以用于连接USB3.0进行数据传输。此外,移动手机10还包含上天线11和下天线12。移动手机在通话时,可以采用上天线11进行通话也可以采用下天线12进行通话,具体并未限定移动手机通话所采用的天线,移动手机通话所采用的天线可以根据实时的通话质量情况进行来回的切换。然而,由于移动手机的下天线12距离有线数据传输接口13位置很近,若采用下天线进行通话,则下天线产生的辐射的主波能量则会对USB3.0的数据传输造成干扰,甚至可能会造成USB3.0数据传输断流的问题。那么此时便可以确定移动手机的上天线11为目标天线。由于移动手机的上天线11相对于下天线12距离有线数据传输接口13的位置更远,其辐射产生的能量对USB3.0的干扰便会下降很多,从而可以保证USB3.0可以稳定进行数据传输。其中,移动手机10还包括射频modem14,射频modem14与上天线11以及下天线12分别连接,射频modem14用于对上天线11与下天线12进行工作状态的具体控制。Specifically, a terminal may have multiple antennas. For example, a mobile phone has an upper antenna and a lower antenna. Generally, the upper antenna is installed at the top of the mobile phone, and the lower antenna is generally installed at the bottom of the mobile phone, close to the microphone and the wired data transmission interface or at the power interface. As shown in FIG. 2 , it is a schematic diagram of the hardware structure of the mobile phone provided by the present application. Wherein, the
上述移动手机只是一个示例,在一些实施例中,终端可以具有更多数量的天线,例如具有三个或者更多的天线。那么,当确定当前数据传输受到干扰,即数据传输的速率小于目标速率值时,便确定了当前的数据传输受到了干扰,也即终端当前处于预设频段的通话状态时,便可以进一步确定终端当前通话所采用的天线。例如终端具有三个天线,分别为天线A、天线B以及天线C,这三个天线距离有线数据传输接口的距离由近至远。那么如果确定当前通话所采用的天线为天线A时,便可以确定天线B或天线C为目标天线;若当前通话所采用的天线为天线B时,便可以确定天线C为目标天线。若当前通话所采用的天线为天线C时,则还确定天线C为目标天线。或者,在一些实施例中,当终端具有多个天线时,可以确定距离有线数据传输接口距离最远的天线为目标天线。The above mobile phone is just an example, and in some embodiments, the terminal may have a larger number of antennas, for example, three or more antennas. Then, when it is determined that the current data transmission is interfered, that is, the data transmission rate is less than the target rate value, it is determined that the current data transmission is interfered, that is, when the terminal is currently in the call state of the preset frequency band, it can be further determined that the terminal The antenna used for the current call. For example, the terminal has three antennas, namely, antenna A, antenna B, and antenna C, and the distances between the three antennas and the wired data transmission interface are from near to far. Then, if it is determined that the antenna used in the current call is antenna A, antenna B or antenna C can be determined as the target antenna; if the antenna used in the current call is antenna B, antenna C can be determined as the target antenna. If the antenna used for the current call is the antenna C, the antenna C is also determined as the target antenna. Or, in some embodiments, when the terminal has multiple antennas, the antenna with the farthest distance from the wired data transmission interface may be determined as the target antenna.
在130中,将当前通话采用的天线切换至目标天线进行通话。In 130, the antenna used for the current call is switched to the target antenna for the call.
其中,在确定了目标天线后,可以将当前通话采用的天线切换至目标天线进行通话。由于目标天线距离有线数据传输接口的距离相对于当前通话所采用的天线的距离有线数据传输接口的距离更远,因此基于目标天线进行通话所产生的辐射的主波能量对有线数据传输接口连接的USB3.0的干扰更小,从而可以提升有线数据传输接口采用USB3.0进行数据传输的稳定性。Wherein, after the target antenna is determined, the antenna used for the current call can be switched to the target antenna for the call. Since the distance between the target antenna and the wired data transmission interface is farther than the distance between the antenna used for the current call and the wired data transmission interface, the main wave energy of radiation generated by the call based on the target antenna is responsible for the connection of the wired data transmission interface. The interference of USB3.0 is smaller, which can improve the stability of the wired data transmission interface using USB3.0 for data transmission.
在一些实施例中,将当前通话采用的天线切换至目标天线进行通话,包括:In some embodiments, switching the antenna used for the current call to the target antenna for the call includes:
1、根据目标天线生成天线锁定指令;1. Generate an antenna locking command according to the target antenna;
2、向射频调制解调器发送天线锁定指令以使得射频调制解调器将当前通话的天线锁定于目标天线。2. Send an antenna locking command to the RF modem, so that the RF modem locks the antenna of the current call to the target antenna.
其中,在本申请实施例中,将当前通话采用的天线切换至目标天线进行通话具体可以为向射频modem发送锁天线指令,该锁天线指令用于控制射频modem将当前通话的天线锁定于目标天线。具体地,AP可以先根据确定的目标天线生成天线锁定指令,然后将该天线锁定指令发送给射频modem,使得射频modem将通话天线锁定于目标天线。例如当确定了目标天线为移动手机的上天线时,便可以向射频modem发送将通话天线锁定在上天线的指令,以使得射频modem将通话天线锁定在移动手机的上天线。Wherein, in the embodiment of the present application, switching the antenna used for the current call to the target antenna for the call may specifically be sending an antenna lock instruction to the radio frequency modem, and the antenna lock instruction is used to control the radio frequency modem to lock the antenna of 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 phone, an instruction to lock the call antenna to the upper antenna can be sent to the RF modem, so that the RF modem locks the call antenna to the upper antenna of the mobile phone.
在一些实施例中,本申请提供的数据传输方法还可以包括:In some embodiments, the data transmission method provided by this application may further include:
A、获取通过有线数据传输接口进行数据传输的数据传输速率;A. Obtain the data transmission rate of data transmission through the wired data transmission interface;
B、当数据传输速率低于目标速率值时,按照预设调整步长降低通话功率,直至数据传输速率达到目标速率值。B. When the data transmission rate is lower than the target rate value, reduce the call power according to the preset adjustment step size until the data transmission rate reaches the target rate value.
其中,在本申请实施例中,在将当前通话采用的天线切换至目标天线进行通话之后,还可以进一步获取通过有线数据传输接口进行数据传输的数据传输效率,即此时AP可以进一步获取USB3.0的数据传输速率。若将通话天线锁定在目标天线上之后,USB3.0进行数据传输的速率能够达到目标速率值,则说明锁定目标天线进行通话已经改善了通话能量对数据传输造成的干扰问题,此时可以继续通过USB3.0进行数据传输。若将通话天线锁定在目标天线之后测试得到USB3.0数据传输速率仍然没有达到预设的目标速率值,则可以进一步按照预设的步长逐步降低通话功率直至通过USB3.0进行数据传输的速率达到目标速率值。Wherein, in the embodiment of the present application, after the antenna used for the current call is switched to the target antenna for 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 USB3. 0 data transfer rate. If the data transmission rate of USB3.0 can reach the target rate after locking the call antenna to the target antenna, it means that locking the target antenna for call has improved the interference problem caused by call energy to data transmission. USB3.0 for data transfer. If the USB3.0 data transmission rate still does not reach the preset target rate after the call antenna is locked to the target antenna, the call power can be gradually reduced in accordance with the preset step size until the data transmission rate through USB3.0 The target velocity value is reached.
在一些实施例中,当数据传输速率低于目标速率值时,按照预设调整步长降低通话功率,直至数据传输速率达到目标速率值,包括:In some embodiments, 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, including:
B1、当数据传输速率低于目标速率值时,根据预设调整步长生成功率调节指令;B1. When the data transmission rate is lower than the target rate value, a power adjustment instruction is generated according to the preset adjustment step size;
B2、向终端的射频调制解调器发送功率调节指令,以使得射频调制解调器根据预设步长降低通话功率,直至数据传输速率达到目标速率值。B2. Send a power adjustment command to the radio frequency modem of the terminal, so that the radio frequency modem reduces the call power according to the preset step size until the data transmission rate reaches the target rate value.
其中,在本申请实施例中,也可以通过射频modem来对通话功率进行调整。具体地,当AP检测到通过将通话天线绑定在目标天线中进行通话后USB3.0的数据传输速率仍然未能达到预设的目标速率值时,便可以进行以根据预设调整步长生成功率调节指令,该功率调节指令用于调节通话功率。然后,AP将生成的功率调节指令发送给射频modem,使得射频modem采用该预设调整步长对当前通话的通话功率进行降低。其中,在终端采用USB3.0通过有线数据传输接口进行数据传输时若终端也处于通话状态,则影响USB3.0的数据传输稳定性的因素较大概率就是通话时的天线辐射,此时通过控制通话天线远离有线数据传输接口可以降低有线数据传输接口附近的天线辐射,从而减小对USB3.0数据传输的影响。若控制通话天线远离有线数据传输接口后USB3.0的传输速率仍然未能达到预设的目标速率值时,便可以进一步通过降低通话功率的方式来进一步降低USB3.0接口处的辐射强度,以降低对USB3.0的数据传输的干扰。其中,对通话功率的降低,可以按照一定的调整步长进行逐步降低,以避免降低过多导致通话质量下降。Wherein, in this embodiment of the present application, the call power may also be adjusted by using a radio frequency modem. Specifically, when the AP detects that the data transmission rate of USB 3.0 still fails to reach the preset target rate value after the call is made by binding the call antenna to the target antenna, it can adjust the step size according to the preset value to generate Power adjustment command, the power adjustment command is used to adjust the call power. Then, the AP sends the generated power adjustment instruction to the radio frequency modem, so that the radio frequency modem uses the preset adjustment step to reduce the call power of the current call. Among them, when the terminal adopts USB3.0 to transmit data through the wired data transmission interface, if the terminal is also in a call state, the factor that affects the stability of USB3.0 data transmission is more likely to be the antenna radiation during the call. At this time, by controlling Keeping the call antenna away from the wired data transmission interface can reduce antenna radiation near the wired data transmission interface, thereby reducing the impact on USB3.0 data transmission. If the transmission rate of USB3.0 still fails to reach the preset target rate value after controlling the call antenna away from the wired data transmission interface, the radiation intensity at the USB3.0 interface can be further reduced by reducing the call power. Reduce the interference to the data transmission of USB3.0. Among them, the reduction of the call power can be gradually reduced according to a certain adjustment step, so as to avoid the reduction of the call quality caused by too much reduction.
在一些实施例中,在具有多个天线的终端中,当将通话天线锁定在目标天线上而USB3.0的数据传输速率仍然未能达到目标速率值时,可以进一步判断终端中是否存在距离有线数据传输接口的距离大于目标天线与有线数据传输接口之间距离的更优天线,如果有则可以将通话天线进一步锁定到该更优天线上进行通话以进一步降低USB3.0接口处的辐射强度,从而进一步降低对USB3.0的数据传输干扰,提升USB3.0数据传输稳定性。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 USB 3.0 still fails to reach the target rate value, it can be further determined whether there is a distance cable in the terminal The distance between the data transmission interface is greater than the distance between the target antenna and the wired data transmission interface. If there is a better antenna, the call antenna can be further locked to the better antenna to make a call to further reduce the radiation intensity at the USB3.0 interface. Thereby, the interference to USB3.0 data transmission is further reduced, and the stability of USB3.0 data transmission is improved.
在一些实施例中,本申请提供的数据传输方法还包括:In some embodiments, the data transmission method provided by this application further includes:
当检测到数据传输结束时,向终端的射频调制解调器发送锁定解除指令,锁定解除指令用于解除对通话天线的锁定。When it is detected that the data transmission ends, a lock release instruction is sent to the radio frequency modem of the terminal, and the lock release instruction is used to release the lock of the talking antenna.
其中,在本申请实施例中,在将通话天线锁定在目标天线上之后,可以实时对数据传输过程进行监测。若监测到数据传输结束,则为了保证通话质量,可以解除将通话天线锁定在目标天线上的天线锁定操作。具体地,在将通话天线锁定在目标天线上之后,AP可以实时对数据传输进行监测,当监测到数据传输结束后,AP可以进一步向射频modem发送锁定解除指令,射频modem在接收到锁定解除指令后,进一步解除对通话天线的锁定。Wherein, in the embodiment of the present application, after the talking antenna is locked on the target antenna, the data transmission process can be monitored in real time. If it is detected that the data transmission ends, in order to ensure the quality of the call, the antenna locking operation of locking the call antenna to the target antenna can be released. Specifically, after locking the call antenna to the target antenna, the AP can monitor the data transmission in real time. After monitoring the end of the data transmission, the AP can further send a lock release instruction to the radio modem, and the radio modem receives the lock release instruction after receiving the lock release instruction. After that, further unlock the call antenna.
在一些实施例中,若在通话控制的过程中也做过对通话功率的降低控制,那么在数据传输结束后,可以进一步解除对通话功率的降低操作,使得通话功率恢复到初始值,从而保证通话质量。In some embodiments, if the call power reduction control is also performed during the call control process, after the data transmission is completed, the call power reduction operation can be further canceled, so that the call power is restored to the initial value, thereby ensuring conversation quality.
其中,本申请提供的数据传输方法,在终端采用USB3.0进行数据传输时,若检测到终端同时也在进行预设频段的通话,则可以将终端的通话天线锁定在距离USB3.0数据传输接口较远的天线上。该方法减小了通话辐射的能量对USB3.0数据传输的影响,从而保证了USB3.0数据传输的稳定性。同时,由于USB3.0在进行数据传输时也会带来噪声,也会对通话过程的通话质量产生干扰,因此将通话天线锁定在距离USB3.0接口较远的天线上,还可以进一步改善通话的质量。Wherein, in the data transmission method provided by this application, when the terminal adopts USB3.0 for data transmission, if it is detected that the terminal is also conducting a call in a preset frequency band at the same time, the call antenna of the terminal can be locked at a distance from the USB3.0 data transmission. on an antenna with a farther interface. The method reduces the influence of the energy radiated by the call on the USB3.0 data transmission, thereby ensuring the stability of the USB3.0 data transmission. At the same time, since USB3.0 will also bring noise during data transmission, it will also interfere with the call quality during the call. Therefore, locking the call antenna on the antenna farther away from the USB3.0 interface can further improve the call. the quality of.
根据上述描述可知,本申请提供的数据传输方法,当终端通过有线数据传输接口进行数据传输时,对终端进行通话检测;若终端采用预设频段进行通话时,从终端的多个天线中确定目标天线,预设频段为干扰有线数据传输接口进行数据传输的频段,目标天线距离有线数据传输接口的距离大于当前通话采用的天线距离有线数据传输接口的距离;将当前通话采用的天线切换至目标天线进行通话。通过该方法,可以在终端通过有线数据传输接口进行数据传输时将通话采用的天线切换到距离有线数据传输接口较远的天线,从而降低通话频段信号对数据传输的干扰,进而可以提升数据传输的稳定性。According to the above description, in the data transmission method provided by the present application, when the terminal performs data transmission through the wired data transmission interface, the terminal performs call detection; if the terminal uses the preset frequency band for the call, the target is determined from multiple antennas of the terminal Antenna, the preset frequency band is the frequency band that interferes with the wired data transmission interface for data transmission, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; switch the antenna used for the current call to the target antenna Make a call. Through this method, when the terminal performs data transmission through the wired data transmission interface, the antenna used for the call can be switched to the antenna farther away from the wired data transmission interface, thereby reducing the interference of the call frequency band signal on the data transmission, thereby improving the data transmission efficiency. stability.
请参照图3,图3为本申请实施例提供的数据传输方法的另一流程示意图。如图3所示,本申请实施例提供的数据传输方法的流程可以如下:Please refer to FIG. 3 , which is another schematic flowchart of a data transmission method provided by an embodiment of the present application. As shown in FIG. 3 , the process of the data transmission method provided by the embodiment of the present application may be as follows:
在210中,当移动终端的AP接收到采用USB3.0进行数据传输的指令时,向移动终端的射频modem发送广播。In 210, when the AP of the mobile terminal receives the instruction of using USB3.0 for data transmission, it sends a broadcast to the radio frequency modem of the mobile terminal.
当移动终端的数据传输接口连接了USB3.0,然后用户发起了数据传输,移动终端的AP接收到数据传输的指令后,便会向移动终端的BP中的射频modem发送一个广播,该广播用于控制射频modem对移动终端进行通话检测。When the data transmission interface of the mobile terminal is connected to USB3.0, and then the user initiates data transmission, the AP of the mobile terminal will send a broadcast to the RF modem in the BP of the mobile terminal after receiving the data transmission instruction. It is used to control the radio frequency modem to perform call detection on the mobile terminal.
在220中,移动终端的射频modem检测移动终端当前是否处于通话状态。In 220, the radio frequency modem of the mobile terminal detects whether the mobile terminal is currently in a call state.
移动终端的射频modem在接收到AP发送的广播后便对移动终端的通话状态进行检测,以确定移动终端是否处于通话状态。若移动终端没有处于通话状态,则可以执行步骤280,即执行USB3.0的数据传输。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, that is, data transmission of USB 3.0 may be performed.
在230中,移动终端的射频modem检测移动终端是否处于GSM通话状态。In 230, the radio frequency modem of the mobile terminal detects whether the mobile terminal is in a GSM call state.
当移动终端的射频modem检测到移动终端处于通话状态时,可以进一步检测移动终端是否处于GSM通话状态。一般情况下,当移动终端处于3G、4G或者5G通话时,其产生的辐射能量较小,对USB3.0的数据传输干扰较小。若检测到移动终端是采用3G、4G或者5G通话时,则可以执行步骤280,即执行USB3.0的数据传输。若检测到移动终端处于GSM通话状态,则可以执行步骤240。When the radio frequency modem of the mobile terminal detects that the mobile terminal is in a call state, it can further detect whether the mobile terminal is in a GSM call state. In general, when the mobile terminal is in a 3G, 4G or 5G call, the radiation energy generated by it is small, and the interference to USB3.0 data transmission is small. If it is detected that the mobile terminal uses 3G, 4G or 5G to make calls, step 280 may be performed, that is, data transmission of USB 3.0 may be performed. If it is detected that the mobile terminal is in a GSM call state, step 240 may be executed.
在240中,移动终端的射频modem将GSM通话锁定到上天线。In 240, the radio frequency modem of the mobile terminal locks the GSM call to the upper antenna.
当确定了移动终端采用了GSM通话时,则可以将GSM通话的天线锁定到移动终端的上天线。其中,由于一般情况下移动终端的下天线设置于数据传输接口处,而上天线设置于移动终端的顶端距离数据传输接口位置较远。因此采用移动终端的上天线进行通话时天线产生的辐射对USB3.0接口处的影响也较小。同时,USB3.0产生的噪声对通话的干扰也会减小,从而既保证了数据传输的稳定性又提升了通话的通话质量。When it is determined that the mobile terminal adopts the GSM call, the antenna of the GSM call can be locked to the upper antenna of the mobile terminal. Wherein, in general, the lower antenna of the mobile terminal is arranged at the data transmission interface, and the upper antenna is arranged at the top of the mobile terminal and is far away from the data transmission interface. Therefore, when the upper antenna of the mobile terminal is used to make a call, the radiation generated by the antenna has less influence on the USB3.0 interface. At the same time, the interference of the noise generated by USB3.0 to the call will also be reduced, which not only ensures the stability of data transmission but also improves the call quality of the call.
在250中,移动终端的AP检测USB3.0的传输速率是否低于预设速率值。In 250, the AP of the mobile terminal detects whether the transmission rate of the USB 3.0 is lower than the preset rate value.
在将通话天线锁定到移动终端的上天线之后,移动终端的AP可以进一步检测USB3.0的数据传输速率是否低于一个预设速率值。该预设速率值可以设定为480Mbps。若将通话天线锁定到上天线仍然不能保证USB3.0接口的数据传输速率,那么则需要进一步进行通话控制。After locking the call antenna to the upper antenna of the mobile terminal, the AP of the mobile terminal can further detect whether the data transmission rate of the USB 3.0 is lower than a preset rate value. The preset rate value can be set to 480Mbps. If locking the call antenna to the upper antenna still cannot guarantee the data transmission rate of the USB3.0 interface, further call control is required.
在260中,移动终端的AP向射频modem发送降功率指令。In 260, the AP of the mobile terminal sends a power reduction instruction to the radio modem.
具体地,若将移动终端的通话天线锁定到上天线后仍然不能保证USB3.0的数据传输速率,则可以进一步对通话功率进行降低处理。具体例如可以将GSM通话的通话功率降低3dB处理。此时移动终端的AP可以向射频modem发送降功率的指令,以使得射频modem对当前的GSM通话进行降功率处理。Specifically, if the data transmission rate of USB 3.0 cannot be guaranteed even after locking the call antenna of the mobile terminal to the upper antenna, the call power can be further reduced. Specifically, for example, the call power of a GSM call can be reduced by 3dB. At this time, the AP of the mobile terminal may send a power reduction instruction to the radio frequency modem, so that the radio frequency modem performs power reduction processing on the current GSM call.
在270中,移动终端的射频modem降低通话功率。In 270, the radio frequency modem of the mobile terminal reduces the call power.
当移动终端的射频modem接收到移动终端的AP发送的降功率指令后,便可以根据该指令对当前GSM通话的功率进行降3dB处理。或者,在一些实施例中,可以设置一个小的降功率步长,射频modem根据该步长逐步降低GSM通话的功率并实时监控降功率过程中USB3.0接口出数据传输的速率变化,当USB3.0接口数据传输速率达到预设的传输速率值时,便可以停止降功率的操作,继续进行数据传输。After the radio frequency modem of the mobile terminal receives the power reduction instruction sent by the AP of the mobile terminal, it can reduce the power of the current GSM call by 3 dB according to the instruction. Alternatively, in some embodiments, a small power reduction step size can be set, and the RF modem gradually reduces the power of the GSM call according to the step size and monitors the change of the data transmission rate of the USB3.0 interface in real time during the power reduction process. When the data transmission rate of the .0 interface reaches the preset transmission rate value, the power reduction operation can be stopped and data transmission can be continued.
在280中,移动终端的AP执行USB3.0数据传输。In 280, the AP of the mobile terminal performs USB 3.0 data transmission.
当对GSM通话进行降功率处理后,可以继续执行USB3.0的数据传输任务。当移动终端未处于通话状态或者移动终端处于通话状态但没有处于GSM通话状态时,也可以继续执行USB3.0的数据传输任务。After the power reduction processing is performed on the GSM call, the USB3.0 data transmission task can be continued. When the mobile terminal is not in the call state or the mobile terminal is in the call state but not in the GSM call state, the data transmission task of USB3.0 can also be continued.
在290中,当检测到USB3.0数据传输停止,射频modem执行释放锁天线和降功率的指令。In 290, when it is detected that the USB 3.0 data transmission is stopped, the radio frequency modem executes an instruction to release the locked antenna and reduce power.
其中,在执行USB3.0的数据传输任务的过程中,还可以实时对数据传输状态进行检测,当监测到数据传输结束,则移动终端的AP向移动终端的射频modem发送解除指令,该解除指令用于释放所天线和降功率的指令,也就是接触前述锁定在上天线进行通话以及降低通话功率的指令。Among them, in the process of executing the USB3.0 data transmission task, the data transmission status can also be detected in real time. When the end of the data transmission is monitored, the AP of the mobile terminal sends a release instruction to the radio frequency modem of the mobile terminal. The release instruction The command for releasing the antenna and reducing the power, that is, the command for contacting the aforementioned locked antenna to make a call and reducing the power of the call.
请参照图4,图4为本申请实施例提供的数据传输装置300的一结构示意图。该数据传输装置300应用于本申请提供的电子设备。如图4所示,该数据传输装置300可以包括:Please refer to FIG. 4 , which is a schematic structural diagram of a
检测模块310,用于当终端通过有线数据传输接口进行数据传输时,对终端进行通话检测;The detection module 310 is configured to perform call detection on the terminal when the terminal performs data transmission through the wired data transmission interface;
确定模块320,用于若终端采用预设频段进行通话时,从终端的多个天线中确定目标天线,预设频段为干扰有线数据传输接口进行数据传输的频段,目标天线距离有线数据传输接口的距离大于当前通话采用的天线距离有线数据传输接口的距离;The determining module 320 is configured to determine a target antenna from a plurality of antennas of the terminal when the terminal uses a preset frequency band to make a call, the preset frequency band is a frequency band that interferes with the wired data transmission interface for data transmission, and the target antenna is located at a distance from the wired data transmission interface. The distance is greater than the distance between the antenna used for the current call and the wired data transmission interface;
切换模块330,用于将当前通话采用的天线切换至目标天线进行通话。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 this application further includes:
获取模块,用于获取通过有线数据传输接口进行数据传输的数据传输速率;an acquisition module for acquiring the data transmission rate of data transmission through the wired data transmission interface;
调整模块,用于当数据传输速率低于目标速率值时,按照预设调整步长降低通话功率,直至数据传输速率达到目标速率值。The adjustment module is used for reducing the call power according to the preset adjustment step when the data transmission rate is lower than the target rate value until the data transmission rate reaches the target rate value.
可选地,在一实施例中,调整模块,包括:Optionally, in one embodiment, the adjustment module includes:
第一生成子模块,用于当数据传输速率低于目标速率值时,根据预设调整步长生成功率调节指令;a first generating submodule, configured to generate a power adjustment instruction according to a preset adjustment step size when the data transmission rate is lower than the target rate value;
第一发送子模块,用于向终端的射频调制解调器发送功率调节指令,以使得射频调制解调器根据预设调整步长降低通话功率,直至数据传输速率达到目标速率值。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 size until the data transmission rate reaches the target rate value.
可选地,在一实施例中,检测模块,包括:Optionally, in one embodiment, the detection module includes:
第二发送子模块,用于当检测到终端通过有线数据传输接口进行数据传输时,向终端的射频调制解调器发送目标广播,目标广播用于控制射频调制解调器获取终端的通话状态信息;The second sending submodule is configured to send a target broadcast to the radio frequency modem of the terminal when it is detected that the terminal performs data transmission through the wired data transmission interface, and the target broadcast is used to control the radio frequency modem to obtain the call state information of the terminal;
接收子模块,用于接收射频调制解调器返回的通话状态信息,并基于通话状态信息对终端进行通话检测。The receiving submodule is used for receiving the call state information returned by the radio frequency modem, and performing call detection on the terminal based on the call state information.
可选地,在一实施例中,切换模块,包括:Optionally, in an embodiment, the switching module includes:
第二生成子模块,用于根据目标天线生成天线锁定指令;a second generating submodule, configured to generate an antenna locking instruction according to the target antenna;
第三发送子模块,用于向射频调制解调器发送天线锁定指令以使得射频调制解调器将当前通话的天线锁定于目标天线。The third sending sub-module is configured to send an antenna locking instruction to the radio frequency modem, so that the radio frequency modem locks the antenna of the current call to the target antenna.
可选地,在一实施例中,本申请提供的数据传输装置还包括:Optionally, in an embodiment, the data transmission device provided by this application further includes:
解除模块,用于当检测到数据传输结束时,向终端的射频调制解调器发送锁定解除指令,锁定解除指令用于解除对通话天线的锁定。The unlocking module is used to send a lock release instruction to the radio frequency modem of the terminal when it is detected that the data transmission ends, and the lock release instruction is used to release the lock of the talking antenna.
可选地,在一实施例中,检测模块,包括:Optionally, in one embodiment, the detection module includes:
第一检测子模块,用于当终端通过有线数据传输接口进行数据传输时,对数据传输的传输速率进行检测;a first detection sub-module, configured to detect the transmission rate of the data transmission when the terminal performs data transmission through the wired data transmission interface;
第二检测子模块,用于当传输速率低于目标速率值时,对终端进行通话检测。The second detection submodule is configured to perform call detection on the terminal when the transmission rate is lower than the target rate value.
应当说明的是,本申请实施例提供的数据传输装置300与上文实施例中图1所示的数据传输方法属于同一构思,其具体实现过程详见以上相关实施例,此处不再赘述。It should be noted that the
根据上述描述可知,本申请提供的数据传输装置,通过当终端通过有线数据传输接口进行数据传输时,检测模块310对终端进行通话检测;若终端采用预设频段进行通话时,确定模块320从终端的多个天线中确定目标天线,预设频段为干扰有线数据传输接口进行数据传输的频段,目标天线距离有线数据传输接口的距离大于当前通话采用的天线距离有线数据传输接口的距离;切换模块330将当前通话采用的天线切换至目标天线进行通话。通过该方法,可以在终端通过有线数据传输接口进行数据传输时将通话采用的天线切换到距离有线数据传输接口较远的天线,从而降低通话频段信号对数据传输的干扰,进而可以提升数据传输的稳定性。According to the above description, in the data transmission device provided by the present application, when the terminal transmits data through the wired data transmission interface, the detection module 310 performs call detection on the terminal; The target antenna is determined from the plurality of antennas, the preset frequency band is the frequency band that interferes with the wired data transmission interface for data transmission, and the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; the switching module 330 Switch the antenna used for the current call to the target antenna for the call. Through this method, when the terminal performs data transmission through the wired data transmission interface, the antenna used for the call can be switched to the antenna farther away from the wired data transmission interface, thereby reducing the interference of the call frequency band signal on the data transmission, thereby improving the data transmission efficiency. stability.
本申请实施例还提供一种存储介质,其上存储有计算机程序,当其存储的计算机程序在本申请实施例提供的电子设备的处理器上执行时,使得电子设备的处理器执行以上任一适于电子设备的数据传输方法中的步骤。其中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)或者随机存取器(Random Access Memory,RAM)等。Embodiments of the present application further provide a storage medium on which a computer program is stored, and when the stored computer program is executed on the processor of the electronic device provided by the embodiment of the present application, the processor of the electronic device is made to execute any one of the above Steps in a data transmission method suitable for electronic equipment. The storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM) or the like.
本申请还提供一种终端,请参照图5,终端400包括处理器410和存储器420。The present application also provides a terminal. Please refer to FIG. 5 . The terminal 400 includes a
本申请实施例中的处理器410可以是通用处理器,比如ARM架构的处理器。The
存储器420中存储有计算机程序,其可以为高速随机存取存储器,还可以为非易失性存储器,比如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件等。相应地,存储器420还可以包括存储器控制器,以提供处理器401对存储器420的访问。处理器410通过执行存储器420中的计算机程序,用于执行以上任一数据传输方法,比如:A computer program is stored in the memory 420, which may be a high-speed random access memory, or a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Accordingly, memory 420 may also include a memory controller to provide processor 401 access to memory 420 . The
当终端通过有线数据传输接口进行数据传输时,对终端进行通话检测;若终端采用预设频段进行通话时,从终端的多个天线中确定目标天线,预设频段为干扰有线数据传输接口进行数据传输的频段,目标天线距离有线数据传输接口的距离大于当前通话采用的天线距离有线数据传输接口的距离;将当前通话采用的天线切换至目标天线进行通话。When the terminal transmits data through the wired data transmission interface, the terminal performs call detection; if the terminal uses a preset frequency band to make a call, the target antenna is determined from multiple antennas of the terminal, and the preset frequency band is to interfere with the wired data transmission interface for data transmission. For the transmission frequency band, the distance between the target antenna and the wired data transmission interface is greater than the distance between the antenna used for the current call and the wired data transmission interface; switch the antenna used for the current call to the target antenna for the call.
以上对本申请所提供的一种数据传输方法、装置、存储介质及终端进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A data transmission method, device, storage medium and terminal provided by the present application have been introduced in detail above. Specific examples are used in this paper to illustrate the principles and implementations of the present application. The descriptions of the above embodiments are only used to help Understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be It is construed as a limitation of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210399938.XA CN114665941A (en) | 2022-04-15 | 2022-04-15 | Data transmission method, device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210399938.XA CN114665941A (en) | 2022-04-15 | 2022-04-15 | Data transmission method, device, storage medium and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114665941A true CN114665941A (en) | 2022-06-24 |
Family
ID=82036056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210399938.XA Pending CN114665941A (en) | 2022-04-15 | 2022-04-15 | Data transmission method, device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114665941A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1992021196A1 (en) * | 1991-05-17 | 1992-11-26 | Qualcomm Incorporated | Method and apparatus for controlling transmission power in a cdma cellular mobile telephone system |
CN107026682A (en) * | 2017-03-31 | 2017-08-08 | 维沃移动通信有限公司 | A kind of antenna switching method and device |
CN109257081A (en) * | 2018-09-03 | 2019-01-22 | 珠海格力电器股份有限公司 | Communication control method and device of terminal, storage medium and terminal |
WO2020114009A1 (en) * | 2018-12-04 | 2020-06-11 | Oppo广东移动通信有限公司 | Electromagnetic interference control method and related apparatus |
US20210152194A1 (en) * | 2019-11-15 | 2021-05-20 | Queclink Wireless Solutions Co., Ltd. | Antenna adjustment method, apparatus and terminal device |
CN113826423A (en) * | 2019-08-09 | 2021-12-21 | 华为技术有限公司 | Method and device for data transmission |
CN113840364A (en) * | 2020-06-24 | 2021-12-24 | 深圳市万普拉斯科技有限公司 | Antenna transmit power setting method, device, computer equipment and storage medium |
-
2022
- 2022-04-15 CN CN202210399938.XA patent/CN114665941A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1992021196A1 (en) * | 1991-05-17 | 1992-11-26 | Qualcomm Incorporated | Method and apparatus for controlling transmission power in a cdma cellular mobile telephone system |
CN107026682A (en) * | 2017-03-31 | 2017-08-08 | 维沃移动通信有限公司 | A kind of antenna switching method and device |
CN109257081A (en) * | 2018-09-03 | 2019-01-22 | 珠海格力电器股份有限公司 | Communication control method and device of terminal, storage medium and terminal |
WO2020114009A1 (en) * | 2018-12-04 | 2020-06-11 | Oppo广东移动通信有限公司 | Electromagnetic interference control method and related apparatus |
CN113826423A (en) * | 2019-08-09 | 2021-12-21 | 华为技术有限公司 | Method and device for data transmission |
US20210152194A1 (en) * | 2019-11-15 | 2021-05-20 | Queclink Wireless Solutions Co., Ltd. | Antenna adjustment method, apparatus and terminal device |
CN113840364A (en) * | 2020-06-24 | 2021-12-24 | 深圳市万普拉斯科技有限公司 | Antenna transmit power setting method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106230492B (en) | Terminal antenna switching method and device and mobile terminal | |
US11671809B2 (en) | Bluetooth profile fast connect | |
CN111654316A (en) | Antenna switching method, device, storage medium and electronic device | |
CN112867069B (en) | Interference processing method and device, storage medium and electronic equipment | |
CN107147419A (en) | Method for reducing signal interference, storage medium and terminal | |
CN106130572B (en) | Method and device for switching terminal antenna and mobile terminal | |
CN108834176A (en) | Antenna signal interference processing method, antenna signal interference processing device, electronic device and storage medium | |
JP6961708B2 (en) | Network connection method and equipment | |
CN106685468A (en) | Radio frequency circuit, terminal and radio frequency circuit control method | |
CN108233956B (en) | Antenna coexistence mutual interference processing method and device, storage medium and electronic equipment | |
CN108540152A (en) | Processing method and device for radio frequency interference, storage medium and electronic equipment | |
US20210258083A1 (en) | Method for Electromagnetic Interference Control and Related Devices | |
CN110299930A (en) | Antenna switching method and related equipment | |
CN108683466A (en) | A kind of intelligent terminal and radio frequency interference detection method | |
CN110234169B (en) | Communication interference adjustment control method and related product | |
CN106255185A (en) | Method and device for switching terminal antenna and mobile terminal | |
CN108337718B (en) | Wireless network scanning method, device, terminal device and storage medium | |
CN108337715B (en) | Wireless network connection method, device, terminal equipment and storage medium | |
CN114665941A (en) | Data transmission method, device, storage medium and terminal | |
KR102225836B1 (en) | Method and Apparatus for Improving the Performance of Antenna | |
CN108769368A (en) | Electronic equipment and information processing method | |
CN109257081B (en) | Communication control method and device of terminal, storage medium and terminal | |
CN114978229B (en) | Radio frequency control method, device and electronic equipment | |
CN112152650B (en) | Electromagnetic wave absorption parameter control method, device, terminal and storage medium | |
CN107528683A (en) | Method, device and mobile terminal for setting carrier parameters in carrier aggregation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |