CN113709737A - 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
CN113709737A
CN113709737A CN202110975325.1A CN202110975325A CN113709737A CN 113709737 A CN113709737 A CN 113709737A CN 202110975325 A CN202110975325 A CN 202110975325A CN 113709737 A CN113709737 A CN 113709737A
Authority
CN
China
Prior art keywords
key
bluetooth headset
mobile terminal
connection information
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110975325.1A
Other languages
Chinese (zh)
Other versions
CN113709737B (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

Images

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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a voice communication method and a voice communication device based on a TWS Bluetooth headset, which relate to the technical field of Bluetooth; the method comprises the following steps: after a Bluetooth headset is started, receiving first connection information sent by a mobile terminal, wherein the first connection information at least comprises a terminal ID used for identifying the mobile terminal and a key to be authenticated used for requesting to be connected with the Bluetooth headset; if the key to be authenticated corresponding to the first connection information is consistent with a 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 method and the device have the advantages that the ID of the mobile terminal connected with the Bluetooth headset is determined in a key and Bluetooth headset wearer dual authentication mode, and the effect that the mobile terminal is mistakenly connected with the Bluetooth headset is reduced.

Description

Voice communication method and device based on TWS Bluetooth headset
Technical Field
The present application relates to the field of bluetooth technology, and in particular, to a voice communication method and apparatus based on a TWS bluetooth headset.
Background
A TWS (true wireless stereo) headset is a wireless bluetooth headset that includes a left headset and a right headset that can work independently, i.e., a user can wear either headset (left headset or right headset) with 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 by two ears, the TWS earphone can be matched with a mobile terminal (such as a smart phone with a Bluetooth module) generally when in use, the earphone is connected with the mobile terminal through Bluetooth, and then audio content in the mobile terminal can be sent to the Bluetooth earphone and played through the Bluetooth earphone.
Specifically, when the TWS headset is used, first, the left headset and the right headset are paired in a TWS pairing manner, which may be: the left earphone and the right earphone are placed into a charging box, and the interaction of the Bluetooth addresses of the left earphone and the right earphone is realized through the charging box, so that the left earphone and the right earphone are paired; then, bluetooth connection between the earphone and the mobile terminal (which can be a smart phone) is performed, and the specific connection mode is as follows: finding the Bluetooth ID of the earphone at the mobile terminal, and touching the Bluetooth ID corresponding to the Bluetooth earphone by a user on a display screen of the mobile terminal, thereby realizing the Bluetooth connection between the earphone and the mobile terminal.
To the above-mentioned related art, the inventor thinks that when bluetooth headset carries out bluetooth connection with a certain mobile terminal for the first time, after bluetooth headset is started, all can show bluetooth headset ID on other mobile terminals that have bluetooth module in the bluetooth signal scope, the condition that the user of other mobile terminals connects above-mentioned bluetooth headset because of the mistake touching easily appears this moment, and then leads to this mobile terminal of being connected with above-mentioned bluetooth headset can't realize being connected with above-mentioned bluetooth headset.
Disclosure of Invention
In order to solve the technical problem that a Bluetooth headset in a related technology center is easily mistakenly connected with a certain mobile terminal, and then the mobile terminal which should be 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 solution:
a method of voice communication based on a TWS bluetooth headset, the method comprising:
after a Bluetooth headset is started, receiving first connection information sent by a mobile terminal, wherein the first connection information at least comprises a terminal ID used for identifying the mobile terminal and a key to be authenticated used for requesting to be connected with the Bluetooth headset;
if the key to be authenticated corresponding to the first connection information is consistent with a 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.
By adopting the technical scheme, the mobile terminal which can be matched with the Bluetooth headset is determined by the key to be authenticated, on the basis, the ID of the mobile terminal is broadcasted to a Bluetooth headset wearer, the Bluetooth headset wearer determines whether to agree with the mobile terminal to realize Bluetooth connection with the Bluetooth headset, the ID of the mobile terminal connected with the Bluetooth headset is determined by a key and Bluetooth headset wearer double authentication mode, the Bluetooth headset can be connected with the appointed mobile terminal, and the condition that the mobile terminal is mistakenly connected with the Bluetooth headset is reduced.
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 includes:
if the key to be authenticated corresponding to the first connection information is consistent with a first key stored in the Bluetooth headset, playing a terminal ID corresponding to the first connection information; otherwise, the key to be authenticated corresponding to the first connection information is played.
By adopting the technical scheme, if the key to be authenticated is not consistent with the first key, the key to be authenticated is played, so that the situation that the user of the mobile terminal cannot know the error reason of the error key to be authenticated because the user forgets the error key to be authenticated which is input previously is reduced.
Optionally, the method further includes:
and if the first connection information corresponding to the key to be authenticated which is consistent with the first key is not received in a preset time 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 and consistent with the first key is not received within 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 in order to reduce the number of times that the mobile terminal user inputs the wrong first key.
Optionally, the method further includes:
and if the number of the received connection information is larger than the preset number and the first key does not exist in all keys to be authenticated corresponding to the connection information, playing the first key.
By adopting the technical scheme, if the number of the connection information received by the Bluetooth headset is larger than the preset number after the Bluetooth headset is started, and the key to be authenticated corresponding to the connection information does not accord with the first key, the Bluetooth headset can judge that the mobile terminal user inputs the key to be authenticated which does not accord with the first key for many times, and the Bluetooth headset plays the first key to the user who wears the Bluetooth headset.
Optionally, the method further includes:
after a Bluetooth connection is established between a Bluetooth earphone and a target mobile terminal, authentication-free request information sent by the target mobile terminal is received, wherein the authentication-free request information at least comprises a serial number used for identifying the mobile terminal and an authentication-free key;
if the authentication-free key in the authentication-free request information sent by the target mobile terminal is consistent with a 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 an audio frequency of successful authentication;
receiving second connection information sent by a mobile terminal, wherein the second connection information comprises a serial number used 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 is connected 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 first connection information is not required to be sent to verify the key to be authenticated, a terminal ID corresponding to the first connection information is not required to be played to wait for verification of a Bluetooth headset wearer, the second connection information is only required to be sent to the Bluetooth headset, and when the serial number corresponding to the second connection information exists in the authentication-free information base, the connection with the Bluetooth headset can be established.
Optionally, the method further includes:
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 a preset time length, 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 connection safety of the mobile terminal and the Bluetooth headset is improved.
Optionally, the method further includes:
after a Bluetooth connection is established between a Bluetooth earphone and a target mobile terminal, first key change information sent by the target mobile terminal is received, wherein the first key change information at least comprises a user-defined key and a serial number used for identifying the target mobile terminal;
and if the serial number corresponding to the first key change information exists in an authentication-free information base, updating the first key based on the self-defined key.
By adopting the technical scheme, if the Bluetooth connection is established between the Bluetooth earphone and 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 remember according to the requirement of the user.
In a second aspect, the present application provides a voice communication apparatus based on a TWS bluetooth headset, the apparatus comprising:
a connection request receiving module, configured to receive first connection information sent by a mobile terminal after a bluetooth headset is powered on, where the first connection information at least includes a terminal ID used for identifying the mobile terminal and a key to be authenticated used 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 a 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 a preset reference voice.
In a third aspect, the present application provides a TWS bluetooth headset, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes are loaded and executed by the processor to implement the process of the TWS bluetooth headset-based voice communication method according to the first aspect.
In a third aspect, the present application provides a computer readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the 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. the mobile terminal which can be matched with the Bluetooth earphone is determined through the key to be authenticated, the ID of the mobile terminal is broadcasted to a Bluetooth earphone wearer on the basis, whether the mobile terminal agrees to realize Bluetooth connection with the Bluetooth earphone is determined by the Bluetooth earphone wearer, the ID of the mobile terminal connected with the Bluetooth earphone is determined through a double authentication mode of the key and the Bluetooth earphone wearer, the Bluetooth earphone can be ensured to be connected with an appointed mobile terminal, and the condition that the mobile terminal is mistakenly connected with the Bluetooth earphone is reduced;
2. after the mobile terminal is connected 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, first connection information is not needed to be sent to verify a key to be authenticated, a terminal ID corresponding to the first connection information is not needed to be played to wait for verification of a wearer of the Bluetooth headset, only second connection information needs to be sent 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 in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
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.
Description of reference numerals: 201. a connection request receiving module; 202. a first key comparison module; 203. and a voice message receiving module.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present invention clearer, embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a voice communication method based on a TWS Bluetooth headset, and the method can be used for establishing Bluetooth connection between the TWS Bluetooth headset and a mobile terminal, so that the TWS Bluetooth headset can establish Bluetooth connection with a specified mobile terminal, and the situation of mistaken connection between the TWS Bluetooth headset 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 following detailed description will be made on the specific processing flow in fig. 1 with reference to the specific embodiment, and the contents are as follows:
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 between the bluetooth headset and the mobile terminal, the user of the bluetooth headset first needs to start the bluetooth headset, and then the user wears the bluetooth headset on the ear. After the Bluetooth earphone is opened, the identification of the Bluetooth earphone 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, and the mobile terminal receives a connection command sent by the user of the mobile terminal and pops up a first connection information frame on the touch screen; a mobile terminal user can input a key to be authenticated in the 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 headset receives the first connection information sent by the mobile terminal; the terminal ID is used to identify the mobile terminal, such as "mobile phone with zhang san". Then, the process is carried out.
And 102, 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.
In the implementation, a storage chip is arranged in the Bluetooth headset, a first secret key is stored in the storage chip, and the first secret key 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 a pre-stored first key, and if the key to be authenticated in the first connection information is consistent with the pre-stored first key, the bluetooth headset plays the terminal ID corresponding to the first connection information, if so: "Zhang San handset", at this time, the user who has worn the Bluetooth headset will hear the audio content with the terminal ID.
And 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 implementation, after the user wearing the bluetooth headset listens to 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 "agree" or "disagree". And after the Bluetooth headset receives the voice message, comparing the voice message with reference voice prestored in the Bluetooth headset, wherein the reference voice can be 'agreed', and if the voice message is consistent with the preset reference voice, namely 'agreed', 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; otherwise, the key to be authenticated corresponding to the first connection information is played.
In the implementation, if the key to be authenticated corresponding to the first connection information is not consistent with the first key stored in the bluetooth headset, it indicates that the key to be authenticated corresponding to the first connection information is wrong, and at this time, the bluetooth headset plays the wrong key to be authenticated, so that the user can know the wrong key to be authenticated input previously, and the situation that the user of the mobile terminal repeatedly inputs the wrong 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 time period after the bluetooth headset is powered on, the first key is played.
In 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 time period after the bluetooth headset is powered on, for example, within ten minutes, the bluetooth headset may determine that the mobile terminal user forgets the password, and at this time, the bluetooth headset may play the first key stored in the bluetooth headset, and the user who has worn the bluetooth headset will hear the first key, and then spread the first key, so that the mobile terminal user may successfully establish a connection with the bluetooth headset according to the first key heard 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 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 specifically refers to 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 to-be-authenticated key corresponding to each received connection information 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, so that the mobile terminal can successfully establish connection with the bluetooth headset.
Optionally, since the user of the mobile terminal needs to input the key to be authenticated each time the user establishes a connection with the bluetooth headset, and needs to wait for the comparison between the key to be authenticated and the authentication of the user of the bluetooth headset, the above operation is complicated, so that the method may further include the following processing in order to facilitate the mobile terminal establishing a connection with the bluetooth headset for many times;
after the Bluetooth connection between the Bluetooth earphone and the target mobile terminal is established, receiving authentication-free request information sent by the target mobile terminal, wherein the authentication-free request information at least comprises a serial number used for identifying the mobile terminal and an authentication-free 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 audio frequency of successful authentication;
receiving second connection information sent by the mobile terminal, wherein the second connection information comprises a serial number used 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, the 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 is equivalent to an identification number of the mobile terminal, and may be used for anti-counterfeiting, such as FFEDS679 YM.
The Bluetooth headset is pre-stored with a second key, and the second key is used for verifying the identity of the mobile terminal by the Bluetooth headset when the mobile terminal requests the Bluetooth headset for authentication exemption; when the Bluetooth headset receives the authentication-free request information, the Bluetooth headset compares the authentication-free secret key with the second secret key, if the authentication-free secret key is consistent with the second secret key, the serial number corresponding to the authentication-free secret key is stored in an authentication-free information base prestored in the Bluetooth headset, and then the Bluetooth headset plays the audio frequency of successful authentication, 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 the mobile terminal user corresponding to the target serial number stored in the authentication-free information base wants to connect the Bluetooth headset again, the mobile terminal displays a first connection information input frame after the mobile terminal user touches a connection button of a touch screen of the mobile terminal, and at the moment, the mobile terminal user can directly touch a completion button without inputting a key to be authenticated in the first connection information input frame; at the moment, 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 to the second connection information; otherwise, if the key to be authenticated in the first connection information input box is not empty, 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 headset receives second connection information with a serial number sent by the mobile terminal, the bluetooth headset determines whether the serial number corresponding to the second connection information exists in the authentication-free information base, if so, the bluetooth headset directly establishes bluetooth connection with the mobile terminal corresponding to the serial number, otherwise, the bluetooth headset can play authentication failure audio, such as 'authentication failure'.
Optionally, after the target mobile terminal is connected to the bluetooth headset, in order to facilitate a user of the target mobile terminal to memorize the first key, the bluetooth headset may receive an application for changing the first key from the user of the target mobile terminal, where the specific processing method is as follows:
after a Bluetooth connection is established between a Bluetooth earphone and a target mobile terminal, first key change information sent by the target mobile terminal is received, wherein the first key change information at least comprises a user-defined key and a serial number used 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 self-defined key in the first key change information.
In implementation, an earphone ID for identifying a bluetooth earphone and a connection state of the mobile terminal and the bluetooth earphone are generally displayed on a touch screen of the mobile terminal, where the connection state may be "unconnected" or "connected"; after the target mobile terminal is connected with the Bluetooth headset, the connection state displayed on the touch screen of the mobile terminal is 'connected', and the target mobile terminal can display a first key change button; at this time, the target mobile terminal user can touch the first key change button, and at this time, the mobile terminal displays a user-defined key input box, so that the user can input the changed first key content, and thus first key change information is formed, and then the target mobile terminal adds the serial number of the target mobile terminal to the first key change information and sends the first key change information to the Bluetooth headset.
After the Bluetooth headset receives the first key change information, the Bluetooth headset 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 headset updates the content of the first key into the content of a user-defined key; the modification of the first key can facilitate a user of the mobile terminal corresponding to the serial number in the authentication-free information base to remember the content of the first key on one hand, and on the other hand, if the user of the mobile terminal corresponding to the serial number in the authentication-free information base agrees to connect the other mobile terminal users with the bluetooth headset, the connection request of the other mobile terminals by means of the first key can be avoided 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, the target serial number is deleted from the authentication-free information base.
In implementation, the latest connection time between the mobile terminal corresponding to each serial number in the authentication-exempt information base and the bluetooth headset may be recorded, and for the mobile terminal corresponding to the target serial number stored in the authentication-exempt information base, based on the connection time corresponding to the mobile terminal, if the mobile terminal is not connected with the bluetooth headset again within a preset time period, for example, within ten days, the bluetooth headset deletes the target serial number from the authentication-exempt information base.
In summary, the mobile terminal capable of being paired with the bluetooth headset is determined by the key to be authenticated, on the basis, the ID of the mobile terminal is broadcasted to the bluetooth headset wearer, the bluetooth headset wearer determines whether to agree to the mobile terminal to realize bluetooth connection with the bluetooth headset, the mobile terminal to be connected with the bluetooth headset is verified in a dual authentication mode of the first key and the bluetooth headset wearer, and the situation of misconnection and misconnection is reduced.
Based on the same technical concept, an embodiment of the present application provides a voice communication apparatus based on a TWS bluetooth headset, including:
a connection request receiving module 201, configured to receive first connection information sent by a mobile terminal after a bluetooth headset is powered on, where the first connection information at least includes a terminal ID used for identifying the mobile terminal and a key to be authenticated used for requesting connection with the bluetooth headset;
a first key comparison module 202, configured to play 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 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 the 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; otherwise, the key to be authenticated corresponding to the first connection information is played.
Optionally, the voice communication apparatus based on TWS bluetooth headset further includes:
and the key overtime playing module is used for playing the first key in a preset time period after the Bluetooth headset is started and when the first connection information corresponding to the key to be authenticated, which is consistent with the first key, is not received.
Optionally, the voice communication apparatus based on TWS bluetooth headset further includes:
and the key excess playing module is used for playing the first key when 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.
Optionally, the voice communication apparatus based on TWS bluetooth headset further includes:
the authentication-free information receiving module is used for receiving authentication-free request information sent by a target mobile terminal after a Bluetooth connection is established between a Bluetooth earphone and the target mobile terminal, wherein the authentication-free request information at least comprises a serial number used for identifying the mobile terminal and an authentication-free 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 an authentication-free information base and playing the audio frequency of successful authentication when the authentication-free key in the authentication-free request information sent by the target mobile terminal is consistent with a 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 used 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 apparatus based on 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 a preset time length.
Optionally, the voice communication apparatus based on 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 connection is established between the Bluetooth earphone and the target mobile terminal, wherein the first key change information at least comprises a user-defined key and a serial number used for identifying the target mobile terminal;
and the first key changing module is used for updating the first key based on the self-defined 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 can be implemented by hardware immediately or by a program instructing relevant hardware, and the program can be stored in a computer readable storage medium, and the above mentioned storage medium can be read only memory, magnetic disk or optical disk.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (10)

1. A voice communication method based on TWS Bluetooth headset is characterized in that: the method comprises the following steps:
after a Bluetooth headset is started, receiving first connection information sent by a mobile terminal, wherein the first connection information at least comprises a terminal ID used for identifying the mobile terminal and a key to be authenticated used for requesting to be connected with the Bluetooth headset;
if the key to be authenticated corresponding to the first connection information is consistent with a 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.
2. A voice communication method based on TWS bluetooth headset according to claim 1, characterized in that: 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, including:
if the key to be authenticated corresponding to the first connection information is consistent with a first key stored in the Bluetooth headset, playing a terminal ID corresponding to the first connection information; otherwise, the key to be authenticated corresponding to the first connection information is played.
3. A voice communication method based on TWS bluetooth headset according to claim 1, characterized in that: the method further comprises the following steps:
and if the first connection information corresponding to the key to be authenticated which is consistent with the first key is not received in a preset time period after the Bluetooth headset is started, playing the first key.
4. A voice communication method based on TWS bluetooth headset according to claim 1, characterized in that: the method further comprises the following steps:
and if the number of the received connection information is larger than the preset number and the first key does not exist in all keys to be authenticated corresponding to the connection information, playing the first key.
5. A voice communication method based on TWS bluetooth headset according to claim 1, characterized in that: the method further comprises the following steps:
after a Bluetooth connection is established between a Bluetooth earphone and a target mobile terminal, authentication-free request information sent by the target mobile terminal is received, wherein the authentication-free request information at least comprises a serial number used for identifying the mobile terminal and an authentication-free key;
if the authentication-free key in the authentication-free request information sent by the target mobile terminal is consistent with a 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 an audio frequency of successful authentication;
receiving second connection information sent by a mobile terminal, wherein the second connection information comprises a serial number used 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. A TWS Bluetooth headset-based voice communication method according to claim 4, characterized in that: the method further comprises the following steps:
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 a preset time length, deleting the target serial number from the authentication-free information base.
7. A TWS Bluetooth headset-based voice communication method according to claim 4, characterized in that: the method further comprises the following steps:
after a Bluetooth connection is established between a Bluetooth earphone and a target mobile terminal, first key change information sent by the target mobile terminal is received, wherein the first key change information at least comprises a user-defined key and a serial number used for identifying the target mobile terminal;
and if the serial number corresponding to the first key change information exists in an authentication-free information base, updating the first key based on the self-defined key.
8. A voice communication device based on TWS bluetooth headset characterized in that: the device comprises:
a connection request receiving module (201) for receiving first connection information sent by a mobile terminal after a bluetooth headset is powered on, wherein the first connection information at least comprises a terminal ID for identifying the mobile terminal and a key to be authenticated for requesting to be connected 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 establishing 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.
9. A TWS Bluetooth headset, comprising: the TWS bluetooth headset comprises a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the process 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 that is loaded and executed by a processor to implement the process 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 true CN113709737A (en) 2021-11-26
CN113709737B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114828289A (en) * 2022-05-10 2022-07-29 上海钧正网络科技有限公司 Communication connection method, communication connection device and computer storage medium
CN114926923A (en) * 2022-05-10 2022-08-19 上海钧正网络科技有限公司 Lock control method and device and computer storage medium
CN118102312A (en) * 2023-12-26 2024-05-28 深圳市腾进达信息技术有限公司 Bluetooth communication method and system of wearable device

Citations (18)

* 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
US20170285764A1 (en) * 2016-03-31 2017-10-05 Lg Electronics Inc. Mobile terminal and method for controlling the same
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

Patent Citations (18)

* 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
US20170285764A1 (en) * 2016-03-31 2017-10-05 Lg Electronics Inc. Mobile terminal and method for controlling the same
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控制器的车联网解决方案", 上海汽车, no. 02 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114828289A (en) * 2022-05-10 2022-07-29 上海钧正网络科技有限公司 Communication connection method, communication connection device and computer storage medium
CN114926923A (en) * 2022-05-10 2022-08-19 上海钧正网络科技有限公司 Lock control method and device and computer storage medium
CN118102312A (en) * 2023-12-26 2024-05-28 深圳市腾进达信息技术有限公司 Bluetooth communication method and system of wearable device

Also Published As

Publication number Publication date
CN113709737B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN113709737A (en) Voice communication method and device based on TWS Bluetooth headset
US10637668B2 (en) Authentication method, system and equipment
CN102547502B (en) Headset, headset use control method and terminal
KR101429563B1 (en) Method and apparatus for unlocking operating system
CN101099157B (en) Portable electronic device accepting accessory devices
CN105468952A (en) Authentication method and apparatus
CN106912048A (en) Access-in point information sharing method and device
WO2020253197A1 (en) Method and apparatus for managing virtual user identification card, terminal device and storage medium
CN104168269A (en) Secure connection establishing method, apparatus and system
JP6397046B2 (en) Address book protection method, apparatus and communication system
JP2002328903A (en) Electronic device
CN113920616A (en) Vehicle and Bluetooth key safety connection method, Bluetooth module and Bluetooth key
KR20200050813A (en) Payment method using biometric authentication and electronic device thereof
CN104734750B (en) Shield and its method of work, Mobile terminal signature method, mobile terminal and system
EP4254231A1 (en) Method and apparatus for verifying personal identification number (pin) code
CN114595437B (en) Access control method, electronic device, and computer-readable storage medium
CN109890017B (en) Method, device and equipment for connecting with central equipment and readable storage medium
KR20190115361A (en) Electronic device for managing application associated with a key of external electronic device and the method for the same
JP4289186B2 (en) Telephone and telephone system having authentication function
CN106375350A (en) Recovery verification method and device
JP2002135407A (en) Communication terminal and authentication method by the communication terminal
CN106506143A (en) A kind of dynamic cipher generating method and device
EP2466860A2 (en) Headset, method for controlling usage of headset, and terminal
KR100950662B1 (en) A method of certifying smart card for Identification Module using Network
KR100660464B1 (en) Method for connecting bluetooth device in portable terminal

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