CN112399638A - Communication connection establishing method, storage medium and equipment - Google Patents

Communication connection establishing method, storage medium and equipment Download PDF

Info

Publication number
CN112399638A
CN112399638A CN202011297110.0A CN202011297110A CN112399638A CN 112399638 A CN112399638 A CN 112399638A CN 202011297110 A CN202011297110 A CN 202011297110A CN 112399638 A CN112399638 A CN 112399638A
Authority
CN
China
Prior art keywords
signal
audio
connection
equipment
communication connection
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.)
Pending
Application number
CN202011297110.0A
Other languages
Chinese (zh)
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 CN202011297110.0A priority Critical patent/CN112399638A/en
Publication of CN112399638A publication Critical patent/CN112399638A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The application discloses a communication connection establishing method, a storage medium and a device, wherein the method comprises the following steps: when a connection establishment signal is detected, outputting an audio connection signal, wherein the audio connection signal carries an equipment identifier for establishing communication connection; the method comprises the steps of obtaining a communication connection request initiated by audio receiving equipment, and establishing communication connection with the audio receiving equipment based on the communication connection request, wherein the communication connection request is generated by the audio receiving equipment based on the equipment identification. By the aid of the method and the device, communication connection between the devices can be automatically established based on the transmission mode of the audio signals, efficiency of establishing the communication connection between the devices is improved, and using effect of the accessory devices is guaranteed.

Description

Communication connection establishing method, storage medium and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, a storage medium, and a device for establishing a communication connection.
Background
With the continuous development of computer technology, the accessory equipment of terminal equipment such as mobile phones and computers is becoming more and more perfect, for example: wireless audio equipment, wireless charging equipment, wireless input device etc. provide very big facility for people's life. In the process of establishing communication connection between the terminal device and the accessory device, a user is often required to manually select a device identifier of the accessory device to be connected from the terminal device, and for relatively urgent communication connection scenes such as vehicle driving and meeting processes, the complexity of establishing the communication connection is inevitably increased, and the efficiency of establishing the communication connection between the devices and the use effect of the accessory device are influenced.
Disclosure of Invention
The embodiment of the application provides a communication connection establishing method, a communication connection establishing system, a storage medium and equipment, which can automatically establish communication connection between the equipment based on a transmission mode of an audio signal, improve the efficiency of establishing the communication connection between the equipment and ensure the use effect of accessory equipment.
A first aspect of an embodiment of the present application provides a method for establishing a communication connection, including:
when first equipment detects a first connection signal, the first equipment outputs an audio connection signal, wherein the audio connection signal carries an equipment identifier of the first equipment;
when a second device detects a second connection signal, the second device receives the audio connection signal;
the second device acquires the device identification in the audio connection signal;
the second device establishes a communication connection with the first device based on the device identification.
A second aspect of the embodiments of the present application provides a method for establishing a communication connection, including:
when a connection establishment signal is detected, outputting an audio connection signal, wherein the audio connection signal carries an equipment identifier for establishing communication connection;
the method comprises the steps of obtaining a communication connection request initiated by audio receiving equipment, and establishing communication connection with the audio receiving equipment based on the communication connection request, wherein the communication connection request is generated by the audio receiving equipment based on the equipment identification.
A third aspect of the embodiments of the present application provides a method for establishing a communication connection, where the method includes:
receiving an audio connection signal output by the audio output device when the connection establishment signal is detected;
acquiring the equipment identifier of the audio output equipment carried in the audio connection signal;
establishing a communication connection with the audio output device based on the device identification.
A fourth aspect of the embodiments of the present application provides an audio output apparatus, including:
the signal output unit is used for outputting an audio connection signal when a connection establishment signal is detected, wherein the audio connection signal carries an equipment identifier for establishing communication connection;
the connection establishing unit is used for acquiring a communication connection request initiated by audio receiving equipment, and establishing communication connection with the audio receiving equipment based on the communication connection request, wherein the communication connection request is generated by the audio receiving equipment based on the equipment identifier.
A fifth aspect of the embodiments of the present application provides an audio receiving apparatus, including:
a signal receiving unit for receiving an audio connection signal output from the audio output device when the connection establishment signal is detected;
the identification acquisition unit is used for acquiring the equipment identification of the audio output equipment carried in the audio connection signal;
and the connection establishing unit is used for establishing communication connection with the audio output equipment based on the equipment identification.
A sixth aspect of the embodiments of the present application provides a communication connection establishment system, including the above-mentioned audio output device and the above-mentioned audio receiving device.
A seventh aspect of the embodiments of the present application provides a computer device, including a processor, a memory, and an input/output interface;
the processor is respectively connected with the memory and the input/output interface, wherein the input/output interface is used for page interaction, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method steps.
An eighth aspect of embodiments of the present application provides a computer storage medium storing a computer program comprising program instructions that, when executed by a processor, perform the above-mentioned method steps.
In the embodiment of the application, the first device may output an audio connection signal carrying a device identifier when detecting the connection signal, the second device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the second device may establish a communication connection with the first device based on the device identifier. After the equipment detects the connection signals respectively, the equipment identification can be transmitted in an audio signal mode, communication connection between the equipment is automatically established based on the audio signal transmission mode, the efficiency of establishing the communication connection between the equipment is improved, and the using effect of accessory equipment is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a system architecture diagram of a communication connection establishment system according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a communication connection establishment method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a method for establishing a communication connection according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an example of an audio connection signal output according to an embodiment of the present application;
fig. 5 is an exemplary schematic diagram of device identifier acquisition according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating an example of successful establishment of a communication connection according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a communication connection establishment method according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a communication connection establishment method according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a communication connection establishment method according to an embodiment of the present application;
fig. 10 is a flowchart illustrating a communication connection establishment method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an audio output device provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of an audio output device provided in an embodiment of the present application;
fig. 13 is a schematic structural diagram of a signal output unit according to an embodiment of the present application;
FIG. 14 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure;
fig. 15 is a schematic structural diagram of an audio receiving apparatus according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of an audio receiving apparatus according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a signal determination unit according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of an identifier obtaining unit according to an embodiment of the present application;
fig. 19 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a system structure diagram of a communication connection establishing system is provided according to an embodiment of the present application. As shown in fig. 1, the embodiment of the present application may be applied to a scenario of establishing a communication connection between devices, for example: the communication connection establishing system comprises an audio receiving device and an audio output device, wherein the audio receiving device can be a terminal device used for receiving audio connection signals, and specifically includes but is not limited to a mobile phone, a personal computer, a notebook computer, intelligent furniture, a vehicle-mounted device and other terminal devices with signal receiving and output functions, or a functional module in the terminal device; the audio output device may be an accessory device for outputting an audio connection signal, and specifically includes but is not limited to an earphone, a charger, a keyboard, a mouse, and the like, or a functional module in the accessory device, and of course, the audio output device may also be the terminal device, and the audio output device and the audio receiving device are only used for distinguishing two devices that need to establish communication connection, where the device for outputting the audio connection signal is the audio output device, and the device for receiving the audio connection signal is the audio receiving device. In the embodiments described below, the audio output device may be referred to as a first device or computer device and the audio receiving device may be referred to as a second device or computer device.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment detects the connection signals respectively, the equipment identification can be transmitted in an audio signal mode, communication connection between the equipment is automatically established based on the audio signal transmission mode, the efficiency of establishing the communication connection between the equipment is improved, and the using effect of accessory equipment is guaranteed.
Based on the system architecture shown in fig. 1, the communication connection establishment method provided by the embodiment of the present application will be described in detail below with reference to fig. 2 to fig. 10.
Referring to fig. 2, a flow chart of a communication connection establishing method is provided in the embodiment of the present application. As shown in fig. 2, in the embodiment of the present application, a specific flow of a communication connection establishment method is collectively described from a first device side and a second device side, and the method may include the following steps S101 to S104.
S101, when a first device detects a first connection signal, the first device outputs an audio connection signal;
specifically, the first connection signal is used to instruct the first device to enter a communication connection state, the first connection signal may be triggered by the first device when the first shock signal is detected, the first vibration signal may be generated by knocking the first device and the second device against each other, or by knocking the first device by a user, and the user may specifically include, but is not limited to, knocking the housing of the first device by a finger of the user, knocking the housing of the first device against another solid object by using the housing of the first device, and the like, when the first device detects the first connection signal, an audio connection signal, preferably an ultrasonic audio signal, may be output, the audio connection signal carrying the device identification of the first device, the device identifier may be an identifier used for performing communication connection, such as a device number and a device name of the first device. Optionally, the first device may output the audio connection signal in a broadcast manner based on a speaker component of the first device.
S102, when a second device detects a second connection signal, the second device receives the audio connection signal;
specifically, the second connection signal is used to indicate that the second device enters a communication connection state, the second connection signal may be triggered when the second device detects a second vibration signal, where the second vibration signal may be generated when the second device and the first device are knocked against each other, or may be generated when the second device is knocked by a user, and a user knocking manner may specifically include, but is not limited to, knocking a housing of the second device by a finger of the user, knocking the housing of the second device and other solid objects against each other by using the housing of the second device, and the like, and when the second connection signal is detected by the second device, the second device may receive the audio connection signal, and optionally, the second device may receive the audio connection signal based on a microphone assembly of the second device.
S103, the second device acquires the device identification in the audio connection signal;
s104, the second device establishes communication connection with the first device based on the device identification;
specifically, the second device may detect whether a current communication connection function is already started, and if so, the second device may directly establish a communication connection with the first device based on the device identifier; if not, the second device may start a communication connection function, and establish a communication connection with the first device based on the device identifier.
In the embodiment of the application, the first device may output an audio connection signal carrying a device identifier when detecting the connection signal, the second device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the second device may establish a communication connection with the first device based on the device identifier. After the equipment detects the connection signals respectively, the equipment identification can be transmitted in an audio signal mode, communication connection between the equipment is automatically established based on the audio signal transmission mode, the efficiency of establishing the communication connection between the equipment is improved, and the using effect of accessory equipment is guaranteed.
Please refer to fig. 3, which is a flowchart illustrating a communication connection establishing method according to an embodiment of the present application. As shown in fig. 3, in the embodiment of the present application, a specific flow of a communication connection establishment method is collectively described from a first device side and a second device side, and the method may include the following steps S201 to S209.
S201, when a first device detects a first vibration signal based on a first sensing assembly, the first device determines that a first connection signal is detected;
specifically, when the first device detects a first vibration signal based on the first sensing component, the first device determines that the first connection signal is detected, where the first vibration signal may be generated when the first device and the second device are knocked against each other, or may be generated when the first device is knocked by a user, and the knocking manner by the user may specifically include, but is not limited to, knocking the housing of the first device by a finger of the user, knocking the housing of the first device against other solid objects by using the housing of the first device, and the like.
It should be noted that, when the first device detects the first vibration signal based on the first sensing component, the first device may further obtain detection status information of the first vibration signal, where the detection status information is used to indicate vibration information related to the first vibration signal, for example: a vibration amplitude, a vibration number, etc., and the first device may determine that the first connection signal is detected when the detection state information satisfies a first detection threshold.
Optionally, the detection of the first vibration signal may correspond to a first amplitude threshold, the first amplitude threshold may be set according to an actual use condition, when the first sensing component detects that the first device has vibration, it may be further determined whether the vibration amplitude is greater than the first amplitude threshold, if so, it indicates that the detected first vibration signal is valid, it may further determine that the first connection signal is detected, the vibration amplitude is determined through the first amplitude threshold, and it may be avoided that fine vibration generated by the outside or the device itself causes a misoperation of communication connection with the first device.
Certainly, the detection to first vibrations signal can also be corresponding to first time threshold value, and first time threshold value can be set for according to the actual use condition, first sensing assembly when detecting first equipment and have vibrations, can further judge whether vibrations number of times is greater than or equal to first time threshold value, if, shows that the first vibrations signal that detects is effective, further can confirm to detect first connection signal, through the setting of specific vibrations number of times, can avoid the produced vibrations of external world or equipment itself, leads to the maloperation to the communication connection of first equipment.
In this embodiment of the application, the first device may only use the first amplitude threshold or the first count threshold for detection, or may use the first amplitude threshold and the first count threshold for detection at the same time, which may be specifically set according to actual requirements.
S202, when the second equipment detects a second vibration signal based on the second sensing assembly, the second equipment determines that a second connection signal is detected;
specifically, when the second device detects a second vibration signal based on the second sensing assembly, the second device determines that a second connection signal is detected, where the second vibration signal may be generated when the second device and the first device are knocked against each other, or may be generated when the second device is knocked by a user, and the mode of knocking by the user may specifically include, but is not limited to, knocking a housing of the second device by a finger of the user, knocking by a housing of the second device and other solid objects by using the housing of the second device, and the like. It can be understood that the second sensing component may sense vibrations of different device portions in the second device, and since the first device and the second device obtain the device identifier through the audio connection signal, in order to make the second vibration signal more targeted, the second device may control the second sensing component to detect an audio receiving portion of the second device, where a microphone component of the second device is enclosed in the audio receiving portion, optionally, in order to reduce power consumption of the second device, when the second device is in a bright screen state, the bright screen state indicates that display content exists in a display screen of the second device, for example: the second device can control the second sensing assembly to enter a vibration signal detection state, namely control the second sensing assembly to perform vibration sensing on an audio receiving part of the second device, and when the second device detects that a second vibration signal exists at the audio receiving part based on the second sensing assembly, the second device can determine that a second connection signal is detected.
It should be noted that, when the second device detects the second vibration signal based on the second sensing assembly, the second device may further obtain detection status information of the second vibration signal, where the detection status information is used to indicate vibration information related to the second vibration signal, for example: a vibration amplitude, a vibration number, and the like, and the second device may determine that the second connection signal is detected when the detection state information satisfies a second detection threshold.
Optionally, the detection of the second vibration signal may correspond to a second amplitude threshold, the second amplitude threshold may be set according to an actual use condition, when the second sensing component detects that the second device has vibration, it may be further determined whether the vibration amplitude is greater than the second amplitude threshold, if so, it indicates that the detected second vibration signal is valid, it may further determine that the second connection signal is detected, the vibration amplitude is determined through the second amplitude threshold, and it may be avoided that fine vibration generated from the outside or the device itself causes a misoperation of communication connection with the second device.
Certainly, the detection to the second vibration signal may also correspond to a second frequency threshold, the second frequency threshold may be set according to an actual use condition, when detecting that the second device has vibration, the second sensing component may further determine whether the vibration frequency is greater than or equal to the second frequency threshold, if so, it indicates that the detected second vibration signal is valid, and further may determine that the second connection signal is detected, and through the setting of the specific vibration frequency, the vibration generated by the outside or the device itself may be avoided, which may cause a misoperation of the communication connection of the second device.
In this embodiment of the application, the second device may only use the second amplitude threshold or the second frequency threshold for detection, or may use the second amplitude threshold and the second frequency threshold for detection at the same time, which may be specifically set according to actual requirements. It will be appreciated that the first and second amplitude thresholds, and the first and second fractional thresholds may be the same threshold in convention, or may be different thresholds set for different types of devices.
In the embodiment of the application, when the first device and the second device knock against each other, the detection of the first vibration signal by the first device and the detection of the second vibration signal by the second device can be simultaneously performed; when a user knocks the first device and the second device respectively, the first device detects the first vibration signal and the second device detects the second vibration signal and executes the first vibration signal and the second vibration signal according to a knocking sequence, if the first device and the second device are knocked simultaneously and respectively, the first device detects the first vibration signal and the second device detects the second vibration signal and can execute the first vibration signal and the second vibration signal simultaneously, and a knocking time interval can be set specifically to avoid mistaken knocking, so that the first device is in a state of outputting an audio connection signal for a long time or the second device is in a state of receiving the audio connection signal for a long time, and power consumption of the first device and the second device is increased. In the tapping time interval, the user needs to complete tapping on the first device and tapping on the second device to realize the process of outputting the audio connection signal and receiving the audio connection signal. If the first device detects the first vibration signal first, the first device may continuously output the audio connection signal in a tapping time interval after the first vibration signal is detected, and if the second device does not detect the second vibration signal in the tapping time interval, the audio connection signal is not received; similarly, if the second device detects the second vibration signal first, the second device may wait to receive the audio connection signal in a tapping time interval after the second vibration signal is detected, and if the first device does not detect the first vibration signal in the tapping time interval, the audio connection signal may not be output.
S203, when a first device detects a first connection signal, the first device encodes a device identifier of the first device to obtain device address information;
specifically, when the first device detects the first connection signal, the first device may encode a device identifier of the first device to obtain device address information conforming to a communication connection standard protocol, where the device identifier may be an identifier used for performing communication connection, such as a device number and a device name of the first device.
S204, the first equipment generates an audio connection signal based on the equipment address information and outputs the audio connection signal;
specifically, the first device may generate an audio connection signal based on the device address information, and output the audio connection signal, and optionally, the first device may output the audio connection signal in a broadcast manner based on a speaker component of the first device, and when the audio connection signal is output, the first device may adjust a volume to a maximum volume to ensure a transmission distance of the audio connection signal, and the audio connection signal is preferably an ultrasonic audio signal.
S205, when the second device detects a second connection signal, the second device receives the audio connection signal;
specifically, when the second device detects a second connection signal, the second device may start a microphone component of the second device, and monitor an audio connection signal output by the first device based on the microphone component, and if the audio connection signal output by the first device exists, the second device may receive the audio connection signal based on the microphone component.
It is understood that the second device monitoring the audio connection signal output by the first device based on the microphone component may be performed before the first device outputs the audio connection signal, that is, the second device may activate the microphone component of the second device and monitor the audio connection signal output by the first device based on the microphone component as long as the second connection signal is detected by the second device, and then the second device may receive the audio connection signal based on the microphone component after the first device outputs the audio connection signal.
Referring to fig. 4, taking the first device as a bluetooth headset and the second device as a mobile phone terminal as an example, when the bluetooth headset detects the first connection signal, the device identification of the bluetooth headset may be encoded to obtain device address information, the bluetooth headset may encapsulate the device address information in the form of an ultrasonic audio signal to generate an audio connection signal, the bluetooth headset may further output the audio connection signal based on the speaker assembly, as shown in fig. 4, the audio connection signal output by the bluetooth headset may be received by a microphone assembly of the handset terminal, and when the handset terminal detects the second connection signal, the microphone assembly may be activated such that the microphone assembly may listen for an external audio signal, and at this time, if the audio connection signal exists, the audio connection signal may be received by the microphone assembly. Through the mode that adopts ultrasonic wave audio signal carries out the receiving and dispatching of audio frequency connection signal, because the signal frequency difference of ultrasonic wave and general sound wave can avoid strikeing sound, sound wave influences such as environmental noise for the audio frequency connection signal is caught by the microphone subassembly more easily, and then has promoted the efficiency that communication connection established between the equipment.
S206, the second device acquires device address information in the audio connection signal;
s207, the second device decodes the device address information to obtain the device identifier;
specifically, the second device may decode the device address information of the first device to obtain the device identifier of the first device, and it can be understood that the decoding mode of the second device and the encoding mode of the first device are corresponding codec algorithms.
S208, the second device establishes communication connection with the first device based on the device identification;
specifically, the second device may detect whether a current communication connection function is already started, and if so, the second device may directly establish a communication connection with the first device based on the device identifier; if not, the second device may start a communication connection function, and establish a communication connection with the first device based on the device identifier.
Referring to fig. 5, according to the above example, when the mobile phone terminal acquires the device identifier of the bluetooth headset, the device identifier may be displayed in the display screen, so that the user may confirm the bluetooth headset currently ready to establish communication connection, and may further display the current communication connection state, for example: find XXX headset, make connection, etc. so that the user can know the current communication connection in time.
S209, when the communication connection between the second device and the first device is successfully established, the second device outputs prompt information of the established communication connection;
specifically, when the communication connection between the second device and the first device is successfully established, the second device outputs a prompt message indicating that the communication connection is established, and the output form of the prompt message may be at least one of a text form, a voice form, and the like. Referring to fig. 6 together for the text form, as shown in fig. 6, after the communication connection between the mobile phone terminal and the bluetooth headset is successfully established, the mobile phone terminal may further display the successfully connected text in the display screen to prompt the user that the communication connection with the bluetooth headset is currently established. For the voice form, the second device may output a preset alert tone based on a speaker component of the second device, and may be a music piece, a personalized recorded audio, or a target alert tone selected from a plurality of alert tones, or the like.
In the embodiments of the present application, the first vibration signal, the first connection signal, the first sensing element, the first amplitude threshold and the first time threshold are all indicated as detected and used by the first device, and the second vibration signal, the second connection signal, the second sensing element, the second amplitude threshold and the second time threshold are all indicated as detected and used by the second device.
In the embodiment of the application, the first device may output an audio connection signal carrying a device identifier when detecting the connection signal, the second device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the second device may establish a communication connection with the first device based on the device identifier. After the equipment respectively detects the connection signals, the equipment identification can be transmitted in an audio signal mode, and the communication connection between the equipment is automatically established based on the audio signal transmission mode, so that the efficiency of establishing the communication connection between the equipment is improved, and the use effect of accessory equipment is ensured; the detection of the audio receiving part of the second equipment can make the detection of the vibration signal more pertinent and targeted; by detecting the vibration signal in the screen-on state of the second equipment, the vibration signal can be prevented from being detected due to misoperation, and the power consumption of the second equipment is reduced; through the setting and judgment of the amplitude threshold and the frequency threshold, the misoperation of the communication connection of the second equipment caused by vibration generated by the outside or the equipment is avoided, and the accuracy of detecting the vibration signal is improved; through the mode that adopts ultrasonic wave audio signal carries out the receiving and dispatching of audio frequency connection signal, because the signal frequency difference of ultrasonic wave and general sound wave can avoid strikeing sound, sound wave influences such as environmental noise for the audio frequency connection signal is caught by the microphone subassembly more easily, and then has promoted the efficiency that communication connection established between the equipment.
Please refer to fig. 7, which is a flowchart illustrating a communication connection establishing method according to an embodiment of the present application. As shown in fig. 7, the embodiment of the present application describes a specific flow of a communication connection establishment method from an audio output device side, and the method may include the following steps S301 to S302.
S301, when detecting a connection establishment signal, outputting an audio connection signal;
specifically, the connection establishment signal is used to indicate that the audio output device enters a communication connection state, the connection establishment signal may be triggered when the audio output device detects a vibration signal, where the vibration signal may be generated when the audio output device and the audio receiving device are knocked against each other, or generated when a user knocks the audio output device, where the user knocking mode may specifically include, but is not limited to, knocking the casing of the audio output device by a finger of the user, knocking the casing of the audio output device against other solid objects by using the casing of the audio output device, and the like, and when the connection establishment signal is detected by the audio output device, the audio output device may output an audio connection signal, where the audio connection signal is preferably an ultrasonic audio signal, and the audio connection signal carries a device identifier of the audio output device, where the device identifier may be a device number, a device identifier of the audio output device, or, Device name, etc. is used to make the identification of the communication connection. Optionally, the audio output device may output the audio connection signal in a broadcast manner based on a speaker component of the audio output device.
S302, a communication connection request initiated by audio receiving equipment is obtained, and communication connection is established with the audio receiving equipment based on the communication connection request;
specifically, the audio receiving device may detect whether a current communication connection function is turned on, and if so, the audio receiving device may directly establish a communication connection with the audio output device based on the device identifier; if not, the audio receiving device can start a communication connection function and establish communication connection with the audio output device based on the device identification. Optionally, the audio receiving device may initiate a communication connection request to the audio output device based on the device identifier, and the audio output device, receiving the communication connection request, may establish a communication connection with the audio receiving device based on a communication connection protocol.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment detects the connection signals respectively, the equipment identification can be transmitted in an audio signal mode, communication connection between the equipment is automatically established based on the audio signal transmission mode, the efficiency of establishing the communication connection between the equipment is improved, and the using effect of accessory equipment is guaranteed.
Please refer to fig. 8, which is a flowchart illustrating a communication connection establishing method according to an embodiment of the present application. As shown in fig. 8, in the embodiment of the present application, a specific flow of a communication connection establishment method is described from a detection device side, and the method may include the following steps S401 to S404.
S401, when a vibration signal is detected based on a sensing component, determining that a connection establishment signal is detected;
specifically, when the audio output device detects a vibration signal based on the sensing component, the audio output device determines that a connection establishment signal is detected, where the vibration signal may be generated when the audio output device and the audio receiving device are knocked against each other, or may be generated when the audio output device is knocked by a user, and the mode of knocking by the user may specifically include, but is not limited to, knocking a housing of the audio output device by a finger of the user, knocking by a housing of the audio output device and other solid objects against each other, and the like.
It should be noted that, when the audio output device detects a vibration signal based on the sensing component, the audio output device may further obtain detection status information of the vibration signal, where the detection status information is used to indicate vibration information related to the vibration signal, for example: a vibration amplitude, a vibration number, and the like, and the audio output device may determine that a connection establishment signal is detected when the detection state information satisfies a detection threshold.
Optionally, the detection to the vibration signal can be corresponding to an amplitude threshold value, the amplitude threshold value can be set according to actual use conditions, when the sensing assembly detects that the audio output device has vibration, whether the vibration amplitude is greater than the amplitude threshold value or not can be further judged, if yes, the detected vibration signal is effective, the connection establishment signal can be further determined to be detected, the vibration amplitude is judged through the amplitude threshold value, and therefore the misoperation of the communication connection of the audio output device caused by slight vibration generated by the outside or the device can be avoided.
Certainly, the detection to the vibrations signal can also be corresponding to the number of times threshold value, and the number of times threshold value can be set for according to the actual use condition, sensing element when detecting audio output equipment has vibrations, can further judge whether vibrations number of times is greater than or equal to the number of times threshold value, if, indicates that the vibrations signal that detects is effective, further can confirm to detect the connection and establish the signal, through the setting of specific vibrations number of times, can avoid the produced vibrations of external world or equipment itself, leads to the maloperation to audio output equipment's communication connection.
In this embodiment of the application, the audio output device may only adopt a detection mode of an amplitude threshold or a frequency threshold, or may simultaneously adopt the amplitude threshold and the frequency threshold for detection, and may specifically be set according to actual requirements.
S402, when the connection establishment signal is detected, encoding the equipment identification to obtain equipment address information;
specifically, when the audio output device detects the connection establishment signal, the audio output device may encode a device identifier of the audio output device to obtain device address information conforming to a communication connection standard protocol, where the device identifier may be an identifier used for performing communication connection, such as a device number and a device name of the audio output device.
S403, generating an audio connection signal based on the equipment address information, and outputting the audio connection signal;
specifically, the audio output device may generate an audio connection signal based on the device address information, and output the audio connection signal, and optionally, the audio output device may output the audio connection signal in a broadcast manner based on a speaker component of the audio output device, and when the audio connection signal is output, the audio output device may adjust a volume to a maximum volume to ensure a transmission distance of the audio connection signal, and the audio connection signal is preferably an ultrasonic audio signal.
S404, acquiring a communication connection request initiated by audio receiving equipment, and establishing communication connection with the audio receiving equipment based on the communication connection request;
specifically, the audio receiving device may detect whether a current communication connection function is turned on, and if so, the audio receiving device may directly establish a communication connection with the audio output device based on the device identifier; if not, the audio receiving device can start a communication connection function and establish communication connection with the audio output device based on the device identification. Optionally, the audio receiving device may initiate a communication connection request to the audio output device based on the device identifier, and the audio output device, receiving the communication connection request, may establish a communication connection with the audio receiving device based on a communication connection protocol.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment respectively detects the connection signals, the equipment identification can be transmitted in an audio signal mode, and the communication connection between the equipment is automatically established based on the audio signal transmission mode, so that the efficiency of establishing the communication connection between the equipment is improved, and the use effect of accessory equipment is ensured; the vibration signal detection has pertinence and pertinence by detecting the audio receiving part of the audio receiving equipment; the vibration signal is detected in the bright screen state of the audio receiving equipment, so that the vibration signal can be prevented from being detected due to misoperation, and the power consumption of the audio receiving equipment is reduced; through the setting and judgment of the amplitude threshold value and the frequency threshold value, the misoperation of communication connection of the audio receiving equipment caused by vibration generated by the outside or the equipment is avoided, and the accuracy of detecting the vibration signal is improved; through the mode that adopts ultrasonic wave audio signal carries out the receiving and dispatching of audio frequency connection signal, because the signal frequency difference of ultrasonic wave and general sound wave can avoid strikeing sound, sound wave influences such as environmental noise for the audio frequency connection signal is caught by the microphone subassembly more easily, and then has promoted the efficiency that communication connection established between the equipment.
Please refer to fig. 9, which is a flowchart illustrating a communication connection establishing method according to an embodiment of the present application. As shown in fig. 9, the embodiment of the present application describes a specific flow of a communication connection establishment method from an audio receiving device side, and the method may include the following steps S501 to S503.
S501, when the connection establishment signal is detected, receiving an audio connection signal output by audio output equipment;
specifically, the audio output device may output an audio connection signal in a broadcast manner based on a speaker component of the audio output device, where the audio connection signal carries a device identifier of the audio output device, the connection establishment signal is used to indicate that the audio receiving device enters a communication connection state, the connection establishment signal may be triggered when the audio receiving device detects a vibration signal, where the vibration signal may be generated when the audio receiving device and the audio output device are knocked against each other or generated when a user knocks the audio receiving device, where the user knocking manner may specifically include but is not limited to that a finger of the user knocks a housing of the audio receiving device, that the housing of the audio receiving device knocks against other solid objects, and the like, and when the audio receiving device detects the connection establishment signal, the audio connection signal may be received, and optionally, the audio receiving device may receive the audio connection signal based on a microphone component of the audio receiving device.
S502, acquiring the equipment identifier of the audio output equipment carried in the audio connection signal;
s503, establishing communication connection with the audio output device based on the device identification;
specifically, the audio receiving device may detect whether a current communication connection function is turned on, and if so, the audio receiving device may directly establish a communication connection with the audio output device based on the device identifier; if not, the audio receiving device can start a communication connection function and establish communication connection with the audio output device based on the device identification.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment detects the connection signals respectively, the equipment identification can be transmitted in an audio signal mode, communication connection between the equipment is automatically established based on the audio signal transmission mode, the efficiency of establishing the communication connection between the equipment is improved, and the using effect of accessory equipment is guaranteed.
Referring to fig. 10, a flowchart of a communication connection establishing method is provided in an embodiment of the present application. As shown in fig. 10, the embodiment of the present application describes a specific flow of a communication connection establishment method from an audio receiving device side, and the method may include the following steps S601 to S606.
S601, when a vibration signal is detected based on the sensing assembly, determining that a connection establishment signal is detected;
specifically, when the audio receiving device detects a vibration signal based on the sensing component, the audio receiving device determines that a connection establishment signal is detected, where the vibration signal may be generated when the audio receiving device and the audio output device are knocked against each other, or may be generated when the audio receiving device is knocked by a user, and the mode of knocking by the user may specifically include, but is not limited to, knocking the casing of the audio receiving device by a finger of the user, knocking by the casing of the audio receiving device and other solid objects against each other, and the like. It can be understood that the sensing component may sense vibrations of different device portions in the audio receiving device, and since the audio output device and the audio receiving device obtain the device identifier through the audio connection signal, in order to make the vibration signal more pertinent, the audio receiving device may control the sensing component to detect an audio receiving portion of the audio receiving device, where a microphone component of the audio receiving device is enclosed in the audio receiving portion, optionally, in order to reduce power consumption of the audio receiving device, when the audio receiving device is in a bright screen state, the bright screen state indicates that display content exists in a display screen of the audio receiving device, for example: the audio receiving device can control the sensing assembly to enter a vibration signal detection state, namely control the sensing assembly to perform vibration induction on an audio receiving part of the audio receiving device, and when the audio receiving device detects that the vibration signal exists at the audio receiving part based on the sensing assembly, the audio receiving device can determine that a connection establishment signal is detected.
It should be noted that, when the audio receiving device detects a vibration signal based on the sensing component, the audio receiving device may further obtain detection status information of the vibration signal, where the detection status information is used to indicate vibration information related to the vibration signal, for example: a vibration amplitude, a vibration number, and the like, and the audio receiving apparatus may determine that a connection establishment signal is detected when the detection state information satisfies a detection threshold.
Optionally, the detection to the vibration signal can be corresponding to the amplitude threshold value, and the amplitude threshold value can be set for according to the in-service use condition, sensing element when detecting that audio receiving equipment has vibrations, can further judge whether vibration amplitude is greater than the amplitude threshold value, if, then indicate to detect the vibration signal, judge vibration amplitude through the amplitude threshold value, can avoid the produced slight vibrations of external world or equipment itself, lead to the maloperation to audio receiving equipment's communication connection.
Certainly, the detection to the vibrations signal can also be corresponding to the number of times threshold value, and the number of times threshold value can be set for according to the in-service use condition, sensing element when detecting that audio frequency receiving equipment has vibrations, can further judge whether the number of vibrations is greater than or equal to the number of times threshold value, if, indicates to detect the vibrations signal, through the setting of specific vibrations number of times, can avoid the produced vibrations of external world or equipment itself, leads to the maloperation to the communication connection of audio frequency receiving equipment.
In this embodiment of the application, the audio receiving device may only use the detection mode of the amplitude threshold or the number threshold, or may use both the amplitude threshold and the number threshold to perform detection, which may be specifically set according to actual requirements.
S602, when the connection establishment signal is detected, receiving an audio connection signal output by audio output equipment;
step S602 in the embodiment of the present application may refer to the detailed description of step S501 in the embodiment shown in fig. 9, which is not repeated herein.
S603, acquiring equipment address information in the audio connection signal;
s604, decoding the equipment address information to obtain an equipment identifier of the audio output equipment;
specifically, the audio receiving device may decode the device address information of the audio output device to obtain the device identifier of the audio output device, and it can be understood that the decoding mode of the audio receiving device and the encoding mode of the audio output device are corresponding codec algorithms.
S605, establishing communication connection with the audio output device based on the device identification;
specifically, the audio receiving device may detect whether a current communication connection function is turned on, and if so, the audio receiving device may directly establish a communication connection with the audio output device based on the device identifier; if not, the audio receiving device can start a communication connection function and establish communication connection with the audio output device based on the device identification.
S606, when the communication connection with the audio output device is successfully established, outputting prompt information of the established communication connection;
specifically, when the communication connection between the audio receiving device and the audio output device is successfully established, the audio receiving device outputs prompt information of the established communication connection, and the output form of the prompt information may be at least one of a text form, a voice form, and the like. For the text form, after the audio output device and the audio receiving device are successfully connected in communication, the audio receiving device may further display the successfully connected text in the display screen to prompt the user that the communication connection with the audio output device is currently established. For a voice form, the audio receiving device may output a preset alert tone based on a speaker component of the audio receiving device, and may be a music piece, a personalized recorded audio, or a target alert tone selected from a plurality of alert tones, or the like.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment respectively detects the connection signals, the equipment identification can be transmitted in an audio signal mode, and the communication connection between the equipment is automatically established based on the audio signal transmission mode, so that the efficiency of establishing the communication connection between the equipment is improved, and the use effect of accessory equipment is ensured; the vibration signal detection has pertinence and pertinence by detecting the audio receiving part of the audio receiving equipment; the vibration signal is detected in the bright screen state of the audio receiving equipment, so that the vibration signal can be prevented from being detected due to misoperation, and the power consumption of the audio receiving equipment is reduced; through the setting and judgment of the amplitude threshold value and the frequency threshold value, the misoperation of communication connection of the audio receiving equipment caused by vibration generated by the outside or the equipment is avoided, and the accuracy of detecting the vibration signal is improved; through the mode that adopts ultrasonic wave audio signal carries out the receiving and dispatching of audio frequency connection signal, because the signal frequency difference of ultrasonic wave and general sound wave can avoid strikeing sound, sound wave influences such as environmental noise for the audio frequency connection signal is caught by the microphone subassembly more easily, and then has promoted the efficiency that communication connection established between the equipment.
Based on the system architecture shown in fig. 1, the audio output device provided by the embodiment of the present application will be described in detail below with reference to fig. 11 to 13. It should be noted that the audio output device in fig. 11-fig. 13 may be specifically the first device in the above-mentioned embodiment, and is used for executing the method in the embodiments shown in fig. 7-fig. 8 of the present application, for convenience of description, only the portion related to the embodiments of the present application is shown, and details of the specific technology are not disclosed, please refer to the embodiments shown in fig. 7-fig. 8 of the present application.
Please refer to fig. 11, which is a schematic structural diagram of an audio output device according to an embodiment of the present application. As shown in fig. 11, the audio output apparatus 1 according to the embodiment of the present application may include: a signal output unit 11 and a connection establishing unit 12.
A signal output unit 11 for outputting an audio connection signal when the connection establishment signal is detected;
the audio connection signal carries an equipment identifier for establishing communication connection;
a connection establishing unit 12, configured to acquire a communication connection request initiated by an audio receiving device, and establish a communication connection with the audio receiving device based on the communication connection request;
wherein the communication connection request is generated for the audio receiving device based on the device identification.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment detects the connection signals respectively, the equipment identification can be transmitted in an audio signal mode, communication connection between the equipment is automatically established based on the audio signal transmission mode, the efficiency of establishing the communication connection between the equipment is improved, and the using effect of accessory equipment is guaranteed.
Please refer to fig. 12, which is a schematic structural diagram of an audio output device according to an embodiment of the present application. As shown in fig. 12, the audio output apparatus 1 according to the embodiment of the present application may include: a signal output unit 11, a connection establishing unit 12 and a signal determining unit 13.
A signal determination unit 13 for determining that a connection establishment signal is detected when a vibration signal is detected based on the sensing assembly;
the signal determining unit 13 is specifically configured to, when a vibration signal is detected based on the sensing component, acquire detection state information of the vibration signal, where the detection state information includes at least one of a vibration amplitude and a vibration frequency, and when the detection state information satisfies a detection threshold, determine that a connection establishment signal is detected.
A signal output unit 11 for outputting an audio connection signal when the connection establishment signal is detected;
the audio connection signal carries an equipment identifier for establishing communication connection;
specifically, please refer to fig. 13 together, which provides a schematic structural diagram of a signal output unit according to an embodiment of the present application. As shown in fig. 13, the signal output unit 11 may include:
an information encoding subunit 111, configured to encode, when the connection establishment signal is detected, the device identifier to obtain device address information;
a signal output subunit 112, configured to generate an audio connection signal based on the device address information, and output the audio connection signal.
A connection establishing unit 12, configured to acquire a communication connection request initiated by an audio receiving device, and establish a communication connection with the audio receiving device based on the communication connection request;
wherein the communication connection request is generated for the audio receiving device based on the device identification.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment respectively detects the connection signals, the equipment identification can be transmitted in an audio signal mode, and the communication connection between the equipment is automatically established based on the audio signal transmission mode, so that the efficiency of establishing the communication connection between the equipment is improved, and the use effect of accessory equipment is ensured; the vibration signal detection has pertinence and pertinence by detecting the audio receiving part of the audio receiving equipment; the vibration signal is detected in the bright screen state of the audio receiving equipment, so that the vibration signal can be prevented from being detected due to misoperation, and the power consumption of the audio receiving equipment is reduced; through the setting and judgment of the amplitude threshold value and the frequency threshold value, the misoperation of communication connection of the audio receiving equipment caused by vibration generated by the outside or the equipment is avoided, and the accuracy of detecting the vibration signal is improved; through the mode that adopts ultrasonic wave audio signal carries out the receiving and dispatching of audio frequency connection signal, because the signal frequency difference of ultrasonic wave and general sound wave can avoid strikeing sound, sound wave influences such as environmental noise for the audio frequency connection signal is caught by the microphone subassembly more easily, and then has promoted the efficiency that communication connection established between the equipment.
Referring to fig. 14, a schematic structural diagram of a computer device is provided in an embodiment of the present application. As shown in fig. 14, the computer apparatus 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, input output interfaces 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 14, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, an input-output interface module, and a connection establishment application program.
In one embodiment, the processor 1001 may be configured to invoke a connection establishment application stored in the memory 1005 and specifically perform the following operations:
when a connection establishment signal is detected, outputting an audio connection signal, wherein the audio connection signal carries an equipment identifier for establishing communication connection;
the method comprises the steps of obtaining a communication connection request initiated by audio receiving equipment, and establishing communication connection with the audio receiving equipment based on the communication connection request, wherein the communication connection request is generated by the audio receiving equipment based on the equipment identification.
Optionally, before the processor 1001 detects the connection establishment signal, the following operations are further performed:
when the vibration signal is detected based on the sensing component, it is determined that the connection establishment signal is detected.
Optionally, when determining that the connection establishment signal is detected based on the vibration signal detected by the sensing component, the processor 1001 specifically performs the following operations:
when a vibration signal is detected based on a sensing assembly, acquiring detection state information of the vibration signal, wherein the detection state information comprises at least one of vibration amplitude and vibration frequency;
determining that a connection establishment signal is detected when the detection status information satisfies a detection threshold.
Optionally, when the processor 1001 detects a connection establishment signal and outputs an audio connection signal, the following operations are specifically performed:
when a connection establishment signal is detected, coding the equipment identification to obtain equipment address information;
and generating an audio connection signal based on the equipment address information, and outputting the audio connection signal.
Optionally, the audio connection signal is an ultrasonic connection signal.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment respectively detects the connection signals, the equipment identification can be transmitted in an audio signal mode, and the communication connection between the equipment is automatically established based on the audio signal transmission mode, so that the efficiency of establishing the communication connection between the equipment is improved, and the use effect of accessory equipment is ensured; the vibration signal detection has pertinence and pertinence by detecting the audio receiving part of the audio receiving equipment; the vibration signal is detected in the bright screen state of the audio receiving equipment, so that the vibration signal can be prevented from being detected due to misoperation, and the power consumption of the audio receiving equipment is reduced; through the setting and judgment of the amplitude threshold value and the frequency threshold value, the misoperation of communication connection of the audio receiving equipment caused by vibration generated by the outside or the equipment is avoided, and the accuracy of detecting the vibration signal is improved; through the mode that adopts ultrasonic wave audio signal carries out the receiving and dispatching of audio frequency connection signal, because the signal frequency difference of ultrasonic wave and general sound wave can avoid strikeing sound, sound wave influences such as environmental noise for the audio frequency connection signal is caught by the microphone subassembly more easily, and then has promoted the efficiency that communication connection established between the equipment.
Based on the system architecture shown in fig. 1, the following describes in detail the audio receiving device provided in the embodiment of the present application with reference to fig. 15 to 18. It should be noted that the audio receiving apparatus in fig. 15-fig. 18 may be specifically the second apparatus in the above-mentioned embodiment, and is used for executing the method in the embodiments shown in fig. 9-fig. 10 of the present application, for convenience of description, only the portion related to the embodiments of the present application is shown, and details of the specific technology are not disclosed, please refer to the embodiments shown in fig. 9-fig. 10 of the present application.
Please refer to fig. 15, which provides a schematic structural diagram of an audio receiving apparatus according to an embodiment of the present application. As shown in fig. 15, the audio receiving apparatus 2 according to the embodiment of the present application may include: a signal receiving unit 21, an identification obtaining unit 22 and a connection establishing unit 23.
A signal receiving unit 21 for receiving an audio connection signal output from the audio output device when the connection establishment signal is detected;
an identifier obtaining unit 22, configured to obtain an apparatus identifier of the audio output apparatus carried in the audio connection signal;
a connection establishing unit 23, configured to establish a communication connection with the audio output device based on the device identifier.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment detects the connection signals respectively, the equipment identification can be transmitted in an audio signal mode, communication connection between the equipment is automatically established based on the audio signal transmission mode, the efficiency of establishing the communication connection between the equipment is improved, and the using effect of accessory equipment is guaranteed.
Please refer to fig. 16, which is a schematic structural diagram of an audio receiving apparatus according to an embodiment of the present application. As shown in fig. 16, the audio receiving apparatus 2 according to the embodiment of the present application may include: a signal receiving unit 21, an identification obtaining unit 22, a connection establishing unit 23, and.
A signal determination unit 24 for determining that a connection establishment signal is detected when a vibration signal is detected based on the sensing component;
the signal determining unit 24 is specifically configured to, when a vibration signal is detected based on the sensing component, acquire detection state information of the vibration signal, where the detection state information includes at least one of a vibration amplitude and a vibration frequency, and when the detection state information satisfies a detection threshold, determine that a connection establishment signal is detected.
Specifically, please refer to fig. 17, which provides a schematic structural diagram of a signal determining unit according to an embodiment of the present application. As shown in fig. 17, the signal determination unit 24 may include:
the state control subunit 241 is configured to control the sensing component to enter a vibration signal detection state when the sensing component is in a bright screen state;
a signal determination subunit 242, configured to determine that a connection establishment signal is detected when the presence of a vibration signal at the audio receiving portion is detected based on the sensing component.
A signal receiving unit 21 for receiving an audio connection signal output from the audio output device when the connection establishment signal is detected;
an identifier obtaining unit 22, configured to obtain an apparatus identifier of the audio output apparatus carried in the audio connection signal;
specifically, please refer to fig. 18, which provides a schematic structural diagram of an identifier obtaining unit according to an embodiment of the present application. As shown in fig. 18, the identification obtaining unit 22 may include:
an information obtaining subunit 221, configured to obtain device address information in the audio connection signal;
an information decoding subunit 222, configured to decode the device address information to obtain a device identifier of the audio output device.
A connection establishing unit 23, configured to establish a communication connection with the audio output device based on the device identifier.
And an information output unit 25 for outputting a prompt information that the communication connection has been established when the communication connection with the audio output apparatus is successfully established.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment respectively detects the connection signals, the equipment identification can be transmitted in an audio signal mode, and the communication connection between the equipment is automatically established based on the audio signal transmission mode, so that the efficiency of establishing the communication connection between the equipment is improved, and the use effect of accessory equipment is ensured; the vibration signal detection has pertinence and pertinence by detecting the audio receiving part of the audio receiving equipment; the vibration signal is detected in the bright screen state of the audio receiving equipment, so that the vibration signal can be prevented from being detected due to misoperation, and the power consumption of the audio receiving equipment is reduced; through the setting and judgment of the amplitude threshold value and the frequency threshold value, the misoperation of communication connection of the audio receiving equipment caused by vibration generated by the outside or the equipment is avoided, and the accuracy of detecting the vibration signal is improved; through the mode that adopts ultrasonic wave audio signal carries out the receiving and dispatching of audio frequency connection signal, because the signal frequency difference of ultrasonic wave and general sound wave can avoid strikeing sound, sound wave influences such as environmental noise for the audio frequency connection signal is caught by the microphone subassembly more easily, and then has promoted the efficiency that communication connection established between the equipment.
Referring to fig. 19, a schematic structural diagram of a computer device is provided according to an embodiment of the present application. As shown in fig. 19, the computer device 2000 may include: at least one processor 2001, e.g., a CPU, at least one network interface 2004, input output interface 2003, memory 2005, at least one communication bus 2002. The communication bus 2002 is used to implement connection communication between these components. The network interface 2004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others. Memory 2005 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 2005 may optionally also be at least one memory device located remotely from the aforementioned processor 2001. As shown in fig. 19, the memory 2005 which is a kind of computer storage medium may include therein an operating system, a network communication module, an input-output interface module, and a connection establishment application program.
In one embodiment, the processor 2001 may be configured to invoke a connection establishment application stored in the memory 2005 and specifically perform the following operations:
receiving an audio connection signal output by the audio output device when the connection establishment signal is detected;
acquiring the equipment identifier of the audio output equipment carried in the audio connection signal;
establishing a communication connection with the audio output device based on the device identification.
Optionally, before the processor 2001 performs the following operation when the connection establishment signal is detected:
when the vibration signal is detected based on the sensing component, it is determined that the connection establishment signal is detected.
Optionally, when determining that the connection establishment signal is detected based on the detection of the vibration signal by the sensing component, the processor 2001 specifically performs the following operations:
when a vibration signal is detected based on a sensing assembly, acquiring detection state information of the vibration signal, wherein the detection state information comprises at least one of vibration amplitude and vibration frequency;
determining that a connection establishment signal is detected when the detection status information satisfies a detection threshold.
Optionally, when determining that the connection establishment signal is detected based on the detection of the vibration signal by the sensing component, the processor 2001 specifically performs the following operations:
when the screen is in a bright screen state, controlling the sensing assembly to enter a vibration signal detection state;
determining that a connection establishment signal is detected when a vibration signal is detected at an audio receiving portion based on the sensing component.
Optionally, when the processor 2001 executes to acquire the device identifier of the audio output device carried in the audio connection signal, the following operation is specifically executed:
acquiring equipment address information in the audio connection signal;
and decoding the equipment address information to obtain the equipment identification of the audio output equipment.
Optionally, after performing establishing the communication connection with the audio output device based on the device identifier, the processor 2001 further performs the following operations:
and when the communication connection with the audio output equipment is successfully established, outputting prompt information of the established communication connection.
Optionally, the audio connection signal is an ultrasonic connection signal.
In this application embodiment, the audio output device may output an audio connection signal carrying the device identifier when detecting the connection signal, and the audio receiving device may receive the audio connection signal when detecting the connection signal, and obtain the device identifier in the audio connection signal, and then the audio receiving device may establish a communication connection with the audio output device based on the device identifier. After the equipment respectively detects the connection signals, the equipment identification can be transmitted in an audio signal mode, and the communication connection between the equipment is automatically established based on the audio signal transmission mode, so that the efficiency of establishing the communication connection between the equipment is improved, and the use effect of accessory equipment is ensured; the vibration signal detection has pertinence and pertinence by detecting the audio receiving part of the audio receiving equipment; the vibration signal is detected in the bright screen state of the audio receiving equipment, so that the vibration signal can be prevented from being detected due to misoperation, and the power consumption of the audio receiving equipment is reduced; through the setting and judgment of the amplitude threshold value and the frequency threshold value, the misoperation of communication connection of the audio receiving equipment caused by vibration generated by the outside or the equipment is avoided, and the accuracy of detecting the vibration signal is improved; through the mode that adopts ultrasonic wave audio signal carries out the receiving and dispatching of audio frequency connection signal, because the signal frequency difference of ultrasonic wave and general sound wave can avoid strikeing sound, sound wave influences such as environmental noise for the audio frequency connection signal is caught by the microphone subassembly more easily, and then has promoted the efficiency that communication connection established between the equipment.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of program instructions, where the program instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 1 to 10, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 10, which is 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 a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (17)

1. A method for establishing a communication connection, comprising:
when a connection establishment signal is detected, outputting an audio connection signal, wherein the audio connection signal carries an equipment identifier for establishing communication connection;
the method comprises the steps of obtaining a communication connection request initiated by audio receiving equipment, and establishing communication connection with the audio receiving equipment based on the communication connection request, wherein the communication connection request is generated by the audio receiving equipment based on the equipment identification.
2. The method of claim 1, wherein before the detecting the connection setup signal, further comprising:
when the vibration signal is detected based on the sensing component, it is determined that the connection establishment signal is detected.
3. The method of claim 2, wherein determining that the connection establishment signal is detected when the vibration signal is detected based on the sensing component comprises:
when a vibration signal is detected based on a sensing assembly, acquiring detection state information of the vibration signal, wherein the detection state information comprises at least one of vibration amplitude and vibration frequency;
determining that a connection establishment signal is detected when the detection status information satisfies a detection threshold.
4. The method of claim 1, wherein outputting an audio connection signal when the connection establishment signal is detected comprises:
when a connection establishment signal is detected, coding the equipment identification to obtain equipment address information;
and generating an audio connection signal based on the equipment address information, and outputting the audio connection signal.
5. The method of claim 1, wherein the audio connection signal is an ultrasonic connection signal.
6. A method for establishing a communication connection, comprising:
receiving an audio connection signal output by the audio output device when the connection establishment signal is detected;
acquiring the equipment identifier of the audio output equipment carried in the audio connection signal;
establishing a communication connection with the audio output device based on the device identification.
7. The method of claim 6, wherein before the detecting the connection establishment signal, further comprising:
when the vibration signal is detected based on the sensing component, it is determined that the connection establishment signal is detected.
8. The method of claim 7, wherein determining that the connection establishment signal is detected when the vibration signal is detected based on the sensing component comprises:
when a vibration signal is detected based on a sensing assembly, acquiring detection state information of the vibration signal, wherein the detection state information comprises at least one of vibration amplitude and vibration frequency;
determining that a connection establishment signal is detected when the detection status information satisfies a detection threshold.
9. The method of claim 7, wherein determining that the connection establishment signal is detected when the vibration signal is detected based on the sensing component comprises:
when the screen is in a bright screen state, controlling the sensing assembly to enter a vibration signal detection state;
determining that a connection establishment signal is detected when a vibration signal is detected at an audio receiving portion based on the sensing component.
10. The method of claim 6, wherein obtaining the device identification of the audio output device carried in the audio connection signal comprises:
acquiring equipment address information in the audio connection signal;
and decoding the equipment address information to obtain the equipment identification of the audio output equipment.
11. The method of claim 6, wherein after establishing the communication connection with the audio output device based on the device identification, further comprising:
and when the communication connection with the audio output equipment is successfully established, outputting prompt information of the established communication connection.
12. The method of claim 6, wherein the audio connection signal is an ultrasonic connection signal.
13. A method for establishing a communication connection, comprising:
when first equipment detects a first connection signal, the first equipment outputs an audio connection signal, wherein the audio connection signal carries an equipment identifier of the first equipment;
when a second device detects a second connection signal, the second device receives the audio connection signal;
the second device acquires the device identification in the audio connection signal;
the second device establishes a communication connection with the first device based on the device identification.
14. An audio output device, comprising:
the signal output unit is used for outputting an audio connection signal when a connection establishment signal is detected, wherein the audio connection signal carries an equipment identifier for establishing communication connection;
the connection establishing unit is used for acquiring a communication connection request initiated by audio receiving equipment, and establishing communication connection with the audio receiving equipment based on the communication connection request, wherein the communication connection request is generated by the audio receiving equipment based on the equipment identifier.
15. An audio receiving apparatus, comprising:
a signal receiving unit for receiving an audio connection signal output from the audio output device when the connection establishment signal is detected;
the identification acquisition unit is used for acquiring the equipment identification of the audio output equipment carried in the audio connection signal;
and the connection establishing unit is used for establishing communication connection with the audio output equipment based on the equipment identification.
16. A computer device comprising a processor, a memory, an input output interface;
the processor is connected to the memory and the input/output interface respectively, wherein the input/output interface is used for page interaction, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method according to any one of claims 1 to 12.
17. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-12.
CN202011297110.0A 2020-11-17 2020-11-17 Communication connection establishing method, storage medium and equipment Pending CN112399638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011297110.0A CN112399638A (en) 2020-11-17 2020-11-17 Communication connection establishing method, storage medium and equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011297110.0A CN112399638A (en) 2020-11-17 2020-11-17 Communication connection establishing method, storage medium and equipment
PCT/CN2021/114745 WO2022105342A1 (en) 2020-11-17 2021-08-26 Communicational connection establishment method, storage medium and device

Publications (1)

Publication Number Publication Date
CN112399638A true CN112399638A (en) 2021-02-23

Family

ID=74606489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011297110.0A Pending CN112399638A (en) 2020-11-17 2020-11-17 Communication connection establishing method, storage medium and equipment

Country Status (2)

Country Link
CN (1) CN112399638A (en)
WO (1) WO2022105342A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022105342A1 (en) * 2020-11-17 2022-05-27 Oppo广东移动通信有限公司 Communicational connection establishment method, storage medium and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262516A (en) * 2015-09-07 2016-01-20 惠州Tcl移动通信有限公司 Slave device, and system and method for automatically pairing master and slave devices
US20180192448A1 (en) * 2016-12-31 2018-07-05 UBTECH Robotics Corp. Method, device, and system for audio bluetooth pairing and connecting
CN108684029A (en) * 2018-08-23 2018-10-19 维沃移动通信有限公司 A kind of Bluetooth pairing connection method and system, bluetooth equipment and terminal
CN110312235A (en) * 2019-05-16 2019-10-08 深圳市豪恩声学股份有限公司 Audio frequency apparatus, operation method, device and the storage medium that real-time voice wakes up
CN111669737A (en) * 2020-05-27 2020-09-15 维沃移动通信有限公司 Bluetooth device connection method and device and electronic device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201328397A (en) * 2011-12-28 2013-07-01 Ind Tech Res Inst Method for establishing connection between wireless communication devices
CN104427471A (en) * 2013-09-04 2015-03-18 华为技术有限公司 Method for automatically establishing connection of mobile network and terminal
CN103596292A (en) * 2013-11-26 2014-02-19 广东欧珀移动通信有限公司 Method for rapid Bluetooth pairing connection through sound
CN105182766A (en) * 2015-08-12 2015-12-23 小米科技有限责任公司 Equipment control method and apparatus
CN106803854A (en) * 2015-11-26 2017-06-06 阿里巴巴集团控股有限公司 Method, device and wearable device that information is received, sent
CN106792493B (en) * 2017-03-09 2020-09-01 北京小米移动软件有限公司 Bluetooth device pairing method and device and Bluetooth device
SG10201803628VA (en) * 2018-04-30 2019-11-28 Kaha Pte Ltd Methods and systems for establishing an operation between users based on identification of one or more user actions
CN112399638A (en) * 2020-11-17 2021-02-23 Oppo广东移动通信有限公司 Communication connection establishing method, storage medium and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262516A (en) * 2015-09-07 2016-01-20 惠州Tcl移动通信有限公司 Slave device, and system and method for automatically pairing master and slave devices
US20180192448A1 (en) * 2016-12-31 2018-07-05 UBTECH Robotics Corp. Method, device, and system for audio bluetooth pairing and connecting
CN108684029A (en) * 2018-08-23 2018-10-19 维沃移动通信有限公司 A kind of Bluetooth pairing connection method and system, bluetooth equipment and terminal
CN110312235A (en) * 2019-05-16 2019-10-08 深圳市豪恩声学股份有限公司 Audio frequency apparatus, operation method, device and the storage medium that real-time voice wakes up
CN111669737A (en) * 2020-05-27 2020-09-15 维沃移动通信有限公司 Bluetooth device connection method and device and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022105342A1 (en) * 2020-11-17 2022-05-27 Oppo广东移动通信有限公司 Communicational connection establishment method, storage medium and device

Also Published As

Publication number Publication date
WO2022105342A1 (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US9653080B2 (en) Method and apparatus for voice control of a mobile device
US9813548B2 (en) Call method of mobile terminal, mobile terminal control method, and related device
US9787273B2 (en) Smart volume control of device audio output based on received audio input
US9711160B2 (en) Smart dock for activating a voice recognition mode of a portable electronic device
WO2015188327A1 (en) Method and terminal for quickly starting application service
JP2017538341A (en) Volume control method, system, device and program
US9781240B2 (en) Method and user terminal for performing call using voice recognition
US10104213B2 (en) Information processing device
CN110636163A (en) Voice response method and mobile device
CN101662313A (en) System and method for searching communication device by blue tooth
CN106453791A (en) A sound signal output method and apparatus and an earphone state detection method and apparatus
CN112399638A (en) Communication connection establishing method, storage medium and equipment
US20170118586A1 (en) Voice data transmission processing method, terminal and computer storage medium
WO2018201943A1 (en) Device control method, device and system
JP5973289B2 (en) Portable terminal, voice control program, and voice control method
CN104980583A (en) Event reminding method and terminal
CN106878294B (en) Method and device for recording voice information by interphone
WO2015070643A1 (en) Method and terminal for connection switchover for headphone jack adaptor device
KR101128200B1 (en) Mobile phone and Method for auto responding according to the state of owner of mobile phone
CN111131951A (en) Wireless earphone positioning method, wireless earphone, electronic equipment and storage medium
EP2772908B1 (en) Method And Apparatus For Voice Control Of A Mobile Device
KR101621136B1 (en) Method and communication terminal of providing voice service using illumination sensor
CN114358747B (en) Calendar event reminding method and device, storage medium and electronic equipment
CN111556406B (en) Audio processing method, audio processing device and earphone
CN110754097B (en) Call control method, device, terminal equipment 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