





技术领域technical field
本申请涉及通信以及配件领域,具体涉及一种基于无线耳机的触摸控制方法及相关产品。The present application relates to the field of communications and accessories, and in particular to a touch control method based on a wireless headset and related products.
背景技术Background technique
现有技术中,移动终端(如手机、平板电脑等)已经成为用户首选和使用频率最高的电子装置。随着智能手机的普及,人与手机的互动越来越多样化,无线耳机作为智能手机常用配件,其被用户经常使用,但是现有的无线耳机仅仅只能进行一些简单的操作,并且其操作与无线耳机所在的场景无关,这样导致用户使用不方便,用户体验度不高。In the prior art, mobile terminals (such as mobile phones, tablet computers, etc.) have become the electronic devices preferred by users and the most frequently used electronic devices. With the popularity of smart phones, the interaction between people and mobile phones is becoming more and more diverse. As a common accessory of smart phones, wireless earphones are often used by users, but the existing wireless earphones can only perform some simple operations, and its operation It has nothing to do with the scene where the wireless headset is located, which makes it inconvenient for users to use and has a low user experience.
申请内容Application content
本申请实施例提供了一种基于无线耳机的触摸控制方法及相关产品,可以根据无线耳机的触控参数以及耳机所在的场景生成与该场景匹配的命令,从而提高用户体验度。Embodiments of the present application provide a wireless headset-based touch control method and related products, which can generate commands matching the scene according to touch parameters of the wireless headset and the scene in which the headset is located, thereby improving user experience.
第一方面,本申请实施例提供一种无线耳机,所述无线耳机包括二个耳麦,二个耳麦中至少一个耳麦包括:无线收发器、应用处理器AP和触控板;In a first aspect, an embodiment of the present application provides a wireless headset, the wireless headset includes two headsets, and at least one of the two headsets includes: a wireless transceiver, an application processor AP, and a touchpad;
所述无线收发器,用于与外围电子装置建立无线通信连接;The wireless transceiver is used to establish a wireless communication connection with a peripheral electronic device;
所述触控板,用于采集触控数据;The touch panel is used to collect touch data;
所述AP,用于对所述触控数据进行分析确定所述触控数据对应的第一动作,获取当前场景,确定所述当前场景下与所述第一动作匹配的第一控制命令,执行所述第一控制命令。The AP is configured to analyze the touch data to determine a first action corresponding to the touch data, acquire a current scene, determine a first control command that matches the first action in the current scene, and execute the first control command.
第二方面,提供一种基于无线耳机的触摸控制方法,所述方法包括如下步骤:In a second aspect, a touch control method based on a wireless headset is provided, the method comprising the following steps:
建立与外围电子装置的无线通信连接;establishing wireless communication connections with peripheral electronic devices;
采集触控数据;Collect touch data;
对所述触控数据进行分析确定所述触控数据对应的第一动作,获取当前场景,确定所述当前场景下与所述第一动作匹配的第一控制命令,执行所述第一控制命令。Analyze the touch data to determine the first action corresponding to the touch data, obtain the current scene, determine the first control command that matches the first action in the current scene, and execute the first control command .
第三方面,提供一种无线耳机,所述无线耳机包括:In a third aspect, a wireless headset is provided, the wireless headset comprising:
无线收发器,用于与外围电子装置建立无线通信连接;A wireless transceiver for establishing a wireless communication connection with peripheral electronic devices;
触控板,用于采集触控数据;Touchpad, used to collect touch data;
处理单元,用于对该触控数据进行分析确定该触控数据对应的第一动作,获取当前场景,确定当前场景下与该第一动作匹配的第一控制命令,执行该第一控制命令。The processing unit is configured to analyze the touch data to determine the first action corresponding to the touch data, obtain the current scene, determine the first control command matching the first action in the current scene, and execute the first control command.
第四方面,提供一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行第二方面提供的所述的方法。In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method provided in the second aspect.
第五方面,提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行第二方面提供的方法。In a fifth aspect, a computer program product is provided, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform the method provided in the second aspect.
实施本申请实施例,具有如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:
可以看出,本申请提供的无线耳机采集到触控数据后,依据该触控数据得到第一动作,然后获取当前场景,生成在当前场景下与第一动作匹配的第一控制命令,这样无线耳机能够对该场景进行识别,并生成匹配的控制命令,这样能够使得控制命令与场景匹配,方便用户使用,用户也可以通过非常有限的触控数据来实现对无线耳机的复杂控制,从而提高用户体验度。It can be seen that after the wireless headset provided by the present application collects the touch data, the first action is obtained according to the touch data, and then the current scene is obtained, and the first control command matching the first action in the current scene is generated. The headset can identify the scene and generate matching control commands, which can match the control commands with the scene, which is convenient for users to use. Users can also realize complex control of wireless headsets through very limited touch data, thereby improving user experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本申请实施例提供的一种电子装置与无线耳机的连接示意图。FIG. 1 is a schematic diagram of a connection between an electronic device and a wireless headset according to an embodiment of the present application.
图1a是本申请实施例提供的一种电子装置的示意图。FIG. 1a is a schematic diagram of an electronic device provided by an embodiment of the present application.
图1b是本申请实施例提供的另一种无线耳机的示意图。FIG. 1b is a schematic diagram of another wireless headset provided by an embodiment of the present application.
图1c是本申请实施例提供的另一种无线耳机的示意图。FIG. 1c is a schematic diagram of another wireless headset provided by an embodiment of the present application.
图2是本申请实施例公开的一种无线耳机的示意图。FIG. 2 is a schematic diagram of a wireless headset disclosed in an embodiment of the present application.
图2a是本申请实施例提供的一种映射关系示意图。FIG. 2a is a schematic diagram of a mapping relationship provided by an embodiment of the present application.
图3是本申请实施例提供的一种基于无线耳机的触摸控制方法的流程示意图。FIG. 3 is a schematic flowchart of a touch control method based on a wireless headset provided by an embodiment of the present application.
图4是本申请实施例提供的一种无线耳机的结构示意图。FIG. 4 is a schematic structural diagram of a wireless headset provided by an embodiment of the present application.
图5是本申请实施例公开的一种手机的结构示意图。FIG. 5 is a schematic structural diagram of a mobile phone disclosed in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请中的无线耳机具体可以为:蓝牙耳机,当然也可以为其他的无线传输方式的耳机,例如光传导耳机等等,上述蓝牙耳机可以为普通的蓝牙耳机,即通过喇叭播放声音的耳机,当然上述蓝牙耳机还可以为骨传导耳机,本申请对无线耳机的声音传导方式并不限定。上述无线耳机可以与电子装置建立连接,当然在实际应用中,该无线耳机也可以是单独的设备,上电子装置可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述电子装置仅是举例,而非穷举,包含但不限于上述电子装置,为了描述的方便,下面实施例中将上述电子装置称为用户设备(User equipment,UE)。当然在实际应用中,上述用户设备也不限于上述变现形式,例如还可以包括:智能电视、家庭机器人、计算机设备等等。The wireless earphones in this application may specifically be: Bluetooth earphones, and of course earphones of other wireless transmission methods, such as light conduction earphones, etc. The above-mentioned Bluetooth earphones may be ordinary Bluetooth earphones, that is, earphones that play sound through speakers, Of course, the above-mentioned Bluetooth earphones can also be bone conduction earphones, and the present application does not limit the sound conduction mode of the wireless earphones. The above-mentioned wireless headset can be connected with an electronic device. Of course, in practical applications, the wireless headset can also be a separate device, and the electronic device can include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, Handheld computers, notebook computers, mobile Internet devices (MID, Mobile Internet Devices) or wearable devices, etc., the above-mentioned electronic devices are only examples, not exhaustive, including but not limited to the above-mentioned electronic devices, for the convenience of description, the following embodiments The above-mentioned electronic device is referred to as user equipment (User equipment, UE). Of course, in practical applications, the above-mentioned user equipment is not limited to the above-mentioned monetization forms, for example, it may also include: smart TVs, home robots, computer equipment, and so on.
请参阅图1,图1是本申请实施例提供了一种电子装置与无线耳机的连接示意图,图1a是本发明实施例提供了一种电子装置100的结构示意图,上述电子装置100包括:壳体110、电路板120、电池130、盖板140、触控显示屏150、无线收发器180,所述壳体110上设置所述电路板120、所述电池130和所述盖板140,所述电路板120还设置有连接所述触控显示屏150的电路;所述电路板120还可以包括:应用处理器AP190。上述电子装置通过无线收发器180与该无线耳机连接,然后通过该连接传递数据,具体的该无线收发器180可以为蓝牙天线和蓝牙芯片,在一种可选的方案中,上述蓝牙芯片可以集成在上述应用处理器AP190内,当然在另一种可选的方案中,上述蓝牙芯片也可以单独设置。Please refer to FIG. 1. FIG. 1 is a schematic diagram of connection between an electronic device and a wireless headset provided by an embodiment of the present application. FIG. 1a is a schematic structural diagram of an
上述触控显示屏具体可以为薄膜晶体管液晶显示器(Thin Film Transistor-Liquid Crystal Display,TFT-LCD)、发光二极管(Light Emitting Diode,LED)显示屏、有机发光二极管(Organic Light-Emitting Diode,OLED)显示屏等。The above-mentioned touch display screen may specifically be a thin film transistor liquid crystal display (Thin Film Transistor-Liquid Crystal Display, TFT-LCD), a light emitting diode (Light Emitting Diode, LED) display screen, an organic light emitting diode (Organic Light-Emitting Diode, OLED) display etc.
如图1b所示,图1b是本申请实施例提供的一种无线耳机的结构图,为了描述的方便,这里仅以一个耳麦为例来说明,在实际应用中,上述无线耳机具有二个耳麦,二个耳麦在工作时分别位于用户的左耳和右耳,当然在实际应用中,例如在接电话或同声翻译等场景,其单个耳麦也可以单独的使用。上述无线耳机的形式也可以有多种,例如如图1b所示的,两个耳麦完全分离设置,当然在实际应用中,尤其在运动类型的无线耳机中,两个耳麦中间也可以设置一个连接件,例如,如图1c所示通过连接线连接二个耳麦,本申请对无线耳机中二个耳麦之间的连接方式并不限定。如图1b所示,该无线耳机包括:二个耳麦,每个耳麦包括:耳麦外壳121以及设置在耳麦外壳121表面的触控板122,该耳麦还可以包括:无线收发器(图中未画出)和处理芯片(图中未画出),该处理芯片与触控板122以及无线收发器之间电连接,具体的,该电连接的方式可以通过总线方式来连接,当然在实际应用中,上述电连接也可以是通过其他连接方式来连接。As shown in FIG. 1b, FIG. 1b is a structural diagram of a wireless headset provided by an embodiment of the present application. For the convenience of description, only one headset is used as an example to illustrate. In practical applications, the above wireless headset has two headsets. , the two headsets are located in the user's left ear and right ear respectively during work. Of course, in practical applications, for example, in scenarios such as answering a phone or simultaneous translation, a single headset can also be used alone. The above-mentioned wireless earphones can also have various forms. For example, as shown in Figure 1b, the two earphones are completely separated. Of course, in practical applications, especially in sports wireless earphones, a connection can also be set between the two earphones. For example, as shown in FIG. 1c, two headsets are connected through a connecting line, and the present application does not limit the connection method between the two headsets in the wireless headset. As shown in FIG. 1b, the wireless earphone includes: two earphones, each earphone includes a earphone shell 121 and a touch panel 122 disposed on the surface of the earphone shell 121, and the headset may also include: a wireless transceiver (not shown in the figure) out) and a processing chip (not shown in the figure), the processing chip is electrically connected with the touch panel 122 and the wireless transceiver. Specifically, the electrical connection can be connected by a bus, of course, in practical applications , the above-mentioned electrical connection may also be connected by other connection methods.
参阅图2,图2是本申请实施例提供的一种无线耳机的结构示意图,如图2所示,该无线耳机包括:二个耳麦,二个耳麦中的至少一个耳麦包括:无线收发器201、应用处理器AP202和触控板203,其中,该应用处理器AP202与该触控板203以及无线收发器201之间电连接。Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a wireless headset provided by an embodiment of the present application. As shown in FIG. 2, the wireless headset includes: two headsets, and at least one of the two headsets includes: a
无线收发器201,用于与外围电子装置建立无线通信连接;a
上述电子装置可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备或穿戴式设备等,当然在实际应用中,上述用户设备也不限于上述变现形式,例如还可以包括:智能电视、家庭机器人、计算机设备等等。The above-mentioned electronic devices may include smart phones (such as Android mobile phones, iOS mobile phones, Windows Phone mobile phones, etc.), tablet computers, handheld computers, notebook computers, mobile Internet equipment or wearable devices, etc. Of course, in practical applications, the above-mentioned user equipment is also not. Limited to the above-mentioned realization forms, for example, it may also include: smart TVs, home robots, computer equipment, and so on.
上述无线通信连接的方式包括但不限于:蓝牙通信、RF通信、WIFI通信、光通信等等无线通信的方式,当然在实际应用中,还可以是上述无线通信方式的变形,本申请具体实施方式并不限制无线耳机与外围电子装置之间的无线通信方式,只需为无线通信即可。另外,上述外围电子装置的数量也不限定。The above wireless communication connection methods include but are not limited to: Bluetooth communication, RF communication, WIFI communication, optical communication and other wireless communication methods. Of course, in practical applications, it can also be a variant of the above wireless communication methods. The wireless communication method between the wireless headset and the peripheral electronic device is not limited, and only needs to be wireless communication. In addition, the number of the above-mentioned peripheral electronic devices is also not limited.
触控板203,用于采集触控数据;The touch panel 203 is used to collect touch data;
上述触控板203具体可以为触控显示屏,其具有触控以及显示的功能,当然在实际应用中,上述触控板203还可以为触控屏,其不具有显示功能。The above-mentioned touch panel 203 can be specifically a touch display screen, which has the functions of touch and display. Of course, in practical applications, the above-mentioned touch panel 203 can also be a touch screen, which has no display function.
上述触控数据包括但不限于:触摸的位置坐标、触摸压力、持续时间、触摸次数中的一个或任意组合。The above touch data includes, but is not limited to, one or any combination of touch position coordinates, touch pressure, duration, and number of touches.
AP202,用于对该触控数据进行分析确定该触控数据对应的第一动作,获取当前场景,确定当前场景下与该第一动作匹配的第一控制命令,执行该第一控制命令。The AP 202 is configured to analyze the touch data to determine a first action corresponding to the touch data, acquire a current scene, determine a first control command matching the first action in the current scene, and execute the first control command.
上述获取当前场景的方式具体可以有多种,例如,在本申请一个可选的技术方案中,无线耳机可以向外围电子装置发送一个场景获取命令,接收电子装置返回的场景响应消息,提取该场景响应消息内的场景名称以确定当前场景。The above-mentioned ways of acquiring the current scene can be specific. For example, in an optional technical solution of the present application, the wireless headset can send a scene acquisition command to the peripheral electronic device, receive the scene response message returned by the electronic device, and extract the scene. The scene name in the response message determines the current scene.
又如,在本申请又一个可选的技术方案中,无线耳机可以通过数据收发方式来确定其属于的场景,例如,无线耳机处于单向接收数据方式,则确定该无线耳机处于音乐场景或视频场景,又如,无线耳机处于收发双向收发数据方式,则确定该无线耳机处于通话场景或随行翻译模式,又如无线耳机处于无收发数据方式,确定无线耳机处于非传输场景(例如拍照场景等等)。For another example, in another optional technical solution of the present application, the wireless earphone can determine the scene to which it belongs by sending and receiving data. For example, if the wireless earphone is in a one-way data receiving mode, it is determined that the wireless earphone is in a music scene or a video. For another example, if the wireless headset is in the mode of sending and receiving data in both directions, it is determined that the wireless headset is in the call scene or the accompanying translation mode, and if the wireless headset is in the non-transmitting data mode, it is determined that the wireless headset is in a non-transmission scene (such as a photographing scene, etc. ).
本申请人分析无线耳机的主要几个场景发现,对于场景,数据的发送方式一般为3种,收发方式、接收方式、不接收也不发送方式,这与无线耳机的应用场景有关,对于无线耳机其主要的目的是了接收音频数据,相对应的,其对应的数据方式为接收方式,随着发展,用户对通话也有一定的需求,其增加了收发方式,其对应通话或随行翻译的场景。针对无线耳机的使用情况,可以针对上述情况确定与该数据收发的方式匹配的场景,从而实现对场景的识别。The applicant analyzes the main scenarios of wireless earphones and finds that, for scenarios, there are generally three ways to send data, namely, sending and receiving methods, receiving methods, and neither receiving nor sending methods, which are related to the application scenarios of wireless earphones. Its main purpose is to receive audio data. Correspondingly, the corresponding data method is the receiving method. With the development, users also have certain needs for calls. It adds a sending and receiving method, which corresponds to the scene of a call or accompanying translation. According to the usage of the wireless headset, a scene matching the data transmission and reception mode can be determined according to the above situation, so as to realize the identification of the scene.
再如,在本申请还一可选的技术方案,无线耳机可以通过传输数据确定该耳机属于的场景,具体的,无线耳机可以抓取该传输数据中的部分区间数据,将该部分区间数据进行分析确定该部分区间数据的类型,依据该类型确定当前场景,如部分区间数据类型为音乐数据,确定该无线耳机处于音乐场景或视频场景,如部分区间数据的类型为语音数据且不包含音乐数据,确定无线耳机处于通话或随行翻译模式。For another example, in another optional technical solution of the present application, the wireless earphone can determine the scene to which the earphone belongs by transmitting data. Analyze and determine the type of the part of the interval data, determine the current scene according to the type, if the part of the interval data type is music data, determine that the wireless headset is in a music scene or a video scene, such as part of the interval data type is voice data and does not contain music data to make sure the wireless headset is in call or translation mode.
对于音乐场景或视频场景这两种场景来说,其传输的音频数据一定具有两个部分,即音乐数据(例如伴奏、背景音乐等)和语音数据(例如歌词或台词等),而对于通话场景或随行翻译场景,其传输的音频数据只会有一个部分,即语音数据,所以通过确定该数据是否包含音乐数据即能够确定该场景。For the two scenarios of music scene or video scene, the audio data transmitted must have two parts, namely music data (such as accompaniment, background music, etc.) and voice data (such as lyrics or lines, etc.), while for the call scene Or the accompanying translation scene, the transmitted audio data has only one part, that is, the voice data, so the scene can be determined by determining whether the data contains music data.
上述确定当前场景主要是依据数据来确定,要么通过数据的传输方式,要么通过数据的类型,此两种方式具有方便无线耳机确定当前场景的优点,因为对于交互消息的方式来获取当前场景,其需要对无线协议进行一些修改,因为对于电子装置或无线耳机来说,目前的无线协议,以蓝牙通信为例,蓝牙4.0由蓝牙技术联盟(Bluetooth SIG)在2010年7月7日宣布,正式采纳蓝牙4.0核心规范(Bluetooth Core Specification Version 4.0),并启动对应的认证计划。依据蓝牙4.0协议,其蓝牙耳机与电子装置之间仅仅只有认证的过程,即只有认证的交互消息,这里需要增加其他的交互消息,例如场景获取的消息,需要对蓝牙协议进行更改,而对于任何一个通信协议的修改,其均是需要很长的时间,所以交互式方式不利于推广。但是对于数据方式来确定,则只需要对无线耳机内部进行一个修改,甚至是对无线耳机进行一个版本的升级即可以实现,这样能够快速的响应市场,并且此种方式也利于调整,在任意一个版本升级时均可以将上述方式进行调整,可以依据用户的需要增加或改变响应的策略,所以其具有快速响应市场的优点。The above-mentioned determination of the current scene is mainly based on data, either by the transmission method of the data or by the type of the data. These two methods have the advantage of facilitating the wireless headset to determine the current scene, because the current scene is obtained by the method of interactive messages. Some modifications to the wireless protocol are required, because for electronic devices or wireless headsets, the current wireless protocol, taking Bluetooth communication as an example, Bluetooth 4.0 was announced by the Bluetooth SIG on July 7, 2010 and officially adopted. Bluetooth 4.0 core specification (Bluetooth Core Specification Version 4.0), and start the corresponding certification program. According to the Bluetooth 4.0 protocol, there is only an authentication process between the Bluetooth headset and the electronic device, that is, there are only authenticated interactive messages. Other interactive messages need to be added here, such as the messages obtained from the scene, and the Bluetooth protocol needs to be changed. The modification of a communication protocol takes a long time, so the interactive method is not conducive to promotion. However, for the determination of the data method, it is only necessary to make a modification to the inside of the wireless headset, or even to upgrade the wireless headset to a version, which can quickly respond to the market, and this method is also conducive to adjustment. The above methods can be adjusted when the version is upgraded, and the response strategy can be added or changed according to the needs of users, so it has the advantage of quickly responding to the market.
本申请提供的无线耳机采集到触控数据后,依据该触控数据得到第一动作,然后获取当前场景,生成在当前场景下与第一动作匹配的第一控制命令,这样无线耳机能够对该场景进行识别,并生成匹配的控制命令,这样能够使得控制命令与场景匹配,方便用户使用,用户也可以通过非常有限的触控数据来实现对无线耳机的复杂控制,从而提高用户体验度。After the wireless headset provided by the present application collects the touch data, obtains the first action according to the touch data, then acquires the current scene, and generates the first control command matching the first action in the current scene, so that the wireless headset can perform the control command on the current scene. The scene is identified, and matching control commands are generated, which can match the control commands with the scene, which is convenient for users to use. Users can also realize complex control of wireless headsets through very limited touch data, thereby improving user experience.
可选的,AP202,具体用于提取当前场景下动作与命令的映射关系,从该映射关系中查询与该第一动作匹配的第一控制命令。Optionally, the AP 202 is specifically configured to extract the mapping relationship between the action and the command in the current scene, and query the first control command matching the first action from the mapping relationship.
上述当前场景下动作与命令的映射关系如图2a所示,如图2a所示,在不同的场景下,同一个动作有可能代表不同的命令,当然如图2a所示的映射关系也仅仅是举例,本申请具体实施方式并不限制上述映射关系的具体表现形式。The mapping relationship between actions and commands in the above current scene is shown in Figure 2a. As shown in Figure 2a, in different scenarios, the same action may represent different commands. Of course, the mapping relationship shown in Figure 2a is only For example, the specific implementation manner of the present application does not limit the specific representation form of the above mapping relationship.
可选的,AP202,具体用于如该触控数据具有多个类型,将多个类型的触控数据组成输入数据矩阵,其中,不同类型的触控数据位于输入数据矩阵的不同行或不同列,将该输入数据矩阵输入到神经网络模型中执行多层正向运算得到输出结果,依据该输出结果得到该第一动作。Optionally, the AP202 is specifically configured to, if the touch data has multiple types, form the multiple types of touch data into an input data matrix, wherein the different types of touch data are located in different rows or different columns of the input data matrix. , input the input data matrix into the neural network model to perform multi-layer forward operation to obtain an output result, and obtain the first action according to the output result.
可选的,AP202,用于获取输出结果CI2*H2*W2;提取CI2*H2*W2中元素值大于设定阈值的X个元素,提取该X个元素在CI2*H2*W2的X个位置,将X个元素依据X个位置在N个区域的分布划分成N组,N个区域中每个区域对应一个动作,提取N组中元素数量最大的第Y组,确定第Y组对应的动作为第一动作。Optionally, AP202 is used to obtain the output result CI2 *H2 *W2 ; extract X elements whose element values in CI2 *H2 *W2 are greater than the set threshold, and extract the X elements in CI2 * H2 *W2 X positions, divide the X elements into N groups according to the distribution of the X positions in the N areas, each area in the N areas corresponds to an action, and extract the Y-th element with the largest number of elements in the N groups group, and determine the action corresponding to the Yth group as the first action.
参阅图3,图3是本申请实施例提供的一种基于无线耳机的触摸控制方法的流程示意图,如图3所示方法在如图2所示的无线耳机内实现,该方法如下步骤:Referring to FIG. 3, FIG. 3 is a schematic flowchart of a touch control method based on a wireless headset provided by an embodiment of the present application. The method shown in FIG. 3 is implemented in the wireless headset shown in FIG. 2, and the method is as follows:
步骤S301、建立与外围电子装置无线通信连接;Step S301, establishing a wireless communication connection with a peripheral electronic device;
上述电子装置可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备或穿戴式设备等,当然在实际应用中,上述用户设备也不限于上述变现形式,例如还可以包括:智能电视、家庭机器人、计算机设备等等。The above-mentioned electronic devices may include smart phones (such as Android mobile phones, iOS mobile phones, Windows Phone mobile phones, etc.), tablet computers, handheld computers, notebook computers, mobile Internet equipment or wearable devices, etc. Of course, in practical applications, the above-mentioned user equipment is also not. Limited to the above-mentioned realization forms, for example, it may also include: smart TVs, home robots, computer equipment, and so on.
上述无线通信连接的方式包括但不限于:蓝牙通信、RF通信、WIFI通信、光通信等等无线通信的方式,当然在实际应用中,还可以是上述无线通信方式的变形,本申请具体实施方式并不限制无线耳机与外围电子装置之间的无线通信方式,只需为无线通信即可。另外,上述外围电子装置的数量也不限定。The above wireless communication connection methods include but are not limited to: Bluetooth communication, RF communication, WIFI communication, optical communication and other wireless communication methods. Of course, in practical applications, it can also be a variant of the above wireless communication methods. The wireless communication method between the wireless headset and the peripheral electronic device is not limited, and only needs to be wireless communication. In addition, the number of the above-mentioned peripheral electronic devices is also not limited.
步骤S302、采集触控数据;Step S302, collecting touch data;
上述触控数据包括但不限于:触摸的位置坐标、触摸压力、持续时间、触摸次数中的一个或任意组合。The above touch data includes, but is not limited to, one or any combination of touch position coordinates, touch pressure, duration, and number of touches.
步骤S303、对该触控数据进行分析确定该触控数据对应的第一动作,获取当前场景,确定当前场景下与该第一动作匹配的第一控制命令,执行该第一控制命令。Step S303 , analyzing the touch data to determine a first action corresponding to the touch data, acquiring the current scene, determining a first control command matching the first action in the current scene, and executing the first control command.
上述获取当前场景的方式具体可以有多种,There are several specific ways to obtain the current scene above.
例如,在本申请又一个可选的技术方案中,获取当前场景具体可以包括:For example, in another optional technical solution of the present application, acquiring the current scene may specifically include:
无线耳机可以通过数据收发方式来确定其属于的场景,例如,无线耳机处于单向接收数据方式,则确定该无线耳机处于音乐场景或视频场景,又如,无线耳机处于收发双向收发数据方式,则确定该无线耳机处于通话场景或随行翻译模式,又如无线耳机处于无收发数据方式,确定无线耳机处于非传输场景(例如拍照场景等等)。The wireless headset can determine the scene to which it belongs by sending and receiving data. For example, if the wireless headset is in a one-way receiving data mode, it is determined that the wireless headset is in a music scene or a video scene. It is determined that the wireless headset is in a call scene or an accompanying translation mode, and if the wireless headset is in a non-transmitting data mode, it is determined that the wireless headset is in a non-transmission scene (such as a photographing scene, etc.).
本申请人分析无线耳机的主要几个场景发现,对于场景,数据的发送方式一般为3种,收发方式、接收方式、不接收也不发送方式,这与无线耳机的应用场景有关,对于无线耳机其主要的目的是了接收音频数据,相对应的,其对应的数据方式为接收方式,随着发展,用户对通话也有一定的需求,其增加了收发方式,其对应通话或随行翻译的场景。针对无线耳机的使用情况,可以针对上述情况确定与该数据收发的方式匹配的场景,从而实现对场景的识别。The applicant analyzes the main scenarios of wireless earphones and finds that, for scenarios, there are generally three ways to send data, namely, sending and receiving methods, receiving methods, and neither receiving nor sending methods, which are related to the application scenarios of wireless earphones. Its main purpose is to receive audio data. Correspondingly, the corresponding data method is the receiving method. With the development, users also have certain needs for calls. It adds a sending and receiving method, which corresponds to the scene of a call or accompanying translation. According to the usage of the wireless headset, a scene matching the data transmission and reception mode can be determined according to the above situation, so as to realize the identification of the scene.
又如,在本申请还一可选的技术方案,无线耳机可以通过传输数据确定该耳机属于的场景,具体的,无线耳机可以抓取该传输数据中的部分区间数据,将该部分区间数据进行分析确定该部分区间数据的类型,如部分区间数据类型为音乐数据,确定该无线耳机处于音乐场景或视频场景,如部分区间数据的类型为语音数据且不包含音乐数据,确定无线耳机处于通话或随行翻译模式。For another example, in another optional technical solution of the present application, the wireless earphone can determine the scene to which the earphone belongs by transmitting data. Analyze and determine the type of the part of the interval data. For example, if the part of the interval data type is music data, it is determined that the wireless headset is in a music scene or a video scene. On the go translation mode.
对于音乐场景或视频场景这两种场景来说,其传输的音频数据一定具有两个部分,即音乐数据(例如伴奏、背景音乐等)和语音数据(例如歌词或台词等),而对于通话场景或随行翻译场景,其传输的音频数据只会有一个部分,即语音数据,所以通过确定该数据是否包含音乐数据即能够确定该场景。For the two scenarios of music scene or video scene, the audio data transmitted must have two parts, namely music data (such as accompaniment, background music, etc.) and voice data (such as lyrics or lines, etc.), while for the call scene Or the accompanying translation scene, the transmitted audio data has only one part, that is, the voice data, so the scene can be determined by determining whether the data contains music data.
本申请提供的无线耳机采集到触控数据后,依据该触控数据得到第一动作,然后获取当前场景,生成在当前场景下与第一动作匹配的第一控制命令,这样无线耳机能够对该场景进行识别,并生成匹配的控制命令,这样能够使得控制命令与场景匹配,方便用户使用,用户也可以通过非常有限的触控数据来实现对无线耳机的复杂控制,从而提高用户体验度。After the wireless headset provided by the present application collects the touch data, obtains the first action according to the touch data, then acquires the current scene, and generates the first control command matching the first action in the current scene, so that the wireless headset can perform the control command on the current scene. The scene is identified, and matching control commands are generated, which can match the control commands with the scene, which is convenient for users to use. Users can also realize complex control of wireless headsets through very limited touch data, thereby improving user experience.
可选的,确定当前场景下与该第一动作匹配的第一控制命令,包括:Optionally, determining the first control command matching the first action in the current scene includes:
提取当前场景下动作与命令的映射关系,从该映射关系中查询与该第一动作匹配的第一控制命令。The mapping relationship between the action and the command in the current scene is extracted, and the first control command matching the first action is queried from the mapping relationship.
上述当前场景下动作与命令的映射关系如图2a所示,如图2a所示,在不同的场景下,同一个动作有可能代表不同的命令,当然如图2a所示的映射关系也仅仅是举例,本申请具体实施方式并不限制上述映射关系的具体表现形式。The mapping relationship between actions and commands in the above current scene is shown in Figure 2a. As shown in Figure 2a, in different scenarios, the same action may represent different commands. Of course, the mapping relationship shown in Figure 2a is only For example, the specific implementation manner of the present application does not limit the specific representation form of the above mapping relationship.
可选的,上述对该触控数据进行分析确定该触控数据对应的第一动作,具体包括:Optionally, the above-mentioned analyzing the touch data to determine the first action corresponding to the touch data specifically includes:
如该触控数据具有多个类型,将多个类型的触控数据组成输入数据矩阵,其中,不同类型的触控数据位于输入数据矩阵的不同行或不同列,将该输入数据矩阵输入到神经网络模型中执行多层正向运算得到输出结果,依据该输出结果得到该第一动作。If the touch data has multiple types, the multiple types of touch data are formed into an input data matrix, wherein different types of touch data are located in different rows or different columns of the input data matrix, and the input data matrix is input to the neural network. The multi-layer forward operation is performed in the network model to obtain an output result, and the first action is obtained according to the output result.
依据该输出结果得到该第一动作可以包括:获取输出结果CI2*H2*W2;提取CI2*H2*W2中元素值大于设定阈值的X个元素,提取该X个元素在CI2*H2*W2的X个位置,将X个元素依据X个位置在N个区域的分布划分成N组,N个区域中每个区域对应一个动作,提取N组中元素数量最大的第Y组,确定第Y组对应的动作为第一动作。Obtaining the first action according to the output result may include: obtaining the output result CI2 *H2 *W2 ; extracting X elements whose element values in CI2 *H2 *W2 are greater than the set threshold, and extracting the X elements In the X positions of CI2 *H2 *W2 , divide the X elements into N groups according to the distribution of the X positions in the N regions, each region in the N regions corresponds to an action, and extract the number of elements in the N groups For the largest group Y, determine the action corresponding to the Y group as the first action.
参阅图4,图4提供了一种电子装置,所述电子装置包括:处理单元401、触控板403、无线收发器402,该触控板403、无线收发器402与处理单元401可以通过总线连接,当然在实际应用中,也可以采用其他的连接方式,本申请并不限制上述连接的具体表现形式。Referring to FIG. 4, FIG. 4 provides an electronic device, the electronic device includes: a processing unit 401, a touch panel 403, a wireless transceiver 402, the touch panel 403, the wireless transceiver 402 and the processing unit 401 can be connected through a bus For connection, of course, in practical applications, other connection manners may also be used, and the present application does not limit the specific expression form of the above connection.
无线收发器402,用于与外围电子装置建立无线通信连接;a wireless transceiver 402, used to establish a wireless communication connection with a peripheral electronic device;
触控板403,用于采集触控数据;The touch panel 403 is used to collect touch data;
上述触控板403具体可以为触控显示屏,其具有触控以及显示的功能,当然在实际应用中,上述触控板403还可以为触控屏,其不具有显示功能。The above-mentioned touch panel 403 can be specifically a touch display screen, which has the functions of touch and display. Of course, in practical applications, the above-mentioned touch panel 403 can also be a touch screen, which has no display function.
上述触控数据包括但不限于:触摸的位置坐标、触摸压力、持续时间、触摸次数中的一个或任意组合。The above touch data includes, but is not limited to, one or any combination of touch position coordinates, touch pressure, duration, and number of touches.
处理单元401,用于对该触控数据进行分析确定该触控数据对应的第一动作,获取当前场景,确定当前场景下与该第一动作匹配的第一控制命令,执行该第一控制命令。The processing unit 401 is configured to analyze the touch data to determine the first action corresponding to the touch data, obtain the current scene, determine the first control command that matches the first action in the current scene, and execute the first control command .
上述获取当前场景的方式具体可以有多种,例如,在本申请一个可选的技术方案中,无线耳机可以向外围电子装置发送一个场景获取命令,接收电子装置返回的场景响应消息,提取该场景响应消息内的场景名称以确定当前场景。The above-mentioned ways of acquiring the current scene can be specific. For example, in an optional technical solution of the present application, the wireless headset can send a scene acquisition command to the peripheral electronic device, receive the scene response message returned by the electronic device, and extract the scene. The scene name in the response message determines the current scene.
又如,在本申请又一个可选的技术方案中,无线耳机可以通过数据收发方式来确定其属于的场景,例如,无线耳机处于单向接收数据方式,则确定该无线耳机处于音乐场景或视频场景,又如,无线耳机处于收发双向收发数据方式,则确定该无线耳机处于通话场景或随行翻译模式,又如无线耳机处于无收发数据方式,确定无线耳机处于非传输场景(例如拍照场景等等)。For another example, in another optional technical solution of the present application, the wireless earphone can determine the scene to which it belongs by sending and receiving data. For example, if the wireless earphone is in a one-way data receiving mode, it is determined that the wireless earphone is in a music scene or a video. For another example, if the wireless headset is in the mode of sending and receiving data in both directions, it is determined that the wireless headset is in the call scene or the accompanying translation mode, and if the wireless headset is in the non-transmitting data mode, it is determined that the wireless headset is in a non-transmission scene (such as a photographing scene, etc. ).
本申请人分析无线耳机的主要几个场景发现,对于场景,数据的发送方式一般为3种,收发方式、接收方式、不接收也不发送方式,这与无线耳机的应用场景有关,对于无线耳机其主要的目的是了接收音频数据,相对应的,其对应的数据方式为接收方式,随着发展,用户对通话也有一定的需求,其增加了收发方式,其对应通话或随行翻译的场景。针对无线耳机的使用情况,可以针对上述情况确定与该数据收发的方式匹配的场景,从而实现对场景的识别。The applicant analyzes the main scenarios of wireless earphones and finds that, for scenarios, there are generally three ways to send data, namely, sending and receiving methods, receiving methods, and neither receiving nor sending methods, which are related to the application scenarios of wireless earphones. Its main purpose is to receive audio data. Correspondingly, the corresponding data method is the receiving method. With the development, users also have certain needs for calls. It adds a sending and receiving method, which corresponds to the scene of a call or accompanying translation. According to the usage of the wireless headset, a scene matching the data transmission and reception mode can be determined according to the above situation, so as to realize the identification of the scene.
再如,在本申请还一可选的技术方案,无线耳机可以通过传输数据确定该耳机属于的场景,具体的,无线耳机可以抓取该传输数据中的部分区间数据,将该部分区间数据进行分析确定该部分区间数据的类型,如部分区间数据类型为音乐数据,确定该无线耳机处于音乐场景或视频场景,如部分区间数据的类型为语音数据且不包含音乐数据,确定无线耳机处于通话或随行翻译模式。For another example, in another optional technical solution of the present application, the wireless earphone can determine the scene to which the earphone belongs by transmitting data. Analyze and determine the type of the part of the interval data. For example, if the part of the interval data type is music data, it is determined that the wireless headset is in a music scene or a video scene. On the go translation mode.
对于音乐场景或视频场景这两种场景来说,其传输的音频数据一定具有两个部分,即音乐数据(例如伴奏、背景音乐等)和语音数据(例如歌词或台词等),而对于通话场景或随行翻译场景,其传输的音频数据只会有一个部分,即语音数据,所以通过确定该数据是否包含音乐数据即能够确定该场景。For the two scenarios of music scene or video scene, the audio data transmitted must have two parts, namely music data (such as accompaniment, background music, etc.) and voice data (such as lyrics or lines, etc.), while for the call scene Or the accompanying translation scene, the transmitted audio data has only one part, that is, the voice data, so the scene can be determined by determining whether the data contains music data.
上述确定当前场景主要是依据数据来确定,要么通过数据的传输方式,要么通过数据的类型,此两种方式具有方便无线耳机确定当前场景的优点,因为对于交互消息的方式来获取当前场景,其需要对无线协议进行一些修改,因为对于电子装置或无线耳机来说,目前的无线协议,以蓝牙通信为例,蓝牙4.0由蓝牙技术联盟(Bluetooth SIG)在2010年7月7日宣布,正式采纳蓝牙4.0核心规范(Bluetooth Core Specification Version 4.0),并启动对应的认证计划。依据蓝牙4.0协议,其蓝牙耳机与电子装置之间仅仅只有认证的过程,即只有认证的交互消息,这里需要增加其他的交互消息,例如场景获取的消息,需要对蓝牙协议进行更改,而对于任何一个通信协议的修改,其均是需要很长的时间,所以交互式方式不利于推广。但是对于数据方式来确定,则只需要对无线耳机内部进行一个修改,甚至是对无线耳机进行一个版本的升级即可以实现,这样能够快速的响应市场,并且此种方式也利于调整,在任意一个版本升级时均可以将上述方式进行调整,可以依据用户的需要增加或改变响应的策略,所以其具有快速响应市场的优点。The above-mentioned determination of the current scene is mainly based on data, either by the transmission method of the data or by the type of the data. These two methods have the advantage of facilitating the wireless headset to determine the current scene, because the current scene is obtained by the method of interactive messages. Some modifications to the wireless protocol are required, because for electronic devices or wireless headsets, the current wireless protocol, taking Bluetooth communication as an example, Bluetooth 4.0 was announced by the Bluetooth SIG on July 7, 2010 and officially adopted. Bluetooth 4.0 core specification (Bluetooth Core Specification Version 4.0), and start the corresponding certification program. According to the Bluetooth 4.0 protocol, there is only an authentication process between the Bluetooth headset and the electronic device, that is, there are only authenticated interactive messages. Other interactive messages need to be added here, such as the messages obtained from the scene, and the Bluetooth protocol needs to be changed. The modification of a communication protocol takes a long time, so the interactive method is not conducive to promotion. However, for the determination of the data method, it is only necessary to make a modification to the inside of the wireless headset, or even to upgrade the wireless headset to a version, which can quickly respond to the market, and this method is also conducive to adjustment. The above methods can be adjusted when the version is upgraded, and the response strategy can be added or changed according to the needs of users, so it has the advantage of quickly responding to the market.
本申请提供的无线耳机采集到触控数据后,依据该触控数据得到第一动作,然后获取当前场景,生成在当前场景下与第一动作匹配的第一控制命令,这样无线耳机能够对该场景进行识别,并生成匹配的控制命令,这样能够使得控制命令与场景匹配,方便用户使用,用户也可以通过非常有限的触控数据来实现对无线耳机的复杂控制,从而提高用户体验度。After the wireless headset provided by the present application collects the touch data, obtains the first action according to the touch data, then acquires the current scene, and generates the first control command matching the first action in the current scene, so that the wireless headset can perform the control command on the current scene. The scene is identified, and matching control commands are generated, which can match the control commands with the scene, which is convenient for users to use. Users can also realize complex control of wireless headsets through very limited touch data, thereby improving user experience.
图5示出的是与本申请实施例提供的电子装置相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、传感器950、音频采集器960、无线保真(Wireless Fidelity,WiFi)模块970、应用处理器AP980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. 5 , the mobile phone includes: a radio frequency (RF)
下面结合图5对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone in conjunction with Figure 5:
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933、指纹识别装置931、人脸识别装置936、虹膜识别装置937以及其他输入设备932。输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。其中,The
AP980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,AP980可包括一个或多个处理单元;可选的,AP980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到AP980中。AP980 is the control center of the mobile phone, and uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in Various functions and processing data for overall monitoring of the mobile phone. Optionally, the AP980 may include one or more processing units; optionally, the AP980 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. The modulation processor mainly handles wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the AP980.
此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Additionally,
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触控显示屏的亮度,接近传感器可在手机移动到耳边时,关闭触控显示屏和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the touch display screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch display screen when the mobile phone is moved to the ear and/or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.
音频采集器960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频采集器960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频采集器960接收后转换为音频数据,再将音频数据播放AP980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the
手机还包括给各个部件供电的电源990(比如电池),可选的,电源可以通过电源管理系统与AP980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) that supplies power to various components. Optionally, the power supply can be logically connected to the AP980 through the power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块、补光装置、光线传感器等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, a light-filling device, a light sensor, etc., which will not be repeated here.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种基于无线耳机的触摸控制方法的部分或全部步骤。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute any wireless headset-based touch as described in the above method embodiments Some or all steps of a control method.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种基于无线耳机的触摸控制方法的部分或全部步骤。Embodiments of the present application further provide a computer program product, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to execute the methods described in the foregoing method embodiments Part or all of the steps of any wireless headset-based touch control method.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, and can also be implemented in the form of software program modules.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software program module and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810369070.2ACN108600887B (en) | 2018-04-23 | 2018-04-23 | Touch control method based on wireless earphone and related product |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810369070.2ACN108600887B (en) | 2018-04-23 | 2018-04-23 | Touch control method based on wireless earphone and related product |
| Publication Number | Publication Date |
|---|---|
| CN108600887A CN108600887A (en) | 2018-09-28 |
| CN108600887Btrue CN108600887B (en) | 2020-02-07 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810369070.2AExpired - Fee RelatedCN108600887B (en) | 2018-04-23 | 2018-04-23 | Touch control method based on wireless earphone and related product |
| Country | Link |
|---|---|
| CN (1) | CN108600887B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111093133B (en)* | 2019-12-13 | 2021-11-30 | 上海传英信息技术有限公司 | Wireless device control method, apparatus and computer readable storage medium |
| CN111050266B (en)* | 2019-12-20 | 2021-07-30 | 朱凤邹 | A method and system for function control based on earphone detection action |
| CN112738778A (en)* | 2020-12-24 | 2021-04-30 | 北京搜狗科技发展有限公司 | Recommendation method and earphone device |
| CN115665313A (en)* | 2021-07-09 | 2023-01-31 | 华为技术有限公司 | Device control method and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103905949A (en)* | 2014-03-18 | 2014-07-02 | 常州星聚网络科技有限公司 | Independent intelligent headset capable of having access to network through 3G or 4G technology |
| CN204131679U (en)* | 2014-06-17 | 2015-01-28 | 惠州市汇华科技有限公司 | A kind of bluetooth earphone |
| CN206640736U (en)* | 2016-12-30 | 2017-11-14 | 语联网(武汉)信息技术有限公司 | It is a kind of can instant translation intelligent earphone |
| CN207070277U (en)* | 2017-08-04 | 2018-03-02 | 东莞志丰电子有限公司 | All-in-one touch Bluetooth headset |
| Publication number | Publication date |
|---|---|
| CN108600887A (en) | 2018-09-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108900231B (en) | Dynamic antenna adjustment method and related products | |
| CN108063646A (en) | Anti-interference method for electronic equipment and related products | |
| CN105208056B (en) | Information interaction method and terminal | |
| CN107172266A (en) | Fingerprint identification control method and related products | |
| CN108600887B (en) | Touch control method based on wireless earphone and related product | |
| CN109150221B (en) | A wearable device master-slave switching method and related products | |
| WO2017215660A1 (en) | Scene sound effect control method, and electronic device | |
| CN108897516B (en) | A kind of wearable device volume adjustment method and related products | |
| CN107480489A (en) | Solve lock control method and Related product | |
| WO2021147718A1 (en) | Audio transmission method and electronic device | |
| CN108833683B (en) | Dynamic antenna adjustment implementation method and related product | |
| CN106126165B (en) | A kind of audio stream processing method and mobile terminal | |
| CN110062104A (en) | Application program launching method, device and mobile terminal | |
| WO2017215661A1 (en) | Scenario-based sound effect control method and electronic device | |
| WO2017215511A1 (en) | Control method of scene sound effect and related products | |
| CN108388340A (en) | Control method of electronic device and Related product | |
| CN106126170A (en) | A terminal sound effect setting method and terminal | |
| CN107864299B (en) | Image display method and related products | |
| CN107295163A (en) | Information processing method and related product | |
| CN107256334A (en) | recipe matching method and related product | |
| CN108834013A (en) | A wearable device power balance method and related products | |
| CN108810261B (en) | Antenna switching method in call and related product | |
| CN106453909A (en) | A power adjustment method and mobile terminal | |
| CN106815078A (en) | A kind of internal memory control method and equipment | |
| CN106686428A (en) | A video playback method and device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20200207 | |
| CF01 | Termination of patent right due to non-payment of annual fee |