CN113163383A - Communication connection control method, communication connection control device, computer equipment and readable storage medium - Google Patents

Communication connection control method, communication connection control device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN113163383A
CN113163383A CN202110424479.1A CN202110424479A CN113163383A CN 113163383 A CN113163383 A CN 113163383A CN 202110424479 A CN202110424479 A CN 202110424479A CN 113163383 A CN113163383 A CN 113163383A
Authority
CN
China
Prior art keywords
communication connection
target terminal
short
event
external device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110424479.1A
Other languages
Chinese (zh)
Other versions
CN113163383B (en
Inventor
张莉
周依鸽
章欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110424479.1A priority Critical patent/CN113163383B/en
Publication of CN113163383A publication Critical patent/CN113163383A/en
Priority to PCT/CN2022/087324 priority patent/WO2022222877A1/en
Application granted granted Critical
Publication of CN113163383B publication Critical patent/CN113163383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections

Landscapes

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

Abstract

The application discloses a communication connection control method and device, computer equipment and a readable storage medium, and belongs to the technical field of communication connection control. The method comprises the following steps: if a first impact event aiming at first external equipment is detected, detecting whether the first impact event is a mutual impact event between the first external equipment and second external equipment; and if the first impact event is the mutual impact event, short-distance communication connection is established between the first external equipment and a target terminal, and short-distance communication connection is not established between the second external equipment and the target terminal, sending a target short-distance communication connection address to the target terminal or the second external equipment, wherein the target short-distance communication connection address is used for the second external equipment and the target terminal to establish short-distance communication connection. The technical scheme provided by the embodiment of the application can improve the efficiency of short-distance communication connection between the target terminal and the external equipment.

Description

Communication connection control method, communication connection control device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of short-distance communication technologies, and in particular, to a communication connection control method and apparatus, a computer device, and a readable storage medium.
Background
The short-range communication technology can realize the transmission of communication information between different devices in a short range, for example, the terminal is in short-range communication connection with the earphone, and the earphone can play audio files in the terminal.
Currently, in order to realize the sharing of audio files in the terminal, part of the terminal can be simultaneously connected with two pairs of earphones in short-distance communication. In the related art, the user manually configures the terminal to establish a short-distance communication connection between the terminal and the two pairs of earphones, so that the two pairs of earphones can simultaneously play audio files in the terminal.
However, such an approach is cumbersome, resulting in a long time consuming short-range communication connection of the terminal with the headset.
Disclosure of Invention
Based on this, embodiments of the present application provide a communication connection control method, apparatus, computer device, and readable storage medium, which can improve efficiency of short-distance communication connection between a terminal device and an external device.
In a first aspect, a communication connection control method is provided, and the method includes:
if a first impact event aiming at first external equipment is detected, detecting whether the first impact event is a mutual impact event between the first external equipment and second external equipment;
and if the first impact event is the mutual impact event, short-distance communication connection is established between the first external equipment and a target terminal, and short-distance communication connection is not established between the second external equipment and the target terminal, sending a target short-distance communication connection address to the target terminal or the second external equipment, wherein the target short-distance communication connection address is used for the second external equipment and the target terminal to establish short-distance communication connection.
In a second aspect, there is provided a communication connection control apparatus, the apparatus including:
the device comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether a first impact event aiming at first external equipment is a mutual impact event between the first external equipment and second external equipment or not;
a sending module, configured to send a target short-range communication connection address to the target terminal or the second external device if the first impact event is the mutual impact event, the first external device establishes a short-range communication connection with the target terminal, and the second external device does not establish a short-range communication connection with the target terminal, where the target short-range communication connection address is used for the second external device and the target terminal to establish a short-range communication connection.
In a third aspect, there is provided a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the communication connection control method as described in the first aspect above.
In a fourth aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the communication connection control method as described in the first aspect above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
by detecting whether a first impact event aiming at the first external equipment is a mutual impact event between the first external equipment and the second external equipment or not if the first impact event aiming at the first external equipment is detected, and if the first impact event is the mutual impact event and the first external equipment is in short-distance communication connection with a target terminal and the second external equipment is not in short-distance communication connection with the target terminal, sending a target short-distance communication connection address to the target terminal or the second external equipment, the target terminal or the second external equipment can quickly establish short-distance communication connection between the target terminal and the second external equipment based on the target short-distance communication connection address, so that the short-distance communication connection between the target terminal and the second external equipment can be quickly established under the condition that the first external equipment is in short-distance communication connection with the target terminal, therefore, the user does not need to manually configure the target terminal to establish the short-distance communication connection between the target terminal and the second external equipment, so that the efficiency of the short-distance communication connection between the target terminal and the external equipment can be improved.
Drawings
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a communication connection control method according to an embodiment of the present application;
fig. 3 is a flowchart of a method for sending a target short-range communication connection address to a second external device according to an embodiment of the present application;
fig. 4 is a flowchart of a method for sending a target short-range communication connection address to a target terminal according to an embodiment of the present application;
fig. 5 is a flowchart of another communication connection control method according to an embodiment of the present application;
fig. 6 is a flowchart of a method for establishing a short-range communication connection with a target terminal according to an embodiment of the present application;
FIG. 7 is a flowchart of a method for detecting whether a first impact event is a collision event according to an embodiment of the present disclosure;
fig. 8 is a flowchart of a method for detecting whether an event feature similarity is greater than an event feature similarity threshold according to an embodiment of the present disclosure;
fig. 9 is a flowchart of another method for detecting whether an event feature similarity is greater than an event feature similarity threshold according to an embodiment of the present application;
fig. 10 is a flowchart of another communication connection control method according to an embodiment of the present application;
fig. 11 is a block diagram of a communication connection control apparatus according to an embodiment of the present application;
fig. 12 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Next, a brief description will be given of an implementation environment related to the communication connection control method provided in the embodiment of the present application.
Fig. 1 is a schematic diagram of an implementation environment related to a communication connection control method provided in an embodiment of the present application, and as shown in fig. 1, the implementation environment may include a target terminal 101, a first external device 102, and a second external device 103, where the target terminal 101 and the first external device 102 may communicate through a wired network or a wireless network, the target terminal 101 and the second external device 103 may communicate through a wired network or a wireless network, and the first external device 102 and the second external device 103 may communicate through a wired network or a wireless network.
The target terminal 101 may be a smart phone, a tablet computer, a notebook computer, a smart television, a vehicle-mounted device, etc., and the first external device 102 and the second external device 103 may be wearable devices (such as earphones, watches, glasses, a massager, etc.), smart speakers, MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) players, MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4) players, a mouse, a keyboard, etc.
In the implementation environment shown in fig. 1, if the first external device 102 detects a first impact event for the first external device 102, it detects whether the first impact event is a mutual impact event between the first external device 102 and the second external device 103; if the first impact event is a mutual impact event, the first external device 102 establishes a short-range communication connection with the target terminal 101, and the second external device 103 does not establish a short-range communication connection with the target terminal 101, the first external device 102 sends a target short-range communication connection address to the target terminal 101 or the second external device 103, wherein the target short-range communication connection address is used for the second external device 103 and the target terminal 101 to establish a short-range communication connection.
Referring to fig. 2, a flowchart of a communication connection control method provided by an embodiment of the present application is shown, where the communication connection control method may be applied to the first external device 102 described above. As shown in fig. 2, the communication connection control method may include the steps of:
in step 201, if the first external device detects a first impact event for the first external device, it detects whether the first impact event is a mutual impact event between the first external device and the second external device.
The first impact event may be an impact operation between the first external device and another device, an object, or a human body, the other device may be, for example, another external device other than the first external device, an electronic device, a communication device, a routing device, a terminal device, and the like, the object may be, for example, a table, a chair, a wall, and the like, and the number of times of the impact operation corresponding to the first impact event may be one time, two times, three times, and the like, which is not limited herein.
The following describes how the first peripheral device detects a first crash event for the first peripheral device in two different embodiments.
In a possible implementation manner, a shake detection sensor may be disposed in the first external device, and the shake detection sensor is configured to detect whether the first external device shakes. The shake detection sensor outputs a shake signal if detecting that the first external device shakes once, and the first external device determines that the first impact event is detected if detecting one or more shake signals output by the shake detection sensor within a preset time period.
For example, if the first external device detects two shake signals output by the shake detection sensor within one second, the first external device determines that the first impact event is detected. The shake detection sensor may be a motion state sensor such as an acceleration sensor or a gyroscope.
In another possible implementation manner, a sound pickup assembly may be disposed in the first external device, and the sound pickup assembly is configured to collect audio data. If the type of the audio data is a preset type, the first external device determines that a first impact event is detected, and the preset type can be a single-click audio type, a double-click audio type and the like.
In the embodiment of the application, the audio type classification model can be obtained by adding audio data type labels to different sample audio data to obtain a training sample set and then training a neural network model by using the training sample set.
Thus, with any of the above embodiments, the first external device can detect whether the first crash event exists. If the first external device detects the first impact event, whether the first impact event is a mutual impact event between the first external device and the second external device is detected, namely whether the first impact event is an impact event generated by mutual impact between the first external device and the second external device is detected.
In one possible embodiment, the second external device may broadcast a second impact time of the second impact event to the outside when detecting the second impact event for the second external device, wherein the second impact event is similar to the definition of the first impact event and may be an impact operation between the second external device and other devices, objects or human bodies.
Therefore, the first external device receives the second impact time broadcasted by the second external device, the first external device can obtain the first impact time of the first impact event, and compares the first impact time with the second impact time, if the first impact time is the same as or close to the second impact time, the first impact event is determined to be a mutual impact event between the first external device and the second external device.
In another possible implementation, the second external device may further broadcast the location of the second external device when detecting a second impact event for the second external device, so that the first external device receives the location of the second external device broadcasted by the second external device, the first external device may obtain the location of the first external device, and compare the location of the first external device with the location of the second external device, and if the location of the first external device is the same as or close to the location of the second external device, it is determined that the first impact event is a mutual impact event between the first external device and the second external device.
Step 202, if the first impact event is a mutual impact event, and the first external device establishes a short-distance communication connection with the target terminal, and the second external device does not establish a short-distance communication connection with the target terminal, the first external device sends a target short-distance communication connection address to the target terminal or the second external device.
Short-range communication, also called short-range communication, enables the transmission of communication information between different devices within a short distance, and may be, for example, Bluetooth (Bluetooth) communication, infrared communication, etc.
In this embodiment of the application, the first external device detects whether the first external device establishes short-distance communication connection with the target terminal, which may be to search for whether the short-distance communication connection list in the first external device includes an identifier of the target terminal, and if the short-distance communication connection list includes the identifier, determine that the first external device establishes short-distance communication connection with the target terminal.
For example, the first external device searches whether a bluetooth name of the target terminal is recorded in a bluetooth list of the first external device, and if the bluetooth name exists, it is determined that the first external device establishes short-distance communication connection with the target terminal.
In another possible implementation manner, the first external device may further read a short-range communication connection state of the first external device from the short-range communication connection state interface, and if the short-range communication connection state is a connection state, it is determined that the first external device establishes a short-range communication connection with the target terminal.
Therefore, through the manner, the first external device can determine whether the first external device establishes short-distance communication connection with the target terminal.
The first external device determines that the second external device does not establish the short-distance communication connection with the target terminal, and may be that the first external device sends a confirmation request to the second external device or the target terminal, where the confirmation request is used to request the second external device or the target terminal to detect whether the second external device establishes the short-distance communication connection with the target terminal, and returns a confirmation result. And the first external equipment can determine whether the second external equipment establishes short-distance communication connection with the target terminal according to the confirmation result.
The second external device or the target terminal detects whether the second external device establishes the short-distance communication connection with the target terminal, and the method is similar to the method for determining whether the first external device establishes the short-distance communication connection with the target terminal by the first external device, and is not described herein again.
If the first external device determines that the first external device is in short-distance communication connection with the target terminal, the second external device is not in short-distance communication connection with the target terminal, and the first impact event is detected to be a mutual impact event, in order to establish short-distance communication connection between the second external device and the target terminal, the target terminal can be in short-distance communication with the first external device and the second external device, the first external device sends a target short-distance communication connection address to the target terminal or the second external device, and the target short-distance communication connection address is used for the second external device and the target terminal to establish short-distance communication connection. Therefore, based on the target short-distance communication connection address, the second external device and the target terminal can automatically and quickly establish short-distance communication connection.
After the second external device and the target terminal establish short-distance communication connection, the target terminal can perform short-distance communication with the first external device and the second external device, so that communication information in the target terminal can be simultaneously sent to the first external device and the second external device, sharing of the communication information in the first external device and the second external device is achieved, and the communication information can be audio and video data, text data and the like.
Taking the first external device as the first earphone and the second external device as the second earphone as an example, when the target terminal needs to play the audio data, the target terminal can send the audio data to the first earphone and the second earphone, and both the first earphone and the second earphone can play the audio data, so that the audio data can be shared between the first earphone and the second earphone.
In the above embodiment, if a first impact event for the first external device is detected, it is detected whether the first impact event is a mutual impact event between the first external device and the second external device, and if the first impact event is a mutual impact event and the first external device and the target terminal establish a short-range communication connection and the second external device and the target terminal do not establish a short-range communication connection, a target short-range communication connection address is sent to the target terminal or the second external device, so that the target terminal or the second external device can quickly establish a short-range communication connection between the target terminal and the second external device based on the target short-range communication connection address, and thus, in case of short-range communication connection between the first external device and the target terminal, the short-range communication connection between the target terminal and the second external device can be quickly established, therefore, the user does not need to manually configure the target terminal to establish the short-distance communication connection between the target terminal and the second external equipment, so that the efficiency of the short-distance communication connection between the target terminal and the external equipment can be improved.
In one embodiment, based on the above-mentioned embodiment shown in fig. 2, referring to fig. 3, this embodiment relates to a process of how the first external device sends a target short-range communication connection address to the target terminal or to the second external device in a case where the first external device establishes a short-range communication connection with the target terminal. As shown in fig. 3, the process may include steps 301 and 302:
step 301, the first external device obtains a communication connection address of the target terminal.
The communication connection address refers to an address for identifying a corresponding short-range communication device. In this embodiment, the communication connection address of the target terminal may be, for example, a bluetooth address of the target terminal, and the other short-range communication device (e.g., the second external device) may identify the target terminal based on the communication connection address of the target terminal.
As an implementation manner, the communication connection address of the target terminal may be sent by the target terminal to the first external device during the process of establishing the short-distance communication connection between the first external device and the target terminal.
Step 302, the first external device sends the communication connection address of the target terminal as the target short-distance communication connection address to the second external device.
The communication connection address of the target terminal is used for the second external device to initiate a short-distance communication connection process with the target terminal based on the communication connection address of the target terminal, namely, the second external device actively initiates the short-distance communication connection process with the target terminal after receiving the communication connection address of the target terminal.
In one possible embodiment, the second external device may transmit a short-range communication connection request to the target terminal based on the communication connection address of the target terminal; the target terminal can send a short-distance communication connection confirmation instruction to the second external device after receiving the short-distance communication connection request, and the second external device establishes short-distance communication connection with the target terminal after receiving the short-distance communication connection confirmation instruction.
In step 302, in one possible implementation, the first external device determines the communication connection address of the target terminal as a target short-range communication connection address, and may send the communication connection address of the target terminal to the second external device by using ultrasonic waves.
The ultrasonic wave is a sound wave with the frequency higher than 20KHz, in the embodiment of the application, the first external device can perform operations such as signal modulation on the communication connection address of the target terminal, after the operation is modulated to the frequency band where the ultrasonic wave is located, the ultrasonic wave is transmitted to the second external device in the form of the ultrasonic wave through a loudspeaker in the first external device, and the second external device receives the communication connection address of the target terminal through a pickup assembly of the second external device.
The ultrasonic transmission can be realized only by a loudspeaker and a pickup assembly without additional hardware or matched equipment, and the implementation mode is simple and convenient; and the distance of ultrasonic transmission is less than that of Bluetooth transmission, so that the first external equipment can be prevented from sending the communication connection address of the target terminal to other far-away equipment by mistake, and the communication connection address of the target terminal is prevented from being transmitted by mistake.
In another embodiment, based on the above-mentioned embodiment shown in fig. 2, referring to fig. 4, this embodiment relates to another implementation of how the first external device sends the target short-range communication connection address to the target terminal or to the second external device in the case that the first external device establishes the short-range communication connection with the target terminal. As shown in fig. 4, this method may include steps 401 and 402:
in step 401, the first external device receives a communication connection address of the second external device broadcasted by the second external device when the second impact event is detected.
In this embodiment of the application, the communication connection address of the second external device may be, for example, a bluetooth address of the second external device, and the second external device may be identified based on the communication connection address of the second external device.
As an implementation manner, the second external device may detect whether a second impact event occurs for the second external device, which is similar to the process of detecting the first impact event by the first external device, and a shake detection sensor may be arranged in the second external device for detection, or the second external device may also be detected by an audio type classification model, which is not described herein again.
And if the second external equipment detects a second impact event, the second external equipment broadcasts information such as second impact time of the second impact event, a communication connection address of the second external equipment and the like. Thus, the first external device receives the communication connection address of the second external device.
And 402, the first external equipment sends the communication connection address of the second external equipment as a target short-distance communication connection address to the target terminal.
The communication connection address of the second external device is used for the target terminal to initiate a short-distance communication connection process with the second external device based on the communication connection address of the second external device. Namely, after receiving the communication connection address of the second external device, the target terminal actively initiates a short-distance communication connection process with the second external device.
In a possible implementation manner, the target terminal may send a short-range communication connection request to the second external device based on the communication connection address of the second external device, the second external device may send a short-range communication connection confirmation instruction to the target terminal after receiving the short-range communication connection request, and the target terminal establishes a short-range communication connection with the second external device after receiving the short-range communication connection confirmation instruction.
Similar to step 302 above, in step 402, in one possible implementation, the first external device takes the communication connection address of the second external device as the target short-range communication connection address, and the communication connection address of the second external device can be sent to the target terminal by ultrasonic waves. Therefore, the first external equipment can be prevented from sending the communication connection address of the second external equipment to other far away equipment by mistake, and the error transmission of the communication connection address of the second external equipment is avoided.
In an embodiment, based on the above-mentioned embodiment shown in fig. 2, refer to fig. 5, which shows a flowchart of another communication connection control method provided in an embodiment of the present application. As shown in fig. 5, after step 201, the communication connection control method of this embodiment further includes step 203:
step 203, if the impact event is a mutual impact event, and the first external device and the target terminal do not establish short-distance communication connection, the second external device and the target terminal establish short-distance communication connection, and the first external device establishes short-distance communication connection with the target terminal.
In this embodiment of the application, if the first external device is not in short-range communication connection with the target terminal, and the second external device is in short-range communication connection with the target terminal, then the short-range communication connection between the first external device and the target terminal needs to be established.
After the first external device and the target terminal establish short-distance communication connection, the target terminal can perform short-distance communication with the first external device and the second external device, and therefore communication information in the target terminal can be sent to the first external device and the second external device simultaneously, and sharing of the communication information in the first external device and the second external device is achieved.
In one possible implementation, referring to fig. 6, the first external device may implement a process of establishing a short-range communication connection with the target terminal by performing step 601, step 602, and step 603 shown in fig. 6:
step 601, the first external device receives a communication connection address of a target terminal broadcasted by the second external device when the second impact event is detected.
As an implementation manner, the communication connection address of the target terminal may be sent by the target terminal to the second external device during the process of establishing the short-distance communication connection between the second external device and the target terminal.
Under the condition that the second external device is in short-distance communication connection with the target terminal, the second external device can detect whether a second impact event aiming at the second external device occurs or not, if the second impact event is detected, the second external device broadcasts the communication connection address of the target terminal, and therefore the first external device receives the communication connection address of the target terminal.
In step 601, in one possible implementation, the first external device may receive, through ultrasonic waves, a communication connection address of the target terminal broadcast by the second external device upon detection of the second impact event. The second external equipment can carry out operations such as signal modulation to the communication connection address of the target terminal, after the frequency band where the ultrasonic wave is modulated, the ultrasonic wave is sent to the first external equipment in an ultrasonic wave mode through a loudspeaker in the second external equipment, and the first external equipment receives the communication connection address of the target terminal through a pickup assembly of the first external equipment, so that error transmission of the communication connection address of the target terminal can be avoided.
Step 602, the first external device sends a short-distance communication connection request to the target terminal based on the communication connection address of the target terminal.
And the first external equipment actively initiates a short-distance communication connection process to the target terminal after receiving the communication connection address of the target terminal, and sends a short-distance communication connection request to the target terminal based on the communication connection address of the target terminal.
Step 603, the first external device responds to the short-distance communication connection confirmation instruction sent by the target terminal, and establishes short-distance communication connection with the target terminal.
Wherein the short-range communication connection confirmation instruction is sent by the target terminal after receiving the short-range communication connection request. That is, after receiving the short-range communication connection request, the target terminal sends a short-range communication connection confirmation instruction to the first external device, and thus, after receiving the short-range communication connection confirmation instruction, the first external device establishes short-range communication connection with the target terminal.
In the foregoing embodiment, when the first external device is not in short-distance communication connection with the target terminal, and the second external device is in short-distance communication connection with the target terminal, the first external device receives the communication connection address of the target terminal broadcast by the second external device when detecting the second impact event, and sends a short-distance communication connection request to the target terminal based on the communication connection address of the target terminal, and responds to the short-distance communication connection confirmation instruction sent by the target terminal to establish short-distance communication connection with the target terminal, so that the fast short-distance communication connection between the first external device and the target terminal is realized, and a user does not need to manually configure in the target terminal to establish short-distance communication connection between the target terminal and the first external device, so that the efficiency of short-distance communication connection between the target terminal and the external device can be improved.
In one embodiment, based on the embodiment shown in fig. 2, referring to fig. 7, the present embodiment relates to a process of how the first external device detects whether the first impact event is a mutual impact event between the first external device and the second external device. As shown in fig. 7, the process includes steps 701, 702, and 703:
in step 701, a first external device obtains a first event characteristic corresponding to a first impact event.
In the embodiment of the application, after the first external device detects a first impact event for the first external device, first event characteristics corresponding to the first impact event are obtained.
Optionally, the first event characteristic may include a first impact time, and the first external device acquiring the first event characteristic may determine a time at which the first impact event is detected as the first impact time.
Optionally, the first event characteristic may include a first impact sound characteristic. The first external device can acquire audio data corresponding to a first impact event through a pickup assembly in the first external device, then the first external device performs spectrum sensing on the audio data by adopting an energy detection algorithm to obtain moments corresponding to energy peak values, calculates a first time interval according to the moments corresponding to the energy peak values, and determines the first time interval as a first impact sound characteristic.
In a possible implementation manner, assuming that the number of times of the impact operation of the first impact event is two, the first external device may obtain the time corresponding to the two energy peak values by using an energy detection algorithm, and the first external device calculates a difference value for the time corresponding to the two energy peak values and obtains a first time interval by taking an absolute value of the difference value.
Optionally, the first external device may further perform an inverse operation on the first time interval to obtain a first frequency characteristic, and determine the first frequency characteristic as the first impact sound characteristic, and so on.
In step 702, the first external device receives a second event characteristic corresponding to a second crash event broadcasted by the second external device when the second crash event is detected.
In this embodiment of the application, after the second external device detects a second impact event for the second external device, the second external device obtains a second event feature corresponding to the second impact event, and the second external device broadcasts a short-distance connection request, where the short-distance connection request may carry the second event feature corresponding to the second impact event, and of course, the short-distance connection request may also carry other information, such as a communication connection address, and the like.
Optionally, a manner in which the second external device obtains the second event characteristic corresponding to the second impact event is similar to the manner in which the first external device obtains the first event characteristic corresponding to the first impact event in step 701, and details are not repeated here. Similar to step 701, the second peripheral device may then determine the time at which the second impact event was detected as a second impact time, a second time interval as a second impact sound characteristic, or a second frequency characteristic as a second impact sound characteristic, and so on.
And the first external equipment receives a second event characteristic corresponding to a second impact event broadcasted by the second external equipment, and detects whether the event characteristic similarity between the first event characteristic and the second event characteristic is greater than a preset event characteristic similarity threshold value or not.
In a possible implementation manner, taking the first event characteristic includes a first impact time and the second event characteristic includes a second impact time as an example, referring to fig. 8, the first external device may implement a process of detecting whether the event characteristic similarity between the first event characteristic and the second event characteristic is greater than a preset event characteristic similarity threshold by performing steps 801 and 802 shown in fig. 8:
step 801, the first external device detects whether a time difference value between the first impact time and the second impact time is smaller than a preset time difference threshold value.
The first external device calculates a time difference between the first impact time and the second impact time, where the time difference may be obtained by calculating a difference between the first impact time and the second impact time by the first external device and calculating an absolute value of the difference.
The first external device detects whether the time difference value is smaller than a preset time difference threshold value, and the time difference threshold value can be set by itself when being implemented.
Step 802, if the time difference is smaller than the time difference threshold, the first external device determines that the event feature similarity is greater than the event feature similarity threshold.
Thus, it is determined that the event feature similarity is greater than the event feature similarity threshold.
In another possible implementation manner, taking the first event characteristic as a first impact sound characteristic and the second event characteristic as a second impact sound characteristic as an example, referring to fig. 9, the first external device may implement a process of detecting whether the event characteristic similarity between the first event characteristic and the second event characteristic is greater than a preset event characteristic similarity threshold by performing steps 901 and 902 shown in fig. 9:
step 901, the first external device detects whether the sound feature similarity between the first impact sound feature and the second impact sound feature is greater than a preset sound feature similarity threshold.
Assuming that the first impact sound feature is a first time interval and the second impact sound feature is a second time interval, the first external device may calculate an absolute value of a difference between the first time interval and the second time interval, and if the absolute value of the difference is smaller than a preset threshold, determine that the sound feature similarity between the first impact sound feature and the second impact sound feature is larger than a preset sound feature similarity threshold.
Step 902, if the sound feature similarity is greater than the sound feature similarity threshold, the first external device determines that the event feature similarity is greater than the event feature similarity threshold.
Thus, it is determined that the event feature similarity is greater than the event feature similarity threshold.
In step 703, if the event feature similarity between the first event feature and the second event feature is greater than the preset event feature similarity threshold, the first external device determines that the first impact event is a mutual impact event.
If the first external device determines that the event feature similarity between the first event feature and the second event feature is greater than a preset event feature similarity threshold, the first external device determines that the first impact event is a mutual impact event, and the mutual impact event refers to an operation of mutual impact between the first external device and the second external device, namely, the first impact event and the second impact event are represented as the same impact event.
In the above embodiment, the first external device obtains a first event feature corresponding to a first impact event, the first external device receives a second event feature corresponding to a second impact event broadcasted by the second external device when the second impact event is detected, if the event feature similarity between the first event feature and the second event feature is greater than a preset event feature similarity threshold, the first external device determines that the first impact event is a mutual impact event, that is, determines that the shared device of the first external device is the second external device, and in a case that the first external device establishes a short-distance communication connection with the target terminal, the first external device sends a target short-distance communication connection address to the target terminal or the second external device, so that the second external device and the target terminal establish a short-distance communication connection based on the target short-distance communication connection address, and communication information in the target terminal is realized in the first external device, Sharing between the second external device.
In one embodiment, please refer to fig. 10, which illustrates a flowchart of an exemplary communication connection control method provided by an embodiment of the present application, and the method can be applied to the implementation environment shown in fig. 1. As shown in fig. 10, the method may include the steps of:
step 1001, if the first external device detects a first impact event for the first external device, acquiring a first event characteristic corresponding to the first impact event.
In step 1002, the first external device receives a second event characteristic corresponding to a second impact event broadcast by the second external device when the second impact event is detected.
Optionally, the first event characteristic includes a first impact time, the second event characteristic includes a second impact time, the first external device detects whether a time difference value between the first impact time and the second impact time is smaller than a preset time difference threshold, and if the time difference value is smaller than the time difference threshold, the first external device determines that the event characteristic similarity is larger than the event characteristic similarity threshold.
Optionally, the first event feature includes a first impact sound feature, the second event feature includes a second impact sound feature, the first external device detects whether a sound feature similarity between the first impact sound feature and the second impact sound feature is greater than a preset sound feature similarity threshold, and if the sound feature similarity is greater than the sound feature similarity threshold, the first external device determines that the event feature similarity is greater than the event feature similarity threshold.
Step 1003, if the event feature similarity between the first event feature and the second event feature is greater than a preset event feature similarity threshold, the first external device determines that the first impact event is a mutual impact event.
Step 1004, if the first impact event is a mutual impact event, and the first external device establishes short-distance communication connection with the target terminal, and the second external device does not establish short-distance communication connection with the target terminal, the first external device sends a target short-distance communication connection address to the target terminal or the second external device.
Optionally, sending the target short-range communication connection address to the target terminal or the second external device includes:
a, first external equipment acquires a communication connection address of a target terminal;
and b, the first external equipment determines the communication connection address of the target terminal as a target short-distance communication connection address, and sends the communication connection address of the target terminal to the second external equipment through ultrasonic waves, wherein the communication connection address of the target terminal is used for the second external equipment to initiate a short-distance communication connection process with the target terminal based on the communication connection address of the target terminal.
Optionally, sending the target short-range communication connection address to the target terminal or the second external device includes:
step c, the first external equipment receives a communication connection address of the second external equipment broadcasted by the second external equipment when the second impact event is detected;
and d, the first external equipment sends the communication connection address of the second external equipment to the target terminal as a target short-distance communication connection address, and the communication connection address of the second external equipment is used for enabling the target terminal to initiate a short-distance communication connection process with the second external equipment based on the communication connection address of the second external equipment.
Wherein, the target short-distance communication connection address is used for the second external equipment and the target terminal to establish short-distance communication connection
Step 1005, if the impact event is a mutual impact event, and the first external device and the target terminal do not establish short-distance communication connection, the second external device and the target terminal establish short-distance communication connection, and the first external device establishes short-distance communication connection with the target terminal.
Optionally, the establishing of the short-range communication connection with the target terminal includes:
the first external equipment receives a communication connection address of a target terminal broadcasted by the second external equipment when the second impact event is detected through ultrasonic waves;
and the first external equipment sends a short-distance communication connection request to the target terminal based on the communication connection address of the target terminal.
The first external equipment responds to a short-distance communication connection confirmation instruction sent by the target terminal and establishes short-distance communication connection with the target terminal, wherein the short-distance communication connection confirmation instruction is sent by the target terminal after receiving the short-distance communication connection request.
Hereinafter, the implementation process of the present embodiment will be described by way of an exemplary example.
Assume that a short-range communication connection is established between the TWS (True Wireless Stereo) headset a and the target terminal, and a short-range communication connection is not established between the TWS headset B and the target terminal, where the short-range communication connection is specifically a bluetooth connection.
In the first aspect, for example, the first external device is a TWS headset a, and the second external device is a TWS headset B, that is, the first external device is already bluetooth-connected to the target terminal, and a bluetooth connection between the second external device and the target terminal needs to be established:
1) the method comprises the steps that a TWS earphone A and a TWS earphone B are knocked, the TWS earphone A detects that one or more shake signals are output by a shake detection sensor (an acceleration sensor, a gyroscope and the like) arranged in the TWS earphone A within a preset time period (for example, two shake signals are output, namely, the TWS earphone A and the TWS earphone B are characterized to be double-clicked), and then a first impact event is determined to be detected; or, the TWS headphone a acquires audio data through a pickup assembly arranged in the TWS headphone a, the TWS headphone a inputs the acquired audio data into the audio type classification model to obtain a type of the audio data (the type of the audio data is, for example, a double-click audio type, that is, the TWS headphone a and the TWS headphone B are characterized by double-click), and the TWS headphone a determines that a first impact event for the TWS headphone a is detected, and the TWS headphone a acquires a first event characteristic corresponding to the first impact event.
Wherein the first event characteristic may comprise a first bump time (i.e. the time the TWS headphone A detected the TWS headphone A tapped with the TWS headphone B), or the first event characteristic may comprise a first bump sound characteristic (i.e. a characteristic of the sound the TWS headphone A detected the TWS headphone A tapped with the TWS headphone B).
2) The TWS headset B, similar to the TWS headset a, may also detect a second crash event for the TWS headset B and obtain second event characteristics corresponding to the second crash event, where the TWS headset B broadcasts the second event characteristics in the form of a bluetooth private connection request.
Wherein the second event characteristic may comprise a second bump time (i.e. the time the TWS headphone A and the TWS headphone B were detected by the TWS headphone B to be tapped), or the second event characteristic may comprise a second bump sound characteristic (i.e. the characteristic of the sound the TWS headphone A and the TWS headphone B were detected by the TWS headphone B to be tapped).
3) The TWS headset A receives the second event feature broadcast by the TWS headset B.
4) If the TWS earphone A detects that the event feature similarity between the first event feature and the second event feature is larger than a preset event feature similarity threshold, the first impact event is determined to be a mutual impact event, namely the shared device of the TWS earphone A is determined to be a TWS earphone B.
Optionally, if the first event characteristic includes a first impact time, the second event characteristic includes a second impact time, the TWS headset a detects whether a time difference between the first impact time and the second impact time is smaller than a preset time difference threshold, and if the time difference is smaller than the time difference threshold, the TWS headset a determines that the event characteristic similarity is larger than the event characteristic similarity threshold.
Optionally, if the first event characteristic includes a first impact sound characteristic and the second event characteristic includes a second impact sound characteristic, the TWS headset a detects whether a sound characteristic similarity between the first impact sound characteristic and the second impact sound characteristic is greater than a preset sound characteristic similarity threshold, and if the sound characteristic similarity is greater than the sound characteristic similarity threshold, the TWS headset a determines that the event characteristic similarity is greater than the event characteristic similarity threshold.
5) And after the TWS earphone A determines that the shared device of the TWS earphone A is the TWS earphone B, the TWS earphone A sends the Bluetooth address of the TWS earphone B to the target terminal. Wherein the bluetooth address of the TWS headset B may be broadcast by the TWS headset B upon detection of the second crash event, the bluetooth address of which the TWS headset a receives.
6) The target terminal establishes a Bluetooth connection with the TWS headset B according to the Bluetooth address of the TWS headset B, so that the audio stream information of the target terminal can be simultaneously sent to the TWS headset A and the TWS headset B.
In the second aspect, taking the first external device as a TWS (True Wireless Stereo) headset B and the second external device as a TWS headset a as an example, that is, the second external device is already bluetooth connected to the target terminal, it is necessary to establish bluetooth connection between the first external device and the target terminal:
1) and if the TWS earphone B detects a first impact event aiming at the TWS earphone B, the TWS earphone B acquires a first event characteristic corresponding to the first impact event.
2) The TWS headset a, similar to the TWS headset B, also detects a second crash event for the TWS headset a and obtains a second event characteristic corresponding to the second crash event, and the TWS headset a broadcasts the second event characteristic in the form of a bluetooth private connection request.
3) The TWS headset B receives the second event feature broadcast by TWS headset a.
4) If the TWS earphone B detects that the event feature similarity between the first event feature and the second event feature is larger than a preset event feature similarity threshold value, the first impact event is determined to be a mutual impact event, namely the shared device of the TWS earphone B is determined to be the TWS earphone A.
The method for determining, by the TWS headset B, that the shared device of the TWS headset B is the TWS headset a is similar to the related embodiment of the first aspect described above, and is not described herein again.
5) And after the TWS earphone B determines that the sharing equipment of the TWS earphone B is the TWS earphone A, the TWS earphone B establishes Bluetooth connection with the target terminal based on the received Bluetooth address of the target terminal broadcasted by the TWS earphone A. Wherein the target terminal's bluetooth address may be broadcast by the TWS headset a upon detection of the second crash event, and the TWS headset B receives the target terminal's bluetooth address by ultrasound.
So that the audio stream information of the target terminal can be sent to TWS headset a and TWS headset B simultaneously.
It should be understood that although the various steps in the flow charts of fig. 2-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-10 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Referring to fig. 11, a block diagram of a communication connection control apparatus provided in an embodiment of the present application is shown, where the communication connection control apparatus may be configured in the first external device 102 shown in fig. 1. As shown in fig. 11, the communication connection control apparatus may include a detection module 110 and a transmission module 120.
The detecting module 110 is configured to detect, if a first impact event for a first external device is detected, whether the first impact event is a mutual impact event between the first external device and a second external device;
a sending module 120, configured to send a target short-range communication connection address to the target terminal or the second external device if the first impact event is the mutual impact event, the first external device establishes a short-range communication connection with the target terminal, and the second external device does not establish a short-range communication connection with the target terminal, where the target short-range communication connection address is used for the second external device to establish a short-range communication connection with the target terminal.
Based on the embodiment shown in fig. 11, in an embodiment, the sending module 120 includes:
a first obtaining unit, configured to obtain a communication connection address of the target terminal;
and the first sending unit is used for sending the communication connection address of the target terminal to the second external equipment as the target short-distance communication connection address, and the communication connection address of the target terminal is used for enabling the second external equipment to initiate a short-distance communication connection process with the target terminal based on the communication connection address of the target terminal.
Optionally, the first sending unit is specifically configured to determine the communication connection address of the target terminal as the target short-distance communication connection address, and send the communication connection address of the target terminal to the second external device through ultrasonic waves.
Based on the embodiment shown in fig. 11, in an embodiment, the sending module 120 includes:
the first receiving unit is used for receiving a communication connection address of the second external device broadcasted by the second external device when the second impact event is detected;
and the second sending unit is used for sending the communication connection address of the second external equipment to the target terminal as the target short-distance communication connection address, and the communication connection address of the second external equipment is used for enabling the target terminal to initiate a short-distance communication connection process with the second external equipment based on the communication connection address of the second external equipment.
On the basis of the embodiment shown in fig. 11, in one embodiment, the apparatus further comprises:
and the connection establishing module is used for establishing short-distance communication connection with the target terminal if the impact event is the mutual impact event, the first external device and the target terminal do not establish short-distance communication connection, and the second external device and the target terminal establish short-distance communication connection.
Optionally, the connection establishing module includes:
the second receiving unit is used for receiving the communication connection address of the target terminal broadcasted by the second external equipment when the second impact event is detected;
a third sending unit, configured to send a short-range communication connection request to the target terminal based on the communication connection address of the target terminal.
And the connection establishing unit is used for responding to a short-distance communication connection confirmation instruction sent by the target terminal and establishing short-distance communication connection with the target terminal, wherein the short-distance communication connection confirmation instruction is sent by the target terminal after the short-distance communication connection request is received.
The second receiving unit is specifically configured to receive, by using ultrasonic waves, a communication connection address of the target terminal broadcast by the second external device when the second impact event is detected.
Based on the embodiment shown in fig. 11, in one embodiment, the detection module 110 includes:
the second acquisition unit is used for acquiring a first event characteristic corresponding to the first impact event;
a third receiving unit, configured to receive a second event characteristic corresponding to a second impact event broadcast by the second external device when the second impact event is detected;
a determining unit, configured to determine that the first impact event is the mutual impact event if an event feature similarity between the first event feature and the second event feature is greater than a preset event feature similarity threshold.
Optionally, the first event characteristic includes a first impact time, the second event characteristic includes a second impact time, and the determining unit is further configured to detect whether a time difference value between the first impact time and the second impact time is smaller than a preset time difference threshold value; and if the time difference value is smaller than the time difference threshold value, determining that the event feature similarity is larger than the event feature similarity threshold value.
Optionally, the first event characteristic includes a first impact sound characteristic, the second event characteristic includes a second impact sound characteristic, and the determining unit is further configured to detect whether a sound characteristic similarity between the first impact sound characteristic and the second impact sound characteristic is greater than a preset sound characteristic similarity threshold; and if the sound feature similarity is greater than the sound feature similarity threshold, determining that the event feature similarity is greater than the event feature similarity threshold.
The communication connection control device provided in the embodiment of the present application can implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
For specific limitations of the communication connection control device, reference may be made to the above limitations of the communication connection control method, which are not described herein again. The respective modules in the communication connection control apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the terminal, and can also be stored in a memory in the terminal in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment of the present application, a computer device is provided, and the computer device may be a terminal, and the internal structure diagram thereof may be as shown in fig. 12. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a communication connection control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
if a first impact event aiming at first external equipment is detected, detecting whether the first impact event is a mutual impact event between the first external equipment and second external equipment;
and if the first impact event is the mutual impact event, short-distance communication connection is established between the first external equipment and a target terminal, and short-distance communication connection is not established between the second external equipment and the target terminal, sending a target short-distance communication connection address to the target terminal or the second external equipment, wherein the target short-distance communication connection address is used for the second external equipment and the target terminal to establish short-distance communication connection.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: acquiring a communication connection address of the target terminal; and sending the communication connection address of the target terminal to the second external equipment as the target short-distance communication connection address, wherein the communication connection address of the target terminal is used for the second external equipment to initiate a short-distance communication connection process with the target terminal based on the communication connection address of the target terminal.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and determining the communication connection address of the target terminal as the target short-distance communication connection address, and sending the communication connection address of the target terminal to the second external equipment through ultrasonic waves.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: receiving a communication connection address of the second external device broadcasted by the second external device when the second impact event is detected; and sending the communication connection address of the second external equipment to the target terminal as the target short-distance communication connection address, wherein the communication connection address of the second external equipment is used for the target terminal to initiate a short-distance communication connection process with the second external equipment based on the communication connection address of the second external equipment.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and if the impact event is the mutual impact event, short-distance communication connection is not established between the first external equipment and the target terminal, and short-distance communication connection is established between the second external equipment and the target terminal, then short-distance communication connection with the target terminal is established.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: receiving a communication connection address of the target terminal broadcasted by the second external equipment when the second impact event is detected; and sending a short-distance communication connection request to the target terminal based on the communication connection address of the target terminal.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and receiving the communication connection address of the target terminal broadcasted by the second external device when the second impact event is detected through ultrasonic waves.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and responding to a short-range communication connection confirmation instruction sent by the target terminal, and establishing short-range communication connection with the target terminal, wherein the short-range communication connection confirmation instruction is sent by the target terminal after receiving the short-range communication connection request.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: acquiring a first event characteristic corresponding to the first impact event; receiving a second event characteristic corresponding to a second impact event broadcast by the second external device when the second impact event is detected; and if the event feature similarity between the first event feature and the second event feature is greater than a preset event feature similarity threshold, determining that the first impact event is the mutual impact event.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: detecting whether a time difference value between the first impact time and the second impact time is smaller than a preset time difference threshold value or not; and if the time difference value is smaller than the time difference threshold value, determining that the event feature similarity is larger than the event feature similarity threshold value.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: detecting whether the sound feature similarity between the first impact sound feature and the second impact sound feature is greater than a preset sound feature similarity threshold value; and if the sound feature similarity is greater than the sound feature similarity threshold, determining that the event feature similarity is greater than the event feature similarity threshold.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
if a first impact event aiming at first external equipment is detected, detecting whether the first impact event is a mutual impact event between the first external equipment and second external equipment; and if the first impact event is the mutual impact event, short-distance communication connection is established between the first external equipment and a target terminal, and short-distance communication connection is not established between the second external equipment and the target terminal, sending a target short-distance communication connection address to the target terminal or the second external equipment, wherein the target short-distance communication connection address is used for the second external equipment and the target terminal to establish short-distance communication connection.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: acquiring a communication connection address of the target terminal; and sending the communication connection address of the target terminal to the second external equipment as the target short-distance communication connection address, wherein the communication connection address of the target terminal is used for the second external equipment to initiate a short-distance communication connection process with the target terminal based on the communication connection address of the target terminal.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and determining the communication connection address of the target terminal as the target short-distance communication connection address, and sending the communication connection address of the target terminal to the second external equipment through ultrasonic waves.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving a communication connection address of the second external device broadcasted by the second external device when the second impact event is detected; and sending the communication connection address of the second external equipment to the target terminal as the target short-distance communication connection address, wherein the communication connection address of the second external equipment is used for the target terminal to initiate a short-distance communication connection process with the second external equipment based on the communication connection address of the second external equipment.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and if the impact event is the mutual impact event, short-distance communication connection is not established between the first external equipment and the target terminal, and short-distance communication connection is established between the second external equipment and the target terminal, then short-distance communication connection with the target terminal is established.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving a communication connection address of the target terminal broadcasted by the second external equipment when the second impact event is detected; and sending a short-distance communication connection request to the target terminal based on the communication connection address of the target terminal.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and receiving the communication connection address of the target terminal broadcasted by the second external device when the second impact event is detected through ultrasonic waves.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and responding to a short-range communication connection confirmation instruction sent by the target terminal, and establishing short-range communication connection with the target terminal, wherein the short-range communication connection confirmation instruction is sent by the target terminal after receiving the short-range communication connection request.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: acquiring a first event characteristic corresponding to the first impact event; receiving a second event characteristic corresponding to a second impact event broadcast by the second external device when the second impact event is detected; and if the event feature similarity between the first event feature and the second event feature is greater than a preset event feature similarity threshold, determining that the first impact event is the mutual impact event.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: detecting whether a time difference value between the first impact time and the second impact time is smaller than a preset time difference threshold value or not; and if the time difference value is smaller than the time difference threshold value, determining that the event feature similarity is larger than the event feature similarity threshold value.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: detecting whether the sound feature similarity between the first impact sound feature and the second impact sound feature is greater than a preset sound feature similarity threshold value; and if the sound feature similarity is greater than the sound feature similarity threshold, determining that the event feature similarity is greater than the event feature similarity threshold.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. The non-volatile memory may include read-only memory (RO-many), programmable RO-many (PRO-many), electrically programmable RO-many (EPRO-many), electrically erasable programmable RO-many (EEPRO-many), or flash memory. Volatile memory may include random access memory (RA multi) or external cache memory. By way of illustration and not limitation, RA is available in many forms, such as static RA multiple (SRA multiple), dynamic RA multiple (DRA multiple), synchronous DRA multiple (SDRA multiple), double data rate SDRA multiple (DDRSDRA multiple), enhanced SDRA multiple (ESDRA multiple), synchronous link (Sy multiple chli multiple k) DRA multiple (SLDRA multiple), memory bus (RA multiple bus) direct RA multiple (RDRA multiple), direct memory bus dynamic RA multiple (DRDRA multiple), and memory bus dynamic RA multiple (RDRA multiple).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A communication connection control method, characterized in that the method comprises:
if a first impact event aiming at first external equipment is detected, detecting whether the first impact event is a mutual impact event between the first external equipment and second external equipment;
and if the first impact event is the mutual impact event, short-distance communication connection is established between the first external equipment and a target terminal, and short-distance communication connection is not established between the second external equipment and the target terminal, sending a target short-distance communication connection address to the target terminal or the second external equipment, wherein the target short-distance communication connection address is used for the second external equipment and the target terminal to establish short-distance communication connection.
2. The method of claim 1, wherein the sending a target short-range communication connection address to the target terminal or the second external device comprises:
acquiring a communication connection address of the target terminal;
and sending the communication connection address of the target terminal to the second external equipment as the target short-distance communication connection address, wherein the communication connection address of the target terminal is used for the second external equipment to initiate a short-distance communication connection process with the target terminal based on the communication connection address of the target terminal.
3. The method according to claim 2, wherein the sending the communication connection address of the target terminal to the second external device as the target short-range communication connection address comprises:
and determining the communication connection address of the target terminal as the target short-distance communication connection address, and sending the communication connection address of the target terminal to the second external equipment through ultrasonic waves.
4. The method of claim 1, wherein the sending a target short-range communication connection address to the target terminal or the second external device comprises:
receiving a communication connection address of the second external device broadcasted by the second external device when the second impact event is detected;
and sending the communication connection address of the second external equipment to the target terminal as the target short-distance communication connection address, wherein the communication connection address of the second external equipment is used for the target terminal to initiate a short-distance communication connection process with the second external equipment based on the communication connection address of the second external equipment.
5. The method of claim 1, further comprising:
and if the impact event is the mutual impact event, short-distance communication connection is not established between the first external equipment and the target terminal, and short-distance communication connection is established between the second external equipment and the target terminal, then short-distance communication connection with the target terminal is established.
6. The method of claim 5, wherein the establishing the short-range communication connection with the target terminal comprises:
receiving a communication connection address of the target terminal broadcasted by the second external equipment when the second impact event is detected;
and sending a short-distance communication connection request to the target terminal based on the communication connection address of the target terminal.
7. The method of claim 6, wherein the receiving the communication connection address of the target terminal broadcast by the second external device upon detecting the second impact event comprises:
and receiving the communication connection address of the target terminal broadcasted by the second external device when the second impact event is detected through ultrasonic waves.
8. The method of claim 1, wherein the detecting whether the first impact event is a mutual impact event between the first external device and a second external device comprises:
acquiring a first event characteristic corresponding to the first impact event;
receiving a second event characteristic corresponding to a second impact event broadcast by the second external device when the second impact event is detected;
and if the event feature similarity between the first event feature and the second event feature is greater than a preset event feature similarity threshold, determining that the first impact event is the mutual impact event.
9. The method of claim 8, wherein the first event characteristic comprises a first impact time and the second event characteristic comprises a second impact time, the method further comprising:
detecting whether a time difference value between the first impact time and the second impact time is smaller than a preset time difference threshold value or not;
and if the time difference value is smaller than the time difference threshold value, determining that the event feature similarity is larger than the event feature similarity threshold value.
10. The method of claim 8, wherein the first event characteristic comprises a first impact sound characteristic and the second event characteristic comprises a second impact sound characteristic, the method further comprising:
detecting whether the sound feature similarity between the first impact sound feature and the second impact sound feature is greater than a preset sound feature similarity threshold value;
and if the sound feature similarity is greater than the sound feature similarity threshold, determining that the event feature similarity is greater than the event feature similarity threshold.
11. A communication connection control apparatus, characterized in that the apparatus comprises:
the device comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether a first impact event aiming at first external equipment is a mutual impact event between the first external equipment and second external equipment or not;
a sending module, configured to send a target short-range communication connection address to the target terminal or the second external device if the first impact event is the mutual impact event, the first external device establishes a short-range communication connection with the target terminal, and the second external device does not establish a short-range communication connection with the target terminal, where the target short-range communication connection address is used for the second external device and the target terminal to establish a short-range communication connection.
12. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the communication connection control method according to any one of claims 1 to 10.
13. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the communication connection control method according to any one of claims 1 to 10.
CN202110424479.1A 2021-04-20 2021-04-20 Communication connection control method, communication connection control device, computer equipment and readable storage medium Active CN113163383B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110424479.1A CN113163383B (en) 2021-04-20 2021-04-20 Communication connection control method, communication connection control device, computer equipment and readable storage medium
PCT/CN2022/087324 WO2022222877A1 (en) 2021-04-20 2022-04-18 Method and apparatus for controlling communication connection, computer device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110424479.1A CN113163383B (en) 2021-04-20 2021-04-20 Communication connection control method, communication connection control device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113163383A true CN113163383A (en) 2021-07-23
CN113163383B CN113163383B (en) 2023-01-03

Family

ID=76869331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110424479.1A Active CN113163383B (en) 2021-04-20 2021-04-20 Communication connection control method, communication connection control device, computer equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN113163383B (en)
WO (1) WO2022222877A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222877A1 (en) * 2021-04-20 2022-10-27 Oppo广东移动通信有限公司 Method and apparatus for controlling communication connection, computer device and readable storage medium
WO2022227905A1 (en) * 2021-04-30 2022-11-03 深圳市欢太科技有限公司 Device connection method and apparatus, computer device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system
CN110611905A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Information sharing method, terminal device, storage medium, and computer program product
CN111935682A (en) * 2020-07-07 2020-11-13 歌尔科技有限公司 Wireless earphone pairing method, earphone charging box and wireless earphone product assembly
CN112020048A (en) * 2020-09-04 2020-12-01 歌尔科技有限公司 Bluetooth device pairing method, device and storage medium
CN112233404A (en) * 2020-10-14 2021-01-15 成都极米科技股份有限公司 Bluetooth connection method, Bluetooth remote controller, terminal device and storage medium
CN112243220A (en) * 2019-07-18 2021-01-19 华为技术有限公司 Method for establishing communication connection and wearable device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110126014A1 (en) * 2009-11-24 2011-05-26 Sony Ericsson Mobile Communications Ab Event Triggered Pairing of Wireless Communication Devices Based on Time Measurements
US9445267B2 (en) * 2012-08-31 2016-09-13 Apple Inc. Bump or close proximity triggered wireless technology
CN112312375A (en) * 2020-11-17 2021-02-02 Oppo广东移动通信有限公司 Device connection method, first device, second device and storage medium
CN113163383B (en) * 2021-04-20 2023-01-03 Oppo广东移动通信有限公司 Communication connection control method, communication connection control device, computer equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191442A (en) * 2019-04-18 2019-08-30 华为技术有限公司 A kind of Bluetooth connecting method, equipment and system
CN112243220A (en) * 2019-07-18 2021-01-19 华为技术有限公司 Method for establishing communication connection and wearable device
CN110611905A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Information sharing method, terminal device, storage medium, and computer program product
CN111935682A (en) * 2020-07-07 2020-11-13 歌尔科技有限公司 Wireless earphone pairing method, earphone charging box and wireless earphone product assembly
CN112020048A (en) * 2020-09-04 2020-12-01 歌尔科技有限公司 Bluetooth device pairing method, device and storage medium
CN112233404A (en) * 2020-10-14 2021-01-15 成都极米科技股份有限公司 Bluetooth connection method, Bluetooth remote controller, terminal device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222877A1 (en) * 2021-04-20 2022-10-27 Oppo广东移动通信有限公司 Method and apparatus for controlling communication connection, computer device and readable storage medium
WO2022227905A1 (en) * 2021-04-30 2022-11-03 深圳市欢太科技有限公司 Device connection method and apparatus, computer device, and storage medium

Also Published As

Publication number Publication date
WO2022222877A1 (en) 2022-10-27
CN113163383B (en) 2023-01-03

Similar Documents

Publication Publication Date Title
CN110689460B (en) Traffic accident data processing method, device, equipment and medium based on block chain
TWI512487B (en) Method for providing augmented reality service, server and computer-readable recording medium
CN109257336B (en) Block chain-based password information processing method and terminal equipment
CN113163383B (en) Communication connection control method, communication connection control device, computer equipment and readable storage medium
WO2019206077A1 (en) Video call processing method and mobile terminal
US20150236806A1 (en) Method for sharing and playing multimedia content and electronic device implementing the same
CN111339572A (en) Method and system for verifying integrity of cloud data, terminal device and storage medium
CN108495248B (en) Positioning method, positioning device, audio playing equipment and storage medium
CN111209313B (en) Block chain-based medical project data query method and device
CN108012270B (en) Information processing method, equipment and computer readable storage medium
CN107330867B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN110471614B (en) Method for storing data, method and device for detecting terminal
CN112867175A (en) Device connection method, device, electronic device and storage medium
CN110597840B (en) Partner relationship establishment method, device, equipment and storage medium based on blockchain
CN111428080B (en) Video file storage method, video file search method and video file storage device
WO2022227905A1 (en) Device connection method and apparatus, computer device, and storage medium
KR20170112527A (en) Wearable device and method for controlling the same
WO2021147583A1 (en) Method, apparatus and system for determining relative angle between smart devices, and smart device
CN111147745B (en) Shooting method, shooting device, electronic equipment and storage medium
CN110456969B (en) Long screenshot implementation method, terminal and computer readable storage medium
CN111405189B (en) Shooting control method, electronic equipment and shooting equipment
US10055976B2 (en) Using device data collected from other proximate devices
CN110769415B (en) Authentication method and electronic equipment
CN115348262B (en) Cross-link operation execution method and network system based on cross-link protocol
CN108897446A (en) Press area optimization method, device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant