CN113709737B - Voice communication method and device based on TWS Bluetooth headset - Google Patents

Voice communication method and device based on TWS Bluetooth headset Download PDF

Info

Publication number
CN113709737B
CN113709737B CN202110975325.1A CN202110975325A CN113709737B CN 113709737 B CN113709737 B CN 113709737B CN 202110975325 A CN202110975325 A CN 202110975325A CN 113709737 B CN113709737 B CN 113709737B
Authority
CN
China
Prior art keywords
bluetooth headset
key
mobile terminal
connection
connection information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110975325.1A
Other languages
Chinese (zh)
Other versions
CN113709737A (en
Inventor
郭海珠
杨坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Aichuangli Technology Co ltd
Original Assignee
Shenzhen Aichuangli Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Aichuangli Technology Co ltd filed Critical Shenzhen Aichuangli Technology Co ltd
Priority to CN202110975325.1A priority Critical patent/CN113709737B/en
Publication of CN113709737A publication Critical patent/CN113709737A/en
Application granted granted Critical
Publication of CN113709737B publication Critical patent/CN113709737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0891Revocation or update of secret information, e.g. encryption key update or rekeying
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0433Key management protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/069Authentication using certificates or pre-shared keys
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

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

Abstract

The application relates to a voice communication method and device based on TWS Bluetooth headset, and relates to the technical field of Bluetooth; the method comprises the following steps: after the Bluetooth headset is started, receiving first connection information sent by a mobile terminal, wherein the first connection information at least comprises a terminal ID (identity) for identifying the mobile terminal and a key to be authenticated for requesting connection with the Bluetooth headset; if the key to be authenticated corresponding to the first connection information is consistent with the first key prestored in the Bluetooth headset, playing the terminal ID; and receiving a voice message, and if the voice message is consistent with a preset reference voice, establishing Bluetooth connection between the mobile terminal corresponding to the first connection information and the Bluetooth headset. The mobile terminal ID connected with the Bluetooth headset is determined through the key and the dual authentication mode of the Bluetooth headset wearer, and the effect that the mobile terminal is connected with the Bluetooth headset by mistake is reduced.

Description

Voice communication method and device based on TWS Bluetooth headset
Technical Field
The application relates to the technical field of bluetooth, in particular to a voice communication method and device based on a TWS (time signal service) bluetooth headset.
Background
TWS (truly Wireless stereo) headphones are wireless Bluetooth headphones that include a left headphone and a right headphone, which can work individually, i.e., a user can wear either headphone (left headphone or right headphone) on one ear; the left earphone and the right earphone can also work simultaneously, namely, a user can wear the left earphone and the right earphone in double ears, the TWS earphone is generally matched with a mobile terminal (such as a smart phone with a Bluetooth module) when in use, the Bluetooth connection is established between the earphone and the mobile terminal, and then audio content in the mobile terminal can be sent to the Bluetooth earphone and played through the Bluetooth earphone.
Specifically, when using the TWS headset, first, the left headset and the right headset are paired by the TWS pairing method, where the pairing method may be: the left earphone and the right earphone are placed in a charging box, and interaction of Bluetooth addresses of the left earphone and the right earphone is realized through the charging box, so that pairing of the left earphone and the right earphone is realized; then Bluetooth connection between the earphone and the mobile terminal (which can be a smart phone) is carried out, and the specific connection mode is as follows: the Bluetooth ID of the earphone is found out at the mobile terminal, and a user touches the Bluetooth ID corresponding to the Bluetooth earphone on a display screen of the mobile terminal, so that Bluetooth connection between the earphone and the mobile terminal is realized.
For the above related art, the inventor considers that when the bluetooth headset is first connected to a certain mobile terminal, after the bluetooth headset is started, the bluetooth headset ID is displayed on other mobile terminals with bluetooth modules in the bluetooth signal range, and at this time, the situation that the user of other mobile terminals is connected to the bluetooth headset due to false touch easily occurs, which further results in that the mobile terminal connected to the bluetooth headset cannot be connected to the bluetooth headset.
Disclosure of Invention
In order to solve the technical problem that a Bluetooth headset existing in a related technology center is easy to be connected with a certain mobile terminal by mistake, so that the mobile terminal which is originally connected with the Bluetooth headset cannot be connected, the application provides a voice communication method and device based on a TWS Bluetooth headset.
In a first aspect, the present application provides a voice communication method based on a TWS bluetooth headset, which adopts the following technical scheme:
a method of voice communication based on a TWS bluetooth headset, the method comprising:
after the Bluetooth headset is started, receiving first connection information sent by a mobile terminal, wherein the first connection information at least comprises a terminal ID (identity) for identifying the mobile terminal and a key to be authenticated for requesting connection with the Bluetooth headset;
if the key to be authenticated corresponding to the first connection information is consistent with the first key prestored in the Bluetooth headset, playing the terminal ID;
and receiving a voice message, and if the voice message is consistent with a preset reference voice, establishing Bluetooth connection between the mobile terminal corresponding to the first connection information and the Bluetooth headset.
Through adopting above-mentioned technical scheme, confirm through waiting to authenticate the secret key can with bluetooth headset paired mobile terminal, on this basis again, broadcast above-mentioned mobile terminal's ID to bluetooth headset person of wearing, whether confirm to agree to realize bluetooth with bluetooth headset by bluetooth headset person of wearing and be connected, confirm the mobile terminal ID who is connected with bluetooth headset through secret key and bluetooth headset person's dual authentication's mode, ensure that bluetooth headset can realize being connected with appointed mobile terminal, reduce the circumstances that mobile terminal misconnection bluetooth headset appears.
Optionally, if the key to be authenticated corresponding to the first connection information is consistent with the first key pre-stored in the bluetooth headset, playing the terminal ID, including:
if the key to be authenticated corresponding to the first connection information is consistent with the first key stored in the Bluetooth headset, playing the terminal ID corresponding to the first connection information; and otherwise, playing the key to be authenticated corresponding to the first connection information.
By adopting the technical scheme, if the key to be authenticated is inconsistent with the first key, the key to be authenticated is played, so that the situation that the user of the mobile terminal cannot learn the error reason of the error key to be authenticated because the user forgets the previously input error key to be authenticated is reduced.
Optionally, the method further comprises:
and if the first connection information corresponding to the key to be authenticated, which is consistent with the first key, is not received within a preset period after the Bluetooth headset is started, playing the first key.
By adopting the technical scheme, if the first connection information corresponding to the key to be authenticated, which is consistent with the first key, is not received in the preset time period, the Bluetooth headset can judge that the mobile terminal user forgets the first key, so that the first key can be played after the preset time period is reached in order to reduce the times of the mobile terminal user inputting the wrong first key.
Optionally, the method further comprises:
and if the number of the received connection information is greater than the preset number and the first secret key does not exist in all the secret keys to be authenticated corresponding to the connection information, playing the first secret key.
By adopting the technical scheme, if after the Bluetooth headset is started, the quantity of the connection information received by the Bluetooth headset is larger than the preset quantity, and the key to be authenticated corresponding to the connection information is inconsistent with the first key, the Bluetooth headset can judge that the user of the mobile terminal inputs the key to be authenticated inconsistent with the first key for a plurality of times, and the Bluetooth headset plays the first key to the user wearing the Bluetooth headset.
Optionally, the method further comprises:
after Bluetooth connection is established between a Bluetooth headset and a target mobile terminal, receiving authentication-free request information sent by the target mobile terminal, wherein the authentication-free request information at least comprises a serial number for identifying the mobile terminal and an authentication-free secret key;
if the authentication-free secret key in the authentication-free request information sent by the target mobile terminal is consistent with the preset second secret key, storing the serial number in the authentication-free request information sent by the target mobile terminal in an authentication-free information base, and playing the authentication-successful audio;
receiving second connection information sent by a mobile terminal, wherein the second connection information comprises a serial number for identifying the mobile terminal;
and if the serial number corresponding to the second connection information exists in the authentication-free information base, establishing Bluetooth connection between the mobile terminal corresponding to the second connection information and the Bluetooth headset.
By adopting the technical scheme, after the mobile terminal establishes connection with the Bluetooth headset, the mobile terminal sends authentication-free request information to the Bluetooth headset, if an authentication-free key in the authentication-free request information is consistent with a preset second key, a serial number corresponding to the authentication-free request information is stored in an authentication-free information base, when the mobile terminal needs to establish secondary connection with the Bluetooth headset, the mobile terminal does not need to send first connection information to verify a key to be authenticated, does not need to play a terminal ID corresponding to the first connection information to wait for verification of a Bluetooth headset wearer, only needs to send second connection information to the Bluetooth headset, and when the serial number corresponding to the second connection information exists in the authentication-free information base, connection with the Bluetooth headset can be established.
Optionally, the method further comprises:
and if the mobile terminal corresponding to the target serial number in the authentication-free information base does not establish Bluetooth connection with the Bluetooth headset within the preset duration, deleting the target serial number from the authentication-free information base.
By adopting the technical scheme, for the mobile terminal which is not connected with the Bluetooth headset within the preset time, the serial number corresponding to the mobile terminal is deleted from the authentication-free information base, so that the safety of the connection between the mobile terminal and the Bluetooth headset is improved.
Optionally, the method further comprises:
after Bluetooth connection is established between a Bluetooth headset and a target mobile terminal, receiving first key change information sent by the target mobile terminal, wherein the first key change information at least comprises a custom key and a serial number for identifying the target mobile terminal;
and if the serial number corresponding to the first key change information exists in the authentication-free information base, updating the first key based on the custom key.
By adopting the technical scheme, if the Bluetooth headset establishes Bluetooth connection with the mobile terminal, and the serial number corresponding to the mobile terminal exists in the authentication-free information base, a user of the mobile terminal can update the first secret key into the first secret key convenient to memorize according to the self requirement.
In a second aspect, the present application provides a voice communication device based on a TWS bluetooth headset, the device comprising:
the connection request receiving module is used for receiving first connection information sent by the mobile terminal after the Bluetooth headset is started, wherein the first connection information at least comprises a terminal ID (identity) for identifying the mobile terminal and a key to be authenticated for requesting connection with the Bluetooth headset;
the first key comparison module is used for playing the terminal ID when the key to be authenticated corresponding to the first connection information is consistent with the first key prestored in the Bluetooth headset;
and the voice message receiving module is used for establishing Bluetooth connection between the mobile terminal corresponding to the first connection information and the Bluetooth headset when the voice message is consistent with the preset reference voice.
In a third aspect, the application provides a TWS bluetooth headset, where the TWS bluetooth headset includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, where the at least one instruction, the at least one program, and the code set are loaded and executed by the processor to implement a process according to the method for voice communication based on the TWS bluetooth headset in the first aspect.
In a third aspect, the present application provides a computer readable storage medium having stored therein at least one instruction, at least one program, a code set, or an instruction set, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement a process of the TWS bluetooth headset based voice communication method according to the first aspect.
In summary, the present application includes at least one of the following beneficial technical effects:
1. determining a mobile terminal capable of being paired with the Bluetooth headset through a key to be authenticated, broadcasting the ID of the mobile terminal to a Bluetooth headset wearer on the basis, determining whether to agree that the mobile terminal is connected with the Bluetooth headset or not by the Bluetooth headset wearer, determining the ID of the mobile terminal connected with the Bluetooth headset through a key and Bluetooth headset wearer double authentication mode, ensuring that the Bluetooth headset can be connected with a specified mobile terminal, and reducing the situation that the mobile terminal is connected with the Bluetooth headset by mistake;
2. after the mobile terminal establishes connection with the Bluetooth headset, the mobile terminal sends authentication-free request information to the Bluetooth headset, if an authentication-free secret key in the authentication-free request information is consistent with a preset second secret key, a serial number corresponding to the authentication-free request information is stored in an authentication-free information base, when the mobile terminal needs to establish secondary connection with the Bluetooth headset, the mobile terminal does not need to send first connection information to verify a secret key to be authenticated, does not need to play a terminal ID corresponding to the first connection information to wait for verification of a Bluetooth headset wearer, and only needs to send second connection information to the Bluetooth headset, and when the serial number corresponding to the second connection information exists in the authentication-free information base, connection with the Bluetooth headset can be established.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a voice communication method based on a TWS bluetooth headset in an embodiment.
Fig. 2 is a block diagram of a TWS bluetooth headset according to an embodiment.
Reference numerals illustrate: 201. a connection request receiving module; 202. a first key comparison module; 203. and a voice message receiving module.
Detailed Description
For the purposes of clarity, technical solutions and advantages of the present application, the following description will further describe in detail the embodiments of the present invention with reference to the accompanying drawings.
The embodiment of the application provides a voice communication method based on TWS Bluetooth earphone, which can be used for establishing Bluetooth connection between the TWS Bluetooth earphone and a mobile terminal, so that the TWS Bluetooth earphone can establish Bluetooth connection with a specified mobile terminal, and the situation that misconnection occurs between the TWS Bluetooth earphone and the mobile terminal is reduced.
The specific processing flow of the voice communication method of the TWS bluetooth headset is shown in fig. 1, and the specific processing flow in fig. 1 will be described in detail with reference to the specific embodiment, where the following is:
step 101, after the bluetooth headset is powered on, receiving first connection information sent by the mobile terminal, where the first connection information at least includes a terminal ID for identifying the mobile terminal and a key to be authenticated for requesting connection with the bluetooth headset.
In implementation, the bluetooth headset may be a TWS bluetooth headset, the mobile terminal may be a smart phone with a bluetooth module, and when a user of the bluetooth headset establishes a bluetooth connection with a mobile terminal, the user of the bluetooth headset needs to start the bluetooth headset first, and then the user wears the bluetooth headset on an ear. After the Bluetooth headset is opened, the identification of the Bluetooth headset is displayed on a touch screen of the mobile terminal, a user of the mobile terminal can touch a connection button displayed on the touch screen of the mobile terminal, at the moment, the mobile terminal receives a connection command sent by the user of the mobile terminal, and a first connection information frame is popped up on the touch screen; the mobile terminal user can input a key to be authenticated in a first connection information frame, then touch a completion button to complete the input of the key to be authenticated, so as to generate first connection information, then the mobile terminal adds the terminal ID of the mobile terminal into the first connection information, and finally the Bluetooth earphone receives the first connection information sent by the mobile terminal; wherein the terminal ID is used to identify the mobile terminal, such as a "Zhang three cell phone". Then, the process is carried out.
Step 102, if the key to be authenticated corresponding to the first connection information is consistent with the first key pre-stored in the bluetooth headset, playing the terminal ID.
In the implementation, a storage chip is arranged in the Bluetooth headset, and a first secret key is stored in the storage chip and is used for verifying the identity of the mobile terminal in the process of establishing Bluetooth connection between the mobile terminal and the Bluetooth headset; after receiving the first connection information, the bluetooth headset compares the key to be authenticated in the first connection information with the prestored first key, and if the key to be authenticated in the first connection information is consistent with the prestored first key, the bluetooth headset plays the terminal ID corresponding to the first connection information, such as playing: "Zhang three Mobile phone", at this time, the user who has worn the Bluetooth headset will hear the above-mentioned audio content with terminal ID.
Step 103, receiving the voice message, and if the voice message is consistent with the preset reference voice, establishing Bluetooth connection between the mobile terminal corresponding to the first connection information and the Bluetooth headset.
In an implementation, after the user wearing the bluetooth headset receives the audio content, the user wearing the bluetooth headset may send a voice message to the bluetooth headset in a voice manner, where the voice message may be "consent" or "disagree". After the Bluetooth headset receives the voice message, the voice message is compared with a pre-stored reference voice in the Bluetooth headset, wherein the reference voice can be 'consent', and if the voice message is consistent with the preset reference voice, the voice message is 'consent', and the Bluetooth headset establishes Bluetooth connection of the mobile terminal corresponding to the terminal ID.
Optionally, in order to expand the application range of the bluetooth headset, the "consent" may be translated into multiple languages, and the "consent" audio content of the multiple languages may be stored in the bluetooth headset as the reference voice.
Optionally, step 102 includes:
if the key to be authenticated corresponding to the first connection information is consistent with the first key stored in the Bluetooth headset, playing the terminal ID corresponding to the first connection information; and otherwise, playing the key to be authenticated corresponding to the first connection information.
In implementation, if the key to be authenticated corresponding to the first connection information is inconsistent with the first key stored in the bluetooth headset, the error of the key to be authenticated corresponding to the first connection information is indicated, and the bluetooth headset plays the error key to be authenticated at the moment, so that a user can know the previously input error key to be authenticated, and the situation that the user of the mobile terminal repeatedly inputs the error key to be authenticated is reduced.
Optionally, if the first connection information corresponding to the key to be authenticated, which is consistent with the first key, is not received within a preset period after the bluetooth headset is started, the first key is played.
In an implementation, if the bluetooth headset does not receive the first connection information corresponding to the key to be authenticated, which is consistent with the first key, within a preset period, such as ten minutes, after the bluetooth headset is started, the bluetooth headset can determine that the mobile terminal user forgets the password, at this time, the bluetooth headset can play the first key stored in the bluetooth headset, and the user who has worn the bluetooth headset will listen to the first key, and further propagate the first key, so that the mobile terminal user can successfully establish connection with the bluetooth headset according to the first key received by the bluetooth headset user.
Optionally, if the number of the received connection information is greater than the preset number and the first key does not exist in the keys to be authenticated corresponding to all the connection information, playing the first key.
In the implementation, the connection information generally refers to a connection request sent by a mobile terminal and received by a Bluetooth headset, and the first connection information refers to the connection information sent by one of the mobile terminals; if the number of the connection information received by the bluetooth headset is greater than the preset number, for example, 5, and the key to be authenticated corresponding to each connection information received by the bluetooth headset is inconsistent with the first key, the bluetooth headset can determine that the mobile terminal user forgets the password, and the bluetooth headset plays the first key stored in the bluetooth headset at the moment, so that the mobile terminal can successfully establish connection with the bluetooth headset.
Optionally, because the mobile terminal user needs to input the key to be authenticated each time when establishing connection with the bluetooth headset, and needs to wait for the bluetooth headset to compare the key to be authenticated and wait for authentication of the bluetooth headset wearer, the above operation is complicated, so in order to provide convenience for the mobile terminal establishing connection with the bluetooth headset for multiple times, the above method may further include the following processing;
after the Bluetooth headset establishes Bluetooth connection with the target mobile terminal, receiving authentication-free request information sent by the target mobile terminal, wherein the authentication-free request information at least comprises a serial number for identifying the mobile terminal and an authentication-free secret key;
if the authentication-free key in the authentication-free request information sent by the target mobile terminal is consistent with the preset second key, storing the serial number in the authentication-free request information sent by the target mobile terminal in an authentication-free information base, and playing the authentication-successful audio;
receiving second connection information sent by the mobile terminal, wherein the second connection information comprises a serial number for identifying the mobile terminal;
and if the serial number corresponding to the target second connection information exists in the authentication-free information base, establishing Bluetooth connection between the mobile terminal corresponding to the target second connection information and the Bluetooth headset.
In an implementation, after the target mobile terminal establishes a connection with the bluetooth headset, a user of the target mobile terminal may send authentication-free request information to the bluetooth headset through the target mobile terminal, where the authentication-free request information includes an authentication-free key and a serial number, where the serial number corresponds to an identification number of the mobile terminal, and may be used for anti-counterfeiting, such as FFEDS679YM.
The Bluetooth headset is pre-stored with a second key, and the second key is used for verifying the identity of the mobile terminal when the mobile terminal requests authentication-free from the Bluetooth headset; when the Bluetooth headset receives authentication-free request information, the Bluetooth headset compares the authentication-free key with the second key, if the authentication-free key is consistent with the second key, the serial number corresponding to the authentication-free key is stored in an authentication-free information base pre-stored in the Bluetooth headset, and then the Bluetooth headset plays authentication-successful audio, so that a user wearing the Bluetooth headset can know that the current mobile terminal can be connected without authentication in the next connection. When a mobile terminal user corresponding to a target serial number stored in the authentication-free information base wants to connect the Bluetooth headset again, after the mobile terminal user touches a connection button of a touch screen of the mobile terminal, the mobile terminal displays a first connection information input frame, and at the moment, the mobile terminal user does not need to input a key to be authenticated in the first connection information input frame and can directly touch a completion button; the mobile terminal judges whether to generate the first connection information or the second connection information according to the content in the first connection information input box; if the key to be authenticated in the first connection information input box is empty, the mobile terminal generates second connection information, and adds a serial number corresponding to the mobile terminal into the second connection information; otherwise, if the key to be authenticated in the first connection information input box is not null, the mobile terminal generates first connection information and adds the terminal ID corresponding to the mobile terminal to the first connection information.
After the Bluetooth earphone receives the second connection information with the serial number sent by the mobile terminal, the Bluetooth earphone determines whether the serial number corresponding to the second connection information exists in the authentication-free information base, if so, the Bluetooth earphone directly establishes the Bluetooth connection of the mobile terminal corresponding to the serial number, otherwise, the Bluetooth earphone can play authentication failure audio, such as authentication failure.
Optionally, after the connection between the target mobile terminal and the bluetooth headset is established, in order to facilitate the user of the target mobile terminal to memorize the first key, the bluetooth headset may receive an application for changing the first key sent by the user of the target mobile terminal, where the specific processing method is as follows:
after Bluetooth connection is established between a Bluetooth headset and a target mobile terminal, receiving first key change information sent by the target mobile terminal, wherein the first key change information at least comprises a custom key and a serial number for identifying the target mobile terminal;
and if the serial number corresponding to the first key change information exists in the authentication-free information base, changing the content corresponding to the first key into the content corresponding to the custom key in the first key change information.
In implementation, the touch screen of the mobile terminal generally displays an earphone ID for identifying the bluetooth earphone and a connection state of the mobile terminal and the bluetooth earphone, where the connection state may be "unconnected" or "connected"; after the target mobile terminal and the Bluetooth headset are connected, the connection state displayed on the touch screen of the mobile terminal is connected, and the target mobile terminal displays a first key change button at the moment; at this time, the user of the target mobile terminal can touch the first key changing button, at this time, the mobile terminal displays a custom key input box, so that the user inputs the changed first key content, thereby forming first key changing information, then the target mobile terminal adds the serial number of the first key changing information to the first key changing information, and then the first key changing information is sent to the Bluetooth headset.
After the Bluetooth earphone receives the first key change information, the Bluetooth earphone compares the serial number in the first key change information with the serial number in the authentication-free information base, and if the serial number corresponding to the first key change information exists in the authentication-free information base, the Bluetooth earphone updates the first key content into the content of the custom key; on the one hand, the modification of the first key can facilitate the user of the mobile terminal corresponding to the serial number in the authentication-free information base to memorize the content of the first key, and on the other hand, if the user of the mobile terminal corresponding to the serial number in the authentication-free information base agrees that other mobile terminal users connect with the Bluetooth headset, the other mobile terminals can be prevented from requesting connection again by virtue of the first key by periodically changing the first key.
Optionally, if the mobile terminal corresponding to the target serial number in the authentication-free information base does not establish bluetooth connection with the bluetooth headset within the preset duration, deleting the target serial number from the authentication-free information base.
In an implementation, a connection time of the mobile terminal corresponding to each serial number in the authentication-free information base and the bluetooth headset which is newly connected can be recorded, and for the mobile terminal corresponding to the target serial number stored in the authentication-free information base, if the mobile terminal is not connected with the bluetooth headset again within a preset time period, such as ten days, based on the connection time corresponding to the mobile terminal, the bluetooth headset deletes the target serial number from the authentication-free information base.
In summary, the mobile terminal capable of being paired with the Bluetooth headset is determined through the key to be authenticated, then the ID of the mobile terminal is reported to the Bluetooth headset wearer, whether the mobile terminal is in Bluetooth connection with the Bluetooth headset is judged by the Bluetooth headset wearer, the mobile terminal which needs to be connected with the Bluetooth headset is verified through the first key and the double authentication mode of the Bluetooth headset wearer, and the situation of error connection and error connection is reduced.
Based on the same technical concept, the embodiment of the application provides a voice communication device based on a TWS Bluetooth headset, including:
a connection request receiving module 201, configured to receive, after the bluetooth headset is turned on, first connection information sent by the mobile terminal, where the first connection information includes at least a terminal ID for identifying the mobile terminal, and a key to be authenticated for requesting connection with the bluetooth headset;
a first key comparison module 202, configured to play the terminal ID when a key to be authenticated corresponding to the first connection information is consistent with a first key pre-stored in the bluetooth headset;
and the voice message receiving module 203 is configured to establish a bluetooth connection between the mobile terminal corresponding to the first connection information and the bluetooth headset when the voice message is consistent with a preset reference voice.
Optionally, the first key comparison module 202 is further configured to play a terminal ID corresponding to the first connection information when the key to be authenticated corresponding to the first connection information is consistent with the first key stored in the bluetooth headset; and otherwise, playing the key to be authenticated corresponding to the first connection information.
Optionally, the voice communication device based on the TWS bluetooth headset further includes:
and the key timeout playing module is used for playing the first key when the first connection information corresponding to the key to be authenticated, which is consistent with the first key, is not received within a preset period after the Bluetooth headset is started.
Optionally, the voice communication device based on the TWS bluetooth headset further includes:
and the key overdrawing module is used for playing the first key when the number of the received connection information is larger than the preset number and the first key does not exist in the keys to be authenticated corresponding to all the connection information.
Optionally, the voice communication device based on the TWS bluetooth headset further includes:
the authentication-free information receiving module is used for receiving authentication-free request information sent by the target mobile terminal after the Bluetooth headset and the target mobile terminal are connected, wherein the authentication-free request information at least comprises a serial number for identifying the mobile terminal and an authentication-free secret key;
the authentication-free information storage module is used for storing the serial number in the authentication-free request information sent by the target mobile terminal in the authentication-free information library and playing the authentication-successful audio when the authentication-free key in the authentication-free request information sent by the target mobile terminal is consistent with the preset second key;
the second connection information receiving module is used for receiving second connection information sent by the mobile terminal, and the second connection information comprises a serial number for identifying the mobile terminal;
and the authentication-free connection module is used for establishing Bluetooth connection between the mobile terminal corresponding to the second connection information and the Bluetooth headset when the serial number corresponding to the second connection information exists in the authentication-free information base.
Optionally, the voice communication device based on the TWS bluetooth headset further includes:
and the serial number deleting module is used for deleting the target serial number from the authentication-free information base when the mobile terminal corresponding to the target serial number in the authentication-free information base does not establish Bluetooth connection with the Bluetooth headset within the preset time.
Optionally, the voice communication device based on the TWS bluetooth headset further includes:
the key change information receiving module is used for receiving first key change information sent by the target mobile terminal after the Bluetooth headset and the target mobile terminal are connected, wherein the first key change information at least comprises a custom key and a serial number for identifying the target mobile terminal;
and the first key changing module is used for updating the first key based on the custom key when the serial number corresponding to the first key changing information exists in the authentication-free information base.
All or part of the steps of the above embodiments may be implemented by hardware or may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing are all preferred embodiments of the present application, and are not intended to limit the scope of the present application in any way, therefore: all equivalent changes in structure, shape and principle of this application should be covered in the protection scope of this application.

Claims (10)

1. A voice communication method based on TWS Bluetooth headset is characterized in that: the execution main body of the method is a Bluetooth headset, and the method comprises the following steps:
after the Bluetooth headset is started, receiving first connection information sent by a mobile terminal, wherein the first connection information at least comprises a terminal ID (identity) for identifying the mobile terminal and a key to be authenticated for requesting connection with the Bluetooth headset;
if the key to be authenticated corresponding to the first connection information is consistent with the first key prestored in the Bluetooth headset, playing the terminal ID;
and receiving a voice message from a user wearing the Bluetooth headset, and if the voice message is consistent with a preset reference voice, establishing Bluetooth connection of the mobile terminal corresponding to the first connection information.
2. The method for voice communication based on a TWS bluetooth headset according to claim 1, wherein: and if the key to be authenticated corresponding to the first connection information is consistent with the first key pre-stored in the bluetooth headset, playing the terminal ID, including:
if the key to be authenticated corresponding to the first connection information is consistent with the first key stored in the Bluetooth headset, playing the terminal ID corresponding to the first connection information; and otherwise, playing the key to be authenticated corresponding to the first connection information.
3. The method for voice communication based on a TWS bluetooth headset according to claim 1, wherein: the method further comprises the steps of:
and if the first connection information corresponding to the key to be authenticated, which is consistent with the first key, is not received within a preset period after the Bluetooth headset is started, playing the first key.
4. The method for voice communication based on a TWS bluetooth headset according to claim 1, wherein: the method further comprises the steps of:
and if the number of the received connection information is greater than the preset number and the first secret key does not exist in all the secret keys to be authenticated corresponding to the connection information, playing the first secret key.
5. The method for voice communication based on a TWS bluetooth headset according to claim 1, wherein: the method further comprises the steps of:
after Bluetooth connection is established between a Bluetooth headset and a target mobile terminal, receiving authentication-free request information sent by the target mobile terminal, wherein the authentication-free request information at least comprises a serial number for identifying the mobile terminal and an authentication-free secret key;
if the authentication-free secret key in the authentication-free request information sent by the target mobile terminal is consistent with the preset second secret key, storing the serial number in the authentication-free request information sent by the target mobile terminal in an authentication-free information base, and playing the authentication-successful audio;
receiving second connection information sent by a mobile terminal, wherein the second connection information comprises a serial number for identifying the mobile terminal;
and if the serial number corresponding to the second connection information exists in the authentication-free information base, establishing Bluetooth connection between the mobile terminal corresponding to the second connection information and the Bluetooth headset.
6. The method for voice communication based on the TWS bluetooth headset of claim 5, wherein: the method further comprises the steps of:
and if the mobile terminal corresponding to the target serial number in the authentication-free information base does not establish Bluetooth connection with the Bluetooth headset within the preset duration, deleting the target serial number from the authentication-free information base.
7. The method for voice communication based on the TWS bluetooth headset according to claim 4, wherein: the method further comprises the steps of:
after Bluetooth connection is established between a Bluetooth headset and a target mobile terminal, receiving first key change information sent by the target mobile terminal, wherein the first key change information at least comprises a custom key and a serial number for identifying the target mobile terminal;
and if the serial number corresponding to the first key change information exists in the authentication-free information base, updating the first key based on the custom key.
8. The apparatus corresponding to the TWS bluetooth headset-based voice communication method according to claim 1, wherein: the device comprises:
a connection request receiving module (201) for receiving first connection information sent by a mobile terminal after a bluetooth headset is started, wherein the first connection information at least comprises a terminal ID for identifying the mobile terminal and a key to be authenticated for requesting connection with the bluetooth headset;
a first key comparison module (202) for playing the terminal ID when the key to be authenticated corresponding to the first connection information is consistent with a first key pre-stored in the bluetooth headset;
and the voice message receiving module (203) is used for receiving a voice message from a user wearing the Bluetooth headset, and establishing Bluetooth connection of the mobile terminal corresponding to the first connection information when the voice message is consistent with the preset reference voice.
9. A TWS bluetooth headset, characterized in that: the TWS bluetooth headset comprises a processor and a memory, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set are loaded and executed by the processor to implement the processing of the TWS bluetooth headset-based voice communication method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized by: the storage medium has stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which are loaded and executed by a processor to implement the processing of the TWS bluetooth headset based voice communication method according to any one of claims 1 to 7.
CN202110975325.1A 2021-08-24 2021-08-24 Voice communication method and device based on TWS Bluetooth headset Active CN113709737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110975325.1A CN113709737B (en) 2021-08-24 2021-08-24 Voice communication method and device based on TWS Bluetooth headset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110975325.1A CN113709737B (en) 2021-08-24 2021-08-24 Voice communication method and device based on TWS Bluetooth headset

Publications (2)

Publication Number Publication Date
CN113709737A CN113709737A (en) 2021-11-26
CN113709737B true CN113709737B (en) 2024-01-26

Family

ID=78654411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110975325.1A Active CN113709737B (en) 2021-08-24 2021-08-24 Voice communication method and device based on TWS Bluetooth headset

Country Status (1)

Country Link
CN (1) CN113709737B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114926923A (en) * 2022-05-10 2022-08-19 上海钧正网络科技有限公司 Lock control method and device and computer storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1835688A1 (en) * 2006-03-16 2007-09-19 BRITISH TELECOMMUNICATIONS public limited company SIM based authentication
CN103986503A (en) * 2014-05-16 2014-08-13 北京民芯科技有限公司 Safety Bluetooth headset and voice communication method thereof
CN105025404A (en) * 2014-04-21 2015-11-04 许丰 Secure Bluetooth headset
CN204791152U (en) * 2015-07-17 2015-11-18 上海众人网络安全技术有限公司 A bluetooth headset and bluetooth headset payment systems for mobile terminal payment
CN105450269A (en) * 2015-12-21 2016-03-30 飞天诚信科技股份有限公司 Method and device for realizing safe interaction and pairing authentication between Bluetooth devices
CN106257940A (en) * 2016-07-01 2016-12-28 福建联迪商用设备有限公司 A kind of iOS device and bluetooth peripheral hardware matching method and device
CN106412812A (en) * 2016-11-23 2017-02-15 建荣半导体(深圳)有限公司 Bluetooth voice communication method, Bluetooth voice communication system and Bluetooth headset
CN106535090A (en) * 2016-10-11 2017-03-22 歌尔科技有限公司 Pairing method for Bluetooth device and intelligent device and Bluetooth device
CN107770759A (en) * 2017-10-17 2018-03-06 广东欧珀移动通信有限公司 Method for building up, device, storage medium and the mobile terminal of blue tooth voice link
CN108901010A (en) * 2018-08-01 2018-11-27 飞天诚信科技股份有限公司 A kind of bluetooth equipment and Bluetooth connecting method
CN110611905A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Information sharing method, terminal device, storage medium, and computer program product
CN110636403A (en) * 2019-10-25 2019-12-31 深圳市科奈信科技有限公司 Wireless earphone pairing method, system and storage medium
CN111447600A (en) * 2020-03-31 2020-07-24 歌尔科技有限公司 Audio sharing method for wireless earphone, terminal device and storage medium
CN111629370A (en) * 2020-05-27 2020-09-04 歌尔科技有限公司 Bluetooth headset, pairing connection method and device thereof, and TWS headset
CN111971985A (en) * 2020-05-25 2020-11-20 深圳市易优斯科技有限公司 Earphone pairing method, earphone control method, Bluetooth earphone accommodating device and medium
CN112491473A (en) * 2020-12-16 2021-03-12 支付宝(杭州)信息技术有限公司 Method and system for establishing wireless communication connection
CN112492442A (en) * 2020-11-24 2021-03-12 江苏紫米电子技术有限公司 Connection switching method, device, equipment and storage medium of Bluetooth headset

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170112497A (en) * 2016-03-31 2017-10-12 엘지전자 주식회사 Mobile terminal and method for controlling the same

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1835688A1 (en) * 2006-03-16 2007-09-19 BRITISH TELECOMMUNICATIONS public limited company SIM based authentication
CN105025404A (en) * 2014-04-21 2015-11-04 许丰 Secure Bluetooth headset
CN103986503A (en) * 2014-05-16 2014-08-13 北京民芯科技有限公司 Safety Bluetooth headset and voice communication method thereof
CN204791152U (en) * 2015-07-17 2015-11-18 上海众人网络安全技术有限公司 A bluetooth headset and bluetooth headset payment systems for mobile terminal payment
CN105450269A (en) * 2015-12-21 2016-03-30 飞天诚信科技股份有限公司 Method and device for realizing safe interaction and pairing authentication between Bluetooth devices
CN106257940A (en) * 2016-07-01 2016-12-28 福建联迪商用设备有限公司 A kind of iOS device and bluetooth peripheral hardware matching method and device
CN106535090A (en) * 2016-10-11 2017-03-22 歌尔科技有限公司 Pairing method for Bluetooth device and intelligent device and Bluetooth device
CN106412812A (en) * 2016-11-23 2017-02-15 建荣半导体(深圳)有限公司 Bluetooth voice communication method, Bluetooth voice communication system and Bluetooth headset
CN107770759A (en) * 2017-10-17 2018-03-06 广东欧珀移动通信有限公司 Method for building up, device, storage medium and the mobile terminal of blue tooth voice link
CN108901010A (en) * 2018-08-01 2018-11-27 飞天诚信科技股份有限公司 A kind of bluetooth equipment and Bluetooth connecting method
CN110611905A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Information sharing method, terminal device, storage medium, and computer program product
CN110636403A (en) * 2019-10-25 2019-12-31 深圳市科奈信科技有限公司 Wireless earphone pairing method, system and storage medium
CN111447600A (en) * 2020-03-31 2020-07-24 歌尔科技有限公司 Audio sharing method for wireless earphone, terminal device and storage medium
CN111971985A (en) * 2020-05-25 2020-11-20 深圳市易优斯科技有限公司 Earphone pairing method, earphone control method, Bluetooth earphone accommodating device and medium
CN111629370A (en) * 2020-05-27 2020-09-04 歌尔科技有限公司 Bluetooth headset, pairing connection method and device thereof, and TWS headset
CN112492442A (en) * 2020-11-24 2021-03-12 江苏紫米电子技术有限公司 Connection switching method, device, equipment and storage medium of Bluetooth headset
CN112491473A (en) * 2020-12-16 2021-03-12 支付宝(杭州)信息技术有限公司 Method and system for establishing wireless communication connection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种包含WiFi控制器的车联网解决方案;汪振兴;;上海汽车(02);全文 *

Also Published As

Publication number Publication date
CN113709737A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US10637668B2 (en) Authentication method, system and equipment
KR101429563B1 (en) Method and apparatus for unlocking operating system
US20120159617A1 (en) Headset, method for controlling usage of headset, and terminal
CN201509210U (en) Cross-transmission-end certificate
US9456298B2 (en) Device-to-device location awareness
US20150168930A1 (en) Device control method, device control system
JP2013504812A (en) Accessory device authentication
CN105786609A (en) Control method and device of terminal
KR100735445B1 (en) Method for managing an individual identify information card of subcriber identify module inserted mobile phone
CN104168269A (en) Secure connection establishing method, apparatus and system
CN113709737B (en) Voice communication method and device based on TWS Bluetooth headset
CN114595437B (en) Access control method, electronic device, and computer-readable storage medium
CN113920616A (en) Vehicle and Bluetooth key safety connection method, Bluetooth module and Bluetooth key
CN108650594A (en) A kind of speaker management method and user terminal, computer storage media
EP4254231A1 (en) Method and apparatus for verifying personal identification number (pin) code
KR100496954B1 (en) Multi-user hand-phone
CN203708432U (en) Earphone shield and signature system
EP2466860A2 (en) Headset, method for controlling usage of headset, and terminal
CN112702742A (en) Pairing method and device for DECT (digital enhanced cordless Telecommunications) earphones
JP2012022517A (en) Terminal device, program, recording medium and server device
CN205232413U (en) Headset
KR100660464B1 (en) Method for connecting bluetooth device in portable terminal
KR20200101053A (en) Electronic device and certification method in electronic device
KR100950662B1 (en) A method of certifying smart card for Identification Module using Network
KR100645170B1 (en) Tele-Banking Method using account authentication

Legal Events

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