WO2010009636A1 - Bluetooth earphone and method for automatically opening and closing terminal application - Google Patents

Bluetooth earphone and method for automatically opening and closing terminal application Download PDF

Info

Publication number
WO2010009636A1
WO2010009636A1 PCT/CN2009/071517 CN2009071517W WO2010009636A1 WO 2010009636 A1 WO2010009636 A1 WO 2010009636A1 CN 2009071517 W CN2009071517 W CN 2009071517W WO 2010009636 A1 WO2010009636 A1 WO 2010009636A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth headset
sensing
unit
signal
terminal
Prior art date
Application number
PCT/CN2009/071517
Other languages
French (fr)
Chinese (zh)
Inventor
梁卓
王洁
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2010009636A1 publication Critical patent/WO2010009636A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • 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

Abstract

A method for automatically closing a terminal application is provided, the method includes: acquiring a sensing signal with a preset time segment, and judging whether a Bluetooth earphone is separated according to the sensing signal. If so, judgment is made whether a terminal closes an application related with the earphone. If not, a closing signal is transmitted to the terminal. A method for automatically opening a terminal application and a Bluetooth earphone for automatically opening and closing the terminal application are provided.

Description

自动开关终端应用程序的蓝牙耳机及方法 技术领域  Bluetooth headset and method for automatically switching terminal application
本发明涉及耳机, 尤其涉及一种自动开关终端应用程序的蓝牙耳机, 和 一种自动开关终端应用程序的方法。  The present invention relates to earphones, and more particularly to a Bluetooth headset for an automatic switch terminal application, and a method for automatically switching a terminal application.
背景技术 Background technique
随着蓝牙技术的不断发展,从 1.1版本,到现在的 2.0版本, 传输速度达到 每秒 3 Mbps,传输质量越来越好。 在无线音频传输基础上延展而出的 A2DP ( Advanced Audio Distribution Profile, 蓝牙音频传输模型协定)协议可 使支持蓝牙音效传输的装置彼此互联,并达到 16bits, 44.1kHz的 CD音效品质, 用以满足用户收听高品质音乐。 支持 A2DP协议的立体声蓝牙耳机已进入快速 发展时期,应用将更加广泛和便利。  With the continuous development of Bluetooth technology, from 1.1 version to 2.0 version, the transmission speed reaches 3 Mbps per second, and the transmission quality is getting better and better. The A2DP (Advanced Audio Distribution Profile) protocol, which is based on wireless audio transmission, enables devices that support Bluetooth audio transmission to interconnect with each other and achieve 16bits, 44.1kHz CD audio quality for users. Listen to high quality music. Stereo Bluetooth headsets that support the A2DP protocol have entered a period of rapid development, and applications will be more extensive and convenient.
现在支持 A 2 DP的蓝牙耳机能使用户享受高品质的 CD音效。 与此同时蓝牙 耳机已经能做到播放音乐与接听电话自动切换, 有电话呼入时耳机发出提示 音并自动中断正在播放的音乐, 当电话结束后音乐继续播放, 使用户在欣赏 音乐的同时不会错过任何来电。  Bluetooth headsets that now support A 2 DP enable users to enjoy high quality CD sound. At the same time, the Bluetooth headset can automatically switch between playing music and answering the call. When the call comes in, the headset emits a prompt tone and automatically interrupts the music being played. When the call ends, the music continues to play, so that the user does not enjoy the music while listening. Will miss any calls.
发明人在实现本发明过程中发现, 用户在使用立体声蓝牙耳机播放音乐 时,由于某些特殊情况需要取下耳机一段时间,比如要离开房间一会儿,或与 旁边的人交谈,等。 这时,用户可能忘记关闭音乐播放器,这将造成与耳机通讯 的便携设备(手机, PDA ( Personal Digital Assistant, 个人数字助理) ,笔 记本电脑等)的功耗浪费,电池的电能大量损耗和浪费。 现有技术在这方面没 有很好的解决方案来降低不必要的功耗。  In the process of implementing the present invention, the inventor found that when playing music on a stereo Bluetooth headset, the user needs to remove the headset for some time due to some special circumstances, such as leaving the room for a while, or talking to a person next to it. At this time, the user may forget to turn off the music player, which will cause waste of power consumption of the portable device (mobile phone, PDA (Personal Digital Assistant), laptop, etc.) communicating with the headset, and the power consumption of the battery is greatly depleted and wasted. . The prior art does not have a good solution in this respect to reduce unnecessary power consumption.
发明内容 Summary of the invention
本发明实施例要解决的技术问题是提供自动开关终端应用程序的蓝牙耳 机、 方法, 以降低功耗。  A technical problem to be solved by embodiments of the present invention is to provide a Bluetooth headset and method for automatically switching a terminal application to reduce power consumption.
本发明实施例提供一种自动关闭终端应用程序的方法, 包括: 每隔预设的第一时间段获取感应信号, An embodiment of the present invention provides a method for automatically closing a terminal application, including: Acquiring the sensing signal every preset first time period,
根据感应信号判断蓝牙耳机是否脱离,  Determine whether the Bluetooth headset is disconnected based on the sensing signal.
如果蓝牙耳机脱离, 且终端中与耳机相关的应用程序未被关闭或暂停, 则发送关闭或暂停信号至终端。  If the Bluetooth headset is disconnected and the application associated with the headset in the terminal is not turned off or paused, a shutdown or pause signal is sent to the terminal.
本发明实施例还提供一种自动开启终端应用程序的方法, 包括: 每隔预设的第一时间段获取感应信号,  The embodiment of the invention further provides a method for automatically opening a terminal application, comprising: acquiring a sensing signal every preset first time period,
根据感应信号判断蓝牙耳机是否脱离,  Determine whether the Bluetooth headset is disconnected based on the sensing signal.
如果蓝牙耳机未脱离, 且终端中与耳机相关的应用程序被关闭或暂停, 则发送开启信号至终端。  If the Bluetooth headset is not disconnected and the application associated with the headset in the terminal is turned off or paused, an enable signal is sent to the terminal.
本发明实施例还提供一种自动关闭终端应用程序的蓝牙耳机, 包括: 感应单元, 用于每隔预设的第一时间段获取感应信号;  The embodiment of the present invention further provides a Bluetooth headset that automatically closes the terminal application, and includes: a sensing unit, configured to acquire a sensing signal every preset first time period;
第一判断单元, 用于根据感应信号判断蓝牙耳机是否脱离;  a first determining unit, configured to determine, according to the sensing signal, whether the Bluetooth headset is detached;
第二判断单元, 用于判断终端中与耳机相关的应用程序是否被关闭或暂 停;  a second determining unit, configured to determine whether an application related to the headset in the terminal is closed or suspended;
发送单元, 用于在蓝牙耳机脱离, 且与终端中与耳机相关的应用程序未 被关闭或暂停时, 发送关闭或暂停信号至终端。  The sending unit is configured to send a shutdown or pause signal to the terminal when the Bluetooth headset is detached and the application related to the headset in the terminal is not turned off or paused.
本发明实施例还提供一种自动开启终端应用程序的蓝牙耳机, 包括: 感应单元, 用于每隔预设的第一时间段获取感应信号;  The embodiment of the present invention further provides a Bluetooth headset that automatically opens a terminal application, and includes: a sensing unit, configured to acquire a sensing signal every preset first time period;
第一判断单元, 用于判断蓝牙耳机是否脱离;  a first determining unit, configured to determine whether the Bluetooth headset is detached;
第二判断单元, 用于判断终端中与耳机相关的应用程序是否被关闭或暂 停;  a second determining unit, configured to determine whether an application related to the headset in the terminal is closed or suspended;
发送单元, 用于在蓝牙耳机未脱离, 且终端中与耳机相关的应用程序被 关闭或暂停时, 发送开启信号至终端。  The sending unit is configured to send an open signal to the terminal when the Bluetooth headset is not disconnected, and the application related to the headset is turned off or paused in the terminal.
本发明实施例通过感应信号判断耳机的脱离状态, 从而达到通过蓝牙耳 机自动关闭或开启终端应用程序, 降低功耗的有益效果。 附图说明 In the embodiment of the present invention, the detachment state of the earphone is determined by the sensing signal, thereby achieving the beneficial effect of automatically turning off or turning on the terminal application through the Bluetooth headset to reduce power consumption. DRAWINGS
图 1是本发明实施例 1提供的一种自动关闭终端应用程序的方法流程图; 图 2是本发明实施例 1提供的一种自动开启终端应用程序的方法流程图; 图 3是本发明实施例 1提供的一种蓝牙耳机的示意图;  1 is a flowchart of a method for automatically closing a terminal application program according to Embodiment 1 of the present invention; FIG. 2 is a flowchart of a method for automatically opening a terminal application program according to Embodiment 1 of the present invention; A schematic diagram of a Bluetooth headset provided in Example 1;
图 4是本发明实施例 1提供的另一种蓝牙耳机的示意图;  4 is a schematic diagram of another Bluetooth headset according to Embodiment 1 of the present invention;
图 5是本发明实施例 2提供的一种自动关闭终端应用程序的方法流程图; 图 6是本发明实施例 2提供的一种自动开启终端应用程序的方法流程图; 图 7是本发明实施例 2提供的一种自动关闭和开启终端应用程序的方法流 程图;  5 is a flowchart of a method for automatically closing a terminal application according to Embodiment 2 of the present invention; FIG. 6 is a flowchart of a method for automatically opening a terminal application according to Embodiment 2 of the present invention; A flowchart of a method for automatically closing and opening a terminal application provided in Example 2;
图 8是本发明实施例 2提供的一种蓝牙耳机的示意图;  FIG. 8 is a schematic diagram of a Bluetooth headset according to Embodiment 2 of the present invention; FIG.
图 9是本发明实施例 2提供的另一种蓝牙耳机的示意图;  9 is a schematic diagram of another Bluetooth headset according to Embodiment 2 of the present invention;
图 10是本发明实施例 2提供的又一种蓝牙耳机的示意图。  FIG. 10 is a schematic diagram of still another Bluetooth headset according to Embodiment 2 of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
例如, 本发明实施例以音频播放应用程序为例进行说明, 本领域技术人 员可以推知, 在本发明的其他实施例中, 与耳机相关的应用程序还可以为 FM ( Frequency Modula t ion, 频率调制)播放应用程序等, 并且本发明的实施 例中以关闭 /开启操作为例进行说明, 本领域技术人员可以推知, 还可以是暂 停 /开启操作。  For example, the embodiment of the present invention is described by taking an audio playing application as an example. Those skilled in the art may infer that in other embodiments of the present invention, the application related to the earphone may also be FM (Frequency Modulation). The application or the like is played, and the shutdown/open operation is taken as an example in the embodiment of the present invention, and those skilled in the art may infer that it may also be a pause/open operation.
实施例 1  Example 1
如图 1所示,本发明实施例提供一种自动关闭终端应用程序的方法, 包括: As shown in FIG. 1 , an embodiment of the present invention provides a method for automatically closing a terminal application, including:
101、 蓝牙耳机每隔预设的第一时间段获取感应信号, 101. The Bluetooth headset acquires a sensing signal every preset first time period.
102、 根据感应信号判断蓝牙耳机是否脱离, 如果是则执行步骤 103; 否 则返回步骤 101 , 102. Determine, according to the sensing signal, whether the Bluetooth headset is detached, and if yes, perform step 103; Then return to step 101,
103、 判断终端中的音频播放应用程序是否关闭, 如果是则返回步骤 101 ; 否则执行步骤 104 ,  103. Determine whether the audio playing application in the terminal is closed, if yes, return to step 101; otherwise, perform step 104.
104、 发送关闭信号至终端。  104. Send a shutdown signal to the terminal.
本实施例中 103步骤可以在 101步骤之前执行, 即判断终端中的音频播放 应用程序是否关闭, 如果音频播放应用程序没有关闭, 则蓝牙耳机每隔预设 的第一时间段获取感应信号, 根据感应信号判断蓝牙耳机是否脱离, 如果蓝 牙耳机脱离, 则发送关闭信号至终端。  The step 103 in this embodiment may be performed before the step 101, that is, determining whether the audio playing application in the terminal is closed. If the audio playing application is not closed, the Bluetooth headset acquires the sensing signal every preset first time period, according to The sensing signal determines whether the Bluetooth headset is disconnected. If the Bluetooth headset is disconnected, a shutdown signal is sent to the terminal.
如图 2所示, 本发明实施例还提供一种开启终端应用程序的方法, 包括: As shown in FIG. 2, an embodiment of the present invention further provides a method for starting a terminal application, including:
201、 蓝牙耳机每隔预设的第一时间段则获取感应信号, 201. The Bluetooth headset acquires a sensing signal every preset first time period.
202、 根据感应信号判断蓝牙耳机是否脱离, 如果是则返回步骤 201 , 否 则执行步骤 203 ,  202. Determine, according to the sensing signal, whether the Bluetooth headset is detached. If yes, return to step 201, otherwise, go to step 203.
203、 判断终端是否关闭音频播放应用程序, 如果是则执行步骤 204 , 否 则返回步骤 201 ,  203. Determine whether the terminal closes the audio playing application, if yes, execute step 204, otherwise, return to step 201.
204、 发送开启信号至终端。  204. Send an open signal to the terminal.
本实施例中 203步骤可以在 201步骤之前执行, 即判断终端中的音频播放 应用程序是否关闭, 如果音频播放应用程序关闭, 则蓝牙耳机每隔预设的第 一时间段获取感应信号, 根据感应信号判断蓝牙耳机是否脱离, 如果蓝牙耳 机未脱离, 则发送开启信号至终端。  The step 203 in this embodiment may be performed before step 201, that is, determining whether the audio playing application in the terminal is closed. If the audio playing application is closed, the Bluetooth headset acquires a sensing signal every preset first time period, according to the sensing. The signal determines whether the Bluetooth headset is disconnected. If the Bluetooth headset is not disconnected, an open signal is sent to the terminal.
本发明实施例提供的自动关闭终端应用程序的方法和自动开启终端应用 程序的方法, 能够通过感应信号判断耳机的脱离状态, 从而达到通过蓝牙耳 机自动关闭或开启终端应用程序, 降低功耗的有益效果。  The method for automatically closing a terminal application program and the method for automatically opening a terminal application program according to an embodiment of the present invention can determine the detachment state of the earphone by sensing signals, thereby achieving automatic shutdown or opening of the terminal application through the Bluetooth headset, thereby reducing power consumption. effect.
如图 3所示, 本发明实施例还提供一种自动关闭终端的蓝牙耳机 301 , 包 括:  As shown in FIG. 3, an embodiment of the present invention further provides a Bluetooth headset 301 for automatically shutting down a terminal, including:
感应单元 302 , 用于每隔预设的第一时间段获取感应信号;  The sensing unit 302 is configured to acquire a sensing signal every preset first time period;
第一判断单元 303 , 用于根据感应信号判断蓝牙耳机是否脱离; 第二判断单元 304 , 用于判断终端中的音频播放应用程序是否关闭; 发送单元 305 , 用于在蓝牙耳机脱离, 且音频播放应用程序没有关闭时, 发送关闭信号至终端。 The first determining unit 303 is configured to determine, according to the sensing signal, whether the Bluetooth headset is detached; The second determining unit 304 is configured to determine whether the audio playing application in the terminal is closed. The sending unit 305 is configured to send a shutdown signal to the terminal when the Bluetooth headset is detached and the audio playing application is not closed.
在本实施例中第二判断单元可以在第一判断单元判断蓝牙耳机脱离时, 判断终端中的音频播放程序是否关闭, 如果没有关闭, 则通知发送单元发送 关闭信号至终端; 也可以是第二判断单元判断音频播放程序没有关闭时, 通 知第一判断单元判断蓝牙耳机是否脱离, 第一判断单元判断蓝牙耳机脱离, 则通知发送单元发送关闭信号至终端; 还可以是发送单元在第一判断单元判 断蓝牙耳机脱离, 且第二判断单元判断音频播放程序没有关闭时发送关闭信 号至终端。  In this embodiment, the second determining unit may determine, when the first determining unit determines that the Bluetooth headset is detached, whether the audio playing program in the terminal is turned off, and if not, notify the sending unit to send a closing signal to the terminal; or may be the second When the determining unit determines that the audio playing program is not closed, the first determining unit determines whether the Bluetooth headset is detached, and the first determining unit determines that the Bluetooth headset is detached, and notifies the sending unit to send a closing signal to the terminal; or the sending unit is in the first determining unit. The Bluetooth headset is judged to be detached, and the second determining unit determines that the audio playback program is not turned off and sends a shutdown signal to the terminal.
如图 4所示, 本发明实施例还提供一种自动开启终端的蓝牙耳机 401 , 包 括:  As shown in FIG. 4, an embodiment of the present invention further provides a Bluetooth headset 401 that automatically opens a terminal, including:
感应单元 402 , 用于每隔预设的第一时间段获取感应信号;  The sensing unit 402 is configured to acquire a sensing signal every preset first time period;
第一判断单元 403 , 用于根据感应信号判断蓝牙耳机是否脱离; 第二判断单元 404 , 用于判断终端中的音频播放应用程序是否关闭; 发送单元 405 , 用于蓝牙耳机未脱离, 且音频播放应用程序关闭时, 发送 开启信号至终端。  The first determining unit 403 is configured to determine, according to the sensing signal, whether the Bluetooth headset is detached. The second determining unit 404 is configured to determine whether the audio playing application in the terminal is closed. The sending unit 405 is configured to: the Bluetooth headset is not detached, and the audio is played. When the application is closed, an open signal is sent to the terminal.
在本实施例中第二判断单元可以在第一判断单元判断蓝牙耳机未脱离 时, 判断终端中的音频播放程序是否关闭, 如果关闭, 则通知发送单元发送 开启信号至终端; 也可以是第二判断单元判断音频播放程序关闭时, 通知第 一判断单元判断蓝牙耳机是否脱离, 第一判断单元判断蓝牙耳机未脱离, 则 通知发送单元发送开启信号至终端; 还可以是发送单元在第一判断单元判断 蓝牙耳机未脱离, 且第二判断单元判断音频播放程序关闭时发送关闭信号至 终端。  In this embodiment, the second determining unit may determine, when the first determining unit determines that the Bluetooth headset is not detached, whether the audio playing program in the terminal is closed, and if not, notify the sending unit to send an open signal to the terminal; or may be second When the determining unit determines that the audio playing program is off, the first determining unit determines whether the Bluetooth headset is detached, and the first determining unit determines that the Bluetooth headset is not detached, and notifies the sending unit to send an open signal to the terminal; or the sending unit is in the first determining unit. It is judged that the Bluetooth headset is not disengaged, and the second judging unit judges that the off signal is sent to the terminal when the audio play program is turned off.
本发明实施例提供的自动关闭终端应用程序的蓝牙耳机和自动开启终端 应用程序的蓝牙耳机, 能够通过感应信号判断耳机的脱离状态, 从而达到通 过蓝牙耳机自动关闭或开启终端应用程序, 降低功耗的有益效果。 实施例 2 The Bluetooth headset that automatically closes the terminal application and the Bluetooth headset that automatically opens the terminal application provided by the embodiment of the present invention can determine the detachment state of the earphone through the sensing signal, thereby achieving the Over-the-Bluetooth headset automatically turns off or turns on the terminal application, reducing the benefits of power consumption. Example 2
如图 5所示,本发明实施例提供一种自动关闭终端应用程序的方法, 包括: As shown in FIG. 5, an embodiment of the present invention provides a method for automatically closing a terminal application, including:
501、 每隔预设的第一时间段(TimeToSample ) , 获取感应电信号,501. Acquire an inductive electrical signal every preset first time period (TimeToSample),
502、 将感应电信号转换成感应数字信号, 502. Convert the inductive electrical signal into an inductive digital signal.
503、 根据感应数字信号计算出感应值, 将所述感应值与保存的比较值进 行比较, 判断蓝牙耳机是否脱离, 如果是则执行步骤 504 , 如果否则返回步骤 501 ,  503. Calculate the sensing value according to the sensing digital signal, compare the sensing value with the saved comparison value, determine whether the Bluetooth headset is detached, and if yes, perform step 504, if otherwise, return to step 501.
504、 判断计时值 T是否为 0, 如果是则执行步骤 508 , 如果否则执行步骤 504. Determine whether the timing value T is 0. If yes, perform step 508, if otherwise, perform step
505 , 505,
505、 判断计时值 T是否大于等于预设的第二时间段(TimeToStop ) , 如 果是则执行步骤 506 , 如果否则返回步骤 501 ,  505. Determine whether the timing value T is greater than or equal to a preset second time period (TimeToStop). If yes, execute step 506. If not, return to step 501.
506、 判断终端的相关的音频播放应用程序是否已经关闭, 如果是则返回 步骤 501 , 如果否则执行步骤 507 ,  506. Determine whether the related audio playing application of the terminal has been closed. If yes, return to step 501. If not, perform step 507.
507、 发送关闭信号给终端, 终端关闭所述相关的音频播放应用程序, 507. Send a shutdown signal to the terminal, and the terminal closes the related audio playback application.
508、 开始计时。 508, start timing.
上述感应电信号可以是压力感应电信号, 则上述步骤 502具体包括将压力 感应电信号转化为压力感应数字信号, 上述步骤 503具体包括根据压力感应数 字信号计算出当前的压力值 CurrentP, 当 CurrentP小于预存的大气中的最大 压力值 Out s idePMax,或者 CurrentP小于预存的耳机戴在耳朵上的最小压力值 PersonPMin时, 则判断蓝牙耳机脱离, 执行步骤 504 , 否则返回步骤 501。  The step 502 specifically includes converting the pressure sensing electrical signal into a pressure sensing digital signal. The step 503 specifically includes calculating a current pressure value CurrentP according to the pressure sensing digital signal, when the CurrentP is less than If the maximum pressure value Out s idePMax in the pre-stored atmosphere is less than the minimum pressure value PersonPMin of the pre-stored earphone on the ear, the Bluetooth headset is determined to be disengaged, and step 504 is performed; otherwise, the process returns to step 501.
上述感应电信号可以是温度感应电信号, 则上述步骤 502具体包括将温度 感应电信号转化为温度感应数字信号, 上述步骤 503具体包括根据温度感应数 字信号计算出当前的温度值 CurrentTemp , 当 CurrentTemp处于大气温度的范 围内, 即预存的大气温度最低值(Out s ideTempMin) <= CurrentTemp <=预存 的大气温度最高值(Out s ideTempMax) , 且 CurrentTemp小于预存的人体耳朵的 最低温度值 PersonTempMin时, 则判断蓝牙耳机脱离, 执行步骤 504 , 否则返 回步骤 501。 The step 502 specifically includes converting the temperature sensing electrical signal into a temperature sensing digital signal. The step 503 specifically includes calculating a current temperature value CurrentTemp according to the temperature sensing digital signal, when the CurrentTemp is at Within the range of atmospheric temperature, ie the pre-existing minimum atmospheric temperature (Out s ideTempMin) <= CurrentTemp <= the highest pre-existing atmospheric temperature (Out s ideTempMax), and the CurrentTemp is smaller than the pre-existing human ear When the lowest temperature value PersonTempMin is determined, the Bluetooth headset is determined to be disengaged, and step 504 is performed; otherwise, the process returns to step 501.
上述步骤 506具体包括判断所述音频播放应用程序的关闭标识 ( I sStop ) 值是否为真 (TRUE ) , 如果是则返回步骤 501 , 如果否则执行步骤 507 ; 上述 步骤 507还包括将所述音频播放应用程序的关闭标识值设置为真。  The step 506 includes: determining whether the value of the closing identifier (I sStop ) of the audio playing application is true (TRUE), if yes, returning to step 501, if otherwise, performing step 507; the step 507 further includes playing the audio. The application's shutdown identity value is set to true.
如图 6所示,本发明实施例提供一种自动开启终端应用程序的方法, 包括: As shown in FIG. 6, an embodiment of the present invention provides a method for automatically starting a terminal application, including:
601、 每隔预设的第一时间段(TimeToSample ) , 获取感应电信号,601. Acquire an inductive electrical signal every preset first time period (TimeToSample),
602、 将感应电信号转换成感应数字信号, 602. Convert the inductive electrical signal into an inductive digital signal.
603、 根据感应数字信号计算出感应值, 将所述感应值与保存的比较值进 行比较, 判断蓝牙耳机是否脱离, 如果否则执行步骤 604 , 如果是则返回步骤 601 ,  603. Calculate the sensing value according to the sensing digital signal, compare the sensing value with the saved comparison value, determine whether the Bluetooth headset is detached, and if otherwise, perform step 604, if yes, return to step 601.
604、 判断终端的相关音频播放应用程序是否关闭, 如果是则执行步骤 605 , 如果否则返回步骤 601 ,  604. Determine whether the related audio playback application of the terminal is closed. If yes, execute step 605. If not, return to step 601.
605、 发送开启信号给终端,  605. Send an open signal to the terminal,
606、 终端开启音频播放应用程序。  606. The terminal starts an audio playing application.
上述感应电信号可以是压力感应电信号, 则上述步骤 602具体包括将压力 感应电信号转化为压力感应数字信号, 上述步骤 603具体包括根据压力感应数 字信号计算出当前的压力值 CurrentP, 当 CurrentP大于预存的大气中的最大 压力值 Out s idePMax,或者 CurrentP大于预存的耳机戴在耳朵上的最小压力值 PersonPMin时时, 则判断蓝牙耳机未脱离, 执行步骤 604 , 否则返回步骤 601。  The above-mentioned inductive electrical signal may be a pressure-induced electrical signal, and the above step 602 specifically includes converting the pressure-induced electrical signal into a pressure-sensing digital signal. The step 603 specifically includes calculating a current pressure value CurrentP according to the pressure-sensing digital signal, when CurrentP is greater than If the maximum pressure value Out s idePMax in the pre-stored atmosphere is greater than the minimum pressure value PersonPMin of the pre-stored earphone on the ear, it is determined that the Bluetooth earphone is not disengaged, and step 604 is performed; otherwise, the process returns to step 601.
上述感应电信号可以是温度感应电信号, 则上述步骤 602具体包括将温度 感应电信号转化为温度感应数字信号, 上述步骤 603具体包括根据温度感应数 字信号计算出当前的温度值 CurrentTemp , 当 CurrentTemp大于预存的人体耳 朵的最低温度值 Per sonTempMin时, 则判断蓝牙耳机未脱离, 执行步骤 604 , 否则返回步骤 601 ;  The step 602 specifically includes converting the temperature sensing electrical signal into a temperature sensing digital signal. The step 603 specifically includes calculating a current temperature value CurrentTemp according to the temperature sensing digital signal, when the CurrentTemp is greater than When the minimum temperature value of the pre-stored human ear is PersonTempMin, it is judged that the Bluetooth earphone is not detached, and step 604 is performed; otherwise, the process returns to step 601;
上述步骤 604具体包括判断所述音频播放应用程序的关闭标识 ( I sStop ) 值是否为真 (TRUE) , 如果是则执行步骤 605; 上述步骤 605还具体包括将关 闭状态标识设置为 4叚(FALSE)值, 即 IsStop=FALSE。 The above step 604 specifically includes determining a closed identifier (I sStop ) of the audio playback application. Whether the value is true (TRUE), if yes, step 605 is performed; the above step 605 further includes setting the off state identifier to a value of 4 叚 (FALSE), that is, IsStop=FALSE.
如图 7所示, 本发明实施例还提供一种自动关闭和开启终端应用程序的方 法, 包括:  As shown in FIG. 7, an embodiment of the present invention further provides a method for automatically closing and starting a terminal application, including:
701、 每隔预设的第一时间段(TimeToSample) , 获取感应电信号, 701. Acquire an inductive electrical signal every preset first time period (TimeToSample).
702、 将感应电信号转换成感应数字信号, 702. Convert the inductive electrical signal into an inductive digital signal.
703、 根据感应数字信号计算出感应值, 将所述感应值与保存的比较值进 行比较, 判断蓝牙耳机是否脱离, 如果是则执行第一分支, 如果否则执行第 二分支,  703. Calculate an sensing value according to the sensing digital signal, compare the sensing value with the saved comparison value, determine whether the Bluetooth headset is detached, and if yes, execute the first branch, if otherwise execute the second branch,
第一分支包括:  The first branch includes:
704、 判断计时值 T是否为 0, 如果是则执行步骤 708, 如果否则执行步骤 704. Determine whether the timing value T is 0. If yes, perform step 708, if otherwise, perform the step.
705, 705,
705、 判断计时值 T是否大于等于预设的第二时间段(TimeToStop) , 如 果是则执行步骤 706, 如果否则返回步骤 701,  705. Determine whether the timing value T is greater than or equal to a preset second time period (TimeToStop). If yes, execute step 706. If not, return to step 701.
706、 判断终端的相关的音频播放应用程序是否关闭, 如果是则返回步骤 701, 如果否则执行步骤 707,  706. Determine whether the related audio playback application of the terminal is closed. If yes, return to step 701. If not, perform step 707.
707、 发送关闭信号给终端, 终端关闭相关的音频播放应用程序, 707. Send a shutdown signal to the terminal, and the terminal closes the related audio playback application.
708、 开始计时; 708, start timing;
第二分支包括:  The second branch includes:
709、 判断终端的相关的音频播放应用程序是否关闭, 如果是则执行步骤 710, 如果否则返回步骤 701,  709. Determine whether the related audio playback application of the terminal is closed. If yes, execute step 710. If not, return to step 701.
710、 发送开启信号给终端, 终端开启相关的音频播放应用程序。  710. Send an open signal to the terminal, and the terminal starts the related audio playing application.
上述感应电信号可以是压力感应电信号, 则上述步骤 702具体包括将压力 感应电信号转化为压力感应数字信号, 上述步骤 703具体包括根据压力感应数 字信号计算出当前的压力值 CurrentP, 当 CurrentP大于预存的大气中的最大 压力值 Outs idePMax,或者 CurrentP大于预存的耳机戴在耳朵上的最小压力值 PersonPMin时时, 则判断蓝牙耳机离, 执行步骤 704, 否则执行步骤 709。 上述感应电信号可以是温度感应电信号, 则上述步骤 702具体包括将温度 感应电信号转化为温度感应数字信号, 上述步骤 703具体包括根据温度感应数 字信号计算出当前的温度值 CurrentTemp, 当 CurrentTemp大于预存的人体耳 朵的最低温度值 PersonTempMin时, 则判断蓝牙耳机脱离, 执行步骤 704, 否 则执行步骤 709; The above-mentioned inductive electrical signal may be a pressure-induced electrical signal, and the above step 702 specifically includes converting the pressure-induced electrical signal into a pressure-sensing digital signal. The step 703 specifically includes calculating a current pressure value CurrentP according to the pressure-sensing digital signal, when CurrentP is greater than The maximum pressure value in the pre-existing atmosphere, Outs idePMax, or CurrentP is greater than the minimum pressure value of the pre-stored earphone on the ear. When PersonPMin is in time, it is determined that the Bluetooth headset is off, and step 704 is performed, otherwise step 709 is performed. The above-mentioned inductive electrical signal may be a temperature-sensing electrical signal, and the above step 702 specifically includes converting the temperature-sensing electrical signal into a temperature-sensing digital signal. The step 703 specifically includes calculating a current temperature value CurrentTemp according to the temperature-sensing digital signal, when CurrentTemp is greater than When the minimum temperature value of the pre-existing human ear is PersonTempMin, it is determined that the Bluetooth headset is detached, and step 704 is performed, otherwise step 709 is performed;
上述步骤 706和 709具体包括判断所述音频播放应用程序的关闭标识 ( IsStop)值是否为真(TRUE) , 步骤 7 O7还包括将所述音频播放应用程序的 关闭标识值设置为真, 即 IsStop= TRUE; 步骤 710还具体包括将关闭状态标识 设置为 4叚(FALSE)值, 即 IsStop=FALSE。 The above-described steps 706 and 709 to close the identification comprises determining audio player application (ISSTOP) whether the value is true (TRUE), 7 O 7 further comprising the step of closing the identification value of the audio player application is true, i.e., IsStop = TRUE; Step 710 also specifically includes setting the off state flag to a value of 4 叚 (FALSE), that is, IsStop = FALSE.
本发明实施例提供的自动关闭终端应用程序的方法、 自动开启终端应用 程序的方法、 以及自动关闭和开启终端应用程序的方法, 能够通过感应信号 判断耳机的脱离状态, 从而达到通过蓝牙耳机自动关闭或开启终端应用程序, 降低功耗的有益效果。  The method for automatically closing a terminal application program, the method for automatically opening a terminal application program, and the method for automatically closing and opening a terminal application program can determine the detachment state of the earphone by sensing signals, thereby automatically closing through the Bluetooth headset. Or turn on the terminal application to reduce the benefits of power consumption.
如图 8所示, 本发明实施例还提供一种自动关闭终端应用程序的蓝牙耳机 801, 包括:  As shown in FIG. 8, the embodiment of the present invention further provides a Bluetooth headset 801 for automatically closing a terminal application, including:
感应单元 802, 用于每隔预设的第一时间段 (TimeToSample)获取感应信 号;  The sensing unit 802 is configured to acquire a sensing signal every preset first time period (TimeToSample);
第一判断单元 803 , 用于根据感应信号判断蓝牙耳机是否脱离;  The first determining unit 803 is configured to determine, according to the sensing signal, whether the Bluetooth headset is detached;
第二判断单元 804, 用于在第一判断单元 803判断蓝牙耳机脱离时, 判断 终端是否关闭音频播放应用程序;  The second determining unit 804 is configured to determine, when the first determining unit 803 determines that the Bluetooth headset is detached, determine whether the terminal closes the audio playing application;
发送单元 805, 用于在第二判断单元 804判断为关闭音频播放应用程序时, 发送关闭信号至终端。  The sending unit 805 is configured to send a shutdown signal to the terminal when the second determining unit 804 determines that the audio playing application is closed.
上述感应单元 802可以包括:  The sensing unit 802 can include:
获取单元 810, 用于每隔预设的第一时间段(TimeToSample) , 获取感应 电信号; 转换单元 811, 用于将所述感应电信号转换成感应数字信号。 The obtaining unit 810 is configured to acquire an inductive electrical signal every preset first time period (TimeToSample); The converting unit 811 is configured to convert the inductive electrical signal into an inductive digital signal.
上述蓝牙耳机 801还可以包括计算单元 807, 用于根据上述感应数字信号 计算感应值。  The Bluetooth headset 801 may further include a computing unit 807 for calculating an inductive value based on the inductive digital signal.
上述蓝牙耳机 801还可以包括:  The above Bluetooth headset 801 can also include:
存储单元 806, 用于存储第一时间段 ( TimeToSample ) 、 第二时间段 (TimeToStop)或比较值。 其中, 感应单元 802获取的是压力感应信号, 相应 地存储单元 806存储的比较值是大气中的最大压力值 OutsidePMax或者耳机戴 在耳朵上的最小压力值 PersonPMin; 感应单元 802获取的是温度感应信号, 相 应地存储单元 806存储的比较值是人体耳朵的最低温度值 PersonTempMin、 大 气温度最高值 (OutsideTempMax)以及大气温度最低值 (Outs ideTempMin)。  The storage unit 806 is configured to store a first time period (TimeToSample), a second time period (TimeToStop), or a comparison value. The sensing unit 802 acquires a pressure sensing signal, and correspondingly, the comparison value stored by the storage unit 806 is the maximum pressure value OutsidePMax in the atmosphere or the minimum pressure value PersonPMin worn by the earphone on the ear; the sensing unit 802 acquires the temperature sensing signal. Correspondingly, the comparison value stored by the storage unit 806 is the lowest temperature value PersonTempMin of the human ear, the highest atmospheric temperature value (OutsideTempMax), and the lowest atmospheric temperature value (Outs ideTempMin).
上述第一判断单元 803可以包括: 比较单元 812, 用于将上述感应值与上 述比较值进行比较; 第一判断子单元 813, 用于根据上述感应值与上述比较值 的比较结果判断所述蓝牙耳机是否脱离。  The first determining unit 803 may include: a comparing unit 812, configured to compare the sensing value with the comparison value; and a first determining subunit 813, configured to determine the Bluetooth according to a comparison result between the sensing value and the comparison value. Whether the headphones are disconnected.
上述蓝牙耳机 801还可以包括计时单元 809和第三判断单元 808 , 第三判断 单元 808用于判断计时单元 809的计时值 T是否为 0, 当计时值 T为 0时, 计时单 元 809开始计时。蓝牙耳机 801还可以包括第四判断单元 814,第四判断单元 814 用于判断脱离的时间是否大于等于第二时间段, 即判断计时单元 809的计时值 是否大于等于第二时间段。 所述第二判断单元 804在所述第四判断单元 814判 断脱离的时间大于等于第二时间段时, 判断终端是否关闭音频播放应用程序。  The Bluetooth headset 801 may further include a timing unit 809 and a third determining unit 808. The third determining unit 808 is configured to determine whether the timing value T of the timing unit 809 is 0. When the timing value T is 0, the timing unit 809 starts timing. The Bluetooth headset 801 may further include a fourth determining unit 814, and the fourth determining unit 814 is configured to determine whether the time of the detachment is greater than or equal to the second time period, that is, whether the timing value of the timing unit 809 is greater than or equal to the second time period. The second determining unit 804 determines whether the terminal closes the audio playing application when the fourth determining unit 814 determines that the detachment time is greater than or equal to the second time period.
如图 9所示, 本发明实施例还提供一种自动开启终端应用程序的蓝牙耳机 901, 包括:  As shown in FIG. 9, the embodiment of the present invention further provides a Bluetooth headset 901 that automatically opens a terminal application, including:
感应单元 902, 用于每隔预设的第一时间段获取感应信号;  The sensing unit 902 is configured to acquire a sensing signal every preset first time period;
第一判断单元 903 , 用于根据感应信号判断蓝牙耳机是否脱离;  The first determining unit 903 is configured to determine, according to the sensing signal, whether the Bluetooth headset is detached;
第二判断单元 904, 用于在第一判断单元 903判断蓝牙耳机未脱离时, 判 断终端是否关闭音频播放应用程序;  The second determining unit 904 is configured to: when the first determining unit 903 determines that the Bluetooth headset is not detached, determine whether the terminal closes the audio playing application;
发送单元 905, 用于在第二判断单元 904判断关闭音频播放应用程序时, 发送开启信号至终端。 The sending unit 905 is configured to, when the second determining unit 904 determines to close the audio playing application, Send an open signal to the terminal.
上述感应单元 902可以包括:  The sensing unit 902 can include:
获取单元 910, 用于每隔预设的第一时间段, 获取感应电信号; 转换单元 911 , 用于将所述感应电信号转换成感应数字信号。  The obtaining unit 910 is configured to obtain an inductive electrical signal every predetermined first time period; and the converting unit 911 is configured to convert the inductive electrical signal into an inductive digital signal.
上述蓝牙耳机 901还可以包括计算单元 907 , 用于根据上述感应数字信号 计算感应值。  The Bluetooth headset 901 may further include a computing unit 907 for calculating an inductive value based on the inductive digital signal.
上述蓝牙耳机 901还可以包括:  The above Bluetooth headset 901 can also include:
存储单元 906: 用于存储第一时间段(TimeToSample ) 、 比较值。 其中, 感应单元 902获取的是压力感应信号, 相应地存储单元 906存储的比较值是大 气中的最大压力值 Out s idePMax、 以及耳机戴在耳朵上的最小压力值 PersonPMin; 感应单元 902获取的是温度感应信号, 相应地存储单元 906存储 的比较值是人体耳朵的最低温度值 Pe r s onTempM i n。  The storage unit 906 is configured to store the first time period (TimeToSample) and compare the values. The sensing unit 902 obtains the pressure sensing signal, and accordingly, the comparison value stored by the storage unit 906 is the maximum pressure value Out s idePMax in the atmosphere, and the minimum pressure value PersonPMin worn by the earphone on the ear; the sensing unit 902 acquires The temperature sensing signal, correspondingly the comparison value stored by the storage unit 906 is the lowest temperature value Pe rs onTempM in of the human ear.
上述第一判断单元 903可以包括: 比较单元 912 , 用于将上述感应值与上 述比较值进行比较; 第一判断子单元 913 , 用于根据上述感应值与上述比较值 的比较结果判断所述蓝牙耳机是否脱离。 当第一判断子单元 913判断蓝牙耳机 未脱离时, 触发第二判断单元 904判断终端是否关闭音频播放应用程序, 当判 断结果为终端关闭音频播放应用程序时, 则触发发送单元 905向终端发送开启 信号, 否则当判断结果为终端未关闭音频播放应用程序时, 感应单元 902继续 获取感应信号。  The first determining unit 903 may include: a comparing unit 912, configured to compare the sensing value with the comparison value, and a first determining subunit 913, configured to determine the Bluetooth according to a comparison result between the sensing value and the comparison value. Whether the headphones are disconnected. When the first determining sub-unit 913 determines that the Bluetooth headset is not detached, the triggering second determining unit 904 determines whether the terminal closes the audio playing application. When the determining result is that the terminal closes the audio playing application, the trigger sending unit 905 sends the opening to the terminal. Signal, otherwise when the judgment result is that the terminal does not turn off the audio playing application, the sensing unit 902 continues to acquire the sensing signal.
如图 10所示, 本发明实施例还提供一种自动关闭和开启终端应用程序的 蓝牙耳机 1001 , 包括:  As shown in FIG. 10, an embodiment of the present invention further provides a Bluetooth headset 1001 for automatically closing and starting a terminal application, including:
感应单元 1002 , 用于每隔预设的第一时间段(TimeToSample ) 获取感应 信号;  The sensing unit 1002 is configured to acquire a sensing signal every preset first time period (TimeToSample);
第一判断单元 1003 , 用于根据感应信号判断蓝牙耳机是否脱离; 第二判断单元 1004 , 用于判断终端是否关闭音频播放应用程序; 发送单元 1005 , 用于发送关闭或开启信号至终端。 上述感应单元 1002可以包括: The first determining unit 1003 is configured to determine, according to the sensing signal, whether the Bluetooth headset is detached. The second determining unit 1004 is configured to determine whether the terminal closes the audio playing application, and the sending unit 1005 is configured to send a close or open signal to the terminal. The sensing unit 1002 may include:
获取单元 1010 , 用于每隔预设的第一时间段(TimeToSample ) , 获取感 应电信号;  The obtaining unit 1010 is configured to obtain an inductive electrical signal every preset first time period (TimeToSample);
转换单元 1011 , 用于将所述感应电信号转换成感应数字信号。  The converting unit 1011 is configured to convert the inductive electrical signal into an inductive digital signal.
上述蓝牙耳机 1001还可以包括计算单元 1007 , 用于根据上述感应数字信 号计算感应值。  The Bluetooth headset 1001 described above may further include a computing unit 1007 for calculating an inductive value based on the inductive digital signal.
上述蓝牙耳机 1001还可以包括:  The above Bluetooth headset 1001 may further include:
存储单元 1006 , 用于存储第一时间段( TimeToSample ) 、 第二时间段 ( TimeToS top )或比较值。 其中, 感应单元 1002获取的是压力感应信号, 相 应地存储单元 1006存储的比较值是大气中的最大压力值 Out s idePMax或者耳 机戴在耳朵上的最小压力值 PersonPMin; 感应单元 1002获取的是温度感应信 号, 相应地存储单元 1006存储的比较值是人体耳朵的最低温度值 PersonTempMin , 大气温度最高值 (Out s ideTempMax)以及大气温度最低值 (Out s ideTempMin) 。  The storage unit 1006 is configured to store the first time period (TimeToSample ), the second time period (TimeToS top ), or a comparison value. The sensing unit 1002 obtains the pressure sensing signal, and correspondingly, the comparison value stored by the storage unit 1006 is the maximum pressure value Out s idePMax in the atmosphere or the minimum pressure value PersonPMin worn by the earphone on the ear; the sensing unit 1002 acquires the temperature. The sensing signal, correspondingly stored by the storage unit 1006, is the lowest temperature value PersonTempMin of the human ear, the highest atmospheric temperature value (Out s ideTempMax), and the lowest atmospheric temperature value (Out s ideTempMin).
上述第一判断单元 1003可以包括: 比较单元 1012 , 用于将上述感应值与 上述比较值进行比较; 第一判断子单元 1013 , 用于根据上述感应值与上述比 较值的比较结果判断所述蓝牙耳机是否脱离。  The first determining unit 1003 may include: a comparing unit 1012, configured to compare the sensing value with the comparison value; the first determining subunit 1013, configured to determine the Bluetooth according to a comparison result between the sensing value and the comparison value Whether the headphones are disconnected.
当第一判断子单元 1013判断蓝牙耳机未脱离时, 将触发第二判断单元 1004判断终端是否关闭音频播放应用程序, 当判断结果为终端关闭音频播放 应用程序时, 则触发发送单元 1005向终端发送开启信号, 否则当判断结果为 终端未关闭音频播放应用程序时, 感应单元 1002继续获取感应信号。  When the first determining sub-unit 1013 determines that the Bluetooth headset is not detached, the second determining unit 1004 is triggered to determine whether the terminal closes the audio playing application. When the determining result is that the terminal closes the audio playing application, the trigger sending unit 1005 sends the terminal to the terminal. The signal is turned on, otherwise, when the judgment result is that the terminal does not turn off the audio playing application, the sensing unit 1002 continues to acquire the sensing signal.
上述蓝牙耳机 1001还可以包括计时单元 1009和第三判断单元 1008 , 第三 判断单元 1008用于判断计时单元 1009的计时值 T是否为 0 , 当计时值 T为 0时, 计时单元 1009开始计时。 蓝牙耳机 1001还可以包括第四判断单元 1014 , 第四 判断单元 1014用于在上述第一判断子单元 813判断蓝牙耳机脱离时判断脱离 的时间是否大于等于第二时间段, 即判断计时单元 1009的计时值是否大于等 于第二时间段。 则所述第二判断单元 1 004在所述第四判断单元 1014判断脱离 的时间大于等于第二时间段时, 判断终端是否关闭音频播放应用程序。 The Bluetooth headset 1001 may further include a timing unit 1009 and a third determining unit 1008. The third determining unit 1008 is configured to determine whether the timing value T of the timing unit 1009 is 0. When the timing value T is 0, the timing unit 1009 starts timing. The Bluetooth headset 1001 may further include a fourth determining unit 1014. The fourth determining unit 1014 is configured to determine, when the first determining subunit 813 determines that the Bluetooth headset is detached, whether the time of detachment is greater than or equal to the second time period, that is, determine the timing unit 1009. Whether the timing value is greater than In the second period of time. Then, the second determining unit 1 004 determines whether the terminal closes the audio playing application when the fourth determining unit 1014 determines that the detachment time is greater than or equal to the second time period.
当第一判断子单元 101 3判断蓝牙耳机脱离时, 将触发第三判断单元 1008 判断计时值 T是否为 0 , 计时值 T不为 0时, 将触发第四判断单元 1014判断计时 值 T是否大于等于第二时间段, 若计时值 T大于或等于第二时间段则触发第二 判断单元 1004判断终端是否关闭音频播放应用程序, 当判断结果为终端未关 闭音频播放应用程序时, 触发发送单元 1005向终端发送关闭信号。  When the first determining sub-unit 101 3 determines that the Bluetooth headset is detached, the third determining unit 1008 is triggered to determine whether the timing value T is 0. When the timing value T is not 0, the fourth determining unit 1014 is triggered to determine whether the timing value T is greater than If the timing value T is greater than or equal to the second time period, the second determining unit 1004 is triggered to determine whether the terminal closes the audio playing application. When the determining result is that the terminal does not close the audio playing application, the sending unit 1005 is triggered. Send a shutdown signal to the terminal.
本发明实施例提供的自动关闭终端应用程序的蓝牙耳机、 自动开启终端 应用程序的蓝牙耳机、 以及自动关闭和开启终端应用程序的蓝牙耳机, 能够 通过感应信号判断耳机的脱离状态, 从而达到通过蓝牙耳机自动关闭或开启 终端应用程序, 降低功耗的有益效果。  The Bluetooth headset for automatically closing the terminal application, the Bluetooth headset for automatically opening the terminal application, and the Bluetooth headset for automatically closing and opening the terminal application provided by the embodiment of the present invention can determine the detachment state of the headset through the sensing signal, thereby achieving the The headset automatically turns off or turns on the terminal application, reducing the benefits of power consumption.
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的 普通技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进 和润饰, 这些改进和润饰也应视本发明的保护范围。  The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. The scope of protection of the invention should be considered.

Claims

权利 要求 书 Claim
1、 一种自动关闭终端应用程序的方法, 其特征在于, 包括:  A method for automatically closing a terminal application, comprising:
获取感应信号,  Get the sensing signal,
根据感应信号判断蓝牙耳机是否脱离,  Determine whether the Bluetooth headset is disconnected based on the sensing signal.
如果蓝牙耳机脱离, 且终端中与耳机相关的应用程序未被关闭或暂停, 则发送关闭或暂停信号至终端。  If the Bluetooth headset is disconnected and the application associated with the headset in the terminal is not turned off or paused, a shutdown or pause signal is sent to the terminal.
2、 如权利要求 1所述的方法, 其特征在于, 所述获取感应信号具体包括: 每隔预设的第一时间段, 获取感应电信号, 将感应电信号转换成感应数字信号。  2. The method of claim 1, wherein the acquiring the sensing signal comprises: acquiring an inductive electrical signal every predetermined first time period, and converting the inductive electrical signal into an inductive digital signal.
3、 如权利要求 2所述的方法, 其特征在于, 所述感应电信号是压力感应电 信号或温度感应电信号。  3. The method of claim 2, wherein the induced electrical signal is a pressure induced electrical signal or a temperature induced electrical signal.
4、 如权利要求 2所述的方法, 其特征在于, 所述根据感应信号判断蓝牙耳 机是否脱离具体包括: 根据感应数字信号计算出感应值, 将所述感应值与预先 保存的比较值进行比较, 判断蓝牙耳机是否脱离。  The method of claim 2, wherein the determining whether the Bluetooth headset is detached according to the sensing signal comprises: calculating an sensing value according to the sensing digital signal, and comparing the sensing value with a pre-stored comparison value , determine if the Bluetooth headset is disconnected.
5、 如权利要求 4所述的方法, 其特征在于, 当判断蓝牙耳机脱离时, 还包 括: 判断计时值 T是否为 0 , 如果是则开始计时, 如果否则判断计时值是否大于 等于预设的第二时间段。  The method of claim 4, wherein when determining that the Bluetooth headset is detached, the method further comprises: determining whether the timing value T is 0, if yes, starting timing, if otherwise determining whether the timing value is greater than or equal to a preset The second time period.
6、 一种自动开启终端应用程序的方法, 其特征在于, 包括:  6. A method for automatically opening a terminal application, comprising:
获取感应信号,  Get the sensing signal,
根据感应信号判断蓝牙耳机是否脱离,  Determine whether the Bluetooth headset is disconnected based on the sensing signal.
如果蓝牙耳机未脱离, 且终端中与耳机相关的应用程序被关闭或暂停, 则发送开启信号至终端。  If the Bluetooth headset is not disconnected and the application associated with the headset in the terminal is turned off or paused, an enable signal is sent to the terminal.
7、 如权利要求 6所述的方法, 其特征在于, 所述获取感应信号具体包括: 每隔预设的第一时间段, 获取感应电信号, 将感应电信号转换成感应数字信号。  The method of claim 6, wherein the acquiring the sensing signal comprises: acquiring an inductive electrical signal every predetermined first time period, and converting the inductive electrical signal into an inductive digital signal.
8、 如权利要求 7所述的方法, 其特征在于, 所述感应电信号是压力感应电 信号或温度感应电信号。  8. The method of claim 7, wherein the induced electrical signal is a pressure induced electrical signal or a temperature induced electrical signal.
9、 如权利要求 7所述的方法, 其特征在于, 所述根据感应信号判断蓝牙耳 机是否脱离具体包括: 根据感应数字信号计算出感应值, 将所述感应值与保存 的比较值进行比较, 判断蓝牙耳机是否脱离。 9. The method according to claim 7, wherein the determining the Bluetooth ear based on the sensing signal Whether the machine is separated or not includes: calculating an induction value according to the induced digital signal, comparing the sensing value with the saved comparison value, and determining whether the Bluetooth headset is detached.
10、 一种蓝牙耳机, 其特征在于, 包括:  10. A Bluetooth headset, comprising:
感应单元, 用于获取感应信号;  a sensing unit, configured to acquire a sensing signal;
第一判断单元, 用于根据感应信号判断蓝牙耳机是否脱离;  a first determining unit, configured to determine, according to the sensing signal, whether the Bluetooth headset is detached;
第二判断单元, 用于判断终端中与耳机相关的应用程序是否被关闭或暂停; 发送单元, 用于在蓝牙耳机脱离, 且终端中与耳机相关的应用程序未被关 闭或暂停时, 发送关闭或暂停信号至终端。  a second determining unit, configured to determine whether an application related to the headset in the terminal is turned off or paused; a sending unit, configured to: when the Bluetooth headset is detached, and the application related to the headset in the terminal is not closed or paused, the sending is closed Or pause the signal to the terminal.
11、 如权利要求 10所述的蓝牙耳机, 其特征在于, 所述感应单元包括: 获取单元, 用于每隔预设的第一时间段, 获取感应电信号;  The Bluetooth headset according to claim 10, wherein the sensing unit comprises: an acquiring unit, configured to acquire an inductive electrical signal every preset first time period;
转换单元, 用于将所述感应电信号转换成感应数字信号。  And a conversion unit, configured to convert the inductive electrical signal into an inductive digital signal.
12、 如权利要求 11所述的蓝牙耳机, 其特征在于, 所述蓝牙耳机还包括计 算单元, 用于根据上述感应数字信号计算感应值。  The Bluetooth headset according to claim 11, wherein the Bluetooth headset further comprises a calculation unit, configured to calculate an induction value according to the induced digital signal.
13、 如权利要求 12所述的蓝牙耳机, 其特征在于, 所述耳机还包括存储单 元, 用于存储第一时间段、 第二时间段和比较值, 所述感应单元获取的是压力 感应信号时, 所述比较值是大气中的最大压力值、 或耳机戴在耳朵上的最小压 力值; 或所述感应单元获取的是温度感应信号时, 所述比较值是人体耳朵的最 低温度值、 大气温度最高值或大气温度最低值。  The Bluetooth headset according to claim 12, wherein the earphone further comprises a storage unit, configured to store a first time period, a second time period, and a comparison value, wherein the sensing unit acquires a pressure sensing signal When the comparison value is the maximum pressure value in the atmosphere, or the minimum pressure value of the earphone worn on the ear; or when the sensing unit acquires the temperature sensing signal, the comparison value is the lowest temperature value of the human ear, The highest atmospheric temperature or the lowest atmospheric temperature.
14、 如权利要求 13所述的蓝牙耳机, 其特征在于, 所述第一判断单元包括: 比较单元, 用于将上述感应值与上述比较值进行比较; 第一判断子单元, 用于  The Bluetooth headset according to claim 13, wherein the first determining unit comprises: a comparing unit, configured to compare the sensing value with the comparison value; and a first determining subunit, configured to:
15、 如权利要求 14所述的蓝牙耳机, 其特征在于, 所述耳机还包括计时单 元和第三判断单元, 计时单元用于在上述第一判断子单元判断蓝牙耳机脱离时 开始计时, 第三判断单元用于在上述第一判断子单元判断蓝牙耳机脱离时判断 脱离的时间是否大于等于第二时间段, 则所述第二判断单元在所述第三判断单 元判断脱离的时间大于等于第二时间段时, 判断终端中与耳机相关的应用程序 是否被关闭或暂停。 The Bluetooth headset according to claim 14, wherein the earphone further comprises a timing unit and a third determining unit, wherein the timing unit is configured to start timing when the first determining subunit determines that the Bluetooth headset is detached, and third The determining unit is configured to determine, when the first determining subunit determines that the Bluetooth headset is detached, whether the detachment time is greater than or equal to the second time period, and the second determining unit determines that the detachment time is greater than or equal to the second Determine the application related to the headset in the terminal during the time period Whether it is closed or suspended.
16、 一种蓝牙耳机, 其特征在于, 包括:  16. A Bluetooth headset, comprising:
感应单元, 用于获取感应信号;  a sensing unit, configured to acquire a sensing signal;
第一判断单元, 用于判断蓝牙耳机是否脱离;  a first determining unit, configured to determine whether the Bluetooth headset is detached;
第二判断单元, 用于判断终端中与耳机相关的应用程序是否被关闭或暂停; 发送单元, 用于在蓝牙耳机未脱离, 且终端中与耳机相关的应用程序被关 闭或暂停时, 发送开启信号至终端。  a second determining unit, configured to determine whether an application related to the headset in the terminal is turned off or paused; and a sending unit, configured to: when the Bluetooth headset is not detached, and the application related to the headset is turned off or paused in the terminal, the sending is started Signal to the terminal.
17、 如权利要求 16所述的蓝牙耳机, 其特征在于, 上述感应单元包括: 获取单元, 用于每隔预设的第一时间段, 获取感应电信号;  The Bluetooth headset according to claim 16, wherein the sensing unit comprises: an acquiring unit, configured to acquire an inductive electrical signal every preset first time period;
转换单元, 用于将所述感应电信号转换成感应数字信号。  And a conversion unit, configured to convert the inductive electrical signal into an inductive digital signal.
18、 如权利要求 17所述的蓝牙耳机, 其特征在于, 所述耳机还包括计算单 元, 用于根据上述感应数字信号计算感应值。  18. The Bluetooth headset of claim 17, wherein the headset further comprises a computing unit for calculating an inductive value based on the inductive digital signal.
19、 如权利要求 18所述的蓝牙耳机, 其特征在于, 所述耳机还包括存储单 元, 用于存储第一时间段、 比较值, 所述感应单元获取的是压力感应信号时, 所述比较值是大气中的最大压力值或耳机戴在耳朵上的最小压力值; 所述感应 单元获取的是温度感应信号时, 所述比较值是人体耳朵的最低温度值。  The Bluetooth headset according to claim 18, wherein the earphone further comprises a storage unit, configured to store a first time period and a comparison value, and when the sensing unit acquires a pressure sensing signal, the comparing The value is the maximum pressure value in the atmosphere or the minimum pressure value of the earphone worn on the ear; when the sensing unit acquires the temperature sensing signal, the comparison value is the lowest temperature value of the human ear.
20、 如权利要求 19所述的蓝牙耳机, 其特征在于, 所述第一判断单元包括: 比较单元, 用于将上述感应值与上述比较值进行比较; 第一判断子单元, 用于  The Bluetooth headset according to claim 19, wherein the first determining unit comprises: a comparing unit, configured to compare the sensing value with the comparison value; and a first determining subunit, configured to:
PCT/CN2009/071517 2008-07-25 2009-04-28 Bluetooth earphone and method for automatically opening and closing terminal application WO2010009636A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2008101426538A CN101334689B (en) 2008-07-25 2008-07-25 Bluetooth earphone of auto-switch terminal application program
CN200810142653.8 2008-07-25

Publications (1)

Publication Number Publication Date
WO2010009636A1 true WO2010009636A1 (en) 2010-01-28

Family

ID=40197318

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071517 WO2010009636A1 (en) 2008-07-25 2009-04-28 Bluetooth earphone and method for automatically opening and closing terminal application

Country Status (2)

Country Link
CN (1) CN101334689B (en)
WO (1) WO2010009636A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2624591A1 (en) * 2010-10-28 2013-08-07 Huawei Device Co., Ltd. Processing method for earphones and user equipment
CN105487899A (en) * 2015-11-30 2016-04-13 歌尔声学股份有限公司 Headphone wearing state reporting method and system and headphone
US11184700B2 (en) 2018-08-30 2021-11-23 Hewlett-Packard Development Company, L.P. Condensation control headsets
US11815966B2 (en) 2018-08-30 2023-11-14 Hewlett-Packard Development Company, L.P. Head mounted temperature controlled units

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334689B (en) * 2008-07-25 2011-07-20 华为技术有限公司 Bluetooth earphone of auto-switch terminal application program
CN101800576A (en) * 2009-12-25 2010-08-11 上海闻泰电子科技有限公司 Bluetooth headset with gravity sensing function and implementation method thereof
FR2955009A1 (en) * 2010-01-04 2011-07-08 France Telecom METHOD FOR MANAGING AT LEAST ONE WIRELESS COMMUNICATIONS INTERFACE OF TERMINAL AND TERMINAL
CN102202250A (en) * 2010-03-25 2011-09-28 国基电子(上海)有限公司 Earphone, electronic device and power saving method
CN102447991A (en) * 2010-10-14 2012-05-09 钰宝科技股份有限公司 Head phone for automatically saving electricity
CN102495761A (en) * 2011-11-11 2012-06-13 中兴通讯股份有限公司 Method and device for closing applications
CN102420912A (en) * 2011-12-15 2012-04-18 华为终端有限公司 Method and terminal for realizing Bluetooth function
CN102610248A (en) * 2012-03-16 2012-07-25 深圳市福智软件技术有限公司 Method and device for reducing electric power consumption
CN102761816B (en) * 2012-06-26 2014-09-17 歌尔声学股份有限公司 Testing circuit, testing device and testing method of Bluetooth earphone Don and Doff function
CN103856811B (en) * 2012-11-28 2017-12-26 联想(北京)有限公司 Decoding control method, device and the equipment of multi-medium data
CN103096198A (en) * 2013-01-31 2013-05-08 广州瀚诚电子产品有限公司 Induction microphone circuit and method of achieving induction microphone
CN105282832A (en) * 2014-07-09 2016-01-27 中兴通讯股份有限公司 Terminal power saving method and apparatus
JP6381061B2 (en) 2014-07-28 2018-08-29 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Bluetooth (registered trademark) communication method and device
CN104185109A (en) * 2014-09-01 2014-12-03 联想(北京)有限公司 Control system, earphone, electronic device and control method
CN104244129A (en) * 2014-09-03 2014-12-24 深圳奇沃智联科技有限公司 Contact earphones capable of being automatically switched on or off
CN104768092A (en) * 2015-01-30 2015-07-08 西安乾易企业管理咨询有限公司 Earphone and mobile terminal state switching system and method based on earphone
CN105100478A (en) * 2015-07-29 2015-11-25 努比亚技术有限公司 Apparatus and method for controlling audio output of mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050113131A1 (en) * 2003-11-21 2005-05-26 Chih-Lung Lin Bluetooth earphone for measuring body temperature
CN2817272Y (en) * 2005-04-29 2006-09-13 拍档科技股份有限公司 Blue tooth earphone with music playing function
CN101001478A (en) * 2006-01-09 2007-07-18 英业达股份有限公司 Earphone device capable of reducing power consumption
CN101334689A (en) * 2008-07-25 2008-12-31 华为技术有限公司 Bluetooth earphone of auto-switch terminal application program and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050113131A1 (en) * 2003-11-21 2005-05-26 Chih-Lung Lin Bluetooth earphone for measuring body temperature
CN2817272Y (en) * 2005-04-29 2006-09-13 拍档科技股份有限公司 Blue tooth earphone with music playing function
CN101001478A (en) * 2006-01-09 2007-07-18 英业达股份有限公司 Earphone device capable of reducing power consumption
CN101334689A (en) * 2008-07-25 2008-12-31 华为技术有限公司 Bluetooth earphone of auto-switch terminal application program and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2624591A1 (en) * 2010-10-28 2013-08-07 Huawei Device Co., Ltd. Processing method for earphones and user equipment
EP2624591A4 (en) * 2010-10-28 2014-01-08 Huawei Device Co Ltd Processing method for earphones and user equipment
US9420369B2 (en) 2010-10-28 2016-08-16 Huawei Device Co., Ltd. Processing method for earphone and user equipment
CN105487899A (en) * 2015-11-30 2016-04-13 歌尔声学股份有限公司 Headphone wearing state reporting method and system and headphone
US11184700B2 (en) 2018-08-30 2021-11-23 Hewlett-Packard Development Company, L.P. Condensation control headsets
US11815966B2 (en) 2018-08-30 2023-11-14 Hewlett-Packard Development Company, L.P. Head mounted temperature controlled units

Also Published As

Publication number Publication date
CN101334689B (en) 2011-07-20
CN101334689A (en) 2008-12-31

Similar Documents

Publication Publication Date Title
WO2010009636A1 (en) Bluetooth earphone and method for automatically opening and closing terminal application
CN110493678B (en) Earphone control method and device, earphone and storage medium
JP3163344U (en) Microphone technology
WO2019136810A1 (en) Bluetooth headset master/salve switching method and apparatus
WO2022142224A1 (en) Audio playback method, apparatus, and system for in-ear earphone
WO2013060109A1 (en) Processing method for call of terminal, terminal and processing system
WO2012055361A1 (en) Processing method for earphones and user equipment
JP2001333161A (en) Portable terminal
AU2009233644A8 (en) Detecting the repositioning of an earphone using a microphone and associated action
CN107295434A (en) TWS earphones and realize the vocal music of TWS earphones with the computer-readable recording medium broadcast
WO2017045453A1 (en) Monitoring method and device based on earphone
WO2014194584A1 (en) Terminal prompt mode adjusting method and terminal
US20230147435A1 (en) Audio Processing Method, Apparatus, and System
WO2018103483A1 (en) Smart helmet having remote control, and remote control method thereof
WO2013131367A1 (en) Multi-decoder audio system, system signal procedure, and formed mobile device
JP2007165940A (en) Cellular phone, and acoustic reproduction operation automatic stopping method therefor
TW201625020A (en) Headset and controlling handheld device system, method
CN102111475A (en) Mobile phone music playing function control system and control method
WO2020042491A9 (en) Headphone far-field interaction method, headphone far-field interaction accessory, and wireless headphones
CN112995833B (en) Earphone voice collecting method, earphone and readable storage medium
JP2002009918A (en) Handset and receiver
CN109195044B (en) Noise reduction earphone, call terminal, noise reduction control method and recording method
WO2022006949A1 (en) Earbud charging apparatus and electronic device
EP3082322B1 (en) Telephone device, telephone system, and control method
TWI228363B (en) MP3 audio player capable of being paused to answer a mobile phone call

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09799952

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09799952

Country of ref document: EP

Kind code of ref document: A1