[go: up one dir, main page]

CN110519672A - Communication system and method based on bluetooth headset and pedestal - Google Patents

Communication system and method based on bluetooth headset and pedestal Download PDF

Info

Publication number
CN110519672A
CN110519672A CN201910807927.9A CN201910807927A CN110519672A CN 110519672 A CN110519672 A CN 110519672A CN 201910807927 A CN201910807927 A CN 201910807927A CN 110519672 A CN110519672 A CN 110519672A
Authority
CN
China
Prior art keywords
communication
pedestal
bluetooth headset
bluetooth
pulse
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
CN201910807927.9A
Other languages
Chinese (zh)
Other versions
CN110519672B (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.)
Guangdong Antexin Technology Co ltd
Original Assignee
Shenzhen Ante Trust 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 Ante Trust Technology Co Ltd filed Critical Shenzhen Ante Trust Technology Co Ltd
Priority to CN201910807927.9A priority Critical patent/CN110519672B/en
Publication of CN110519672A publication Critical patent/CN110519672A/en
Application granted granted Critical
Publication of CN110519672B publication Critical patent/CN110519672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/40Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
    • H04B5/48Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供的基于蓝牙耳机与底座的通讯系统,底座包括相互电连接的处理器和底座通信电路,其中底座通信电路上设有两个底座端子;蓝牙耳机包括相互电连接的蓝牙芯片和蓝牙通信电路,其中蓝牙通信电路上设有两个耳机端子;蓝牙耳机接入底座时,两个耳机端子分别与两个底座端子连接;所述底座通信电路用于接收到处理器的切换指令时,进行与蓝牙耳机的充电或脉冲通信;所述蓝牙通信电路用于与所述底座通信电路进行通信,进行与底座的充电或脉冲通信。该系统增加了脉冲通信功能,可直接底座与蓝牙耳机一对一的通信功能。时间上来说,脉冲信号不易发生重叠混乱,通信更加可靠,提高底座与蓝牙耳机的通信可靠性,提高通信效率,提升用户体验。

The communication system based on the bluetooth earphone and the base provided by the present invention, the base includes a processor and a base communication circuit electrically connected to each other, wherein the base communication circuit is provided with two base terminals; the bluetooth earphone includes a bluetooth chip and a bluetooth communication circuit electrically connected to each other circuit, wherein the bluetooth communication circuit is provided with two earphone terminals; when the bluetooth earphone is connected to the base, the two earphone terminals are respectively connected to the two base terminals; Charging or pulse communication with the Bluetooth headset; the Bluetooth communication circuit is used to communicate with the base communication circuit for charging or pulse communication with the base. The system adds a pulse communication function, which can directly communicate with the Bluetooth headset one-to-one. In terms of time, the pulse signal is less prone to overlap and confusion, and the communication is more reliable, which improves the communication reliability between the base and the Bluetooth headset, improves communication efficiency, and improves user experience.

Description

基于蓝牙耳机与底座的通讯系统及方法Communication system and method based on bluetooth headset and base

技术领域technical field

本发明属于蓝牙耳机技术领域,具体涉及基于蓝牙耳机与底座的通讯系统及方法。The invention belongs to the technical field of bluetooth earphones, and in particular relates to a communication system and method based on a bluetooth earphone and a base.

背景技术Background technique

当下市面上主流的蓝牙耳机大多为真无线TWS蓝牙耳机,这类蓝牙耳机往往有与之相配的底座,这类底座同时具备收纳蓝牙耳机和给蓝牙耳机充电的功能。随着蓝牙耳机行业的技术日渐成熟,蓝牙耳机的功能设计方面也日益优化,且用户对底座的功能需求也不仅仅满足停留在充电收纳的功能上,而是希望越来越贴合蓝牙耳机功能的实现,辅助功能更为明显。如具备发送配对命令、复位耳机、获取耳机信息等功能。但是这方面的功能实现就需要底座与蓝牙耳机之间建立通信,进行信息交互。Most of the mainstream Bluetooth headsets on the market today are true wireless TWS Bluetooth headsets. This type of Bluetooth headset often has a matching base. This base has the functions of storing Bluetooth headsets and charging Bluetooth headsets. As the technology of the Bluetooth headset industry matures, the functional design of the Bluetooth headset is also increasingly optimized, and the user's functional requirements for the base are not only satisfied with the charging and storage function, but hope that it will be more and more suitable for the Bluetooth headset function. The realization of the auxiliary function is more obvious. For example, it has functions such as sending pairing commands, resetting the headset, and obtaining headset information. However, the realization of this function requires the establishment of communication between the base and the Bluetooth headset for information exchange.

市面上现有的一些带通信功能的底座,主要通过蓝牙无线广播的形式或与蓝牙耳机间建立单线通信的形式进行信息交互。但是蓝牙无线广播的信息交互方式存在广播扫描发生冲突的缺陷,导致蓝牙耳机或底座无法及时获取对方信息或获取信息混乱的问题。单线通信的方式是蓝牙无线广播通信方式的优化方案,可直接实现底座与蓝牙耳机一对一进行通信操作。底座作为主机,收到外部操作后主动开启通信,通信超时或者挥手后切换状态给耳机充电。但单线通信的通信方式,是靠一根信号线完成双向通信,在通信机制中规定好了主机和从机的关系,确定好了主从机对应的命令码,并由主机发起通信请求,来读取从机通信数据。具体来讲就是每次通信都是先有主机发送信号,然后在规定的时间后接收信号。这种通信虽然提高了底座与蓝牙耳机通信的可靠性,但通信的速度慢,因为要留出足够的延时等待主从机的端口进行读写切换,比较浪费时间,十分影响用户体验。因此,如何实现底座与蓝牙耳机间可靠且高效率的通信,提高用户体验,是当下蓝牙耳机技术中急需解决的问题。Some existing bases with communication functions on the market mainly exchange information through Bluetooth wireless broadcasting or establishing single-line communication with Bluetooth headsets. However, the information interaction method of Bluetooth wireless broadcasting has the defect of broadcast scanning conflict, which leads to the problem that the Bluetooth headset or base cannot obtain the other party's information in time or obtain information confusion. The single-wire communication method is an optimized scheme of the Bluetooth wireless broadcast communication method, which can directly realize one-to-one communication operation between the base and the Bluetooth headset. The base acts as the host, actively opens the communication after receiving an external operation, and switches the state to charge the headset after the communication times out or waves. However, the communication method of single-line communication is to rely on one signal line to complete two-way communication. The relationship between the master and the slave is stipulated in the communication mechanism, and the command code corresponding to the master and slave is determined, and the master initiates a communication request. Read slave communication data. Specifically, each communication is first sent by the host computer, and then receives the signal after a specified time. Although this kind of communication improves the reliability of the communication between the base and the Bluetooth headset, the communication speed is slow, because there is enough delay to wait for the master-slave port to switch between reading and writing, which is a waste of time and greatly affects the user experience. Therefore, how to realize reliable and efficient communication between the base and the Bluetooth headset and improve user experience is an urgent problem to be solved in the current Bluetooth headset technology.

发明内容Contents of the invention

针对现有技术中的缺陷,本发明提供基于蓝牙耳机与底座的通讯系统及方法,提高了通信的可靠性和效率,提升用户体验。Aiming at the defects in the prior art, the present invention provides a communication system and method based on a Bluetooth headset and a base, which improves the reliability and efficiency of communication and improves user experience.

第一方面,一种基于蓝牙耳机与底座的通讯系统,In the first aspect, a communication system based on a Bluetooth headset and a base,

所述底座包括相互电连接的处理器和底座通信电路,其中所述底座通信电路上设有两个底座端子;所述蓝牙耳机包括相互电连接的蓝牙芯片和蓝牙通信电路,其中所述蓝牙通信电路上设有两个耳机端子;The base includes a processor and a base communication circuit electrically connected to each other, wherein the base communication circuit is provided with two base terminals; the Bluetooth headset includes a Bluetooth chip and a Bluetooth communication circuit electrically connected to each other, wherein the Bluetooth communication There are two earphone terminals on the circuit;

所述蓝牙耳机接入底座时,所述两个耳机端子分别与两个底座端子连接;When the Bluetooth headset is connected to the base, the two earphone terminals are respectively connected to the two base terminals;

所述底座通信电路用于接收到处理器的切换指令时,进行与蓝牙耳机的充电或脉冲通信;所述蓝牙通信电路用于与所述底座通信电路进行通信,进行与底座的充电或脉冲通信。The base communication circuit is used to perform charging or pulse communication with the Bluetooth headset when receiving a switching instruction from the processor; the Bluetooth communication circuit is used to communicate with the base communication circuit to perform charging or pulse communication with the base .

优选地,所述底座通信电路包括场效应管Q1、三极管Q2和三极管Q3;Preferably, the base communication circuit includes a field effect transistor Q1, a triode Q2 and a triode Q3;

所述处理器的5V输出信号接场效应管Q1的源极,场效应管Q1的栅极通过电阻R1接场效应管Q1的源极,场效应管Q1的栅极还接三极管Q3的集电极,三极管Q3的发射极接地,三极管Q3的基极通过电阻R7接至处理器的左耳控制输出端;场效应管Q1的漏极通过电阻R3接三极管Q2的基极,场效应管Q1的漏极还通过依次串联电阻R8、电阻R9接至处理器的串口接收口,电阻R8和电阻R9的中间节点还通过电阻R10接至处理器的串口发送口,电阻R8和电阻R3的中间节点通过电容C3接至电阻R8和电阻R9的中间节点;The 5V output signal of the processor is connected to the source of the field effect transistor Q1, the gate of the field effect transistor Q1 is connected to the source of the field effect transistor Q1 through the resistor R1, and the gate of the field effect transistor Q1 is also connected to the collector of the transistor Q3 , the emitter of transistor Q3 is grounded, the base of transistor Q3 is connected to the left ear control output terminal of the processor through resistor R7; the drain of field effect transistor Q1 is connected to the base of transistor Q2 through resistor R3, and the drain of field effect transistor Q1 The pole is also connected to the serial port receiving port of the processor by serially connecting resistors R8 and R9 in series, the intermediate node of the resistor R8 and the resistor R9 is also connected to the serial port sending port of the processor through the resistor R10, and the intermediate node of the resistor R8 and the resistor R3 is connected to the serial port of the processor through the capacitor C3 is connected to the middle node of resistor R8 and resistor R9;

三极管Q2的发射极接至处理器的输出口,三极管Q2的基极还分别通过电阻R4和电容C2连接至三极管Q2的发射极,三极管Q2的集电极通过电阻R2接地;三极管Q2的集电极接至处理器的输入口;The emitter of transistor Q2 is connected to the output port of the processor, the base of transistor Q2 is also connected to the emitter of transistor Q2 through resistor R4 and capacitor C2, and the collector of transistor Q2 is grounded through resistor R2; the collector of transistor Q2 is connected to to the input port of the processor;

电阻R8和电容C3的中间节点作为一底座端子输出;处理器的电流检测输出端通过电阻R5输出另一底座端子,处理器的电流检测输出端和电阻R5的中间节点通过电容C1接地,电阻R5和底座端子的中间节点通过电阻R6接地,电阻R6和底座端子的中间节点接至处理器的底座输出负极。The intermediate node between resistor R8 and capacitor C3 is output as a base terminal; the current detection output terminal of the processor outputs another base terminal through resistor R5, and the intermediate node between the current detection output terminal of the processor and resistor R5 is grounded through capacitor C1, and resistor R5 The intermediate node between the resistor R6 and the base terminal is grounded through the resistor R6, and the intermediate node between the resistor R6 and the base terminal is connected to the base output negative pole of the processor.

优选地,所述蓝牙通信电路包括场效应管Q6和三极管Q7;Preferably, the Bluetooth communication circuit includes a field effect transistor Q6 and a triode Q7;

所述一耳机端子接地;The earphone terminal is grounded;

另一耳机端子接场效应管Q6的源极,该耳机端子还接蓝牙芯片的电源,该耳机端子还通过电阻R11接地,该耳机端子还通过电阻R12接蓝牙芯片的充电控制端口,该耳机端子还通过电阻R16接蓝牙芯片的输入口,该耳机端子还通过依次串联电容C11、电阻R13接蓝牙芯片的串口发送口,该耳机端子还通过依次串联电阻R15、电阻R14接蓝牙芯片的串口接收口,电容C11和电阻R13的中间节点接电阻R15和电阻R14的中间节点,该耳机端子还通过电阻R17接三极管Q7的集电极,三极管Q7的发射极接地,场效应管Q6的栅极接三极管Q7的集电极,场效应管Q6的漏极接蓝牙芯片的充电端电源,三极管Q7的基极通过电阻R18接蓝牙芯片的充电控制端口。The other earphone terminal is connected to the source of the FET Q6, the earphone terminal is also connected to the power supply of the Bluetooth chip, the earphone terminal is also grounded through the resistor R11, and the earphone terminal is also connected to the charging control port of the Bluetooth chip through the resistor R12. Also connected to the input port of the Bluetooth chip through the resistor R16, the earphone terminal is also connected to the serial port sending port of the Bluetooth chip through the serial connection of the capacitor C11 and the resistor R13 in sequence, and the earphone terminal is also connected to the serial port receiving port of the Bluetooth chip through the serial connection of the resistor R15 and the resistor R14 in sequence , the middle node of the capacitor C11 and the resistor R13 is connected to the middle node of the resistor R15 and the resistor R14, the headphone terminal is also connected to the collector of the transistor Q7 through the resistor R17, the emitter of the transistor Q7 is grounded, and the gate of the field effect transistor Q6 is connected to the transistor Q7 The collector of the field effect transistor Q6 is connected to the charging terminal power supply of the Bluetooth chip, and the base of the triode Q7 is connected to the charging control port of the Bluetooth chip through the resistor R18.

第二方面,一种基于蓝牙耳机与底座的通讯方法,在第一方面所述系统中底座的处理器上运行,包括以下步骤:In the second aspect, a communication method based on the Bluetooth earphone and the base, running on the processor of the base in the system described in the first aspect, includes the following steps:

当接收到充电指令时,将所述充电指令转换为脉冲信号发送给蓝牙耳机,给耳机端子与底座端子电连接的蓝牙耳机进行充电;When the charging command is received, the charging command is converted into a pulse signal and sent to the Bluetooth headset, and the Bluetooth headset electrically connected to the terminal of the headset and the terminal of the base is charged;

当接收到脉冲通信启动指令时,将所述脉冲通信启动指令转换为脉冲信号发送给蓝牙耳机;When the pulse communication start command is received, the pulse communication start command is converted into a pulse signal and sent to the Bluetooth headset;

当接收到通讯数据时,将所述通讯数据转换为脉冲信号发送给蓝牙耳机;When the communication data is received, the communication data is converted into a pulse signal and sent to the Bluetooth headset;

当接收到脉冲通信关闭指令时,将所述脉冲通信关闭指令转换为脉冲信号发送给蓝牙耳机;When receiving the pulse communication closing command, converting the pulse communication closing command into a pulse signal and sending it to the Bluetooth headset;

所述充电指令、脉冲通信启动指令和脉冲通信关闭指令对应的脉冲信号中,脉冲数量和宽度不同。In the pulse signals corresponding to the charging command, the pulse communication start command and the pulse communication close command, the number and width of pulses are different.

优选地,所述当接收到脉冲通信启动指令,将所述脉冲通信启动指令转换为脉冲信号发送给蓝牙耳机具体包括:Preferably, when the pulse communication start command is received, converting the pulse communication start command into a pulse signal and sending it to the Bluetooth headset specifically includes:

当检测到底座的状态为空闲状态时,等待接收所述脉冲通信启动指令,设置底座的状态为发送状态;When it is detected that the state of the base is an idle state, waiting to receive the pulse communication start command, setting the state of the base as the sending state;

当检测到所述底座的状态为发送状态时,处理所述脉冲通信启动指令,将所述脉冲通信启动指令转换为脉冲信号发送给蓝牙耳机,设置底座的状态为接收状态。When it is detected that the state of the base is the sending state, the pulse communication start command is processed, the pulse communication start command is converted into a pulse signal and sent to the Bluetooth headset, and the state of the base is set as the receiving state.

优选地,所述当接收到通讯数据时,将所述通讯数据转换为脉冲信号发送给蓝牙耳机具体包括:Preferably, when the communication data is received, converting the communication data into a pulse signal and sending it to the Bluetooth headset specifically includes:

当检测到所述底座的状态为接收状态时,等待接收所述通讯数据,将接收到的所述通讯数据转换为脉冲信号发送给蓝牙耳机;When it is detected that the state of the base is in the receiving state, waiting to receive the communication data, converting the received communication data into a pulse signal and sending it to the Bluetooth headset;

当检测到所述通讯数据接收完毕或接收超时后,设置底座的状态为完成状态;When it is detected that the communication data has been received or received overtime, the state of the base is set as the completed state;

当检测到所述底座的状态为完成状态时,等待接收新的指令。When it is detected that the state of the base is completed, it waits to receive a new instruction.

优选地,在底座给蓝牙耳机进行充电过程中,当接收到复位信号时,将所述复位信号转换为脉冲信号发送给蓝牙耳机,对蓝牙耳机进行复位。Preferably, when the base is charging the Bluetooth headset, when a reset signal is received, the reset signal is converted into a pulse signal and sent to the Bluetooth headset to reset the Bluetooth headset.

优选地,当在给蓝牙耳机发送脉冲信号后,在预设的时间内没有接收到来自蓝牙耳机的应答信号时,重发该脉冲信号。Preferably, when the pulse signal is not received from the Bluetooth headset within a preset time after the pulse signal is sent to the Bluetooth headset, the pulse signal is resent.

第三方面,一种基于蓝牙耳机与底座的通讯方法,在第一方面所述系统中蓝牙耳机的蓝牙芯片上运行,包括以下步骤:In the third aspect, a communication method based on the Bluetooth headset and the base, running on the Bluetooth chip of the Bluetooth headset in the system described in the first aspect, includes the following steps:

当接收到脉冲信号为充电指令时,设置蓝牙耳机的状态为充电状态,完成与底座之间的充电;在充电过程中,当检测到充电已满时,设置蓝牙耳机的状态为待机状态;When the pulse signal is received as a charging command, set the state of the Bluetooth headset to the charging state, and complete the charging with the base; during the charging process, when it is detected that the charge is full, set the state of the Bluetooth headset to the standby state;

当接收到脉冲信号为脉冲通信启动指令时,等待接收所述通讯数据;When the pulse signal is received as a pulse communication start command, waiting to receive the communication data;

当接收到脉冲信号为脉冲通信关闭指令时,设置蓝牙耳机的状态为充电状态,完成与底座之间的充电;When the pulse signal is received as the command to close the pulse communication, set the state of the Bluetooth headset to the charging state, and complete the charging with the base;

当所述通讯数据接收完毕或接收超时后,设置蓝牙耳机的状态为充电状态,完成与底座之间的充电;When the communication data is received or received overtime, set the state of the Bluetooth headset to the charging state, and complete the charging with the base;

所述充电指令、脉冲通信启动指令和脉冲通信关闭指令对应的脉冲信号中,脉冲数量和宽度不同。In the pulse signals corresponding to the charging command, the pulse communication start command and the pulse communication close command, the number and width of pulses are different.

优选地,当接收到来自底座的脉冲信号时,生成应答信号发送给底座。Preferably, when a pulse signal from the base is received, a response signal is generated and sent to the base.

由上述技术方案可知,本发明提供的基于蓝牙耳机与底座的通讯系统及方法,增加了脉冲通信功能,可实现底座与蓝牙耳机一对一的通信功能。从时间上来说,脉冲信号不易发生重叠混乱,通信更加可靠,底座作为主机,收到外部指令后主动开启通信,发送不同的脉冲信号给蓝牙耳机进行信息交互,短时高效,提高底座与蓝牙耳机的通信可靠性,提高通信效率,提升用户体验。It can be seen from the above technical solution that the communication system and method based on the Bluetooth headset and the base provided by the present invention adds a pulse communication function, and can realize the one-to-one communication function between the base and the Bluetooth headset. In terms of time, the pulse signal is not easy to overlap and confusion, and the communication is more reliable. The base acts as the host, actively starts the communication after receiving external instructions, and sends different pulse signals to the Bluetooth headset for information interaction, which is short-term efficient and improves the base and Bluetooth headset. Communication reliability, improve communication efficiency, and enhance user experience.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍。在所有附图中,类似的元件或部分一般由类似的附图标记标识。附图中,各元件或部分并不一定按照实际的比例绘制。In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the specific embodiments or the prior art. Throughout the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, elements or parts are not necessarily drawn in actual scale.

图1为实施例一提供的通讯系统的模块框图。FIG. 1 is a block diagram of the communication system provided by the first embodiment.

图2为实施例一提供的底座通信电路的电路图。FIG. 2 is a circuit diagram of the base communication circuit provided by the first embodiment.

图3为实施例一提供的蓝牙通信电路的电路图。FIG. 3 is a circuit diagram of the Bluetooth communication circuit provided by the first embodiment.

具体实施方式Detailed ways

下面将结合附图对本发明技术方案的实施例进行详细的描述。以下实施例仅用于更加清楚地说明本发明的技术方案,因此只作为示例,而不能以此来限制本发明的保护范围。需要注意的是,除非另有说明,本申请使用的技术术语或者科学术语应当为本发明所属领域技术人员所理解的通常意义。Embodiments of the technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings. The following examples are only used to illustrate the technical solutions of the present invention more clearly, and therefore are only examples, rather than limiting the protection scope of the present invention. It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application shall have the usual meanings understood by those skilled in the art to which the present invention belongs.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and/or components, but do not exclude one or Presence or addition of multiple other features, integers, steps, operations, elements, components and/or collections thereof.

还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.

如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.

实施例一:Embodiment one:

一种基于蓝牙耳机与底座的通讯系统,参见图1,A communication system based on a Bluetooth headset and a base, see Figure 1,

所述底座包括相互电连接的处理器和底座通信电路,其中所述底座通信电路上设有两个底座端子;所述蓝牙耳机包括相互电连接的蓝牙芯片和蓝牙通信电路,其中所述蓝牙通信电路上设有两个耳机端子;The base includes a processor and a base communication circuit electrically connected to each other, wherein the base communication circuit is provided with two base terminals; the Bluetooth headset includes a Bluetooth chip and a Bluetooth communication circuit electrically connected to each other, wherein the Bluetooth communication There are two earphone terminals on the circuit;

所述蓝牙耳机接入底座时,所述两个耳机端子分别与两个底座端子连接;When the Bluetooth headset is connected to the base, the two earphone terminals are respectively connected to the two base terminals;

所述底座通信电路用于接收到处理器的切换指令时,进行与蓝牙耳机的充电或脉冲通信;所述蓝牙通信电路用于与所述底座通信电路进行通信,进行与底座的充电或脉冲通信。The base communication circuit is used to perform charging or pulse communication with the Bluetooth headset when receiving a switching instruction from the processor; the Bluetooth communication circuit is used to communicate with the base communication circuit to perform charging or pulse communication with the base .

具体地,该通讯系统利用底座和蓝牙耳机的充电脚,在充电脚(即底座端子和耳机端子)不充电的时候,通过不同数量和宽度的脉冲信号实现消息的传递。其通信机制可以设定为:在通信模式下,通信始终由底座发起,底座发送命令后,蓝牙耳机须在100ms内发出应答,100ms内底座没收到应答信号则重发,重发次数由用户自行设定。接收超时设定为:单次脉冲信号发送持续时长不超过1s,超过则信号异常。Specifically, the communication system utilizes the charging pins of the base and the Bluetooth headset, and when the charging pins (that is, the base terminal and the earphone terminal) are not charging, the message is transmitted through pulse signals of different numbers and widths. Its communication mechanism can be set as follows: In the communication mode, the communication is always initiated by the base. After the base sends a command, the Bluetooth headset must send a response within 100ms. If the base does not receive a response signal within 100ms, it will resend. The number of resends is up to the user set up. The receiving timeout setting is: the duration of a single pulse signal transmission does not exceed 1s, and if it exceeds, the signal will be abnormal.

该通讯系统增加了脉冲通信功能,可实现底座与蓝牙耳机一对一的通信功能。从时间上来说,脉冲信号不易发生重叠混乱,通信更加可靠,底座作为主机,收到外部指令后主动开启通信,发送不同的脉冲信号给蓝牙耳机进行信息交互,短时高效,提高底座与蓝牙耳机的通信可靠性,提高通信效率,提升用户体验。The communication system adds a pulse communication function, which can realize the one-to-one communication function between the base and the Bluetooth headset. In terms of time, the pulse signal is not easy to overlap and confusion, and the communication is more reliable. The base acts as the host, actively starts the communication after receiving external instructions, and sends different pulse signals to the Bluetooth headset for information interaction, which is short-term efficient and improves the base and Bluetooth headset. Communication reliability, improve communication efficiency, and enhance user experience.

参见图2,所述底座通信电路包括场效应管Q1、三极管Q2和三极管Q3;Referring to FIG. 2, the base communication circuit includes a field effect transistor Q1, a triode Q2 and a triode Q3;

所述处理器的5V输出信号(图中用5V表示)接场效应管Q1的源极,场效应管Q1的栅极通过电阻R1接场效应管Q1的源极,场效应管Q1的栅极还接三极管Q3的集电极,三极管Q3的发射极接地,三极管Q3的基极通过电阻R7接至处理器的左耳控制输出端(图中用CTRL_OUT_L表示);场效应管Q1的漏极通过电阻R3接三极管Q2的基极,场效应管Q1的漏极还通过依次串联电阻R8、电阻R9接至处理器的串口接收口(图中用BASE_RX_L表示),电阻R8和电阻R9的中间节点还通过电阻R10接至处理器的串口发送口(图中用BASE_TX_L表示),电阻R8和电阻R3的中间节点通过电容C3接至电阻R8和电阻R9的中间节点;The 5V output signal of the processor (represented by 5V in the figure) is connected to the source of the field effect transistor Q1, the gate of the field effect transistor Q1 is connected to the source of the field effect transistor Q1 through the resistor R1, and the gate of the field effect transistor Q1 is connected to the source of the field effect transistor Q1. It is also connected to the collector of the transistor Q3, the emitter of the transistor Q3 is grounded, the base of the transistor Q3 is connected to the left ear control output terminal of the processor through the resistor R7 (indicated by CTRL_OUT_L in the figure); the drain of the field effect transistor Q1 is connected through the resistor R3 is connected to the base of the transistor Q2, and the drain of the field effect transistor Q1 is also connected to the serial port receiving port of the processor through series connection of resistors R8 and R9 in sequence (indicated by BASE_RX_L in the figure), and the intermediate node of the resistor R8 and the resistor R9 is also passed through Resistor R10 is connected to the serial port sending port of the processor (indicated by BASE_TX_L in the figure), and the intermediate node of resistor R8 and resistor R3 is connected to the intermediate node of resistor R8 and resistor R9 through capacitor C3;

三极管Q2的发射极接至处理器的输出口(图中用CTRL_DET_OUT表示),三极管Q2的基极还分别通过电阻R4和电容C2连接至三极管Q2的发射极,三极管Q2的集电极通过电阻R2接地;三极管Q2的集电极接至处理器的输入口(图中用DET_OUT_L表示);The emitter of the transistor Q2 is connected to the output port of the processor (indicated by CTRL_DET_OUT in the figure), the base of the transistor Q2 is connected to the emitter of the transistor Q2 through the resistor R4 and the capacitor C2 respectively, and the collector of the transistor Q2 is grounded through the resistor R2 ; The collector of the triode Q2 is connected to the input port of the processor (indicated by DET_OUT_L in the figure);

电阻R8和电容C3的中间节点作为一底座端子输出;处理器的电流检测输出端(图中用CUR_OUT表示)通过电阻R5输出另一底座端子,处理器的电流检测输出端和电阻R5的中间节点通过电容C1接地,电阻R5和底座端子的中间节点通过电阻R6接地,电阻R6和底座端子的中间节点接至处理器的底座输出负极(图中用表示)。The intermediate node between the resistor R8 and the capacitor C3 is output as a base terminal; the current detection output terminal of the processor (indicated by CUR_OUT in the figure) outputs another base terminal through the resistor R5, and the intermediate node between the current detection output terminal of the processor and the resistor R5 The capacitor C1 is grounded, the middle node between the resistor R5 and the base terminal is grounded through the resistor R6, and the middle node between the resistor R6 and the base terminal is connected to the base output negative pole of the processor (indicated by a in the figure).

具体地,场效应管Q1用于实现底座在充电和脉冲通信之间的切换,底座升压后会通过5V输出口输出5V电压,R8用于限制串口反灌电流,C3用于在串口通信时加速电平变化,三极管Q2用于负载检测。底座打开场效应管Q1的同时,开启升压给蓝牙耳机充电,之后检测蓝牙耳机充电的电流,电流低并持续10s认为蓝牙耳机满电。场效应管Q1开启时,负载检测会失效,此时通过蓝牙耳机充电电流来判断蓝牙耳机是否充满电。Specifically, the field effect transistor Q1 is used to realize the switch between charging and pulse communication of the base. After the base is boosted, it will output 5V voltage through the 5V output port. R8 is used to limit the reverse flow current of the serial port. To speed up the level change, the transistor Q2 is used for load detection. When the base turns on the field effect transistor Q1, it turns on the boost to charge the Bluetooth headset, and then detects the charging current of the Bluetooth headset. If the current is low and lasts for 10s, the Bluetooth headset is considered fully charged. When the FET Q1 is turned on, the load detection will be invalid. At this time, the charging current of the Bluetooth headset is used to judge whether the Bluetooth headset is fully charged.

底座关闭场效应管Q1,CTRL_DET_OUT输出高电平(即脉冲通信启动指令),即可开启脉冲通信,此时负载检测有效,当有蓝牙耳机接入时,DET_OUT_L端口测到高电平,无蓝牙耳机接入时,DET_OUT_L端口为低电平。The base closes the field effect transistor Q1, CTRL_DET_OUT outputs a high level (that is, the pulse communication start command), and the pulse communication can be started. At this time, the load detection is valid. When a Bluetooth headset is connected, the DET_OUT_L port detects a high level, and there is no Bluetooth When the earphone is connected, the DET_OUT_L port is low level.

参见图3,所述蓝牙通信电路包括场效应管Q6和三极管Q7;Referring to Fig. 3, the bluetooth communication circuit includes a field effect transistor Q6 and a triode Q7;

所述一耳机端子接地;The earphone terminal is grounded;

另一耳机端子接场效应管Q6的源极,该耳机端子还接蓝牙芯片的电源(图中用VBUS表示),该耳机端子还通过电阻R11接地,该耳机端子还通过电阻R12接蓝牙芯片的充电控制端口(图中用CHARG_CTRL表示),该耳机端子还通过电阻R16接蓝牙芯片的输入口(图中用DET表示),该耳机端子还通过依次串联电容C11、电阻R13接蓝牙芯片的串口发送口(图中用EAR_TX表示),该耳机端子还通过依次串联电阻R15、电阻R14接蓝牙芯片的串口接收口(图中用EAR_RX表示),电容C11和电阻R13的中间节点接电阻R15和电阻R14的中间节点,该耳机端子还通过电阻R17接三极管Q7的集电极,三极管Q7的发射极接地,场效应管Q6的栅极接三极管Q7的集电极,场效应管Q6的漏极接蓝牙芯片的充电端电源(图中用VCHGER表示),三极管Q7的基极通过电阻R18接蓝牙芯片的充电控制端口。The other earphone terminal is connected to the source of the FET Q6, the earphone terminal is also connected to the power supply of the Bluetooth chip (indicated by VBUS in the figure), the earphone terminal is also grounded through the resistor R11, and the earphone terminal is also connected to the Bluetooth chip through the resistor R12. The charging control port (indicated by CHARG_CTRL in the figure), the earphone terminal is also connected to the input port of the Bluetooth chip through the resistor R16 (indicated by DET in the figure), and the earphone terminal is also connected to the serial port of the Bluetooth chip through the series connection of capacitor C11 and resistor R13. port (represented by EAR_TX in the figure), the headphone terminal is also connected to the serial port receiving port of the Bluetooth chip (represented by EAR_RX in the figure) through serial connection of resistor R15 and resistor R14 in sequence, and the intermediate node between capacitor C11 and resistor R13 is connected to resistor R15 and resistor R14 The earphone terminal is also connected to the collector of the transistor Q7 through the resistor R17, the emitter of the transistor Q7 is grounded, the gate of the field effect transistor Q6 is connected to the collector of the transistor Q7, and the drain of the field effect transistor Q6 is connected to the bluetooth chip. The power supply of the charging terminal (indicated by VCHGER in the figure), the base of the transistor Q7 is connected to the charging control port of the Bluetooth chip through the resistor R18.

具体地,场效应管Q6用于实现蓝牙耳机的充电和通信之间的切换,充电状态下蓝牙芯片CHARG_CTRL端口输出高电平(在蓝牙耳机开机状态下强制开启充电)、输入悬空(在蓝牙耳机关机状态默认开启充电)、输出低电平(打开场效应管Q6,在蓝牙耳机通信状态下强制关闭充电,开启通信)。Specifically, the field effect transistor Q6 is used to realize the switching between charging and communication of the Bluetooth headset. In the charging state, the CHARG_CTRL port of the Bluetooth chip outputs a high level (forcibly turn on charging when the Bluetooth headset is turned on), and the input is suspended (when the Bluetooth headset is turned on). The charging is turned on by default in the shutdown state), and the output is low level (turn on the field effect transistor Q6, and the charging is forcibly turned off in the Bluetooth headset communication state, and the communication is turned on).

DET为耳机复位信号检测脚,悬空输入(通过电阻R16下拉)时,检测蓝牙耳机充电脚上电平的上升沿,当测量到连续两个上升沿的时间为100ms(要求检测精度为10%)时,认为脉冲有效,并令脉冲数量增加1。假设复位信号为5个有效脉冲,当蓝牙耳机在1s内收到5个有效脉冲,即确认收到的指令为复位信号,蓝牙通信电路输出100ms的高电平脉冲复位蓝牙耳机。蓝牙耳机在复位后的1s内不接收DET的信号,1s后才可继续接收DET的信号并执行复位操作。DET is the headphone reset signal detection pin. When the input is floating (pull-down through the resistor R16), it detects the rising edge of the charging pin of the Bluetooth headset. When two consecutive rising edges are measured, the time is 100ms (the detection accuracy is required to be 10%) When , the pulse is considered valid and the number of pulses is increased by 1. Assuming that the reset signal is 5 valid pulses, when the Bluetooth headset receives 5 valid pulses within 1s, it is confirmed that the received command is a reset signal, and the Bluetooth communication circuit outputs a 100ms high-level pulse to reset the Bluetooth headset. The Bluetooth headset does not receive the DET signal within 1s after reset, and can continue to receive the DET signal and perform the reset operation after 1s.

实施例二:Embodiment two:

一种基于蓝牙耳机与底座的通讯方法,在实施例一所述系统中底座的处理器上运行,包括以下步骤:A communication method based on a Bluetooth headset and a base, running on the processor of the base in the system described in Embodiment 1, comprising the following steps:

S1:当接收到充电指令时,将所述充电指令转换为脉冲信号发送给蓝牙耳机,给耳机端子与底座端子电连接的蓝牙耳机进行充电;S1: When a charging command is received, convert the charging command into a pulse signal and send it to the Bluetooth headset to charge the Bluetooth headset whose terminal is electrically connected to the terminal of the base;

S2:当接收到脉冲通信启动指令时,将所述脉冲通信启动指令转换为脉冲信号发送给蓝牙耳机;S2: When the pulse communication start command is received, convert the pulse communication start command into a pulse signal and send it to the Bluetooth headset;

具体地,底座中切换为与蓝牙耳机进行充电或脉冲通信的切换可通过底座开关盖的状态变换来实现。例如当检测到底座开关盖开盖时,认为接收到脉冲通信启动指令,此时可以根据用户输入的指令进行状态查询。Specifically, the switch in the base to charge or pulse communication with the Bluetooth headset can be realized by changing the state of the switch cover of the base. For example, when it is detected that the base switch cover is opened, it is considered to have received a pulse communication start command, and at this time, the status query can be performed according to the command input by the user.

S3:当接收到通讯数据时,将所述通讯数据转换为脉冲信号发送给蓝牙耳机;S3: When the communication data is received, convert the communication data into a pulse signal and send it to the Bluetooth headset;

S4:当接收到脉冲通信关闭指令时,将所述脉冲通信关闭指令转换为脉冲信号发送给蓝牙耳机;S4: When receiving the pulse communication closing command, convert the pulse communication closing command into a pulse signal and send it to the Bluetooth headset;

具体地,底座如果在开关盖开盖状态下检测到关盖,即接收到脉冲通信关闭指令,开始计时,如果在接收到脉冲通信关闭指令1s内,再次检测到开光盖打开,则计时清零,忽略之前开关盖的关盖动作,将底座切换至开盖状态,切换至通信状态。否则底座会在1s后切换为关盖状态,底座恢复至给蓝牙耳机充电的充电状态。Specifically, if the base detects that the cover is closed when the switch cover is open, that is, it receives the pulse communication closing command, it starts counting, and if it detects that the light switching cover is open again within 1s of receiving the pulse communication closing command, the timing is reset. , ignore the closing action of the previous switch cover, switch the base to the open state, and switch to the communication state. Otherwise, the base will switch to the closed cover state after 1 second, and the base will return to the charging state for charging the Bluetooth headset.

所述充电指令、脉冲通信启动指令和脉冲通信关闭指令对应的脉冲信号中,脉冲数量和宽度不同。In the pulse signals corresponding to the charging command, the pulse communication start command and the pulse communication close command, the number and width of pulses are different.

该通讯系统增加了脉冲通信功能,可直接底座与蓝牙耳机一对一的通信功能。从时间上来说,脉冲信号不易发生重叠混乱,通信更加可靠,底座作为主机,收到外部指令后主动开启通信,发送不同的脉冲信号给蓝牙耳机进行信息交互,短时高效,提高底座与蓝牙耳机的通信可靠性,提高通信效率,提升用户体验。The communication system adds a pulse communication function, which can directly communicate with the Bluetooth headset one-to-one. In terms of time, the pulse signal is not easy to overlap and confusion, and the communication is more reliable. The base acts as the host, actively starts the communication after receiving external instructions, and sends different pulse signals to the Bluetooth headset for information interaction, which is short-term efficient and improves the base and Bluetooth headset. Communication reliability, improve communication efficiency, and enhance user experience.

优选地,所述当接收到脉冲通信启动指令,将所述脉冲通信启动指令转换为脉冲信号发送给蓝牙耳机具体包括:Preferably, when the pulse communication start command is received, converting the pulse communication start command into a pulse signal and sending it to the Bluetooth headset specifically includes:

当检测到底座的状态为空闲状态时,等待接收所述脉冲通信启动指令,设置底座的状态为发送状态;When it is detected that the state of the base is an idle state, waiting to receive the pulse communication start command, setting the state of the base as the sending state;

当检测到所述底座的状态为发送状态时,处理所述脉冲通信启动指令,将所述脉冲通信启动指令转换为脉冲信号发送给蓝牙耳机,设置底座的状态为接收状态。When it is detected that the state of the base is the sending state, the pulse communication start command is processed, the pulse communication start command is converted into a pulse signal and sent to the Bluetooth headset, and the state of the base is set as the receiving state.

优选地,所述当接收到通讯数据时,将所述通讯数据转换为脉冲信号发送给蓝牙耳机具体包括:Preferably, when the communication data is received, converting the communication data into a pulse signal and sending it to the Bluetooth headset specifically includes:

当检测到所述底座的状态为接收状态时,等待接收所述通讯数据,将接收到的所述通讯数据转换为脉冲信号发送给蓝牙耳机;When it is detected that the state of the base is in the receiving state, waiting to receive the communication data, converting the received communication data into a pulse signal and sending it to the Bluetooth headset;

当检测到所述通讯数据接收完毕或接收超时后,设置底座的状态为完成状态;When it is detected that the communication data has been received or received overtime, the state of the base is set as the completed state;

当检测到所述底座的状态为完成状态时,等待接收新的指令。When it is detected that the state of the base is completed, it waits to receive a new instruction.

该通讯方法在蓝牙耳机与底座的通信方式方面,设定不同数量和宽度的脉冲信号区分不同的外部指令,制定以上通信机制,在不充电的时候,利用底座和蓝牙耳机的充电脚进行脉冲通信,功耗小,硬件方面无需做其他改动,简单易行,使用便利。In terms of the communication method between the Bluetooth headset and the base, the communication method sets pulse signals of different numbers and widths to distinguish different external commands, formulates the above communication mechanism, and uses the charging pin of the base and the Bluetooth headset for pulse communication when not charging. , low power consumption, no need to make other changes in hardware, simple and easy to use.

在传输效率方面,脉冲通信的单个脉冲的时长在0.2-100ms不等,时长很短,因此相较于现有的单线通信来说,通信速度上提升很大,传输效率高。In terms of transmission efficiency, the duration of a single pulse in pulse communication ranges from 0.2-100ms, which is very short. Therefore, compared with the existing single-wire communication, the communication speed is greatly improved and the transmission efficiency is high.

在通信稳定性方面,各脉冲信号间不存在误判的情况,且脉冲信号受外界干扰性小,抖动小,隔离度高,可长期连续稳定的工作,通信更加稳定可靠。In terms of communication stability, there is no misjudgment between pulse signals, and pulse signals are less subject to external interference, less jitter, high isolation, long-term continuous and stable work, and more stable and reliable communication.

在功能切换方面,因为底座主要的功能还是给蓝牙耳机充电,因此通信功能的实现绝不能影响充电功能的使用。所以该方法设定底座充电和通信的切换,将底座作为主机,当收到外部指令后,再主动发送脉冲信号给蓝牙耳机开启通信,当通信超时或者挥手后继续给蓝牙耳机充电。底座通过开关盖的状态进行状态切换,蓝牙耳机也通过出入仓选择进入相应的状态,两者配合完成充电和通信操作,误触发的概率大大减少。In terms of function switching, because the main function of the base is to charge the Bluetooth headset, the realization of the communication function must not affect the use of the charging function. Therefore, this method sets the switch between charging and communication of the base, and uses the base as the host. After receiving an external command, it actively sends a pulse signal to the Bluetooth headset to start communication, and continues to charge the Bluetooth headset after the communication times out or waves. The base switches the state through the state of the switch cover, and the Bluetooth headset also enters the corresponding state by entering and exiting the bin. The two cooperate to complete the charging and communication operations, and the probability of false triggering is greatly reduced.

该方法操作简单,成本低廉,能有效的完成既定功能,减少不必要的操作,极大的提高了蓝牙耳机使用效果,达到了应用的要求。The method is simple in operation and low in cost, can effectively complete predetermined functions, reduce unnecessary operations, greatly improve the use effect of the bluetooth earphone, and meet the application requirements.

优选地,在底座给蓝牙耳机进行充电过程中,当接收到复位信号时,将所述复位信号转换为脉冲信号发送给蓝牙耳机,对蓝牙耳机进行复位。Preferably, when the base is charging the Bluetooth headset, when a reset signal is received, the reset signal is converted into a pulse signal and sent to the Bluetooth headset to reset the Bluetooth headset.

具体地,底座在给蓝牙耳机充电过程中,在充电10s后发送复位信号对应的脉冲信号给蓝牙耳机,对蓝牙耳机进行复位,蓝牙耳机复位后继续充电,蓝牙耳机充满电后进入待机状态。Specifically, during the charging process of the Bluetooth headset, the base sends a pulse signal corresponding to the reset signal to the Bluetooth headset after charging for 10 seconds to reset the Bluetooth headset.

在对蓝牙耳机进行复位时,底座作为主机,接收到复位信号时,转换为脉冲信号(1s内5个100ms的方波脉冲信号),如果蓝牙耳机在1s内收到5个有效脉冲,即确认收到的信号对应的指令为复位信号,然后底座输出100ms高电平脉冲给蓝牙耳机,复位蓝牙耳机。蓝牙耳机在复位1s内不接收DET的信号,在1s后才继续接收DET的信号。When resetting the Bluetooth headset, the base acts as the host. When receiving the reset signal, it converts to a pulse signal (5 square wave pulse signals of 100ms within 1s). If the Bluetooth headset receives 5 valid pulses within 1s, it is confirmed. The command corresponding to the received signal is a reset signal, and then the base outputs a 100ms high-level pulse to the Bluetooth headset to reset the Bluetooth headset. The Bluetooth headset does not receive the DET signal within 1s of reset, and continues to receive the DET signal after 1s.

优选地,当在给蓝牙耳机发送脉冲信号后,在预设的时间内没有接收到来自蓝牙耳机的应答信号时,重发该脉冲信号。Preferably, when the pulse signal is not received from the Bluetooth headset within a preset time after the pulse signal is sent to the Bluetooth headset, the pulse signal is resent.

具体地,如果应答超时,说明蓝牙耳机可能没有接收到脉冲信号,或者是应答信号受到干扰等,此时需要底座重发该脉冲信号,请求蓝牙耳机再次进行处理。Specifically, if the response times out, it means that the Bluetooth headset may not have received the pulse signal, or the response signal is interfered, etc. At this time, the base needs to resend the pulse signal to request the Bluetooth headset to process again.

本发明实施例所提供的方法,为简要描述,实施例部分未提及之处,可参考前述方法实施例中相应内容。The methods provided in the embodiments of the present invention are for brief description, and for the parts not mentioned in the embodiments, reference may be made to the corresponding content in the foregoing method embodiments.

实施例三:Embodiment three:

一种基于蓝牙耳机与底座的通讯方法,在实施例一所述系统中蓝牙耳机的蓝牙芯片上运行,包括以下步骤:A communication method based on a bluetooth earphone and a base, running on the bluetooth chip of the bluetooth earphone in the system described in the first embodiment, comprising the following steps:

S11:当接收到脉冲信号为充电指令时,设置蓝牙耳机的状态为充电状态,完成与底座之间的充电;在充电过程中,当检测到充电已满时,设置蓝牙耳机的状态为待机状态;S11: When the pulse signal is received as a charging command, set the state of the Bluetooth headset to the charging state, and complete the charging with the base; during the charging process, when it is detected that the charge is full, set the state of the Bluetooth headset to the standby state ;

S12:当接收到脉冲信号为脉冲通信启动指令时,等待接收所述通讯数据;S12: Waiting to receive the communication data when the pulse signal is received as a pulse communication start instruction;

S13:当接收到脉冲信号为脉冲通信关闭指令时,设置蓝牙耳机的状态为充电状态,完成与底座之间的充电;S13: When the pulse signal is received as a command to close the pulse communication, set the state of the Bluetooth headset to the charging state, and complete the charging with the base;

S14:当所述通讯数据接收完毕或接收超时后,设置蓝牙耳机的状态为充电状态,完成与底座之间的充电;S14: When the communication data is received or received overtime, set the state of the Bluetooth headset to the charging state, and complete the charging with the base;

所述充电指令、脉冲通信启动指令和脉冲通信关闭指令对应的脉冲信号中,脉冲数量和宽度不同。In the pulse signals corresponding to the charging command, the pulse communication start command and the pulse communication close command, the number and width of pulses are different.

具体地,当存在以下两种情况时,蓝牙耳机切换到通信状态:1、蓝牙耳机在入仓状态(即蓝牙耳机接入底座时)或充电中,当检测到脉冲通信启动指令后,开启脉冲通信,等待底座信号。2、蓝牙耳机在出仓状态(即蓝牙耳机未接入底座时),检测到入仓动作,关闭充电MOS,开启脉冲通信,等待底座信号。当存在以下三种情况时,蓝牙耳机切换到充电状态:1、蓝牙耳机在通信状态,收到脉冲通信关闭指令,开启充电MOS切换到充电状态。2、蓝牙耳机在通信状态,长时间(2s)未收到串口信号认为通信超时,开启充电MOS切换到充电状态。3、蓝牙耳机在任何状态,检测到出仓状态,开启充电MOS切换到充电状态。Specifically, when the following two situations exist, the Bluetooth headset switches to the communication state: 1. The Bluetooth headset is in the storage state (that is, when the Bluetooth headset is connected to the base) or charging, and when the pulse communication start command is detected, the pulse communication is turned on. Communication, waiting for the base signal. 2. When the Bluetooth headset is out of the warehouse (that is, when the Bluetooth headset is not connected to the base), it detects the action of entering the warehouse, turns off the charging MOS, turns on the pulse communication, and waits for the signal from the base. When the following three situations exist, the Bluetooth headset switches to the charging state: 1. The Bluetooth headset is in the communication state, receives the pulse communication shutdown command, turns on the charging MOS, and switches to the charging state. 2. The Bluetooth headset is in the communication state, and the serial port signal is not received for a long time (2s), it is considered that the communication has timed out, and the charging MOS is turned on to switch to the charging state. 3. When the Bluetooth headset is in any state, it detects the out-of-warehouse state, turns on the charging MOS and switches to the charging state.

脉冲通信时,底座作为主机,收到外部操作后主动开启通信,蓝牙耳机检测到充电脚上的脉冲通信启动指令对应的脉冲信号后开启通信,脉冲通信启动指令对应的脉冲信号为100Khz的高频脉冲信号,此信号单次发送持续时间不超过10ms,通信超时或者检测到脉冲通信关闭指令对应的脉冲信号后给蓝牙耳机充电。During the pulse communication, the base acts as the host and actively starts the communication after receiving an external operation. The Bluetooth headset detects the pulse signal corresponding to the pulse communication start command on the charging pin and then starts the communication. The pulse signal corresponding to the pulse communication start command is a high frequency of 100Khz Pulse signal, the single transmission duration of this signal does not exceed 10ms, and the Bluetooth headset is charged after the communication timeout or the pulse signal corresponding to the pulse communication closing command is detected.

如附图2所示,底座端充电脚发送脉冲通信启动指令对应的脉冲信号后,蓝牙耳机脉冲信号检测脚为DET,检测蓝牙耳机充电脚上的电平上升沿,上升沿后检测上升沿信号,当检测脚检测到100KHz的高频脉冲信号,脉冲通信启动指令对应的脉冲信号,开启通信。As shown in Figure 2, after the charging pin at the base end sends the pulse signal corresponding to the pulse communication start command, the pulse signal detection pin of the Bluetooth headset is DET, which detects the rising edge of the level on the charging pin of the Bluetooth headset, and detects the rising edge signal after the rising edge , when the detection pin detects a 100KHz high-frequency pulse signal, the pulse signal corresponding to the pulse communication start command starts the communication.

开启通信后,底座与蓝牙耳机依靠制定的脉冲信号进行通信,设定不同数量不同宽度的脉冲以区分各外部指令,不同脉冲信号对应不同的功能需求,可依据产品需要设定。After the communication is turned on, the base and the Bluetooth headset rely on the formulated pulse signal to communicate. Set different numbers of pulses with different widths to distinguish external commands. Different pulse signals correspond to different functional requirements, which can be set according to product needs.

优选地,当接收到来自底座的脉冲信号时,生成应答信号发送给底座。Preferably, when a pulse signal from the base is received, a response signal is generated and sent to the base.

本发明实施例所提供的方法,为简要描述,实施例部分未提及之处,可参考前述方法实施例中相应内容。The methods provided in the embodiments of the present invention are for brief description, and for the parts not mentioned in the embodiments, reference may be made to the corresponding content in the foregoing method embodiments.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围,其均应涵盖在本发明的权利要求和说明书的范围当中。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. All of them should be covered by the scope of the claims and description of the present invention.

Claims (10)

1. a kind of communication system based on bluetooth headset and pedestal, which is characterized in that
The pedestal includes the processor being electrically connected to each other and pedestal telecommunication circuit, wherein the pedestal telecommunication circuit is equipped with two A pedestal terminal;The bluetooth headset includes the Bluetooth chip being electrically connected to each other and bluetooth communication circuit, wherein the bluetooth is logical Earphone terminal there are two being set on letter circuit;
When the bluetooth headset access pedestal, described two earphone terminals are connect with two pedestal terminals respectively;
When the pedestal telecommunication circuit is used to receive the switching command of processor, carries out charging or pulse with bluetooth headset and lead to Letter;The bluetooth communication circuit carries out the charging or pulse communication with pedestal for being communicated with the pedestal telecommunication circuit.
2. the communication system based on bluetooth headset and pedestal according to claim 1, which is characterized in that
The pedestal telecommunication circuit includes field-effect tube Q1, triode Q2 and triode Q3;
The 5V output signal of the processor connects the source electrode of field-effect tube Q1, and the grid of field-effect tube Q1 connects field effect by resistance R1 Should pipe Q1 source electrode, the grid of field-effect tube Q1 also connects the collector of triode Q3, the emitter ground connection of triode Q3, triode The base stage of Q3 is connected to the left ear control output end of processor by resistance R7;The drain electrode of field-effect tube Q1 connects three poles by resistance R3 The base stage of pipe Q2, the drain electrode of field-effect tube Q1 also by being sequentially connected in series resistance R8, resistance R9 be connected to the serial ports receiving port of processor, The intermediate node of resistance R8 and resistance R9, which also pass through resistance R10 and is connected to the serial ports of processor, sends mouth, resistance R8 and resistance R3's Intermediate node is connected to the intermediate node of resistance R8 and resistance R9 by capacitor C3;
The emitter of triode Q2 is connected to the delivery outlet of processor, and the base stage of triode Q2 also passes through resistance R4 and capacitor C2 respectively It is connected to the emitter of triode Q2, the collector of triode Q2 is grounded by resistance R2;The collector of triode Q2 is connected to place Manage the input port of device;
The intermediate node of resistance R8 and capacitor C3 are exported as a pedestal terminal;The current detecting output end of processor passes through resistance R5 exports another pedestal terminal, and the current detecting output end of processor and the intermediate node of resistance R5 are grounded by capacitor C1, electricity The intermediate node of resistance R5 and pedestal terminal is grounded by resistance R6, and the intermediate node of resistance R6 and pedestal terminal is connected to processor Pedestal output negative pole.
3. the communication system based on bluetooth headset and pedestal according to claim 2, which is characterized in that
The bluetooth communication circuit includes field-effect tube Q6 and triode Q7;
The one earphone terminal ground connection;
Another earphone terminal connects the source electrode of field-effect tube Q6, which also connects the power supply of Bluetooth chip, and the earphone terminal is also It is grounded by resistance R11, which also passes through the re-charge control port that resistance R12 connects Bluetooth chip, and the earphone terminal is also The input port of Bluetooth chip is connect by resistance R16, the earphone terminal also by being sequentially connected in series capacitor C11, resistance R13 connects bluetooth core The serial ports of piece sends mouth, the earphone terminal also by being sequentially connected in series resistance R15, resistance R14 connect the serial ports receiving port of Bluetooth chip, The intermediate node of the intermediate node connecting resistance R15 and resistance R14 of capacitor C11 and resistance R13, the earphone terminal also pass through resistance R17 connects the collector of triode Q7, the emitter ground connection of triode Q7, and the grid of field-effect tube Q6 connects the current collection of triode Q7 Pole, the drain electrode of field-effect tube Q6 connect the charging end power supply of Bluetooth chip, and the base stage of triode Q7 connects Bluetooth chip by resistance R18 Re-charge control port.
4. a kind of means of communication based on bluetooth headset and pedestal, which is characterized in that any system indsole in claim 1-3 It is run on the processor of seat, comprising the following steps:
When receiving charging instruction, the charging instruction is converted into pulse signal and is sent to bluetooth headset, gives earphone terminal The bluetooth headset being electrically connected with pedestal terminal charges;
When receiving pulse communication enabled instruction, the pulse communication enabled instruction is converted into pulse signal and is sent to bluetooth Earphone;
When receiving communication data, the communication data is converted into pulse signal and is sent to bluetooth headset;
When receiving pulse communication out code, the pulse communication out code is converted into pulse signal and is sent to bluetooth Earphone;
In the charging instruction, pulse communication enabled instruction and the corresponding pulse signal of pulse communication out code, number of pulses With it is of different size.
5. the means of communication based on bluetooth headset and pedestal according to claim 4, which is characterized in that
It is described to receive pulse communication enabled instruction, the pulse communication enabled instruction is converted into pulse signal and is sent to indigo plant Tooth earphone specifically includes:
When the state for detecting pedestal is idle state, the pulse communication enabled instruction to be received is waited, the shape of pedestal is set State is transmission state;
When the state for detecting the pedestal is transmission state, the pulse communication enabled instruction is handled, the pulse is led to Letter enabled instruction is converted to pulse signal and is sent to bluetooth headset, and the state that pedestal is arranged is reception state.
6. the means of communication based on bluetooth headset and pedestal according to claim 5, which is characterized in that
It is described when receiving communication data, the communication data be converted into pulse signal be sent to bluetooth headset and specifically wrap It includes:
When the state for detecting the pedestal is reception state, the communication data to be received is waited, it is described logical by what is received News data are converted to pulse signal and are sent to bluetooth headset;
After detecting that the communication data receives or receive time-out, the state that pedestal is arranged is completion status;
When the state for detecting the pedestal is completion status, new instruction to be received is waited.
7. the means of communication based on bluetooth headset and pedestal according to claim 4, which is characterized in that
It carries out when it receives the reset signal it, the reset signal being converted to arteries and veins in charging process to bluetooth headset in pedestal It rushes signal and is sent to bluetooth headset, bluetooth headset is resetted.
8. the means of communication based on bluetooth headset and pedestal according to claim 4, which is characterized in that
After sending pulse signal to bluetooth headset, the response letter from bluetooth headset is not received by within the preset time Number when, retransmit the pulse signal.
9. a kind of means of communication based on bluetooth headset and pedestal, which is characterized in that blue in any system in claim 1-3 It is run on the Bluetooth chip of tooth earphone, comprising the following steps:
When receiving pulse signal is charging instruction, the state that bluetooth headset is arranged is charged state, is completed between pedestal Charging;During the charging process, when detecting that charging has been expired, the state that bluetooth headset is arranged is standby mode;
When receiving pulse signal is pulse communication enabled instruction, the communication data to be received is waited;
When receive pulse signal be pulse communication out code when, be arranged bluetooth headset state be charged state, complete with Charging between pedestal;
After the communication data receives or receive time-out, the state that bluetooth headset is arranged is charged state, completion and bottom Charging between seat;
In the charging instruction, pulse communication enabled instruction and the corresponding pulse signal of pulse communication out code, number of pulses With it is of different size.
10. the means of communication based on bluetooth headset and pedestal according to claim 9, which is characterized in that
When receiving the pulse signal from pedestal, generates answer signal and be sent to pedestal.
CN201910807927.9A 2019-08-29 2019-08-29 Communication system and method based on bluetooth headset and base Active CN110519672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910807927.9A CN110519672B (en) 2019-08-29 2019-08-29 Communication system and method based on bluetooth headset and base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910807927.9A CN110519672B (en) 2019-08-29 2019-08-29 Communication system and method based on bluetooth headset and base

Publications (2)

Publication Number Publication Date
CN110519672A true CN110519672A (en) 2019-11-29
CN110519672B CN110519672B (en) 2020-11-27

Family

ID=68627894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910807927.9A Active CN110519672B (en) 2019-08-29 2019-08-29 Communication system and method based on bluetooth headset and base

Country Status (1)

Country Link
CN (1) CN110519672B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235708A (en) * 2020-10-29 2021-01-15 深圳市安特信技术有限公司 A test system and method for earphone production
WO2021212797A1 (en) * 2020-04-20 2021-10-28 歌尔股份有限公司 Communication method, earphone and earphone communication system
CN114690080A (en) * 2020-12-29 2022-07-01 Oppo广东移动通信有限公司 Detection method, detection device, storage medium and bearing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170201945A1 (en) * 2014-07-23 2017-07-13 Lg Innotek Co., Ltd. Transmitting apparatus for both wireless charging and short range communication
CN107809696A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to establish the wireless headset interacted with Earphone box
CN109547884A (en) * 2018-09-29 2019-03-29 恒玄科技(上海)有限公司 Charging bluetooth earphone box system and bluetooth headset test macro
CN109739792A (en) * 2018-10-12 2019-05-10 成都必盛科技有限公司 Serial ports charging communication multiplexing method
CN110166871A (en) * 2019-05-31 2019-08-23 歌尔科技有限公司 Earphone charging box, TWS earphone, work state switching method and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170201945A1 (en) * 2014-07-23 2017-07-13 Lg Innotek Co., Ltd. Transmitting apparatus for both wireless charging and short range communication
CN107809696A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to establish the wireless headset interacted with Earphone box
CN109547884A (en) * 2018-09-29 2019-03-29 恒玄科技(上海)有限公司 Charging bluetooth earphone box system and bluetooth headset test macro
CN109739792A (en) * 2018-10-12 2019-05-10 成都必盛科技有限公司 Serial ports charging communication multiplexing method
CN110166871A (en) * 2019-05-31 2019-08-23 歌尔科技有限公司 Earphone charging box, TWS earphone, work state switching method and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021212797A1 (en) * 2020-04-20 2021-10-28 歌尔股份有限公司 Communication method, earphone and earphone communication system
CN112235708A (en) * 2020-10-29 2021-01-15 深圳市安特信技术有限公司 A test system and method for earphone production
CN112235708B (en) * 2020-10-29 2022-07-15 深圳市安特信技术有限公司 A test system and method for earphone production
CN114690080A (en) * 2020-12-29 2022-07-01 Oppo广东移动通信有限公司 Detection method, detection device, storage medium and bearing equipment
WO2022142983A1 (en) * 2020-12-29 2022-07-07 Oppo广东移动通信有限公司 Detection method, detection apparatus, storage medium, and bearer device

Also Published As

Publication number Publication date
CN110519672B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN110519672A (en) Communication system and method based on bluetooth headset and pedestal
CN202979095U (en) Two-bus type fire-fighting telephone system
CN103685749B (en) Communication electricity taking device and method based on mobile phone earphone interface
CN109062847B (en) System on chip, IP core for RS485 serial communication and its control method
WO2021082263A1 (en) Method for communication between wireless earphone and charging case, charging case, tws earphone, and system
CN202183629U (en) Intelligent wireless charger
CN107994627B (en) Mobile power supply control device based on TypeC protocol and PD protocol
CN103716073A (en) Bluetooth device
WO2024007646A1 (en) Direct-current power line carrier type communication circuit and method
CN109089305B (en) Earphone adapter for reducing power consumption of mobile terminal and mobile terminal
CN110474403B (en) Charging base for communication with Bluetooth headset and implementation method
WO2024119709A1 (en) Method for single-chip charging compartment circuit supporting two-way communication of tws earbuds, and device
CN212677356U (en) Wireless charging Bluetooth earphone
CN203734625U (en) Communication signal compensator
JP3734654B2 (en) Telephone line interface circuit
CN113132793A (en) Far-field voice control method, smart television, far-field voice module and connecting line
CN206863735U (en) A kind of bluetooth USB device and its circuit
CN209994359U (en) Sound control switch of low-voltage component
CN212012206U (en) Circuit structure for automatic identification of multiple mobile phone fast charging protocols based on TYPE-C interface
CN201774517U (en) Intelligent high-sensitivity receiver circuit
CN208444019U (en) A kind of low power check device of wireless power device
CN208369316U (en) Distribution based on GSM is far standby to throw communication device
CN221651188U (en) A universal offline voice control system
CN111835045B (en) Charging device and load device
CN107015938A (en) A kind of bluetooth USB device and its circuit

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20241103

Address after: 516000, 4th to 9th floors, Unit 2, Building 1, Zone D, Qunyi Intelligent Manufacturing Industrial Park, South of Sanhe Avenue, Tonghu Town, Zhongkai High tech Zone, Huizhou City, Guangdong Province

Patentee after: Guangdong Antexin Technology Co.,Ltd.

Country or region after: China

Address before: 518000 workshop 401, fuxingda Industrial Park, 2 Lanjing North Road, Zhukeng community, Longtian street, Pingshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN ATX TECHNOLOGY Co.,Ltd.

Country or region before: China