WO2017185680A1 - Terminal interaction control method and apparatus - Google Patents

Terminal interaction control method and apparatus Download PDF

Info

Publication number
WO2017185680A1
WO2017185680A1 PCT/CN2016/102634 CN2016102634W WO2017185680A1 WO 2017185680 A1 WO2017185680 A1 WO 2017185680A1 CN 2016102634 W CN2016102634 W CN 2016102634W WO 2017185680 A1 WO2017185680 A1 WO 2017185680A1
Authority
WO
WIPO (PCT)
Prior art keywords
identity
terminal
type
identifier
identity identifier
Prior art date
Application number
PCT/CN2016/102634
Other languages
French (fr)
Chinese (zh)
Inventor
黄长江
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
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 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017185680A1 publication Critical patent/WO2017185680A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • G06F21/445Program or device authentication by mutual authentication, e.g. between devices or programs

Definitions

  • At least one memory communicatively coupled to the processor, wherein:
  • the two terminals are connected to determine the identity of the master and slave devices of the two terminals.
  • the method for repeatedly determining the identity of the current terminal by determining the type of the identity identifier built in the terminal is used to determine the identity of the current terminal.
  • the user may select one of the two connected terminals as the first terminal to be operated, and then set the type of the first identity in the terminal as the master device identity or the slave device identity.
  • the first terminal does not receive any operation for setting an identity type, and the type of the corresponding first identity identifier is a default random identity type. After the terminal detects the type of the first identity, the following steps can be performed correspondingly.
  • test apparatus and the like of the display device described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical. Units can be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments of the present invention provide a terminal interaction control method and apparatus. The method comprises: monitoring the type of a first identity in a first terminal; if the type of the first identity is a master device identity, setting the type of a second identity of a second terminal connected to the first terminal as a slave device identity; and if the type of the first identity is the slave device identity, setting the type of the second identity as the master device identity. By means of the solution of the embodiments of the present invention, the master and slave device roles of two terminals connected by a C2C cable during the charging can be determined without insertion into and removing from a port multiple times.

Description

终端交互控制方法和装置Terminal interaction control method and device
交叉引用cross reference
本申请引用于2016年4月28日提交的专利名称为“终端交互控制方法和装置”的第2016102808835号中国专利申请,其通过引用被全部并入本申请。The present application is hereby incorporated by reference in its entirety in its entirety in its entirety in its entirety in the the the the the the the the the
技术领域Technical field
本发明实施例涉及通信技术,特别涉及一种终端交互控制方法和装置。The embodiments of the present invention relate to communication technologies, and in particular, to a terminal interaction control method and apparatus.
背景技术Background technique
当下,计算机、平板电脑以及手机等终端已经得到普及,充分影响了人们的日常生活。它接口丰富:串口,并口,HDMI,SATA,等等。其中应用最广泛的当属通用串行总线接口,俗称USB。它不仅可以连接存储设备,还可以作为通用的扩展接口。随着科技的进步USB接口的速度越来越快,兼容的设备也越来越多。At present, terminals such as computers, tablets, and mobile phones have become popular, which has greatly affected people's daily lives. It has a rich interface: serial port, parallel port, HDMI, SATA, and so on. The most widely used one is the universal serial bus interface, commonly known as USB. It can be connected not only to storage devices, but also as a universal expansion interface. With the advancement of technology, the USB interface is getting faster and faster, and more and more compatible devices are being used.
同时,USB接口的形态也历经变化,从TYPE A到MINI再到MICRO B。现如今最热门的USB形态当属TYPE-C。它不仅速快,传输电流大,还支持正反插。两个手机可通过C2C(Type-C to Type-C)线连接实现相互充电。At the same time, the form of the USB interface has also changed, from TYPE A to MINI to MICRO B. The most popular USB form today is TYPE-C. It is not only fast, but also has a large transmission current, and it also supports forward and reverse insertion. The two phones can be charged to each other via a C2C (Type-C to Type-C) cable connection.
发明人在实现本发明的过程中,发现现有技术存在如下缺陷:采用C2C线虽然可实现终端之间相互充电,但充电方向是随机的,需通过多次正、反插拔连接线端口,才能确定两个终端在充电过程中的主、从设备角色,达到用户预期的充电方向。In the process of implementing the present invention, the inventors have found that the prior art has the following drawbacks: although the C2C line can be used to charge each other, the charging direction is random, and the connection port is required to be inserted through multiple positive and negative plugs. In order to determine the master and slave roles of the two terminals during the charging process, the charging direction expected by the user is reached.
发明内容Summary of the invention
本发明实施例提供一种终端交互控制方法和装置,使采用如C2C线连接的两个终端,无需进行多次插拔端口来确定如充电过程中的主、从设备角色,可实现方便、快速确定主、从设备,从而快速进行定向充电。The embodiments of the present invention provide a terminal interaction control method and device, which enable two terminals connected by using a C2C line, and does not need to perform multiple plugging and unplugging ports to determine the roles of the master and slave devices in the charging process, which is convenient and fast. Determine the master and slave devices for fast directional charging.
为达到上述目的,第一方面,本发明实施例提供了一种终端交互控制方法,所述方法应用于第一终端,包括:监测所述第一终端中第一身份标识的 类型;如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。To achieve the above objective, in a first aspect, an embodiment of the present invention provides a terminal interaction control method, where the method is applied to a first terminal, including: monitoring a first identity identifier in the first terminal a type; if the type of the first identity is a master identity, setting a type of the second identity that is connected to the second terminal on the first terminal to be a slave identity; if the first identity The type of the slave device is the slave device identity, and the type of the second identity identifier is set to be the master device identity.
第二方面,本发明实施例还提供一种终端交互控制装置,所述方法应用于第一终端,包括:身份监测模块,用于监测所述第一终端中第一身份标识的类型;第一身份设置模块,用于如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;第二身份设置模块,用于如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。In a second aspect, the embodiment of the present invention further provides a terminal interaction control apparatus, where the method is applied to a first terminal, and includes: an identity monitoring module, configured to monitor a type of the first identity identifier in the first terminal; An identity setting module, configured to: if the type of the first identity identifier is a master device identity, set a type of the second identity identifier that is connected to the second terminal on the first terminal to be a slave device identity; And a setting module, configured to set the type of the second identity identifier to the master device identity if the type of the first identity identifier is the slave device identity.
第三方面,本申请的实施例还提供了一种电子设备,包括:In a third aspect, an embodiment of the present application further provides an electronic device, including:
至少一个处理器;以及At least one processor;
与所述处理器通信连接的至少一个存储器,其中:At least one memory communicatively coupled to the processor, wherein:
所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如下方法:监测所述第一终端中第一身份标识的类型;如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。The memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method of: monitoring a type of a first identity in the first terminal; if the first identity The type of the identifier is a master device identity, and the type of the second identity identifier connected to the second terminal connected to the first terminal is a slave device identity; if the type of the first identity identifier is the slave device identity And setting the type of the second identity to the identity of the master device.
第四方面,本申请的实施例还提供了一种计算机程序产品,包括程序代码,所述程序代码用于执行如下操作:In a fourth aspect, an embodiment of the present application further provides a computer program product, including program code, where the program code is used to perform the following operations:
所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法:The processor is configured to invoke logic instructions in the memory to perform the following methods:
监测所述第一终端中第一身份标识的类型;如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。Monitoring a type of the first identity identifier in the first terminal; if the type of the first identity identifier is a master device identity, setting a type of the second identity identifier on the second terminal connected to the first terminal For the slave device identity; if the type of the first identity identifier is the slave device identity, setting the type of the second identity identifier to the master device identity.
第五方面,本申请的实施例还提供了一种存储介质,用于存储如前所述的计算机程序。In a fifth aspect, an embodiment of the present application further provides a storage medium for storing a computer program as described above.
本发明实施例的终端交互控制方法和装置,通过监测位于第一终端中的第一身份标识的类型,来设置与第一终端连接的第二终端中的第二身份标识 的类型,从而确定第一终端和第二终端的主、从设备身份。该方案无需反复插拔连线端口,即可实现主从设备角色确认,以便于两个终端间后续的交互操作。The method and device for controlling the terminal interaction in the embodiment of the present invention, by monitoring the type of the first identity identifier located in the first terminal, setting the second identity identifier in the second terminal connected to the first terminal The type of the master and slave devices of the first terminal and the second terminal are determined. In this solution, the master and slave device roles can be confirmed without repeatedly plugging and unplugging the connection ports, so as to facilitate subsequent interaction between the two terminals.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
图1为本发明提供的终端交互控制方法一个实施例的方法流程图;1 is a flowchart of a method for controlling a terminal interaction control method according to an embodiment of the present invention;
图2为本发明提供的终端交互控制方法另一个实施例的方法流程图;2 is a flowchart of a method for another embodiment of a method for controlling terminal interaction according to the present invention;
图3为本发明提供的终端交互控制方法又一个实施例的方法流程图;3 is a flowchart of a method for still another embodiment of a terminal interaction control method according to the present invention;
图4为本发明提供的终端交互控制装置一个实施例的结构示意图;4 is a schematic structural diagram of an embodiment of a terminal interaction control apparatus according to the present invention;
图5为本发明提供的终端交互控制装置另一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of another embodiment of a terminal interaction control apparatus according to the present invention; FIG.
图6是本发明又一实施例中一种电子设备的结构框图。FIG. 6 is a structural block diagram of an electronic device according to still another embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一Embodiment 1
图1为本发明提供的终端交互控制方法第一个实施例的方法流程图,该方法的执行主体位于相互连接的两个终端如两个手机中的任一终端内,本实施例中,将当前方法涉及的执行主体所位于的终端设定为第一终端。原则上,第一终端和第二终端的角色可互换,本方案仅以第一终端为例进行说明。本发明实施例中所说的身份标识,包括位于第一终端内的第一身份标识和第二终端内的第二身份标识,其作用主要是在两个终端连接时,确定其所在终端的主、从设备身份。例如,当第一终端内的第一身份标识为主设备身份时,可向与其连接的具有从设备身份的终端主动发出控制操作,如主动向从设备 供电、传输数据等;当第一终端内的第一身份标识为从设备身份时,可从与其连接的具有主设备身份的终端被动接收控制操作,如从主设备取电、接收数据等。FIG. 1 is a flowchart of a method for a first embodiment of a terminal interaction control method according to the present invention. The execution body of the method is located in any two terminals connected to each other, such as two mobile phones. In this embodiment, The terminal in which the execution subject involved in the current method is located is set as the first terminal. In principle, the roles of the first terminal and the second terminal are interchangeable. This solution is only described by taking the first terminal as an example. The identity identifier in the embodiment of the present invention includes a first identity identifier located in the first terminal and a second identity identifier in the second terminal, and the function is mainly to determine the host of the terminal where the two terminals are connected when the two terminals are connected. From the device identity. For example, when the first identity in the first terminal is the identity of the master device, the control operation may be actively sent to the terminal with the slave device identity connected thereto, such as the active slave device. Powering, transmitting data, etc.; when the first identity in the first terminal is a slave identity, the terminal can passively receive control operations from the terminal having the identity of the master device, such as receiving power from the master device, receiving data, and the like.
如图1所示,该终端交互控制方法包括步骤如下:As shown in FIG. 1, the terminal interaction control method includes the following steps:
S110,监测第一终端中第一身份标识的类型。其中,该第一身份标识的类型可以为主设备身份、从设备身份或随机身份(既不确定身份,尚处于待设定身份状态)。S110. Monitor a type of the first identity identifier in the first terminal. The type of the first identity identifier may be a master device identity, a slave device identity, or a random identity (either an identity is determined, and an identity state is still to be set).
具体地,当两个终端通过如C2C线连接欲实现充电或数据交互时,需要两终端连接后确定两个终端的主、从设备身份。区别于现有技术中,反复正反插拔连接线端口来确定身份的方法,本实施例通过设置内置在终端中的身份标识的类型来确定当前终端的主、从设备身份。例如,用户可选取两个已相互连接的终端中的一个终端作为当前操作的第一终端,然后设置该终端中第一身份标识的类型为主设备身份或从设备身份。又或者,第一终端并未收到任何设置身份标识类型的操作,那么对应的第一身份标识的类型即为默认的随机身份类型。当终端监测到第一身份标识的类型后,即可对应执行如下步骤。Specifically, when two terminals are connected by, for example, a C2C line, to perform charging or data interaction, the two terminals are connected to determine the identity of the master and slave devices of the two terminals. Different from the prior art, the method for repeatedly determining the identity of the current terminal by determining the type of the identity identifier built in the terminal is used to determine the identity of the current terminal. For example, the user may select one of the two connected terminals as the first terminal to be operated, and then set the type of the first identity in the terminal as the master device identity or the slave device identity. Or, the first terminal does not receive any operation for setting an identity type, and the type of the corresponding first identity identifier is a default random identity type. After the terminal detects the type of the first identity, the following steps can be performed correspondingly.
S120,如果第一身份标识的类型是主设备身份,则设置连接在第一终端上的第二终端上的第二身份标识的类型为从设备身份。S120. If the type of the first identity identifier is a master device identity, set the type of the second identity identifier that is connected to the second terminal on the first terminal to be a slave device identity.
具体的,当用户将第一终端设置为主设备后,第一终端会通过接线端口设置第二终端内的第二身份标识的类型为从设备身份,从而完成后续依据主从设备身份的操作规范执行相关操作。或者,Specifically, after the user sets the first terminal as the master device, the first terminal sets the type of the second identity identifier in the second terminal to be the slave device identity through the wire port, thereby completing the subsequent operation specification according to the identity of the master and slave devices. Perform related operations. or,
执行S130,如果第一身份标识的类型是从设备身份,则设置第二身份标识的类型为主设备身份。S130 is performed. If the type of the first identity identifier is a slave device identity, setting the type of the second identity identifier to be the master device identity.
具体的,当用户将第一终端设置为从设备后,第一终端会通过接线端口设置第二终端内的第二身份标识的类型为主设备身份,从而完成后续依据主从设备身份的操作规范执行相关操作。Specifically, when the user sets the first terminal as the slave device, the first terminal sets the type of the second identity identifier in the second terminal as the master device identity through the wire port, thereby completing the subsequent operation specification according to the identity of the master and slave devices. Perform related operations.
本发明实施例提供的终端交互控制方法,通过监测第一终端的第一身份标识的类型为主、从设备身份,进而通过连接在第一终端及第二终端之间的连接线设置第二终端内第二身份标识的类型,从而在第一终端与第二终端之间建立主、从设备关系,以便于依据主从设备的操作规范执行相关操作。 The terminal interaction control method provided by the embodiment of the present invention monitors the type of the first identity identifier of the first terminal, and the slave device identity, and then sets the second terminal by connecting a connection line between the first terminal and the second terminal. The type of the second identity identifier, thereby establishing a master-slave relationship between the first terminal and the second terminal, so as to perform related operations according to the operation specification of the master-slave device.
实施例二Embodiment 2
图2为本发明提供的终端交互控制方法另一个实施例的方法流程图,该方法可视为图1所示方法实施例的具体实现方式。在图1所示方法实施例中,第一终端作为被选取的执行主体,其内置的第一身份标识被主动设置成了主设备身份或从设备身份。然而,在具体应用场景中,用户也可能先设置第二终端内的第二身份标识的类型,而不选择第一终端进行设置,那么,第一身份标识的类型即默认为是随机身份类型。在该应用场景下,如图2所示,在图1所示方法的基础上,上述终端交互控制方法还包括步骤如下:FIG. 2 is a flowchart of a method for another embodiment of the terminal interaction control method provided by the present invention. The method may be regarded as a specific implementation manner of the method embodiment shown in FIG. In the method embodiment shown in FIG. 1, the first terminal is selected as the execution entity, and the built-in first identity identifier is actively set as the master device identity or the slave device identity. However, in a specific application scenario, the user may also set the type of the second identity identifier in the second terminal without selecting the first terminal to perform setting. Then, the type of the first identity identifier is a random identity type by default. In the application scenario, as shown in FIG. 2, based on the method shown in FIG. 1, the foregoing terminal interaction control method further includes the following steps:
S210,监测第一终端中第一身份标识的类型。步骤S210与前述步骤S110相同。S210. Monitor a type of the first identity identifier in the first terminal. Step S210 is the same as step S110 described above.
S220,如果第一身份标识的类型是随机身份,则根据第二身份标识将第一身份标识的类型设置为主设备身份或从设备身份。S220. If the type of the first identity identifier is a random identity, set the type of the first identity identifier to a master device identity or a slave device identity according to the second identity identifier.
具体的,当用户未将第一终端设置为主、从设备时,第一身份标识的类型默认为是随机身份。此时,如果第二终端内的第二身份标识的类型为非随机身份,及主设备身份或从设备身份,则第一终端可通过连接线受控于第二终端,根据第二身份标识将第一身份标识的类型设置为主设备身份或从设备身份,从而在第一终端与第二终端之间搭建主、从设备关系,进而完成后续依据主从设备身份的操作规范执行相关操作。Specifically, when the user does not set the first terminal as the master and the slave device, the type of the first identity identifier defaults to a random identity. At this time, if the type of the second identity identifier in the second terminal is a non-random identity, and the master device identity or the slave device identity, the first terminal may be controlled by the second terminal through the connection line, according to the second identity identifier. The type of the first identity identifier is set as the master device identity or the slave device identity, so that the master device and the slave device relationship are established between the first terminal and the second terminal, and then the related operations are performed according to the operation specification of the master-slave device identity.
本发明实施例提供的终端交互控制方法,通过被动设置第一终端的第一身份标识的类型为主、从设备身份,即根据第二身份标识将第一身份标识的类型设置为主设备身份或从设备身份,从而在第一终端与第二终端之间建立主、从设备关系,以便于依据主从设备的操作规范执行相关操作。The terminal interaction control method provided by the embodiment of the present invention is configured to passively set the type of the first identity identifier of the first terminal to be the master device identity and the slave device identity, that is, set the type of the first identity identifier to the master device identity according to the second identity identifier or The slave device identity, thereby establishing a master-slave relationship between the first terminal and the second terminal, in order to perform related operations according to the operating specifications of the master-slave device.
进一步的,如图3所示,在执行上述:监测第一终端中第一身份标识的类型的步骤之前还可包括如下步骤:Further, as shown in FIG. 3, before performing the foregoing step of monitoring the type of the first identity identifier in the first terminal, the following steps may be further included:
S310,监测第一终端中是否接收到设置第一身份标识的类型的指令。S310. Monitor whether an instruction for setting a type of the first identity identifier is received in the first terminal.
具体的,当用户选择第一终端作为主动设置身份标识主体时,可通过第一终端上的系统操作界面或APP手动输入或选择操作项来设置第一身份标识的类型为主设备身份或从设备身份。第一终端可监测第一终端中是否接收到这样的设置指令,进而依据是否接收到指令进行设置。如果接受到指令,则执行S320,依据接收的指令设置第一身份标识的类型为主设备身份或从设备 身份。如果未接受到指令,则执行S330,设置第一身份标识的类型为随机身份。Specifically, when the user selects the first terminal as the active setting identity entity, the type of the first identity identifier may be set as the master device identity or the slave device by manually inputting or selecting an operation item through the system operation interface or the APP on the first terminal. Identity. The first terminal may monitor whether the setting instruction is received in the first terminal, and then set according to whether the instruction is received. If the instruction is received, executing S320, setting the type of the first identity identifier as the master device identity or the slave device according to the received instruction Identity. If the instruction is not received, then S330 is performed to set the type of the first identity to be a random identity.
进一步的,以下示出了第一终端设置第二身份标识以及第一身份标识的类型的具体实现方式,包括:Further, the following shows a specific implementation manner in which the first terminal sets the second identity and the type of the first identity, including:
如果第一身份标识的类型是主设备身份,则设置连接在第一终端上的第二终端上的第二身份标识的类型为从设备身份,包括:If the type of the first identity identifier is a master device identity, setting the type of the second identity identifier on the second terminal connected to the first terminal to be a slave device identity, including:
向第二终端发送中断信号,该中断信号用于设置第二身份标识的类型为所述从设备身份。And sending an interrupt signal to the second terminal, where the interrupt signal is used to set the type of the second identity to the slave identity.
例如,当第一身份标识的类型被识别为主设备身份,第二身份标识的类型为随机身份(默认身份),则第一终端可向第二终端发送中断信号,该中断信号中携带有第一身份标识的信息。当第二终端接收到第一身份标识后,且识别出第一身份标识的类型为主设备身份,则将第二身份标识的类型设置为从设备身份。For example, when the type of the first identity identifier is identified as the master device identity and the type of the second identity identifier is a random identity (the default identity), the first terminal may send an interrupt signal to the second terminal, where the interrupt signal carries the first An identification information. After the second terminal receives the first identity, and identifies that the type of the first identity is the master identity, the type of the second identity is set as the slave identity.
如果第一身份标识的类型是从设备身份,则设置连接在第一终端上的第二终端上的第二身份标识的类型为主设备身份,包括:If the type of the first identity identifier is a slave device identity, setting the type of the second identity identifier on the second terminal connected to the first terminal as the master device identity, including:
向第二终端发送中断信号,该中断信号用于设置第二身份标识的类型为主设备身份。Sending an interrupt signal to the second terminal, where the interrupt signal is used to set the type of the second identity to be the identity of the master device.
例如,当第一身份标识的类型被识别为从设备身份,第二身份标识的类型为随机身份(默认身份),则第一终端可向第二终端发送中断信号,该中断信号中携带有第一身份标识的信息。当第二终端接收到第一身份标识后,且识别出第一身份标识的类型为从设备身份,则将第二身份标识的类型设置为主设备身份。For example, when the type of the first identity is identified as the slave identity and the type of the second identity is a random identity (the default identity), the first terminal may send an interrupt signal to the second terminal, where the interrupt signal carries the An identification information. After the second terminal receives the first identity, and identifies that the type of the first identity is a slave identity, the type of the second identity is set as the identity of the primary device.
如果第一身份标识的类型是随机身份(用户未对第一终端进行第一身份标识的主动设置,而是对第二终端的第二身份标识进行类型设置),则根据第二身份标识将第一身份标识的类型设置为主设备身份或从设备身份,包括:If the type of the first identity identifier is a random identity (the user does not perform the active setting of the first identity of the first terminal, but performs the type setting of the second identity of the second terminal), the second identity The type of an identity is set to the primary device identity or the secondary device identity, including:
接收第二终端发送的中断信号,并根据中断信号设置第一身份标识的类型为主设备身份或从设备身份。Receiving an interrupt signal sent by the second terminal, and setting a type of the first identity identifier as a master device identity or a slave device identity according to the interrupt signal.
例如,当第一身份标识的类型被识别为随机身份(默认身份),则表征用户主动设置了第二终端的第二身份标识的类型,则此时,第一终端会接收到第二终端发送的中断信号,该中断信号中携带有第二身份标识的信息。当 第一终端接收到第二身份标识后,如果识别出第二身份标识的类型为从设备身份,则将第一身份标识的类型设置为主设备身份;如果识别出第二身份标识的类型为主设备身份,则将第一身份标识的类型设置为从设备身份。For example, when the type of the first identity is identified as a random identity (the default identity), the user is configured to actively set the type of the second identity of the second terminal, and the first terminal may receive the second terminal. The interrupt signal carries the information of the second identity identifier. when After receiving the second identity identifier, the first terminal identifies the type of the second identity identifier as the slave device identity, and sets the type of the first identity identifier as the master device identity; Device identity, the type of the first identity is set to the slave identity.
进一步的,本实施例所示方法还包括:在第一身份标识的类型是主设备身份下,控制第一终端向第二终端充电;在第一身份标识的类型是从设备身份下,控制第一终端从第二终端取电。Further, the method shown in this embodiment further includes: controlling the first terminal to charge the second terminal when the type of the first identity identifier is a master device identity; and controlling the first identity identifier by using the device identity A terminal takes power from the second terminal.
例如,当第一终端与第二终端之间确认了主、从设备角色后,可依据主、从设备的操作规范进行充电控制,即充电方向由主设备向从设备供电。具体的,当第一终端为主设备时,第一终端向第二终端充电;当第一终端为从设备时,第一终端从第二终端取电。For example, after the primary and secondary device roles are confirmed between the first terminal and the second terminal, charging control may be performed according to the operating specifications of the master and the slave device, that is, the charging direction is supplied by the master device to the slave device. Specifically, when the first terminal is the master device, the first terminal charges the second terminal; when the first terminal is the slave device, the first terminal takes power from the second terminal.
进一步的,本实施例所示方法还包括:在第一身份标识的类型是主设备身份下,控制第一终端向第二终端传输数据;在第一身份标识的类型是从设备身份下,控制第一终端从第二终端接收数据。Further, the method shown in this embodiment further includes: controlling, when the type of the first identity identifier is a master device, the first terminal to transmit data to the second terminal; and when the type of the first identity identifier is a slave device identity, controlling The first terminal receives data from the second terminal.
例如,当第一终端与第二终端之间确认了主、从设备角色后,可依据主、从设备的操作规范进行数据传输(主要是传输方向)控制,即数据传输方向由主设备向从设备传输。具体的,当第一终端为主设备时,第一终端向第二终端传输数据;当第一终端为从设备时,第一终端从第二终端接收数据。传输的数据包括:音频数据、视频数据、图像数据等。For example, after the primary and secondary device roles are confirmed between the first terminal and the second terminal, data transmission (mainly transmission direction) control may be performed according to the operation specifications of the primary and secondary devices, that is, the data transmission direction is from the primary device to the secondary device. Device transfer. Specifically, when the first terminal is the master device, the first terminal transmits data to the second terminal; when the first terminal is the slave device, the first terminal receives data from the second terminal. The transmitted data includes: audio data, video data, image data, and the like.
本发明实施例提供的终端交互控制方法,在图1所示实施例的基础上,通过发送中断信号的方式,设置第一身份标识和第二身份标识的类型。同时,在确定了主、从设备角色后,还给出了依据主、从设备的操作规范进行控制操作的两个样例,包括充电方向控制和数据传输控制。The method for controlling the terminal interaction according to the embodiment of the present invention, on the basis of the embodiment shown in FIG. 1, sets the type of the first identity identifier and the second identity identifier by sending an interrupt signal. At the same time, after determining the roles of the master and slave devices, two examples of control operations based on the operating specifications of the master and slave devices are given, including charging direction control and data transmission control.
实施例三Embodiment 3
图4为本发明提供的终端交互控制装置一个实施例的结构示意图,可以用于执行如图1所示的方法步骤。如图4所示,该终端交互控制装置包括身份监测模块410、第一身份设置模块420和第二身份设置模块430,其中:FIG. 4 is a schematic structural diagram of an embodiment of a terminal interaction control apparatus according to the present invention, which may be used to perform the method steps shown in FIG. 1. As shown in FIG. 4, the terminal interaction control apparatus includes an identity monitoring module 410, a first identity setting module 420, and a second identity setting module 430, where:
身份监测模块410,用于监测第一终端中第一身份标识的类型;第一身份设置模块420,用于如果第一身份标识的类型是主设备身份,则设置连接在第一终端上的第二终端上的第二身份标识的类型为从设备身份;第二身份设置模块430,用于如果第一身份标识的类型是从设备身份,则设置第二身份标识 的类型为主设备身份。The identity monitoring module 410 is configured to monitor a type of the first identity identifier in the first terminal, where the first identity setting module 420 is configured to: if the type of the first identity identifier is a master device identity, set the first connection on the first terminal The second identity of the second terminal is of the slave identity; the second identity setting module 430 is configured to set the second identity if the type of the first identity is the slave identity The type is the primary device identity.
本发明实施例提供的终端交互控制装置,通过监测第一终端的第一身份标识的类型为主、从设备身份,进而通过连接在第一终端及第二终端之间的连接线设置第二终端内第二身份标识的类型,从而在第一终端与第二终端之间建立主、从设备关系,以便于依据主从设备的操作规范执行相关操作。The terminal interaction control apparatus provided by the embodiment of the present invention monitors the type of the first identity identifier of the first terminal, and the slave device identity, and then sets the second terminal by connecting a connection line between the first terminal and the second terminal. The type of the second identity identifier, thereby establishing a master-slave relationship between the first terminal and the second terminal, so as to perform related operations according to the operation specification of the master-slave device.
实施例四Embodiment 4
图5为本发明提供的终端交互控制装置另一个实施例的结构示意图,可视为图4所示装置实施例的细化结构,如图5所示,在图4所示结构的基础上还包括:FIG. 5 is a schematic structural diagram of another embodiment of a terminal interaction control apparatus according to the present invention, which can be regarded as a refinement structure of the apparatus embodiment shown in FIG. 4, as shown in FIG. 5, based on the structure shown in FIG. include:
第三身份设置模块440,用于如果第一身份标识的类型是随机身份,则根据第二身份标识将第一身份标识的类型设置为主设备身份或从设备身份。The third identity setting module 440 is configured to set the type of the first identity identifier as a master device identity or a slave device identity according to the second identity identifier if the type of the first identity identifier is a random identity.
进一步的,上述终端交互控制装置中还包括:指令监测模块450,用于监测第一终端中是否接收到设置第一身份标识的类型的指令;指令执行模块460,用于如果接受到,则依据接收的指令设置第一身份标识的类型为主设备身份或从设备身份;如果未接受到,则设置第一身份标识的类型为随机身份。Further, the terminal interaction control device further includes: an instruction monitoring module 450, configured to monitor whether the first terminal sets an instruction for setting a type of the first identity identifier; and the instruction execution module 460 is configured to: if received, according to The received instruction sets the type of the first identity to be the identity of the master device or the identity of the slave device; if not, the type of the first identity identifier is set to a random identity.
进一步的,上述第一身份设置模块420具体用于,向第二终端发送中断信号,该中断信号用于设置第二身份标识的类型为从设备身份。Further, the first identity setting module 420 is specifically configured to send an interrupt signal to the second terminal, where the interrupt signal is used to set the type of the second identity identifier to be a slave device identity.
进一步的,上述第二身份设置模块430具体用于,向第二终端发送中断信号,该中断信号用于设置第二身份标识的类型为主设备身份。Further, the foregoing second identity setting module 430 is specifically configured to send an interrupt signal to the second terminal, where the interrupt signal is used to set the type of the second identity identifier to be the identity of the master device.
进一步的,上述第三身份设置模块440具体用于,接收第二终端发送的中断信号,并根据中断信号设置第一身份标识的类型为主设备身份或从设备身份。Further, the third identity setting module 440 is specifically configured to receive an interrupt signal sent by the second terminal, and set a type of the first identity identifier as a master device identity or a slave device identity according to the interrupt signal.
进一步的,上述终端交互控制装置中还包括:充电模块,用于在第一身份标识的类型是所述主设备身份下,控制第一终端向第二终端充电;在第一身份标识的类型是从设备身份下,控制第一终端从第二终端取电。Further, the terminal interaction control device further includes: a charging module, configured to control the first terminal to charge the second terminal when the type of the first identity identifier is the master device identity; the type of the first identity identifier is The slave terminal controls the first terminal to take power from the second terminal.
进一步的,上述终端交互控制装置中还包括:数据传输模块,用于在第一身份标识的类型是主设备身份下,控制第一终端向第二终端传输数据;在第一身份标识的类型是从设备身份下,控制第一终端从所述第二终端接收数据。Further, the terminal interaction control apparatus further includes: a data transmission module, configured to: when the type of the first identity identifier is a master device identity, control the first terminal to transmit data to the second terminal; the type of the first identity identifier is The slave terminal controls the first terminal to receive data from the second terminal.
本发明实施例提供的终端交互控制装置,在图4所示实施例的基础上, 通过发送中断信号的方式,设置第一身份标识和第二身份标识的类型。同时,在确定了主、从设备角色后,还给出了依据主、从设备的操作规范进行控制操作的两个样例,包括充电方向控制和数据传输控制。The terminal interaction control apparatus provided by the embodiment of the present invention is based on the embodiment shown in FIG. The type of the first identity identifier and the second identity identifier are set by sending an interrupt signal. At the same time, after determining the roles of the master and slave devices, two examples of control operations based on the operating specifications of the master and slave devices are given, including charging direction control and data transmission control.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
实施例五Embodiment 5
图6是示出本申请实施例提供的电子设备的结构框图。FIG. 6 is a structural block diagram showing an electronic device according to an embodiment of the present application.
包括:至少一个处理器(processor)601;Including: at least one processor 601;
以及与所述处理器601连接的至少一个存储器(memory)602;其中,And at least one memory 602 connected to the processor 601; wherein
所述处理器601、存储器602通过总线603完成相互间的通信;The processor 601 and the memory 602 complete communication with each other through the bus 603.
所述处理器601用于调用所述存储器602中的程序指令,以执行上述各方法实施例所提供的方法,例如包括:监测所述第一终端中第一身份标识的类型;如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。The processor 601 is configured to invoke the program instructions in the memory 602 to perform the method provided by the foregoing method embodiments, for example, including: monitoring a type of the first identity identifier in the first terminal; The type of the identity identifier is the master device identity, and the type of the second identity identifier connected to the second terminal connected to the first terminal is set as the slave device identity; if the type of the first identity identifier is the slave identity The device identity is set to the type of the second identity identifier.
本实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:监测所述第一终端中第一身份标识的类型;如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。The embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer The method provided by the foregoing method embodiments includes: monitoring a type of the first identity identifier in the first terminal; if the type of the first identity identifier is a master device identity, setting a connection in the first The type of the second identity identifier on the second terminal on a terminal is a slave device identity; if the type of the first identity identifier is the slave device identity, setting the type of the second identity identifier to the primary identity Device identity.
本实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行上述各方法实施例所提供的方法,例如包括:监测所述第一终端中第一身份标识的 类型;如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。The embodiment provides a non-transitory computer readable storage medium, the non-transitory computer readable storage medium storing computer instructions, the computer instructions causing the computer to perform the methods provided by the foregoing method embodiments, including, for example, Monitoring the first identity in the first terminal a type; if the type of the first identity is a master identity, setting a type of the second identity that is connected to the second terminal on the first terminal to be a slave identity; if the first identity The type of the slave device is the slave device identity, and the type of the second identity identifier is set to be the master device identity.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
以上所描述的显示装置的测试设备等实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The embodiments of the test apparatus and the like of the display device described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical. Units can be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上各实施例仅用以说明本发明的实施例的技术方案,而非对其限制;尽管参照前述各实施例对本发明的实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明的实施例各实施例技术方案的范围。 It should be noted that the above embodiments are only used to explain the technical solutions of the embodiments of the present invention, and are not limited thereto; although the embodiments of the present invention are described in detail with reference to the foregoing embodiments, common in the art The skilled person should understand that the technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the essence of the corresponding technical solutions. Embodiments The scope of the technical solutions of the various embodiments.

Claims (19)

  1. 一种终端交互控制方法,所述方法应用于第一终端,其特征在于,包括:A terminal interaction control method, where the method is applied to a first terminal, and the method includes:
    监测所述第一终端中第一身份标识的类型;Monitoring a type of the first identity identifier in the first terminal;
    如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;If the type of the first identity identifier is a master device identity, setting a type of the second identity identifier that is connected to the second terminal on the first terminal to be a slave device identity;
    如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。And if the type of the first identity identifier is the slave device identity, setting the type of the second identity identifier to the master device identity.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    如果所述第一身份标识的类型是随机身份,则根据所述第二身份标识将所述第一身份标识的类型设置为所述主设备身份或所述从设备身份。And if the type of the first identity identifier is a random identity, setting the type of the first identity identifier to the master device identity or the slave device identity according to the second identity identifier.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    监测所述第一终端中是否接收到设置所述第一身份标识的类型的指令;Monitoring whether an instruction to set the type of the first identity identifier is received in the first terminal;
    如果接受到,则依据接收的指令设置所述第一身份标识的类型为所述主设备身份或所述从设备身份;If yes, setting the type of the first identity identifier to the identity of the master device or the identity of the slave device according to the received instruction;
    如果未接受到,则设置所述第一身份标识的类型为所述随机身份。If not received, the type of the first identity is set to the random identity.
  4. 根据权利要求1所述的方法,其特征在于,如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份,包括:The method according to claim 1, wherein if the type of the first identity identifier is a master device identity, setting a type of the second identity identifier on the second terminal connected to the first terminal is From device identity, including:
    向所述第二终端发送中断信号,所述中断信号用于设置所述第二身份标识的类型为所述从设备身份。And sending an interrupt signal to the second terminal, where the interrupt signal is used to set the type of the second identity to the slave identity.
  5. 根据权利要求1所述的方法,其特征在于,如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份,包括:The method according to claim 1, wherein if the type of the first identity identifier is the slave device identity, setting the type of the second identity identifier to the master device identity comprises:
    向所述第二终端发送中断信号,所述中断信号用于设置所述第二身份标识的类型为所述主设备身份。And sending an interrupt signal to the second terminal, where the interrupt signal is used to set the type of the second identity to be the identity of the master device.
  6. 根据权利要求2所述的方法,其特征在于,如果所述第一身份标识的类型是随机身份,则根据所述第二身份标识将所述第一身份标识的类型设置为所述主设备身份或所述从设备身份,包括:The method according to claim 2, wherein if the type of the first identity identifier is a random identity, setting the type of the first identity identifier to the identity of the master device according to the second identity identifier Or the identity of the slave device, including:
    接收所述第二终端发送的中断信号,并根据所述中断信号设置所述第一 身份标识的类型为所述主设备身份或所述从设备身份。Receiving an interrupt signal sent by the second terminal, and setting the first according to the interrupt signal The type of identity is the primary device identity or the secondary device identity.
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    在所述第一身份标识的类型是所述主设备身份下,控制所述第一终端向所述第二终端充电;And controlling the first terminal to charge the second terminal, where the type of the first identity identifier is the identity of the master device;
    在所述第一身份标识的类型是所述从设备身份下,控制所述第一终端从所述第二终端取电。And controlling the first terminal to take power from the second terminal, when the type of the first identity identifier is the slave device identity.
  8. 根据权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    在所述第一身份标识的类型是所述主设备身份下,控制所述第一终端向所述第二终端传输数据;And controlling the first terminal to transmit data to the second terminal, where the type of the first identity identifier is the master device identity;
    在所述第一身份标识的类型是所述从设备身份下,控制所述第一终端从所述第二终端接收数据。And controlling the first terminal to receive data from the second terminal, when the type of the first identity identifier is the slave device identity.
  9. 一种终端交互控制装置,,所述方法应用于第一终端,其特征在于,包括:A terminal interaction control device, the method is applied to a first terminal, and the method includes:
    身份监测模块,用于监测所述第一终端中第一身份标识的类型;An identity monitoring module, configured to monitor a type of the first identity identifier in the first terminal;
    第一身份设置模块,用于如果所述第一身份标识的类型是主设备身份,则设置连接在所述第一终端上的第二终端上的第二身份标识的类型为从设备身份;a first identity setting module, configured to: if the type of the first identity identifier is a master device identity, set a type of the second identity identifier that is connected to the second terminal on the first terminal to be a slave device identity;
    第二身份设置模块,用于如果所述第一身份标识的类型是所述从设备身份,则设置所述第二身份标识的类型为所述主设备身份。And a second identity setting module, configured to: if the type of the first identity identifier is the slave device identity, set the type of the second identity identifier to the master device identity.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    第三身份设置模块,用于如果所述第一身份标识的类型是随机身份,则根据所述第二身份标识将所述第一身份标识的类型设置为所述主设备身份或所述从设备身份。a third identity setting module, configured to: if the type of the first identity identifier is a random identity, set the type of the first identity identifier to the master device identity or the slave device according to the second identity identifier Identity.
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    指令监测模块,用于监测所述第一终端中是否接收到设置所述第一身份标识的类型的指令;An instruction monitoring module, configured to monitor whether an instruction for setting a type of the first identity identifier is received in the first terminal;
    指令执行模块,用于如果接受到,则依据接收的指令设置所述第一身份标识的类型为所述主设备身份或所述从设备身份;如果未接受到,则设置所 述第一身份标识的类型为所述随机身份。An instruction execution module, configured to set, according to the received instruction, a type of the first identity identifier as the master device identity or the slave device identity, if not received, if not received, The type of the first identity is the random identity.
  12. 根据权利要求9所述的装置,其特征在于,所述第一身份设置模块具体用于,The device according to claim 9, wherein the first identity setting module is specifically configured to:
    向所述第二终端发送中断信号,所述中断信号用于设置所述第二身份标识的类型为所述从设备身份。And sending an interrupt signal to the second terminal, where the interrupt signal is used to set the type of the second identity to the slave identity.
  13. 根据权利要求9所述的装置,其特征在于,所述第二身份设置模块具体用于,The device according to claim 9, wherein the second identity setting module is specifically configured to:
    向所述第二终端发送中断信号,所述中断信号用于设置所述第二身份标识的类型为所述主设备身份。And sending an interrupt signal to the second terminal, where the interrupt signal is used to set the type of the second identity to be the identity of the master device.
  14. 根据权利要求10所述的装置,其特征在于,所述第三身份设置模块具体用于,The device according to claim 10, wherein the third identity setting module is specifically configured to:
    接收所述第二终端发送的中断信号,并根据所述中断信号设置所述第一身份标识的类型为所述主设备身份或所述从设备身份。Receiving an interrupt signal sent by the second terminal, and setting, according to the interrupt signal, the type of the first identity identifier to be the master device identity or the slave device identity.
  15. 根据权利要求9-14中任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 9 to 14, wherein the device further comprises:
    充电模块,用于在所述第一身份标识的类型是所述主设备身份下,控制所述第一终端向所述第二终端充电;在所述第一身份标识的类型是所述从设备身份下,控制所述第一终端从所述第二终端取电。a charging module, configured to control the first terminal to charge the second terminal when the type of the first identity identifier is the master device identity; the type of the first identity identifier is the slave device In the identity, the first terminal is controlled to take power from the second terminal.
  16. 根据权利要求9-14中任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 9 to 14, wherein the device further comprises:
    数据传输模块,用于在所述第一身份标识的类型是所述主设备身份下,控制所述第一终端向所述第二终端传输数据;在所述第一身份标识的类型是所述从设备身份下,控制所述第一终端从所述第二终端接收数据。a data transmission module, configured to control, by the first terminal, to transmit data to the second terminal, where the type of the first identity identifier is the master device identity; The slave terminal is controlled to receive data from the second terminal under the identity of the device.
  17. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    至少一个处理器;以及At least one processor;
    与所述处理器通信连接的至少一个存储器,其中:At least one memory communicatively coupled to the processor, wherein:
    所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如权利要求1至8任一所述的方法。The memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-8.
  18. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程 序指令,当所述程序指令被计算机执行时,使所述计算机执行如权利要求1至8任一所述的方法。A computer program product, comprising: a computer program stored on a non-transitory computer readable storage medium, the computer program comprising The instructions, when executed by a computer, cause the computer to perform the method of any of claims 1-8.
  19. 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如权利要求1至8任一所述的方法。 A non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions, the computer instructions causing the computer to perform the method of any one of claims 1-8 .
PCT/CN2016/102634 2016-04-28 2016-10-19 Terminal interaction control method and apparatus WO2017185680A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610280883.5 2016-04-28
CN201610280883.5A CN105956458A (en) 2016-04-28 2016-04-28 Interaction control method and device for terminals

Publications (1)

Publication Number Publication Date
WO2017185680A1 true WO2017185680A1 (en) 2017-11-02

Family

ID=56916506

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102634 WO2017185680A1 (en) 2016-04-28 2016-10-19 Terminal interaction control method and apparatus

Country Status (2)

Country Link
CN (1) CN105956458A (en)
WO (1) WO2017185680A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956458A (en) * 2016-04-28 2016-09-21 乐视控股(北京)有限公司 Interaction control method and device for terminals
CN108268409A (en) * 2016-12-30 2018-07-10 维沃移动通信有限公司 A kind of method and mobile terminal of mobile terminal connection
CN111030226B (en) * 2019-12-20 2021-08-24 维沃移动通信有限公司 Equipment detection method and electronic equipment
CN113868159B (en) * 2020-06-30 2024-08-13 中车株洲电力机车研究所有限公司 IO module, in-module main control device and in-module interface device identification method
CN113453207B (en) * 2021-06-21 2024-03-22 青岛海尔科技有限公司 Identity type determining method and device, storage medium and electronic device
CN113852760A (en) * 2021-09-26 2021-12-28 联想(北京)有限公司 Control method and control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404599A (en) * 2008-11-12 2009-04-08 华为技术有限公司 Network fault detection method, primary device, slave device, control terminal and system
CN102662897A (en) * 2012-03-31 2012-09-12 北京壹人壹本信息科技有限公司 Mobile terminal and data interaction method between mobile terminals
CN105138480A (en) * 2015-07-28 2015-12-09 小米科技有限责任公司 Method and apparatus for performing operation
CN105224429A (en) * 2015-08-03 2016-01-06 深圳市美贝壳科技有限公司 A kind of detection USB device carry information approach and system
CN105956458A (en) * 2016-04-28 2016-09-21 乐视控股(北京)有限公司 Interaction control method and device for terminals

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8686685B2 (en) * 2009-12-25 2014-04-01 Golba, Llc Secure apparatus for wirelessly transferring power and communicating with one or more slave devices
CN105098273B (en) * 2015-07-20 2018-11-02 小米科技有限责任公司 charging method and device
CN105098888B (en) * 2015-07-20 2018-11-30 小米科技有限责任公司 charging method and device
CN105068958B (en) * 2015-08-13 2019-04-16 小米科技有限责任公司 Method for handover control and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404599A (en) * 2008-11-12 2009-04-08 华为技术有限公司 Network fault detection method, primary device, slave device, control terminal and system
CN102662897A (en) * 2012-03-31 2012-09-12 北京壹人壹本信息科技有限公司 Mobile terminal and data interaction method between mobile terminals
CN105138480A (en) * 2015-07-28 2015-12-09 小米科技有限责任公司 Method and apparatus for performing operation
CN105224429A (en) * 2015-08-03 2016-01-06 深圳市美贝壳科技有限公司 A kind of detection USB device carry information approach and system
CN105956458A (en) * 2016-04-28 2016-09-21 乐视控股(北京)有限公司 Interaction control method and device for terminals

Also Published As

Publication number Publication date
CN105956458A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
WO2017185680A1 (en) Terminal interaction control method and apparatus
US11997734B2 (en) Wireless headphone matching method, device, terminal and charging box
TWI630486B (en) Charging method, mobile terminal, and charging device
US10424954B2 (en) Power adaptor, terminal and charging system
TWI521905B (en) Exchange method of pairing information for bluetooth devices and pairing switching method of bluetooth devices applying the same
WO2019134306A1 (en) Message processing method, device, terminal apparatus, and readable storage medium
CN108738008B (en) Bluetooth pairing method and system
CN110851387B (en) Interface function configuration method and electronic equipment
US10782799B2 (en) Smart pen pairing and connection
TW201720213A (en) Method, apparatus, and system for matching a wireless device
WO2018049892A1 (en) Data transmission method and apparatus, and terminal
WO2016173251A1 (en) Wi-fi network connection method, wireless speaker, and terminal
CN112968752B (en) Baud rate switching method and device for UART communication and initiator terminal
KR20200106742A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
CN108513715A (en) Wirelessly communicate matching method, radio receiver and wireless transmitting device, system
CN106385304A (en) Data transmission method, device and system
CN107885688B (en) Signal switching method and device
CN108563594B (en) Data transmission method and device and USB adapter
EP3001278A1 (en) Wireless connection switching method, wireless terminal and system thereof
CN113949116B (en) Data transmission method and device
WO2017049557A1 (en) Adapter upgrade method, mobile terminal, and adapter
WO2018120864A1 (en) Communication method and terminal
CN218825507U (en) Dual-interface device and projection equipment
CN216530587U (en) Power supply connector for supplying power to master equipment and slave equipment
CN105224484B (en) The method and apparatus that multiplex roles application is realized in ID authentication device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16900188

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900188

Country of ref document: EP

Kind code of ref document: A1