Method and apparatus for communication connection between devices, device, and storage medium
By acquiring the device's motion information to identify the user's operational intent, the problem of poor communication connectivity between devices is solved, enabling convenient connection without physical buttons and applicable to various communication technologies.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-08-22
- Publication Date
- 2026-04-02
AI Technical Summary
The existing communication connection between devices is not convenient, especially between wireless headphones and mobile phones, which require physical buttons to trigger, resulting in insufficient portability and convenience.
By acquiring motion information from the device, such as speed and acceleration, the system can identify the user's operational intent, establish communication connections between devices, and avoid physical button operations.
It improves the convenience of communication between devices, simplifies the connection process, and is suitable for various communication scenarios such as short-range communication via Bluetooth, Wi-Fi, and StarFlash.
Smart Images

Figure CN2025116378_02042026_PF_FP_ABST
Abstract
Description
Communication connection method and device between devices, device and storage medium
[0001] The present application claims priority to the Chinese patent application No. 202411340541.9, filed on September 24, 2024, and entitled "Communication connection method and device between devices, device and storage medium", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the technical field of terminal, and in particular to a communication connection method and device between devices, device and storage medium. BACKGROUND
[0003] In the application scenario of device interaction technology, devices can interact and share information by establishing a communication connection between devices, and achieve collaborative services. For example, a wireless earphone and a mobile phone establish a communication connection, and the wireless earphone can cooperate with the mobile phone to process the media, call and other audio services of the mobile phone. With the increasing demand of users for device interconnection, in order to meet the needs of users, how to provide a convenient and efficient communication connection scheme in the interaction between devices is a problem to be solved at present. SUMMARY
[0004] The communication connection method and device between devices, device and storage medium provided by the embodiments of the present application provide a convenient and efficient communication connection scheme in the interaction between devices.
[0005] In a first aspect, the embodiments of the present application provide a communication connection method between devices. The execution subject of the method can be a first device, which can be an electronic device, such as a mobile phone, a tablet computer, a wearable electronic device (such as a smart watch) with wireless communication function, etc., or the first device can be replaced by a component in the electronic device, such as a chip, a chip system or other functional modules capable of calling and executing programs.
[0006] The method comprises: the first device establishes a communication connection between the first device and a second device by obtaining first motion information, such as first speed information and / or first acceleration information, and based on the first motion information.
[0007] Based on this, the establishment of a communication connection between devices is not limited by physical key operation, and the convenience of communication connection is improved.
[0008] With reference to the first aspect, in a possible implementation manner, the first motion information can be generated by user operation, that is, the user can operate the first device and / or the second device, so that the communication connection is established between the first device and the second device. In this case, the first device identifies whether the first operation is input by the user based on the first motion information, and the first operation includes touching the second device at least once by the first device.
[0009] Based on this, when the first operation is input by the user, the communication connection is established between the first device and the second device, so as to improve the convenience of the user in establishing the communication connection.
[0010] With reference to the first aspect, in a possible implementation manner, the first device can identify that the first operation is input by the user when a difference between the first motion information and a preset collision curve is less than or equal to a preset difference, so as to accurately identify the user operation, and further improve the convenience of the user in establishing the communication connection.
[0011] With reference to the first aspect, in a possible implementation manner, when the first operation includes the operation of touching the second device at least twice, a time interval between adjacent two touchings is less than or equal to a preset value.
[0012] Based on this, the first device can determine whether the operation of touching twice or more times is input by the user based on the constraint of the time interval, so as to accurately identify the first operation.
[0013] With reference to the first aspect, in a possible implementation manner, the first device can send a first message to the second device based on the first motion information, the first message is used for the second device to discover the first device to be connected, and receive a second message sent by the second device, the second message is used for the first device to discover the second device to be connected, based on this, the first device and the second device can have a basis for establishing the communication connection. With reference to the above example, if the first motion information is generated by the first operation input by the user, then when the first operation is input by the user, the first device can send the first message to the second device, and receive the second message sent by the second device.
[0014] Based on this, the first device and the second device discover each other by interacting the first message and the second message, and then the establishment of the communication connection is realized.
[0015] Further, when the user inputs a second operation, a communication connection between the first device and the second device can be established. For example, the second operation can include touching the second device at least once by the first device, and the first device can identify whether the user inputs the second operation based on second motion information, which includes second speed information and / or second acceleration information of the first device. The second operation can be any operation that indicates the intention of establishing the communication connection. For example, the user can input an operation of confirming the establishment of the communication connection through an interactive interface.
[0016] Accordingly, after the first device and the second device discover each other, the first device and the second device can confirm the establishment of the communication connection in response to the second operation of the user, thereby achieving flexible control over the establishment of the communication connection.
[0017] In combination with the first aspect, in a possible implementation, one of the first device and the second device sends a request for establishing a communication connection to the other device and receives a response for establishing the communication connection. For example, the first device can send a third message for requesting the establishment of the communication connection between the first device and the second device and receive a fourth message for responding to the request for establishing the communication connection based on the first message and the second message. For another example, the first device can receive the third message and send the fourth message based on the first message and the second message.
[0018] Optionally, the device that sends the request for establishing the communication connection can be referred to as a master device, and the device that receives the response for establishing the communication connection can be referred to as a slave 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. For example, the master-slave relationship can be determined based on a first random number carried in the first message and a second random number carried in the second message. For another example, the master-slave relationship can be determined based on a timestamp of sending the first message and a timestamp of sending the second message. For yet another example, the master-slave relationship 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.
[0019] Accordingly, the first device can determine the master-slave relationship in the process of establishing the communication connection based on the first message and the second message, and then determine whether to send the request for establishing the communication connection or respond to the request for establishing the communication connection, thereby achieving the establishment of the communication connection.
[0020] In combination with the first aspect, in a possible implementation, the first device can output first prompt information to prompt the user to input an operation (e.g., the second operation). Optionally, outputting the first prompt information can include playing a prompt sound and / or vibrating the first device.
[0021] Therefore, the first device outputs the first prompt information, so as to facilitate the user to input an operation to confirm to continue establishing the communication connection between the first device and the second device, and operability in the process of establishing the communication connection is improved.
[0022] In a second aspect, a method for establishing a communication connection between devices is provided. The execution subject of the method can be a second device, which can be an electronic device, such as a mobile phone, a tablet computer, a wearable electronic device (such as a smart watch) with a wireless communication function, or a component in the electronic device, such as a chip, a chip system or other functional modules capable of calling and executing programs.
[0023] For example, the second device obtains third motion information including third speed information and / or third acceleration information of the second device, and sends a second message based on the third motion information, the second message being used for the first device to discover the second device to be connected, and then receives a first message sent by the first device, the first message being used for the second device to discover the first device to be connected, and the communication connection between the first device and the second device is established.
[0024] For example, the second device can identify whether a third operation is input by the user based on the third motion information, the third operation including touching the first device with the second device at least once, and the second device sends the second message when the third operation is input by the user.
[0025] For example, when the third operation includes touching the first device with the second device at least twice, a time interval between the two adjacent touches is less than or equal to a preset value.
[0026] For example, the communication connection between the first device and the second device is established by: identifying whether a fourth operation is input by the user based on fourth motion information including fourth speed 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 the communication connection between the first device and the second device when the fourth operation is input by the user.
[0027] For example, the communication connection between the first device and the second device is established by: sending a third message based on the first message and the second message, the third message being used for requesting to establish the communication connection between the first device and the second device; receiving a fourth message, the fourth message being used for responding to the request to establish the communication connection; or receiving the third message based on the first message and the second message; and sending the fourth message.
[0028] Exemplarily, the method further comprises: outputting second prompt information by the second device, the second prompt information being used to prompt the user to input a fourth operation; wherein the outputting of the second prompt information comprises playing a prompt sound and / or vibrating the second device.
[0029] In a third aspect, an embodiment of the present application provides a processing apparatus, comprising: an acquisition module configured to acquire first motion information, the first motion information comprising first speed information and / or first acceleration information of a first device; and a processing module configured to establish a communication connection between the first device and a second device based on the first motion information, the first device being deployed with the processing apparatus.
[0030] Exemplarily, the processing module is specifically configured to: identify whether the user inputs a first operation based on the first motion information, the first operation comprising touching the second device with the first device at least once; and establish the communication connection between the first device and the second device when the user inputs the first operation.
[0031] Exemplarily, the first operation comprises touching the second device with the first device at least twice, and a time interval between the two adjacent touches is less than or equal to a preset value.
[0032] Exemplarily, the processing module is specifically configured to: send a first message to the second device when the user inputs the first operation, the first message being used for 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 for the first device to discover the second device to be connected; and establish the communication connection between the first device and the second device when the user inputs a second operation.
[0033] Exemplarily, the processing module is further configured to: identify whether the user inputs a second operation based on second motion information, the second motion information comprising second speed information and / or second acceleration information of the first device, the second operation comprising touching the second device with the first device at least once.
[0034] Exemplarily, 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 to establish the communication connection between the first device and the second device; and receive a fourth message, the fourth message being used to respond to the request to establish the communication connection; or, receive the third message based on the first message and the second message; and send the fourth message.
[0035] Exemplarily, the method further comprises: outputting first prompt information by the first device, the first prompt information being used to prompt the user to input the second operation; wherein the outputting of the first prompt information comprises playing a prompt sound and / or vibrating the first device.
[0036] In a fourth aspect, an embodiment of the present application provides a processing apparatus, comprising: an obtaining module, configured to obtain third motion information, the third motion information comprising third speed information and / or third acceleration information of the second device; a processing module, configured to send, based on the third motion information, a second message through the transceiving module, the second message being used for the first device to discover the second device to be connected; the processing module is further configured to receive a first message sent by the first device through the transceiving module, the first message being used for the second device to discover the first device to be connected; and the processing module is further configured to establish a communication connection between the first device and the second device.
[0037] For example, the processing module is specifically configured to: based on the third motion information, identify whether a third operation is input by the user, the third operation comprising touching the first device with the second device at least once; and send the second message when the third operation is input by the user.
[0038] For example, the third operation comprises touching the first device with the second device at least twice, and a time interval between the two adjacent touches is less than or equal to a preset value.
[0039] For example, the processing module is specifically configured to: based on fourth motion information, identify whether a fourth operation is input by the user, the fourth motion information comprising fourth speed information and / or fourth acceleration information of the second device, the fourth operation comprising touching the first device with the second device at least once; and establish the communication connection between the first device and the second device when the fourth operation is input by the user.
[0040] For example, the processing module is specifically configured to: based on the first message and the second message, send a third message, the third message being used for requesting to establish the communication connection between the first device and the second device; and receive a fourth message, the fourth message being used for responding to the request of establishing the communication connection; or, based on the first message and the second message, receive the third message; and send the fourth message.
[0041] For example, the processing apparatus further comprises an output module, configured to output second prompt information, the second prompt information being used for prompting the user to input the fourth operation; and the outputting of the second prompt information comprises playing a prompt sound and / or vibrating the second device.
[0042] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, the memory being used for storing a computer program, and the processor being used for calling and running the computer program stored in the memory to execute the method in the first aspect, the second aspect or the possible implementation manners.
[0043] In a sixth aspect, an embodiment of the present application provides a chip, comprising: a processor, configured to call and run a computer instruction from a memory, so that a device installed with the chip executes the method in the first aspect, the second aspect or the possible implementation manners.
[0044] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium for storing computer program instructions, the computer program instructions causing a computer to execute the method in the first aspect, the second aspect, or the possible implementation manners.
[0045] In an eighth aspect, an embodiment of the present application provides a computer program product comprising computer program instructions, the computer program instructions causing a computer to execute the method in the first aspect, the second aspect, or the possible implementation manners.
[0046] The beneficial effects of the above-mentioned second aspect to eighth aspect and the possible implementation manners can refer to the beneficial effects brought by the first aspect and the possible implementation manners of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0047] FIG. 1 shows a structural schematic diagram of an electronic device.
[0048] FIG. 2 is a schematic diagram of an application scenario of a communication connection provided by an embodiment of the present application.
[0049] FIG. 3 is a schematic diagram of an interaction flow of a communication connection method between devices provided by an embodiment of the present application.
[0050] FIG. 4 is a schematic diagram of an interaction flow of a communication connection method provided by an embodiment of the present application.
[0051] FIG. 5 is a schematic diagram of an interaction flow of a communication connection method between devices provided by an embodiment of the present application.
[0052] FIG. 6 is a schematic diagram of a flow of a communication connection establishment method provided by an embodiment of the present application.
[0053] FIG. 7 is a schematic diagram of a communication connection interface provided by an embodiment of the present application.
[0054] FIG. 8 is a schematic block diagram of a processing apparatus provided by an embodiment of the present application. DETAILED DESCRIPTION
[0055] 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 can be a portable electronic device that also contains other functions such as personal digital assistant and / or music player functions, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (e.g., a smart watch, smart glasses), etc. The portable electronic device described above can also be other portable electronic devices, such as a laptop with a touch-sensitive surface or touch panel, etc. It should also be understood that in other embodiments, the electronic device described above can also not be a portable electronic device, but a desktop computer with a touch-sensitive surface or touch panel, and the embodiments of the present application do not limit the form of the electronic device.
[0056] In addition, the electronic device in the present application can 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, a wireless terminal device in smart grid, a wireless terminal device in transportation safety, a wireless terminal device in smart city, or a wireless terminal device in smart home, etc.
[0057] The term "user interface (UI)" in the specification and claims of the present application and the drawings is a medium interface for interaction and information exchange between an application or an operating system and a user, which realizes the conversion between the internal form of information and the form that the user can receive. The user interface of the application is source code written in a specific computer language such as Java and extensible markup language (XML), and the interface source code is parsed, rendered, and finally presented as content that the user can recognize, such as pictures, text, buttons, etc. on the terminal device. The control (widget) is the basic element of the user interface, and typical controls include toolbar, menu bar, text box, button, scrollbar, picture, and text. The properties and content of the controls in the interface are defined by tags or nodes, such as 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.
[0058] 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, and other interface elements displayed in the display screen of an electronic device, wherein the controls can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visible interface elements.
[0059] FIG. 1 shows a structural schematic diagram of an electronic device. Referring to FIG. 1, the electronic device can include a processor 110 (for example, 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), for example, 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.
[0060] Optionally, the electronic device related 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.
[0061] Optionally, the electronic device related to the present application can further include a display screen 160, which is used to display the interface of the electronic device.
[0062] 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).
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] The microphone 173, also referred to as a "microphone" or a "microphone", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak into the microphone 173 by placing the mouth close to the microphone 173 to input a sound signal into the microphone 173. The electronic device 100 can be provided with at least one microphone 173. In other embodiments, the electronic device 100 can be provided with two microphones 173, in addition to collecting sound signals, noise reduction functions can also be achieved. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 173, to achieve sound signal collection, noise reduction, and also to identify the source of the sound, to achieve directional recording functions, etc.
[0068] FIG. 2 is a schematic diagram of an application scenario 200 of a communication connection provided by an embodiment of the present application. As shown in FIG. 2, the electronic device 210 can be implemented as the above-mentioned electronic device, for example, a mobile phone, and the electronic device 220 can also be implemented as the above-mentioned electronic device, for example, a wireless earphone. The present application does not limit the form of the wireless earphone, for example, it can be a standalone wireless earphone 221, a multi-component product 222 composed of a wireless earphone and an earphone case, a multi-component product 223 composed of a wireless earphone and a watch, etc. In the multi-component product 223, the earphone case containing the wireless earphone can be arranged in the watch. The present application does not limit the composition of the multi-component product including the wireless earphone, for example, the multi-component product can also include smart glasses and a glasses case, etc.
[0069] Among them, the components (such as earphones and / or earphone cases) in the electronic device 210 and the electronic device 220 can be connected based on Bluetooth technology, but the present application does not limit this, for example, it can also be connected based on any short-distance communication technology. The wireless earphone can be used in cooperation with the electronic device 210 to process the electronic device's media, call, etc. Audio services, as well as some other data services. For example, the audio service can include playing music, recording, incoming call prompt, etc. Services for users, but also include playing voice from the opposite end for users in the call service scenarios such as telephone, voice message, audio call, video call, game, voice assistant, etc., or collecting voice data of the user and sending it to the opposite end, etc.
[0070] The present application does not limit the number of wireless earphones, for example, the electronic device 220 can be a single-ear earphone device including one wireless earphone, a double-ear earphone device including two wireless earphones, or a shared earphone device including three or more wireless earphones.
[0071] In some embodiments, the wireless earphone 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] 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.
[0073] 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.
[0074] 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.
[0075] 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.
[0076] Scenario three, the pairing connection between the wireless earphone and the earphone box containing the wireless earphone.
[0077] 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.
[0078] At present, when the wireless earphone establishes a connection with the mobile phone, it needs to be triggered by a specific physical button, such as the physical button 01 deployed on the upper part of the electronic device 222 in FIG. 2. The user presses the physical button 01, and after 3s of flashing light, the pairing is triggered, and then the communication connection between the earphone and the mobile phone is established. 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 makes it more difficult for the earphone to connect to a new device or to reconnect after being disconnected for a long time, and the convenience of establishing a communication connection is poor. The same problem of poor convenience of connection operation exists between other devices.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] The positioning method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0083] It should be understood that the following is only for the convenience of understanding and description, 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 FIG. 2, and the second device can be the electronic device 220 in FIG. 2, for example, the second device can be the entire electronic device 220 or a component in the electronic device 220 (such as an earphone box or one or more wireless earphones); or the first device can be the electronic device 220 in FIG. 2, and the second device can be the electronic device 210 in FIG. 2, for example, the first device can be a component in the electronic device 220 (such as an earphone box or one or more wireless earphones).
[0084] FIG. 3 is an interaction flow diagram of a communication connection method 300 between devices according to an embodiment of the present application. As shown in FIG. 3, the method 300 can include the following or all steps.
[0085] S310, the first device obtains first motion information.
[0086] S320, establish a communication connection between the first device and the second device based on the first motion information.
[0087] The first motion information includes first speed information and / or first acceleration information of the first device. For example, the first device can collect the first motion information through a sensor, such as collecting the first speed information through a speed sensor or collecting 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 collected periodically or in response to an event or user operation, which is not limited in the present application.
[0088] 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 the first acceleration at a certain time, or a value determined based on the first speed and / or the first acceleration at a certain time, or a value determined based on the first speed and / or the first acceleration in a period of time; or 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 that can represent speed and / or acceleration information, which is not limited in the present application.
[0089] It should be noted that the first motion information is named only to distinguish the second motion information and the third motion information below, such as the first motion information and the second motion information being motion information of the first device in different time periods, and the first motion information and the third motion information being motion information of different devices, which can be summarized as motion information. Correspondingly, the first speed information in the first motion information is named to distinguish the speed information in other motion information, and the first acceleration information in the first motion information is named to distinguish the second acceleration information in other motion information.
[0090] 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.
[0091] 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 user intention. In order to distinguish from other user operations described below, the user operation in this example can be referred to as a first operation, which is distinguished from the second operation, the third operation, etc. described below. For example, the first operation can include an operation of touching the first device and the second device to each other at least once, which can be expressed as an operation of touching one of the devices to the other device, such as an operation of touching the first device to the second device at least once, or an operation of touching the second device to the first device at least once. For another example, the first operation can include an operation of shaking the first device, and optionally, the second device can be shaken at the same time when the first device is shaken, i.e., the first operation can include an operation of shaking the first device and the second device.
[0092] In the above examples, when the first operation is touching the second device with the first device, the first device can detect whether the first device is touched based on the difference between the first motion information and the preset touch curve. For example, if the difference between the first motion information and the touch curve is less than or equal to the preset difference, the first device is touched, i.e., the user inputs the first operation is recognized. When the first operation is shaking the first device and the second device at the same time, the first device can detect whether the first device is shaken based on the difference between the first motion information and the preset shaking curve. For example, if the difference between the first motion information and the shaking curve is less than or equal to the preset difference, the first device is shaken, i.e., the user inputs the first operation is recognized.
[0093] It should be noted that in the above examples, the time interval between the first motion information generated by the user performing the first operation on the first device and the third motion information generated by the user performing the first operation on the second device should be less than the preset time interval.
[0094] Optionally, when the first operation includes at least two touches between the first device and the second device, the first motion information can include the motion information generated by each touch, and the first device can establish a communication connection between the first device and the second device based on the motion information generated by each touch.
[0095] It should be understood that the touch between the first device and the second device can be replaced by knock, touch, knock or contact, etc.
[0096] For example, when the first operation includes at least two touches of the second device by the first device, the time interval between the two adjacent touches is less than or equal to a preset value. This can avoid misidentification of the first operation. Optionally, the time interval between the 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.
[0097] For example, the first device identifies the first operation input by the user based on the first motion information, indicating that the user has the intention 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. The first device does not establish a communication connection between the first device and the second device based on the first motion information, and does not identify the first operation input by the user.
[0098] For example, the first device determines to establish a communication connection between the first device and the second device based on the first motion information. For example, the first device determines to establish a communication connection between the first device and the second device based on the first motion information, and the first device identifies the first operation based on the first motion information. In this case, as one possible example, the first device can enter an inquiry scan state, receive an inquiry request sent by the second device, and send an inquiry response to the second device, so that the second device discovers the first device to be connected, and a communication connection between the first device and the second device is established. As another possible example, the first device can send an inquiry request to the second device in an inquiry scan state, and receive an inquiry response sent by the second device, so that the first device discovers the second device to be connected, and a communication connection between the first device and the second device is established. It should be noted that after the first device discovers the second device, or the second device discovers the first device, a communication connection can be established based on any communication technology. The following will be described in combination with FIG. 4.
[0099] Referring to FIG. 4, the master device can be the first device, and the slave device (or referred to as the slave device) can be the second device. Alternatively, the master device can be the second device, and the slave device can be the first device. The present application does not limit this, and for example, the device to be connected can be taken as the master device, and the device to be connected can be taken 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 part of the following processes:
[0100] S1, the master device can send a page request to the slave device;
[0101] S2, the slave device can send a page response to the master device;
[0102] S3, the master device and the slave device can exchange information to implement at least one of pairing, authentication, and encryption;
[0103] S4, the master device sends a link establishment completion message (such as LMP_setup complete) to the slave device;
[0104] S5, the slave device sends a link establishment completion message (such as LMP_setup complete) to the master device.
[0105] The paging request can be referred to as a third message, and the paging response can be referred to as a fourth message.
[0106] Optionally, the first device determines a received signal strength indicator (RSSI) of the corresponding device through a broadcast message sent by the surrounding device, so as to determine the device close to the first device in the surrounding environment, or in other words, the first device determines the distance between the first device and each device based on the RSSI of the corresponding device. The first device can establish a communication connection with the device whose RSSI is greater than or equal to an 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.
[0107] Therefore, in the embodiment of the present application, the first device establishes a communication connection between the first device and the second device by obtaining the first motion information such as the first speed information and / or the first acceleration information and based on the first motion information, so that the communication connection is not limited by the physical button operation, and the convenience of the communication connection is improved.
[0108] FIG. 5 is an interaction flow diagram of a communication connection method 400 between devices provided by an embodiment of the present application. As shown in FIG. 5, the method 400 can include the following steps or all the steps.
[0109] S410a, the first device obtains first motion information;
[0110] S420a, the first device identifies whether the user inputs the first operation based on the first motion information;
[0111] S430a, when the user inputs the first operation, the first device sends a first message to the second device;
[0112] S410b, the second device obtains third motion information;
[0113] S420b, the second device identifies whether the user inputs the third operation based on the third motion information;
[0114] S430b, when the user inputs the third operation, the second device sends a second message to the first device;
[0115] S440, when the user inputs the second operation, a communication connection between the first device and the second device is established.
[0116] The S410a to S430a can refer to the description in the embodiment shown in FIG. 3, and will not be repeated here. The schemes performed by the second device in S410b to S430b are the same as or similar to the schemes performed by the first device in S410a to S430a. The present application does not limit the order of the first device performing S410a to S430a and the second device performing S410b to S430b, and the higher the synchronization of the first device performing S410a to S430a and the second device performing S410b to S430b, the lower the latency of the communication connection establishment.
[0117] The third motion information is similar to the first motion information, and the difference is that the third motion information and the first motion information are speed information and / or acceleration information of different devices. For example, the third motion information includes third speed information and / or third acceleration information of the second device. For brevity, the description of the third motion information can refer to the first motion information in the foregoing examples. The second device obtains the third motion information in a manner similar to that of the first device obtaining the first motion information, and will not be repeated here for brevity.
[0118] Similar to the first motion information, the third motion information can also be generated by a user operation. In this case, the second device can identify the user operation based on the third motion information, so as to 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 thus determine whether to establish the communication connection between the first device and the second device according to the user intention. The third operation and the first operation can be the same operation, such as the user touching the second device at least once with the first device, or the user touching the first device at least once with the second device. In this case, the first operation performed by the user on the first device and the third operation performed by the user on the second device can be understood as the same operation. Alternatively, the first operation and the third operation can be simultaneous operations, such as the first operation including the operation of shaking the first device, and the third operation including the operation of shaking the second device. In one understanding, if the operations performed on the first device and the second device respectively are the same operations (such as shaking operations), the first operation and the third operation can also be considered as the same operation. In addition, the first operation and the third operation can also be unrelated, such as the first operation being the shaking operation of the user on the first device, and the third operation being the rotating operation of the user on the second device.
[0119] In the discovery phase (or called the query phase) shown in FIG. 6, taking the two-touch operation as an example, the first device and the second device are close to each other. For example, the first device and / or the second device can detect the devices in the surrounding environment based on the RSSI to determine the distance between the first device and the second device, and the communication connection can be established. The first device can periodically detect the motion information of itself, and then determine whether the first touch operation exists based on the motion information. If the first device does not detect the first touch operation, the motion information continues to be periodically detected; if the first device determines that the first touch operation exists, a timer is started, and before the timer ends, it is determined whether the second touch operation exists based on the motion information. If it is determined that the second touch operation exists, the communication connection between the first device and the second device is continued to be established, such as entering the connection establishment phase in FIG. 6. If the second touch operation is not detected until the timer ends, the communication connection establishment between the first device and the second device is ended, and the first device can continue to periodically detect the motion information. Similarly, the second device can periodically detect the motion information of itself to identify whether the two touch operations acting on the second device itself exist. The execution process of the second device is similar to that of the first device, and is not described herein for brevity. Optionally, when the first device and the second device both identify that the two touch operations exist, the communication connection between the first device and the second device is continued to be established.
[0120] For example, when the user inputs the first operation, the first device sends a first message, and the first message is used for the second device to discover the first device to be connected. Correspondingly, when the user inputs the third operation, the second device sends a second message, and the second message is used for the first device to discover the second device to be connected. Optionally, the first message can carry the information of the first device, such as the device identifier, the device name, the device manufacturer, etc. The second message can carry the information of the second device, such as the device identifier, the device name, the device manufacturer, etc.
[0121] Optionally, the first device can repeatedly send the first message, and the second device can no longer receive other first messages after successfully receiving one first message. Optionally, the first device can receive the second message before sending the first message, or the first device can only receive the second message after sending the first message, which is not limited in the present application. Similarly, the second device can repeatedly send the second message, and the first device can no longer receive other second messages after successfully receiving one second message. Optionally, the second device can receive the first message before sending the second message, or the second device can only receive the first message after sending the second message, which is not limited in the present application.
[0122] Optionally, the interval between the first device sending the first message and the second device receiving the second message should be less than or equal to a preset interval time, and similarly, the interval between the second device sending the second message and the first device receiving the first message should be less than or equal to a preset interval time. 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, the communication connection between the first device and the second device is established, if the second message is not received until the timer expires, the communication connection between the first device and the second device is not established. The second device can determine whether to establish the communication connection based on the interval between sending the second message and receiving the first message according to the above scheme.
[0123] Optionally, the first message can carry the first motion information and / or the time when the first motion information occurs, so as to verify the identified third operation by the second device. Similarly, the second message can carry the third motion information and / or the time when the third motion information is sent, so as to verify the identified first operation by the first device. Thus, the misidentification of the first operation and the third operation is avoided.
[0124] It should be noted that the above S420a and S430a are an optional implementation manner, for example, the first device can also directly establish the communication connection between the first device and the second device based on the first motion information, such as the first device sending the first message to the second device based on the first motion information; the above S420b and S430b are an optional implementation manner, for example, the second device can also directly establish the communication connection between the first device and the second device based on the third motion information, such as the second device sending the second message to the first device based on the third motion information.
[0125] Further, after the first device and the second device discover each other, the communication connection between the first device and the second device can be established in response to a user operation. Optionally, to improve user experience and facilitate the user to input an operation to confirm to continue establishing the communication connection between the first device and the second device, the first device can output first prompt information to prompt the user to input an operation (e.g., a second operation); similarly, the second device can output second prompt information to prompt the user to input an operation (e.g., a fourth operation). Optionally, the presentation of the prompt information (e.g., the first prompt information and / or the second prompt information) is different based on different interaction modes, for example, the presentation of the prompt information can be performed by some or all of the following: display by a display device, audio playing, animation playing, or device vibration. It should be noted that the prompt information can be output by one of the first device and the second device, or the prompt information can be output by both of the first device and the second device. In the case that the prompt information is output by both of the first device and the second device, the user can perform corresponding operations on both of the first device and the second device, or the user can perform the operation on one of the first device and the second device to confirm to continue establishing the communication connection between the first device and the second device.
[0126] The following describes two possible examples.
[0127] Example 1: The second operation can be an operation input by the user through an interaction interface. For example, referring to FIG. 6, at least one of the first device and the second device is provided with a display device, and a communication connection interface 010 can be presented, as shown in FIG. 7, with text information 011 and a pairing control 012. The text information 011 is, for example, "Do you want to pair with device A?". After the user performs a selection operation on the pairing control 012, the process of establishing the communication connection between the devices is performed. Optionally, the communication connection interface 010 can further include more controls and / or text information, for example, a cancel control 013. After the user performs a selection operation on the cancel control 013, the process of establishing the communication connection between the devices is cancelled.
[0128] Optionally, the application does not limit the presentation of the communication connection interface. For example, the communication connection interface can be presented in the form of a pop-up box (or pop-up window).
[0129] In the second example, the second operation can not be an operation input through the interactive interface, for example, when neither the first device nor the second device is deployed with a display device, the user cannot operate through the interface interaction. In an example, the second operation is similar to the first operation, and the description of the first operation in the foregoing examples can be referred to. For example, the second operation includes touching the second device once by the first device. As shown in FIG. 6, the first device can play a prompt sound and / or vibrate the first device, and start a timer. Based on the acquired motion information (for example, second motion information) of the first device itself, it is determined whether a third touch operation is input by the user. If the third touch operation exists before the timer ends, a communication connection between the first device and the second device is established. If the third touch operation does not exist until the timer ends, the communication connection establishment process between the first device and the second device is ended, and the motion information is periodically detected again to detect the first operation. The second motion information can be motion information generated due to the second operation input by the user. Similarly, the second device can play a prompt sound and / or vibrate the second device, and determine whether a third touch operation exists. The execution process of the second device is similar to that of the first device, and is not described herein again for the sake of brevity. Optionally, when the third touch operation exists in the first device and the second device, the communication connection between the first device and the second device is continuously established.
[0130] In an example, the second operation described above can be an operation on the first device or an operation on the second device. In another example, the second operation described above can be an operation on the first device, and the fourth operation can be an operation on the second device. The fourth operation and the second operation can be the same operation, for example, the user touches the second device at least once by the first device, or the user touches the first device at least once by the second device. In this case, the second operation performed by the user on the first device and the fourth operation performed by the user on the second device can be understood as the same operation. Alternatively, the second operation and the fourth operation can be operations performed at the same time, for example, the second operation includes a shaking operation of the first device, and the fourth operation includes a shaking operation of the second device. In an understanding, if the operations performed on the first device and the second device are the same operation (for example, both are shaking operations), the second operation and the fourth operation can also be considered as the same operation. In addition, the second operation and the fourth operation can also be unrelated, for example, the second operation is a shaking operation of the first device by the user, and the fourth operation is a rotating operation of the second device by the user.
[0131] Optionally, the second device can identify whether the fourth operation is input by the user based on fourth motion information. The fourth motion information can be motion information generated due to the fourth operation input by the user.
[0132] In addition to the above-mentioned examples one and two, the first device and the second device can establish a communication connection based on any communication technology, as an example, refer to the embodiment shown in FIG. 4. In the 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, which is not limited in the present application. For example, the first device and the second device can determine one device as a master device and the other device as a slave device, so as to
[0133] As a first example, the first device and the second device can determine the master device and the slave device based on the first random number carried in the first message and the second random number carried in the second message. For example, if the first random number is larger and the second random number is smaller, the first device is determined as a master device and the second device is determined as a slave device. The present application does not limit the correspondence between the random number size and the master-slave device, for example, the first random number is larger and the second random number is smaller, the first device can be determined as a slave device and the second device can be determined as a master device.
[0134] As a second example, the first device and the second device can determine the master device and the slave device based on the time stamp of sending the first message (or the sending time stamp of the first message) and the time stamp of sending the second message (or the sending time stamp of the second message). For example, if the time stamp of sending the first message is earlier than the time stamp of sending the second message, the first device is determined as a master device and the second device is determined as a slave device. The present application does not limit the correspondence between the time stamp and the master-slave device, for example, the time stamp of sending the first message is earlier than the time stamp of sending the second message, the first device can be determined as a slave device and the second device can be determined as a master device.
[0135] 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 information carried in the first message and any one or more information carried in the second message. The one or more information can include part or all of the device identification, device name, and device manufacturer mentioned above. Optionally, a first value can be determined based on any one or more information carried in the first message, a second value can be determined based on any one or more information carried in the second message, and the master device and the slave device can be determined by comparing the first value and the second value. For example, if the first value is larger than the second value, the first device is determined as a master device and the second device is determined as a slave device. The present application does not limit the correspondence between the value size and the master-slave device, for example, if the first value is larger than the second value, the first device can be determined as a slave device and the second device can be determined as a master device.
[0136] Further, the process of establishing a communication connection between the first device and the second device can refer to the interaction process between the master device and the slave device in the embodiment shown in FIG. 4, which will not be described herein for brevity.
[0137] In the embodiments of the present application, the first device and the second device both identify the motion information of themselves, and respectively determine whether to establish the communication connection between the first device and the second device based on the motion information of themselves, and then in the case of determining to establish the communication connection, the first device sends the first message to the second device, and the second device sends the second message to the first device, so that the first device and the second device can discover each other, and then the communication connection is established in response to the second operation of the user.
[0138] In various embodiments of the present application, the terms and / or descriptions between various embodiments are consistent and can be mutually referred to if there is no special description and logical conflict, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.
[0139] FIG. 8 is a schematic block diagram of a processing apparatus 500 provided by the embodiments of the present application. As shown in FIG. 8, the apparatus 500 at least includes at least one of an acquisition module 510, a processing module 520, an output module 530 or a transceiver module 540.
[0140] For example, the processing apparatus 500 can be implemented as or deployed in the first device described above. When the processing apparatus 500 is implemented as or deployed in the first device, the acquisition module 510 can be configured to acquire the first motion information, the first motion information including the first speed information and / or the first acceleration information of the first device, and the processing module 520 can be configured to establish the communication connection between the first device and the second device based on the first motion information.
[0141] Optionally, the acquisition module 510 can be implemented as an ACC acquisition module or an ACC detection module.
[0142] Optionally, the processing module 520 can be specifically configured to: identify whether the user inputs the 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 the communication connection between the first device and the second device when the user inputs the first operation.
[0143] Optionally, the first operation includes touching the second device with the first device at least twice, and the time interval between the adjacent two touchings is less than or equal to a preset value.
[0144] Optionally, the processing module 520 can be specifically configured to: send a first message to the second device when the user inputs the first operation, the first message being used for 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 for the first device to discover the second device to be connected; and establish the communication connection between the first device and the second device when the user inputs a second operation.
[0145] Optionally, the processing module 520 is further configured to: identify whether the user inputs a second operation based on second motion information, the second motion information comprising second speed information and / or second acceleration information of the first device, and the second operation comprising touching the second device at least once by the first device.
[0146] 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 to establish 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 the communication connection; or, receive the third message based on the first message and the second message; and send the fourth message.
[0147] Optionally, the apparatus further comprises an output module 530 configured to output first prompt information, the first prompt information being used to prompt the user to input the second operation; wherein the output of the first prompt information comprises playing a prompt sound and / or vibrating the first device.
[0148] Optionally, the processing device 500 can be implemented as or deployed in the second device, and when the processing device 500 is implemented as or deployed in the second device, the obtaining module 510 is configured to obtain third motion information, the third motion information comprising third speed information and / or third acceleration information of the second device; the processing module 520 is configured to send the second message based on the third motion information through the transceiver module 540, the second message being used for the first device to discover the second device to be connected; the processing module 520 is configured to receive the first message sent by the first device through the transceiver module 540, the first message being used for the second device to discover the first device to be connected; and the processing module 520 is further configured to establish the communication connection between the first device and the second device.
[0149] Optionally, the processing module 520 is specifically configured to: identify whether the user inputs a third operation based on the third motion information, the third operation comprising touching the first device at least once by the second device; and send the second message when the user inputs the third operation.
[0150] Optionally, when the third operation comprises touching the first device at least twice by the second device, the time interval between the adjacent two touchings is less than or equal to a preset value.
[0151] Optionally, the processing module 520 is specifically configured to: identify whether the user inputs a fourth operation based on fourth motion information, the fourth motion information comprising fourth speed information and / or fourth acceleration information of the second device, and the fourth operation comprising touching the first device at least once by the second device; and establish the communication connection between the first device and the second device when the user inputs the fourth operation.
[0152] Optionally, the processing module 520 is specifically configured to: based on the first message and the second message, send a third message, the third message being used to request to establish a communication connection between the first device and the second device; and receive a fourth message, the fourth message being used to respond to the request to establish the communication connection; or, based on the first message and the second message, receive the third message; and send the fourth message.
[0153] Optionally, the apparatus further includes an output module 530, configured to output second prompt information, the second prompt information being used to prompt a user to input a fourth operation; and wherein the outputting of the second prompt information includes playing a prompt sound and / or vibrating the second device.
[0154] It should be understood that the specific processes in which the respective modules perform the above respective steps have been described in detail in the above method embodiments, and thus will not be described here again for the sake of brevity.
[0155] The division of the modules in the above apparatus is only a logical functional division, and all or part of the modules can be integrated onto one physical entity, or can be physically separated.
[0156] In the embodiments of the present application, the processing apparatus (such as the processing apparatus 500 described above) can be implemented as an electronic device, or deployed in an electronic device, such as the electronic device 100 in FIG. 1.
[0157] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program or instructions, and when the computer program or instructions are executed, the method in the above embodiments is implemented.
[0158] The embodiments of the present application also provide a computer program product, which includes computer program instructions, and the computer program instructions enable a computer to execute the method in the above embodiments.
[0159] The term "multiple" herein refers to two or more. The term "and / or" herein only describes the association relationship of the associated objects, and means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. In addition, the character " / " herein generally means that the associated objects before and after it are in an "or" relationship; in the formula, the character " / " means that the associated objects before and after it are in a "division" relationship. In addition, it should be understood that the terms "first", "second", etc. in the description of the present application are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance.
[0160] It can be understood that the various numbers involved in the embodiments of the present application are only used for the purpose of distinguishing and do not limit the scope of the embodiments of the present application.
[0161] It can be understood that, in the embodiments of the present application, the size of the serial number of the above processes does not mean the order of execution, and the execution order of the processes should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0162] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0163] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.< / videoview> < / imgview> < / textview>
Claims
A method of establishing a communication connection between devices, characterized in that Applied to a first device, comprising: Obtaining first motion information, the first motion information comprising first speed information and / or first acceleration information of the first device; Based on the first motion information, a communication connection between the first device and a second device is established. The method of claim 1, wherein The communication connection between the first device and the second device is established based on the first motion information, comprising: Based on the first motion information, it is identified whether a user inputs a first operation, the first operation comprising touching the second device with the first device; When the user inputs the first operation, the communication connection between the first device and the second device is established. The method according to claim 2, characterized in that The first motion information and the preset collision curve are identified when the first operation is input by the user, comprising: When the difference between the first motion information and the preset collision curve is less than or equal to a preset difference, it is identified that the first operation is input by the user. The method according to claim 2 or 3, characterized in that When the first operation comprises touching the second device with the first device at least twice, the time interval between the adjacent two touches is less than or equal to a preset value. The method according to any one of claims 2 to 4, characterized in that When the user inputs the first operation, the first message is sent to the second device, the first message being used for the second device to discover the first device to be connected; The second message sent by the second device is received, the second message being used for the first device to discover the second device to be connected; When a second operation is input by the user, the communication connection between the first device and the second device is established. Further comprising: The method according to claim 5, characterized in that Based on second motion information, it is identified whether a user inputs the second operation, the second motion information comprising second speed information and / or second acceleration information of the first device, the second operation comprising touching the second device with the first device at least once. The communication connection between the first device and the second device is established, comprising: The method according to claim 5 or 6, characterized in that Based on the first message and the second message, a third message is sent, the third message being used for requesting to establish the communication connection between the first device and the second device; a fourth message is received, the fourth message being used for responding to the request of establishing the communication connection; Or, Based on the first message and the second message, the third message is received; the fourth message is sent. Further comprising: The method according to any one of claims 5 to 7, characterized in that Outputting first prompt information, the first prompt information being used for prompting the user to input the second operation; wherein, The first prompt information is outputted, comprising: Playing a prompt sound and / or vibrating the first device. Applied to a second device, comprising: A method of communication connection between devices, characterized in that Obtaining third motion information, the third motion information comprising third speed information and / or third acceleration information of the second device; Based on the third motion information, a second message is sent, the second message being used for the first device to discover the second device to be connected; The first message sent by the first device is received, the first message being used for the second device to discover the first device to be connected; The communication connection between the first device and the second device is established. The second message is sent based on the third motion information, comprising: The method of claim 9, wherein identifying, based on the third motion information, whether a third operation is input by the user, the third operation comprising touching the first device with the second device at least once; sending the second message when the third operation is input by the user. The method of claim 10, wherein the third operation comprises touching the first device with the second device at least twice, and a time interval between two adjacent touches is less than or equal to a preset value. The method according to any one of claims 9 to 11, characterized in that the establishing the communication connection between the first device and the second device comprises: identifying, based on fourth motion information, whether a fourth operation is input by the user, the fourth motion information comprising fourth speed information and / or fourth acceleration information of the second device, the fourth operation comprising touching the first device with the second device at least once; establishing the communication connection between the first device and the second device when the fourth operation is input by the user. The method according to any one of claims 9 to 12, characterized in that the establishing the communication connection between the first device and the second device comprises: sending a third message based on the first message and the second message, the third message being used to request establishing the communication connection between the first device and the second device; and receiving a fourth message, the fourth message being used to respond to the request of establishing the communication connection; or, receiving the third message based on the first message and the second message; and sending the fourth message. The method of claim 12, wherein further comprising: outputting second prompt information, the second prompt information being used to prompt the user to input the fourth operation; wherein the outputting the second prompt information comprises: playing a prompt sound and / or vibrating the second device. A processing device, characterized by a module for executing the method according to any one of claims 1 to 14. A chip characterized by comprising: a processor configured to invoke and run computer instructions from a memory, so that a device in which the chip is installed executes the method according to any one of claims 1 to 14. An electronic device, characterized by comprising: comprising: a processor and a memory, the memory being configured to store a computer program, and the processor being configured to invoke and run the computer program stored in the memory to execute the method according to any one of claims 1 to 14. A computer program product, characterized in that computer program instructions configured to cause a computer to execute the method according to any one of claims 1 to 14. A computer-readable storage medium, characterized by a computer program product configured to store computer program instructions, the computer program instructions being configured to cause a computer to execute the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Equipment connection method and device, storage medium and electronic device
CN112566078A
Data transmission method, electronic equipment and computer storage medium
CN113301539A
Method for establishing wireless connection between devices through touch, electronic device and chip
CN114339698A
Device pairing method and system, device and storage medium
CN114786186A
Device connection method, first device and second device
CN118510070A