Communication connection method and device between devices, device and storage medium
By acquiring the device's motion information to identify the user's operational intent, the problem of needing physical buttons for communication between devices is solved, enabling convenient wireless device connections.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2026-03-24
AI Technical Summary
Existing communication connections between devices require physical button operation, resulting in poor convenience, especially when connecting wireless headphones to devices such as mobile phones.
By acquiring motion information from the device, such as speed and acceleration, the system identifies the user's operational intent based on this information, establishes communication connections between devices, and avoids reliance on physical buttons.
It improves the convenience of communication between devices, making the connection process free from the limitations of physical button operation, thus enhancing the user experience.
Smart Images

Figure CN121728607A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a communication connection method, apparatus, device, and storage medium for a device. Background Technology
[0002] In the application scenarios of device-to-device (DDoS) communication technology, devices can exchange and share information and achieve collaborative services by establishing communication connections. For example, a wireless headset can establish a communication connection with a mobile phone, allowing the headset to work with the phone to handle audio services such as media and calls. With the increasing demand for device interconnection, providing a convenient and efficient communication connection solution for device interaction is a pressing issue that needs to be addressed. Summary of the Invention
[0003] This application provides a method, apparatus, device, and storage medium for communication connection between devices, offering a convenient and efficient communication connection solution for device-to-device interaction.
[0004] In a first aspect, embodiments of this application provide a method for communication connection between devices. The subject executing this method may be a first device, which may be an electronic device, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication capabilities (such as a smartwatch), etc. Alternatively, the first device may be replaced by a component in an electronic device, such as a chip, a chip system, or other functional modules capable of calling and executing programs.
[0005] The method includes: a first device acquiring first motion information, such as first velocity information and / or first acceleration information, and establishing a communication connection between the first device and a second device based on the first motion information.
[0006] Therefore, establishing communication connections between devices is not limited by physical button operations, which improves the convenience of communication connections.
[0007] In conjunction with the first aspect, in one possible implementation, the first motion information may be generated by user operation, i.e., the user can operate the first device and / or the second device to establish a communication connection between the first device and the second device. In this case, the first device, based on the first motion information, identifies whether the user has input a first operation, which includes touching the second device with the first device at least once.
[0008] Based on this, when the user inputs the first operation, a communication connection is established between the first device and the second device to improve the convenience for the user to establish a communication connection.
[0009] In conjunction with the first aspect, in one possible implementation, the first device can identify the user input of the first operation when the difference between the first motion information and the preset collision curve is less than or equal to the preset difference, so as to achieve accurate identification of the user operation and thereby improve the convenience of the user in establishing a communication connection.
[0010] In conjunction with the first aspect, in one possible implementation, when the first operation includes at least two touches to the second device, the time interval between two adjacent touches is less than or equal to a preset value.
[0011] Based on this, the first device can determine whether the user has entered a touch operation two or more times based on the time interval constraint, so as to achieve accurate recognition of the first operation.
[0012] In conjunction with the first aspect, in one possible implementation, the first device can send a first message to the second device based on first motion information. This first message is used by the second device to discover the first device to be connected. The first device then receives a second message sent by the second device, which is used by the first device to discover the second device to be connected. Based on this, the first device and the second device can establish a communication connection. Referring to the above example, if the first motion information is generated by a first operation input by a user, then when the user inputs the first operation, the first device can send a first message to the second device and receive a second message sent by the second device.
[0013] Based on this, the first device and the second device discover each other by exchanging first and second messages, thereby establishing a communication connection.
[0014] Furthermore, a communication connection can be established between the first device and the second device when the user inputs a second operation. For example, the second operation may include touching the second device with the first device at least once. The first device can identify whether the user has inputted the second operation based on second motion information, which includes second velocity information and / or second acceleration information of the first device. This application does not limit the type of the second operation; it can be any user operation that reflects the intention to establish a communication connection. For example, the user can input an operation to confirm the establishment of a communication connection between the first device and the second device through an interactive interface.
[0015] Based on this, after the first and second devices discover each other, they can establish a communication connection in response to the user's second operation confirmation, thereby enabling flexible control over the establishment of the communication connection.
[0016] In conjunction with the first aspect, in one possible implementation, one of the first and second devices sends a request to establish a communication connection to the other device and receives a response to establish the communication connection. As an example, the first device may, based on the first and second messages, send a third message requesting the establishment of a communication connection between the first and second devices, and receive a fourth message responding to the request to establish the communication connection; as another example, the first device may, based on the first and second messages, receive a third message and send a fourth message.
[0017] Optionally, the device that sends the request to establish a communication connection can be called the master device, and the device that receives the response to establish a communication connection can be called the master device. The master-slave relationship between the first device and the second device can be determined based on the first message and the second message mentioned above. For example, the master / slave device can be determined based on the first random number carried in the first message and the second random number carried in the second message. Alternatively, the master / slave device can be determined based on the timestamp of sending the first message and the timestamp of sending the second message. Or, the master / slave device can be determined based on any one or more pieces of information carried in the first message and any one or more pieces of information carried in the second message.
[0018] Based on this, the first device can determine the master and slave devices in the communication connection establishment process based on the first and second messages, and then determine whether to send a communication connection establishment request or respond to the communication connection establishment request to realize the establishment of the communication connection.
[0019] In conjunction with the first aspect, in one possible implementation, the first device may output a first prompt message to prompt the user to input an operation (such as a second operation). Optionally, outputting the first prompt message may include playing a prompt sound and / or vibrating the first device.
[0020] Based on this, the first device outputs a first prompt message to facilitate the user's input to confirm the continuation of establishing a communication connection between the first device and the second device, thereby improving the operability of the communication connection establishment process.
[0021] Secondly, embodiments of this application provide a method for communication connection between devices. The subject executing this method may be a second device, which may be an electronic device, such as a mobile phone, tablet computer, wearable electronic device with wireless communication function (such as a smartwatch), etc. Alternatively, the second device may be replaced by a component in an electronic device, such as a chip, chip system, or other functional module capable of calling and executing a program.
[0022] For example, the second device acquires third motion information, which includes the third velocity information and / or third acceleration information of the second device, and sends a second message based on the third motion information. The second message is used by the first device to discover the second device to be connected, and then receives the first message sent by the first device. The first message is used by the second device to discover the first device to be connected and establish a communication connection between the first device and the second device.
[0023] For example, the second device may identify whether the user has entered a third operation based on the third motion information. The third operation includes touching the first device with the second device at least once. When the user enters the third operation, the second device sends the second message.
[0024] For example, the third operation includes touching the first device with the second device at least twice, wherein the time interval between two adjacent touches is less than or equal to a preset value.
[0025] For example, establishing a communication connection between a first device and a second device includes: the second device identifying whether a user has input a fourth operation based on fourth motion information, the fourth motion information including fourth velocity information and / or fourth acceleration information of the second device, the fourth operation including touching the first device with the second device at least once; and establishing a communication connection between the first device and the second device when the user inputs the fourth operation.
[0026] For example, establishing a communication connection between a first device and a second device includes: the second device sending a third message based on a first message and a second message, the third message being used to request the establishment of a communication connection between the first device and the second device; receiving a fourth message, the fourth message being used to respond to the request to establish a communication connection; or, based on the first message and the second message, receiving the third message; and sending the fourth message.
[0027] For example, it further includes: the second device outputting a second prompt message, the second prompt message being used to prompt the user to input a fourth operation; wherein, outputting the second prompt message includes: playing a prompt sound and / or vibrating the second device.
[0028] Thirdly, embodiments of this application provide a processing device, including: an acquisition module for acquiring first motion information, the first motion information including first speed information and / or first acceleration information of a first device; and a processing module for establishing a communication connection between a first device and a second device based on the first motion information, wherein the first device is equipped with the processing device.
[0029] For example, the processing module is specifically used to: identify whether the user has input a first operation based on the first motion information, the first operation including touching the second device with the first device at least once; and establish a communication connection between the first device and the second device when the user inputs the first operation.
[0030] For example, when the first operation includes touching the second device with the first device at least twice, the time interval between two adjacent touches is less than or equal to a preset value.
[0031] For example, the processing module is specifically used to: send a first message to the second device when the user inputs a first operation, the first message being used by the second device to discover the first device to be connected; receive a second message sent by the second device, the second message being used by the first device to discover the second device to be connected; and establish a communication connection between the first device and the second device when the user inputs a second operation.
[0032] For example, the processing module is further configured to: identify whether the user has input a second operation based on the second motion information, the second motion information including the second speed information and / or the second acceleration information of the first device, and the second operation including touching the second device with the first device at least once.
[0033] For example, the processing module is specifically configured to: send a third message based on the first message and the second message, the third message being used to request the establishment of a communication connection between the first device and the second device; receive a fourth message, the fourth message being used to respond to the request to establish a communication connection; or, based on the first message and the second message, receive the third message; and send the fourth message.
[0034] For example, it further includes: an output module for outputting first prompt information, the first prompt information being used to prompt the user to input a second operation; wherein, outputting the first prompt information includes: playing a prompt sound and / or vibrating the first device.
[0035] Fourthly, embodiments of this application provide a processing apparatus, comprising: an acquisition module for acquiring third motion information, the third motion information including third velocity information and / or third acceleration information of a second device; a processing module for sending a second message through a transceiver module based on the third motion information, the second message being used by a first device to discover a second device to be connected; the processing module receiving a first message sent by the first device through the transceiver module, the first message being used by the second device to discover a first device to be connected; the processing module is further configured to establish a communication connection between the first device and the second device.
[0036] For example, the processing module is specifically used to: identify whether the user has entered a third operation based on the third motion information, the third operation including touching the first device with the second device at least once; and send a second message when the user enters the third operation.
[0037] For example, the third operation includes touching the first device with the second device at least twice, wherein the time interval between two adjacent touches is less than or equal to a preset value.
[0038] For example, the processing module is specifically used to: identify whether the user has input a fourth operation based on the fourth motion information, the fourth motion information including the fourth speed information and / or the fourth acceleration information of the second device, the fourth operation including touching the first device with the second device at least once; and establish a communication connection between the first device and the second device when the user inputs the fourth operation.
[0039] For example, the processing module is specifically configured to: send a third message based on the first message and the second message, the third message being used to request the establishment of a communication connection between the first device and the second device; receive a fourth message, the fourth message being used to respond to the request to establish a communication connection; or, based on the first message and the second message, receive the third message; and send the fourth message.
[0040] For example, it also includes: an output module for outputting a second prompt message, the second prompt message being used to prompt the user to input a fourth operation; wherein, outputting the second prompt message includes: playing a prompt sound and / or vibrating the second device.
[0041] Fifthly, embodiments of this application provide an electronic device, including: a processor and a memory, the memory for storing a computer program, and the processor for calling and running the computer program stored in the memory to perform methods as described in the first aspect, the second aspect, or various possible implementations.
[0042] In a sixth aspect, embodiments of this application provide a chip, including: a processor, configured to retrieve and execute computer instructions from a memory, causing a device on which the chip is mounted to perform methods as described in the first aspect, the second aspect, or various possible implementations.
[0043] In a seventh aspect, embodiments of this application provide a computer-readable storage medium for storing computer program instructions, which cause a computer to perform methods as described in the first aspect, the second aspect, or various possible implementations.
[0044] Eighthly, embodiments of this application provide a computer program product including computer program instructions that cause a computer to perform the methods as described in the first aspect, the second aspect, or various possible implementations.
[0045] The beneficial effects of the second to eighth aspects and the various possible implementations described above can be found in the first aspect and the various possible implementations of the first aspect, and will not be repeated here. Attached Figure Description
[0046] Figure 1 A schematic diagram of the electronic device is shown.
[0047] Figure 2This is a schematic diagram illustrating an application scenario of a communication connection provided in an embodiment of this application.
[0048] Figure 3 This is a schematic diagram of the interaction process of a communication connection method between devices provided in an embodiment of this application.
[0049] Figure 4 This is a schematic diagram of the interaction process of a communication connection method provided in an embodiment of this application.
[0050] Figure 5 This is a schematic diagram of the interaction process of a communication connection method between devices provided in an embodiment of this application.
[0051] Figure 6 This is a flowchart illustrating a communication connection establishment method provided in an embodiment of this application.
[0052] Figure 7 This is a schematic diagram of a communication connection interface provided in an embodiment of this application.
[0053] Figure 8 This is a schematic block diagram of a processing device provided in an embodiment of this application. Detailed Implementation
[0054] First, an electronic device, a graphical user interface for such an electronic device, and embodiments for using such an electronic device are introduced. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or music player, such as a mobile phone, tablet computer, wearable electronic device with wireless communication capabilities (such as a smartwatch, smart glasses), etc. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface or touch panel. It should also be understood that in some other embodiments, the aforementioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or touch panel; the embodiments of this application do not limit the form of the electronic device.
[0055] In addition, the electronic device in this application may also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical care, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0056] The term "user interface (UI)" used in the specification, claims, and drawings of this application refers to the medium through which an application or operating system interacts and exchanges information with the user. It converts the internal form of information into a form that the user can receive. The user interface of an application is source code written in a specific computer language such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on the terminal device, ultimately presenting user-recognizable content, such as images, text, buttons, and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, images, and text. The attributes and content of controls in the interface are defined through tags or nodes, such as in XML. <textview> 、 <imgview> 、 <videoview>The nodes define the controls contained in the interface. One node corresponds to one control or attribute in the interface, and the node is rendered into content visible to the user after being parsed and rendered.
[0057] A common form of user interface is a graphic user interface (GUI), which refers to a user interface that displays in a graphical manner. It can be an icon, window, control, etc. interface element displayed in the display screen of an electronic device, wherein the control can include an icon, button, menu, tab, text box, dialog box, status bar, navigation bar, Widget, etc. visual interface element.
[0058] Figure 1 A structural diagram of an electronic device is shown. Referring to Figure 1 The electronic device can include a processor 110 (such as a CPU) and a memory 120. The memory 120 can include a high-speed random-access memory (RAM) and can also include a non-volatile memory (NVM), such as at least one disk memory. The memory 120 can store various instructions for completing various processing functions and implementing the method steps of the present application.
[0059] Optionally, the electronic device according to the present application can further include a power supply 130, a communication bus 140, and a communication port 150. The communication port 150 is used to realize the connection and communication between the electronic device and other external devices. In the embodiments of the present application, the memory 120 is used to store computer executable program codes, and the program codes include instructions. When the processor 110 executes the instructions, the instructions make the processor 110 of the electronic device perform the actions in the above method embodiments, and the implementation principles and technical effects are similar, which will not be described here.
[0060] Optionally, the electronic device according to the present application can further include a display screen 160, which is used to display the interface of the electronic device.
[0061] It is to be noted that the modules or components in the above embodiments can be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), etc. For example, when a certain module above is implemented in the form of a processing element scheduling code, the processing element can be a general purpose processor, such as a central processing unit (CPU) or other processor capable of invoking code, such as a controller. For another example, these modules can be integrated together in the form of a system-on-a-chip (SOC).
[0062] The electronic device 100 can include an audio module 170 to implement audio functions through some or all of a speaker 171, a receiver 172, a microphone 173, a headset jack, and the like, and an application processor, etc. For example, receiving audio signals, music playback, recording, etc.
[0063] The audio module 170 is configured to convert digital audio information into analog audio signals for output, and to convert analog audio input into digital audio signals. The audio module 170 can also be configured to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110.
[0064] The speaker 171, also known as a "loudspeaker", is configured to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 171.
[0065] The receiver 172, also known as a "earpiece", is configured to convert audio electrical signals into sound signals. When the electronic device 100 is on a call or receiving a voice message, the receiver 172 can be placed close to a person's ear to listen to the voice through the receiver 172.
[0066] Microphone 173, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 173, inputting the sound signal into microphone 173. Electronic device 100 may have at least one microphone 173. In some embodiments, electronic device 100 may have two microphones 173, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 173, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0067] Figure 2 This is a schematic diagram illustrating an application scenario 200 for a communication connection provided in an embodiment of this application. For example... Figure 2 As shown, electronic device 210 can be implemented as the aforementioned electronic device, such as a mobile phone, and electronic device 220 can also be implemented as the aforementioned electronic device, such as wireless headphones. This application does not limit the form of the wireless headphones; for example, it can be a standalone wireless headphone 221, a multi-component product 222 consisting of a wireless headphone and a headphone case, or a multi-component product 223 consisting of a wireless headphone and a watch. In the multi-component product 223, the headphone case housing the wireless headphones can be housed within the watch. This application does not limit the composition of the multi-component product to include wireless headphones; for example, the multi-component product may also include smart glasses and a glasses case.
[0068] In this application, electronic device 210 and components (such as earphones and / or earphone cases) in electronic device 220 can be connected via Bluetooth technology, but this application is not limited to this; for example, they can also be connected via any short-range communication technology. The wireless earphone can be used in conjunction with electronic device 210 to handle audio services such as media and calls, as well as other data services. For example, audio services may include playing music, recording, and providing caller ID tones for the user. In call scenarios such as telephone calls, voice messages, audio calls, video calls, games, and voice assistants, it may also include playing voice messages from the other end or collecting the user's voice data and sending it to the other end.
[0069] This application does not limit the number of wireless earphones. For example, electronic device 220 can be a single-ear headphone device including one wireless earphone, a dual-ear headphone device including two wireless earphones, or a shared headphone device including three or more wireless earphones.
[0070] In some embodiments, the wireless headset of this application may include: a processor, a memory, a speaker, a communication port, etc. The processor, memory, speaker, and communication port can be referred to the relevant descriptions of corresponding modules in an electronic device.
[0071] In some embodiments, the earphone box in the present application can include a processor, a memory, a speaker, a communication port, etc. The processor, the memory, the speaker, and the communication port can refer to the related description of the corresponding modules in the electronic device.
[0072] It should be understood that the present application does not limit the scenarios of the applicable communication connection, for example, scenarios that can include the following examples.
[0073] Scenario one, the pairing connection of the earphone box and the mobile phone, tablet, personal computer (PC), large-screen device, etc., such as the wireless earphone being placed in the earphone box, the earphone box being connected with the wireless earphone, and the mobile phone and the like being able to obtain the information (such as the power, audio settings, etc.) of the wireless earphone through the earphone box connected therewith.
[0074] Scenario two, the pairing connection of part or all of the wireless earphones contained in the same earphone box and the mobile phone, tablet, PC, large-screen device, etc., such as the wireless earphone not carrying the earphone box or the wireless earphone being taken out of the box and being able to be paired and connected with the mobile phone and the like. It can be understood that different wireless earphones contained in the same earphone box can be connected to the same device or different devices, respectively.
[0075] Scenario three, the pairing connection between the wireless earphone and the earphone box containing the wireless earphone.
[0076] Scenario four, the pairing connection between two or more wireless earphones / earphone boxes. For example, a multi-person temporary audio local area network is quickly established to support the point-to-point / point-to-multipoint private communication between the earphones and the earphones. For another example, one of the wireless earphones has established a connection with other devices (such as a mobile phone) for audio playing, and the wireless earphone and another wireless earphone can share the audio source after being paired and connected, such as listening to songs together or watching movies together. The connected different wireless earphones can be wireless earphones contained in the same earphone box or different earphone boxes.
[0077] Currently, when the wireless earphone establishes a connection with the mobile phone, a specific physical button needs to be triggered, such as Figure 2 The physical button 01 is deployed on the upper part of the electronic device 222, and the user presses the physical button 01 to enter the trigger pairing after 3s flashing, and then the earphone and the mobile phone establish a communication connection. Due to the portability and wearing comfort of the true wireless stereo (TWS) earphone, the user often wears the earphone when going out, participating in activities, running, etc., without carrying the earphone box, which leads to the difficulty of connecting the earphone with a new device or reconnecting the earphone after a long time disconnection, and the convenience of establishing a communication connection is poor. The same problem of poor convenience of connection operation exists between other devices.
[0078] Therefore, the embodiments of the present application establish a communication connection between devices based on motion information of the devices, such as speed information and / or acceleration information, so that the communication connection is not limited by the operation of physical buttons, and the convenience of the communication connection is improved.
[0079] The present application can be applied to various communication scenarios. As an example, it can be applied to short-range communication, such as Bluetooth, Wi-Fi, sparklink-basic (SLB), sparklink-low energy (SLE), etc. Of course, the present application is not limited thereto, and for example, it can also be applied to ultra-wideband (UWB) communication, etc. Based on this, when the embodiments of the present application are applied to any of the above communication scenarios, a communication connection that meets the above communication scenario can be established accordingly.
[0080] The present application does not limit the pairing connection between two devices, but also includes the pairing connection between more devices. And the pairing connection can be referred to as a communication connection, and the meanings expressed by the pairing connection and the communication connection are consistent when they are used alternately in the following.
[0081] The positioning method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0082] It should be understood that the following is only for the convenience of understanding and illustration, and the interaction between the first device and the second device is described by way of example, and the first device and the second device can be the same type of electronic device or different types of electronic device, and the present application does not limit this. The first device can be replaced by a component in an electronic device, such as a chip, a chip system or other functional modules capable of calling and executing programs, and the second device can be replaced by a component in an electronic device, such as a chip, a chip system or other functional modules capable of calling and executing programs. For example, the first device can be the electronic device 210 in Figure 2 , the second device can be the electronic device 220 in Figure 2 , for example, the second device can be the electronic device 220 as a whole or a component (such as an earphone box or one or more wireless earphones) in the electronic device 220; or the first device can be the electronic device 220 in Figure 2 , and the second device can be the electronic device 210 in Figure 2 , for example, the first device can be a component (such as an earphone box or one or more wireless earphones) in the electronic device 220.
[0083] Figure 3 The interaction flow diagram of a communication connection method 300 between devices provided by the embodiments of the present application is shown in FIG. 3. As shown in FIG. 3, the method 300 can include the following steps or all the steps. Figure 3
[0084] S310, the first device acquires first motion information.
[0085] S320, based on the first motion information, a communication connection between the first device and the second device is established.
[0086] The first motion information includes first speed information and / or first acceleration information of the first device. For example, the first device can acquire the first motion information through a sensor. For example, the first device can acquire the first speed information through a speed sensor, or the first device can acquire the first acceleration information through an acceleration sensor. Optionally, the detection of the first motion information by the first device can be referred to as acceleration vector change (ACC). The first motion information can be acquired periodically, or the first motion information can be acquired in response to an event or a user operation, which is not limited in the present application.
[0087] In some embodiments, the first motion information can be generated by a user operation. The first motion information can be a numerical value, such as a value of the first speed or a value of the first acceleration at a certain time point, or a value determined based on the first speed and / or the first acceleration at a certain time point, or a value determined based on the first speed and / or the first acceleration in a period of time. Alternatively, the first motion information can be curve data, such as a speed curve, an acceleration curve, or a curve representing changes in speed and acceleration. In addition, the first motion information can be any other data form capable of representing speed and / or acceleration information, which is not limited in the present application.
[0088] It should be noted that the first motion information is named only for the purpose of distinguishing the second motion information and the third motion information below. For example, the first motion information and the second motion information are motion information of the first device in different time periods, and the first motion information and the third motion information are motion information of different devices, which can be summarized as motion information. Correspondingly, the first speed information in the first motion information is named for the purpose of distinguishing the speed information in other motion information, and the first acceleration information in the first motion information is named for the purpose of distinguishing the second acceleration information in other motion information.
[0089] Further, by identifying the change of the speed and / or acceleration of the first device, it can be determined whether to establish the communication connection between the first device and the second device. As a first example, the first device can determine whether to establish the communication connection between the first device and the second device based on the comparison of the first motion information and a threshold value, for example, when the first motion information is greater than or equal to the threshold value, the communication connection between the first device and the second device is established, and when the first motion information is less than the threshold value, the establishment of the communication connection between the first device and the second device is not performed. As a second example, the first device can determine whether to establish the communication connection between the first device and the second device based on the comparison of the first motion information and preset motion change information, for example, when the first motion information is embodied as curve data such as speed and / or acceleration curve, and the motion change information is also embodied as curve data, if the difference between the first motion information and the preset motion change information is less than or equal to a preset difference, the communication connection between the first device and the second device is established, and if the difference between the first motion information and the preset motion change information is greater than the preset difference, the establishment of the communication connection between the first device and the second device is not performed.
[0090] As mentioned above, the first motion information can be generated by the user operation. In this case, the first device can identify the user operation based on the first motion information, and determine whether the user has the intention to establish the communication connection between the first device and the second device based on the identified user operation, and then determine whether to establish the communication connection between the first device and the second device according to the intention of the user. In order to distinguish from other user operations described below, the user operation in this example can be referred to as a first operation, so as to distinguish from the second operation, the third operation, etc. described below. For example, the first operation can include the operation of touching the first device and the second device at least once, which can be expressed as the operation of touching one device to the other device, such as the operation of touching the first device to the second device at least once, or the operation of touching the second device to the first device at least once; for another example, the first operation can include the operation of shaking the first device, and optionally, the second device can be shaken at the same time, that is, the first operation can include the operation of shaking the first device and the second device.
[0091] Continuing with the above example, when the first operation is to touch the second device with the first device, the first device can detect whether a touch has occurred based on the difference between the first motion information and the preset collision curve. If the difference between the first motion information and the collision curve is less than or equal to the preset difference, then the first device has touched the other device, that is, the user has entered the first operation. When the first operation is to shake the first device and the second device simultaneously, the first device can detect whether a shake has occurred based on the difference between the first motion information and the preset shaking curve. If the difference between the first motion information and the shaking curve is less than or equal to the preset difference, then the first device sends a shake, that is, the user has entered the first operation.
[0092] It should be noted that, in the above example, the time interval between the first motion information generated by the first device and the third motion information generated by the second device due to the user performing the first operation on the first device and the second device should be less than a preset time interval.
[0093] Optionally, when the first operation includes at least two touch operations between the first device and the second device, the first motion information may include motion information generated by each touch, and then the first device may establish a communication connection between the first device and the second device based on the motion information generated by each touch.
[0094] It should be understood that the contact between the first and second devices can be replaced by expressions such as tapping, bumping, knocking, or touching.
[0095] For example, when the first operation includes touching the second device with the first device at least twice, the time interval between two adjacent touches is less than or equal to a preset value to avoid misidentification of the first operation. Optionally, the time interval between two adjacent touches should also be greater than or equal to a necessary preset time interval so that the first device can recognize the two touches.
[0096] For example, the first device identifies a first operation input by the user based on the collected first motion information, indicating that the user intends to establish a communication connection between the first device and the second device, and then establishes a communication connection between the first device and the second device; if the first device does not identify the first operation input by the user based on the first motion information, then it does not establish a communication connection between the first device and the second device.
[0097] For example, a first device determines to establish a communication connection between itself and a second device based on first motion information. For instance, if the first device identifies a first operation based on the first motion information and thus determines to establish a communication connection, in this case: as one possible example, the first device can enter an inquiry scan state to receive an inquiry request from the second device and send an inquiry response to the second device, enabling the second device to discover the first device to be connected and thus establish a communication connection with the first device. As another possible example, the first device can send an inquiry request to the second device, which is in an inquiry scan state, and receive an inquiry response from the second device, enabling the first device to discover the second device to be connected and thus establish a communication connection with the first device. It should be noted that after the first device discovers the second device, or the second device discovers the first device, the communication connection can be established based on any communication technology. The following will illustrate this with... Figure 4 An illustrative example is provided.
[0098] See Figure 4 The master device can be a first device, and the slave device (or secondary device) can be a second device; or, the master device can be a second device, and the slave device can be a first device. This application does not limit this. For example, the device that discovers the device to be connected can be designated as the master device, and the device to be connected can be designated as the slave device. After the master device discovers the slave device, the master device and the slave device can establish a communication connection through at least some of the following processes:
[0099] S1, the master device can send a page request to the slave device;
[0100] S2, the slave device can send a page response to the master device;
[0101] S3, the master device and the slave device can exchange information to achieve at least one of pairing, authentication and encryption;
[0102] S4, the master device sends a link establishment complete message (such as LMP_setup complete) to the slave device;
[0103] S5, the slave device sends a link establishment complete message (such as LMP_setup complete) to the master device.
[0104] The paging request can be referred to as the third message, which is used to request the establishment of a communication connection between the first device and the second device; the paging response can be referred to as the fourth message, which is used to respond to the request to establish a communication connection between the first device and the second device.
[0105] Optionally, the first device determines the received signal strength indicator (RSSI) of the corresponding device through broadcast messages sent by surrounding devices, thereby identifying devices in the surrounding environment that are close to the first device itself. In other words, the first device determines the distance between itself and each device based on the RSSI corresponding to different devices. The first device can establish a communication connection with devices whose RSSI is greater than or equal to the RSSI threshold, that is, the RSSI of the second device detected by the first device should be greater than or equal to the RSSI threshold.
[0106] Therefore, in this embodiment of the application, the first device obtains first motion information, such as first speed information and / or first acceleration information, and establishes a communication connection between the first device and the second device based on the first motion information, so that the communication connection is not limited by physical button operation and the convenience of the communication connection is improved.
[0107] Figure 5 This is a schematic diagram of the interaction flow of a device communication connection method 400 provided in an embodiment of this application. Figure 5 As shown, the method 400 may include some or all of the following steps.
[0108] S410a, The first device acquires the first motion information;
[0109] S420a, the first device identifies whether the user has input a first operation based on the first motion information;
[0110] S430a, when the user inputs the first operation, the first device sends the first message to the second device;
[0111] S410b, the second device acquires the third motion information;
[0112] S420b, the second device identifies whether the user has entered a third operation based on the third motion information;
[0113] S430b, when the user inputs a third operation, the second device sends a second message to the first device;
[0114] S440: When the user inputs a second operation, a communication connection is established between the first device and the second device.
[0115] S410a to S430a can be found in [reference]. Figure 3 The descriptions in the illustrated embodiments are omitted for brevity. The schemes executed by the second device in S410b to S430b are the same as or similar to the schemes executed by the first device in S410a to S430a, respectively. This application does not limit the order in which the first device executes S410a to S430a and the second device executes S410b to S430b, and the higher the synchronization between the first device executing S410a to S430a and the second device executing S410b to S430b, the lower the latency of establishing the communication connection.
[0116] The third motion information is similar to the first motion information, except that it consists of velocity and / or acceleration information from different devices. For example, the third motion information may include the third velocity and / or third acceleration information from the second device. For simplicity, the explanation of the third motion information can be found in the first motion information example above. The method by which the second device obtains the third motion information is similar to the method by which the first device obtains the first motion information, and will not be repeated for simplicity.
[0117] Similar to the first motion information, the third motion information can also be generated by user operation. In this case, the second device can identify the user operation based on the third motion information, and thus determine whether the user intends to establish a communication connection between the first and second devices based on the identified user operation, thereby confirming whether to establish a communication connection between the first and second devices according to the user's intention. The third operation and the first operation can be the same operation, such as the user touching the first device to the second device at least once, or the user touching the second device to the first device at least once. In this case, the first operation performed by the user on the first device and the third operation performed on the second device can be understood as the same operation; or, the first operation and the third operation can be operations performed simultaneously, such as the first operation including shaking the first device and the third operation including shaking the second device. In one interpretation, if the operations performed on the first device and the second device are the same operation (such as both being shaking operations), the first operation and the third operation can also be considered the same operation. In addition, the first operation and the third operation can also be completely unrelated, such as the first operation being the user's shaking operation on the first device and the third operation being the user's rotation operation on the second device.
[0118] Combination Figure 6 The discovery phase (or query phase) is illustrated using a two-touch operation as an example. The first and second devices are brought close together. For instance, the first and / or second devices can detect devices in the surrounding environment based on RSSI to determine if a communication connection can be established between them. The first device can periodically detect its own motion information and then determine whether a first touch operation has occurred based on this motion information. If the first device does not detect a first touch operation, it continues to periodically detect motion information. If the first device determines that a first touch operation has occurred, it starts a timer. Before the timer expires, it determines whether a second touch operation has occurred based on the motion information. If a second touch operation is determined, it continues to establish a communication connection between the first and second devices, such as entering... Figure 6 During the connection establishment phase, if no second touch operation is detected before the timer expires, the communication connection between the first and second devices is terminated, and the first device can continue to periodically detect motion information. Similarly, the second device can periodically detect its own motion information to identify whether there are two touch operations affecting it. The execution process of the second device is similar to that of the first device, and will not be described again for simplicity. Optionally, if both the first and second devices detect two touch operations, the communication connection between the first and second devices continues to be established.
[0119] For example, when the user inputs a first operation, the first device sends a first message, which is used by the second device to discover the first device to be connected. Correspondingly, when the user inputs a third operation, the second device sends a second message, which is used by the first device to discover the second device to be connected. Optionally, the first message may carry information about the first device, such as device identifier, device name, device manufacturer, etc., and the second message may carry information about the second device, such as device identifier, device name, device manufacturer, etc.
[0120] Optionally, the first device may repeatedly send the first message, and the second device may stop receiving other first messages after successfully receiving one. Optionally, the first device may receive the second message before sending the first message, or the first device may only receive the second message after sending the first message; this application does not limit this. Similarly, the second device may repeatedly send the second message, and the first device may stop receiving other second messages after successfully receiving one second message. Optionally, the second device may receive the first message before sending the second message, or the second device may only receive the first message after the second message occurs; this application does not limit this.
[0121] Optionally, the interval between the first device sending the first message and the first device receiving the second message should be less than or equal to a preset interval. Similarly, the interval between the second device sending the second message and receiving the first message should be less than or equal to a preset interval. For example, the first device can start a timer when generating or sending the first message. If the second message is received before the timer expires, a communication connection is established between the first and second devices. If the second message is not received before the timer expires, a communication connection is not established between the first and second devices. The second device can refer to the above scheme to determine whether to establish a communication connection based on the interval between sending the second message and receiving the first message.
[0122] Optionally, the first message may carry first motion information and / or the time when the first motion information occurred, so that the second device can verify the identified third operation. Similarly, the second message may carry third motion information and / or the time when the third motion information was sent, so that the first device can verify the identified first operation. This avoids misidentification of the first and third operations.
[0123] It should be noted that S420a and S430a are optional implementations. For example, the first device can also directly establish a communication connection between the first device and the second device based on the first motion information, such as the first device sending a first message to the second device based on the first motion information. S420b and S430b are optional implementations. For example, the second device can also directly establish a communication connection between the first device and the second device based on the third motion information, such as the second device sending a second message to the first device based on the third motion information.
[0124] Furthermore, after the first and second devices discover each other, a communication connection can be established between the first and second devices in response to user actions. Optionally, to improve user experience and facilitate user input to confirm the continuation of the communication connection, the first device can output a first prompt message to prompt the user to input an action (such as a second action); similarly, the second device can output a second prompt message to prompt the user to input an action (such as a fourth action). Optionally, the presentation of the output prompt messages (such as the first and / or second prompt messages) may differ depending on the interaction method. For example, the prompt messages can be presented through display on a display device, audio playback, animation playback, or device vibration, or through some or all of these methods. It should be noted that the first and second devices may output the prompt messages through one of them, or both devices may output the prompt messages simultaneously. This application does not limit this. When both the first and second devices input prompt messages, the user can perform corresponding actions on both devices, or the user can perform a user action on one of the devices to confirm the continuation of the communication connection.
[0125] The following explanation uses two possible examples.
[0126] Example 1: The second action can be an action entered by the user through an interactive interface. See also: Figure 6 At least one of the first and second devices is equipped with a display device capable of presenting a communication connection interface, wherein the communication connection interface 010 can be as follows: Figure 7 As shown, text information 011 and pairing control 012 are displayed. Text information 011 may be, for example, "Pair with device A?". When the user selects pairing control 012, the process of establishing a communication connection between the devices is initiated. Optionally, the communication connection interface 010 may also include more controls and / or text information, such as a deselection control 013. When the user selects deselection control 013, the process of establishing a communication connection between the devices is canceled.
[0127] Optionally, this application does not limit the presentation method of the communication connection interface. For example, the communication connection interface can be presented as a pop-up (or pop-up window).
[0128] Example 2: The second operation may not be an operation input through an interactive interface. For example, when neither the first nor the second device has a display device deployed, the user cannot operate through interface interaction. For instance, the second operation is similar to the first operation; see the description of the first operation in the aforementioned examples. Taking the second operation including touching the second device once as an example, see... Figure 6 As shown, the first device can play a prompt sound and / or vibrate itself, and start a timer. Based on the acquired motion information of the first device itself (such as second motion information), it identifies whether the user has input a third touch operation. If a third touch operation is confirmed before the timer ends, a communication connection is established between the first and second devices. If no third touch operation is detected before the timer ends, the communication connection establishment process between the first and second devices ends, and motion information is periodically detected again to detect the first operation. The second motion information can be motion information generated by the second operation input by the user. Similarly, the second device can play a prompt sound and / or vibrate itself to determine whether a third touch operation has occurred. The execution process of the second device is similar to that of the first device, and will not be described again for simplicity. Optionally, if both the first and second devices identify a third touch operation, the communication connection between the first and second devices continues to be established.
[0129] In one example, the second operation described above can be either an operation applied to the first device or an operation applied to the second device. In another example, the second operation can be an operation applied to the first device, and the fourth operation is an operation applied to the second device. The fourth operation and the second operation can be the same operation, such as the user touching the first device to the second device at least once, or the user touching the second device to the first device at least once. In this case, the second operation performed by the user on the first device and the fourth operation performed on the second device can be understood as the same operation. Alternatively, the second operation and the fourth operation can be operations performed simultaneously, such as the second operation including shaking the first device and the fourth operation including shaking the second device. In one interpretation, if the operations performed on the first device and the second device are the same operation (e.g., both are shaking operations), the second operation and the fourth operation can also be considered the same operation. In addition, the second operation and the fourth operation can also be completely unrelated, such as the second operation being the user shaking the first device and the fourth operation being the user rotating the second device.
[0130] Optionally, the second device can identify whether the user has entered a fourth operation based on the fourth motion information. The fourth motion information can be motion information generated by the user entering the fourth operation.
[0131] Following Examples 1 and 2 above, the first device and the second device can establish a communication connection based on any communication technology. As an example, please refer to the aforementioned examples. Figure 4 The illustrated embodiment. In this embodiment, the first device can be a master device and the second device can be a slave device, or the first device can be a slave device and the second device can be a master device; this application does not limit this. For example, the first device and the second device can be designated as such, with one device being the master device and the other the slave device, to facilitate…
[0132] As a first example, the first device and the second device can determine the master device and the slave device based on a first random number carried in the first message and a second random number carried in the second message. If the first random number is larger and the second random number is smaller, then the first device is determined to be the master device and the second device is the slave device. This application does not limit the correspondence between the size of the random number and the master and slave devices. For example, if the first random number is larger and the second random number is smaller, the first device can still be determined to be the slave device and the second device to be the master device.
[0133] As a second example, the first device and the second device can determine the master device and the slave device based on the timestamp of sending the first message (or the timestamp of sending the first message) and the timestamp of sending the second message (or the timestamp of sending the second message). If the timestamp of sending the first message is earlier than the timestamp of sending the second message, the first device is determined to be the master device and the second device is the slave device. This application does not limit the correspondence between timestamps and master and slave devices. For example, if the timestamp of the first message is earlier than the timestamp of the second message, the first device is determined to be the slave device and the second device is the master device.
[0134] As a third example, the first device and the second device can determine the master device and the slave device based on any one or more pieces of information carried in the first message and any one or more pieces of information carried in the second message. This one or more pieces of information may include, for example, some or all of the device identifier, device name, and device manufacturer information mentioned above. Optionally, a first value can be determined based on any one or more pieces of information carried in the first message, and a second value can be determined based on any one or more pieces of information carried in the second message. By comparing the first value and the second value, the master device and the slave device are determined. If the first value is greater than the second value, then the first device is the master device and the second device is the slave device. Since the correspondence between the value and the master / slave device is not limited, the first device can also be determined as the slave device and the second device as the master device if the first value is greater than the second value.
[0135] Furthermore, the process of establishing a communication connection between the first device and the second device can be found in the preceding text. Figure 4 In the illustrated embodiment, the interaction process between the master device and the slave device will not be described in detail for the sake of simplicity.
[0136] In this embodiment, both the first device and the second device identify their own motion information and determine whether to establish a communication connection between the first device and the second device based on their own motion information. If it is determined that a communication connection should be established, the first device sends a first message to the second device and the second device sends a second message to the first device, so that the first device and the second device can discover each other and establish a communication connection in response to the user's second operation.
[0137] In the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions between the various embodiments are consistent and can be referenced by each other. Technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0138] Figure 8 This is a schematic block diagram of a processing apparatus 500 provided in an embodiment of this application. Figure 8 As shown, the device 500 includes at least one of the following: an acquisition module 510, a processing module 520, an output module 530, or a transceiver module 540.
[0139] For example, the processing device 500 can be implemented as the first device or deployed on the first device. When the processing device 500 is implemented as the first device or deployed on the first device, the acquisition module 510 can be used to acquire first motion information, which includes first speed information and / or first acceleration information of the first device. The processing module 520 can be used to establish a communication connection between the first device and the second device based on the first motion information.
[0140] Optionally, the acquisition module 510 can be implemented as an ACC acquisition module or an ACC detection module.
[0141] Optionally, the processing module 520 is specifically used to: identify whether the user has input a first operation based on the first motion information, the first operation including touching the second device with the first device at least once; and establish a communication connection between the first device and the second device when the user inputs the first operation.
[0142] Optionally, the first operation includes touching the second device with the first device at least twice, wherein the time interval between two adjacent touches is less than or equal to a preset value.
[0143] Optionally, the processing module 520 is specifically used to: send a first message to the second device when the user inputs a first operation, the first message being used by the second device to discover the first device to be connected; receive a second message sent by the second device, the second message being used by the first device to discover the second device to be connected; and establish a communication connection between the first device and the second device when the user inputs a second operation.
[0144] Optionally, the processing module 520 is further configured to: identify whether the user has input a second operation based on the second motion information, wherein the second motion information includes the second speed information and / or the second acceleration information of the first device, and the second operation includes touching the second device with the first device at least once.
[0145] Optionally, the processing module 520 is specifically configured to: send a third message based on the first message and the second message, the third message being used to request the establishment of a communication connection between the first device and the second device; receive a fourth message, the fourth message being used to respond to the request to establish a communication connection; or, based on the first message and the second message, receive the third message; and send the fourth message.
[0146] Optionally, it also includes: an output module 530 for outputting a first prompt message, the first prompt message being used to prompt the user to input a second operation; wherein, outputting the first prompt message includes: playing a prompt sound and / or vibrating the first device.
[0147] For example, the processing device 500 can be implemented as the second device or deployed on the second device. When the processing device 500 is implemented as the second device or deployed on the second device, the acquisition module 510 is used to acquire third motion information, which includes third velocity information and / or third acceleration information of the second device; the processing module 520 is used to send a second message through the transceiver module 540 based on the third motion information, which is used by the first device to discover the second device to be connected; the processing module 520 receives a first message sent by the first device through the transceiver module 540, which is used by the second device to discover the first device to be connected; the processing module 520 is also used to establish a communication connection between the first device and the second device.
[0148] Optionally, the processing module 520 is specifically used to: identify whether the user has entered a third operation based on the third motion information, the third operation including touching the first device with the second device at least once; and send a second message when the user enters the third operation.
[0149] Optionally, the third operation includes the operation of touching the first device with the second device at least twice, wherein the time interval between two adjacent touches is less than or equal to a preset value.
[0150] Optionally, the processing module 520 is specifically used to: identify whether the user has input a fourth operation based on the fourth motion information, the fourth motion information including the fourth speed information and / or the fourth acceleration information of the second device, the fourth operation including touching the first device with the second device at least once; and establish a communication connection between the first device and the second device when the user inputs the fourth operation.
[0151] Optionally, the processing module 520 is specifically configured to: send a third message based on the first message and the second message, the third message being used to request the establishment of a communication connection between the first device and the second device; receive a fourth message, the fourth message being used to respond to the request to establish a communication connection; or, based on the first message and the second message, receive the third message; and send the fourth message.
[0152] Optionally, it also includes: an output module 530 for outputting a second prompt message, the second prompt message being used to prompt the user to input a fourth operation; wherein, outputting the second prompt message includes: playing a prompt sound and / or vibrating the second device.
[0153] It should be understood that the specific process of each module performing the above-mentioned corresponding steps has been described in detail in the above method embodiments, and will not be repeated here for the sake of brevity.
[0154] The division of the modules in the above device is only a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated.
[0155] In this application embodiment, the processing device (such as the processing device 500 described above) can be implemented as an electronic device, or deployed in an electronic device, such as... Figure 1 Electronic devices 100.
[0156] This application also provides a computer-readable storage medium storing a computer program or instructions, which, when executed, implement the methods described in the above embodiments.
[0157] This application also provides a computer program product, including computer program instructions that cause a computer to perform the methods described in the above embodiments.
[0158] The term "multiple" in this document refers to two or more. The term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the preceding and following related objects; in formulas, the character " / " indicates a "division" relationship between the preceding and following related objects. Additionally, it should be understood that in the description of this application, words such as "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or order.
[0159] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application.
[0160] It is understood that, in the embodiments of this application, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0161] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0162] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.< / videoview> < / imgview> < / textview>
Claims
1. A method for communication connection between devices, characterized in that, Applied to the first device, including: Acquire first motion information, the first motion information including first velocity information and / or first acceleration information of the first device; Based on the first motion information, a communication connection is established between the first device and the second device.
2. The method according to claim 1, characterized in that, The step of establishing a communication connection between the first device and the second device based on the first motion information includes: Based on the first motion information, it is determined whether the user has entered a first operation, the first operation including touching the second device with the first device; When the user inputs the first operation, a communication connection is established between the first device and the second device.
3. The method according to claim 2, characterized in that, The step of identifying whether the user has input a first operation based on the first motion information includes: When the difference between the first motion information and the preset collision curve is less than or equal to the preset difference, the user input of the first operation is recognized.
4. The method according to claim 2 or 3, characterized in that, The first operation includes touching the second device with the first device at least twice, wherein the time interval between two adjacent touches is less than or equal to a preset value.
5. The method according to any one of claims 2 to 4, characterized in that, The step of establishing a communication connection between the first device and the second device when the user inputs the first operation includes: When the user inputs the first operation, a first message is sent to the second device, the first message being used by the second device to discover the first device to be connected; Receive a second message sent by the second device, the second message being used by the first device to discover the second device to be connected; When the user inputs a second operation, a communication connection is established between the first device and the second device.
6. The method according to claim 5, characterized in that, Also includes: Based on the second motion information, it is determined whether the user has input the second operation. The second motion information includes the second speed information and / or the second acceleration information of the first device. The second operation includes touching the second device with the first device at least once.
7. The method according to claim 5 or 6, characterized in that, Establishing a communication connection between the first device and the second device includes: Based on the first message and the second message, a third message is sent, which is used to request the establishment of a communication connection between the first device and the second device; a fourth message is received, which is used to respond to the request to establish a communication connection; or, Based on the first message and the second message, the third message is received; the fourth message is sent.
8. The method according to any one of claims 5 to 7, characterized in that, Also includes: Output a first prompt message, which prompts the user to input the second operation; wherein... The output of the first prompt information includes: Play a notification sound and / or vibrate the first device.
9. A method for communication connection between devices, characterized in that, Applied to a second device, including: Acquire third motion information, which includes third velocity information and / or third acceleration information of the second device; Based on the third motion information, a second message is sent, which is used by the first device to discover the second device to be connected. Receive a first message sent by the first device, the first message being used by the second device to discover the first device to be connected; Establish a communication connection between the first device and the second device.
10. The method according to claim 9, characterized in that, The step of sending a second message based on the third motion information includes: Based on the third motion information, it is determined whether the user has entered a third operation, the third operation including touching the first device with the second device at least once; The second message is sent when the user inputs the third operation.
11. The method according to claim 10, characterized in that, The third operation includes the operation of touching the first device with the second device at least twice, wherein the time interval between two adjacent touches is less than or equal to a preset value.
12. The method according to any one of claims 9 to 11, characterized in that, Establishing a communication connection between the first device and the second device includes: Based on the fourth motion information, it is identified whether the user has entered a fourth operation. The fourth motion information includes the fourth velocity information and / or the fourth acceleration information of the second device. The fourth operation includes touching the first device with the second device at least once. When the user inputs the fourth operation, a communication connection is established between the first device and the second device.
13. The method according to any one of claims 9 to 12, characterized in that, Establishing a communication connection between the first device and the second device includes: Based on the first message and the second message, a third message is sent, which is used to request the establishment of a communication connection between the first device and the second device; a fourth message is received, which is used to respond to the request to establish a communication connection; or, Based on the first message and the second message, the third message is received; the fourth message is sent.
14. The method according to claim 12, characterized in that, Also includes: Output a second prompt message, which prompts the user to input the fourth operation; wherein... The output of the second prompt information includes: Play a notification sound and / or vibrate the second device.
15. A processing apparatus, characterized in that, Includes a module for performing the method as described in any one of claims 1 to 14.
16. A chip, characterized in that, include: A processor for retrieving and executing computer instructions from memory, causing a device having the chip mounted to perform the method as described in any one of claims 1 to 14.
17. An electronic device, characterized in that, include: A processor and a memory for storing a computer program, the processor for calling and running the computer program stored in the memory to perform the method as described in any one of claims 1 to 14.
18. A computer program product, characterized in that, It includes computer program instructions that cause a computer to perform the method as described in any one of claims 1 to 14.
19. A computer-readable storage medium, characterized in that, Used to store computer program instructions, the computer program causing the computer to perform the method as described in any one of claims 1 to 14.