CN109803189B - Bluetooth headset based on BLE agreement - Google Patents

Bluetooth headset based on BLE agreement Download PDF

Info

Publication number
CN109803189B
CN109803189B CN201910068254.XA CN201910068254A CN109803189B CN 109803189 B CN109803189 B CN 109803189B CN 201910068254 A CN201910068254 A CN 201910068254A CN 109803189 B CN109803189 B CN 109803189B
Authority
CN
China
Prior art keywords
module
bluetooth
audio data
data packet
bluetooth headset
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
CN201910068254.XA
Other languages
Chinese (zh)
Other versions
CN109803189A (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.)
Hefei Xingkong Iot Information Technology Co ltd
Original Assignee
Hefei Xingkong Iot Information 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 Hefei Xingkong Iot Information Technology Co ltd filed Critical Hefei Xingkong Iot Information Technology Co ltd
Priority to CN201910068254.XA priority Critical patent/CN109803189B/en
Publication of CN109803189A publication Critical patent/CN109803189A/en
Application granted granted Critical
Publication of CN109803189B publication Critical patent/CN109803189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a Bluetooth headset based on a BLE protocol, which comprises a first Bluetooth headset and a second Bluetooth headset, wherein each of the two Bluetooth headsets comprises a main control module, a power module, an audio acquisition and processing module, an audio output module, an electrostatic protection module, a classic Bluetooth module and a BLE Bluetooth module, wherein the power module, the audio acquisition and processing module, the audio output module, the electrostatic protection module, the classic Bluetooth module and the BLE Bluetooth module are connected with the main control module; first bluetooth headset passes through classic bluetooth module and cell-phone communication connection, and is connected through BLE bluetooth module between first bluetooth headset and the second bluetooth headset. According to the invention, the BLE Bluetooth module is used for carrying out communication transmission between the two Bluetooth earphones, so that the transmission of audio data is realized, the main control module on the Bluetooth earphones is used for carrying out wireless packet loss detection on the transmitted audio data packet, the data integrity in the transmitted audio data packet is judged, the synchronism of audio playing is ensured, the audio data playing effect is greatly improved, and the satisfaction degree of the user is improved.

Description

Bluetooth headset based on BLE agreement
Technical Field
The invention belongs to the technical field of Bluetooth headsets, and relates to a Bluetooth headset based on a BLE protocol.
Background
Current ears bluetooth (TWS bluetooth headset) has begun slowly to popularize, and the realization technique of current classic TWS bluetooth headset mainly is classic bluetooth realization and APPLE's implementation mode, and current classic bluetooth when transmission audio data, has the problem that the audio frequency is asynchronous, easily cut off, has reduced people to the experience effect of audio tone quality.
Disclosure of Invention
The Bluetooth headset based on the BLE protocol solves the problems that the existing Bluetooth headset is asynchronous in audio and easy to break, and greatly reduces the experience effect of audio tone quality of a user.
The purpose of the invention can be realized by the following technical scheme:
a Bluetooth headset based on a BLE protocol comprises a first Bluetooth headset and a second Bluetooth headset, wherein each of the first Bluetooth headset and the second Bluetooth headset comprises a power module, an audio acquisition and processing module, an audio output module, an electrostatic protection module, a main control module, a classic Bluetooth module and a BLE Bluetooth module;
the first Bluetooth headset is in communication connection with the mobile phone through a classic Bluetooth module, and the first Bluetooth headset is connected with the second Bluetooth headset through a BLE Bluetooth module;
the main control module is respectively connected with the power supply module, the audio acquisition and processing module, the audio output module, the electrostatic protection module, the classic Bluetooth module and the BLE Bluetooth module;
the power supply module is connected with the main control module and is used for providing a working power supply for the main control module;
the audio acquisition and processing module comprises an audio acquisition device and an audio coding and decoding chip and is used for acquiring voice information of personnel in real time and coding the acquired voice information, and the coded voice information is sent to the main control module;
the audio output module is a voice player and is used for outputting voice;
the static protection module is connected with the main control module and is used for eliminating and protecting static electricity generated on the earphone;
the classic Bluetooth module is used for performing communication connection between the main control module and the mobile phone, receiving an audio data packet sent by the mobile phone and sending the received audio data packet to the main control module;
the BLE Bluetooth module is used for performing communication connection between the two earphones, and is used for sending an audio data packet received by one earphone in communication connection with the mobile phone to the other earphone so as to realize transmission of audio data;
the mobile phone sends an audio data packet to a master control module on the first Bluetooth headset through the classic Bluetooth module, the master control module receives the audio data packet, the received audio data packet is sent to a master control module on the second Bluetooth headset through the BLE Bluetooth module, the master control module on the second Bluetooth headset receives the audio data packet and feeds the received audio data packet back to the master control module on the first Bluetooth headset through the BLE Bluetooth module, the master control module on the first Bluetooth headset detects whether the audio data packet is lost or not through the audio data packet sent by the classic Bluetooth module and the audio data packet fed back by the BLE Bluetooth module, if the audio data packet is lost, the audio data packet is abandoned, a new audio data packet is received again, and otherwise, the master control module on the first Bluetooth headset sends an audio playing instruction to the master control module on the second Bluetooth headset.
Further, the main control module performs packet loss detection on the audio data packet, and specifically includes the following steps:
s1, the master control module on the first Bluetooth headset receives the audio data packet sent by the classic Bluetooth module and sends the received audio data packet to the master control module on the second Bluetooth headset through the BLE Bluetooth module;
s2, feeding back the audio data packet received by the master control module on the second Bluetooth headset to the master control module on the first Bluetooth headset through the BLE Bluetooth module;
s3, the main control module on the first Bluetooth headset carries out difference item content detection on the audio data packet sent by the classic Bluetooth module and the audio data packet sent by the BLE Bluetooth module;
s4, if the audio data packet sent by the classic Bluetooth module is different from the audio data packet sent by the BLE Bluetooth module, executing the step S5, otherwise, executing the step S6;
s5, the master control module on the first Bluetooth headset receives the audio data packet fed back by the master control module on the second Bluetooth headset through the BLE Bluetooth module again, the audio data packet fed back by the master control module on the second Bluetooth headset is received again to serve as the latest fed back audio data packet, and step S4 is executed, if the audio data packets detected twice are different, the master control modules on the first Bluetooth headset and the second Bluetooth headset discard the audio data packet, and the mobile phone continues to receive the new audio data packet sent by the classic Bluetooth module;
s6, the master control module on the first Bluetooth headset sends an audio playing control instruction to the audio output module according to the set delay time, and sends the audio playing control instruction to the master control module on the second Bluetooth headset through the BLE Bluetooth module, the master control module on the second Bluetooth headset receives the control instruction sent by the master control module on the first Bluetooth headset, and the master control module on the second Bluetooth headset sends the audio playing control instruction to the audio output module, so that the two headsets can synchronously play the voice information.
Further, the content of the difference item detected by the audio data packet includes the size of the audio data packet, the format of the audio data packet, and the type of the audio data packet.
Further, the set delay time is the time when the master control module on the first bluetooth headset sends the control instruction to the master control module on the second bluetooth headset, and the master control module on the second bluetooth headset receives the control instruction sent by the first bluetooth headset.
The invention has the beneficial effects that:
according to the Bluetooth headset based on the BLE protocol, the BLE Bluetooth module is used for carrying out communication transmission between the two Bluetooth headsets, so that audio data transmission is realized, the main control module on the Bluetooth headset is used for carrying out wireless packet loss detection on the transmitted audio data packet, the data integrity in the transmitted audio data packet is judged, the audio playing synchronization is ensured, the audio data playing effect is greatly improved, and the satisfaction degree of users is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used 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 invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Figure 1 is a schematic diagram of a bluetooth headset based on BLE protocol in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a bluetooth headset based on a BLE protocol includes a first bluetooth headset and a second bluetooth headset, each bluetooth headset includes a power module, an audio acquisition and processing module, an audio output module, an electrostatic protection module, a main control module, a classic bluetooth module, and a BLE bluetooth module;
the first Bluetooth headset is in communication connection with the mobile phone through a classic Bluetooth module, and the first Bluetooth headset is connected with the second Bluetooth headset through a BLE Bluetooth module;
the main control module is respectively connected with the power supply module, the audio acquisition and processing module, the audio output module, the electrostatic protection module, the classic Bluetooth module and the BLE Bluetooth module;
the power supply module is connected with the main control module and is used for providing a working power supply for the main control module, ensuring the main control module to continuously and normally work and further providing a working power supply for the Bluetooth headset;
the audio acquisition and processing module comprises an audio acquisition device and an audio coding and decoding chip and is used for acquiring voice information of personnel in real time and coding the acquired voice information, and the coded voice information is sent to the main control module;
the audio output module is a voice player and is used for outputting voice;
the static protection module is connected with the main control module and is used for eliminating static electricity generated on the earphone so as to realize static protection of the earphone;
the classic Bluetooth module is used for performing communication connection between the main control module and the mobile phone, receiving an audio data packet sent by the mobile phone and sending the received audio data packet to the main control module;
the BLE Bluetooth module is used for performing communication connection between the two earphones, and is used for sending an audio data packet received by one earphone in communication connection with the mobile phone to the other earphone so as to realize transmission of audio data;
the mobile phone sends an audio data packet to a master control module on the first Bluetooth headset through the classic Bluetooth module, the master control module receives the audio data packet, the received audio data packet is sent to a master control module on the second Bluetooth headset through the BLE Bluetooth module, the master control module on the second Bluetooth headset receives the audio data packet and feeds the received audio data packet back to the master control module on the first Bluetooth headset through the BLE Bluetooth module, the master control module on the first Bluetooth headset detects whether the audio data packet is lost or not through the audio data packet sent by the classic Bluetooth module and the audio data packet fed back by the BLE Bluetooth module, if the audio data packet is lost, the audio data packet is abandoned, a new audio data packet is received again, and otherwise, the master control module on the first Bluetooth headset sends an audio playing instruction to the master control module on the second Bluetooth headset.
The method comprises the following steps that whether the audio data packet is lost or not is detected by a main control module, and the method specifically comprises the following steps:
s1, the master control module on the first Bluetooth headset receives the audio data packet sent by the classic Bluetooth module and sends the received audio data packet to the master control module on the second Bluetooth headset through the BLE Bluetooth module;
s2, feeding back the audio data packet received by the master control module on the second Bluetooth headset to the master control module on the first Bluetooth headset through the BLE Bluetooth module;
s3, the main control module on the first Bluetooth headset detects the content of the difference items of the audio data packets sent by the classic Bluetooth module and the audio data packets sent by the BLE Bluetooth module, wherein the detected content of the difference items comprises the size of the audio data packets, the format of the audio data packets, the type of the audio data packets and the like;
s4, if the audio data packet sent by the classic Bluetooth module is different from the audio data packet sent by the BLE Bluetooth module, executing the step S5, otherwise, executing the step S6;
s5, the master control module on the first Bluetooth headset receives the audio data packet fed back by the master control module on the second Bluetooth headset through the BLE Bluetooth module again, the audio data packet fed back by the master control module on the second Bluetooth headset is received again to serve as the latest fed back audio data packet, and step S4 is executed, if the audio data packets detected twice are different, the master control modules on the first Bluetooth headset and the second Bluetooth headset discard the audio data packet, and the mobile phone continues to receive the new audio data packet sent by the classic Bluetooth module;
s6, the master control module on the first Bluetooth headset sends an audio playing control instruction to the audio output module according to the set delay time, and sends the audio playing control instruction to the master control module on the second Bluetooth headset through the BLE Bluetooth module, the master control module on the second Bluetooth headset receives the control instruction sent by the master control module on the first Bluetooth headset, the master control module on the second Bluetooth headset sends the audio playing control instruction to the audio output module, and the two headsets can synchronously play voice information, wherein the set delay time is the time when the master control module on the first Bluetooth headset sends the control instruction to the master control module on the second Bluetooth headset, and the master control module on the second Bluetooth headset receives the control instruction sent by the first Bluetooth headset.
According to the Bluetooth headset based on the BLE protocol, the BLE Bluetooth module is used for carrying out communication transmission between the two Bluetooth headsets, so that audio data transmission is realized, the main control module on the Bluetooth headset is used for carrying out wireless packet loss detection on the transmitted audio data packet, the data integrity in the transmitted audio data packet is judged, the audio playing synchronism is ensured, the audio data playing effect is greatly improved, and the satisfaction degree of users is improved.
The foregoing is merely exemplary and illustrative of the principles of the present invention and various modifications, additions and substitutions of the specific embodiments described herein may be made by those skilled in the art without departing from the principles of the present invention or exceeding the scope of the claims set forth herein.

Claims (3)

1. A bluetooth headset based on BLE agreement, includes first bluetooth headset and second bluetooth headset, its characterized in that: the two Bluetooth earphones respectively comprise a power module, an audio acquisition and processing module, an audio output module, an electrostatic protection module, a main control module, a classic Bluetooth module and a BLE Bluetooth module;
the first Bluetooth headset is in communication connection with the mobile phone through a classic Bluetooth module, and the first Bluetooth headset is connected with the second Bluetooth headset through a BLE Bluetooth module;
the main control module is respectively connected with the power supply module, the audio acquisition and processing module, the audio output module, the electrostatic protection module, the classic Bluetooth module and the BLE Bluetooth module;
the power supply module is connected with the main control module and is used for providing a working power supply for the main control module;
the audio acquisition and processing module comprises an audio acquisition device and an audio coding and decoding chip and is used for acquiring voice information of personnel in real time and coding the acquired voice information, and the coded voice information is sent to the main control module;
the audio output module is a voice player and is used for outputting voice;
the static protection module is connected with the main control module and is used for eliminating and protecting static electricity generated on the earphone;
the classic Bluetooth module is used for performing communication connection between the main control module and the mobile phone, receiving an audio data packet sent by the mobile phone and sending the received audio data packet to the main control module;
the BLE Bluetooth module is used for performing communication connection between the two earphones, and is used for sending an audio data packet received by one earphone in communication connection with the mobile phone to the other earphone so as to realize transmission of audio data;
the mobile phone sends an audio data packet to a master control module on a first Bluetooth headset through a classic Bluetooth module, the master control module receives the audio data packet and sends the received audio data packet to a master control module on a second Bluetooth headset through a BLE Bluetooth module, the master control module on the second Bluetooth headset receives the audio data packet and feeds the received audio data packet back to the master control module on the first Bluetooth headset through the BLE Bluetooth module, the master control module on the first Bluetooth headset detects whether the audio data packet is lost or not for the audio data packet sent by the classic Bluetooth module and the audio data packet fed back by the BLE Bluetooth module, if the audio data packet is lost, the audio data packet is abandoned, a new audio data packet is received again, and if the audio data packet is not lost, the master control module on the first Bluetooth headset sends an audio playing instruction to the master control module on the second Bluetooth headset;
the method for detecting whether the audio data packet is lost by the master control module specifically comprises the following steps:
s1, the master control module on the first Bluetooth headset receives the audio data packet sent by the classic Bluetooth module and sends the received audio data packet to the master control module on the second Bluetooth headset through the BLE Bluetooth module;
s2, feeding back the audio data packet received by the master control module on the second Bluetooth headset to the master control module on the first Bluetooth headset through the BLE Bluetooth module;
s3, the main control module on the first Bluetooth headset carries out difference item content detection on the audio data packet sent by the classic Bluetooth module and the audio data packet fed back by the BLE Bluetooth module in the second Bluetooth headset;
s4, if the audio data packet sent by the classic Bluetooth module is different from the audio data packet sent by the BLE Bluetooth module, executing the step S5, otherwise, executing the step S6;
s5, the master control module on the first Bluetooth headset receives the audio data packet fed back by the master control module on the second Bluetooth headset through the BLE Bluetooth module again, the audio data packet fed back by the master control module on the second Bluetooth headset is received again to serve as the latest fed back audio data packet, and step S4 is executed, if the audio data packets detected twice are different, the master control modules on the first Bluetooth headset and the second Bluetooth headset discard the audio data packet, and the mobile phone continues to receive the new audio data packet sent by the classic Bluetooth module;
s6, the master control module on the first Bluetooth headset sends an audio playing control instruction to the audio output module according to the set delay time, and sends the audio playing control instruction to the master control module on the second Bluetooth headset through the BLE Bluetooth module, the master control module on the second Bluetooth headset receives the control instruction sent by the master control module on the first Bluetooth headset, and the master control module on the second Bluetooth headset sends the audio playing control instruction to the audio output module, so that the two headsets can synchronously play the voice information.
2. A bluetooth headset based on a BLE protocol according to claim 1, wherein: the content of the difference item detected by the audio data packet includes the size of the audio data packet, the format of the audio data packet, and the type of the audio data packet.
3. A bluetooth headset based on a BLE protocol according to claim 1, wherein: the set delay time is the time when the master control module on the first Bluetooth headset sends a control instruction to the master control module on the second Bluetooth headset and the master control module on the second Bluetooth headset receives the control instruction sent by the first Bluetooth headset.
CN201910068254.XA 2019-01-24 2019-01-24 Bluetooth headset based on BLE agreement Active CN109803189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910068254.XA CN109803189B (en) 2019-01-24 2019-01-24 Bluetooth headset based on BLE agreement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910068254.XA CN109803189B (en) 2019-01-24 2019-01-24 Bluetooth headset based on BLE agreement

Publications (2)

Publication Number Publication Date
CN109803189A CN109803189A (en) 2019-05-24
CN109803189B true CN109803189B (en) 2020-07-03

Family

ID=66560179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910068254.XA Active CN109803189B (en) 2019-01-24 2019-01-24 Bluetooth headset based on BLE agreement

Country Status (1)

Country Link
CN (1) CN109803189B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111132377B (en) * 2019-12-27 2022-03-22 昱兆微电子科技(上海)有限公司 Data transmission method and system for terminal and earphone
CN114845280A (en) * 2021-01-15 2022-08-02 Oppo广东移动通信有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008082278A1 (en) * 2007-01-06 2008-07-10 Samsung Electronics Co., Ltd. Method and apparatus for controlling intra-refreshing in a video telephony communication system
US7793164B2 (en) * 2006-02-06 2010-09-07 Nintendo Co., Ltd. Error codes for products
US8862112B2 (en) * 2012-10-24 2014-10-14 Cellco Partnership Ultra-thin mobile client

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959979B (en) * 2016-06-01 2019-05-31 东南大学 Frame length system adaptive recognition method in wireless sensor network based on MAC protocol
CN107171696A (en) * 2017-04-14 2017-09-15 广东思派康电子科技有限公司 Communication equipment connects the stereo implementation method of call of wireless headset
CN107318062B (en) * 2017-05-11 2019-10-11 恒玄科技(上海)有限公司 A kind of low-power consumption one drag two bluetooth headset
CN207022164U (en) * 2017-05-26 2018-02-16 广东思派康电子科技有限公司 TWS earphones
CN108616819B (en) * 2018-03-23 2021-10-26 南京中感微电子有限公司 Data retransmission method, Bluetooth main device and wireless communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7793164B2 (en) * 2006-02-06 2010-09-07 Nintendo Co., Ltd. Error codes for products
WO2008082278A1 (en) * 2007-01-06 2008-07-10 Samsung Electronics Co., Ltd. Method and apparatus for controlling intra-refreshing in a video telephony communication system
US8862112B2 (en) * 2012-10-24 2014-10-14 Cellco Partnership Ultra-thin mobile client

Also Published As

Publication number Publication date
CN109803189A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN109660971B (en) Wireless earphone and communication method for wireless earphone
CN108419228B (en) A kind of wireless communications method suitable for bluetooth headset
CN109561419B (en) The ears wireless headset of high reliability and communication means for ears wireless headset
US11805350B2 (en) Point-to-multipoint data transmission method and device
US11751283B2 (en) System and method for switching master and slave roles of devices for use in wireless communications
CN111031437B (en) Wireless earphone assembly and communication method thereof
CN111200769B (en) Communication method for Bluetooth headset device and Bluetooth headset device
CN109089330B (en) Audio data transmission method and terminal
CN110769347B (en) Synchronous playing method of earphone assembly and earphone assembly
CN111918261A (en) Bluetooth audio equipment synchronous playing method and system and Bluetooth audio master and slave equipment
CN108337074A (en) The bluetooth headset wireless communications method of high reliability
CN106936987B (en) Method and device capable of identifying voice source of Bluetooth headset
CN112055349B (en) Wireless communication method and Bluetooth device
CN111741401B (en) Wireless communication method for wireless headset assembly and wireless headset assembly
CN108810860B (en) Audio transmission method, terminal equipment and main earphone
CN109803189B (en) Bluetooth headset based on BLE agreement
TW201445909A (en) Bluetooth data/control message transmission module, interaction system and method thereof
CN109862178A (en) A kind of wearable device and its voice control communication method
CN111510902B (en) Bluetooth device and Bluetooth state switching method and device thereof
CN111934724B (en) Wireless communication method for earphone and intelligent device and wireless earphone assembly
US11190556B2 (en) Systems and methods for data management
CN106656274A (en) Voice transmission system
CN113329382A (en) Bluetooth-based time point synchronizing method, device and system
CN106488281A (en) A kind of player method of television audio and control system, TV, communication system
CN103780990A (en) Headset with display function and display method

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