技术领域technical field
本申请属于信息处理技术领域,尤其涉及一种终端之间的交互方法、交互装置、移动终端及计算机可读存储介质。The present application belongs to the technical field of information processing, and in particular, relates to an interaction method between terminals, an interaction device, a mobile terminal, and a computer-readable storage medium.
背景技术Background technique
在日常使用中,诸如手机、笔记本电脑、平板电脑以及可穿戴设备等终端之间往往需要进行控制、信息传输等交互操作,而现有的终端之间的交互操作常常通过如扫码、密钥认证等方式来实现,趣味性较差,且因为可能需要用户指示终端进行多次的数据发送等操作而导致操作效率较低。In daily use, terminals such as mobile phones, laptops, tablet computers, and wearable devices often require interactive operations such as control and information transmission. Authentication and other methods are less interesting, and the operation efficiency is low because the user may need to instruct the terminal to perform multiple operations such as data transmission.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供了一种终端之间的交互方法、交互装置、移动终端及计算机可读存储介质,可以提升终端之间的交互操作的效率。In view of this, the present application provides an interaction method between terminals, an interaction device, a mobile terminal, and a computer-readable storage medium, which can improve the efficiency of interaction between terminals.
本申请的第一方面提供了一种终端之间的交互方法,包括:A first aspect of the present application provides an interaction method between terminals, including:
在所述移动终端与其他终端设备建立无线通信连接后,获取与所述移动终端相关联的第一信息,并获取与所述其他终端设备中的任一终端设备相关联的第二信息;After the mobile terminal establishes a wireless communication connection with other terminal devices, obtain first information associated with the mobile terminal, and obtain second information associated with any one of the other terminal devices;
根据所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件;According to the first information and the second information, determine whether a preset event occurs between the mobile terminal and any one of the other terminal devices;
若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则控制所述移动终端与所述任一终端设备执行预设交互操作。If a preset event occurs between the mobile terminal and any terminal device among the other terminal devices, the mobile terminal is controlled to perform a preset interaction operation with the any terminal device.
本申请的第二方面提供了终端之间的交互装置,包括:A second aspect of the present application provides an interaction device between terminals, including:
获取模块,用于在所述移动终端与其他终端设备建立无线通信连接后,获取与所述移动终端相关联的第一信息,并获取与所述其他终端设备中的任一终端设备相关联的第二信息;The acquiring module is configured to acquire the first information associated with the mobile terminal after the mobile terminal establishes a wireless communication connection with other terminal devices, and acquire the information associated with any one of the other terminal devices. second information;
判断模块,用于根据所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件;a judgment module, configured to judge whether a preset event occurs between the mobile terminal and any of the other terminal equipments according to the first information and the second information;
控制模块,用于若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则控制所述移动终端与所述任一终端设备执行预设交互操作。A control module, configured to control the mobile terminal to perform a preset interaction operation with any of the other terminal devices if a preset event occurs between the mobile terminal and any of the other terminal devices.
本申请的第三方面提供了一种移动终端,上述移动终端包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如上第一方面的方法的步骤。A third aspect of the present application provides a mobile terminal. The mobile terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the above-mentioned first The steps of the method of an aspect.
本申请的第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上第一方面的方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.
本申请的第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面的方法的步骤。A fifth aspect of the present application provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by one or more processors, implements the steps of the method of the first aspect.
由上可见,本申请在所述移动终端与其他终端设备建立无线通信连接后,获取与所述移动终端相关联的第一信息,并获取与所述其他终端设备中的任一终端设备相关联的第二信息;根据所述第一信息和所述第二信息,检测判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件;若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则控制所述任一终端设备所述移动终端执行与所述任一终端设备所述移动终端当前相同的操作执行预设交互操作。本申请在所述移动终端与其他终端设备建立无线通信连接后,通过所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件,可以了解到所述移动终端与其他终端设备之间是否发生了诸如碰撞等事件,从而可以根据所述无线通信连接和所述移动终端与其他终端设备之间的碰撞等事件,来快速地判断是否可以控制所述移动终端与所述任一终端设备执行预设交互操作。通过本申请可以提升终端之间的交互操作的效率,提高用户体验,而且本申请的方案简单易行,具有较强的易用性和实用性。As can be seen from the above, after the mobile terminal establishes a wireless communication connection with other terminal devices, the present application acquires the first information associated with the mobile terminal, and obtains the first information associated with any terminal device in the other terminal devices. the second information; according to the first information and the second information, detect and determine whether a preset event occurs between the mobile terminal and any of the other terminal devices; if the mobile terminal and the When a preset event occurs in any terminal device among other terminal devices, the mobile terminal of any terminal device is controlled to perform the same operation as the current operation of the mobile terminal of any terminal device to perform a preset interactive operation. In the present application, after the mobile terminal establishes a wireless communication connection with other terminal devices, it is judged whether the mobile terminal has a pre-registration with any of the other terminal devices through the first information and the second information. By setting an event, it is possible to know whether an event such as a collision has occurred between the mobile terminal and other terminal equipment, so that the wireless communication connection and the collision between the mobile terminal and other terminal equipment can be quickly to determine whether the mobile terminal can be controlled to perform a preset interactive operation with any of the terminal devices. Through the present application, the efficiency of the interactive operation between terminals can be improved, and the user experience can be improved, and the solution of the present application is simple and easy to implement, and has strong ease of use and practicability.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请实施例提供的终端之间的交互方法的一种实现流程示意图;FIG. 1 is a schematic flowchart of an implementation of an interaction method between terminals provided by an embodiment of the present application;
图2是本申请实施例提供的终端之间的交互方法的另一种实现流程示意图;2 is a schematic flowchart of another implementation of an interaction method between terminals provided by an embodiment of the present application;
图3是本申请实施例提供的终端之间的交互方法的再一种实现流程示意图;FIG. 3 is a schematic flowchart of still another implementation of an interaction method between terminals provided by an embodiment of the present application;
图4是本申请实施例提供的终端之间的交互装置的结构示意图;FIG. 4 is a schematic structural diagram of an interaction device between terminals provided by an embodiment of the present application;
图5是本申请实施例提供的移动终端的结构示意图。FIG. 5 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other features , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the application herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
具体实现中,本申请实施例中描述的移动终端包括但不限于诸如具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的移动电话、膝上型计算机或平板计算机之类的其它便携式设备。还应当理解的是,在某些实施例中,上述设备并非便携式通信设备,而是具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的台式计算机。In specific implementations, the mobile terminals described in the embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers or tablet computers with touch-sensitive surfaces (eg, touch screen displays and/or touch pads). . It should also be understood that, in some embodiments, the above-described devices are not portable communication devices, but rather desktop computers with touch-sensitive surfaces (eg, touch screen displays and/or touch pads).
在接下来的讨论中,描述了包括显示器和触摸敏感表面的移动终端。然而,应当理解的是,移动终端可以包括诸如物理键盘、鼠标和/或控制杆的一个或多个其它物理用户接口设备。In the discussion that follows, a mobile terminal including a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse and/or joystick.
移动终端支持各种应用程序,例如以下中的一个或多个:绘图应用程序、演示应用程序、文字处理应用程序、网站创建应用程序、盘刻录应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息收发应用程序、锻炼支持应用程序、照片管理应用程序、数码相机应用程序、数字摄影机应用程序、web浏览应用程序、数字音乐播放器应用程序和/或数字视频播放器应用程序。The mobile terminal supports various applications such as one or more of the following: drawing application, presentation application, word processing application, website creation application, disc burning application, spreadsheet application, gaming application, telephone Apps, Video Conferencing Apps, Email Apps, Instant Messaging Apps, Workout Support Apps, Photo Management Apps, Digital Camera Apps, Digital Video Camera Apps, Web Browsing Apps, Digital Music Player Apps and/or digital video player applications.
可以在移动终端上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。这样,终端的公共物理架构(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within respective applications. In this way, the common physical architecture of the terminal (eg, touch-sensitive surface) can support various applications with a user interface that is intuitive and transparent to the user.
另外,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application, the terms "first", "second" and the like are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the above-mentioned technical solutions of the present application, the following specific embodiments are used for description.
实施例一Example 1
参见图1,是本申请实施例提供的终端之间的交互方法的实现流程示意图,该终端之间的交互方法可以包括以下步骤:Referring to FIG. 1, it is a schematic flowchart of the implementation of the interaction method between terminals provided by the embodiment of the present application. The interaction method between terminals may include the following steps:
步骤101,在所述移动终端与其他终端设备建立无线通信连接后,获取与所述移动终端相关联的第一信息,并获取与所述其他终端设备中的任一终端设备相关联的第二信息。Step 101: After the mobile terminal establishes a wireless communication connection with other terminal devices, obtain first information associated with the mobile terminal, and obtain second information associated with any of the other terminal devices. information.
本申请实施例中,所述移动终端和所述终端设备的具体类型可以有多种。示例性的,所述移动终端的具体类型可以是手机、平板电脑、笔记本电脑或者可穿戴设备等等,所述其他终端设备的具体类型可以是手机、平板电脑、笔记本电脑、可穿戴设备、台式电脑等等。In this embodiment of the present application, there may be multiple specific types of the mobile terminal and the terminal device. Exemplarily, the specific type of the mobile terminal may be a mobile phone, a tablet computer, a notebook computer or a wearable device, etc., and the specific type of the other terminal device may be a mobile phone, a tablet computer, a notebook computer, a wearable device, a desktop computer, etc. computer, etc.
示例性的,所述无线通信连接可以包括蓝牙连接、Wi-Fi连接、近场通信(NearField Communication,NFC)连接等等,在此不做限制。其中,所述无线通信连接为蓝牙连接时,所述移动终端可以与所述其他终端设备中的任一设备进行短距离的数据交换,数据传输效率较高,因此,可以作为移动终端与其他终端设备之间进行较为高效的无线通信连接的一种方式。Exemplarily, the wireless communication connection may include Bluetooth connection, Wi-Fi connection, Near Field Communication (Near Field Communication, NFC) connection, etc., which are not limited herein. Wherein, when the wireless communication connection is a Bluetooth connection, the mobile terminal can perform short-distance data exchange with any of the other terminal devices, and the data transmission efficiency is high. Therefore, the mobile terminal can be used as a mobile terminal to communicate with other terminals. A way for more efficient wireless communication connection between devices.
本申请实施例中,所述终端之间的交互方法可以应用于所述移动终端以及所述任一终端设备中的一个或多个终端上。示例性的,若所述交互方法应用于所述移动终端上,则可以是通过所述移动终端上的预设传感器获取与所述移动终端相关联的第一信息,并且,所述移动终端通过所述无线通信连接,从所述其他终端设备中的任一终端设备,获取与所述其他终端设备中的任一终端设备相关联的第二信息。其中,所述预设传感器可以是倾斜传感器(tilt sensor)、重力传感器(Gravity sensor)、陀螺仪、压力传感器等等中的至少一种。所述第一信息可以包括与所述移动终端相关联的位置坐标信息、速度信息、加速度信息、第一指示信息、压力信息等等中至少一种。其中,需要说明的是,所述第一指示信息可以是所述移动终端中生成的诸如文字信息、参数信息等等可以指示所述移动终端的某些操作或者状态的信息;所述位置坐标信息可以由速度信息、加速度信息等来获得,也可以通过预设传感器直接采集得到;类似的,所述速度信息可以是通过加速度信息或者位置坐标信息来获得,也可以是通过预设传感器直接采集得到。所述第二信息中,可以包括与所述其他终端设备中的任一终端设备相关联的位置坐标信息、速度信息、加速度信息、第二指示信息等等中至少一种。所述第二指示信息可以是所述任一终端设备中生成的诸如文字信息、参数信息等等可以指示所述任一终端设备的某些操作或者状态的信息;所述第二信息中的位置坐标信息、速度信息、加速度信息、压力信息等等,可以是通过所述任一终端设备上的预设传感器采集得到的,也可以是通过对所述预设传感器采集得到的数据进行计算得到的,并且,所述第二信息可以通过所述预设无线通信连接传输从所述任一终端设备传输至所述移动终端。所述第一信息和所述第二信息的具体获取方式可以有多种。In this embodiment of the present application, the interaction method between the terminals may be applied to the mobile terminal and one or more terminals in any terminal device. Exemplarily, if the interaction method is applied to the mobile terminal, the first information associated with the mobile terminal may be acquired through a preset sensor on the mobile terminal, and the mobile terminal may use a preset sensor on the mobile terminal to obtain the first information associated with the mobile terminal. In the wireless communication connection, the second information associated with any one of the other terminal devices is acquired from any one of the other terminal devices. The preset sensor may be at least one of a tilt sensor (tilt sensor), a gravity sensor (Gravity sensor), a gyroscope, a pressure sensor, and the like. The first information may include at least one of position coordinate information, velocity information, acceleration information, first indication information, pressure information, and the like associated with the mobile terminal. It should be noted that the first indication information may be information generated in the mobile terminal, such as text information, parameter information, etc. that can indicate certain operations or states of the mobile terminal; the position coordinate information It can be obtained from speed information, acceleration information, etc., or can be directly collected through preset sensors; similarly, the speed information can be obtained through acceleration information or position coordinate information, or can be directly collected through preset sensors. . The second information may include at least one of position coordinate information, velocity information, acceleration information, second indication information, and the like associated with any of the other terminal devices. The second indication information may be information generated in the any terminal device, such as text information, parameter information, etc. that can indicate certain operations or states of the any terminal device; the position in the second information Coordinate information, velocity information, acceleration information, pressure information, etc., may be acquired by a preset sensor on any of the terminal devices, or may be obtained by calculating the data acquired by the preset sensor , and the second information may be transmitted from any terminal device to the mobile terminal through the preset wireless communication connection. There may be various specific ways of acquiring the first information and the second information.
步骤102,根据所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件。Step 102, according to the first information and the second information, determine whether a preset event occurs between the mobile terminal and any terminal device among the other terminal devices.
本申请实施例中,所述预设事件可以是用户或者开发者根据实际应用场景进行设置,例如,所述预设事件可以是碰撞事件、同时摇一摇事件等等。其中,示例性的,可以根据所述第一信息和所述第二信息,分别判断所述移动终端和所述其他终端设备中的任一终端设备是否发生预设动作,再根据所述移动终端和所述其他终端设备中的任一终端设备中分别发生所述预设动作的时间,来判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件,从而可以确定所述预设事件是在这两个终端之间发生,而不是在其他终端之间发生。In this embodiment of the present application, the preset event may be set by a user or a developer according to an actual application scenario, for example, the preset event may be a collision event, a simultaneous shake event, and the like. Wherein, exemplarily, according to the first information and the second information, it can be judged whether any one of the mobile terminal and the other terminal equipment has a preset action respectively, and then according to the mobile terminal and the time when the preset action occurs in any of the other terminal devices, to determine whether the mobile terminal has a preset event with any of the other terminal devices, so as to determine whether the mobile terminal has a preset event with any of the other terminal devices The preset event occurs between the two terminals, not between other terminals.
示例性的,若所述预设事件为碰撞事件,则可以通过获取所述移动终端的位置坐标信息和/或速度信息等,并根据所述位置坐标信息和/或速度信息来判断所述移动终端在一段时间内的位移情况或者速度变化情况,从而判断所述移动终端是否执行了撞击动作;此外,所述移动终端还可以通过所述无线通信连接获取所述任一终端设备发送的指示信息,所述指示信息可以指示所述任一终端设备是否执行了撞击动作,所述指示信息可以是所述任一终端设备根据所述任一终端设备上的预设传感器所采集的数据进行处理后得到的;若所述移动终端和所述任一终端设备均执行了所述撞击动作,则可以通过时间戳等方式,来确定所述移动终端执行所述撞击动作的时间与所述任一终端设备执行所述撞击动作的时间是否接近,从而判断所述移动终端是否与所述任一终端设备发送了碰撞事件。Exemplarily, if the preset event is a collision event, the movement may be determined by acquiring the position coordinate information and/or speed information of the mobile terminal, etc., and according to the position coordinate information and/or speed information. The displacement or speed change of the terminal within a period of time, so as to determine whether the mobile terminal has performed a collision action; in addition, the mobile terminal can also obtain the instruction information sent by any terminal device through the wireless communication connection. , the indication information can indicate whether the any terminal device has performed a collision action, and the indication information can be processed by the any terminal device according to the data collected by the preset sensors on the any terminal device. obtained; if both the mobile terminal and the any terminal device have performed the impact action, the time when the mobile terminal performs the impact action and the impact action of the any terminal can be determined by means such as timestamps. Whether the time when the device performs the impact action is close, so as to determine whether the mobile terminal has sent a collision event with any of the terminal devices.
步骤103,若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则控制所述移动终端与所述任一终端设备执行预设交互操作。Step 103 , if a preset event occurs between the mobile terminal and any one of the other terminal devices, control the mobile terminal to perform a preset interaction operation with any one of the terminal devices.
本申请实施例中,所述预设交互操作可以是根据实际应用场景进行设置。示例性的,所述预设交互操作可以包括所述移动终端与所述任一终端设备之间的认证、对所述移动终端或者所述任一终端设备上的指定模块(如发光模块、麦克风等)的控制以及所述移动终端与所述任一终端设备之间的电子支付操作等等中的一种或多种。需要说明的是,本申请实施例中,所述控制所述移动终端与所述任一终端设备执行预设交互操作可以是通过对所述移动终端的控制或者对所述任一终端设备的控制来实现,例如,可以是通过控制所述移动终端,从所述任一终端设备接收控制指令,并根据所述控制指令来控制所述移动终端上的发光模块,其中,所述发光模块可以是安装于所述移动终端上的,也可以是外接于所述移动终端的,所述发光模块可以包括发光二极管(Light Emitting Diode,LED)、有机发光二极管(Organic Light-Emitting Diode,OLED)等可发光的装置。In this embodiment of the present application, the preset interactive operation may be set according to an actual application scenario. Exemplarily, the preset interaction operation may include authentication between the mobile terminal and any terminal device, performing authentication on the mobile terminal or a specified module (such as a light-emitting module, a microphone, etc.) on the mobile terminal or any terminal device. etc.) and one or more of electronic payment operations between the mobile terminal and any terminal device, etc. It should be noted that, in this embodiment of the present application, the controlling of the mobile terminal to perform a preset interactive operation with any of the terminal devices may be through the control of the mobile terminal or the control of any of the terminal devices For example, it can be achieved by controlling the mobile terminal, receiving a control instruction from any of the terminal devices, and controlling the light-emitting module on the mobile terminal according to the control instruction, wherein the light-emitting module can be Installed on the mobile terminal or externally connected to the mobile terminal, the light-emitting module may include a light-emitting diode (Light Emitting Diode, LED), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), etc. Glowing device.
本申请实施例在所述移动终端与其他终端设备建立无线通信连接后,通过所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件,可以了解到所述移动终端与其他终端设备之间是否发生了诸如碰撞等事件,从而可以根据所述无线通信连接和所述移动终端与其他终端设备之间的碰撞等事件,来快速地判断是否可以控制所述移动终端与所述任一终端设备执行预设交互操作。通过本申请可以提升终端之间的交互操作的效率,提高用户体验,而且本申请的方案简单易行,具有较强的易用性和实用性。In this embodiment of the present application, after the mobile terminal establishes a wireless communication connection with other terminal devices, it is determined whether the mobile terminal is connected to any terminal device among the other terminal devices by using the first information and the second information When a preset event occurs, it can be known whether an event such as a collision has occurred between the mobile terminal and other terminal devices, so that events such as the wireless communication connection and the collision between the mobile terminal and other terminal devices can be to quickly determine whether the mobile terminal can be controlled to perform a preset interactive operation with any of the terminal devices. Through the present application, the efficiency of the interactive operation between terminals can be improved, and the user experience can be improved, and the solution of the present application is simple and easy to implement, and has strong ease of use and practicability.
实施例二Embodiment 2
在上述实施例的基础上,参见图2,是本申请实施例提供的终端之间的交互方法的另一实现流程示意图,该终端之间的交互方法可以包括以下步骤:On the basis of the foregoing embodiment, referring to FIG. 2 , it is a schematic flowchart of another implementation of the interaction method between terminals provided by the embodiment of the present application. The interaction method between terminals may include the following steps:
步骤201,在所述移动终端与其他终端设备建立无线通信连接后,获取与所述移动终端相关联的第一信息,并获取与所述其他终端设备中的任一终端设备相关联的第二信息。Step 201, after the mobile terminal establishes a wireless communication connection with other terminal devices, obtain first information associated with the mobile terminal, and obtain second information associated with any of the other terminal devices. information.
步骤202,根据所述第一信息,判断所述移动终端是否执行预设动作。Step 202: According to the first information, determine whether the mobile terminal performs a preset action.
示例性的,所述第一信息可以包括与所述移动终端相关联的位置坐标信息、速度信息、加速度信息、第一指示信息、压力信息等等中至少一种。其中,需要说明的是,所述第一指示信息可以是所述移动终端中生成的诸如文字信息、参数信息等等可以指示所述移动终端的某些操作或者状态的信息;所述位置坐标信息可以由速度信息、加速度信息等来获得,也可以通过预设传感器直接采集得到;类似的,所述速度信息可以是通过加速度信息或者位置坐标信息来获得,也可以是通过预设传感器直接采集得到。Exemplarily, the first information may include at least one of position coordinate information, speed information, acceleration information, first indication information, pressure information and the like associated with the mobile terminal. It should be noted that the first indication information may be information generated in the mobile terminal, such as text information, parameter information, etc. that can indicate certain operations or states of the mobile terminal; the position coordinate information It can be obtained from speed information, acceleration information, etc., or can be directly collected through preset sensors; similarly, the speed information can be obtained through acceleration information or position coordinate information, or can be directly collected through preset sensors. .
本申请实施例中,所述预设动作与所述预设事件相对应,可以认为是所述预设事件在所述移动终端或者所述任一终端设备等单一终端上的体现。例如,若所述预设事件为所述移动终端与所述任一终端设备之间的碰撞事件,则所述预设动作可以相应地为所述移动终端的撞击动作;此时,示例性的,可以通过所述第一信息中的位置坐标信息判断所述移动终端在一段时间内的位移情况,或者根据所述第一信息中的速度信息判断所述移动终端在一段时间内的速度变化情况来判断所述移动终端是否执行所述撞击动作。In this embodiment of the present application, the preset action corresponds to the preset event, and may be considered as an embodiment of the preset event on a single terminal such as the mobile terminal or any terminal device. For example, if the preset event is a collision event between the mobile terminal and any of the terminal devices, the preset action may correspondingly be a collision action of the mobile terminal; in this case, the exemplary , the displacement of the mobile terminal in a period of time can be judged by the position coordinate information in the first information, or the speed change of the mobile terminal in a period of time can be judged according to the speed information in the first information to determine whether the mobile terminal performs the impact action.
步骤203,根据所述第二信息,判断所述其他终端设备中的任一终端设备是否执行预设动作。Step 203, according to the second information, determine whether any one of the other terminal devices performs a preset action.
本申请实施例中,所述第二信息可以包括与所述其他终端设备中的任一终端设备相关联的位置坐标信息、速度信息、加速度信息、第二指示信息等等中至少一种。所述第二指示信息可以是所述任一终端设备中生成的诸如文字信息、参数信息等等可以指示所述任一终端设备的某些操作或者状态的信息;所述第二信息中的位置坐标信息、速度信息、加速度信息、压力信息等等,可以是通过所述任一终端设备上的预设传感器采集得到的,也可以是通过对所述预设传感器采集得到的数据进行计算得到的。此外,所述第二信息可以通过所述预设无线通信连接传输从所述任一终端设备传输至所述移动终端。In this embodiment of the present application, the second information may include at least one of position coordinate information, velocity information, acceleration information, second indication information, and the like associated with any of the other terminal devices. The second indication information may be information generated in the any terminal device, such as text information, parameter information, etc. that can indicate certain operations or states of the any terminal device; the position in the second information Coordinate information, velocity information, acceleration information, pressure information, etc., may be acquired by a preset sensor on any of the terminal devices, or may be obtained by calculating the data acquired by the preset sensor . Furthermore, the second information may be transmitted from the any terminal device to the mobile terminal via the preset wireless communication connection.
步骤204,若所述移动终端执行所述预设动作,且,所述其他终端设备中的任一终端设备执行所述预设动作,则获取所述移动终端执行所述预设动作的第一时间戳,并获取所述任一终端设备执行所述预设动作的第二时间戳。Step 204: If the mobile terminal executes the preset action, and any terminal device among the other terminal devices executes the preset action, acquire the first example of the mobile terminal executing the preset action. timestamp, and obtain the second timestamp of any terminal device performing the preset action.
本申请实施例中,时间戳(timestamp)可以表示一份数据在某个特定时间之前已经存在的、完整的、可验证的数据,通常是一个字符序列,唯一地标识某一刻的时间。例如Unix时间戳(Unix timestamp)是一种从格林威治时间1970年01月01日00时00分00秒(北京时间1970年01月01日08时00分00秒)起至某一刻的总秒数的时间戳。相应的,所述第一时间戳可以唯一地标识所述移动终端执行所述预设动作的时间,所述第二时间戳可以唯一地标识所述任一终端设备执行所述预设动作的时间。需要说明的是,所述第一时间戳可以表示所述移动终端执行所述预设动作的开始时间、结束时间或者执行过程中某一时刻的时间,所述第二时间戳也可以表示所述任一终端设备执行所述预设动作的开始时间、结束时间或者执行过程中某一时刻的时间。In this embodiment of the present application, a timestamp may represent a piece of complete and verifiable data that already exists before a certain time, and is usually a sequence of characters that uniquely identifies the time at a certain moment. For example, Unix timestamp (Unix timestamp) is a total time from January 01, 1970 00:00:00 GMT (Beijing time, January 01, 1970 08:00:00) to a certain moment Timestamp in seconds. Correspondingly, the first timestamp can uniquely identify the time when the mobile terminal performs the preset action, and the second timestamp can uniquely identify the time when any terminal device executes the preset action. . It should be noted that the first time stamp may represent the start time, the end time or the time at a certain moment during the execution of the preset action by the mobile terminal, and the second time stamp may also represent the The start time, the end time or the time at a certain moment in the execution process for any terminal device to execute the preset action.
可选的,可以通过所述预设无线通信连接,由所述移动终端从所述任一终端设备获取所述第二时间戳,从而可以在所述移动终端中执行比对所述第一时间戳和所述第二时间戳的操作。Optionally, the mobile terminal may acquire the second time stamp from any terminal device through the preset wireless communication connection, so that the mobile terminal may perform comparison of the first time. stamp and the operation of the second timestamp.
步骤205,若所述第一时间戳与所述第二时间戳之间的差值小于预设时间戳阈值,则确定所述移动终端与所述其他终端设备中的任一终端设备发生所述预设事件。Step 205: If the difference between the first time stamp and the second time stamp is less than a preset time stamp threshold, determine that the mobile terminal and any terminal device in the other terminal devices Preset events.
本申请实施例中,若所述第一时间戳与所述第二时间戳之间的差值小于预设时间戳阈值,则可以认为所述移动终端与所述任一终端设备是在同一时间点或者接近的时间点执行所述预设动作,从而可以确定所述预设事件是在所述移动终端和所述任一终端设备之间发生,而不是在其他终端之间发生,即可以确定所述移动终端与所述其他终端设备中的任一终端设备发生所述预设事件。In this embodiment of the present application, if the difference between the first timestamp and the second timestamp is less than a preset timestamp threshold, it may be considered that the mobile terminal and any terminal device are at the same time Execute the preset action at or near the time point, so that it can be determined that the preset event occurs between the mobile terminal and any of the terminal devices, rather than between other terminals. The preset event occurs between the mobile terminal and any one of the other terminal devices.
步骤206,若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则控制所述移动终端与所述任一终端设备执行预设交互操作。Step 206 , if a preset event occurs between the mobile terminal and any terminal device among the other terminal devices, control the mobile terminal and any terminal device to perform a preset interaction operation.
在本申请实施例中,上述步骤201、206分别与上述步骤101、103相同,具体可参见上述步骤101、103的相关描述,在此不再赘述。In this embodiment of the present application, the above steps 201 and 206 are respectively the same as the above steps 101 and 103. For details, please refer to the relevant descriptions of the above steps 101 and 103, which will not be repeated here.
可选的,所述获取与所述移动终端相关联的第一信息,包括:Optionally, the acquiring the first information associated with the mobile terminal includes:
通过预设传感器采集所述移动终端所对应的第一坐标数据集合,其中,所述第一坐标数据集合包括第一坐标数据、第二坐标数据和第三坐标数据,所述第一坐标数据的第一采集时间与第二坐标数据的第二采集时间的时间差,和,所述第二坐标数据的第二采集时间与第三坐标数据的第三采集时间的时间差均为第一预设时间阈值,所述第一采集时间早于所述第二采集时间,所述第二采集时间早于所述第三采集时间;A first coordinate data set corresponding to the mobile terminal is collected by a preset sensor, wherein the first coordinate data set includes first coordinate data, second coordinate data and third coordinate data, and the first coordinate data The time difference between the first collection time and the second collection time of the second coordinate data, and the time difference between the second collection time of the second coordinate data and the third collection time of the third coordinate data are both the first preset time threshold , the first collection time is earlier than the second collection time, and the second collection time is earlier than the third collection time;
相应的,所述根据所述第一信息,判断所述移动终端是否执行预设动作,包括:Correspondingly, the determining whether the mobile terminal performs a preset action according to the first information includes:
根据所述第一坐标数据集合,判断所述移动终端是否执行所述预设动作。According to the first coordinate data set, it is determined whether the mobile terminal performs the preset action.
本申请实施例中,所述预设传感器可以包括倾斜传感器(tilt sensor)、重力传感器(Gravity sensor)、陀螺仪等等可以直接或者间接获取到所述移动终端的位置坐标数据的传感器。其中,所述第一坐标数据集合中的第一坐标数据、第二坐标数据和第三坐标数据均可以指示所述移动终端在不同时刻,在三维空间中的空间位置情况。根据所述第一坐标数据集合,可以确定所述移动终端在一段时间内的位移变化情况,从而判断所述移动终端是否执行所述预设动作。所述预设动作与所述预设事件相对应,可以认为是所述预设事件在所述移动终端或者所述任一终端设备等终端上的体现。In this embodiment of the present application, the preset sensor may include a tilt sensor, a gravity sensor, a gyroscope, and other sensors that can directly or indirectly acquire the position coordinate data of the mobile terminal. Wherein, the first coordinate data, the second coordinate data and the third coordinate data in the first coordinate data set may all indicate the spatial position of the mobile terminal in the three-dimensional space at different times. According to the first coordinate data set, the displacement change of the mobile terminal within a period of time can be determined, so as to determine whether the mobile terminal performs the preset action. The preset action corresponds to the preset event, and may be considered as the embodiment of the preset event on the mobile terminal or any terminal device or other terminal.
本申请实施例中,所述第一预设时间阈值可以根据所述传感器的采样频率来确定,可以是用户或者开发者根据实际应用场景来预先确定的。In this embodiment of the present application, the first preset time threshold may be determined according to the sampling frequency of the sensor, and may be predetermined by a user or a developer according to an actual application scenario.
本申请实施例中,所述第一坐标数据集合可以通过结构体(struct)的数据结构来记录。当然,也可以通过诸如列表、文本等其他方式来记录所述第一坐标数据集合。其中,所述结构体是由一系列具有相同类型或不同类型的数据构成的数据集合。In this embodiment of the present application, the first coordinate data set may be recorded through a data structure of a structure (struct). Of course, the first coordinate data set can also be recorded in other ways such as a list, text, and the like. Wherein, the structure is a data set composed of a series of data of the same type or different types.
可选的,所述根据所述第一坐标数据集合,判断所述移动终端是否执行所述预设动作,包括:Optionally, the determining whether the mobile terminal performs the preset action according to the first coordinate data set includes:
计算所述第一坐标数据与第二坐标数据之间的第一差值;calculating a first difference between the first coordinate data and the second coordinate data;
若所述第一差值符合第一预设条件,则计算所述第二坐标数据与第三坐标数据之间的第二差值;If the first difference meets a first preset condition, calculating a second difference between the second coordinate data and the third coordinate data;
若所述第二差值符合第二预设条件,则确定所述移动终端执行所述预设动作。If the second difference meets a second preset condition, it is determined that the mobile terminal performs the preset action.
本申请实施例中,所述第一差值可以是所述第一坐标数据中部分或者全部数据与所述第二坐标数据中对应的部分或者全部数据的差值。例如,所述第一坐标数据和所述第二坐标数据分别包括沿x轴方向、y轴方向和z轴方向的坐标值,那么,所述第一差值中可以包括所述第一坐标数据和所述第二坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值。此外,所述第二差值可以是所述第二坐标数据中部分或者全部数据与所述第三坐标数据中对应的部分或者全部数据的差值。示例性的,在所述移动终端中,可以通过fabs函数来计算所述第一坐标数据与第二坐标数据之间的第一差值并判断所述第一差值是否符合第一预设条件,以及计算所述第二坐标数据与第三坐标数据之间的第二差值并判断所述第二差值是否符合第二预设条件,其中,所述fabs函数可以获取到所述第一差值的浮点数绝对值,从而提高判断精度。In this embodiment of the present application, the first difference value may be a difference value between some or all of the data in the first coordinate data and a corresponding part or all of the data in the second coordinate data. For example, the first coordinate data and the second coordinate data respectively include coordinate values along the x-axis direction, the y-axis direction and the z-axis direction, then, the first difference value may include the first coordinate data and the second coordinate data, the difference between the coordinate values along the x-axis direction, the y-axis direction and/or the z-axis direction. In addition, the second difference value may be a difference value between some or all of the data in the second coordinate data and a corresponding part or all of the data in the third coordinate data. Exemplarily, in the mobile terminal, the fabs function can be used to calculate the first difference between the first coordinate data and the second coordinate data and determine whether the first difference meets the first preset condition. , and calculate the second difference between the second coordinate data and the third coordinate data and determine whether the second difference meets the second preset condition, wherein the fabs function can obtain the first The absolute value of the floating point number of the difference, thereby improving the judgment accuracy.
可选的,所述第一坐标数据、第二坐标数据和所述第三坐标数据分别包括沿x轴方向、y轴方向和z轴方向的坐标值;Optionally, the first coordinate data, the second coordinate data and the third coordinate data respectively include coordinate values along the x-axis direction, the y-axis direction and the z-axis direction;
所述计算所述第一坐标数据与第二坐标数据之间的第一差值,包括:The calculating the first difference between the first coordinate data and the second coordinate data includes:
计算所述第一坐标数据与第二坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值,得到第一差值;Calculate the difference between the coordinate values along the x-axis direction, the y-axis direction and/or the z-axis direction in the first coordinate data and the second coordinate data to obtain the first difference value;
相应的,所述若所述第一差值符合第一预设条件,则计算所述第二坐标数据与第三坐标数据之间的第二差值,包括:Correspondingly, if the first difference meets the first preset condition, calculating the second difference between the second coordinate data and the third coordinate data includes:
若所述第一差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第一预设差值,则确定所述第一差值符合第一预设条件,并计算所述第二坐标数据与第三坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值,得到第二差值;If, in the first difference, the difference of coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than the first preset difference value, it is determined that the first difference value conforms to the first difference. a preset condition, and calculate the difference between the coordinate values in the second coordinate data and the third coordinate data, along the x-axis direction, the y-axis direction and/or the z-axis direction, to obtain the second difference value;
相应的,所述若所述第二差值符合第二预设条件,则确定所述移动终端执行所述预设动作,包括:Correspondingly, determining that the mobile terminal performs the preset action if the second difference meets the second preset condition, includes:
若所述第二差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第二预设差值,则确定所述第二差值符合第二预设条件,并确定所述移动终端执行所述预设动作。If, in the second difference, the difference of coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than the second preset difference value, it is determined that the second difference value conforms to the first 2 preset conditions, and determine that the mobile terminal performs the preset action.
本申请实施例中,若所述第一差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第一预设差值,则可以确定所述移动终端在一段时间内(如时间间隔为第一预设时间阈值)的位置偏移程度。在此技术上,进一步判断所述第二差值中,沿x轴方向、y轴方向以及z轴方向中是否存在至少一个方向的坐标值的差值大于第二预设差值,从而进一步确定所述移动终端的位置偏移情况,以准确判断所述移动终端是否执行所述预设动作。In this embodiment of the present application, if in the first difference, the difference of coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than the first preset difference value, it can be determined that the The position offset degree of the mobile terminal within a period of time (eg, the time interval is a first preset time threshold). In this technology, it is further determined whether there is a difference in coordinate values in at least one direction along the x-axis direction, the y-axis direction, and the z-axis direction in the second difference value that is greater than the second preset difference value, so as to further determine The position deviation of the mobile terminal is used to accurately determine whether the mobile terminal executes the preset action.
本申请实施例中,由于所述第一坐标数据的第一采集时间与第二坐标数据的第二采集时间的时间差,和,所述第二坐标数据的第二采集时间与第三坐标数据的第三采集时间的时间差均为第一预设时间阈值,所述第一采集时间早于所述第二采集时间,所述第二采集时间早于所述第三采集时间,因此,通过判断所述第一坐标数据与第二坐标数据之间的偏移情况,再判断所述第一坐标数据与第二坐标数据之间的偏移情况,可以通过两个层次的偏移情况来更准确地判断移动终端的位置偏移情况,以减小干扰,提升判断的准确性。In this embodiment of the present application, due to the time difference between the first collection time of the first coordinate data and the second collection time of the second coordinate data, and the difference between the second collection time of the second coordinate data and the third coordinate data The time difference between the third collection time is the first preset time threshold, the first collection time is earlier than the second collection time, and the second collection time is earlier than the third collection time. Therefore, by judging the Describe the offset situation between the first coordinate data and the second coordinate data, and then judge the offset situation between the first coordinate data and the second coordinate data. Determine the position offset of the mobile terminal to reduce interference and improve the accuracy of the determination.
可选的,所述获取与所述其他终端设备中的任一终端设备相关联的第二信息,包括:Optionally, the acquiring second information associated with any one of the other terminal devices includes:
所述移动终端通过所述无线通信连接,从所述其他终端设备中的任一终端设备获取所述第二信息,其中,所述第二信息包括所述任一终端设备所对应的第二坐标数据集合或者指示信息,其中,所述第二坐标数据集合包括第四坐标数据、第五坐标数据和第六坐标数据,所述第四坐标数据的第四采集时间与第五坐标数据的第五采集时间的时间差,和,所述第五坐标数据的第五采集时间与第六坐标数据的第六采集时间的时间差均为第二预设时间阈值,所述第四采集时间早于所述第五采集时间,所述第五采集时间早于所述第六采集时间,所述指示信息指示所述任一终端设备是否执行预设动作;The mobile terminal obtains the second information from any terminal device among the other terminal devices through the wireless communication connection, wherein the second information includes the second coordinates corresponding to the any terminal device A data set or indication information, wherein the second coordinate data set includes fourth coordinate data, fifth coordinate data, and sixth coordinate data, and the fourth collection time of the fourth coordinate data is the same as the fifth coordinate data of the fifth coordinate data. The time difference between the collection times, and, the time difference between the fifth collection time of the fifth coordinate data and the sixth collection time of the sixth coordinate data is a second preset time threshold, and the fourth collection time is earlier than the sixth collection time. Fifth collection time, the fifth collection time is earlier than the sixth collection time, and the indication information indicates whether the any terminal device performs a preset action;
相应的,所述根据所述第二信息,判断所述其他终端设备中的任一终端设备是否执行预设动作,包括:Correspondingly, determining whether any one of the other terminal devices performs a preset action according to the second information includes:
根据所述第二坐标数据集合或者指示信息,判断所述其他终端设备中的任一终端设备是否执行预设动作。According to the second coordinate data set or the indication information, it is determined whether any one of the other terminal devices performs a preset action.
本申请实施例中,可以通过结构体(struct)的数据结构来记录所述第二坐标数据集合。当然,也可以通过诸如列表、文本等其他方式来记录所述第二坐标数据集合。其中,所述移动终端可以获取所述第二坐标数据集合后,根据所述第二坐标数据集合判断所述任一终端设备是否执行所述预设动作。In this embodiment of the present application, the second coordinate data set may be recorded through a data structure of a structure (struct). Of course, the second coordinate data set can also be recorded in other ways such as a list, text, and the like. The mobile terminal may, after acquiring the second coordinate data set, determine whether any terminal device performs the preset action according to the second coordinate data set.
示例性的,所述第四坐标数据、第五坐标数据和所述第六坐标数据分别包括沿x轴方向、y轴方向和z轴方向的坐标值,相应的,所述根据所述第二坐标数据集合判断所述任一终端设备是否执行所述预设动作可以包括:Exemplarily, the fourth coordinate data, the fifth coordinate data, and the sixth coordinate data respectively include coordinate values along the x-axis direction, the y-axis direction, and the z-axis direction. The coordinate data set judging whether the any terminal device performs the preset action may include:
计算所述第四坐标数据与第五坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值,得到第三差值;Calculate the difference between the coordinate values along the x-axis direction, the y-axis direction and/or the z-axis direction in the fourth coordinate data and the fifth coordinate data to obtain a third difference value;
若所述第三差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第三预设差值,则确定所述第三差值符合第三预设条件,并计算所述第五坐标数据与第六坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值,得到第四差值;If, in the third difference, the difference of the coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than the third preset difference value, it is determined that the third difference value conforms to the first Three preset conditions, and calculate the difference between the coordinate values of the fifth coordinate data and the sixth coordinate data, along the x-axis direction, the y-axis direction and/or the z-axis direction, to obtain a fourth difference value;
若所述第四差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第四预设差值,则确定所述移动终端执行所述预设动作。If, in the fourth difference, the difference between the coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than a fourth preset difference value, it is determined that the mobile terminal performs the preset set action.
本申请实施例中,所述指示信息可以包括所述任一终端设备中生成的诸如文字信息、参数信息等等可以指示所述任一终端设备是否执行所述预设动作的信息。所述指示信息可以是所述任一终端设备对所述任一终端设备上的预设传感器采集的数据进行处理得到的。In this embodiment of the present application, the indication information may include information such as text information, parameter information, etc. generated in the any terminal device, which may indicate whether the any terminal device performs the preset action. The indication information may be obtained by processing data collected by a preset sensor on any terminal device by the any terminal device.
本申请实施例中,可以根据所述第一信息和所述第二信息,分别判断所述移动终端和所述其他终端设备中的任一终端设备是否发生预设动作,再根据所述移动终端和所述其他终端设备中的任一终端设备中分别发生所述预设动作的时间戳,来判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件,从而可以确定所述预设事件是在所述移动终端与所述其他终端设备中的任一终端设备之间发生,而不是在其他终端之间发生,从而保障了终端之间进行交互的准确性。In this embodiment of the present application, it may be determined, according to the first information and the second information, whether the mobile terminal and any one of the other terminal devices have performed a preset action, respectively, and then according to the mobile terminal and the time stamp of the preset action in any of the other terminal devices, respectively, to determine whether the mobile terminal has a preset event with any of the other terminal devices, so as to be able to It is determined that the preset event occurs between the mobile terminal and any one of the other terminal devices, rather than between other terminals, thereby ensuring the accuracy of interaction between the terminals.
实施例三Embodiment 3
在上述实施例的基础上,参见图3,是本申请实施例提供的终端之间的交互方法的再一种实现流程示意图,该终端之间的交互方法可以包括以下步骤:On the basis of the above-mentioned embodiment, referring to FIG. 3 , it is a schematic flowchart of another implementation of the interaction method between terminals provided by the embodiment of the present application. The interaction method between terminals may include the following steps:
步骤301,在所述移动终端与其他终端设备建立无线通信连接后,获取与所述移动终端相关联的第一信息,并获取与所述其他终端设备中的任一终端设备相关联的第二信息。Step 301: After the mobile terminal establishes a wireless communication connection with other terminal devices, obtain first information associated with the mobile terminal, and obtain second information associated with any of the other terminal devices. information.
步骤302,根据所述第一信息和所述第二信息,检测判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件。Step 302: Detect and determine whether a preset event occurs between the mobile terminal and any terminal device among the other terminal devices according to the first information and the second information.
在本申请实施例中,上述步骤301、302分别与上述步骤101、102相同,具体可参见上述步骤101、102的相关描述,在此不再赘述。In this embodiment of the present application, the foregoing steps 301 and 302 are respectively the same as the foregoing steps 101 and 102. For details, reference may be made to the relevant descriptions of the foregoing steps 101 and 102, which will not be repeated here.
步骤303,若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则确定所述移动终端以及所述任一终端设备中的一个为控制端,并确定所述移动终端以及所述任一终端设备中除所述控制端之外的终端为执行端。Step 303: If a preset event occurs between the mobile terminal and any one of the other terminal devices, determine that one of the mobile terminal and any one of the terminal devices is the control terminal, and determine that the mobile terminal is the control terminal. The terminal and the terminal other than the control terminal in any of the terminal devices are the execution terminal.
本申请实施例中,所述控制端用于发送控制指令,以控制所述执行端中的指定操作。其中,可以根据预先设置的规则确定所述控制端,例如,可以将预先设置的终端作为所述控制端,此外,也可以接收用户通过所述移动终端的触控屏、实体按键等方式输入的指令来确定所述控制端。In this embodiment of the present application, the control terminal is configured to send a control instruction to control a specified operation in the execution terminal. The control terminal may be determined according to a preset rule. For example, a preset terminal may be used as the control terminal. In addition, the user input through the touch screen of the mobile terminal, physical keys, etc. may also be received. instruction to determine the control end.
步骤304,基于所述控制端,执行所述控制端与所述执行端之间的认证、点亮所述执行端的发光模块以及所述控制端与所述执行端之间的电子支付中的至少一个交互操作。Step 304, based on the control terminal, perform at least one of authentication between the control terminal and the execution terminal, lighting the light-emitting module of the execution terminal, and electronic payment between the control terminal and the execution terminal. an interactive operation.
本申请实施例中,对于所述移动终端或者所述任一终端设备,所执行的交互操作可以不同,其中,若上述步骤304在所述移动终端上执行,且所述移动终端为控制端,则步骤304可以包括所述移动终端通过所述预设通信连接,向所述执行端,即所述任一终端设备,发送与所述执行端之间的认证信息、点亮所述执行端的发光模块的点亮指示信息,以及与所述执行端之间的电子支付信息中的至少一个,以实现所述交互操作;而若上述步骤304在所述移动终端上执行,且所述移动终端为执行端,则步骤304可以包括所述移动终端通过所述预设通信连接接收来自所述控制端的认证信息、点亮所述执行端的发光模块的点亮指示信息,以及与所述执行端之间的电子支付信息中的至少一个,以实现所述交互操作。所述步骤304的具体实现方式可以根据实际应用场景进行设置。In this embodiment of the present application, for the mobile terminal or any of the terminal devices, the performed interactive operations may be different, wherein, if the foregoing step 304 is performed on the mobile terminal, and the mobile terminal is the control terminal, Then step 304 may include that the mobile terminal sends the authentication information with the execution end to the execution end, that is, the any terminal device, through the preset communication connection, and lights the light of the execution end. At least one of the lighting instruction information of the module and the electronic payment information between the execution terminal and the execution terminal to realize the interactive operation; and if the above step 304 is executed on the mobile terminal, and the mobile terminal is the execution end, then step 304 may include that the mobile terminal receives the authentication information from the control end through the preset communication connection, lights up the lighting instruction information of the light-emitting module of the execution end, and communicates with the execution end. at least one of the electronic payment information to realize the interactive operation. The specific implementation manner of the step 304 may be set according to the actual application scenario.
本申请实施例中,所述发光模块可以是安装于所述移动终端上的,也可以是外接于所述移动终端的,所述发光模块可以包括发光二极管(Light Emitting Diode,LED)、有机发光二极管(Organic Light-Emitting Diode,OLED)等可发光的装置。可选的,所述点亮所述执行端的发光模块具体可以根据预设参数点亮所述执行端的发光模块,其中,所述预设参数可以包括亮度、点亮时长、点亮的区域等等。此时,用户可以通过所述控制端上预先安装的应用程序设置所述预设参数,以使得用户可以通过所述控制端自定义所述执行端上的发光模块的发光效果。In this embodiment of the present application, the light-emitting module may be installed on the mobile terminal, or may be externally connected to the mobile terminal, and the light-emitting module may include a light-emitting diode (Light Emitting Diode, LED), an organic light-emitting Diode (Organic Light-Emitting Diode, OLED) and other light-emitting devices. Optionally, the lighting module of the execution end may specifically light the lighting module of the execution end according to preset parameters, wherein the preset parameters may include brightness, lighting duration, lighting area, etc. . At this time, the user can set the preset parameters through an application program pre-installed on the control terminal, so that the user can customize the lighting effect of the light-emitting module on the execution terminal through the control terminal.
本申请实施例中,在确定所述移动终端与所述其他终端设备中的任一终端设备发生预设事件之后,可以通过设置所述控制端和所述执行端,实现所述移动终端与所述任一终端设备的多样化的交互操作,如执行所述控制端与所述执行端之间的认证、点亮所述执行端的发光模块以及所述控制端与所述执行端之间的电子支付等操作,并且实现终端之间的交互操作的方式简单易行,从而提升了所述终端之间的交互操作的效率。In this embodiment of the present application, after it is determined that a preset event occurs between the mobile terminal and any one of the other terminal devices, the control terminal and the execution terminal can be set to realize the connection between the mobile terminal and all terminal devices. Diversified interactive operations of any of the terminal devices, such as performing authentication between the control end and the execution end, lighting up the light-emitting module of the execution end, and electronic devices between the control end and the execution end Payment and other operations, and the method of realizing the interactive operation between terminals is simple and easy, thereby improving the efficiency of the interactive operation between the terminals.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
实施例四Embodiment 4
参见图4,是本申请实施例提供的终端之间的交互装置的结构示意图,为了便于说明,仅示出了与本申请实施例相关的部分。该终端之间的交互装置可以用于各种具备图像处理功能的终端,例如笔记本电脑、口袋计算机(Pocket Personal Computer,PPC)、个人数字助理(Personal Digital Assistant,PDA)等中,可以为内置于这些终端内的软件单元、硬件单元或者软硬件结合单元等。本申请实施例中的终端之间的交互装置400包括:Referring to FIG. 4 , it is a schematic structural diagram of an interaction apparatus between terminals provided by an embodiment of the present application. For convenience of description, only parts related to the embodiment of the present application are shown. The interaction device between the terminals can be used in various terminals with image processing functions, such as notebook computers, pocket computers (Pocket Personal Computer, PPC), personal digital assistants (Personal Digital Assistant, PDA), etc. Software units, hardware units, or combination units of software and hardware in these terminals. The interaction apparatus 400 between terminals in the embodiment of the present application includes:
获取模块401,用于在所述移动终端与其他终端设备建立无线通信连接后,获取与所述移动终端相关联的第一信息,并获取与所述其他终端设备中的任一终端设备相关联的第二信息;The obtaining module 401 is configured to obtain first information associated with the mobile terminal after the mobile terminal establishes a wireless communication connection with other terminal devices, and obtain the first information associated with any terminal device among the other terminal devices the second information;
判断模块402,用于根据所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件;a judgment module 402, configured to judge whether a preset event occurs between the mobile terminal and any terminal equipment among the other terminal equipment according to the first information and the second information;
控制模块403,用于若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则控制所述移动终端与所述任一终端设备执行预设交互操作。The control module 403 is configured to control the mobile terminal to perform a preset interaction operation with any of the other terminal devices if a preset event occurs between the mobile terminal and any of the other terminal devices.
可选的,所述判断模块402具体包括:Optionally, the judging module 402 specifically includes:
第一判断单元,用于根据所述第一信息,判断所述移动终端是否执行预设动作;a first judging unit, configured to judge whether the mobile terminal performs a preset action according to the first information;
第二判断单元,用于根据所述第二信息,判断所述其他终端设备中的任一终端设备是否执行预设动作;a second judging unit, configured to judge, according to the second information, whether any one of the other terminal devices performs a preset action;
第一获取单元,用于若所述移动终端执行所述预设动作,且,所述其他终端设备中的任一终端设备执行所述预设动作,则获取所述移动终端执行所述预设动作的第一时间戳,并获取所述任一终端设备执行所述预设动作的第二时间戳;a first obtaining unit, configured to obtain the mobile terminal executing the preset action if the mobile terminal executes the preset action and any terminal device among the other terminal devices executes the preset action the first time stamp of the action, and obtain the second time stamp of the preset action performed by any of the terminal devices;
第一确定单元,用于若所述第一时间戳与所述第二时间戳之间的差值小于预设时间戳阈值,则确定所述移动终端与所述其他终端设备中的任一终端设备发生所述预设事件。a first determining unit, configured to determine any one of the mobile terminal and the other terminal equipment if the difference between the first timestamp and the second timestamp is less than a preset timestamp threshold The device generates the preset event.
可选的,所述获取模块401具体用于:Optionally, the obtaining module 401 is specifically used for:
通过预设传感器采集所述移动终端所对应的第一坐标数据集合,其中,所述第一坐标数据集合包括第一坐标数据、第二坐标数据和第三坐标数据,所述第一坐标数据的第一采集时间与第二坐标数据的第二采集时间的时间差,和,所述第二坐标数据的第二采集时间与第三坐标数据的第三采集时间的时间差均为第一预设时间阈值,所述第一采集时间早于所述第二采集时间,所述第二采集时间早于所述第三采集时间;A first coordinate data set corresponding to the mobile terminal is collected by a preset sensor, wherein the first coordinate data set includes first coordinate data, second coordinate data and third coordinate data, and the first coordinate data The time difference between the first collection time and the second collection time of the second coordinate data, and the time difference between the second collection time of the second coordinate data and the third collection time of the third coordinate data are both the first preset time threshold , the first collection time is earlier than the second collection time, and the second collection time is earlier than the third collection time;
相应的,所述第一判断单元具体用于:Correspondingly, the first judgment unit is specifically used for:
根据所述第一坐标数据集合,判断所述移动终端是否执行所述预设动作。According to the first coordinate data set, it is determined whether the mobile terminal performs the preset action.
可选的,所述第一判断单元具体包括:Optionally, the first judgment unit specifically includes:
第一计算子单元,用于计算所述第一坐标数据与第二坐标数据之间的第一差值;a first calculation subunit, configured to calculate the first difference between the first coordinate data and the second coordinate data;
第二计算子单元,用于若所述第一差值符合第一预设条件,则计算所述第二坐标数据与第三坐标数据之间的第二差值;a second calculation subunit, configured to calculate a second difference between the second coordinate data and the third coordinate data if the first difference meets a first preset condition;
确定子单元,用于若所述第二差值符合第二预设条件,则确定所述移动终端执行所述预设动作。A determination subunit, configured to determine that the mobile terminal performs the preset action if the second difference meets a second preset condition.
可选的,所述第一坐标数据、第二坐标数据和所述第三坐标数据分别包括沿x轴方向、y轴方向和z轴方向的坐标值;Optionally, the first coordinate data, the second coordinate data and the third coordinate data respectively include coordinate values along the x-axis direction, the y-axis direction and the z-axis direction;
所述第一计算子单元具体用于:The first calculation subunit is specifically used for:
计算所述第一坐标数据与第二坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值,得到第一差值;Calculate the difference between the coordinate values along the x-axis direction, the y-axis direction and/or the z-axis direction in the first coordinate data and the second coordinate data to obtain the first difference value;
相应的,所述第二计算子单元具体用于:Correspondingly, the second calculation subunit is specifically used for:
若所述第一差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第一预设差值,则确定所述第一差值符合第一预设条件,并计算所述第二坐标数据与第三坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值,得到第二差值;If, in the first difference, the difference of coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than the first preset difference value, it is determined that the first difference value conforms to the first difference. a preset condition, and calculate the difference between the coordinate values in the second coordinate data and the third coordinate data, along the x-axis direction, the y-axis direction and/or the z-axis direction, to obtain the second difference value;
所述确定子单元具体用于:The determining subunit is specifically used for:
若所述第二差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第二预设差值,则确定所述第二差值符合第二预设条件,并确定所述移动终端执行所述预设动作。If, in the second difference, the difference of coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than the second preset difference value, it is determined that the second difference value conforms to the first 2 preset conditions, and determine that the mobile terminal performs the preset action.
可选的,所述获取模块401具体用于:Optionally, the obtaining module 401 is specifically used for:
所述移动终端通过所述无线通信连接,从所述其他终端设备中的任一终端设备获取所述第二信息,其中,所述第二信息包括所述任一终端设备所对应的第二坐标数据集合或者指示信息,其中,所述第二坐标数据集合包括第四坐标数据、第五坐标数据和第六坐标数据,所述第四坐标数据的第四采集时间与第五坐标数据的第五采集时间的时间差,和,所述第五坐标数据的第五采集时间与第六坐标数据的第六采集时间的时间差均为第二预设时间阈值,所述第四采集时间早于所述第五采集时间,所述第五采集时间早于所述第六采集时间,所述指示信息指示所述任一终端设备是否执行预设动作;The mobile terminal obtains the second information from any terminal device among the other terminal devices through the wireless communication connection, wherein the second information includes the second coordinates corresponding to the any terminal device A data set or indication information, wherein the second coordinate data set includes fourth coordinate data, fifth coordinate data, and sixth coordinate data, and the fourth collection time of the fourth coordinate data is the same as the fifth coordinate data of the fifth coordinate data. The time difference between the collection times, and, the time difference between the fifth collection time of the fifth coordinate data and the sixth collection time of the sixth coordinate data is a second preset time threshold, and the fourth collection time is earlier than the sixth collection time. Fifth collection time, the fifth collection time is earlier than the sixth collection time, and the indication information indicates whether the any terminal device performs a preset action;
所述第二判断单元具体用于:The second judgment unit is specifically used for:
根据所述第二坐标数据集合或者指示信息,判断所述其他终端设备中的任一终端设备是否执行预设动作。According to the second coordinate data set or the indication information, it is determined whether any one of the other terminal devices performs a preset action.
可选的,所述控制模块403具体包括:Optionally, the control module 403 specifically includes:
第二确定单元,用于若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则确定所述移动终端以及所述任一终端设备中的一个为控制端,并确定所述移动终端以及所述任一终端设备中除所述控制端之外的终端为执行端;a second determining unit, configured to determine that one of the mobile terminal and any one of the other terminal devices is the control terminal if a preset event occurs between the mobile terminal and any one of the other terminal devices, and Determine that the mobile terminal and the terminal other than the control terminal in the mobile terminal and any terminal device are the execution terminal;
控制单元,用于基于所述控制端,执行所述控制端与所述执行端之间的认证、点亮所述执行端的发光模块以及所述控制端与所述执行端之间的电子支付中的至少一个交互操作。A control unit for performing authentication between the control end and the execution end, lighting the light-emitting module of the execution end, and electronic payment between the control end and the execution end based on the control end at least one interaction.
本申请在所述移动终端与其他终端设备建立无线通信连接后,通过所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件,可以了解到所述移动终端与其他终端设备之间是否发生了诸如碰撞等事件,从而可以根据所述无线通信连接和所述移动终端与其他终端设备之间的碰撞等事件,来快速地判断是否可以控制所述移动终端与所述任一终端设备执行预设交互操作。通过本申请可以提升终端之间的交互操作的效率,提高用户体验,而且本申请的方案简单易行,具有较强的易用性和实用性。In the present application, after the mobile terminal establishes a wireless communication connection with other terminal devices, it is judged whether the mobile terminal has a pre-registration with any of the other terminal devices through the first information and the second information. By setting an event, it is possible to know whether an event such as a collision has occurred between the mobile terminal and other terminal equipment, so that the wireless communication connection and the collision between the mobile terminal and other terminal equipment can be quickly to determine whether the mobile terminal can be controlled to perform a preset interactive operation with any of the terminal devices. Through the present application, the efficiency of the interactive operation between terminals can be improved, and the user experience can be improved, and the solution of the present application is simple and easy to implement, and has strong ease of use and practicability.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
实施例五Embodiment 5
本申请实施例五提供了一种移动终端,请参阅图5,本申请实施例中的移动终端包括:存储器501,一个或多个处理器502(图5中仅示出一个)及存储在存储器501上并可在处理器上运行的计算机程序。其中:存储器501用于存储软件程序以及模块,处理器502通过运行存储在存储器501的软件程序以及单元,从而执行各种功能应用以及数据处理。具体地,处理器502通过运行存储在存储器501的上述计算机程序时实现以下步骤:The fifth embodiment of the present application provides a mobile terminal. Please refer to FIG. 5. The mobile terminal in the embodiment of the present application includes: a memory 501, one or more processors 502 (only one is shown in A computer program on 501 and executable on a processor. The memory 501 is used for storing software programs and modules, and the processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501 . Specifically, the processor 502 implements the following steps by running the above-mentioned computer program stored in the memory 501:
在所述移动终端与其他终端设备建立无线通信连接后,获取与所述移动终端相关联的第一信息,并获取与所述其他终端设备中的任一终端设备相关联的第二信息;After the mobile terminal establishes a wireless communication connection with other terminal devices, obtain first information associated with the mobile terminal, and obtain second information associated with any one of the other terminal devices;
根据所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件;According to the first information and the second information, determine whether a preset event occurs between the mobile terminal and any one of the other terminal devices;
若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则控制所述移动终端与所述任一终端设备执行预设交互操作。If a preset event occurs between the mobile terminal and any terminal device among the other terminal devices, the mobile terminal is controlled to perform a preset interaction operation with the any terminal device.
假设上述为第一种可能的实施方式,则在上述第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,处理器502通过运行存储在存储器501的上述计算机程序时,所述根据所述第一信息和所述第二信息,判断所述移动终端是否与所述其他终端设备中的任一终端设备发生预设事件,包括:Assuming that the above is the first possible implementation manner, in the second possible implementation manner provided on the basis of the above first possible implementation manner, when the processor 502 executes the above computer program stored in the memory 501, The determining whether a preset event occurs between the mobile terminal and any of the other terminal devices according to the first information and the second information includes:
根据所述第一信息,判断所述移动终端是否执行预设动作;According to the first information, determine whether the mobile terminal performs a preset action;
根据所述第二信息,判断所述其他终端设备中的任一终端设备是否执行预设动作;According to the second information, determine whether any one of the other terminal devices performs a preset action;
若所述移动终端执行所述预设动作,且,所述其他终端设备中的任一终端设备执行所述预设动作,则获取所述移动终端执行所述预设动作的第一时间戳,并获取所述任一终端设备执行所述预设动作的第二时间戳;If the mobile terminal executes the preset action, and any terminal device among the other terminal devices executes the preset action, acquire a first timestamp at which the mobile terminal executes the preset action, and acquiring the second timestamp of the preset action performed by the any terminal device;
若所述第一时间戳与所述第二时间戳之间的差值小于预设时间戳阈值,则确定所述移动终端与所述其他终端设备中的任一终端设备发生所述预设事件。If the difference between the first timestamp and the second timestamp is less than a preset timestamp threshold, it is determined that the preset event occurs in the mobile terminal and any terminal device among the other terminal devices .
在上述第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,处理器502通过运行存储在存储器501的上述计算机程序时,所述获取与所述移动终端相关联的第一信息,包括:In the third possible implementation manner provided on the basis of the above-mentioned second possible implementation manner, when the processor 502 executes the above-mentioned computer program stored in the memory 501, the acquisition of the - Information, including:
通过预设传感器采集所述移动终端所对应的第一坐标数据集合,其中,所述第一坐标数据集合包括第一坐标数据、第二坐标数据和第三坐标数据,所述第一坐标数据的第一采集时间与第二坐标数据的第二采集时间的时间差,和,所述第二坐标数据的第二采集时间与第三坐标数据的第三采集时间的时间差均为第一预设时间阈值,所述第一采集时间早于所述第二采集时间,所述第二采集时间早于所述第三采集时间;A first coordinate data set corresponding to the mobile terminal is collected by a preset sensor, wherein the first coordinate data set includes first coordinate data, second coordinate data and third coordinate data, and the first coordinate data The time difference between the first collection time and the second collection time of the second coordinate data, and the time difference between the second collection time of the second coordinate data and the third collection time of the third coordinate data are both the first preset time threshold , the first collection time is earlier than the second collection time, and the second collection time is earlier than the third collection time;
相应的,所述根据所述第一信息,判断所述移动终端是否执行预设动作,包括:Correspondingly, the determining whether the mobile terminal performs a preset action according to the first information includes:
根据所述第一坐标数据集合,判断所述移动终端是否执行所述预设动作。According to the first coordinate data set, it is determined whether the mobile terminal performs the preset action.
在上述第三种可能的实施方式作为基础而提供的第四种可能的实施方式中,处理器502通过运行存储在存储器501的上述计算机程序时,所述根据所述第一坐标数据集合,判断所述移动终端是否执行所述预设动作,包括:In the fourth possible implementation manner provided on the basis of the above-mentioned third possible implementation manner, when the processor 502 executes the above-mentioned computer program stored in the memory 501, the judgment is made according to the first coordinate data set. Whether the mobile terminal performs the preset action, including:
计算所述第一坐标数据与第二坐标数据之间的第一差值;calculating a first difference between the first coordinate data and the second coordinate data;
若所述第一差值符合第一预设条件,则计算所述第二坐标数据与第三坐标数据之间的第二差值;If the first difference meets a first preset condition, calculating a second difference between the second coordinate data and the third coordinate data;
若所述第二差值符合第二预设条件,则确定所述移动终端执行所述预设动作。If the second difference meets a second preset condition, it is determined that the mobile terminal performs the preset action.
在上述第四种可能的实施方式作为基础而提供的第五种可能的实施方式中,处理器502通过运行存储在存储器501的上述计算机程序时,所述第一坐标数据、第二坐标数据和所述第三坐标数据分别包括沿x轴方向、y轴方向和z轴方向的坐标值;In the fifth possible implementation manner provided on the basis of the foregoing fourth possible implementation manner, when the processor 502 executes the foregoing computer program stored in the memory 501, the first coordinate data, the second coordinate data and the The third coordinate data respectively includes coordinate values along the x-axis direction, the y-axis direction and the z-axis direction;
所述计算所述第一坐标数据与第二坐标数据之间的第一差值,包括:The calculating the first difference between the first coordinate data and the second coordinate data includes:
计算所述第一坐标数据与第二坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值,得到第一差值;Calculate the difference between the coordinate values along the x-axis direction, the y-axis direction and/or the z-axis direction in the first coordinate data and the second coordinate data to obtain the first difference value;
相应的,所述若所述第一差值符合第一预设条件,则计算所述第二坐标数据与第三坐标数据之间的第二差值,包括:Correspondingly, if the first difference meets the first preset condition, calculating the second difference between the second coordinate data and the third coordinate data includes:
若所述第一差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第一预设差值,则确定所述第一差值符合第一预设条件,并计算所述第二坐标数据与第三坐标数据中,沿x轴方向、y轴方向和/或z轴方向的坐标值的差值,得到第二差值;If, in the first difference, the difference of coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than the first preset difference value, it is determined that the first difference value conforms to the first difference. a preset condition, and calculate the difference between the coordinate values in the second coordinate data and the third coordinate data, along the x-axis direction, the y-axis direction and/or the z-axis direction, to obtain the second difference value;
相应的,所述若所述第二差值符合第二预设条件,则确定所述移动终端执行所述预设动作,包括:Correspondingly, determining that the mobile terminal performs the preset action if the second difference meets the second preset condition, includes:
若所述第二差值中,沿x轴方向、y轴方向以及z轴方向中的至少一个方向的坐标值的差值大于第二预设差值,则确定所述第二差值符合第二预设条件,并确定所述移动终端执行所述预设动作。If, in the second difference, the difference of coordinate values along at least one of the x-axis direction, the y-axis direction, and the z-axis direction is greater than the second preset difference value, it is determined that the second difference value conforms to the first 2 preset conditions, and determine that the mobile terminal performs the preset action.
在上述第二种可能的实施方式作为基础而提供的第六种可能的实施方式中,处理器502通过运行存储在存储器501的上述计算机程序时,所述获取与所述其他终端设备中的任一终端设备相关联的第二信息,包括:In the sixth possible implementation manner provided on the basis of the above second possible implementation manner, when the processor 502 executes the above computer program stored in the memory 501, the acquisition is associated with any of the other terminal devices. Second information associated with a terminal device, including:
所述移动终端通过所述无线通信连接,从所述其他终端设备中的任一终端设备获取所述第二信息,其中,所述第二信息包括所述任一终端设备所对应的第二坐标数据集合或者指示信息,其中,所述第二坐标数据集合包括第四坐标数据、第五坐标数据和第六坐标数据,所述第四坐标数据的第四采集时间与第五坐标数据的第五采集时间的时间差,和,所述第五坐标数据的第五采集时间与第六坐标数据的第六采集时间的时间差均为第二预设时间阈值,所述第四采集时间早于所述第五采集时间,所述第五采集时间早于所述第六采集时间,所述指示信息指示所述任一终端设备是否执行预设动作;The mobile terminal obtains the second information from any terminal device among the other terminal devices through the wireless communication connection, wherein the second information includes the second coordinates corresponding to the any terminal device A data set or indication information, wherein the second coordinate data set includes fourth coordinate data, fifth coordinate data, and sixth coordinate data, and the fourth collection time of the fourth coordinate data is the same as the fifth coordinate data of the fifth coordinate data. The time difference between the collection times, and, the time difference between the fifth collection time of the fifth coordinate data and the sixth collection time of the sixth coordinate data is a second preset time threshold, and the fourth collection time is earlier than the sixth collection time. Fifth collection time, the fifth collection time is earlier than the sixth collection time, and the indication information indicates whether the any terminal device performs a preset action;
相应的,所述根据所述第二信息,判断所述其他终端设备中的任一终端设备是否执行预设动作,包括:Correspondingly, determining whether any one of the other terminal devices performs a preset action according to the second information includes:
根据所述第二坐标数据集合或者指示信息,判断所述其他终端设备中的任一终端设备是否执行预设动作。According to the second coordinate data set or the indication information, it is determined whether any one of the other terminal devices performs a preset action.
在第一种可能的实施方式作为基础,或者上述第二种可能的实施方式作为基础,或者上述第三种可能的实施方式作为基础,或者上述第四种可能的实施方式作为基础,或者上述第五种可能的实施方式作为基础,或者上述第六种可能的实施方式作为基础而提供的第七种可能的实施方式中,处理器502通过运行存储在存储器501的上述计算机程序时,所述若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则控制所述移动终端与所述任一终端设备执行预设交互操作,包括:Based on the first possible implementation manner, or the above-mentioned second possible implementation manner as a basis, or the above-mentioned third possible implementation manner as a basis, or the above-mentioned fourth possible implementation manner as a basis, or the above-mentioned third possible implementation manner as a basis In the seventh possible implementation based on the five possible implementations, or in the seventh possible implementation provided on the basis of the above-mentioned sixth possible implementation, when the processor 502 executes the above-mentioned computer program stored in the memory 501, the if When a preset event occurs between the mobile terminal and any one of the other terminal devices, the mobile terminal is controlled to perform a preset interaction operation with any of the terminal devices, including:
若所述移动终端与所述其他终端设备中的任一终端设备发生预设事件,则确定所述移动终端以及所述任一终端设备中的一个为控制端,并确定所述移动终端以及所述任一终端设备中除所述控制端之外的终端为执行端;If a preset event occurs between the mobile terminal and any terminal device among the other terminal devices, determine that the mobile terminal and one of the terminal devices are the control terminal, and determine that the mobile terminal and any terminal device are the control terminal. The terminal other than the control terminal in any of the terminal equipment is the execution terminal;
基于所述控制端,执行所述控制端与所述执行端之间的认证、点亮所述执行端的发光模块以及所述控制端与所述执行端之间的电子支付中的至少一个交互操作。Based on the control terminal, at least one interactive operation of authentication between the control terminal and the execution terminal, lighting the light-emitting module of the execution terminal, and electronic payment between the control terminal and the execution terminal is performed. .
进一步,如图5所示,上述移动终端还可包括:一个或多个输入设备503(图5中仅示出一个)和一个或多个输出设备504(图5中仅示出一个)。存储器501、处理器502、输入设备503和输出设备504通过总线505连接。Further, as shown in FIG. 5 , the above mobile terminal may further include: one or more input devices 503 (only one is shown in FIG. 5 ) and one or more output devices 504 (only one is shown in FIG. 5 ). The memory 501 , the processor 502 , the input device 503 and the output device 504 are connected by a bus 505 .
应当理解,在本申请实施例中,所称处理器502可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), special-purpose processors An integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
输入设备503可以包括键盘、触控板、指纹采集传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风、摄像头等,输出设备504可以包括显示器、扬声器等。The input device 503 may include a keyboard, a touchpad, a fingerprint collection sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, a camera, and the like, and the output device 504 may include a display, a speaker, and the like.
存储器501可以包括只读存储器和随机存取存储器,并向处理器502提供指令和数据。存储器501的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器501还可以存储设备类型的信息。Memory 501 may include read-only memory and random access memory, and provides instructions and data to processor 502 . Part or all of memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者外部设备软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the system embodiments described above are only illustrative. For example, the division of the above-mentioned modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
上述集成的单元、模块如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读存储介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机可读存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括电载波信号和电信信号。If the above-mentioned integrated units and modules are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form. The above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer-readable memory, a read-only memory (ROM, Read-Only Memory) ), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable storage media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer-readable storage The medium excludes electrical carrier signals and telecommunication signals.
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that the above-mentioned embodiments can still be used for The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the present application. within the scope of protection of the application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910360929.8ACN110099175A (en) | 2019-04-30 | 2019-04-30 | Interaction method and interaction device between terminals and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910360929.8ACN110099175A (en) | 2019-04-30 | 2019-04-30 | Interaction method and interaction device between terminals and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN110099175Atrue CN110099175A (en) | 2019-08-06 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910360929.8APendingCN110099175A (en) | 2019-04-30 | 2019-04-30 | Interaction method and interaction device between terminals and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN110099175A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103455134A (en)* | 2012-06-01 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Method and system for interaction between mobile device and controlled device |
| US20160189223A1 (en)* | 2014-12-30 | 2016-06-30 | Spotify Ab | System and method for providing enhanced user-sponsor interaction in a media environment, including support for shake action |
| CN106598220A (en)* | 2016-11-17 | 2017-04-26 | 上海摩软通讯技术有限公司 | Terminal interaction method and device |
| CN108540968A (en)* | 2018-03-30 | 2018-09-14 | 成都心吉康科技有限公司 | Matching method, pair system and the electronic equipment of electronic equipment |
| CN108992922A (en)* | 2018-06-27 | 2018-12-14 | 深圳市趣动互联科技有限公司 | Game on line interactive approach and system |
| CN109451496A (en)* | 2018-11-12 | 2019-03-08 | 深圳市银星智能科技股份有限公司 | Connection authentication method and authentication system thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103455134A (en)* | 2012-06-01 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Method and system for interaction between mobile device and controlled device |
| US20160189223A1 (en)* | 2014-12-30 | 2016-06-30 | Spotify Ab | System and method for providing enhanced user-sponsor interaction in a media environment, including support for shake action |
| CN106598220A (en)* | 2016-11-17 | 2017-04-26 | 上海摩软通讯技术有限公司 | Terminal interaction method and device |
| CN108540968A (en)* | 2018-03-30 | 2018-09-14 | 成都心吉康科技有限公司 | Matching method, pair system and the electronic equipment of electronic equipment |
| CN108992922A (en)* | 2018-06-27 | 2018-12-14 | 深圳市趣动互联科技有限公司 | Game on line interactive approach and system |
| CN109451496A (en)* | 2018-11-12 | 2019-03-08 | 深圳市银星智能科技股份有限公司 | Connection authentication method and authentication system thereof |
| Publication | Publication Date | Title |
|---|---|---|
| CN106030446B (en) | Method and system for regulating the power mode of a wearable computing device | |
| CN106068640B (en) | It selectively redirects and notifies to wearable computing devices | |
| US10559273B2 (en) | Display screen control method and apparatus and terminal | |
| US20130100044A1 (en) | Method for Detecting Wake Conditions of a Portable Electronic Device | |
| CN105981035A (en) | Manage the display of private information | |
| WO2017088131A1 (en) | Method and apparatus for rapidly dividing screen, electronic device, display interface and storage medium | |
| EP2993572A1 (en) | Method and apparatus for processing touch input | |
| WO2017032250A1 (en) | Method for determining floor, related apparatus and system | |
| CN106951850B (en) | A kind of method and mobile terminal controlling fingerprint recognition mould group | |
| WO2018027551A1 (en) | Message display method, user terminal and graphic user interface | |
| CN109542279B (en) | Terminal device control method and terminal device | |
| JP2019500678A (en) | Fingerprint recognition method and electronic device | |
| JP2017509051A (en) | Method and system for collecting statistics on streaming media data and associated apparatus | |
| CN106445340A (en) | Method and device for displaying stereoscopic image by double-screen terminal | |
| EP3161611A1 (en) | Controlling brightness of a remote display | |
| CN107066090B (en) | Method for controlling fingerprint identification module and mobile terminal | |
| CN110622105B (en) | Method and apparatus for performing at least one operation based on device context | |
| CN108886548B (en) | Method for determining device power consumption of electronic equipment, electronic equipment and storage medium | |
| WO2017031647A1 (en) | Method and apparatus for detecting touch mode | |
| US20160070297A1 (en) | Methods and systems for communication management between an electronic device and a wearable electronic device | |
| WO2017177436A1 (en) | Method and apparatus for locking object in list, and terminal device | |
| WO2019041143A1 (en) | Security control method for mobile terminal, terminal, and computer readable medium | |
| CN107943406B (en) | A method and terminal for determining a touch point on a touch screen | |
| CN111596827A (en) | Icon display control method and device, storage medium and mobile terminal | |
| CN106357513B (en) | Message processing method, device, server and message processing system |
| 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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20190806 |