[go: up one dir, main page]

CN107071764A - A direct communication control method, device and mobile terminal - Google Patents

A direct communication control method, device and mobile terminal Download PDF

Info

Publication number
CN107071764A
CN107071764A CN201611265340.2A CN201611265340A CN107071764A CN 107071764 A CN107071764 A CN 107071764A CN 201611265340 A CN201611265340 A CN 201611265340A CN 107071764 A CN107071764 A CN 107071764A
Authority
CN
China
Prior art keywords
data interaction
communication
preset
peripheral device
direct connection
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.)
Granted
Application number
CN201611265340.2A
Other languages
Chinese (zh)
Other versions
CN107071764B (en
Inventor
白剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611265340.2A priority Critical patent/CN107071764B/en
Publication of CN107071764A publication Critical patent/CN107071764A/en
Application granted granted Critical
Publication of CN107071764B publication Critical patent/CN107071764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开了一种直连通信控制方法、装置及移动终端,方法包括:AP获取第一外围器件和第二外围器件之间的数据交互任务的至少一条数据交互记录;根据至少一条数据交互记录确定数据交互任务的数据交互参考参数;在检测到数据交互参考参数满足预设条件时,向通信控制器发送直连控制指令,直连控制指令用于指示通信控制器开启目标直连通信开关。本发明实施例有利于提高移动终端的外围器件的数据通信效率。

The embodiment of the present invention discloses a direct communication control method, device and mobile terminal, the method comprising: an AP obtains at least one data interaction record of a data interaction task between a first peripheral device and a second peripheral device; determines a data interaction reference parameter of the data interaction task according to the at least one data interaction record; when it is detected that the data interaction reference parameter meets a preset condition, sends a direct connection control instruction to a communication controller, the direct connection control instruction is used to instruct the communication controller to turn on a target direct communication switch. The embodiment of the present invention is conducive to improving the data communication efficiency of peripheral devices of a mobile terminal.

Description

一种直连通信控制方法、装置及移动终端A direct communication control method, device and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,具体涉及一种直连通信控制方法、装置及移动终端。The present invention relates to the technical field of mobile terminals, in particular to a direct connection communication control method, device and mobile terminal.

背景技术Background technique

智能手机等移动终端的各类应用发展迅速,人们会在手机上安装许多应用,如QQ、微信、支付宝等各类软件,随着安装的应用的增多,移动终端的应用处理器的需要较高的处理能力才能满足多应用的数据处理任务。Various applications of mobile terminals such as smart phones are developing rapidly. People will install many applications on their mobile phones, such as QQ, WeChat, Alipay and other software. With the increase of installed applications, the demand for application processors of mobile terminals is higher The processing power can meet the data processing tasks of multiple applications.

当前,移动终端的外围器件之间的数据交互均需要通过应用处理器进行转发,各类应用的数据处理任务使得应用处理器的数据处理压力较大。At present, the data interaction between the peripheral devices of the mobile terminal needs to be forwarded by the application processor, and the data processing tasks of various applications make the data processing pressure of the application processor larger.

发明内容Contents of the invention

本发明实施例提供了一种直连通信控制方法、装置及移动终端,可以缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。Embodiments of the present invention provide a direct connection communication control method, device, and mobile terminal, which can relieve data processing pressure on a processor of the mobile terminal and improve data communication efficiency of peripheral devices of the mobile terminal.

第一方面,本发明实施例提供一种直连通信控制方法,应用于包括应用处理器AP和多个外围器件的移动终端,所述AP连接所述多个外围器件,其特征在于,所述移动终端还包括通信控制器和直连通信电路,所述AP连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件;所述方法包括:In the first aspect, an embodiment of the present invention provides a direct connection communication control method, which is applied to a mobile terminal including an application processor AP and multiple peripheral devices, and the AP is connected to the multiple peripheral devices, wherein the The mobile terminal further includes a communication controller and a direct communication circuit, the AP is connected to the communication controller, the communication controller is connected to the direct communication circuit, and the direct communication circuit includes a target direct communication switch, so The target direct communication switch connects the first peripheral device and the second peripheral device in the plurality of peripheral devices; the method includes:

所述AP获取所述第一外围器件和所述第二外围器件之间的数据交互任务的至少一条数据交互记录;The AP acquires at least one data interaction record of a data interaction task between the first peripheral device and the second peripheral device;

所述AP根据所述至少一条数据交互记录确定所述数据交互任务的数据交互参考参数;The AP determines the data interaction reference parameters of the data interaction task according to the at least one data interaction record;

所述AP在检测到所述数据交互参考参数满足预设条件时,向所述通信控制器发送直连控制指令,所述直连控制指令用于指示所述通信控制器开启所述目标直连通信开关。When the AP detects that the data interaction reference parameter satisfies a preset condition, it sends a direct connection control instruction to the communication controller, and the direct connection control instruction is used to instruct the communication controller to enable the target direct connection. communication switch.

第二方面,本发明实施例提供了一种直连通信控制装置,该装置具有实现上述方法设计中移动终端的应用处理器AP的行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, an embodiment of the present invention provides a direct connection communication control device, which has a function of realizing the behavior of the application processor AP of the mobile terminal in the above method design. The functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.

该直连通信控制装置应用于包括多个外围器件的移动终端,所述直连通信控制装置连接所述多个外围器件,其特征在于,所述移动终端还包括通信控制器和直连通信电路,所述直连通信控制装置连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件;所述直连通信控制装置包括处理单元和通信单元,所述处理单元用于通过所述通信单元获取所述第一外围器件和所述第二外围器件之间的数据交互任务的至少一条数据交互记录;以及用于根据所述至少一条数据交互记录确定所述数据交互任务的数据交互参考参数;以及用于在检测到所述数据交互参考参数满足预设条件时,通过所述通信单元向所述通信控制器发送直连控制指令,所述直连控制指令用于指示所述通信控制器开启所述目标直连通信开关。The direct connection communication control device is applied to a mobile terminal including a plurality of peripheral devices, the direct connection communication control device is connected to the plurality of peripheral devices, and it is characterized in that the mobile terminal also includes a communication controller and a direct connection communication circuit , the direct communication control device is connected to the communication controller, the communication controller is connected to the direct communication circuit, and the direct communication circuit includes a target direct communication switch, and the target direct communication switch is connected to the The first peripheral device and the second peripheral device in the plurality of peripheral devices; the direct connection communication control device includes a processing unit and a communication unit, and the processing unit is used to acquire the first peripheral device and the second peripheral device through the communication unit At least one data interaction record of the data interaction task between the second peripheral devices; and used for determining the data interaction reference parameter of the data interaction task according to the at least one data interaction record; and used for detecting the When the data interaction reference parameter satisfies a preset condition, the communication unit sends a direct connection control instruction to the communication controller, and the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection communication switch.

第三方面,本发明实施例提供了一种移动终端,所述移动终端包括应用处理器AP、通信控制器、直连通信电路、多个外围器件和总线;所述AP连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件;In a third aspect, an embodiment of the present invention provides a mobile terminal, the mobile terminal includes an application processor AP, a communication controller, a direct communication circuit, a plurality of peripheral devices and a bus; the AP is connected to the communication controller , the communication controller is connected to the direct communication circuit, and the direct communication circuit includes a target direct communication switch, and the target direct communication switch is connected to the first peripheral device and the second peripheral device among the plurality of peripheral devices. Peripheral devices;

所述AP通过所述总线与所述通信控制器、所述多个外围器件相互通信;The AP communicates with the communication controller and the plurality of peripheral devices through the bus;

所述AP用于执行如本发明实施例第一方面任一方法中所描述的部分或全部步骤。The AP is used to perform some or all of the steps described in any method of the first aspect of the embodiments of the present invention.

第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储有用于计算机设备执行的程序代码,该程序代码具体包括指令,所述指令用于执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores program code for execution by a computer device, the program code specifically includes instructions, and the instructions are used to execute Part or all of the steps described in any method of the first aspect of the embodiments of the present invention.

可以看出,本发明实施例中,移动终端的应用处理器首先获取第一外围器件和第二外围器件之间的数据交互任务的至少一条数据交互记录,其次,根据至少一条数据交互记录确定数据交互任务的数据交互参考参数,最后,在检测到数据交互参考参数满足预设条件时,向通信控制器发送直连控制指令,直连控制指令用于指示通信控制器开启目标直连通信开关。可见,应用处理器可以根据两个外围器件之间的数据交互记录,智能分析出该两个外围器件需要进行直连通信,并指示通信处理器执行直连通信控制操作,以使得符合条件的两个外围器件实现直连通信,有利于缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。It can be seen that in the embodiment of the present invention, the application processor of the mobile terminal first obtains at least one data interaction record of the data interaction task between the first peripheral device and the second peripheral device, and secondly, determines the data interaction record according to the at least one data interaction record. The data interaction reference parameter of the interaction task, and finally, when it is detected that the data interaction reference parameter satisfies the preset condition, a direct connection control instruction is sent to the communication controller, and the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection communication switch. It can be seen that the application processor can intelligently analyze the data interaction records between the two peripheral devices, and instruct the communication processor to perform direct connection communication control operations, so that the two peripheral devices that meet the conditions The realization of direct connection communication between two peripheral devices is conducive to alleviating the data processing pressure of the processor of the mobile terminal and improving the data communication efficiency of the peripheral devices of the mobile terminal.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1A是本发明实施例提供的一种移动终端的通信架构示意图;FIG. 1A is a schematic diagram of a communication architecture of a mobile terminal provided by an embodiment of the present invention;

图1B是本发明实施例提供的一种直连通信控制方法的流程示意图;FIG. 1B is a schematic flowchart of a direct communication control method provided by an embodiment of the present invention;

图2是本发明实施例公开的另一种直连通信控制方法的流程示意图;FIG. 2 is a schematic flowchart of another direct communication control method disclosed in an embodiment of the present invention;

图3是本发明实施例公开的另一种直连通信控制方法的流程示意图;FIG. 3 is a schematic flowchart of another direct communication control method disclosed in an embodiment of the present invention;

图4是本发明实施例公开的一种直连通信控制装置的结构示意图;Fig. 4 is a schematic structural diagram of a direct-connect communication control device disclosed in an embodiment of the present invention;

图5是本发明实施例公开的另一种移动终端的结构示意图。Fig. 5 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。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 invention. The occurrences of this phrase 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. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

目前,手机等移动终端中的各个外围器件,如射频系统,WiFi模块,电源模块,外围器件之间一般是不能直连互通,它们的通信都是通过处理器中传,这使得处理器的数据处理压力较大。At present, various peripheral devices in mobile terminals such as mobile phones, such as radio frequency systems, WiFi modules, power modules, and peripheral devices generally cannot be directly connected and communicated with each other. Their communication is transmitted through the processor, which makes the data of the processor Dealing with high pressure.

针对上述现有技术,本发明实施例提供了一种直连通信控制方法、装置及移动终端,该方法包括:移动终端的应用处理器首先获取第一外围器件和第二外围器件之间的数据交互任务的至少一条数据交互记录,其次,根据至少一条数据交互记录确定数据交互任务的数据交互参考参数,最后,在检测到数据交互参考参数满足预设条件时,向通信控制器发送直连控制指令,直连控制指令用于指示通信控制器开启目标直连通信开关。可见,应用处理器可以根据两个外围器件之间的数据交互记录,智能分析出该两个外围器件需要进行直连通信,并指示通信处理器执行直连通信控制操作,以使得符合条件的两个外围器件实现直连通信,有利于缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。In view of the above prior art, the embodiment of the present invention provides a direct connection communication control method, device and mobile terminal, the method includes: the application processor of the mobile terminal first obtains the data between the first peripheral device and the second peripheral device At least one data interaction record of the interaction task, secondly, determine the data interaction reference parameter of the data interaction task according to at least one data interaction record, and finally, when it is detected that the data interaction reference parameter satisfies the preset condition, send a direct connection control to the communication controller Instruction, the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection communication switch. It can be seen that the application processor can intelligently analyze the data interaction records between the two peripheral devices, and instruct the communication processor to perform direct connection communication control operations, so that the two peripheral devices that meet the conditions The realization of direct connection communication between two peripheral devices is conducive to alleviating the data processing pressure of the processor of the mobile terminal and improving the data communication efficiency of the peripheral devices of the mobile terminal.

下面对本发明实施例进行详细介绍。The following describes the embodiments of the present invention in detail.

如图1A所示,本发明实施例所涉及到的移动终端包括应用处理器AP、通信控制器、多个外围器件(外围器件如摄像头、WiFi模块、射频系统、存储模块等)、直连通信电路和总线,AP连接通信控制器,通信控制器连接直连通信电路,直连通信电路,包括目标直连通信开关,目标直连通信开关连接多个外围器件中的第一外围器件和第二外围器件,AP通过总线连接通信控制器、存储器、收发器、以及多个外围器件;其中,通信处理器例如可以是协处理器、具有逻辑处理能力的专用或者通用逻辑电路等,直连通信电路还可以设置有其他直连通信开关,这些直连通信开关中的每一个直连通信开关都连接两个外围器件,通过该直连通信开关,外围器件可以实现直连通信,具体的,直连通信开关例如可以是金属氧化物半导体场效应晶体MOS管、三极管等,以三极管为目标直连通信开关为例,通信控制器连接三极管的基极(基极即为使能端),三极管的集电极(相当于第一接口)和发射极(相当于第二接口)分别连接第一外围器件和第二外围器件,处理器例如可以是中央处理器(CentralProcessing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(直连通信控制装置plication-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。总线可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(ExtendedIndustry Standard Architecture,简称EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。As shown in Figure 1A, the mobile terminal involved in the embodiment of the present invention includes an application processor AP, a communication controller, multiple peripheral devices (peripheral devices such as cameras, WiFi modules, radio frequency systems, storage modules, etc.), direct communication The circuit and the bus, the AP is connected to the communication controller, the communication controller is connected to the direct communication circuit, the direct communication circuit includes a target direct communication switch, and the target direct communication switch is connected to the first peripheral device and the second peripheral device among the plurality of peripheral devices Peripheral devices, the AP connects the communication controller, memory, transceiver, and multiple peripheral devices through the bus; the communication processor can be, for example, a coprocessor, a dedicated or general-purpose logic circuit with logic processing capabilities, etc., directly connected to the communication circuit Other direct-connection communication switches can also be provided, and each of these direct-connection communication switches is connected to two peripheral devices. Through the direct-connection communication switch, the peripheral devices can realize direct-connection communication. The communication switch can be, for example, a metal oxide semiconductor field-effect transistor MOS transistor, a triode, etc., taking the triode as the target direct connection communication switch as an example, the communication controller is connected to the base of the triode (the base is the enable terminal), and the collector of the triode The electrode (equivalent to the first interface) and the emitter (equivalent to the second interface) are respectively connected to the first peripheral device and the second peripheral device, and the processor can be, for example, a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital Signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (direct-connected communication control device application-Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistors Logical devices, hardware components, or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and so on. The bus may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on.

此外,所述移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为移动终端。In addition, the mobile terminal may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of user equipment (User Equipment, UE) , mobile station (Mobile Station, MS), terminal equipment (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as mobile terminals.

请参阅图1B,图1B是本发明实施例提供了一种直连通信控制方法的流程示意图,应用于包括应用处理器AP和多个外围器件的移动终端,所述AP连接所述多个外围器件,其特征在于,所述移动终端还包括通信控制器和直连通信电路,所述AP连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件,如图所示,本直连通信控制方法包括:Please refer to FIG. 1B. FIG. 1B is a schematic flowchart of a direct-connect communication control method provided by an embodiment of the present invention, which is applied to a mobile terminal including an application processor AP and multiple peripheral devices, and the AP is connected to the multiple peripheral devices. device, wherein the mobile terminal further includes a communication controller and a direct communication circuit, the AP is connected to the communication controller, the communication controller is connected to the direct communication circuit, and the direct communication circuit A target direct connection communication switch is included, and the target direct connection communication switch connects the first peripheral device and the second peripheral device among the plurality of peripheral devices. As shown in the figure, the direct connection communication control method includes:

S101,所述AP获取所述第一外围器件和所述第二外围器件之间的数据交互任务的至少一条数据交互记录。S101. The AP acquires at least one data interaction record of a data interaction task between the first peripheral device and the second peripheral device.

其中,外围器件例如可以是移动终端的存储器、摄像头、喇叭、射频模块、无线保真WiFi模块、蓝牙模块、电源模块等。Wherein, the peripheral device may be, for example, a memory, a camera, a speaker, a radio frequency module, a wireless fidelity WiFi module, a bluetooth module, a power supply module, etc. of the mobile terminal.

其中,所述数据交互记录例如可以包括所述数据交互任务的数据交互时间、数据交互任务的资源占比(即数据交互任务所需要的处理资源相对于AP的处理资源的占用率)、交互数据量等。Wherein, the data interaction record may include, for example, the data interaction time of the data interaction task, the resource ratio of the data interaction task (that is, the occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the AP), interaction data amount etc.

S102,所述AP根据所述至少一条数据交互记录确定所述数据交互任务的数据交互参考参数。S102. The AP determines a data interaction reference parameter of the data interaction task according to the at least one data interaction record.

其中,所述数据交互参考参数例如可以是:数据交互任务所需要的处理资源相对于所述AP的处理资源的参考占用率、数据交互频率、数据交互时长、数据交互次数等。Wherein, the data interaction reference parameter may be, for example: a reference occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the AP, data interaction frequency, data interaction duration, data interaction times, and the like.

可以理解的是,所述AP根据所述至少一条数据交互记录确定所述数据交互任务的数据交互参考参数的具体实现方式可以是多种多样的。本发明实施例不做唯一限定。It can be understood that there may be various specific implementation manners for the AP to determine the data interaction reference parameter of the data interaction task according to the at least one data interaction record. The embodiment of the present invention does not make a unique limitation.

举例来说,假设AP获取到一周时间内摄像头和射频模块之间的50条数据交互记录,且数据交互记录为数据交互任务的资源占比;则AP可以根据该50条数据交互任务的资源占比,确定数据交互任务所需要的处理资源相对于AP的处理资源的占用率为50个资源占比的平均值。For example, suppose the AP obtains 50 data interaction records between the camera and the RF module within a week, and the data interaction records are the resource ratio of the data interaction task; then the AP can Ratio, determine the average occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the AP and the ratio of 50 resources.

又举例来说,假设AP获取到一个月时间内麦克风和射频模块之间的1000条数据交互记录,且数据交互记录为数据交互任务的时间;则AP可以根据该1000条数据交互任务的时间,确定数据交互时长为1000个数据交互任务的时间的平均值。For another example, suppose the AP obtains 1,000 data interaction records between the microphone and the radio frequency module within a month, and the data interaction records are the time of the data interaction task; then the AP can, according to the time of the 1,000 data interaction tasks, Determine the data interaction time as the average time of 1000 data interaction tasks.

S103,所述AP在检测到所述数据交互参考参数满足预设条件时,向所述通信控制器发送直连控制指令,所述直连控制指令用于指示所述通信控制器开启所述目标直连通信开关。S103. When the AP detects that the data interaction reference parameter satisfies a preset condition, send a direct connection control instruction to the communication controller, where the direct connection control instruction is used to instruct the communication controller to open the target Direct communication switch.

可以理解的是,所述预设条件例如可以是多种多样的,本发明实施例不做唯一限定。It can be understood that, for example, the preset conditions may be varied, and are not limited exclusively in this embodiment of the present invention.

举例来说,所述数据交互参考参数为数据交互任务所需要的处理资源相对于所述AP的处理资源的参考占用率时,所述预设条件为所述参考占用率大于或等于预设占用率阈值,或者,所述预设条件为所述参考占用率在预设的占用率区间内。For example, when the data interaction reference parameter is a reference occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the AP, the preset condition is that the reference occupancy rate is greater than or equal to the preset occupancy rate rate threshold, or, the preset condition is that the reference occupancy rate is within a preset occupancy rate interval.

又举例来说,所述数据交互参考参数为数据交互频率时,所述预设条件为所述数据交互频率大于或等于预设数据交互频率阈值,或者,所述预设条件为所述数据交互频率在预设的预设数据交互频率区间内;For another example, when the data interaction reference parameter is data interaction frequency, the preset condition is that the data interaction frequency is greater than or equal to the preset data interaction frequency threshold, or the preset condition is that the data interaction The frequency is within the preset preset data interaction frequency range;

所述数据交互参考参数为数据交互时长时,所述预设条件为所述数据交互时长大于或等于预设数据交互时长阈值,或者,所述预设条件为所述数据交互时长在预设的预设数据交互时长区间内;When the data interaction reference parameter is data interaction duration, the preset condition is that the data interaction duration is greater than or equal to a preset data interaction duration threshold, or the preset condition is that the data interaction duration is within a preset Within the preset data interaction time interval;

所述数据交互参考参数为数据交互次数时,所述预设条件为所述数据交互次数大于或等于预设数据交互次数阈值,或者,所述预设条件为所述数据交互次数在预设的预设数据交互次数区间内。When the data interaction reference parameter is the number of data interactions, the preset condition is that the number of data interactions is greater than or equal to the preset threshold of data interactions, or the preset condition is that the number of data interactions is within a preset Within the interval of preset data interaction times.

可以看出,本发明实施例中,移动终端的应用处理器首先获取第一外围器件和第二外围器件之间的数据交互任务的至少一条数据交互记录,其次,根据至少一条数据交互记录确定数据交互任务的数据交互参考参数,最后,在检测到数据交互参考参数满足预设条件时,向通信控制器发送直连控制指令,直连控制指令用于指示通信控制器开启目标直连通信开关。可见,应用处理器可以根据两个外围器件之间的数据交互记录,智能分析出该两个外围器件需要进行直连通信,并指示通信处理器执行直连通信控制操作,以使得符合条件的两个外围器件实现直连通信,有利于缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。It can be seen that in the embodiment of the present invention, the application processor of the mobile terminal first obtains at least one data interaction record of the data interaction task between the first peripheral device and the second peripheral device, and secondly, determines the data interaction record according to the at least one data interaction record. The data interaction reference parameter of the interaction task, and finally, when it is detected that the data interaction reference parameter satisfies the preset condition, a direct connection control instruction is sent to the communication controller, and the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection communication switch. It can be seen that the application processor can intelligently analyze the data interaction records between the two peripheral devices, and instruct the communication processor to perform direct connection communication control operations, so that the two peripheral devices that meet the conditions The realization of direct connection communication between two peripheral devices is conducive to alleviating the data processing pressure of the processor of the mobile terminal and improving the data communication efficiency of the peripheral devices of the mobile terminal.

在一个可能的示例中,所述目标直连通信开关包括第一接口、第二接口和使能端,所述第一接口连接所述第一外围器件的第一数据通信接口,所述第二接口连接所述第二外围器件的第二数据通信接口,所述通信控制器用于向所述使能端发送使能信号以开启所述目标直连通信开关。In a possible example, the target direct connection communication switch includes a first interface, a second interface and an enabling terminal, the first interface is connected to the first data communication interface of the first peripheral device, and the second The interface is connected to the second data communication interface of the second peripheral device, and the communication controller is configured to send an enabling signal to the enabling terminal to enable the target direct communication switch.

其中,所述目标直连通信开关例如可以是三极管,第一接口为所述三极管的集电极,第二接口为所述三极管的发射极,使能端为所述三极管的基极。Wherein, the target direct connection communication switch may be, for example, a triode, the first interface is the collector of the triode, the second interface is the emitter of the triode, and the enabling terminal is the base of the triode.

在一个可能的示例中,所述AP向所述通信控制器发送直连控制指令之后,所述方法还包括:In a possible example, after the AP sends the direct connection control instruction to the communication controller, the method further includes:

所述AP向所述第一外围设备和所述第二外围设备发送直连通信配置信息,所述直连通信配置信息用于指示所述第一外围设备和所述第二外围设备通过所述目标直连通信开关进行数据交互。The AP sends direct connection communication configuration information to the first peripheral device and the second peripheral device, where the direct connection communication configuration information is used to instruct the first peripheral device and the second peripheral device to pass through the The target is directly connected to the communication switch for data interaction.

其中,所述直连通信配置信息可以携带所述目标直连通信开关的标识。Wherein, the direct connection communication configuration information may carry the identifier of the target direct connection communication switch.

可见,本可能的示例中,AP在指示通信控制器打开目标直连通信开关后,进一步向第一外围设备和第二外围设备发送直连通信配置信息,如此可以使得第一外围器件和第二外围器件直接通过该直连通信开关实现直连通信,无需通过AP中转数据,有利于缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。It can be seen that in this possible example, after the AP instructs the communication controller to turn on the target direct communication switch, it further sends direct communication configuration information to the first peripheral device and the second peripheral device, so that the first peripheral device and the second peripheral device can The peripheral device directly realizes the direct connection communication through the direct connection communication switch without transferring data through the AP, which is beneficial to relieve the data processing pressure of the processor of the mobile terminal and improve the data communication efficiency of the peripheral device of the mobile terminal.

与上述图1B所示的实施例一致的,请参阅图2,图2是本发明实施例提供的另一种直连通信控制方法的流程示意图,应用于包括应用处理器AP和多个外围器件的移动终端,所述AP连接所述多个外围器件,其特征在于,所述移动终端还包括通信控制器和直连通信电路,所述AP连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件。如图所示,本直连通信控制方法包括:Consistent with the above-mentioned embodiment shown in FIG. 1B, please refer to FIG. 2. FIG. 2 is a schematic flowchart of another direct communication control method provided by the embodiment of the present invention, which is applied to applications including an application processor AP and multiple peripheral devices The mobile terminal of the mobile terminal, the AP is connected to the plurality of peripheral devices, and it is characterized in that the mobile terminal also includes a communication controller and a direct communication circuit, the AP is connected to the communication controller, and the communication controller is connected to The direct-connection communication circuit includes a target direct-connection communication switch that connects a first peripheral device and a second peripheral device among the plurality of peripheral devices. As shown in the figure, the direct communication control method includes:

S201,所述AP获取所述第一外围器件和所述第二外围器件之间的数据交互任务的至少一条数据交互记录;S201. The AP acquires at least one data interaction record of a data interaction task between the first peripheral device and the second peripheral device;

S202,所述AP根据所述至少一条数据交互记录确定所述数据交互任务所需要的处理资源相对于所述AP的处理资源的参考占用率;S202. The AP determines, according to the at least one data interaction record, a reference occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the AP;

S203,所述AP在检测到所述数据交互任务所需要的处理资源相对于所述AP的处理资源的参考占用率大于或等于预设占用率阈值,或者,所述预设条件为所述参考占用率在预设的占用率区间内时,向所述通信控制器发送直连控制指令,所述直连控制指令用于指示所述通信控制器开启所述目标直连通信开关。S203, when the AP detects that the reference occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the AP is greater than or equal to the preset occupancy rate threshold, or the preset condition is the reference When the occupancy rate is within a preset occupancy rate interval, a direct connection control instruction is sent to the communication controller, where the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection communication switch.

S204,所述AP向所述第一外围设备和所述第二外围设备发送直连通信配置信息,所述直连通信配置信息用于指示所述第一外围设备和所述第二外围设备通过所述目标直连通信开关进行数据交互。S204. The AP sends direct connection communication configuration information to the first peripheral device and the second peripheral device, where the direct connection communication configuration information is used to instruct the first peripheral device and the second peripheral device to pass The target is directly connected to the communication switch for data interaction.

可以看出,本发明实施例中,移动终端的应用处理器首先获取第一外围器件和第二外围器件之间的数据交互任务的至少一条数据交互记录,其次,根据至少一条数据交互记录确定数据交互任务的数据交互参考参数,最后,在检测到数据交互参考参数满足预设条件时,向通信控制器发送直连控制指令,直连控制指令用于指示通信控制器开启目标直连通信开关。可见,应用处理器可以根据两个外围器件之间的数据交互记录,智能分析出该两个外围器件需要进行直连通信,并指示通信处理器执行直连通信控制操作,以使得符合条件的两个外围器件实现直连通信,有利于缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。It can be seen that in the embodiment of the present invention, the application processor of the mobile terminal first obtains at least one data interaction record of the data interaction task between the first peripheral device and the second peripheral device, and secondly, determines the data interaction record according to the at least one data interaction record. The data interaction reference parameter of the interaction task, and finally, when it is detected that the data interaction reference parameter satisfies the preset condition, a direct connection control instruction is sent to the communication controller, and the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection communication switch. It can be seen that the application processor can intelligently analyze the data interaction records between the two peripheral devices, and instruct the communication processor to perform direct connection communication control operations, so that the two peripheral devices that meet the conditions The realization of direct connection communication between two peripheral devices is conducive to alleviating the data processing pressure of the processor of the mobile terminal and improving the data communication efficiency of the peripheral devices of the mobile terminal.

此外,AP在指示通信控制器打开目标直连通信开关后,进一步向第一外围设备和第二外围设备发送直连通信配置信息,如此可以使得第一外围器件和第二外围器件直接通过该直连通信开关实现直连通信,无需通过AP中转数据,有利于缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。In addition, after instructing the communication controller to turn on the target direct communication switch, the AP further sends direct communication configuration information to the first peripheral device and the second peripheral device, so that the first peripheral device and the second peripheral device can directly pass through the direct The connection communication switch realizes direct connection communication without transferring data through the AP, which is beneficial to relieve the data processing pressure of the processor of the mobile terminal and improve the data communication efficiency of the peripheral devices of the mobile terminal.

与上述图1B所示的实施例一致的,请参阅图3,图3是本发明实施例提供的另一种直连通信控制方法的流程示意图,应用于包括应用处理器AP和多个外围器件的移动终端,所述AP连接所述多个外围器件,其特征在于,所述移动终端还包括通信控制器和直连通信电路,所述AP连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件。如图所示,本直连通信控制方法包括:Consistent with the above-mentioned embodiment shown in FIG. 1B , please refer to FIG. 3 . FIG. 3 is a schematic flowchart of another direct communication control method provided by the embodiment of the present invention, which is applied to applications including an application processor AP and multiple peripheral devices The mobile terminal of the mobile terminal, the AP is connected to the plurality of peripheral devices, and it is characterized in that the mobile terminal also includes a communication controller and a direct communication circuit, the AP is connected to the communication controller, and the communication controller is connected to The direct-connection communication circuit includes a target direct-connection communication switch that connects a first peripheral device and a second peripheral device among the plurality of peripheral devices. As shown in the figure, the direct communication control method includes:

S301,所述AP获取所述第一外围器件和所述第二外围器件之间的数据交互任务的至少一条数据交互记录;S301. The AP acquires at least one data interaction record of a data interaction task between the first peripheral device and the second peripheral device;

S302,所述AP根据所述至少一条数据交互记录确定所述数据交互任务的数据交互频率。S302. The AP determines the data interaction frequency of the data interaction task according to the at least one data interaction record.

S303,所述AP在检测到所述数据交互频率大于或等于预设数据交互频率阈值,或者,所述预设条件为所述数据交互频率在预设的预设数据交互频率区间内时,向所述通信控制器发送直连控制指令,所述直连控制指令用于指示所述通信控制器开启所述目标直连通信开关。S303. When the AP detects that the data interaction frequency is greater than or equal to the preset data interaction frequency threshold, or the preset condition is that the data interaction frequency is within the preset preset data interaction frequency range, send The communication controller sends a direct connection control instruction, where the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection communication switch.

S304,所述AP向所述第一外围设备和所述第二外围设备发送直连通信配置信息,所述直连通信配置信息用于指示所述第一外围设备和所述第二外围设备通过所述目标直连通信开关进行数据交互。S304. The AP sends direct connection communication configuration information to the first peripheral device and the second peripheral device, where the direct connection communication configuration information is used to instruct the first peripheral device and the second peripheral device to pass The target is directly connected to the communication switch for data interaction.

可以看出,本发明实施例中,移动终端的应用处理器首先获取第一外围器件和第二外围器件之间的数据交互任务的至少一条数据交互记录,其次,根据至少一条数据交互记录确定数据交互任务的数据交互参考参数,最后,在检测到数据交互参考参数满足预设条件时,向通信控制器发送直连控制指令,直连控制指令用于指示通信控制器开启目标直连通信开关。可见,应用处理器可以根据两个外围器件之间的数据交互记录,智能分析出该两个外围器件需要进行直连通信,并指示通信处理器执行直连通信控制操作,以使得符合条件的两个外围器件实现直连通信,有利于缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。It can be seen that in the embodiment of the present invention, the application processor of the mobile terminal first obtains at least one data interaction record of the data interaction task between the first peripheral device and the second peripheral device, and secondly, determines the data interaction record according to the at least one data interaction record. The data interaction reference parameter of the interaction task, and finally, when it is detected that the data interaction reference parameter satisfies the preset condition, a direct connection control instruction is sent to the communication controller, and the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection communication switch. It can be seen that the application processor can intelligently analyze the data interaction records between the two peripheral devices, and instruct the communication processor to perform direct connection communication control operations, so that the two peripheral devices that meet the conditions The realization of direct connection communication between two peripheral devices is conducive to alleviating the data processing pressure of the processor of the mobile terminal and improving the data communication efficiency of the peripheral devices of the mobile terminal.

此外,AP在指示通信控制器打开目标直连通信开关后,进一步向第一外围设备和第二外围设备发送直连通信配置信息,如此可以使得第一外围器件和第二外围器件直接通过该直连通信开关实现直连通信,无需通过AP中转数据,有利于缓解移动终端的处理器的数据处理压力,提高移动终端的外围器件的数据通信效率。In addition, after instructing the communication controller to turn on the target direct communication switch, the AP further sends direct communication configuration information to the first peripheral device and the second peripheral device, so that the first peripheral device and the second peripheral device can directly pass through the direct The connection communication switch realizes direct connection communication without transferring data through the AP, which is beneficial to relieve the data processing pressure of the processor of the mobile terminal and improve the data communication efficiency of the peripheral devices of the mobile terminal.

上述主要从方法侧执行过程的角度对本发明实施例的方案进行了介绍。可以理解的是,移动终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solutions of the embodiments of the present invention from the perspective of executing the process on the method side. It can be understood that, in order to realize the above functions, the mobile terminal includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present invention can be realized in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

本发明实施例可以根据上述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present invention, the functional units of the mobile terminal may be divided according to the above method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of the units in the embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

在采用集成的单元的情况下,图4示出了本实施例提供的一种直连通信控制装置的结构示意图。直连通信控制装置400包括:处理单元402和通信单元404。处理单元402用于对直连通信控制装置的动作进行控制管理,例如,处理单元402用于支持直连通信控制装置执行图1B中的步骤S101至S103、图2中的步骤S201至204以及图3中的步骤S301至S304和/或用于本文所描述的技术的其它过程。直连通信控制装置还可以包括存储单元401,用于存储直连通信控制装置的程序代码和数据。In the case of using an integrated unit, FIG. 4 shows a schematic structural diagram of a direct-connect communication control device provided by this embodiment. The direct connection communication control device 400 includes: a processing unit 402 and a communication unit 404 . The processing unit 402 is used to control and manage the actions of the direct connection communication control device. For example, the processing unit 402 is used to support the direct connection communication control device to execute steps S101 to S103 in FIG. 1B, steps S201 to 204 in FIG. Steps S301 to S304 in 3 and/or other processes for the techniques described herein. The direct connection communication control device may further include a storage unit 401 for storing program codes and data of the direct connection communication control device.

其中,所述直连通信控制装置400应用于包括多个外围器件的移动终端,所述直连通信控制装置连接所述多个外围器件,其特征在于,所述移动终端还包括通信控制器和直连通信电路,所述直连通信控制装置连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件;所述直连通信控制装置包括处理单元和通信单元,所述处理单元用于通过所述通信单元获取所述第一外围器件和所述第二外围器件之间的数据交互任务的至少一条数据交互记录;以及用于根据所述至少一条数据交互记录确定所述数据交互任务的数据交互参考参数;以及用于在检测到所述数据交互参考参数满足预设条件时,通过所述通信单元向所述通信控制器发送直连控制指令,所述直连控制指令用于指示所述通信控制器开启所述目标直连通信开关。Wherein, the direct connection communication control device 400 is applied to a mobile terminal including a plurality of peripheral devices, and the direct connection communication control device is connected to the plurality of peripheral devices, and it is characterized in that the mobile terminal also includes a communication controller and A direct connection communication circuit, the direct connection communication control device is connected to the communication controller, the communication controller is connected to the direct connection communication circuit, the direct connection communication circuit includes a target direct connection communication switch, and the target direct connection The communication switch connects the first peripheral device and the second peripheral device among the plurality of peripheral devices; the direct connection communication control device includes a processing unit and a communication unit, and the processing unit is used to obtain the first peripheral device through the communication unit At least one data interaction record of a data interaction task between a peripheral device and the second peripheral device; and used for determining the data interaction reference parameter of the data interaction task according to the at least one data interaction record; When it is detected that the data interaction reference parameter satisfies a preset condition, a direct connection control instruction is sent to the communication controller through the communication unit, and the direct connection control instruction is used to instruct the communication controller to turn on the target direct connection. Even the communication switch.

在一个可能的实现方式中,所述数据交互参考参数为数据交互任务所需要的处理资源相对于所述直连通信控制装置的处理资源的参考占用率时,所述预设条件为所述参考占用率大于或等于预设占用率阈值,或者,所述预设条件为所述参考占用率在预设的占用率区间内。In a possible implementation manner, when the data interaction reference parameter is a reference occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the direct-connected communication control device, the preset condition is the reference The occupancy rate is greater than or equal to a preset occupancy rate threshold, or the preset condition is that the reference occupancy rate is within a preset occupancy rate interval.

在一个可能的实现方式中,所述数据交互参考参数为数据交互频率时,所述预设条件为所述数据交互频率大于或等于预设数据交互频率阈值,或者,所述预设条件为所述数据交互频率在预设的预设数据交互频率区间内;In a possible implementation manner, when the data interaction reference parameter is a data interaction frequency, the preset condition is that the data interaction frequency is greater than or equal to a preset data interaction frequency threshold, or the preset condition is that The data interaction frequency is within the preset preset data interaction frequency range;

所述数据交互参考参数为数据交互时长时,所述预设条件为所述数据交互时长大于或等于预设数据交互时长阈值,或者,所述预设条件为所述数据交互时长在预设的预设数据交互时长区间内;When the data interaction reference parameter is data interaction duration, the preset condition is that the data interaction duration is greater than or equal to a preset data interaction duration threshold, or the preset condition is that the data interaction duration is within a preset Within the preset data interaction time interval;

所述数据交互参考参数为数据交互次数时,所述预设条件为所述数据交互次数大于或等于预设数据交互次数阈值,或者,所述预设条件为所述数据交互次数在预设的预设数据交互次数区间内。When the data interaction reference parameter is the number of data interactions, the preset condition is that the number of data interactions is greater than or equal to the preset threshold of data interactions, or the preset condition is that the number of data interactions is within a preset Within the interval of preset data interaction times.

在一个可能的实现方式中,所述目标直连通信开关包括第一接口、第二接口和使能端,所述第一接口连接所述第一外围器件的第一数据通信接口,所述第二接口连接所述第二外围器件的第二数据通信接口,所述通信控制器用于向所述使能端发送使能信号以开启所述目标直连通信开关。In a possible implementation manner, the target direct connection communication switch includes a first interface, a second interface and an enabling terminal, the first interface is connected to the first data communication interface of the first peripheral device, and the first The second interface is connected to the second data communication interface of the second peripheral device, and the communication controller is configured to send an enabling signal to the enabling terminal to enable the target direct communication switch.

在一个可能的实现方式中,所述处理单元通过所述通信单元向所述通信控制器发送直连控制指令之后,所述处理单元还用于:通过所述通信单元向所述第一外围设备和所述第二外围设备发送直连通信配置信息,所述直连通信配置信息用于指示所述第一外围设备和所述第二外围设备通过所述目标直连通信开关进行数据交互。In a possible implementation manner, after the processing unit sends the direct connection control instruction to the communication controller through the communication unit, the processing unit is further configured to: send the first peripheral device to the first peripheral device through the communication unit Sending direct-connection communication configuration information with the second peripheral device, where the direct-connection communication configuration information is used to instruct the first peripheral device and the second peripheral device to perform data interaction through the target direct-connection communication switch.

本发明实施例所涉及的直连通信控制装置可以为图1A所示的移动终端中的应用处理器AP。The direct connection communication control apparatus involved in this embodiment of the present invention may be an application processor AP in a mobile terminal as shown in FIG. 1A .

本发明实施例还提供了另一种移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present invention also provides another mobile terminal, as shown in Fig. 5, for the convenience of description, only the parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed, please refer to the method of the embodiment of the present invention part. The mobile terminal can be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the mobile terminal as a mobile phone as an example:

本发明实施例还提供了另一种移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present invention also provides another mobile terminal, as shown in Fig. 5, for the convenience of description, only the parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed, please refer to the method of the embodiment of the present invention part. The mobile terminal can be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the mobile terminal as a mobile phone as an example:

图5示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图5,手机包括:通信控制器901、直连通信电路902、存储器920、处理器980(即应用处理器)以及外围器件,外围器件例如包括射频(Radio Frequency,RF)电路910、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、电源990等部件,处理器980连接通信控制器901,通信控制器901连接直连通信电路902,直连通信电路902连接外围器件,该直连通信电路902具体可以包括M个直连通信开关,每个直连通信开关对应连接两个外围器件,如直连通信开关1连接RF电路910和WiFi模块970,直连通信开关2连接电源990和音频电路960等。FIG. 5 shows a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present invention. Referring to Fig. 5, the mobile phone includes: a communication controller 901, a direct communication circuit 902, a memory 920, a processor 980 (i.e. an application processor) and peripheral devices. The peripheral devices include, for example, a radio frequency (Radio Frequency, RF) circuit 910, an input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (Wireless Fidelity, WiFi) module 970, power supply 990 and other components, the processor 980 is connected to the communication controller 901, and the communication controller 901 is connected to the direct connection communication circuit 902, The direct connection communication circuit 902 is connected to peripheral devices. The direct connection communication circuit 902 may specifically include M direct connection communication switches, and each direct connection communication switch is correspondingly connected to two peripheral devices. For example, the direct connection communication switch 1 is connected to the RF circuit 910 and the WiFi The module 970 is directly connected to the communication switch 2 to connect the power supply 990 and the audio circuit 960 and so on.

本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图5对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 5:

通信控制器901用于对直连通信电路902的直连通信开关进行控制。The communication controller 901 is used for controlling the direct connection communication switch of the direct connection communication circuit 902 .

处理器980具体用于执行图1B中的步骤S101至S103,图2中的步骤S201至S204,图3中的步骤S301至S304。The processor 980 is specifically configured to execute steps S101 to S103 in FIG. 1B , steps S201 to S204 in FIG. 2 , and steps S301 to S304 in FIG. 3 .

RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Generally, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 910 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobilecommunication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.

存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据(比如应用的使用参数等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920 . The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; the data storage area may store data created according to the use of the mobile phone (such as application using parameters, etc.) etc. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 930 may include a fingerprint identification module 931 and other input devices 932 . The fingerprint identification module 931 can collect the fingerprint data of the user on it. In addition to the fingerprint recognition module 931 , the input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include but not limited to one or more of a touch screen, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, and the like.

显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图5中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和播放功能。The display unit 940 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941. Optionally, the display screen 941 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Although in FIG. 5, the fingerprint identification module 931 and the display screen 941 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the fingerprint identification module 931 and the display screen 941 can be Integrated to realize the input and playback functions of the mobile phone.

手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor can turn off the display screen 941 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.

音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the loudspeaker 961, and the loudspeaker 961 converts it into a sound signal for playback; After being received, it is converted into audio data, and after being processed by the audio data playback processor 980, the audio data is sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although Fig. 5 shows the WiFi module 970, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted according to needs without changing the essence of the invention.

可以理解的是,上述调制解调处理器也可以不集成到处理器980中。It can be understood that the foregoing modem processor may not be integrated into the processor 980 .

手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 980 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.

前述图1B~图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 1B to FIG. 3 , the method flow of each step can be realized based on the structure of the mobile phone.

前述图4所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiment shown in FIG. 4 , the functions of each unit can be realized based on the structure of the mobile phone.

本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种直连通信控制方法的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all steps of any direct communication control method described in the above method embodiments when executed.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been described in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention; at the same time, for Those skilled in the art will have changes in the specific implementation and scope of application according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (12)

1.一种直连通信控制方法,应用于包括应用处理器AP和多个外围器件的移动终端,所述AP连接所述多个外围器件,其特征在于,所述移动终端还包括通信控制器和直连通信电路,所述AP连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件;所述方法包括:1. A direct connection communication control method, applied to a mobile terminal comprising an application processor AP and a plurality of peripheral devices, the AP is connected to the plurality of peripheral devices, wherein the mobile terminal also includes a communication controller and a direct communication circuit, the AP is connected to the communication controller, the communication controller is connected to the direct communication circuit, the direct communication circuit includes a target direct communication switch, and the target direct communication switch is connected to A first peripheral device and a second peripheral device among the plurality of peripheral devices; the method comprising: 所述AP获取所述第一外围器件和所述第二外围器件之间的数据交互任务的至少一条数据交互记录;The AP acquires at least one data interaction record of a data interaction task between the first peripheral device and the second peripheral device; 所述AP根据所述至少一条数据交互记录确定所述数据交互任务的数据交互参考参数;The AP determines the data interaction reference parameters of the data interaction task according to the at least one data interaction record; 所述AP在检测到所述数据交互参考参数满足预设条件时,向所述通信控制器发送直连控制指令,所述直连控制指令用于指示所述通信控制器开启所述目标直连通信开关。When the AP detects that the data interaction reference parameter satisfies a preset condition, it sends a direct connection control instruction to the communication controller, and the direct connection control instruction is used to instruct the communication controller to enable the target direct connection. communication switch. 2.根据权利要求1所述的方法,其特征在于,所述数据交互参考参数为数据交互任务所需要的处理资源相对于所述AP的处理资源的参考占用率时,所述预设条件为所述参考占用率大于或等于预设占用率阈值,或者,所述预设条件为所述参考占用率在预设的占用率区间内。2. The method according to claim 1, wherein when the data interaction reference parameter is a reference occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the AP, the preset condition is The reference occupancy rate is greater than or equal to a preset occupancy rate threshold, or the preset condition is that the reference occupancy rate is within a preset occupancy rate interval. 3.根据权利要求1所述的方法,其特征在于,所述数据交互参考参数为数据交互频率时,所述预设条件为所述数据交互频率大于或等于预设数据交互频率阈值,或者,所述预设条件为所述数据交互频率在预设的预设数据交互频率区间内;3. The method according to claim 1, wherein when the data interaction reference parameter is a data interaction frequency, the preset condition is that the data interaction frequency is greater than or equal to a preset data interaction frequency threshold, or, The preset condition is that the data interaction frequency is within a preset preset data interaction frequency range; 所述数据交互参考参数为数据交互时长时,所述预设条件为所述数据交互时长大于或等于预设数据交互时长阈值,或者,所述预设条件为所述数据交互时长在预设的预设数据交互时长区间内;When the data interaction reference parameter is data interaction duration, the preset condition is that the data interaction duration is greater than or equal to a preset data interaction duration threshold, or the preset condition is that the data interaction duration is within a preset Within the preset data interaction time interval; 所述数据交互参考参数为数据交互次数时,所述预设条件为所述数据交互次数大于或等于预设数据交互次数阈值,或者,所述预设条件为所述数据交互次数在预设的预设数据交互次数区间内。When the data interaction reference parameter is the number of data interactions, the preset condition is that the number of data interactions is greater than or equal to the preset threshold of data interactions, or the preset condition is that the number of data interactions is within a preset Within the interval of preset data interaction times. 4.根据权利要求1-3任一项所述的方法,其特征在于,所述目标直连通信开关包括第一接口、第二接口和使能端,所述第一接口连接所述第一外围器件的第一数据通信接口,所述第二接口连接所述第二外围器件的第二数据通信接口,所述通信控制器用于向所述使能端发送使能信号以开启所述目标直连通信开关。4. The method according to any one of claims 1-3, wherein the target direct connection communication switch includes a first interface, a second interface and an enabling terminal, and the first interface is connected to the first The first data communication interface of the peripheral device, the second interface is connected to the second data communication interface of the second peripheral device, and the communication controller is used to send an enable signal to the enable terminal to turn on the target directly. Even the communication switch. 5.根据权利要求1-4任一项所述的方法,其特征在于,所述AP向所述通信控制器发送直连控制指令之后,所述方法还包括:5. The method according to any one of claims 1-4, wherein after the AP sends the direct connection control instruction to the communication controller, the method further comprises: 所述AP向所述第一外围设备和所述第二外围设备发送直连通信配置信息,所述直连通信配置信息用于指示所述第一外围设备和所述第二外围设备通过所述目标直连通信开关进行数据交互。The AP sends direct connection communication configuration information to the first peripheral device and the second peripheral device, where the direct connection communication configuration information is used to instruct the first peripheral device and the second peripheral device to pass through the The target is directly connected to the communication switch for data interaction. 6.一种直连通信控制装置,其特征在于,应用于包括多个外围器件的移动终端,所述直连通信控制装置连接所述多个外围器件,其特征在于,所述移动终端还包括通信控制器和直连通信电路,所述直连通信控制装置连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件;所述直连通信控制装置包括处理单元和通信单元,6. A direct connection communication control device, characterized in that it is applied to a mobile terminal including a plurality of peripheral devices, the direct connection communication control device is connected to the plurality of peripheral devices, characterized in that the mobile terminal also includes a communication controller and a direct communication circuit, the direct communication control device is connected to the communication controller, the communication controller is connected to the direct communication circuit, the direct communication circuit includes a target direct communication switch, and The target direct communication switch connects the first peripheral device and the second peripheral device among the plurality of peripheral devices; the direct communication control device includes a processing unit and a communication unit, 所述处理单元用于通过所述通信单元获取所述第一外围器件和所述第二外围器件之间的数据交互任务的至少一条数据交互记录;以及用于根据所述至少一条数据交互记录确定所述数据交互任务的数据交互参考参数;以及用于在检测到所述数据交互参考参数满足预设条件时,通过所述通信单元向所述通信控制器发送直连控制指令,所述直连控制指令用于指示所述通信控制器开启所述目标直连通信开关。The processing unit is configured to obtain at least one data interaction record of a data interaction task between the first peripheral device and the second peripheral device through the communication unit; and is configured to determine according to the at least one data interaction record The data interaction reference parameter of the data interaction task; and for sending a direct connection control instruction to the communication controller through the communication unit when it is detected that the data interaction reference parameter satisfies a preset condition, and the direct connection The control instruction is used to instruct the communication controller to turn on the target direct communication switch. 7.根据权利要求6所述的装置,其特征在于,所述数据交互参考参数为数据交互任务所需要的处理资源相对于所述直连通信控制装置的处理资源的参考占用率时,所述预设条件为所述参考占用率大于或等于预设占用率阈值,或者,所述预设条件为所述参考占用率在预设的占用率区间内。7. The device according to claim 6, wherein when the data interaction reference parameter is a reference occupancy rate of the processing resources required by the data interaction task relative to the processing resources of the direct-connected communication control device, the The preset condition is that the reference occupancy rate is greater than or equal to a preset occupancy rate threshold, or the preset condition is that the reference occupancy rate is within a preset occupancy rate range. 8.根据权利要求6所述的装置,其特征在于,所述数据交互参考参数为数据交互频率时,所述预设条件为所述数据交互频率大于或等于预设数据交互频率阈值,或者,所述预设条件为所述数据交互频率在预设的预设数据交互频率区间内;8. The device according to claim 6, wherein when the data interaction reference parameter is a data interaction frequency, the preset condition is that the data interaction frequency is greater than or equal to a preset data interaction frequency threshold, or, The preset condition is that the data interaction frequency is within a preset preset data interaction frequency range; 所述数据交互参考参数为数据交互时长时,所述预设条件为所述数据交互时长大于或等于预设数据交互时长阈值,或者,所述预设条件为所述数据交互时长在预设的预设数据交互时长区间内;When the data interaction reference parameter is data interaction duration, the preset condition is that the data interaction duration is greater than or equal to a preset data interaction duration threshold, or the preset condition is that the data interaction duration is within a preset Within the preset data interaction time interval; 所述数据交互参考参数为数据交互次数时,所述预设条件为所述数据交互次数大于或等于预设数据交互次数阈值,或者,所述预设条件为所述数据交互次数在预设的预设数据交互次数区间内。When the data interaction reference parameter is the number of data interactions, the preset condition is that the number of data interactions is greater than or equal to the preset threshold of data interactions, or the preset condition is that the number of data interactions is within a preset Within the interval of preset data interaction times. 9.根据权利要求6-8任一项所述的装置,其特征在于,所述目标直连通信开关包括第一接口、第二接口和使能端,所述第一接口连接所述第一外围器件的第一数据通信接口,所述第二接口连接所述第二外围器件的第二数据通信接口,所述通信控制器用于向所述使能端发送使能信号以开启所述目标直连通信开关。9. The device according to any one of claims 6-8, wherein the target direct connection communication switch includes a first interface, a second interface and an enabling terminal, and the first interface is connected to the first The first data communication interface of the peripheral device, the second interface is connected to the second data communication interface of the second peripheral device, and the communication controller is used to send an enable signal to the enable terminal to turn on the target directly. Even communication switch. 10.根据权利要求6-9任一项所述的装置,其特征在于,所述处理单元通过所述通信单元向所述通信控制器发送直连控制指令之后,所述处理单元还用于:通过所述通信单元向所述第一外围设备和所述第二外围设备发送直连通信配置信息,所述直连通信配置信息用于指示所述第一外围设备和所述第二外围设备通过所述目标直连通信开关进行数据交互。10. The device according to any one of claims 6-9, wherein after the processing unit sends the direct connection control instruction to the communication controller through the communication unit, the processing unit is further configured to: Send direct connection communication configuration information to the first peripheral device and the second peripheral device through the communication unit, the direct connection communication configuration information is used to instruct the first peripheral device and the second peripheral device to pass The target is directly connected to the communication switch for data interaction. 11.一种移动终端,其特征在于,包括应用处理器AP、通信控制器、直连通信电路、多个外围器件和总线;所述AP连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件;11. A mobile terminal, characterized in that it includes an application processor AP, a communication controller, a direct communication circuit, a plurality of peripheral devices and a bus; the AP is connected to the communication controller, and the communication controller is connected to the The direct connection communication circuit, the direct connection communication circuit includes a target direct connection communication switch, and the target direct connection communication switch connects the first peripheral device and the second peripheral device among the plurality of peripheral devices; 所述AP通过所述总线与所述通信控制器、所述多个外围器件相互通信;The AP communicates with the communication controller and the plurality of peripheral devices through the bus; 所述AP用于执行如权利要求1至5任一项所述描述的方法。The AP is used to execute the method described in any one of claims 1 to 5. 12.一种移动终端,其特征在于,包括应用处理器AP、通信控制器、直连通信电路、多个外围器件;12. A mobile terminal, characterized in that it includes an application processor AP, a communication controller, a direct communication circuit, and a plurality of peripheral devices; 所述AP连接所述通信控制器,所述通信控制器连接所述直连通信电路,所述直连通信电路包括目标直连通信开关,所述目标直连通信开关连接所述多个外围器件中的第一外围器件和第二外围器件。The AP is connected to the communication controller, the communication controller is connected to the direct communication circuit, the direct communication circuit includes a target direct communication switch, and the target direct communication switch is connected to the plurality of peripheral devices The first peripheral device and the second peripheral device in .
CN201611265340.2A 2016-12-30 2016-12-30 A direct connection communication control method, device and mobile terminal Active CN107071764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611265340.2A CN107071764B (en) 2016-12-30 2016-12-30 A direct connection communication control method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611265340.2A CN107071764B (en) 2016-12-30 2016-12-30 A direct connection communication control method, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107071764A true CN107071764A (en) 2017-08-18
CN107071764B CN107071764B (en) 2019-12-31

Family

ID=59624622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611265340.2A Active CN107071764B (en) 2016-12-30 2016-12-30 A direct connection communication control method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107071764B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1218567A (en) * 1996-03-13 1999-06-02 钻石多媒体系统公司 Multiple parallel digital data stream channel controller architecture
CN1272742C (en) * 2002-06-04 2006-08-30 佳能株式会社 Printing system and control method thereof, and electrooptical direct printing apparatus
CN102460419A (en) * 2009-04-16 2012-05-16 N·I·帕申科 Computer architecture with self-contained modules
CN104142907A (en) * 2013-05-10 2014-11-12 联想(北京)有限公司 Enhanced processor, processing method and electronic equipment
US20160259940A1 (en) * 2012-02-14 2016-09-08 Janus Technologies, Inc. Security-enhanced computer systems and methods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1218567A (en) * 1996-03-13 1999-06-02 钻石多媒体系统公司 Multiple parallel digital data stream channel controller architecture
CN1272742C (en) * 2002-06-04 2006-08-30 佳能株式会社 Printing system and control method thereof, and electrooptical direct printing apparatus
CN102460419A (en) * 2009-04-16 2012-05-16 N·I·帕申科 Computer architecture with self-contained modules
US20160259940A1 (en) * 2012-02-14 2016-09-08 Janus Technologies, Inc. Security-enhanced computer systems and methods
CN104142907A (en) * 2013-05-10 2014-11-12 联想(北京)有限公司 Enhanced processor, processing method and electronic equipment

Also Published As

Publication number Publication date
CN107071764B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN107071147B (en) Parameter adjusting method and device
CN106817540A (en) A camera control method and device
WO2018219119A1 (en) Application function control method and relevant product
CN106302808A (en) Data transmission method and mobile terminal
CN106484326B (en) Data transmission processing method and mobile terminal
CN107277230A (en) The voice broadcast method and Related product of message
CN106155557A (en) A virtual button display method and mobile terminal
CN106708633B (en) Method for speeding up terminal WiFi workstation mode closing speed and mobile terminal
CN106603740A (en) Network connection abnormality processing method and terminal equipment
CN106793010B (en) Network access method and equipment
CN107291327A (en) Application control method and related product
CN106454979B (en) A kind of network system switching method and mobile terminal
CN106980554A (en) A kind of process handling method and device
CN106686704B (en) Terminal monitoring method and mobile terminal
CN107205091A (en) Call control method and related product
CN107317917A (en) Application control method and related product
CN107291453A (en) Component display method and related product
CN106815078A (en) A kind of internal memory control method and equipment
CN107659976B (en) Network access method and related products
CN107220344B (en) Document processing methods and related products
CN106802828A (en) Applied data processing method and device
CN107708140A (en) Wireless network diversion processing method and Related product
CN106776041A (en) A kind of data processing method and device
CN107889164A (en) WLAN diversion processing method and Related product
CN107272991A (en) Method for information display and Related product

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant