CN114979869A - Earphone state determination method, device, equipment and storage medium - Google Patents

Earphone state determination method, device, equipment and storage medium Download PDF

Info

Publication number
CN114979869A
CN114979869A CN202110198685.5A CN202110198685A CN114979869A CN 114979869 A CN114979869 A CN 114979869A CN 202110198685 A CN202110198685 A CN 202110198685A CN 114979869 A CN114979869 A CN 114979869A
Authority
CN
China
Prior art keywords
earphone
state
vehicle
bluetooth connection
mobile terminal
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.)
Pending
Application number
CN202110198685.5A
Other languages
Chinese (zh)
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.)
Beijing Xuanyuanlian Technology Co ltd
Original Assignee
Beijing Xuanyuanlian 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 Beijing Xuanyuanlian Technology Co ltd filed Critical Beijing Xuanyuanlian Technology Co ltd
Priority to CN202110198685.5A priority Critical patent/CN114979869A/en
Publication of CN114979869A publication Critical patent/CN114979869A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for judging earphone states. A headphone state determination method, comprising: detecting the state of the earphone in real time, wherein the state comprises the following steps: a charged state and a non-charged state; if the earphone is determined to be in a non-charging state, a microphone and a loudspeaker of the earphone are started, and Bluetooth connection is established with a mobile terminal so that the earphone can carry out voice communication; and if the earphone is determined to be in the charging state, closing a microphone and a loudspeaker of the earphone. According to the technical scheme, when the earphone is not charged in the charging bin in the car, the microphone and the loudspeaker are started, and therefore the earphone is convenient for a user to use at any time. When the user uses the earphone, the user still needs to manually open the earphone, and the convenience of the user is improved.

Description

Earphone state determination method, device, equipment and storage medium
Technical Field
The present application relates to the field of headset technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a state of a headset.
Background
The Bluetooth headset is high in power consumption and charging frequency. When the user uses the bluetooth headset in the car, it is often worried that the bluetooth headset cannot be continuously used because the bluetooth headset is powered off. After the Bluetooth headset is charged by the self-contained charger, if the mobile phone is in a call, the Bluetooth headset is required to be connected with the mobile phone to receive the call, and if the microphone and the loudspeaker are in a closed state, the user experience is influenced.
Disclosure of Invention
A primary object of the present application is to provide a method, an apparatus, a device and a storage medium for determining a state of an earphone, so as to solve the above problems.
In order to achieve the above object, according to one aspect of the present application, there is provided a headphone state determination method applied to a headphone, the method including:
detecting the state of the earphone in real time, wherein the state comprises the following steps: a charged state and a non-charged state;
if the earphone is determined to be in a non-charging state, a microphone and a loudspeaker of the earphone are started, and Bluetooth connection is established with the mobile terminal;
and if the earphone is determined to be in the charging state, closing a microphone and a loudspeaker of the earphone.
In one embodiment, if it is determined that the headset is in a non-charging state, the method further comprises:
detecting the battery capacity of the earphone in real time;
and judging whether the electric quantity of the battery is smaller than a preset threshold value, if so, sending a low-voltage message to the vehicle-mounted equipment so that the vehicle-mounted equipment performs connection switching, disconnecting the Bluetooth connection with the earphone and establishing the Bluetooth connection with the mobile terminal.
In one embodiment, after sending the low voltage message to the vehicle-mounted device, the method further comprises:
starting to time from zero;
and when the timing reaches a preset switching time threshold value, shutting down the machine.
According to a second aspect of the present application, a headphone state determination method is applied to an in-vehicle apparatus, the method including:
receiving a low-voltage signal sent by an earphone;
establishing Bluetooth connection with a mobile terminal;
and receiving and playing the voice sent by the mobile terminal.
In one embodiment, after receiving the low voltage signal transmitted by the earphone, the method further comprises:
starting to time from zero;
when the timing reaches a preset switching time threshold value, judging whether the Bluetooth connection with the mobile phone is successfully established;
and if the connection is successfully established, sending a message to the earphone to inform the earphone that the Bluetooth connection is successfully established.
In order to achieve the above object, according to a first aspect of the present application, there is provided a headphone state determination apparatus; applied to a headset, the apparatus comprising:
the detection module is used for detecting the state of the earphone in real time, and the state comprises: a charged state and a non-charged state;
the processing module is used for starting a microphone and a loudspeaker of the earphone and establishing Bluetooth connection with a mobile terminal to enable the earphone to carry out voice communication if the earphone is determined to be in a non-charging state;
and if the earphone is determined to be in the charging state, closing a microphone and a loudspeaker of the earphone.
In one embodiment, the processing module is further configured to,
and judging whether the electric quantity of the earphone is smaller than a preset threshold value, if so, sending a low-voltage message to the vehicle-mounted equipment so as to switch the connection of the vehicle-mounted equipment, disconnecting the Bluetooth connection with the earphone and establishing the Bluetooth connection with the mobile terminal.
In order to achieve the above object, according to a fourth aspect of the present application, there is also provided an earphone state determination device applied to an in-vehicle apparatus, the device including:
the receiving module is used for receiving the low-voltage signal sent by the earphone;
the Bluetooth module is used for establishing Bluetooth connection with the mobile terminal; and receiving and playing the voice sent by the mobile terminal.
In order to achieve the above object, according to a fifth aspect of the present application, there is provided an earphone state determination device; comprising at least one processor and at least one memory; the memory is to store one or more program instructions; the processor is configured to execute one or more program instructions to perform the method of any one of the above.
According to a sixth aspect of the present application, there is provided a computer readable storage medium having one or more program instructions embodied therein for performing the method of any one of the above.
According to the technical scheme, the charging bin capable of charging the Bluetooth headset is specially designed in the vehicle-mounted equipment of the automobile, so that the Bluetooth headset can be charged. When the earphone is charged in the charging chamber, the earphone is not used, and the microphone and the loudspeaker are turned off. When the earphone is not charged in the charging bin, the earphone is used by a user, and the microphone and the loudspeaker are turned on, so that the earphone is convenient for the user to use. According to the technical scheme, the convenience of use of the user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
fig. 1 is a flowchart of a method for determining a state of an earphone according to an embodiment of the present application;
fig. 2 is a schematic diagram of a connection relationship between a charging chamber and an earphone according to an embodiment of the present application;
fig. 3 is a schematic diagram of a control circuit of a headset according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an earphone state determination device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another earphone state determination device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Based on this, the present application proposes an earphone state determination method, which is applied to an earphone, and refer to a flowchart of the earphone state determination method shown in fig. 1; the method comprises the following steps:
step S102, detecting the state of the earphone in real time, wherein the state comprises the following steps: a charged state and a non-charged state;
specifically, a charging bin of the Bluetooth headset is arranged in the vehicle, and the charging bin is used as a front-mounted part of the vehicle, is arranged in the vehicle and is connected to a central control host through a USB data line. The earphone is charged in the charging chamber. The headset is a slave.
The charging state is the state that the earphone is located in a charging bin in the automobile for charging. And the non-charging state is a state in which the earphone is not charged in the charging chamber inside the automobile.
Specifically, the non-charging state refers to a state in which the earphone is taken out of the charging chamber by the user and a voice call is performed.
Referring to fig. 2, a schematic diagram of a connection relationship between a charging chamber and an earphone is shown; be provided with 4 contacts on the earphone, be provided with 4 PIN PIN on the storehouse of charging. When charging, 4 contacts of earphone are inserted on 4 PIN of storehouse of charging, and when the earphone was put into the storehouse of charging, PIN needle and contact can the one-to-one connection, and the mobile unit passes through the USB data line power supply and gives the storehouse of charging, and the storehouse of charging passes through the contact and gives the earphone power supply, simultaneously, can carry out data transmission through USB between earphone and the mobile unit. Of course, more contacts may be provided, and the setting may be flexible.
Specifically, refer to the schematic diagram of the control circuit of the earphone shown in fig. 3; the earphone is internally provided with a central control unit MCU which can be realized by adopting a singlechip. The charging detection circuit, the microphone and the loudspeaker are respectively connected with the central control unit MCU, and the central control unit MCU can control the microphone and the loudspeaker to be turned on and off. The charging detection circuit can detect the current of the charging pin and send the detected electric signal to the MCU; after receiving the current detection signal, the central control unit MCU determines the charging state of the earphone; if the central control unit MCU does not receive the current detection signal, it is determined as a non-charging state.
And step S104, if the earphone is determined to be in a non-charging state, starting a microphone and a loudspeaker of the earphone, and establishing Bluetooth connection with the mobile terminal.
Specifically, if the central control unit MCU in the headset determines that the headset is in a non-charging state, the microphone and the speaker are turned on, and a bluetooth connection is established with the mobile phone, so that the user can use the headset to communicate at any time.
And step S106, if the earphone is determined to be in the charging state, closing a microphone and a loudspeaker of the earphone.
According to the method, the state of the earphone is detected in real time, if the earphone is in a non-charging state, the microphone and the loudspeaker of the earphone are started, and the Bluetooth connection is established with the mobile terminal, so that a user can use the Bluetooth earphone to communicate at any time, and the convenience of the user is improved.
Considering that a bluetooth headset may be powered off, which may cause a poor user experience for a user in a call, in one embodiment, the battery level of the headset is detected in real time if it is determined that the headset is in a non-charging state.
And judging whether the electric quantity of the battery is smaller than a preset threshold value, if so, sending a low-voltage message to the vehicle-mounted equipment so that the vehicle-mounted equipment performs connection switching, disconnecting the Bluetooth connection with the earphone and establishing the Bluetooth connection with the mobile terminal.
For example, the predetermined threshold is 5%, and may be set to other values, specifically flexibly set.
When the earphone detects that the electric quantity of the current battery is 5%, the earphone sends an instruction to the Bluetooth application App of the vehicle-mounted equipment through a Bluetooth SPP protocol, and when the Bluetooth application App of the vehicle-mounted equipment receives a low-power prompt of the earphone, the Bluetooth mode of the vehicle-mounted equipment is actively switched, and the master mode is switched to the slave mode. Meanwhile, the Bluetooth of the vehicle-mounted equipment is simulated into earphone Bluetooth information through a locally stored Link key, and the mobile phone equipment is automatically paired through the Link key.
According to the method, when the electric quantity of the earphone is nearly exhausted, the vehicle-mounted equipment establishes Bluetooth connection with the mobile phone of the user, so that the vehicle-mounted equipment plays voice in the mobile phone, the vehicle-mounted equipment replaces the earphone, and bad experience of the user caused by power failure of the earphone is avoided.
The vehicle-mounted device comprises but is not limited to a sound box, a microphone, a voice player and the like in the automobile, the vehicle-mounted device can intelligently establish Bluetooth connection with the mobile phone, receive and play voice in the mobile phone, and also can receive voice sent by a user and send the voice to the mobile phone.
Specifically, a Bluetooth protocol stack at the bottom layer of the vehicle-mounted device is modified, so that Bluetooth of the vehicle-mounted device supports a master mode and a slave mode. Wherein the default is the master mode. The Bluetooth application (App) is installed in the vehicle-mounted equipment system and can receive data transmitted by the earphone through the USB. Meanwhile, the Bluetooth application App controls the Bluetooth connection process of the vehicle-mounted equipment.
In the invention, the default of the vehicle-mounted equipment is the master mode, the earphone is the slave mode, and the default of the mobile phone is the master mode. And the Bluetooth connection is established between the vehicle-mounted equipment and the earphone, and the Bluetooth connection is established between the mobile phone and the earphone, so that the data communication of the vehicle-mounted equipment, the earphone and the mobile phone is completed. After the earphone and the mobile phone establish Bluetooth connection, the earphone transmits the corresponding Link key to a Bluetooth application App of the mobile phone through a Bluetooth SPP protocol, and the Bluetooth application App of the mobile phone stores the Link key locally after receiving the Link key.
According to the method, when the mobile phone is in a call state and the earphone is taken up and worn by a user after being pulled out from the charging bin, the earphone detects that the current state is in a non-charging state, and the earphone starts the microphone and the loudspeaker of the earphone, so that the user can conveniently carry out call operation.
In an implementation mode, when the earphone detects that the current state is in a non-charging state, and the earphone turns on the microphone and the loudspeaker of the earphone, the volume of the microphone and the loudspeaker can be adjusted to be larger, so that a user can listen more clearly.
In consideration of the fact that the charging bin is failed and normal charging may not be performed, in one implementation mode, when the earphone detects that the current state is in a non-charging state and the earphone starts a microphone and a loudspeaker of the earphone, the vehicle-mounted device detects that the earphone is separated from the charging bin and can also send out a prompt sound, wherein the prompt sound is 'the earphone is taken out and the prompt sound is used for detecting whether the electric quantity is full' to remind a user of checking whether the electric quantity of the earphone is full, and if the electric quantity is not full, the user can continue charging for use. The earphone is prevented from being normally and completely charged due to the failure of the charging bin.
In one embodiment, after the low voltage message is sent to the vehicle-mounted device, timing is started from zero; and when the timing reaches a preset switching time threshold value, shutting down the machine.
For example, the switching time threshold may be 10 seconds, or may be another value, and may be flexibly set. When the vehicle-mounted equipment is within 10 seconds, the Bluetooth connection with the mobile phone can be completed. The headset was turned off within 10 seconds. Therefore, seamless switching is realized, and the conversation of the user in the mobile phone is switched from the earphone to the vehicle-mounted equipment.
In a second aspect, the present application further provides an earphone status determination method applied to an in-vehicle device, where the method includes:
receiving a low-voltage signal sent by an earphone;
establishing Bluetooth connection with a mobile terminal;
and receiving and playing the voice sent by the mobile terminal.
Specifically, the vehicle-mounted device can also receive voice sent by the user and send the voice sent by the user to the mobile terminal through the Bluetooth. Successfully replaces the earphone.
Specifically, the in-vehicle device may be disposed near the user, for example, disposed right and left of the steering wheel. Is arranged in front of the window of the automobile. Therefore, the voice of the user in the driving process can be conveniently captured. Because the user is at the in-process of driving, inconvenient liberation both hands take the cell-phone to connect and make a call, and the bluetooth headset outage then can cause the unable condition of talking of user, influences user's experience.
According to the method, after the vehicle-mounted equipment receives the low-voltage signal sent by the earphone, the vehicle-mounted equipment establishes Bluetooth connection with the mobile terminal and receives the voice sent by the mobile terminal, the earphone is replaced, and bad experience of a user caused by shutdown of the earphone due to low electric quantity is avoided.
In one embodiment, after receiving a low voltage signal sent by the earphone, timing is started from zero;
when the timing reaches a preset switching time threshold, judging whether the Bluetooth connection with the mobile phone is successfully established or not;
and if the connection is successfully established, sending a message to the earphone to inform the earphone that the Bluetooth connection is successfully established.
For example, the switching time threshold may be 10 seconds, or may be another value, and may be flexibly set. When the vehicle-mounted equipment is within 10 seconds, the Bluetooth connection with the mobile phone can be completed. The headset was turned off within 10 seconds.
To further ensure that a seamless handover is achieved, the method further comprises: after the Bluetooth connection between the vehicle-mounted equipment and the mobile phone is established, a message of successful Bluetooth connection is sent to the earphone; and after receiving the message of successful Bluetooth connection sent by the vehicle-mounted equipment, the earphone executes the action of shutdown.
Therefore, the mobile phone can be connected with the vehicle-mounted equipment in advance, and the situation that the user experiences badly due to the fact that the vehicle-mounted equipment is not connected with the mobile phone and is in a neutral connection position after the earphone is turned off is avoided.
It is worth emphasizing that this application has still provided a unique structure's storehouse of charging, see that fig. 2 shows, this storehouse of charging can set up on the mobile unit, and the storehouse of charging is provided with and carries out the pin that accordant connection carries out with bluetooth headset, and the inside in storehouse of charging is provided with the power, and the power is connected with the pin that charges, for the pin power supply.
The structure of the earphone is also improved, and the earphone is provided with a pin capable of being charged, so that the earphone can be charged; when specifically charging, insert the pin that charges of earphone on the pin that charges of four in the storehouse of charging, can enough charge the earphone, can play fixed effect again. The storehouse of charging is provided with the hole that matches with bluetooth headset's earmuff for hold the earmuff of earphone. In the process of driving, after the Bluetooth headset is powered off, a charging bin arranged on the vehicle-mounted equipment in the vehicle can be used for charging. The convenience of the user is greatly improved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Corresponding to the method of the earphone, in a third aspect, the present invention further provides an earphone state determination apparatus, applied to an earphone, as shown in fig. 4, the apparatus includes:
a detecting module 41, configured to detect a state of the earphone in real time, where the state includes: a charged state and a non-charged state;
the processing module 42 is configured to, if it is determined that the headset is in a non-charging state, turn on a microphone and a speaker of the headset, and establish a bluetooth connection with the mobile terminal;
and if the earphone is determined to be in the charging state, closing a microphone and a loudspeaker of the earphone.
In the earphone state judgment device, the detection module 41 detects the state of the earphone in real time, and the processing module 42 starts the microphone and the loudspeaker of the earphone after determining that the earphone is in a non-charging state, so as to establish Bluetooth connection with the mobile terminal. The user can use the Bluetooth headset to communicate at any time, and convenience of the user is improved.
In one embodiment, the processing module 42 is further configured to detect the battery level of the headset in real time; and judging whether the electric quantity of the battery is smaller than a preset threshold value, if so, sending a low-voltage message to the vehicle-mounted equipment so as to switch the connection of the vehicle-mounted equipment, disconnecting the Bluetooth connection with the earphone and establishing the Bluetooth connection with the mobile terminal.
In one embodiment, the processing module 42 is further configured to start timing from zero after sending the low voltage message to the vehicle-mounted device;
and when the timing reaches a preset switching time threshold value, shutting down the machine.
Corresponding to the method of the vehicle-mounted device, in a fourth aspect, the present invention further provides an earphone state determination apparatus, applied to the vehicle-mounted device, as shown in fig. 5, the apparatus including:
a receiving module 51, configured to receive a low voltage signal sent by an earphone;
a bluetooth module 52, configured to establish a bluetooth connection with the mobile terminal; and receiving and playing the voice sent by the mobile terminal.
In one embodiment, the earphone further comprises a timing module, configured to start timing from zero after receiving a low voltage signal sent by the earphone;
the judging module is used for judging whether the Bluetooth connection with the mobile phone is successfully established or not when the timing of the timing module reaches a preset switching time threshold;
and the sending module is used for sending a message to the earphone if the judging module determines that the connection is successfully established, and informing the earphone that the Bluetooth connection is successfully established.
According to a sixth aspect of the present application, there is provided an electronic device; the device may be provided in a headset or in-vehicle device, see fig. 6, comprising at least one processor 61 and at least one memory 62; the memory 62 is used to store one or more program instructions; the processor 61 is configured to execute one or more program instructions to perform any one of the above methods.
In a sixth aspect, the present application also proposes a computer-readable storage medium having embodied therein one or more program instructions for executing the method of any one of the above.
In an embodiment of the invention, the processor may be an integrated circuit chip having signal processing capability. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The processor reads the information in the storage medium and completes the steps of the method in combination with the hardware.
The storage medium may be a memory, for example, which may be volatile memory or nonvolatile memory, or which may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory.
The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), SLDRAM (SLDRAM), and Direct Rambus RAM (DRRAM).
The storage media described in connection with the embodiments of the invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that the functionality described in the present invention may be implemented in a combination of hardware and software in one or more of the examples described above. When software is applied, the corresponding functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for determining the state of a headset, the method being applied to the headset, the method comprising:
detecting the state of the earphone in real time, wherein the state comprises the following steps: a charged state and a non-charged state;
if the earphone is determined to be in a non-charging state, a microphone and a loudspeaker of the earphone are started, and Bluetooth connection is established with the mobile terminal;
and if the earphone is determined to be in the charging state, closing a microphone and a loudspeaker of the earphone.
2. The headset state deciding method according to claim 1, wherein if it is determined that the headset is in a non-charging state, the method further comprises:
detecting the battery capacity of the earphone in real time;
and judging whether the electric quantity of the battery is smaller than a preset threshold value, if so, sending a low-voltage message to the vehicle-mounted equipment so that the vehicle-mounted equipment performs connection switching, disconnecting the Bluetooth connection with the earphone and establishing the Bluetooth connection with the mobile terminal.
3. The headphone state determination method according to claim 2, wherein after sending the low voltage message to the in-vehicle device, the method further comprises:
starting to time from zero;
and when the timing reaches a preset switching time threshold value, shutting down the machine.
4. An earphone state determination method applied to an in-vehicle device, the method comprising:
receiving a low-voltage signal sent by an earphone;
establishing Bluetooth connection with a mobile terminal;
and receiving and playing the voice sent by the mobile terminal.
5. The earphone status determination method according to claim 4, wherein after receiving a low voltage signal transmitted from the earphone, the method further comprises:
starting to time from zero;
when the timing reaches a preset switching time threshold value, judging whether the Bluetooth connection with the mobile phone is successfully established;
and if the connection is successfully established, sending a message to the earphone to inform the earphone that the Bluetooth connection is successfully established.
6. An earphone state determination device applied to an earphone, the device comprising:
the detection module is used for detecting the state of the earphone in real time, and the state comprises: a charged state and a non-charged state;
the processing module is used for starting a microphone and a loudspeaker of the earphone and establishing Bluetooth connection with a mobile terminal to enable the earphone to carry out voice communication if the earphone is determined to be in a non-charging state;
and if the earphone is determined to be in the charging state, closing a microphone and a loudspeaker of the earphone.
7. The headphone state determination apparatus of claim 6, wherein the processing module is further configured to,
and judging whether the electric quantity of the earphone is smaller than a preset threshold value, if so, sending a low-voltage message to the vehicle-mounted equipment so as to enable the vehicle-mounted equipment to carry out connection switching, disconnecting the Bluetooth connection with the earphone and establishing the Bluetooth connection with the mobile terminal.
8. An earphone state determination device applied to an in-vehicle apparatus, the device comprising:
the receiving module is used for receiving the low-voltage signal sent by the earphone;
the Bluetooth module is used for establishing Bluetooth connection with the mobile terminal; and receiving and playing the voice sent by the mobile terminal.
9. An earphone state determination device characterized by comprising: at least one processor and at least one memory; the memory is to store one or more program instructions; the processor, configured to execute one or more program instructions to perform the method of any of claims 1-5.
10. A computer-readable storage medium having one or more program instructions embodied therein for performing the method of any of claims 1-5.
CN202110198685.5A 2021-02-22 2021-02-22 Earphone state determination method, device, equipment and storage medium Pending CN114979869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110198685.5A CN114979869A (en) 2021-02-22 2021-02-22 Earphone state determination method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110198685.5A CN114979869A (en) 2021-02-22 2021-02-22 Earphone state determination method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114979869A true CN114979869A (en) 2022-08-30

Family

ID=82954536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110198685.5A Pending CN114979869A (en) 2021-02-22 2021-02-22 Earphone state determination method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114979869A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040162026A1 (en) * 2003-02-14 2004-08-19 Chu-Chai Hong BluetoothTM hands-free kit structure
CN106981897A (en) * 2017-03-24 2017-07-25 西安蜂语信息科技有限公司 wireless charging method, device, system and Bluetooth earphone
CN107819931A (en) * 2017-10-09 2018-03-20 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal based on wireless headset
CN110168942A (en) * 2017-11-10 2019-08-23 华为技术有限公司 Select method, terminal and the system of bluetooth equipment
CN110166990A (en) * 2018-04-17 2019-08-23 九州创新科技(深圳)有限公司 A kind of infrared gesture control on-vehicle Bluetooth of seamless switching

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040162026A1 (en) * 2003-02-14 2004-08-19 Chu-Chai Hong BluetoothTM hands-free kit structure
CN106981897A (en) * 2017-03-24 2017-07-25 西安蜂语信息科技有限公司 wireless charging method, device, system and Bluetooth earphone
CN107819931A (en) * 2017-10-09 2018-03-20 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal based on wireless headset
CN110168942A (en) * 2017-11-10 2019-08-23 华为技术有限公司 Select method, terminal and the system of bluetooth equipment
CN110166990A (en) * 2018-04-17 2019-08-23 九州创新科技(深圳)有限公司 A kind of infrared gesture control on-vehicle Bluetooth of seamless switching

Similar Documents

Publication Publication Date Title
CN108769856B (en) Method and device for establishing single-wire connection, wireless earphone and charging box
US9774685B2 (en) Electronic device, mobile terminal connection control method, and power control program
US9407981B2 (en) Audio class-compliant charging accessories for wireless headphones and headsets
CN108696784A (en) A kind of method of wireless headset role switching, wireless headset and TWS earphones
US8229144B2 (en) Method and system for switched battery charging and loading in a stereo headset
CN108810696B (en) Electric quantity prompting method, TWS earphone and earphone charging equipment
CN110366062B (en) TWS earphone in-place detection method and system
CN103137158A (en) Method controlling audio playing and terminal
CN113099342A (en) Wireless earphone uncovering and reconnection method and related equipment
CN111601290B (en) Bluetooth sound box, earphone, bluetooth audio playing device, bluetooth sound box system and Bluetooth audio switching method
CN111596881B (en) Audio playing device, audio playing system, switching method, bluetooth sound box and Bluetooth earphone
CN216086972U (en) Power control circuit, earphone charging box and TWS earphone
CN114979869A (en) Earphone state determination method, device, equipment and storage medium
JPWO2019187736A1 (en) Speaker device and allocation method
JP2004129253A (en) Wireless headphone provided with connecting bush
CN206657657U (en) A kind of sound pick-up outfit
JP5205897B2 (en) Portable content processing apparatus, control method, and program
CN104901395B (en) Prompt the method and old man's intelligent charge base of charging
CN114980043A (en) Vehicle-mounted machine Bluetooth connection method, vehicle-mounted machine Bluetooth application, electronic device and storage medium
CN110209372A (en) Earphone connects system and method
JP6693660B1 (en) Charging device, its control method, and its control program
CN113890150B (en) Earphone charging method and device
CN117255281A (en) Automatic pairing method, system, equipment and medium of TWS Bluetooth headset
KR20040003256A (en) Device and method for charging using jack for ear mic phone in mobile telephone
CN114245350A (en) Earphone interaction control method, system, equipment and storage medium

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