WO2021237415A1 - Headset pairing method, headset control method, bluetooth headset storage apparatus, and medium - Google Patents

Headset pairing method, headset control method, bluetooth headset storage apparatus, and medium Download PDF

Info

Publication number
WO2021237415A1
WO2021237415A1 PCT/CN2020/092138 CN2020092138W WO2021237415A1 WO 2021237415 A1 WO2021237415 A1 WO 2021237415A1 CN 2020092138 W CN2020092138 W CN 2020092138W WO 2021237415 A1 WO2021237415 A1 WO 2021237415A1
Authority
WO
WIPO (PCT)
Prior art keywords
headset
bluetooth headset
bluetooth
pairing
connection
Prior art date
Application number
PCT/CN2020/092138
Other languages
French (fr)
Chinese (zh)
Inventor
盖伟东
赖振华
肖岚
Original Assignee
深圳市易优斯科技有限公司
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 深圳市易优斯科技有限公司 filed Critical 深圳市易优斯科技有限公司
Priority to PCT/CN2020/092138 priority Critical patent/WO2021237415A1/en
Priority to CN202080000950.8A priority patent/CN111971985A/en
Publication of WO2021237415A1 publication Critical patent/WO2021237415A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • This application relates to the field of communication technologies, and in particular to headset pairing, headset control methods, Bluetooth headset storage devices and media. Background technique
  • the Bluetooth headset storage device is a device used to place Bluetooth headsets and charge the Bluetooth headset for a short time; the Bluetooth headset storage device can be charged through a data cable and the data interface of the Bluetooth headset storage device, or wirelessly The charger charges the Bluetooth headset storage device.
  • the Bluetooth headset storage device cannot be connected to a wireless headset, nor can it be used to match the Bluetooth headset through the Bluetooth headset storage device. Summary of Invention Technical Problem Solution to Problem Technical Solution
  • the main purpose of this application is to propose a headset pairing, headset control method, storage device, and readable storage medium, which aims to realize the function of transmitting and receiving Bluetooth information of the storage device, and realize Bluetooth headsets and those without Bluetooth function.
  • the data transmission function of the source device solves the technical problems of inconvenient Bluetooth headset connection and inconvenient operation.
  • the headset pairing method includes the following steps:
  • the step of establishing a first connection with the source device includes: [0009] Receive audio interface pairing information sent by the source device.
  • the step of establishing a Bluetooth connection with the Bluetooth headset according to the pairing information stored in the Bluetooth headset storage device includes:
  • the step of generating a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device includes:
  • the step of generating a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device further includes:
  • the method before the step of receiving the audio interface pairing information sent by the source device, the method includes:
  • the step of receiving the audio interface pairing information sent by the source device includes:
  • the first connection is a USB connection.
  • connection signal of the source device when the connection signal of the source device is not detected, disconnect the connection with the Bluetooth headset.
  • the method further includes:
  • the method further includes:
  • connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction is received; [0033] if the connection confirmation information is not received, the connection with the Bluetooth headset is disconnected.
  • the method further includes: when the Bluetooth headset is in a storage state, charging the Bluetooth headset through the first connection.
  • the present application also provides an earphone control method, wherein the earphone control method includes the steps of the earphone pairing method, and the earphone control method further includes:
  • the volume adjustment instruction is sent to the Bluetooth headset, so that the Bluetooth headset adjusts the output or pickup volume of the Bluetooth headset according to the volume adjustment instruction.
  • it further includes:
  • the program control instruction is sent to the source device, so that the source device performs a corresponding operation according to the program control instruction.
  • it further includes:
  • it further includes:
  • the present application also provides a Bluetooth headset storage device
  • the Bluetooth headset storage device includes: a memory, a processor, and stored in the memory and can run on the processor Earphone pairing program, when the earphone pairing program is executed by the processor, the earphone pairing program described above is realized The steps of the machine pairing method.
  • it further includes:
  • the charging module after establishing a first connection with the source device, charges the Bluetooth headset storage device.
  • the present application also provides a medium in which a headphone pairing program is stored, and when the headphone pairing program is executed by a processor, the steps of the above-mentioned headphone pairing method are implemented.
  • This application provides a headset pairing, headset control method, Bluetooth headset storage device and media to establish a first connection with a source device; when the first connection is successfully established, according to the storage device stored in the Bluetooth headset
  • the pairing information of the device establishes a Bluetooth connection with the Bluetooth headset; based on the first connection and the Bluetooth connection, establishes a communication connection between the source device and the Bluetooth headset.
  • FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution of an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a first embodiment of a headset pairing method according to this application.
  • FIG. 3 is a schematic flowchart of a second embodiment of a headset pairing method according to this application.
  • FIG. 4 is a schematic flowchart of a third embodiment of a headset pairing method according to this application.
  • FIG. 5 is a schematic flowchart of a first embodiment of a headset control method of this application.
  • FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution of an embodiment of the present application.
  • the terminal in the embodiment of the present application may be a PC, or a mobile terminal device with a display function, such as a smart phone or a tablet computer.
  • the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to realize the connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • the terminal may also include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on.
  • sensors such as light sensors, motion sensors and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor can turn off the display screen and/or when the mobile terminal is moved to the ear. Backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.;
  • the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
  • terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different component arrangement .
  • the memory 1005 which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and a headset pairing program.
  • the network interface 1004 is mainly used to connect to a background server and communicate with the background server;
  • the user interface 1003 is mainly used to connect to a client (user side) to communicate with the client Data communication;
  • the processor 1001 can be used to call the earphone pairing program stored in the memory 1005, and perform the following operations:
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • a mandatory Bluetooth pairing instruction is generated according to the Bluetooth headset address information and the storage device address information.
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • the step of receiving the audio interface pairing information sent by the source device includes:
  • the first connection is a USB connection.
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • an audio disconnect instruction is sent to the Bluetooth headset, so that the Bluetooth headset performs a corresponding operation according to the audio disconnect instruction.
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction is received; [0098] if the connection confirmation information is not received, disconnect the connection with the Bluetooth headset.
  • the Bluetooth headset is kept searching, and when the Bluetooth headset is searched again, a signal connection is performed.
  • the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
  • FIG. 2 is a schematic flowchart of a first embodiment of a headset pairing method according to this application.
  • the headset pairing method is applied to a Bluetooth headset storage device, and the headset pairing method includes:
  • Step S10 Establish a first connection with the source device
  • a first connection is established between the Bluetooth headset storage device and the source device.
  • the first connection may be a USB connection, or may be a connection such as Wi Fi, NFC, or the like.
  • the source device can be a PC, or a mobile device with a display function such as a smart phone or a tablet computer, and the source device can also be an MP3, MP4, or game console; when the source device is a PC (fixed source device),
  • the Bluetooth headset storage device is connected to the fixed source device through a data cable (USB data cable) or an audio interface cable.
  • the Bluetooth headset storage device can receive the audio interface pairing information sent by the portable source device through the data cable, and the Bluetooth headset storage device can also use Bluetooth, WiFi, NFC, etc. Way to receive the audio interface pairing information sent by the portable device.
  • the Bluetooth headset storage device may be a Bluetooth headset box.
  • the Bluetooth headset storage device when the Bluetooth headset storage device is connected to the source device through a data cable, one end of the connection line is inserted into the audio interface of the source device, and the other end is inserted into the data interface of the Bluetooth headset storage device, and the Bluetooth headset storage device establishes a connection with the source device.
  • the first connection of the Bluetooth headset storage device and the source device are paired and successfully connected.
  • the data cable can be an AUX audio cable (audio interface cable), and the data cable can be a USB connection cable.
  • the Bluetooth headset When the Bluetooth headset is in the storage state, the Bluetooth headset is charged through the first connection.
  • the Bluetooth headset storage device is provided with a pogo pin (Pogo Pin); the pogo pin is used for data interaction and data transmission between the Bluetooth headset storage device and the Bluetooth headset;
  • Step S10 establishing a first connection with the source device may include:
  • Step a Receive audio interface pairing information sent by the source device.
  • the Bluetooth headset storage device and the source device are connected through a data cable
  • one end of the connection cable is inserted into the audio interface of the source device, and the other end is inserted into the data interface of the storage device, and the storage device receives the source device's transmission
  • the audio interface pairing information of the Bluetooth headset the storage device establishes a first connection with the source device, and the Bluetooth headset storage device is paired and successfully connected with the source device.
  • the audio interface pairing information is received by the Bluetooth headset
  • the audio interface pairing information can be triggered by the operator operating the application on the source device; the audio interface pairing information can be sent by the source device to the headset via Bluetooth, WiFi, NFC, etc.; The audio interface pairing information may also be sent by the source device to the headset via the cable.
  • the Bluetooth headset storage device when the Bluetooth headset storage device and the source device are connected through wireless methods such as Bluetooth, WiFi, NFC, etc., the Bluetooth headset storage device receives the audio interface pairing information sent by the source device
  • the Bluetooth headset storage device reads the source device address information in the audio interface pairing information
  • the Bluetooth headset storage device obtains the Bluetooth headset storage device address information according to the audio interface pairing information
  • the Bluetooth headset storage device acquires the address information of the Bluetooth headset storage device and the source device address according to the Bluetooth headset storage device address information and the source device address.
  • the information generation Bluetooth headset storage device receives the pairing information
  • the Bluetooth headset storage device sends the pairing information received by the Bluetooth headset storage device to the source device, and the source device is successfully paired with the Bluetooth headset storage device.
  • the address information of the Bluetooth headset storage device is unique to the Bluetooth headset storage device and uniquely represents the address information of the Bluetooth headset storage device.
  • the source device address information is unique to the source device and uniquely represents the source device's address information.
  • the pairing information received by the Bluetooth headset storage device is information that the Bluetooth headset storage device receives pairing with the source device.
  • the Bluetooth headset storage device is assigned a globally unique identification code when it is produced, that is, the address information of the Bluetooth headset storage device.
  • Step a Before receiving the audio interface pairing information sent by the source device, it may include:
  • Step b sending audio pairing information to the source device
  • the Bluetooth headset storage device after the Bluetooth headset storage device is connected to the source device via a data cable, or after the Bluetooth headset storage device obtains the address information of the source device, the Bluetooth headset storage device sends audio pairing information to the source device; After the source device receives the audio pairing information sent by the Bluetooth headset storage device, the source device generates audio interface pairing information according to the audio pairing information. After the source device generates the audio interface pairing information, the source device sends the audio interface pairing information to the Bluetooth headset storage. Device.
  • the Bluetooth headset storage device after the Bluetooth headset storage device is connected to the source device through a data cable, or after the Bluetooth headset storage device obtains the address information of the source device, the Bluetooth headset storage device sends the source device to the source device.
  • the device sends audio pairing information; after receiving the audio pairing information sent by the Bluetooth headset storage device, the source device reads the address information of the Bluetooth headset storage device in the audio pairing information; the source device generates audio interface pairing information according to the audio pairing information; source device Generate audio interface pairing After the information, the source device sends the audio interface pairing information to the Bluetooth headset storage device according to the address information of the Bluetooth headset storage device.
  • Step a Receiving the audio interface pairing information sent by the source device may include:
  • Step c Receive audio interface pairing information returned by the source device according to the audio pairing information.
  • the Bluetooth headset storage device receives the audio interface pairing information returned by the source device according to the audio pairing information
  • Step S20 When the first connection is successfully established, establish a Bluetooth connection with the Bluetooth headset according to the pairing information stored in the Bluetooth headset storage device;
  • the Bluetooth headset storage device when the Bluetooth headset storage device determines that the first connection with the source device is successfully established, stores the pairing information in the Bluetooth headset storage device to establish a Bluetooth connection with the Bluetooth headset.
  • the pairing information of the Bluetooth headset may include address information of the Bluetooth headset; the pairing information of the Bluetooth headset may also include key information between the Bluetooth headset and the Bluetooth headset storage device, and the pairing information of the Bluetooth headset may also include the address information of the Bluetooth headset storage device. Address information.
  • Step S30 based on the first connection and the Bluetooth connection, establish a communication connection between the source device and the Bluetooth headset.
  • the Bluetooth headset storage device when the Bluetooth headset storage device establishes a first connection with the source device, and after the Bluetooth headset storage device establishes a Bluetooth connection with the Bluetooth headset, the Bluetooth headset storage device establishes the source according to the first connection and the Bluetooth connection.
  • the communication connection between the device and the Bluetooth headset, that is, the Bluetooth headset and the source device can transmit communication information through the Bluetooth headset storage device.
  • Step S30 after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, may further include:
  • Step d1 sending an audio confirmation instruction to the source device every preset confirmation time
  • the Bluetooth headset storage device after the Bluetooth headset storage device establishes a communication connection between the source device and the Bluetooth headset, the Bluetooth headset storage device sends an audio confirmation instruction to the source device every preset confirmation time. After the source device receives the audio confirmation instruction, the source device generates audio confirmation information according to the audio confirmation instruction, and sends the audio confirmation information to the Bluetooth headset storage device.
  • the preset confirmation time can be set according to user habits, or can be set during production of the Bluetooth headset storage device; wherein, the audio confirmation command is
  • the Bluetooth headset storage device confirms whether the source device and the Bluetooth headset storage device are connected. When the connection signal of the Bluetooth headset is not detected, the connection with the source device is disconnected. After the Bluetooth connection is disconnected, the Bluetooth headset is kept searching, and when the Bluetooth headset is searched again, a signal connection is performed.
  • Step d2 detecting whether the audio confirmation information returned by the source device according to the audio confirmation instruction is received;
  • the Bluetooth headset storage device after the Bluetooth headset storage device sends the audio confirmation instruction to the source device, the Bluetooth headset storage device detects whether it receives the audio confirmation information returned by the source device according to the audio confirmation instruction.
  • Step d3 if the audio confirmation information is not received, send an audio disconnection instruction to the Bluetooth headset, so that the Bluetooth headset can perform a corresponding operation according to the audio disconnection instruction.
  • the Bluetooth headset storage device detects whether it receives the audio confirmation information returned by the source device according to the audio confirmation instruction, if the Bluetooth headset storage device does not receive the audio confirmation information, the Bluetooth headset The storage device sends an audio disconnect instruction to the Bluetooth headset, the Bluetooth headset receives the audio disconnect instruction, and the Bluetooth headset performs a corresponding operation according to the audio disconnect instruction, that is, the Bluetooth headset is disconnected from the Bluetooth headset storage device .
  • the audio disconnect command is a command to disconnect the Bluetooth headset from the Bluetooth headset storage device.
  • Step d2 after detecting whether the audio confirmation information returned by the source device according to the audio confirmation instruction is received, may include:
  • Step d4 if the audio confirmation message is received, no operation is performed.
  • the Bluetooth headset storage device detects whether it receives the audio confirmation information returned by the source device according to the audio confirmation instruction, if the Bluetooth headset storage device receives the audio confirmation information, the Bluetooth headset is stored The device does not perform operations.
  • This embodiment establishes the first connection with the source device through the above solution; the pairing information stored in the Bluetooth headset storage device; and based on the first connection and the Bluetooth connection, establishes the source device and the source device. Describe the communication connection of the Bluetooth headset.
  • the Bluetooth headset storage device is connected to the source device and the Bluetooth headset successively, which realizes the function of transmitting and receiving Bluetooth information of the Bluetooth headset storage device, and realizes the data transmission between the Bluetooth headset and the source device that does not have the Bluetooth function. Function to increase the adaptability of the Bluetooth headset storage device and strengthen the connection performance of the Bluetooth headset. Solve the problem of bluetooth headset connection Convenient, inconvenient technical problems
  • FIG. 3 is a schematic flowchart of a second embodiment of a headset pairing method according to this application.
  • step S20 establishing a Bluetooth connection with the Bluetooth headset according to the pairing information of the Bluetooth headset may include:
  • Step S21 Generate a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device, and send the mandatory Bluetooth pairing instruction to the Bluetooth headset;
  • the Bluetooth headset storage device determines that the first connection is successfully established, the Bluetooth headset storage device generates a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device, and the Bluetooth headset storage device Sending a mandatory Bluetooth pairing instruction to the Bluetooth headset; where the mandatory Bluetooth pairing instruction is used to control the Bluetooth headset to only receive instructions from the Bluetooth headset storage device or to only send audio information to the Bluetooth headset.
  • the Bluetooth headset After the Bluetooth headset receives the mandatory Bluetooth pairing instruction sent by the Bluetooth headset storage device, the Bluetooth headset disconnects from other source devices or devices, and the Bluetooth headset generates and receives pairing information according to the forced Bluetooth pairing instruction.
  • the Bluetooth headset After the Bluetooth headset receives a mandatory Bluetooth pairing instruction sent by the Bluetooth headset storage device, the Bluetooth headset disconnects from other devices, the Bluetooth headset no longer receives signals sent by other devices, and the Bluetooth headset no longer sends signals to other devices; The Bluetooth headset then generates receiving pairing information according to the received mandatory Bluetooth pairing instruction, and the Bluetooth headset sends the receiving pairing information to the Bluetooth headset storage device.
  • the Bluetooth headset can be a TWS headset (True Wireless Stereo headset).
  • the Bluetooth headset storage device sends a mandatory Bluetooth pairing instruction to the Bluetooth headset through a spring thimble.
  • Step S22 Receive pairing acceptance information returned by the Bluetooth headset according to the mandatory Bluetooth pairing instruction
  • the Bluetooth headset storage device receives the pairing information returned by the Bluetooth headset according to the mandatory Bluetooth pairing instruction, and the Bluetooth headset storage device receives the pairing After the information, the Bluetooth headset storage device is successfully paired with the Bluetooth headset; after the Bluetooth headset storage device is successfully paired with the Bluetooth headset, the Bluetooth headset storage device and the Bluetooth headset establish command communication such as A2DP/HFP/HSP/AVRCP.
  • receiving the pairing information is the information that the Bluetooth headset receives the pairing of the Bluetooth headset storage device, which may be an operation command, a control command, or a special code.
  • Step S21 generates a mandatory Bluetooth pairing instruction according to the pairing information of the Bluetooth headset, which may include:
  • Step el Obtain the Bluetooth headset address information and the Bluetooth headset receiving device address information stored in the Bluetooth headset receiving device;
  • the Bluetooth headset storage device receives the audio interface pairing information sent by the source device, the Bluetooth headset storage device obtains the headset address information of the Bluetooth headset stored locally in the Bluetooth headset storage device according to the audio interface pairing information, and Bluetooth headset storage device address information of the Bluetooth headset storage device.
  • the headset address information is unique to the Bluetooth headset and uniquely represents the address information of the Bluetooth headset.
  • the address information of the Bluetooth headset storage device is unique to the Bluetooth headset storage device and uniquely represents the address information of the Bluetooth headset storage device. Bluetooth headsets are assigned a globally unique identification code when they are produced, that is, Bluetooth headset address information.
  • Step e2 Generate a mandatory Bluetooth pairing instruction according to the Bluetooth headset address information and the Bluetooth headset storage device address information.
  • the Bluetooth headset storage device After the Bluetooth headset storage device obtains the headset address information and the Bluetooth headset storage device address information, the Bluetooth headset storage device generates a mandatory Bluetooth pairing according to the acquired headset address information and the Bluetooth headset storage device address information instruction.
  • Step S21 generating a mandatory Bluetooth pairing instruction according to the pairing information of the Bluetooth headset may also include:
  • Step H Acquire Bluetooth headset address information, storage device address information, and pairing key information stored in the Bluetooth headset storage device;
  • the Bluetooth headset storage device receives the audio interface pairing information sent by the source device, and the Bluetooth headset storage device obtains the headset address information of the Bluetooth headset stored locally in the Bluetooth headset storage device according to the audio interface pairing information.
  • Bluetooth headset storage device address information and pairing key information of the Bluetooth headset storage device are unique to the Bluetooth headset and uniquely represents the address information of the Bluetooth headset.
  • the address information of the Bluetooth headset storage device is unique to the Bluetooth headset storage device and uniquely represents the address information of the Bluetooth headset storage device.
  • Bluetooth headsets are assigned a globally unique identification code when they are produced, that is, Bluetooth headset address information.
  • the pairing key information is the secret key information required for pairing between the Bluetooth headset storage device and the Bluetooth headset; the pairing key information may be the security key required for pairing between the Bluetooth headset storage device and the Bluetooth headset.
  • Step f2 according to the Bluetooth headset address information, the storage device address information and the pairing key The information generates a mandatory Bluetooth pairing instruction.
  • the Bluetooth headset storage device After the Bluetooth headset storage device obtains the headset address information and the Bluetooth headset storage device address information, the Bluetooth headset storage device generates a mandatory Bluetooth pairing according to the acquired headset address information and the Bluetooth headset storage device address information instruction.
  • Step S21 sending a mandatory Bluetooth pairing instruction to the Bluetooth headset may include:
  • Step g Send a mandatory Bluetooth pairing instruction to the Bluetooth headset according to the Bluetooth headset address information.
  • the Bluetooth headset storage device after the Bluetooth headset storage device generates a mandatory Bluetooth pairing instruction, the Bluetooth headset storage device sends a mandatory Bluetooth pairing instruction to the Bluetooth headset according to the Bluetooth headset address information.
  • This embodiment establishes a first connection with the source device through the above solution; when the first connection is successfully established, a mandatory Bluetooth pairing instruction is generated according to the pairing information stored in the Bluetooth headset storage device, and the Bluetooth pairing instruction is sent to the Bluetooth headset.
  • the headset sends a forced Bluetooth pairing instruction; receives the pairing acceptance information returned by the Bluetooth headset according to the forced Bluetooth pairing instruction; based on the first connection and the Bluetooth connection, establishing a communication connection between the source device and the Bluetooth headset .
  • the Bluetooth headset storage device is connected to the source device and the Bluetooth headset successively, which realizes the function of transmitting and receiving Bluetooth information of the Bluetooth headset storage device, and realizes the data transmission between the Bluetooth headset and the source device that does not have the Bluetooth function. Function to increase the adaptability of the Bluetooth headset storage device and strengthen the connection performance of the Bluetooth headset. Solve the technical problems of inconvenient connection and inconvenient operation of Bluetooth headsets
  • FIG. 4 is a schematic flowchart of a third embodiment of a headset pairing method according to this application.
  • step S30 may further include:
  • Step S41 Send a connection confirmation instruction to the Bluetooth headset every preset connection time
  • the Bluetooth headset storage device after the Bluetooth headset storage device establishes a communication connection between the source device and the Bluetooth headset, the Bluetooth headset storage device sends a connection confirmation instruction to the Bluetooth headset every preset connection time.
  • the source device After the source device receives the connection confirmation instruction, the source device generates connection confirmation information according to the connection confirmation instruction, and the source device sends the connection confirmation information to the Bluetooth headset storage device.
  • the preset connection time may be set according to user habits, or may be set during production of the Bluetooth headset storage device; the preset connection time is used to confirm whether the Bluetooth headset storage device and the Bluetooth headset are connected, the Bluetooth headset and the Bluetooth headset The distance of the storage device is beyond the information transmission range of the Bluetooth headset storage device.
  • Step S42 It is detected whether the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction is received;
  • the Bluetooth headset storage device After the Bluetooth headset storage device sends an audio confirmation instruction to the source device, the Bluetooth headset storage device detects whether it receives the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction.
  • Step S43 if the connection confirmation message is not received, disconnect the connection with the Bluetooth headset.
  • the Bluetooth headset storage device After the Bluetooth headset storage device detects whether it receives the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction, if the Bluetooth headset storage device does not receive the connection confirmation information, the Bluetooth headset storage device Disconnect the Bluetooth headset. For example, when the Bluetooth headset is outside the information sending range of the Bluetooth headset storage device, the Bluetooth headset storage device cannot receive the connection confirmation message, and the Bluetooth headset storage device disconnects the connection with the Bluetooth headset.
  • Step S43 if the connection confirmation message is not received, after disconnecting from the Bluetooth headset, it may include:
  • Step h When receiving a reconnection instruction sent by the Bluetooth headset, send reconnection information to the Bluetooth headset according to the reconnection instruction.
  • the reconnection information is sent to the Bluetooth headset according to the reconnection instruction
  • the Bluetooth headset receives the reconnection information
  • the Bluetooth headset is based on the reconnection instruction.
  • Connect the message and reconnect the Bluetooth headset storage device For example, when the Bluetooth headset moves from outside the information sending range of the Bluetooth headset storage device to within the information sending range of the Bluetooth headset storage device, the Bluetooth headset will send a reconnection instruction to the Bluetooth headset storage device, and the Bluetooth headset storage device will receive the reply sent by the Bluetooth headset.
  • the Bluetooth headset storage device sends reconnection information to the Bluetooth headset according to the reconnection instruction
  • the Bluetooth headset receives the reconnection information
  • This embodiment establishes a first connection with the source device through the above solution; when the first connection is successfully established, establishes a Bluetooth connection with the Bluetooth headset according to the pairing information of the Bluetooth headset, where the pairing Information is stored in the Bluetooth headset storage device; based on the first connection and the Bluetooth connection, establishing a communication connection between the source device and the Bluetooth headset; sending a connection confirmation to the Bluetooth headset every preset connection time Instruction; detect whether the Bluetooth headset is received and return according to the connection confirmation instruction If the connection confirmation message is not received, the connection with the Bluetooth headset is disconnected.
  • the Bluetooth headset storage device is connected to the source device and the Bluetooth headset successively, which realizes the function of transmitting and receiving Bluetooth information of the Bluetooth headset storage device, and realizes the data transmission between the Bluetooth headset and the source device that does not have the Bluetooth function. Function to increase the adaptability of the Bluetooth headset storage device and strengthen the connection performance of the Bluetooth headset.
  • This application also provides a headset control method.
  • FIG. 5 is a schematic flowchart of a first embodiment of a headset control method of this application. Based on the embodiment shown in FIG. 2, FIG. 3, or FIG. 4, after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, step S30 may further include:
  • Step S51 Receive a volume adjustment instruction sent by the source device
  • the Bluetooth headset storage device after the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset, or after the Bluetooth headset storage device sends the pairing information received by the Bluetooth headset storage device to the source device, the Bluetooth headset storage device combines the search A volume adjustment instruction sent by the source device; where the volume adjustment instruction is an instruction for the source device to adjust the output volume of the Bluetooth headset or pick up audio.
  • Step S52 Send the volume adjustment instruction to the Bluetooth headset, so that the Bluetooth headset adjusts the output or pickup volume of the Bluetooth headset according to the volume adjustment instruction.
  • the Bluetooth headset storage device after the Bluetooth headset storage device receives the volume adjustment instruction, the Bluetooth headset storage device sends the volume adjustment instruction to the Bluetooth headset, and the Bluetooth headset receives the volume adjustment instruction sent by the Bluetooth headset storage device.
  • the volume adjustment command adjusts the output volume of the Bluetooth headset, or the Bluetooth headset adjusts the pickup volume of the microphone on the Bluetooth headset according to the volume adjustment command.
  • Step S30 may further include after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection:
  • Step j1 receiving a program control instruction sent by the Bluetooth headset
  • the Bluetooth headset storage device receives the program control instruction sent by the Bluetooth headset; where the program control instruction is on the Bluetooth headset control source device
  • the program running instruction the program control instruction can be to control the program on the source device to run the next song, the program control instruction can also be to control the program on the source device to run the previous song, the program control instruction can also be to control the program on the source device to pause.
  • Step j2 Send the program control instruction to the source device, so that the source device performs a corresponding operation according to the program control instruction.
  • the Bluetooth headset storage device after the Bluetooth headset storage device receives the program control instruction sent by the Bluetooth headset, the Bluetooth headset storage device sends the program control instruction to the source device; the source device receives the program sent by the Bluetooth headset storage device Control instruction; The source device executes the corresponding operation according to the program control instruction.
  • the corresponding operation can be to play the next song; the corresponding operation can also be to play the previous song; the corresponding operation can also be to pause software playback; the corresponding operation can also be to open the playback software on the source device to play music; corresponding The operation can also be to open the call software on the source device to make a call.
  • the AVRCP command is sent to the Bluetooth headset storage device through the Bluetooth headset, and the Bluetooth headset storage device uses USB audio control commands to return to the USB Audio source device to realize the button control functions of the headset, such as: play/pause, start voice command, next song, Increase the volume, decrease the volume, and so on.
  • Step S30 based on the first connection and the Bluetooth connection, after establishing a communication connection between the source device and the Bluetooth headset, may further include:
  • Step k1 receiving headset voice information sent by the Bluetooth headset
  • the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset, that is, after the Bluetooth headset storage device is successfully paired with the Bluetooth headset
  • the Bluetooth headset storage device receives the headset voice information sent by the Bluetooth headset .
  • the headset voice information is picked up by the Bluetooth headset through the microphone set on the Bluetooth headset.
  • the earphone voice information can be picked up by the microphone set on the Bluetooth earphone after the Bluetooth earphone has enabled functions such as noise reduction in the call environment, active earphone noise reduction, or environmental sound monitoring.
  • Step k2 Send the headset voice information to the source device.
  • the Bluetooth headset storage device after the Bluetooth headset storage device receives the headset voice information, the Bluetooth headset storage device sends the headset voice information to the source device. After the source device receives the headset voice information, the source device performs the headset voice information Processing: The source device sends the processed earphone voice information to other source devices through the running program.
  • Step S30 based on the first connection and the Bluetooth connection, after establishing a communication connection between the source device and the Bluetooth headset, may further include:
  • Step ml receiving headset playback information sent by the source device;
  • the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset (that is, after the Bluetooth headset storage device is successfully paired with the Bluetooth headset), or after the Bluetooth headset storage device is successfully paired with the source device .
  • the Bluetooth headset storage device receives the headset playback information sent by the source device.
  • the earphone playback information is audio information played by the program on the source device.
  • Step m2 Send the headset playback information to the Bluetooth headset.
  • the Bluetooth headset storage device after the Bluetooth headset storage device receives the headset playback information, the Bluetooth headset storage device sends the headset playback information to the Bluetooth headset. After the Bluetooth headset receives the headset playback information, the Bluetooth headset performs the headset playback information. Play.
  • Step S30 after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, may further include:
  • Step n1 receiving headset voice control information sent by the Bluetooth headset
  • the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset (that is, after the Bluetooth headset storage device is successfully paired with the Bluetooth headset), or after the Bluetooth headset storage device is successfully paired with the source device ,
  • the Bluetooth headset storage device receives the headset voice control information sent by the Bluetooth headset.
  • the headset voice control information is the voice control sent by the user through the Bluetooth headset microphone, so that the source device executes the corresponding control program after receiving the headset voice control information.
  • Step n2 Send the headset voice control information to the source device.
  • the Bluetooth headset storage device after the Bluetooth headset storage device receives the headset voice control information, the Bluetooth headset storage device sends the headset voice control information to the source device, and the source device reads the headset voice control information to obtain the headset voice Control instructions, the source device executes the headset voice control instructions.
  • This embodiment establishes a first connection with the source device through the above solution; when the first connection is successfully established, establishes a Bluetooth connection with the Bluetooth headset according to the pairing information of the Bluetooth headset, where the pairing Information is stored in the Bluetooth headset storage device; based on the first connection and the Bluetooth connection, establishing a communication connection between the source device and the Bluetooth headset; receiving a volume adjustment instruction sent by the source device; The volume adjustment instruction is sent to the Bluetooth headset, so that the Bluetooth headset adjusts the output or pickup volume of the Bluetooth headset according to the volume adjustment instruction.
  • the Bluetooth headset storage device is connected to the source device and the Bluetooth headset successively, which realizes the function of transmitting and receiving Bluetooth information of the Bluetooth headset storage device, and realizes the data transmission between the Bluetooth headset and the source device that does not have the Bluetooth function. Function to increase the adaptability of the Bluetooth headset storage device and strengthen the connection performance of the Bluetooth headset.
  • This application also provides a Bluetooth headset storage device.
  • the Bluetooth headset storage device of the present application includes: a memory, a processor, and a headset pairing program that is stored on the memory and can run on the processor, and the headset pairing program is executed by the processor to achieve the above The steps of the headset pairing method.
  • the Bluetooth headset storage device further includes:
  • the charging module after establishing the first connection with the source device, charges the Bluetooth headset storage device.
  • the method implemented when the earphone pairing program running on the processor is executed can refer to the various embodiments of the earphone pairing method of this application, which will not be repeated here.
  • This application also provides a readable storage medium.
  • a headset pairing program is stored on the readable storage medium of the present application, and when the headset pairing program is executed by the processor, the steps of the headset pairing method described above are implemented.
  • the method implemented when the earphone pairing program running on the processor is executed can refer to the various embodiments of the earphone pairing method of this application, which will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed is a headset pairing method. The method comprises: establishing a first connection with a source device; when the first connection is successfully established, establishing a Bluetooth connection with a Bluetooth headset according to pairing information stored in a Bluetooth headset storage apparatus; and on the basis of the first connection and the Bluetooth connection, establishing a communication connection between the source device and the Bluetooth headset. Further disclosed are a headset control method, a storage apparatus, and a readable storage medium. By means of the present application, the function of a Bluetooth storage apparatus transmitting and receiving Bluetooth information can be realized, the function of a Bluetooth headset performing data transmission with a terminal that does not have a Bluetooth function can be realized, the adaptability of the storage apparatus can be improved, and the connection performance of the Bluetooth headset can be enhanced.

Description

耳 机 配对 、 耳机控 制方 法 、 蓝牙耳 机收 纳装 置及 介 质 技术领域 Earphone pairing, earphone control method, Bluetooth earphone receiving device and media technology field
[0001] 本申请涉及通信技术领域, 尤其涉及耳机配对、 耳机控制方法、 蓝牙耳机收纳 装置及介质。 背景技术 [0001] This application relates to the field of communication technologies, and in particular to headset pairing, headset control methods, Bluetooth headset storage devices and media. Background technique
[0002] 目前, 蓝牙耳机收纳装置是用于放置蓝牙耳机的装置, 并为蓝牙耳机进行短时 间的充电; 蓝牙耳机收纳装置可以通过数据线和蓝牙耳机收纳装置的数据接口 进行充电, 或者通过无线充电器为蓝牙耳机收纳装置进行充电。 蓝牙耳机收纳 装置不能进行无线耳机的连接, 也不能通过蓝牙耳机收纳装置对蓝牙耳机进行 配套的作用。 发明概 述 技术问题 问题的解 决方案 技术解决方案 [0002] At present, the Bluetooth headset storage device is a device used to place Bluetooth headsets and charge the Bluetooth headset for a short time; the Bluetooth headset storage device can be charged through a data cable and the data interface of the Bluetooth headset storage device, or wirelessly The charger charges the Bluetooth headset storage device. The Bluetooth headset storage device cannot be connected to a wireless headset, nor can it be used to match the Bluetooth headset through the Bluetooth headset storage device. Summary of Invention Technical Problem Solution to Problem Technical Solution
[0003] 本申请的主要目的在于提出一种耳机配对、 耳机控制方法、 收纳装置及可读存 储介质, 旨在实现收纳装置的发射和接收蓝牙信息的功能, 实现蓝牙耳机与不 具有蓝牙功能的源设备进行数据传输的功能, 解决蓝牙耳机连接不方便, 操作 不便捷的技术问题。 [0003] The main purpose of this application is to propose a headset pairing, headset control method, storage device, and readable storage medium, which aims to realize the function of transmitting and receiving Bluetooth information of the storage device, and realize Bluetooth headsets and those without Bluetooth function. The data transmission function of the source device solves the technical problems of inconvenient Bluetooth headset connection and inconvenient operation.
[0004] 为实现上述目的, 本申请提供一种耳机配对方法, 所述耳机配对方法包括如下 步骤: [0004] In order to achieve the foregoing objective, the present application provides a headset pairing method. The headset pairing method includes the following steps:
[0005] 建立与源设备的第一连接; [0005] Establish a first connection with the source device;
[0006] 当所述第一连接建立成功时, 根据保存于所述蓝牙耳机收纳装置的配对信息建 立与所述蓝牙耳机的蓝牙连接; [0006] when the first connection is successfully established, establishing a Bluetooth connection with the Bluetooth headset according to the pairing information stored in the Bluetooth headset storage device;
[0007] 基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳机的通信连 接。 [0007] Based on the first connection and the Bluetooth connection, a communication connection between the source device and the Bluetooth headset is established.
[0008] 可选地, 所述建立与源设备的第一连接的步骤, 包括: [0009] 接收源设备发送的音频接口配对信息。 [0008] Optionally, the step of establishing a first connection with the source device includes: [0009] Receive audio interface pairing information sent by the source device.
[0010] 可选地, 所述根据保存于所述蓝牙耳机收纳装置的配对信息建立与所述蓝牙耳 机的蓝牙连接步骤, 包括: [0010] Optionally, the step of establishing a Bluetooth connection with the Bluetooth headset according to the pairing information stored in the Bluetooth headset storage device includes:
[0011] 根据保存于所述蓝牙耳机收纳装置的配对信息生成强制蓝牙配对指令, 并向蓝 牙耳机发送强制蓝牙配对指令; [0011] Generate a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device, and send the mandatory Bluetooth pairing instruction to the Bluetooth headset;
[0012] 接收所述蓝牙耳机根据所述强制蓝牙配对指令返回的接受配对信息。 [0012] receiving the pairing acceptance information returned by the Bluetooth headset according to the mandatory Bluetooth pairing instruction.
[0013] 可选地, 所述根据保存于所述蓝牙耳机收纳装置的配对信息生成强制蓝牙配对 指令的步骤, 包括: [0013] Optionally, the step of generating a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device includes:
[0014] 获取保存于所述蓝牙耳机收纳装置的蓝牙耳机地址信息和收纳装置地址信息;[0014] Obtaining Bluetooth headset address information and storage device address information stored in the Bluetooth headset storage device;
[0015] 根据所述蓝牙耳机地址信息和所述收纳装置地址信息生成强制蓝牙配对指令。 [0015] Generate a mandatory Bluetooth pairing instruction according to the Bluetooth headset address information and the storage device address information.
[0016] 可选地, 所述根据保存于所述蓝牙耳机收纳装置的配对信息生成强制蓝牙配对 指令的步骤, 还包括: [0016] Optionally, the step of generating a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device further includes:
[0017] 获取保存于所述蓝牙耳机收纳装置的蓝牙耳机地址信息、 收纳装置地址信息和 配对密钥信息; [0017] Obtaining Bluetooth headset address information, storage device address information, and pairing key information stored in the Bluetooth headset storage device;
[0018] 根据所述蓝牙耳机地址信息、 所述收纳装置地址信息和所述配对密钥信息生成 强制蓝牙配对指令。 [0018] Generate a mandatory Bluetooth pairing instruction according to the Bluetooth headset address information, the storage device address information, and the pairing key information.
[0019] 可选地, 所述接收源设备发送的音频接口配对信息的步骤之前, 包括: [0019] Optionally, before the step of receiving the audio interface pairing information sent by the source device, the method includes:
[0020] 向所述源设备发送音频配对信息; [0020] sending audio pairing information to the source device;
[0021] 所述接收源设备发送的音频接口配对信息的步骤, 包括: [0021] The step of receiving the audio interface pairing information sent by the source device includes:
[0022] 接收所述源设备根据所述音频配对信息返回的音频接口配对信息。 [0022] receiving the audio interface pairing information returned by the source device according to the audio pairing information.
[0023] 可选地, 所述第一连接为 USB连接。 [0023] Optionally, the first connection is a USB connection.
[0024] 可选地, 当未检测到所述源设备的连接信号时, 断开与所述蓝牙耳机的连接。 [0024] Optionally, when the connection signal of the source device is not detected, disconnect the connection with the Bluetooth headset.
[0025] 可选地, 所述基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙 耳机的通信连接的步骤之后, 还包括: [0025] Optionally, after the step of establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, the method further includes:
[0026] 每隔预设确认时间向所述源设备发送音频确认指令; [0026] sending an audio confirmation instruction to the source device every preset confirmation time;
[0027] 检测是否接收到所述源设备根据所述音频确认指令返回的音频确认信息;[0027] detecting whether the audio confirmation information returned by the source device according to the audio confirmation instruction is received;
[0028] 若未接收到音频确认信息, 则向所述蓝牙耳机发送音频断开指令, 以便于所述 蓝牙耳机根据所述音频断开指令执行对应操作。 [0029] 可选地, 当未检测到所述蓝牙耳机的连接信号时, 断开与所述源设备的连接。 [0030] 可选地, 所述基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙 耳机的通信连接的步骤之后, 还包括: [0028] If the audio confirmation information is not received, an audio disconnect instruction is sent to the Bluetooth headset, so that the Bluetooth headset performs a corresponding operation according to the audio disconnect instruction. [0029] Optionally, when the connection signal of the Bluetooth headset is not detected, disconnect the connection with the source device. [0030] Optionally, after the step of establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, the method further includes:
[0031] 每隔预设连接时间向所述蓝牙耳机发送连接确认指令; [0031] Sending a connection confirmation instruction to the Bluetooth headset every preset connection time;
[0032] 检测是否接收到所述蓝牙耳机根据所述连接确认指令返回的连接确认信息; [0033] 若未接收到连接确认信息, 则断开与所述蓝牙耳机的连接。 [0032] It is detected whether the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction is received; [0033] if the connection confirmation information is not received, the connection with the Bluetooth headset is disconnected.
[0034] 可选地, 在断开所述蓝牙连接后, 保持搜寻所述蓝牙耳机, 当重新搜寻到所述 蓝牙耳机后, 进行信号连接。 [0034] Optionally, after disconnecting the Bluetooth connection, keep searching for the Bluetooth headset, and when the Bluetooth headset is searched again, perform a signal connection.
[0035] 可选地, 还包括: 在蓝牙耳机处于收纳状态下, 通过所述第一连接为所述蓝牙 耳机充电。 [0035] Optionally, the method further includes: when the Bluetooth headset is in a storage state, charging the Bluetooth headset through the first connection.
[0036] 此外, 为实现上述目的, 本申请还提供一种耳机控制方法, 其中, 所述耳机控 制方法包括所述耳机配对方法的步骤, 所述耳机控制方法, 还包括: [0036] In addition, in order to achieve the foregoing objective, the present application also provides an earphone control method, wherein the earphone control method includes the steps of the earphone pairing method, and the earphone control method further includes:
[0037] 接收所述源设备发送的音量调节指令; [0037] receiving a volume adjustment instruction sent by the source device;
[0038] 将所述音量调节指令发送至所述蓝牙耳机, 以便于所述蓝牙耳机根据所述音量 调节指令调节蓝牙耳机输出或拾取音量。 [0038] The volume adjustment instruction is sent to the Bluetooth headset, so that the Bluetooth headset adjusts the output or pickup volume of the Bluetooth headset according to the volume adjustment instruction.
[0039] 可选地, 还包括: [0039] Optionally, it further includes:
[0040] 接收所述蓝牙耳机发送的程序控制指令; [0040] receiving a program control instruction sent by the Bluetooth headset;
[0041] 将所述程序控制指令发送至所述源设备, 以便于所述源设备根据所述程序控制 指令执行对应的操作。 [0041] The program control instruction is sent to the source device, so that the source device performs a corresponding operation according to the program control instruction.
[0042] 可选地, 还包括: [0042] Optionally, it further includes:
[0043] 接收所述蓝牙耳机发送的耳机语音信息; [0043] receiving headset voice information sent by the Bluetooth headset;
[0044] 将所述耳机语音信息发送至所述源设备。 [0044] sending the headset voice information to the source device.
[0045] 可选地, 还包括: [0045] Optionally, it further includes:
[0046] 接收所述源设备发送的语音播放信息; [0046] receiving voice playback information sent by the source device;
[0047] 将所述耳机播放信息发送至所述蓝牙耳机。 [0047] sending the headset playback information to the Bluetooth headset.
[0048] 此外, 为实现上述目的, 本申请还提供一种蓝牙耳机收纳装置, 所述蓝牙耳机 收纳装置包括: 存储器、 处理器及存储在所述存储器上并可在所述处理器上运 行的耳机配对程序, 所述耳机配对程序被所述处理器执行时实现如上所述的耳 机配对方法的步骤。 [0048] In addition, in order to achieve the above object, the present application also provides a Bluetooth headset storage device, the Bluetooth headset storage device includes: a memory, a processor, and stored in the memory and can run on the processor Earphone pairing program, when the earphone pairing program is executed by the processor, the earphone pairing program described above is realized The steps of the machine pairing method.
[0049] 可选地, 还包括: [0049] Optionally, it further includes:
[0050] 充电模块, 在与所述源设备建立第一连接之后, 对所述蓝牙耳机收纳装置进行 充电。 [0050] The charging module, after establishing a first connection with the source device, charges the Bluetooth headset storage device.
[0051] 此外, 为实现上述目的, 本申请还提供一种介质, 所述介质上存储有耳机配对 程序, 所述耳机配对程序被处理器执行时实现如上所述的耳机配对方法的步骤 [0051] In addition, in order to achieve the above-mentioned object, the present application also provides a medium in which a headphone pairing program is stored, and when the headphone pairing program is executed by a processor, the steps of the above-mentioned headphone pairing method are implemented.
[0052] 本申请提供了一种耳机配对、 耳机控制方法、 蓝牙耳机收纳装置及介质, 建立 与源设备的第一连接; 当所述第一连接建立成功时, 根据保存于所述蓝牙耳机 收纳装置的配对信息建立与所述蓝牙耳机的蓝牙连接; 基于所述第一连接和所 述蓝牙连接, 建立所述源设备与所述蓝牙耳机的通信连接。 通过收纳装置先后 与源设备和蓝牙耳机进行连接, 本申请能够实现蓝牙收纳装置的发射和接收蓝 牙信息的功能, 实现蓝牙耳机与不具有蓝牙功能的终端进行数据传输的功能, 实现增加收纳装置的适配性, 强化蓝牙耳机的连接性能。 解决蓝牙耳机连接不 方便, 操作不便捷的技术问题。 发明的 有益效果 对附图 的简要说 明 附图说明 [0052] This application provides a headset pairing, headset control method, Bluetooth headset storage device and media to establish a first connection with a source device; when the first connection is successfully established, according to the storage device stored in the Bluetooth headset The pairing information of the device establishes a Bluetooth connection with the Bluetooth headset; based on the first connection and the Bluetooth connection, establishes a communication connection between the source device and the Bluetooth headset. By successively connecting the storage device with the source device and the Bluetooth headset, this application can realize the function of transmitting and receiving Bluetooth information of the Bluetooth storage device, realize the function of data transmission between the Bluetooth headset and the terminal without Bluetooth function, and realize the increase of storage device Adaptability, strengthen the connection performance of the Bluetooth headset. Solve the technical problems of inconvenient connection and inconvenient operation of Bluetooth headsets. Beneficial effects of the invention Brief description of the drawings Description of the drawings
[0053] 图 1是本申请实施例方案涉及的硬件运行环境的终端结构示意图; [0053] FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution of an embodiment of the present application;
[0054] 图 2为本申请耳机配对方法第一实施例的流程示意图; [0054] FIG. 2 is a schematic flowchart of a first embodiment of a headset pairing method according to this application;
[0055] 图 3为本申请耳机配对方法第二实施例的流程示意图; [0055] FIG. 3 is a schematic flowchart of a second embodiment of a headset pairing method according to this application;
[0056] 图 4为本申请耳机配对方法第三实施例的流程示意图; [0056] FIG. 4 is a schematic flowchart of a third embodiment of a headset pairing method according to this application;
[0057] 图 5为本申请耳机控制方法第一实施例的流程示意图。 [0057] FIG. 5 is a schematic flowchart of a first embodiment of a headset control method of this application.
[0058] 本申请目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。 发明实施 例 本发明的实施方 式 [0058] The realization, functional characteristics, and advantages of the objectives of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. Inventive embodiment of the present invention
[0059] 应当理解, 此处所描述的具体实施例仅用以解释本申请, 并不用于限定本申请 [0060] 如图 1所示, 图 1是本申请实施例方案涉及的硬件运行环境的终端结构示意图。 [0059] It should be understood that the specific embodiments described here are only used to explain the application, and not used to limit the application. [0060] As shown in FIG. 1, FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution of an embodiment of the present application.
[0061] 本申请实施例终端可以是 PC, 也可以是智能手机、 平板电脑等具有显示功能的 可移动式终端设备。 [0061] The terminal in the embodiment of the present application may be a PC, or a mobile terminal device with a display function, such as a smart phone or a tablet computer.
[0062] 如图 1所示, 该终端可以包括: 处理器 1001, 例如 CPU, 网络接口 1004, 用户接 口 1003, 存储器 1005, 通信总线 1002。 其中, 通信总线 1002用于实现这些组件 之间的连接通信。 用户接口 1003可以包括显示屏 (Display) 、 输入单元比如键 盘 (Keyboard) , 可选用户接口 1003还可以包括标准的有线接口、 无线接口。 网络接口 1004可选的可以包括标准的有线接口、 无线接口 (如 WI-FI接口) 。 存 储器 1005可以是高速 RAM存储器, 也可以是稳定的存储器 (non-volatile memory) , 例如磁盘存储器。 存储器 1005可选的还可以是独立于前述处理器 100 1的存储装置。 [0062] As shown in FIG. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0063] 优选地, 终端还可以包括摄像头、 RF(Radio Frequency, 射频) 电路, 传感 器、 音频电路、 WiFi模块等等。 其中, 传感器比如光传感器、 运动传感器以及 其他传感器。 具体地, 光传感器可包括环境光传感器及接近传感器, 其中, 环 境光传感器可根据环境光线的明暗来调节显示屏的亮度, 接近传感器可在移动 终端移动到耳边时, 关闭显示屏和 /或背光。 作为运动传感器的一种, 重力加速 度传感器可检测各个方向上 (一般为三轴) 加速度的大小, 静止时可检测出重 力的大小及方向, 可用于识别移动终端姿态的应用 (比如横竖屏切换、 相关游 戏、 磁力计姿态校准) 、 振动识别相关功能 (比如计步器、 敲击) 等; 当然, 移动终端还可配置陀螺仪、 气压计、 湿度计、 温度计、 红外线传感器等其他传 感器, 在此不再赘述。 [0063] Preferably, the terminal may also include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on. Among them, sensors such as light sensors, motion sensors and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor can turn off the display screen and/or when the mobile terminal is moved to the ear. Backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; Of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
[0064] 本领域技术人员可以理解, 图 1中示出的终端结构并不构成对终端的限定, 可 以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的部件布置。 [0064] Those skilled in the art can understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different component arrangement .
[0065] 如图 1所示, 作为一种计算机存储介质的存储器 1005中可以包括操作系统、 网 络通信模块、 用户接口模块以及耳机配对程序。 [0065] As shown in FIG. 1, the memory 1005, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and a headset pairing program.
[0066] 在图 1所示的终端中, 网络接口 1004主要用于连接后台服务器, 与后台服务器 进行数据通信; 用户接口 1003主要用于连接客户端 (用户端) , 与客户端进行 数据通信; 而处理器 1001可以用于调用存储器 1005中存储的耳机配对程序, 并 执行以下操作: [0066] In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to a background server and communicate with the background server; the user interface 1003 is mainly used to connect to a client (user side) to communicate with the client Data communication; and the processor 1001 can be used to call the earphone pairing program stored in the memory 1005, and perform the following operations:
[0067] 建立与源设备的第一连接; [0067] Establish a first connection with the source device;
[0068] 当所述第一连接建立成功时, 根据保存于所述蓝牙耳机收纳装置的配对信息建 立与所述蓝牙耳机的蓝牙连接; [0068] when the first connection is successfully established, establishing a Bluetooth connection with the Bluetooth headset according to the pairing information stored in the Bluetooth headset storage device;
[0069] 基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳机的通信连 接。 [0069] Based on the first connection and the Bluetooth connection, establishing a communication connection between the source device and the Bluetooth headset.
[0070] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0070] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0071] 接收源设备发送的音频接口配对信息。 [0071] Receive audio interface pairing information sent by the source device.
[0072] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0072] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0073] 根据保存于所述蓝牙耳机收纳装置的配对信息生成强制蓝牙配对指令, 并向蓝 牙耳机发送强制蓝牙配对指令; [0073] Generate a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device, and send the mandatory Bluetooth pairing instruction to the Bluetooth headset;
[0074] 接收所述蓝牙耳机根据所述强制蓝牙配对指令返回的接受配对信息。 [0074] receiving the pairing acceptance information returned by the Bluetooth headset according to the mandatory Bluetooth pairing instruction.
[0075] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0075] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0076] 获取蓝牙耳机地址信息和收纳装置地址信息; [0076] Obtaining Bluetooth headset address information and storage device address information;
[0077] 根据所述蓝牙耳机地址信息和所述收纳装置地址信息生成强制蓝牙配对指令。 [0077] Generate a mandatory Bluetooth pairing instruction according to the Bluetooth headset address information and the storage device address information.
[0078] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0078] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0079] 获取保存于所述蓝牙耳机收纳装置的蓝牙耳机地址信息和收纳装置地址信息;[0079] Obtaining Bluetooth headset address information and storage device address information stored in the Bluetooth headset storage device;
[0080] 根据所述蓝牙耳机地址信息和所述收纳装置地址信息生成强制蓝牙配对指令。 [0080] A mandatory Bluetooth pairing instruction is generated according to the Bluetooth headset address information and the storage device address information.
[0081] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0081] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0082] 获取保存于所述蓝牙耳机收纳装置的蓝牙耳机地址信息、 收纳装置地址信息和 配对密钥信息; [0082] Acquire Bluetooth headset address information, storage device address information, and pairing key information stored in the Bluetooth headset storage device;
[0083] 根据所述蓝牙耳机地址信息、 所述收纳装置地址信息和所述配对密钥信息生成 强制蓝牙配对指令。 [0083] Generated according to the Bluetooth headset address information, the storage device address information, and the pairing key information Mandatory Bluetooth pairing command.
[0084] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0084] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0085] 向所述源设备发送音频配对信息; [0085] sending audio pairing information to the source device;
[0086] 所述接收源设备发送的音频接口配对信息的步骤, 包括: [0086] The step of receiving the audio interface pairing information sent by the source device includes:
[0087] 接收所述源设备根据所述音频配对信息返回的音频接口配对信息。 [0087] receiving the audio interface pairing information returned by the source device according to the audio pairing information.
[0088] 进一步地, 所述第一连接为 USB连接。 [0088] Further, the first connection is a USB connection.
[0089] 进一步地, 当未检测到所述源设备的连接信号时, 断开与所述蓝牙耳机的连接 [0089] Further, when the connection signal of the source device is not detected, disconnect the connection with the Bluetooth headset
[0090] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0090] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0091] 每隔预设确认时间向所述源设备发送音频确认指令; [0091] Send an audio confirmation instruction to the source device every preset confirmation time;
[0092] 检测是否接收到所述源设备根据所述音频确认指令返回的音频确认信息;[0092] detecting whether the audio confirmation information returned by the source device according to the audio confirmation instruction is received;
[0093] 若未接收到音频确认信息, 则向所述蓝牙耳机发送音频断开指令, 以便于所述 蓝牙耳机根据所述音频断开指令执行对应操作。 [0093] If the audio confirmation information is not received, an audio disconnect instruction is sent to the Bluetooth headset, so that the Bluetooth headset performs a corresponding operation according to the audio disconnect instruction.
[0094] 进一步地, 当未检测到所述蓝牙耳机的连接信号时, 断开与所述源设备的连接 [0094] Further, when the connection signal of the Bluetooth headset is not detected, disconnect the connection with the source device
[0095] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0095] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0096] 每隔预设连接时间向所述蓝牙耳机发送连接确认指令; [0096] sending a connection confirmation instruction to the Bluetooth headset every preset connection time;
[0097] 检测是否接收到所述蓝牙耳机根据所述连接确认指令返回的连接确认信息; [0098] 若未接收到连接确认信息, 则断开与所述蓝牙耳机的连接。 [0097] detect whether the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction is received; [0098] if the connection confirmation information is not received, disconnect the connection with the Bluetooth headset.
[0099] 进一步地, 在断开所述蓝牙连接后, 保持搜寻所述蓝牙耳机, 当重新搜寻到所 述蓝牙耳机后, 进行信号连接。 [0099] Further, after the Bluetooth connection is disconnected, the Bluetooth headset is kept searching, and when the Bluetooth headset is searched again, a signal connection is performed.
[0100] 进一步地, 处理器 1001可以调用存储器 1005中存储的耳机配对程序, 还执行以 下操作: [0100] Further, the processor 1001 may call the earphone pairing program stored in the memory 1005, and also perform the following operations:
[0101] 在蓝牙耳机处于收纳状态下, 通过所述第一连接为所述蓝牙耳机充电。 [0101] When the Bluetooth headset is in the storage state, charge the Bluetooth headset through the first connection.
[0102] 基于上述硬件结构, 提出本申请耳机配对方法实施例。 [0103] 本申请耳机配对方法。 [0102] Based on the foregoing hardware structure, an embodiment of the headset pairing method of the present application is proposed. [0103] The headset pairing method of this application.
[0104] 参照图 2, 图 2为本申请耳机配对方法第一实施例的流程示意图。 [0104] Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of a headset pairing method according to this application.
[0105] 本申请实施例中, 该耳机配对方法应用于蓝牙耳机收纳装置, 所述耳机配对方 法包括: [0105] In the embodiment of the present application, the headset pairing method is applied to a Bluetooth headset storage device, and the headset pairing method includes:
[0106] 步骤 S10, 建立与源设备的第一连接; [0106] Step S10: Establish a first connection with the source device;
[0107] 在本实施例中, 为了使蓝牙耳机能够与源设备上建立通信连接, 先使蓝牙耳机 收纳装置与源设备建立第一连接。 其中, 第一连接可以是 USB连接, 也可以是 Wi Fi、 NFC等方式连接。 其中, 源设备可以是 PC, 也可以是智能手机、 平板电脑等 具有显示功能的可移动式设备, 源设备也可以是 MP3、 MP4或游戏机; 当源设备 为 PC (固定源设备) 时, 蓝牙耳机收纳装置与固定源设备通过数据线连接 (USB 数据线) 或者音频接口连接线。 当源设备为智能手机、 平板电脑等可移动式设 备时, 蓝牙耳机收纳装置可以通过数据线接收可移动式源设备发送的音频接口 配对信息, 蓝牙耳机收纳装置也可以通过蓝牙、 WiFi、 NFC等方式接收可移动式 设备发送的音频接口配对信息。 收纳装置用于收纳和放置蓝牙耳机的装置。 蓝 牙耳机收纳装置可以是蓝牙耳机盒。 [0107] In this embodiment, in order to enable the Bluetooth headset to establish a communication connection with the source device, a first connection is established between the Bluetooth headset storage device and the source device. Wherein, the first connection may be a USB connection, or may be a connection such as Wi Fi, NFC, or the like. Among them, the source device can be a PC, or a mobile device with a display function such as a smart phone or a tablet computer, and the source device can also be an MP3, MP4, or game console; when the source device is a PC (fixed source device), The Bluetooth headset storage device is connected to the fixed source device through a data cable (USB data cable) or an audio interface cable. When the source device is a mobile device such as a smart phone or a tablet computer, the Bluetooth headset storage device can receive the audio interface pairing information sent by the portable source device through the data cable, and the Bluetooth headset storage device can also use Bluetooth, WiFi, NFC, etc. Way to receive the audio interface pairing information sent by the portable device. Storage device A device for storing and placing Bluetooth headsets. The Bluetooth headset storage device may be a Bluetooth headset box.
[0108] 具体的, 当蓝牙耳机收纳装置与源设备通过数据线连接时, 连接线的一端插入 源设备的音频接口, 另一端插入蓝牙耳机收纳装置的数据接口, 蓝牙耳机收纳 装置建立与源设备的第一连接, 蓝牙耳机收纳装置与源设备配对和连接成功。 其中, 数据线可以是 AUX音频线 (音频接口线) , 数据线可以是 USB连接线。 在 蓝牙耳机处于收纳状态下, 通过所述第一连接为所述蓝牙耳机充电。 其中, 蓝 牙耳机收纳装置内设置有弹簧顶针 (Pogo Pin) ; 弹簧顶针用于蓝牙耳机收纳 装置与蓝牙耳机进行数据交互和数据传输; [0108] Specifically, when the Bluetooth headset storage device is connected to the source device through a data cable, one end of the connection line is inserted into the audio interface of the source device, and the other end is inserted into the data interface of the Bluetooth headset storage device, and the Bluetooth headset storage device establishes a connection with the source device. The first connection of the Bluetooth headset storage device and the source device are paired and successfully connected. Among them, the data cable can be an AUX audio cable (audio interface cable), and the data cable can be a USB connection cable. When the Bluetooth headset is in the storage state, the Bluetooth headset is charged through the first connection. Among them, the Bluetooth headset storage device is provided with a pogo pin (Pogo Pin); the pogo pin is used for data interaction and data transmission between the Bluetooth headset storage device and the Bluetooth headset;
[0109] 步骤 S10建立与源设备的第一连接, 可以包括: [0109] Step S10 establishing a first connection with the source device may include:
[0110] 步骤 a, 接收源设备发送的音频接口配对信息。 [0110] Step a: Receive audio interface pairing information sent by the source device.
[0111] 在本实施例中, 当蓝牙耳机收纳装置与源设备通过数据线连接时, 连接线的一 端插入源设备的音频接口, 另一端插入收纳装置的数据接口, 收纳装置接收到 源设备发送的音频接口配对信息, 收纳装置建立与源设备的第一连接, 蓝牙耳 机收纳装置与源设备配对和连接成功。 其中, 音频接口配对信息是蓝牙耳机收 纳装置获取到源设备的发出的; 音频接口配对信息可以是操作人员在源设备上 操作应用程序而触发的; 音频接口配对信息可以是源设备通过蓝牙、 WiFi、 NFC 等方式向耳机发送的; 音频接口配对信息也可以是源设备通过连接线向耳机发 送的。 [0111] In this embodiment, when the Bluetooth headset storage device and the source device are connected through a data cable, one end of the connection cable is inserted into the audio interface of the source device, and the other end is inserted into the data interface of the storage device, and the storage device receives the source device's transmission The audio interface pairing information of the Bluetooth headset, the storage device establishes a first connection with the source device, and the Bluetooth headset storage device is paired and successfully connected with the source device. Among them, the audio interface pairing information is received by the Bluetooth headset The audio interface pairing information can be triggered by the operator operating the application on the source device; the audio interface pairing information can be sent by the source device to the headset via Bluetooth, WiFi, NFC, etc.; The audio interface pairing information may also be sent by the source device to the headset via the cable.
[0112] 作为一种实施方式, 在本实施例中, 当蓝牙耳机收纳装置与源设备通过蓝牙、 WiFi、 NFC等无线方式进行连接时, 蓝牙耳机收纳装置接收到源设备发送的音频 接口配对信息, 蓝牙耳机收纳装置读取音频接口配对信息中的源设备地址信息 , 蓝牙耳机收纳装置根据音频接口配对信息获取蓝牙耳机收纳装置地址信息, 蓝牙耳机收纳装置根据蓝牙耳机收纳装置地址信息和源设备地址信息生成蓝牙 耳机收纳装置接收配对信息, 蓝牙耳机收纳装置并将蓝牙耳机收纳装置接收配 对信息发送至源设备, 源设备与蓝牙耳机收纳装置配对成功。 其中, 蓝牙耳机 收纳装置地址信息为蓝牙耳机收纳装置特有的、 唯一代表蓝牙耳机收纳装置的 地址信息。 源设备地址信息为源设备特有的、 唯一代表源设备的地址信息。 其 中, 蓝牙耳机收纳装置接收配对信息为蓝牙耳机收纳装置接收与源设备配对的 信息。 蓝牙耳机收纳装置在生产的时候都分配全球唯一的识别码, 也即蓝牙耳 机收纳装置地址信息。 [0112] As an implementation manner, in this embodiment, when the Bluetooth headset storage device and the source device are connected through wireless methods such as Bluetooth, WiFi, NFC, etc., the Bluetooth headset storage device receives the audio interface pairing information sent by the source device The Bluetooth headset storage device reads the source device address information in the audio interface pairing information, the Bluetooth headset storage device obtains the Bluetooth headset storage device address information according to the audio interface pairing information, and the Bluetooth headset storage device acquires the address information of the Bluetooth headset storage device and the source device address according to the Bluetooth headset storage device address information and the source device address. The information generation Bluetooth headset storage device receives the pairing information, the Bluetooth headset storage device sends the pairing information received by the Bluetooth headset storage device to the source device, and the source device is successfully paired with the Bluetooth headset storage device. Among them, the address information of the Bluetooth headset storage device is unique to the Bluetooth headset storage device and uniquely represents the address information of the Bluetooth headset storage device. The source device address information is unique to the source device and uniquely represents the source device's address information. Wherein, the pairing information received by the Bluetooth headset storage device is information that the Bluetooth headset storage device receives pairing with the source device. The Bluetooth headset storage device is assigned a globally unique identification code when it is produced, that is, the address information of the Bluetooth headset storage device.
[0113] 步骤 a接收源设备发送的音频接口配对信息之前, 可以包括: [0113] Step a Before receiving the audio interface pairing information sent by the source device, it may include:
[0114] 步骤 b, 向所述源设备发送音频配对信息; [0114] Step b, sending audio pairing information to the source device;
[0115] 在本实施例中, 蓝牙耳机收纳装置在通过数据线与源设备进行连接之后, 或者 蓝牙耳机收纳装置获取到源设备的地址信息之后, 蓝牙耳机收纳装置向源设备 发送音频配对信息; 源设备在接收到蓝牙耳机收纳装置发送的音频配对信息之 后, 源设备根据音频配对信息生成音频接口配对信息, 源设备在生成音频接口 配对信息之后, 源设备将音频接口配对信息发送至蓝牙耳机收纳装置。 [0115] In this embodiment, after the Bluetooth headset storage device is connected to the source device via a data cable, or after the Bluetooth headset storage device obtains the address information of the source device, the Bluetooth headset storage device sends audio pairing information to the source device; After the source device receives the audio pairing information sent by the Bluetooth headset storage device, the source device generates audio interface pairing information according to the audio pairing information. After the source device generates the audio interface pairing information, the source device sends the audio interface pairing information to the Bluetooth headset storage. Device.
[0116] 作为一种实施方式, 在本实施例中, 蓝牙耳机收纳装置在通过数据线与源设备 进行连接之后, 或者蓝牙耳机收纳装置获取到源设备的地址信息之后, 蓝牙耳 机收纳装置向源设备发送音频配对信息; 源设备在接收到蓝牙耳机收纳装置发 送的音频配对信息之后, 读取音频配对信息中的蓝牙耳机收纳装置地址信息; 源设备根据音频配对信息生成音频接口配对信息; 源设备在生成音频接口配对 信息之后, 源设备根据蓝牙耳机收纳装置地址信息将音频接口配对信息发送至 蓝牙耳机收纳装置。 [0116] As an implementation manner, in this embodiment, after the Bluetooth headset storage device is connected to the source device through a data cable, or after the Bluetooth headset storage device obtains the address information of the source device, the Bluetooth headset storage device sends the source device to the source device. The device sends audio pairing information; after receiving the audio pairing information sent by the Bluetooth headset storage device, the source device reads the address information of the Bluetooth headset storage device in the audio pairing information; the source device generates audio interface pairing information according to the audio pairing information; source device Generate audio interface pairing After the information, the source device sends the audio interface pairing information to the Bluetooth headset storage device according to the address information of the Bluetooth headset storage device.
[0117] 步骤 a接收源设备发送的音频接口配对信息, 可以包括: [0117] Step a: Receiving the audio interface pairing information sent by the source device may include:
[0118] 步骤 c, 接收所述源设备根据所述音频配对信息返回的音频接口配对信息。 [0118] Step c: Receive audio interface pairing information returned by the source device according to the audio pairing information.
[0119] 在本实施例中, 源设备在将音频接口配对信息发送至蓝牙耳机收纳装置之后, 蓝牙耳机收纳装置接收源设备根据所述音频配对信息返回的音频接口配对信息 [0119] In this embodiment, after the source device sends the audio interface pairing information to the Bluetooth headset storage device, the Bluetooth headset storage device receives the audio interface pairing information returned by the source device according to the audio pairing information
[0120] 步骤 S20, 当所述第一连接建立成功时, 根据保存于所述蓝牙耳机收纳装置的 配对信息建立与所述蓝牙耳机的蓝牙连接; [0120] Step S20: When the first connection is successfully established, establish a Bluetooth connection with the Bluetooth headset according to the pairing information stored in the Bluetooth headset storage device;
[0121] 在本实施例中, 当蓝牙耳机收纳装置判断与源设备的第一连接建立成功时, 蓝 牙耳机收纳装置保存于所述蓝牙耳机收纳装置的配对信息建立与蓝牙耳机的蓝 牙连接。 其中, 蓝牙耳机的配对信息可以包括蓝牙耳机的地址信息; 蓝牙耳机 的配对信息还可以包括蓝牙耳机与蓝牙耳机收纳装置之间的秘钥信息, 蓝牙耳 机的配对信息还可以包括蓝牙耳机收纳装置的地址信息。 [0121] In this embodiment, when the Bluetooth headset storage device determines that the first connection with the source device is successfully established, the Bluetooth headset storage device stores the pairing information in the Bluetooth headset storage device to establish a Bluetooth connection with the Bluetooth headset. Among them, the pairing information of the Bluetooth headset may include address information of the Bluetooth headset; the pairing information of the Bluetooth headset may also include key information between the Bluetooth headset and the Bluetooth headset storage device, and the pairing information of the Bluetooth headset may also include the address information of the Bluetooth headset storage device. Address information.
[0122] 步骤 S30, 基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳 机的通信连接。 [0122] Step S30, based on the first connection and the Bluetooth connection, establish a communication connection between the source device and the Bluetooth headset.
[0123] 在本实施例中, 当蓝牙耳机收纳装置与源设备建立了第一连接, 以及蓝牙耳机 收纳装置与蓝牙耳机建立了蓝牙连接之后, 蓝牙耳机收纳装置根据第一连接和 蓝牙连接建立源设备与蓝牙耳机的通信连接, 也即是蓝牙耳机和源设备可以通 过蓝牙耳机收纳装置进行通信信息的传送。 [0123] In this embodiment, when the Bluetooth headset storage device establishes a first connection with the source device, and after the Bluetooth headset storage device establishes a Bluetooth connection with the Bluetooth headset, the Bluetooth headset storage device establishes the source according to the first connection and the Bluetooth connection. The communication connection between the device and the Bluetooth headset, that is, the Bluetooth headset and the source device can transmit communication information through the Bluetooth headset storage device.
[0124] 步骤 S30基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳机 的通信连接之后, 还可以包括: [0124] Step S30, after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, may further include:
[0125] 步骤 dl, 每隔预设确认时间向所述源设备发送音频确认指令; [0125] Step d1, sending an audio confirmation instruction to the source device every preset confirmation time;
[0126] 在本实施例中, 蓝牙耳机收纳装置在使源设备与蓝牙耳机建立通信连接之后, 蓝牙耳机收纳装置每隔预设确认时间向源设备发送音频确认指令。 在源设备接 收到音频确认指令之后, 源设备根据音频确认指令生成音频确认信息, 并向蓝 牙耳机收纳装置发送音频确认信息。 其中预设确认时间可以是根据用户习惯进 行设置的, 也可以是蓝牙耳机收纳装置生产时设置的; 其中, 音频确认指令为 蓝牙耳机收纳装置确认源设备与蓝牙耳机收纳装置是否连接上的指令。 当未检 测到所述蓝牙耳机的连接信号时, 断开与所述源设备的连接。 在断开所述蓝牙 连接后, 保持搜寻所述蓝牙耳机, 当重新搜寻到所述蓝牙耳机后, 进行信号连 接。 [0126] In this embodiment, after the Bluetooth headset storage device establishes a communication connection between the source device and the Bluetooth headset, the Bluetooth headset storage device sends an audio confirmation instruction to the source device every preset confirmation time. After the source device receives the audio confirmation instruction, the source device generates audio confirmation information according to the audio confirmation instruction, and sends the audio confirmation information to the Bluetooth headset storage device. The preset confirmation time can be set according to user habits, or can be set during production of the Bluetooth headset storage device; wherein, the audio confirmation command is The Bluetooth headset storage device confirms whether the source device and the Bluetooth headset storage device are connected. When the connection signal of the Bluetooth headset is not detected, the connection with the source device is disconnected. After the Bluetooth connection is disconnected, the Bluetooth headset is kept searching, and when the Bluetooth headset is searched again, a signal connection is performed.
[0127] 步骤 d2, 检测是否接收到所述源设备根据所述音频确认指令返回的音频确认信 息; [0127] Step d2, detecting whether the audio confirmation information returned by the source device according to the audio confirmation instruction is received;
[0128] 在本实施例中, 蓝牙耳机收纳装置在向源设备发送音频确认指令之后, 蓝牙耳 机收纳装置检测是否接收到源设备根据音频确认指令返回的音频确认信息。 [0128] In this embodiment, after the Bluetooth headset storage device sends the audio confirmation instruction to the source device, the Bluetooth headset storage device detects whether it receives the audio confirmation information returned by the source device according to the audio confirmation instruction.
[0129] 步骤 d3, 若未接收到音频确认信息, 则向所述蓝牙耳机发送音频断开指令, 以 便于所述蓝牙耳机根据所述音频断开指令执行对应的操作。 [0129] Step d3, if the audio confirmation information is not received, send an audio disconnection instruction to the Bluetooth headset, so that the Bluetooth headset can perform a corresponding operation according to the audio disconnection instruction.
[0130] 在本实施例中, 在蓝牙耳机收纳装置检测是否接收到所述源设备根据所述音频 确认指令返回的音频确认信息之后, 若蓝牙耳机收纳装置未接收到音频确认信 息, 则蓝牙耳机收纳装置向所述蓝牙耳机发送音频断开指令, 蓝牙耳机接收音 频断开指令, 所述蓝牙耳机根据所述音频断开指令执行对应的操作, 也即是蓝 牙耳机与蓝牙耳机收纳装置断开连接。 其中, 音频断开指令为蓝牙耳机与蓝牙 耳机收纳装置断开的指令。 [0130] In this embodiment, after the Bluetooth headset storage device detects whether it receives the audio confirmation information returned by the source device according to the audio confirmation instruction, if the Bluetooth headset storage device does not receive the audio confirmation information, the Bluetooth headset The storage device sends an audio disconnect instruction to the Bluetooth headset, the Bluetooth headset receives the audio disconnect instruction, and the Bluetooth headset performs a corresponding operation according to the audio disconnect instruction, that is, the Bluetooth headset is disconnected from the Bluetooth headset storage device . Among them, the audio disconnect command is a command to disconnect the Bluetooth headset from the Bluetooth headset storage device.
[0131] 步骤 d2检测是否接收到所述源设备根据所述音频确认指令返回的音频确认信息 之后, 可以包括: [0131] Step d2, after detecting whether the audio confirmation information returned by the source device according to the audio confirmation instruction is received, may include:
[0132] 步骤 d4, 若接收到音频确认信息, 则不执行操作。 [0132] Step d4, if the audio confirmation message is received, no operation is performed.
[0133] 在本实施例中, 在蓝牙耳机收纳装置检测是否接收到所述源设备根据所述音频 确认指令返回的音频确认信息之后, 若蓝牙耳机收纳装置接收到音频确认信息 , 则蓝牙耳机收纳装置不执行操作。 [0133] In this embodiment, after the Bluetooth headset storage device detects whether it receives the audio confirmation information returned by the source device according to the audio confirmation instruction, if the Bluetooth headset storage device receives the audio confirmation information, the Bluetooth headset is stored The device does not perform operations.
[0134] 本实施例通过上述方案, 建立与源设备的第一连接; 保存于所述蓝牙耳机收纳 装置的配对信息; 基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述 蓝牙耳机的通信连接。 由此, 通过蓝牙耳机收纳装置先后与源设备和蓝牙耳机 进行连接, 实现了蓝牙蓝牙耳机收纳装置的发射和接收蓝牙信息的功能, 实现 了蓝牙耳机与不具有蓝牙功能的源设备进行数据传输的功能, 实现了增加蓝牙 耳机收纳装置的适配性, 强化蓝牙耳机的连接性能。 解决了蓝牙耳机连接不方 便, 操作不便捷的技术问题 [0134] This embodiment establishes the first connection with the source device through the above solution; the pairing information stored in the Bluetooth headset storage device; and based on the first connection and the Bluetooth connection, establishes the source device and the source device. Describe the communication connection of the Bluetooth headset. As a result, the Bluetooth headset storage device is connected to the source device and the Bluetooth headset successively, which realizes the function of transmitting and receiving Bluetooth information of the Bluetooth headset storage device, and realizes the data transmission between the Bluetooth headset and the source device that does not have the Bluetooth function. Function to increase the adaptability of the Bluetooth headset storage device and strengthen the connection performance of the Bluetooth headset. Solve the problem of bluetooth headset connection Convenient, inconvenient technical problems
[0135] 进一步地, 参照图 3, 图 3为本申请耳机配对方法第二实施例的流程示意图。 基 于上述图 2所示的实施例, 步骤 S20根据蓝牙耳机的配对信息建立与所述蓝牙耳 机的蓝牙连接, 可以包括: [0135] Further, referring to FIG. 3, FIG. 3 is a schematic flowchart of a second embodiment of a headset pairing method according to this application. Based on the embodiment shown in FIG. 2, step S20 establishing a Bluetooth connection with the Bluetooth headset according to the pairing information of the Bluetooth headset may include:
[0136] 步骤 S21, 根据保存于所述蓝牙耳机收纳装置的配对信息生成强制蓝牙配对指 令, 并向蓝牙耳机发送强制蓝牙配对指令; [0136] Step S21: Generate a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device, and send the mandatory Bluetooth pairing instruction to the Bluetooth headset;
[0137] 在本实施例中, 当蓝牙耳机收纳装置判断所述第一连接建立成功时, 蓝牙耳机 收纳装置根据保存于所述蓝牙耳机收纳装置的配对信息生成强制蓝牙配对指令 , 蓝牙耳机收纳装置向蓝牙耳机发送强制蓝牙配对指令; 其中, 强制蓝牙配对 指令是用于控制蓝牙耳机只接收蓝牙耳机收纳装置发出或只向蓝牙耳机发出音 频信息的指令。 蓝牙耳机在接收到蓝牙耳机收纳装置发送的强制蓝牙配对指令 之后, 蓝牙耳机断开与其它源设备或设备的连接, 蓝牙耳机根据强制蓝牙配对 指令生成接收配对信息。 例如, 蓝牙耳机在接收到蓝牙耳机收纳装置发送的强 制蓝牙配对指令之后, 蓝牙耳机断开与其它设备的连接, 蓝牙耳机不再接收其 它设备发送信号, 蓝牙耳机也不再向其它设备发送信号; 蓝牙耳机再根据接收 的强制蓝牙配对指令生成接收配对信息, 蓝牙耳机将接收配对信息发送至蓝牙 耳机收纳装置。 其中, 蓝牙耳机可以是 TWS耳机 (真正无线立体声耳机) 。 其中 , 蓝牙耳机收纳装置向蓝牙耳机发送强制蓝牙配对指令是通过弹簧顶针实现的 [0137] In this embodiment, when the Bluetooth headset storage device determines that the first connection is successfully established, the Bluetooth headset storage device generates a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device, and the Bluetooth headset storage device Sending a mandatory Bluetooth pairing instruction to the Bluetooth headset; where the mandatory Bluetooth pairing instruction is used to control the Bluetooth headset to only receive instructions from the Bluetooth headset storage device or to only send audio information to the Bluetooth headset. After the Bluetooth headset receives the mandatory Bluetooth pairing instruction sent by the Bluetooth headset storage device, the Bluetooth headset disconnects from other source devices or devices, and the Bluetooth headset generates and receives pairing information according to the forced Bluetooth pairing instruction. For example, after the Bluetooth headset receives a mandatory Bluetooth pairing instruction sent by the Bluetooth headset storage device, the Bluetooth headset disconnects from other devices, the Bluetooth headset no longer receives signals sent by other devices, and the Bluetooth headset no longer sends signals to other devices; The Bluetooth headset then generates receiving pairing information according to the received mandatory Bluetooth pairing instruction, and the Bluetooth headset sends the receiving pairing information to the Bluetooth headset storage device. Among them, the Bluetooth headset can be a TWS headset (True Wireless Stereo headset). Among them, the Bluetooth headset storage device sends a mandatory Bluetooth pairing instruction to the Bluetooth headset through a spring thimble.
[0138] 步骤 S22, 接收所述蓝牙耳机根据所述强制蓝牙配对指令返回的接受配对信息 [0138] Step S22: Receive pairing acceptance information returned by the Bluetooth headset according to the mandatory Bluetooth pairing instruction
[0139] 在本实施例中, 蓝牙耳机将接收配对信息发送至蓝牙耳机收纳装置之后, 蓝牙 耳机收纳装置接收蓝牙耳机根据强制蓝牙配对指令返回的接收配对信息, 蓝牙 耳机收纳装置在接收到接收配对信息之后, 蓝牙耳机收纳装置与蓝牙耳机配对 成功; 蓝牙耳机收纳装置与蓝牙耳机配对成功之后, 蓝牙耳机收纳装置与蓝牙 耳机建立 A2DP/HFP/HSP/AVRCP等指令通信。 其中, 接收配对信息为蓝牙耳机接 收蓝牙耳机收纳装置配对的信息, 可以是一个操作指令, 也可以是一个控制指 令, 也可以是特殊的代码。 [0140] 步骤 S21根据蓝牙耳机的配对信息生成强制蓝牙配对指令, 可以包括: [0139] In this embodiment, after the Bluetooth headset sends the pairing information to the Bluetooth headset storage device, the Bluetooth headset storage device receives the pairing information returned by the Bluetooth headset according to the mandatory Bluetooth pairing instruction, and the Bluetooth headset storage device receives the pairing After the information, the Bluetooth headset storage device is successfully paired with the Bluetooth headset; after the Bluetooth headset storage device is successfully paired with the Bluetooth headset, the Bluetooth headset storage device and the Bluetooth headset establish command communication such as A2DP/HFP/HSP/AVRCP. Wherein, receiving the pairing information is the information that the Bluetooth headset receives the pairing of the Bluetooth headset storage device, which may be an operation command, a control command, or a special code. [0140] Step S21 generates a mandatory Bluetooth pairing instruction according to the pairing information of the Bluetooth headset, which may include:
[0141] 步骤 el, 获取保存于所述蓝牙耳机收纳装置的蓝牙耳机地址信息和蓝牙耳机收 纳装置地址信息; [0141] Step el: Obtain the Bluetooth headset address information and the Bluetooth headset receiving device address information stored in the Bluetooth headset receiving device;
[0142] 在本实施例中, 蓝牙耳机收纳装置在接收到源设备发送的音频接口配对信息, 蓝牙耳机收纳装置根据音频接口配对信息获取保存在蓝牙耳机收纳装置本地的 蓝牙耳机的耳机地址信息以及蓝牙耳机收纳装置的蓝牙耳机收纳装置地址信息 。 其中, 耳机地址信息为蓝牙耳机特有的、 唯一代表蓝牙耳机的地址信息。 蓝 牙耳机收纳装置地址信息为蓝牙耳机收纳装置特有的、 唯一代表蓝牙耳机收纳 装置的地址信息。 蓝牙耳机在生产的时候都分配全球唯一的识别码, 也即蓝牙 耳机地址信息。 [0142] In this embodiment, the Bluetooth headset storage device receives the audio interface pairing information sent by the source device, the Bluetooth headset storage device obtains the headset address information of the Bluetooth headset stored locally in the Bluetooth headset storage device according to the audio interface pairing information, and Bluetooth headset storage device address information of the Bluetooth headset storage device. Wherein, the headset address information is unique to the Bluetooth headset and uniquely represents the address information of the Bluetooth headset. The address information of the Bluetooth headset storage device is unique to the Bluetooth headset storage device and uniquely represents the address information of the Bluetooth headset storage device. Bluetooth headsets are assigned a globally unique identification code when they are produced, that is, Bluetooth headset address information.
[0143] 步骤 e2, 根据所述蓝牙耳机地址信息和所述蓝牙耳机收纳装置地址信息生成强 制蓝牙配对指令。 [0143] Step e2: Generate a mandatory Bluetooth pairing instruction according to the Bluetooth headset address information and the Bluetooth headset storage device address information.
[0144] 在本实施例中, 蓝牙耳机收纳装置在获取到耳机地址信息和蓝牙耳机收纳装置 地址信息之后, 蓝牙耳机收纳装置根据获取到的耳机地址信息和蓝牙耳机收纳 装置地址信息生成强制蓝牙配对指令。 [0144] In this embodiment, after the Bluetooth headset storage device obtains the headset address information and the Bluetooth headset storage device address information, the Bluetooth headset storage device generates a mandatory Bluetooth pairing according to the acquired headset address information and the Bluetooth headset storage device address information instruction.
[0145] 步骤 S21根据蓝牙耳机的配对信息生成强制蓝牙配对指令, 还可以包括: [0145] Step S21 generating a mandatory Bluetooth pairing instruction according to the pairing information of the Bluetooth headset may also include:
[0146] 步骤 H, 获取保存于所述蓝牙耳机收纳装置的蓝牙耳机地址信息、 收纳装置地 址信息和配对密钥信息; [0146] Step H: Acquire Bluetooth headset address information, storage device address information, and pairing key information stored in the Bluetooth headset storage device;
[0147] 在本实施例中, 蓝牙耳机收纳装置在接收到源设备发送的音频接口配对信息, 蓝牙耳机收纳装置根据音频接口配对信息获取保存在蓝牙耳机收纳装置本地的 蓝牙耳机的耳机地址信息、 蓝牙耳机收纳装置的蓝牙耳机收纳装置地址信息和 配对密钥信息。 其中, 耳机地址信息为蓝牙耳机特有的、 唯一代表蓝牙耳机的 地址信息。 蓝牙耳机收纳装置地址信息为蓝牙耳机收纳装置特有的、 唯一代表 蓝牙耳机收纳装置的地址信息。 蓝牙耳机在生产的时候都分配全球唯一的识别 码, 也即蓝牙耳机地址信息。 其中, 配对密钥信息为蓝牙耳机收纳装置和蓝牙 耳机之间进行配对所需的秘钥信息; 配对密钥信息可以是蓝牙耳机收纳装置和 蓝牙耳机之间进行配对所需的安全密钥。 [0147] In this embodiment, the Bluetooth headset storage device receives the audio interface pairing information sent by the source device, and the Bluetooth headset storage device obtains the headset address information of the Bluetooth headset stored locally in the Bluetooth headset storage device according to the audio interface pairing information. Bluetooth headset storage device address information and pairing key information of the Bluetooth headset storage device. Among them, the headset address information is unique to the Bluetooth headset and uniquely represents the address information of the Bluetooth headset. The address information of the Bluetooth headset storage device is unique to the Bluetooth headset storage device and uniquely represents the address information of the Bluetooth headset storage device. Bluetooth headsets are assigned a globally unique identification code when they are produced, that is, Bluetooth headset address information. Wherein, the pairing key information is the secret key information required for pairing between the Bluetooth headset storage device and the Bluetooth headset; the pairing key information may be the security key required for pairing between the Bluetooth headset storage device and the Bluetooth headset.
[0148] 步骤 f2, 根据所述蓝牙耳机地址信息、 所述收纳装置地址信息和所述配对密钥 信息生成强制蓝牙配对指令。 [0148] Step f2, according to the Bluetooth headset address information, the storage device address information and the pairing key The information generates a mandatory Bluetooth pairing instruction.
[0149] 在本实施例中, 蓝牙耳机收纳装置在获取到耳机地址信息和蓝牙耳机收纳装置 地址信息之后, 蓝牙耳机收纳装置根据获取到的耳机地址信息和蓝牙耳机收纳 装置地址信息生成强制蓝牙配对指令。 [0149] In this embodiment, after the Bluetooth headset storage device obtains the headset address information and the Bluetooth headset storage device address information, the Bluetooth headset storage device generates a mandatory Bluetooth pairing according to the acquired headset address information and the Bluetooth headset storage device address information instruction.
[0150] 步骤 S21向蓝牙耳机发送强制蓝牙配对指令, 可以包括: [0150] Step S21 sending a mandatory Bluetooth pairing instruction to the Bluetooth headset may include:
[0151] 步骤 g, 根据所述蓝牙耳机地址信息向蓝牙耳机发送强制蓝牙配对指令。 [0151] Step g: Send a mandatory Bluetooth pairing instruction to the Bluetooth headset according to the Bluetooth headset address information.
[0152] 在本实施例中, 蓝牙耳机收纳装置在生成了强制蓝牙配对指令之后, 蓝牙耳机 收纳装置根据蓝牙耳机地址信息向蓝牙耳机发送强制蓝牙配对指令。 [0152] In this embodiment, after the Bluetooth headset storage device generates a mandatory Bluetooth pairing instruction, the Bluetooth headset storage device sends a mandatory Bluetooth pairing instruction to the Bluetooth headset according to the Bluetooth headset address information.
[0153] 本实施例通过上述方案, 建立与源设备的第一连接; 当所述第一连接建立成功 时, 根据保存于所述蓝牙耳机收纳装置的配对信息生成强制蓝牙配对指令, 并 向蓝牙耳机发送强制蓝牙配对指令; 接收所述蓝牙耳机根据所述强制蓝牙配对 指令返回的接受配对信息; 基于所述第一连接和所述蓝牙连接, 建立所述源设 备与所述蓝牙耳机的通信连接。 由此, 通过蓝牙耳机收纳装置先后与源设备和 蓝牙耳机进行连接, 实现了蓝牙蓝牙耳机收纳装置的发射和接收蓝牙信息的功 能, 实现了蓝牙耳机与不具有蓝牙功能的源设备进行数据传输的功能, 实现了 增加蓝牙耳机收纳装置的适配性, 强化蓝牙耳机的连接性能。 解决了蓝牙耳机 连接不方便, 操作不便捷的技术问题 [0153] This embodiment establishes a first connection with the source device through the above solution; when the first connection is successfully established, a mandatory Bluetooth pairing instruction is generated according to the pairing information stored in the Bluetooth headset storage device, and the Bluetooth pairing instruction is sent to the Bluetooth headset. The headset sends a forced Bluetooth pairing instruction; receives the pairing acceptance information returned by the Bluetooth headset according to the forced Bluetooth pairing instruction; based on the first connection and the Bluetooth connection, establishing a communication connection between the source device and the Bluetooth headset . As a result, the Bluetooth headset storage device is connected to the source device and the Bluetooth headset successively, which realizes the function of transmitting and receiving Bluetooth information of the Bluetooth headset storage device, and realizes the data transmission between the Bluetooth headset and the source device that does not have the Bluetooth function. Function to increase the adaptability of the Bluetooth headset storage device and strengthen the connection performance of the Bluetooth headset. Solve the technical problems of inconvenient connection and inconvenient operation of Bluetooth headsets
[0154] 进一步地, 参照图 4, 图 4为本申请耳机配对方法第三实施例的流程示意图。 基 于上述图 2或图 3所示的实施例, 步骤 S30基于所述第一连接和所述蓝牙连接, 建 立所述源设备与所述蓝牙耳机的通信连接之后, 还可以包括: [0154] Further, referring to FIG. 4, FIG. 4 is a schematic flowchart of a third embodiment of a headset pairing method according to this application. Based on the embodiment shown in FIG. 2 or FIG. 3, after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, step S30 may further include:
[0155] 步骤 S41, 每隔预设连接时间向所述蓝牙耳机发送连接确认指令; [0155] Step S41: Send a connection confirmation instruction to the Bluetooth headset every preset connection time;
[0156] 在本实施例中, 蓝牙耳机收纳装置在使源设备与蓝牙耳机建立通信连接之后, 蓝牙耳机收纳装置每隔预设连接时间向蓝牙耳机发送连接确认指令。 源设备在 接收到连接确认指令之后, 源设备根据连接确认指令生成连接确认信息, 源设 备向蓝牙耳机收纳装置发送连接确认信息。 其中, 预设连接时间可以是根据用 户习惯进行设置的, 也可以是蓝牙耳机收纳装置生产时设置的; 预设连接时间 用于确认蓝牙耳机收纳装置与蓝牙耳机是否连接上, 蓝牙耳机与蓝牙耳机收纳 装置的距离是都超出蓝牙耳机收纳装置的信息传送范围。 当未检测到所述源设 备的连接信号时, 断开与所述蓝牙耳机的连接。 [0156] In this embodiment, after the Bluetooth headset storage device establishes a communication connection between the source device and the Bluetooth headset, the Bluetooth headset storage device sends a connection confirmation instruction to the Bluetooth headset every preset connection time. After the source device receives the connection confirmation instruction, the source device generates connection confirmation information according to the connection confirmation instruction, and the source device sends the connection confirmation information to the Bluetooth headset storage device. Among them, the preset connection time may be set according to user habits, or may be set during production of the Bluetooth headset storage device; the preset connection time is used to confirm whether the Bluetooth headset storage device and the Bluetooth headset are connected, the Bluetooth headset and the Bluetooth headset The distance of the storage device is beyond the information transmission range of the Bluetooth headset storage device. When the source device is not detected When the connection signal is not available, disconnect the connection with the Bluetooth headset.
[0157] 步骤 S42, 检测是否接收到所述蓝牙耳机根据所述连接确认指令返回的连接确 认信息; [0157] Step S42: It is detected whether the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction is received;
[0158] 在本实施例中, 蓝牙耳机收纳装置在向源设备发送音频确认指令之后, 蓝牙耳 机收纳装置检测是否接收到所述蓝牙耳机根据所述连接确认指令返回的连接确 认信息。 [0158] In this embodiment, after the Bluetooth headset storage device sends an audio confirmation instruction to the source device, the Bluetooth headset storage device detects whether it receives the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction.
[0159] 步骤 S43, 若未接收到连接确认信息, 则断开与所述蓝牙耳机的连接。 [0159] Step S43, if the connection confirmation message is not received, disconnect the connection with the Bluetooth headset.
[0160] 在本实施例中, 在蓝牙耳机收纳装置检测是否接收到所述蓝牙耳机根据连接确 认指令返回的连接确认信息之后, 若蓝牙耳机收纳装置未接收到连接确认信息 , 则蓝牙耳机收纳装置断开与蓝牙耳机的连接。 例如, 当蓝牙耳机处于蓝牙耳 机收纳装置信息发送范围以外, 则蓝牙耳机收纳装置接收不到连接确认信息, 蓝牙耳机收纳装置断开与蓝牙耳机的连接。 [0160] In this embodiment, after the Bluetooth headset storage device detects whether it receives the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction, if the Bluetooth headset storage device does not receive the connection confirmation information, the Bluetooth headset storage device Disconnect the Bluetooth headset. For example, when the Bluetooth headset is outside the information sending range of the Bluetooth headset storage device, the Bluetooth headset storage device cannot receive the connection confirmation message, and the Bluetooth headset storage device disconnects the connection with the Bluetooth headset.
[0161] 步骤 S43若未接收到连接确认信息, 则断开与所述蓝牙耳机的连接之后, 可以 包括: [0161] Step S43, if the connection confirmation message is not received, after disconnecting from the Bluetooth headset, it may include:
[0162] 步骤 h, 当接收到所述蓝牙耳机发送的复连指令时, 根据所述复连指令向所述 蓝牙耳机发送复连信息。 [0162] Step h: When receiving a reconnection instruction sent by the Bluetooth headset, send reconnection information to the Bluetooth headset according to the reconnection instruction.
[0163] 在本实施例中, 当接收到所述蓝牙耳机发送的复连指令时, 根据所述复连指令 向所述蓝牙耳机发送复连信息, 蓝牙耳机接收复连信息, 蓝牙耳机根据复连信 息与蓝牙耳机收纳装置重新连接。 例如, 当蓝牙耳机从蓝牙耳机收纳装置信息 发送范围以外移动到蓝牙耳机收纳装置信息发送范围以内, 蓝牙耳机会向蓝牙 耳机收纳装置发送复连指令, 蓝牙耳机收纳装置在接收到蓝牙耳机发送的复连 指令之后, 蓝牙耳机收纳装置根据复连指令向蓝牙耳机发送复连信息, 蓝牙耳 机接收复连信息, 蓝牙耳机根据复连信息与蓝牙耳机收纳装置重新连接。 [0163] In this embodiment, when a reconnection instruction sent by the Bluetooth headset is received, the reconnection information is sent to the Bluetooth headset according to the reconnection instruction, the Bluetooth headset receives the reconnection information, and the Bluetooth headset is based on the reconnection instruction. Connect the message and reconnect the Bluetooth headset storage device. For example, when the Bluetooth headset moves from outside the information sending range of the Bluetooth headset storage device to within the information sending range of the Bluetooth headset storage device, the Bluetooth headset will send a reconnection instruction to the Bluetooth headset storage device, and the Bluetooth headset storage device will receive the reply sent by the Bluetooth headset. After the connection instruction, the Bluetooth headset storage device sends reconnection information to the Bluetooth headset according to the reconnection instruction, the Bluetooth headset receives the reconnection information, and the Bluetooth headset reconnects with the Bluetooth headset storage device according to the reconnection information.
[0164] 本实施例通过上述方案, 建立与源设备的第一连接; 当所述第一连接建立成功 时, 根据蓝牙耳机的配对信息建立与所述蓝牙耳机的蓝牙连接, 其中, 所述配 对信息保存于所述蓝牙耳机收纳装置; 基于所述第一连接和所述蓝牙连接, 建 立所述源设备与所述蓝牙耳机的通信连接; 每隔预设连接时间向所述蓝牙耳机 发送连接确认指令; 检测是否接收到所述蓝牙耳机根据所述连接确认指令返回 的连接确认信息; 若未接收到连接确认信息, 则断开与所述蓝牙耳机的连接。 由此, 通过蓝牙耳机收纳装置先后与源设备和蓝牙耳机进行连接, 实现了蓝牙 蓝牙耳机收纳装置的发射和接收蓝牙信息的功能, 实现了蓝牙耳机与不具有蓝 牙功能的源设备进行数据传输的功能, 实现了增加蓝牙耳机收纳装置的适配性 , 强化蓝牙耳机的连接性能。 [0164] This embodiment establishes a first connection with the source device through the above solution; when the first connection is successfully established, establishes a Bluetooth connection with the Bluetooth headset according to the pairing information of the Bluetooth headset, where the pairing Information is stored in the Bluetooth headset storage device; based on the first connection and the Bluetooth connection, establishing a communication connection between the source device and the Bluetooth headset; sending a connection confirmation to the Bluetooth headset every preset connection time Instruction; detect whether the Bluetooth headset is received and return according to the connection confirmation instruction If the connection confirmation message is not received, the connection with the Bluetooth headset is disconnected. As a result, the Bluetooth headset storage device is connected to the source device and the Bluetooth headset successively, which realizes the function of transmitting and receiving Bluetooth information of the Bluetooth headset storage device, and realizes the data transmission between the Bluetooth headset and the source device that does not have the Bluetooth function. Function to increase the adaptability of the Bluetooth headset storage device and strengthen the connection performance of the Bluetooth headset.
[0165] 本申请还提供一种耳机控制方法。 [0165] This application also provides a headset control method.
[0166] 参照图 5, 图 5为本申请耳机控制方法第一实施例的流程示意图。 基于上述图 2 、 图 3或图 4所示的实施例, 步骤 S30基于所述第一连接和所述蓝牙连接, 建立所 述源设备与所述蓝牙耳机的通信连接之后, 还可以包括: [0166] Referring to FIG. 5, FIG. 5 is a schematic flowchart of a first embodiment of a headset control method of this application. Based on the embodiment shown in FIG. 2, FIG. 3, or FIG. 4, after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, step S30 may further include:
[0167] 步骤 S51, 接收所述源设备发送的音量调节指令; [0167] Step S51: Receive a volume adjustment instruction sent by the source device;
[0168] 在本实施例中, 蓝牙耳机收纳装置在接收到蓝牙耳机发送的接收配对信息之后 , 或者蓝牙耳机收纳装置将蓝牙耳机收纳装置接收配对信息发送至源设备之后 , 蓝牙耳机收纳装置结合搜源设备发送的音量调整指令; 其中, 音量调节指令 为源设备调节蓝牙耳机输出音量或者拾取音频的指令。 [0168] In this embodiment, after the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset, or after the Bluetooth headset storage device sends the pairing information received by the Bluetooth headset storage device to the source device, the Bluetooth headset storage device combines the search A volume adjustment instruction sent by the source device; where the volume adjustment instruction is an instruction for the source device to adjust the output volume of the Bluetooth headset or pick up audio.
[0169] 步骤 S52, 将所述音量调节指令发送至所述蓝牙耳机, 以便于所述蓝牙耳机根 据所述音量调节指令调节蓝牙耳机输出或拾取音量。 [0169] Step S52: Send the volume adjustment instruction to the Bluetooth headset, so that the Bluetooth headset adjusts the output or pickup volume of the Bluetooth headset according to the volume adjustment instruction.
[0170] 在本实施例中, 蓝牙耳机收纳装置在接收到音量调节指令之后, 蓝牙耳机收纳 装置将音量调节指令发送至蓝牙耳机, 蓝牙耳机接收蓝牙耳机收纳装置发送的 音量调节指令, 蓝牙耳机根据音量调节指令调节蓝牙耳机的输出音量, 或者蓝 牙耳机根据音量调节指令调节蓝牙耳机上的麦克风的拾取音量。 [0170] In this embodiment, after the Bluetooth headset storage device receives the volume adjustment instruction, the Bluetooth headset storage device sends the volume adjustment instruction to the Bluetooth headset, and the Bluetooth headset receives the volume adjustment instruction sent by the Bluetooth headset storage device. The volume adjustment command adjusts the output volume of the Bluetooth headset, or the Bluetooth headset adjusts the pickup volume of the microphone on the Bluetooth headset according to the volume adjustment command.
[0171] 步骤 S30基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳机 的通信连接之后, 还可以包括: [0171] Step S30 may further include after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection:
[0172] 步骤 jl, 接收所述蓝牙耳机发送的程序控制指令; [0172] Step j1, receiving a program control instruction sent by the Bluetooth headset;
[0173] 在本实施例中, 蓝牙耳机收纳装置在接收到蓝牙耳机发送的接收配对信息之后 , 蓝牙耳机收纳装置接收蓝牙耳机发送的程序控制指令; 其中, 程序控制指令 为蓝牙耳机控制源设备上程序运行的指令, 程序控制指令可以是控制源设备上 程序运行下一曲, 程序控制指令也可以是控制源设备上程序运行上一曲, 程序 控制指令也可以是控制源设备上程序暂停。 [0174] 步骤 j2, 将所述程序控制指令发送至所述源设备, 以便于所述源设备根据所述 程序控制指令执行对应的操作。 [0173] In this embodiment, after the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset, the Bluetooth headset storage device receives the program control instruction sent by the Bluetooth headset; where the program control instruction is on the Bluetooth headset control source device The program running instruction, the program control instruction can be to control the program on the source device to run the next song, the program control instruction can also be to control the program on the source device to run the previous song, the program control instruction can also be to control the program on the source device to pause. [0174] Step j2: Send the program control instruction to the source device, so that the source device performs a corresponding operation according to the program control instruction.
[0175] 在本实施例中, 蓝牙耳机收纳装置在接收到蓝牙耳机发送的程序控制指令之后 , 蓝牙耳机收纳装置将程序控制指令发送至所述源设备; 源设备接收蓝牙耳机 收纳装置发送的程序控制指令; 源设备根据所述程序控制指令执行对应的操作 。 其中, 对应的操作可以是播放下一曲; 对应的操作还可以是播放上一曲; 对 应的操作还可以是暂停软件播放; 对应的操作还可以是打开源设备上的播放软 件播放音乐; 对应的操作还可以是打开源设备上的通话软件进行通话。 通过蓝 牙耳机发送 AVRCP指令给蓝牙耳机收纳装置, 蓝牙耳机收纳装置采用 USB音频控 制指令回传给 USB Audio源设备, 实现耳机的按钮控制功能, 如: 播放 /暂停, 启动语音命令, 下一曲, 提高音量、 降低音量等操作。 [0175] In this embodiment, after the Bluetooth headset storage device receives the program control instruction sent by the Bluetooth headset, the Bluetooth headset storage device sends the program control instruction to the source device; the source device receives the program sent by the Bluetooth headset storage device Control instruction; The source device executes the corresponding operation according to the program control instruction. Among them, the corresponding operation can be to play the next song; the corresponding operation can also be to play the previous song; the corresponding operation can also be to pause software playback; the corresponding operation can also be to open the playback software on the source device to play music; corresponding The operation can also be to open the call software on the source device to make a call. The AVRCP command is sent to the Bluetooth headset storage device through the Bluetooth headset, and the Bluetooth headset storage device uses USB audio control commands to return to the USB Audio source device to realize the button control functions of the headset, such as: play/pause, start voice command, next song, Increase the volume, decrease the volume, and so on.
[0176] 步骤 S30基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳机 的通信连接之后, 还可以包括: [0176] Step S30, based on the first connection and the Bluetooth connection, after establishing a communication connection between the source device and the Bluetooth headset, may further include:
[0177] 步骤 kl, 接收所述蓝牙耳机发送的耳机语音信息; [0177] Step k1, receiving headset voice information sent by the Bluetooth headset;
[0178] 在本实施例中, 蓝牙耳机收纳装置在接收到蓝牙耳机发送的接收配对信息之后 , 也即蓝牙耳机收纳装置与蓝牙耳机配对成功之后, 蓝牙耳机收纳装置接收蓝 牙耳机发送的耳机语音信息。 其中耳机语音信息为蓝牙耳机通过设置于蓝牙耳 机上的麦克风拾取的。 其中, 耳机语音信息可以是在蓝牙耳机开启通话环境降 噪、 耳机主动降噪或环境音监听等功能之后, 通过设置于蓝牙耳机上的麦克风 拾取的。 [0178] In this embodiment, after the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset, that is, after the Bluetooth headset storage device is successfully paired with the Bluetooth headset, the Bluetooth headset storage device receives the headset voice information sent by the Bluetooth headset . The headset voice information is picked up by the Bluetooth headset through the microphone set on the Bluetooth headset. Among them, the earphone voice information can be picked up by the microphone set on the Bluetooth earphone after the Bluetooth earphone has enabled functions such as noise reduction in the call environment, active earphone noise reduction, or environmental sound monitoring.
[0179] 步骤 k2, 将所述耳机语音信息发送至所述源设备。 [0179] Step k2: Send the headset voice information to the source device.
[0180] 在本实施例中, 蓝牙耳机收纳装置在接收到耳机语音信息之后, 蓝牙耳机收纳 装置将耳机语音信息发送至源设备, 源设备接收到耳机语音信息之后, 源设备 对耳机语音信息进行处理, 源设备将处理后的耳机语音信息通过正在运行的程 序发送至其它源设备。 [0180] In this embodiment, after the Bluetooth headset storage device receives the headset voice information, the Bluetooth headset storage device sends the headset voice information to the source device. After the source device receives the headset voice information, the source device performs the headset voice information Processing: The source device sends the processed earphone voice information to other source devices through the running program.
[0181] 步骤 S30基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳机 的通信连接之后, 还可以包括: [0181] Step S30, based on the first connection and the Bluetooth connection, after establishing a communication connection between the source device and the Bluetooth headset, may further include:
[0182] 步骤 ml, 接收所述源设备发送的耳机播放信息; [0183] 在本实施例中, 蓝牙耳机收纳装置在接收到蓝牙耳机发送的接收配对信息之后 (也即蓝牙耳机收纳装置与蓝牙耳机配对成功之后) , 或者蓝牙耳机收纳装置 与源设备配对成功之后, 蓝牙耳机收纳装置接收源设备发送的耳机播放信息。 其中, 耳机播放信息为源设备上的程序播放的音频信息。 [0182] Step ml, receiving headset playback information sent by the source device; [0183] In this embodiment, after the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset (that is, after the Bluetooth headset storage device is successfully paired with the Bluetooth headset), or after the Bluetooth headset storage device is successfully paired with the source device , The Bluetooth headset storage device receives the headset playback information sent by the source device. Wherein, the earphone playback information is audio information played by the program on the source device.
[0184] 步骤 m2, 将所述耳机播放信息发送至所述蓝牙耳机。 [0184] Step m2: Send the headset playback information to the Bluetooth headset.
[0185] 在本实施例中, 蓝牙耳机收纳装置在接收到耳机播放信息之后, 蓝牙耳机收纳 装置将耳机播放信息发送至蓝牙耳机, 蓝牙耳机接收到耳机播放信息之后, 蓝 牙耳机对耳机播放信息进行播放。 [0185] In this embodiment, after the Bluetooth headset storage device receives the headset playback information, the Bluetooth headset storage device sends the headset playback information to the Bluetooth headset. After the Bluetooth headset receives the headset playback information, the Bluetooth headset performs the headset playback information. Play.
[0186] 步骤 S30基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳机 的通信连接之后, 还可以包括: [0186] Step S30, after establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, may further include:
[0187] 步骤 nl, 接收所述蓝牙耳机发送的耳机语音控制信息; [0187] Step n1, receiving headset voice control information sent by the Bluetooth headset;
[0188] 在本实施例中, 蓝牙耳机收纳装置在接收到蓝牙耳机发送的接收配对信息之后 (也即蓝牙耳机收纳装置与蓝牙耳机配对成功之后) , 或者蓝牙耳机收纳装置 与源设备配对成功之后, 蓝牙耳机收纳装置接收蓝牙耳机发送的耳机语音控制 信息。 其中, 耳机语音控制信息为用户通过蓝牙耳机麦克风发出的语音控制, 以便于源设备在接收到耳机语音控制信息之后, 执行对应的控制程序。 [0188] In this embodiment, after the Bluetooth headset storage device receives the pairing information sent by the Bluetooth headset (that is, after the Bluetooth headset storage device is successfully paired with the Bluetooth headset), or after the Bluetooth headset storage device is successfully paired with the source device , The Bluetooth headset storage device receives the headset voice control information sent by the Bluetooth headset. Wherein, the headset voice control information is the voice control sent by the user through the Bluetooth headset microphone, so that the source device executes the corresponding control program after receiving the headset voice control information.
[0189] 步骤 n2, 将所述耳机语音控制信息发送至所述源设备。 [0189] Step n2: Send the headset voice control information to the source device.
[0190] 在本实施例中, 蓝牙耳机收纳装置在接收到耳机语音控制信息之后, 蓝牙耳机 收纳装置将耳机语音控制信息发送至源设备, 源设备对耳机语音控制信息进行 读取, 得到耳机语音控制指令, 源设备执行耳机语音控制指令。 [0190] In this embodiment, after the Bluetooth headset storage device receives the headset voice control information, the Bluetooth headset storage device sends the headset voice control information to the source device, and the source device reads the headset voice control information to obtain the headset voice Control instructions, the source device executes the headset voice control instructions.
[0191] 本实施例通过上述方案, 建立与源设备的第一连接; 当所述第一连接建立成功 时, 根据蓝牙耳机的配对信息建立与所述蓝牙耳机的蓝牙连接, 其中, 所述配 对信息保存于所述蓝牙耳机收纳装置; 基于所述第一连接和所述蓝牙连接, 建 立所述源设备与所述蓝牙耳机的通信连接; 接收所述源设备发送的音量调节指 令; 将所述音量调节指令发送至所述蓝牙耳机, 以便于所述蓝牙耳机根据所述 音量调节指令调节蓝牙耳机输出或拾取音量。 由此, 通过蓝牙耳机收纳装置先 后与源设备和蓝牙耳机进行连接, 实现了蓝牙蓝牙耳机收纳装置的发射和接收 蓝牙信息的功能, 实现了蓝牙耳机与不具有蓝牙功能的源设备进行数据传输的 功能, 实现了增加蓝牙耳机收纳装置的适配性, 强化蓝牙耳机的连接性能。 [0191] This embodiment establishes a first connection with the source device through the above solution; when the first connection is successfully established, establishes a Bluetooth connection with the Bluetooth headset according to the pairing information of the Bluetooth headset, where the pairing Information is stored in the Bluetooth headset storage device; based on the first connection and the Bluetooth connection, establishing a communication connection between the source device and the Bluetooth headset; receiving a volume adjustment instruction sent by the source device; The volume adjustment instruction is sent to the Bluetooth headset, so that the Bluetooth headset adjusts the output or pickup volume of the Bluetooth headset according to the volume adjustment instruction. As a result, the Bluetooth headset storage device is connected to the source device and the Bluetooth headset successively, which realizes the function of transmitting and receiving Bluetooth information of the Bluetooth headset storage device, and realizes the data transmission between the Bluetooth headset and the source device that does not have the Bluetooth function. Function to increase the adaptability of the Bluetooth headset storage device and strengthen the connection performance of the Bluetooth headset.
[0192] 本申请还提供一种蓝牙耳机收纳装置。 [0192] This application also provides a Bluetooth headset storage device.
[0193] 本申请蓝牙耳机收纳装置包括: 存储器、 处理器及存储在所述存储器上并可在 所述处理器上运行的耳机配对程序, 所述耳机配对程序被所述处理器执行时实 现如上所述的耳机配对方法的步骤。 所述蓝牙耳机收纳装置还包括: [0193] The Bluetooth headset storage device of the present application includes: a memory, a processor, and a headset pairing program that is stored on the memory and can run on the processor, and the headset pairing program is executed by the processor to achieve the above The steps of the headset pairing method. The Bluetooth headset storage device further includes:
[0194] 充电模块, 在与所述源设备建立第一连接之后, 对所述蓝牙耳机收纳装置进行 充电。 [0194] The charging module, after establishing the first connection with the source device, charges the Bluetooth headset storage device.
[0195] 其中, 在所述处理器上运行的耳机配对程序被执行时所实现的方法可参照本申 请耳机配对方法各个实施例, 此处不再赘述。 [0195] The method implemented when the earphone pairing program running on the processor is executed can refer to the various embodiments of the earphone pairing method of this application, which will not be repeated here.
[0196] 本申请还提供一种可读存储介质。 [0196] This application also provides a readable storage medium.
[0197] 本申请可读存储介质上存储有耳机配对程序, 所述耳机配对程序被处理器执行 时实现如上所述的耳机配对方法的步骤。 [0197] A headset pairing program is stored on the readable storage medium of the present application, and when the headset pairing program is executed by the processor, the steps of the headset pairing method described above are implemented.
[0198] 其中, 在所述处理器上运行的耳机配对程序被执行时所实现的方法可参照本申 请耳机配对方法各个实施例, 此处不再赘述。 [0198] The method implemented when the earphone pairing program running on the processor is executed can refer to the various embodiments of the earphone pairing method of this application, which will not be repeated here.

Claims

权利 要 求 书 Claims
[权利要求 1] 一种耳机配对方法, 其中, 应用于蓝牙耳机收纳装置, 所述耳机配对 方法包括如下步骤: 建立与源设备的第一连接; 当所述第一连接建立成功时, 根据保存于所述蓝牙耳机收纳装置的配 对信息建立与所述蓝牙耳机的蓝牙连接; 基于所述第一连接和所述蓝牙连接, 建立所述源设备与所述蓝牙耳机 的通信连接。 [Claim 1] A headset pairing method, wherein, applied to a Bluetooth headset storage device, the headset pairing method includes the following steps: establishing a first connection with the source device; when the first connection is successfully established, according to the saved Establishing a Bluetooth connection with the Bluetooth headset based on the pairing information of the Bluetooth headset storage device; and establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection.
[权利要求 2] 如权利要求 1所述的耳机配对方法, 其中, 所述建立与源设备的第一 连接的步骤, 包括: 接收源设备发送的音频接口配对信息。 [Claim 2] The headset pairing method of claim 1, wherein the step of establishing a first connection with the source device comprises: receiving audio interface pairing information sent by the source device.
[权利要求 3] 如权利要求 2所述的耳机配对方法, 其中, 所述根据保存于所述蓝牙 耳机收纳装置的配对信息建立与所述蓝牙耳机的蓝牙连接步骤, 包括 根据保存于所述蓝牙耳机收纳装置的配对信息生成强制蓝牙配对指令 , 并向蓝牙耳机发送强制蓝牙配对指令; 接收所述蓝牙耳机根据所述强制蓝牙配对指令返回的接受配对信息。 [Claim 3] The headset pairing method of claim 2, wherein the step of establishing a Bluetooth connection with the Bluetooth headset according to the pairing information stored in the Bluetooth headset storage device includes The pairing information of the headset storage device generates a mandatory Bluetooth pairing instruction, and sends a mandatory Bluetooth pairing instruction to the Bluetooth headset; receiving the pairing acceptance information returned by the Bluetooth headset according to the forced Bluetooth pairing instruction.
[权利要求 4] 如权利要求 3所述的耳机配对方法, 其中, 所述根据保存于所述蓝牙 耳机收纳装置的配对信息生成强制蓝牙配对指令的步骤, 包括: 获取保存于所述蓝牙耳机收纳装置的蓝牙耳机地址信息和收纳装置地 址信息; 根据所述蓝牙耳机地址信息和所述收纳装置地址信息生成强制蓝牙配 对指令。 [Claim 4] The headset pairing method of claim 3, wherein the step of generating a mandatory Bluetooth pairing instruction based on the pairing information stored in the Bluetooth headset storage device includes: obtaining Bluetooth headset address information and storage device address information of the device; generating a mandatory Bluetooth pairing instruction according to the Bluetooth headset address information and the storage device address information.
[权利要求 5] 如权利要求 3所述的耳机配对方法, 其中, 所述根据保存于所述蓝牙 耳机收纳装置的配对信息生成强制蓝牙配对指令的步骤, 还包括: 获取保存于所述蓝牙耳机收纳装置的蓝牙耳机地址信息、 收纳装置地 址信息和配对密钥信息; 根据所述蓝牙耳机地址信息、 所述收纳装置地址信息和所述配对密钥 信息生成强制蓝牙配对指令。 [Claim 5] The headset pairing method of claim 3, wherein the step of generating a mandatory Bluetooth pairing instruction according to the pairing information stored in the Bluetooth headset storage device further comprises: obtaining Bluetooth headset address information of the storage device, storage device address information, and pairing key information; according to the Bluetooth headset address information, the storage device address information, and the pairing key The information generates a mandatory Bluetooth pairing instruction.
[权利要求 6] 如权利要求 2所述的耳机配对方法, 其中, 所述接收源设备发送的音 频接口配对信息的步骤之前, 包括: 向所述源设备发送音频配对信息; 所述接收源设备发送的音频接口配对信息的步骤, 包括: 接收所述源设备根据所述音频配对信息返回的音频接口配对信息。 [Claim 6] The headset pairing method of claim 2, wherein, before the step of receiving the audio interface pairing information sent by the source device, the step includes: sending audio pairing information to the source device; the receiving source device The step of sending audio interface pairing information includes: receiving the audio interface pairing information returned by the source device according to the audio pairing information.
[权利要求 7] 如权利要求 2或 6所述的耳机配对方法, 其中, 所述第一连接为 USB连 接。 [Claim 7] The headset pairing method of claim 2 or 6, wherein the first connection is a USB connection.
[权利要求 8] 如权利要求 1至 6中任一项所述的耳机配对方法, 其中, 当未检测到所 述源设备的连接信号时, 断开与所述蓝牙耳机的连接。 [Claim 8] The headset pairing method according to any one of claims 1 to 6, wherein when the connection signal of the source device is not detected, the connection with the Bluetooth headset is disconnected.
[权利要求 9] 如权利要求 8所述的耳机配对方法, 其中, 所述基于所述第一连接和 所述蓝牙连接, 建立所述源设备与所述蓝牙耳机的通信连接的步骤之 后, 还包括: 每隔预设确认时间向所述源设备发送音频确认指令; 检测是否接收到所述源设备根据所述音频确认指令返回的音频确认信 息; 若未接收到音频确认信息, 则向所述蓝牙耳机发送音频断开指令, 以 便于所述蓝牙耳机根据所述音频断开指令执行对应操作。 [Claim 9] The headset pairing method of claim 8, wherein, after the step of establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, further It includes: sending an audio confirmation instruction to the source device every preset confirmation time; detecting whether the audio confirmation information returned by the source device according to the audio confirmation instruction is received; if the audio confirmation information is not received, sending an audio confirmation message to the source device The Bluetooth headset sends an audio disconnect instruction, so that the Bluetooth headset performs a corresponding operation according to the audio disconnect instruction.
[权利要求 10] 如权利要求 1至 6中任一项所述的耳机配对方法, 其中, 当未检测到所 述蓝牙耳机的连接信号时, 断开与所述源设备的连接。 [Claim 10] The headset pairing method according to any one of claims 1 to 6, wherein when the connection signal of the Bluetooth headset is not detected, the connection with the source device is disconnected.
[权利要求 11] 如权利要求 10所述的耳机配对方法, 其中, 所述基于所述第一连接和 所述蓝牙连接, 建立所述源设备与所述蓝牙耳机的通信连接的步骤之 后, 还包括: 每隔预设连接时间向所述蓝牙耳机发送连接确认指令; 检测是否接收到所述蓝牙耳机根据所述连接确认指令返回的连接确认 信息; 若未接收到连接确认信息, 则断开与所述蓝牙耳机的连接。 [Claim 11] The headset pairing method of claim 10, wherein, after the step of establishing a communication connection between the source device and the Bluetooth headset based on the first connection and the Bluetooth connection, further Including: sending a connection confirmation instruction to the Bluetooth headset every preset connection time; detecting whether the connection confirmation information returned by the Bluetooth headset according to the connection confirmation instruction is received; if the connection confirmation information is not received, disconnecting and The connection of the Bluetooth headset.
[权利要求 12] 如权利要求 11所述的耳机配对方法, 其中, 在断开所述蓝牙连接后, 保持搜寻所述蓝牙耳机, 当重新搜寻到所述蓝牙耳机后, 进行信号连 接。 [Claim 12] The headset pairing method of claim 11, wherein, after disconnecting the Bluetooth connection, Keep searching for the bluetooth headset, and when the bluetooth headset is found again, a signal connection is made.
[权利要求 13] 如权利要求 1所述的耳机配对方法, 其中, 还包括: 在蓝牙耳机处于 收纳状态下, 通过所述第一连接为所述蓝牙耳机充电。 [Claim 13] The headset pairing method of claim 1, further comprising: charging the Bluetooth headset through the first connection when the Bluetooth headset is in a storage state.
[权利要求 14] 一种耳机控制方法, 其中, 所述耳机控制方法包括如权利要求 1至 13 中任一项所述耳机配对方法的步骤, 所述耳机控制方法, 还包括: 接收所述源设备发送的音量调节指令; 将所述音量调节指令发送至所述蓝牙耳机, 以便于所述蓝牙耳机根据 所述音量调节指令调节蓝牙耳机输出或拾取音量。 [Claim 14] An earphone control method, wherein the earphone control method includes the steps of the earphone pairing method according to any one of claims 1 to 13, and the earphone control method further includes: receiving the source A volume adjustment instruction sent by a device; sending the volume adjustment instruction to the Bluetooth headset, so that the Bluetooth headset adjusts the output or pickup volume of the Bluetooth headset according to the volume adjustment instruction.
[权利要求 15] 如权利要求 14所述的耳机控制方法, 其中, 还包括: 接收所述蓝牙耳机发送的程序控制指令; 将所述程序控制指令发送至所述源设备, 以便于所述源设备根据所述 程序控制指令执行对应的操作。 [Claim 15] The headset control method of claim 14, further comprising: receiving a program control instruction sent by the Bluetooth headset; sending the program control instruction to the source device to facilitate the source The device executes the corresponding operation according to the program control instruction.
[权利要求 16] 如权利要求 14所述的耳机控制方法, 其中, 还包括: 接收所述蓝牙耳机发送的耳机语音信息; 将所述耳机语音信息发送至所述源设备。 [Claim 16] The headset control method of claim 14, further comprising: receiving headset voice information sent by the Bluetooth headset; sending the headset voice information to the source device.
[权利要求 17] 如权利要求 14所述的耳机控制方法, 其中, 还包括: 接收所述源设备发送的语音播放信息; 将所述耳机播放信息发送至所述蓝牙耳机。 [Claim 17] The headset control method of claim 14, further comprising: receiving voice playback information sent by the source device; and sending the headset playback information to the Bluetooth headset.
[权利要求 18] 一种蓝牙耳机收纳装置, 其中, 所述蓝牙耳机收纳装置包括: 存储器 、 处理器及存储在所述存储器上并在所述处理器上运行的耳机配对程 序, 所述耳机配对程序被所述处理器执行时实现如权利要求 1至 13中 任一项所述的耳机配对方法的步骤。 [Claim 18] A Bluetooth headset storage device, wherein the Bluetooth headset storage device comprises: a memory, a processor, and a headset pairing program stored in the memory and running on the processor, and the headset is paired When the program is executed by the processor, the steps of the headset pairing method according to any one of claims 1 to 13 are implemented.
[权利要求 19] 如权利要求 18所述的蓝牙耳机收纳装置, 其中, 还包括: 充电模块, 在与所述源设备建立第一连接之后, 对所述蓝牙耳机收纳 装置进行充电。 [Claim 19] The Bluetooth headset storage device of claim 18, further comprising: a charging module, which charges the Bluetooth headset storage device after establishing a first connection with the source device.
[权利要求 20] 一种介质, 其中, 所述介质上存储有耳机配对程序, 所述耳机配对程 序被处理器执行时实现如权利要求 1至 13中任一项所述的耳机配对方 法的步骤。 [Claim 20] A medium, wherein a headset pairing program is stored on the medium, and the headset pairing program is executed by a processor to implement the headset pairing party according to any one of claims 1 to 13 Steps of the law.
PCT/CN2020/092138 2020-05-25 2020-05-25 Headset pairing method, headset control method, bluetooth headset storage apparatus, and medium WO2021237415A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/092138 WO2021237415A1 (en) 2020-05-25 2020-05-25 Headset pairing method, headset control method, bluetooth headset storage apparatus, and medium
CN202080000950.8A CN111971985A (en) 2020-05-25 2020-05-25 Earphone pairing method, earphone control method, Bluetooth earphone accommodating device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/092138 WO2021237415A1 (en) 2020-05-25 2020-05-25 Headset pairing method, headset control method, bluetooth headset storage apparatus, and medium

Publications (1)

Publication Number Publication Date
WO2021237415A1 true WO2021237415A1 (en) 2021-12-02

Family

ID=73386896

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/092138 WO2021237415A1 (en) 2020-05-25 2020-05-25 Headset pairing method, headset control method, bluetooth headset storage apparatus, and medium

Country Status (2)

Country Link
CN (1) CN111971985A (en)
WO (1) WO2021237415A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348494A (en) * 2021-05-12 2022-11-15 Oppo广东移动通信有限公司 Method and device for configuring earphones in earphone storage box and computer equipment
CN113840270A (en) * 2021-08-16 2021-12-24 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for establishing Bluetooth connection
CN113709737B (en) * 2021-08-24 2024-01-26 深圳艾创力科技有限公司 Voice communication method and device based on TWS Bluetooth headset

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201298860Y (en) * 2008-12-05 2009-08-26 英华达(西安)通信科技有限公司 A mobile communication equipment with Bluetooth earphone
CN207926859U (en) * 2018-01-30 2018-09-28 东莞市和乐电子有限公司 A kind of bluetooth headset of solar recharging
CN108882082A (en) * 2018-05-18 2018-11-23 深圳市沃特沃德股份有限公司 The method and storage box of instruction are sent to bluetooth headset
CN208158826U (en) * 2018-04-11 2018-11-27 深圳市沁音创新科技有限公司 To the charging storage box of ear bluetooth headset
CN109121033A (en) * 2018-07-23 2019-01-01 歌尔股份有限公司 Charging bluetooth earphone box and charging case assembly
US20190230728A1 (en) * 2018-01-19 2019-07-25 Primax Electronics Ltd. Wireless communication device and communication pairing method thereof
CN110224459A (en) * 2019-06-06 2019-09-10 深圳市思远半导体有限公司 Charging bluetooth earphone communication means, relevant device and system
CN110505552A (en) * 2019-09-02 2019-11-26 联想(北京)有限公司 Electronic equipment and wireless charging method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201298860Y (en) * 2008-12-05 2009-08-26 英华达(西安)通信科技有限公司 A mobile communication equipment with Bluetooth earphone
US20190230728A1 (en) * 2018-01-19 2019-07-25 Primax Electronics Ltd. Wireless communication device and communication pairing method thereof
CN207926859U (en) * 2018-01-30 2018-09-28 东莞市和乐电子有限公司 A kind of bluetooth headset of solar recharging
CN208158826U (en) * 2018-04-11 2018-11-27 深圳市沁音创新科技有限公司 To the charging storage box of ear bluetooth headset
CN108882082A (en) * 2018-05-18 2018-11-23 深圳市沃特沃德股份有限公司 The method and storage box of instruction are sent to bluetooth headset
CN109121033A (en) * 2018-07-23 2019-01-01 歌尔股份有限公司 Charging bluetooth earphone box and charging case assembly
CN110224459A (en) * 2019-06-06 2019-09-10 深圳市思远半导体有限公司 Charging bluetooth earphone communication means, relevant device and system
CN110505552A (en) * 2019-09-02 2019-11-26 联想(北京)有限公司 Electronic equipment and wireless charging method

Also Published As

Publication number Publication date
CN111971985A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
US8078787B2 (en) Communication between a host device and an accessory via an intermediate device
WO2021237415A1 (en) Headset pairing method, headset control method, bluetooth headset storage apparatus, and medium
CN108684029B (en) Bluetooth pairing connection method and system, Bluetooth device and terminal
CN108399917B (en) Speech processing method, apparatus and computer readable storage medium
CN113395685B (en) Bluetooth communication system and wireless communication system
US20130325479A1 (en) Smart dock for activating a voice recognition mode of a portable electronic device
WO2021027411A1 (en) Transmitting end device, receiving end device and wireless charging method
CN111083755B (en) Equipment switching method and related equipment
KR102335903B1 (en) Method and apparatus for communication between electronic devices
CN113660650B (en) Method and related device for device reconnection
WO2021147718A1 (en) Audio transmission method and electronic device
CN109842872B (en) Working mode control method, Bluetooth headset, terminal and computer storage medium
CN114450971A (en) External audio electronic device, electronic device and method of managing communication link
WO2017215511A1 (en) Control method of scene sound effect and related products
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
WO2021129771A1 (en) Application sharing method, first electronic device, and computer-readable storage medium
WO2020173343A1 (en) Terminal and wireless charging control method
WO2013030736A1 (en) Docking system with automatic music playback via bluetooth
CN109788114B (en) Call processing method and terminal
KR101562272B1 (en) Mobile terminal capable of conncting an audio device using short-range communication and operation control method thereof
KR102639249B1 (en) Method for sharing channel information and electronic device therefor
CN112925501A (en) Audio playing control method, device and system and computer readable storage medium
CN113810887A (en) Bluetooth protocol connection method, device, storage medium and related equipment
KR20190095784A (en) Electronic device for connecting external devices based on connection information and operating method thereof
JP2020017908A (en) Information processing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20937262

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20937262

Country of ref document: EP

Kind code of ref document: A1