技术领域technical field
本公开是涉及计算机技术领域,尤其是关于一种具有超声波距离检测功能的终端。The present disclosure relates to the field of computer technology, in particular to a terminal with an ultrasonic distance detection function.
背景技术Background technique
随着计算机技术的发展,移动终端的用途越来越广泛,已经成为了人们日常工作、生活中最重要的工具之一。为了更加方便用户使用移动终端,在移动终端中设置有多种传感器,分别具有不同的功能,如距离传感器、光线传感器等,距离传感器用于检测物体(一般为人脸)与移动终端之间的距离,光线传感器可以用于检测外界光强。With the development of computer technology, mobile terminals are used more and more widely, and have become one of the most important tools in people's daily work and life. In order to make it easier for users to use the mobile terminal, a variety of sensors are installed in the mobile terminal, each with different functions, such as a distance sensor, a light sensor, etc. The distance sensor is used to detect the distance between an object (usually a human face) and the mobile terminal , the light sensor can be used to detect the external light intensity.
现有技术中,距离传感器可以是超声波发射器,移动终端进行通话处理时,移动终端的处理器中的Audio DSP(Audio Digital Signal Processor,声音数字信号处理器)、超声波发射器和麦克风三者共同确定终端与物体之间的距离,在确定出终端与物体之间的距离后,处理器可以确定该距离对应的控制指令,然后执行该控制指令,例如,当距离小于预设数值时,控制指令为关闭屏幕,处理器可以控制屏幕关闭等。In the prior art, the distance sensor can be an ultrasonic transmitter. When the mobile terminal performs call processing, the Audio DSP (Audio Digital Signal Processor, sound digital signal processor), the ultrasonic transmitter and the microphone in the processor of the mobile terminal work together. Determine the distance between the terminal and the object. After determining the distance between the terminal and the object, the processor can determine the control instruction corresponding to the distance, and then execute the control instruction. For example, when the distance is less than the preset value, the control instruction To turn off the screen, the processor may control the screen to turn off or the like.
在实现本公开的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present disclosure, the inventors found that the prior art has at least the following problems:
Audio DSP除上述距离检测功能外还有很多功能,如对语音信号进行回声消除等,因此,Audio DSP结构较为复杂,功耗比较大。而基于上述方案,每当终端需要使用超声波发射器进行距离检测时,Audio DSP都会开启,这样,导致终端功耗比较大。Audio DSP has many functions besides the above-mentioned distance detection function, such as echo cancellation for voice signals, etc. Therefore, the structure of Audio DSP is relatively complicated and the power consumption is relatively large. Based on the above solution, whenever the terminal needs to use the ultrasonic transmitter to perform distance detection, the Audio DSP will be turned on, which leads to relatively large power consumption of the terminal.
发明内容Contents of the invention
为了克服相关技术中存在的问题,本公开提供了一种具有超声波距离检测功能的终端。所述技术方案如下:In order to overcome the problems existing in related technologies, the present disclosure provides a terminal with an ultrasonic distance detection function. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种具有超声波距离检测功能的终端,所述终端包括处理器、超声波发射器和智能麦克风,其中:According to the first aspect of an embodiment of the present disclosure, there is provided a terminal with an ultrasonic distance detection function, the terminal includes a processor, an ultrasonic transmitter, and a smart microphone, wherein:
所述处理器分别与所述智能麦克风、所述超声波发射器电性连接,所述智能麦克风与所述超声波发射器电性连接;The processor is electrically connected to the smart microphone and the ultrasonic transmitter, respectively, and the smart microphone is electrically connected to the ultrasonic transmitter;
所述智能麦克风,用于在接收到所述处理器发送的距离检测指令后,向所述超声波发射器发送音频数据;The smart microphone is configured to send audio data to the ultrasonic transmitter after receiving the distance detection instruction sent by the processor;
所述超声波发射器,用于发射对应所述音频数据的声波信号;The ultrasonic transmitter is used to transmit a sound wave signal corresponding to the audio data;
所述智能麦克风,用于接收被物体反射回来的对应所述音频数据的声波信号,确定所述被物体反射回来的声波信号的接收时间点与发射时间点之间的时间差,根据所述时间差,确定所述终端与所述物体之间的距离,向所述处理器发送所述距离;The smart microphone is used to receive the sound wave signal corresponding to the audio data reflected back by the object, determine the time difference between the receiving time point and the emission time point of the sound wave signal reflected back by the object, and according to the time difference, determining a distance between the terminal and the object, and sending the distance to the processor;
所述处理器,用于确定所述距离对应的控制指令,执行所述控制指令。The processor is configured to determine a control instruction corresponding to the distance, and execute the control instruction.
可选的,所述处理器,用于在进行通话的过程中,当所述距离小于或等于第一预设数值时,控制所述终端的屏幕关闭,并用于在进行通话的过程中,当所述距离大于所述第一预设数值时,控制所述屏幕开启;或者,Optionally, the processor is configured to control the screen of the terminal to turn off when the distance is less than or equal to a first preset value during the call, and is used to turn off the screen of the terminal when the distance is less than or equal to a first preset value during the call. When the distance is greater than the first preset value, controlling the screen to be turned on; or,
所述处理器,用于在播放语音通讯消息的过程中,当所述距离小于或等于第二预设数值时,控制所述终端的音频播放模式为听筒播放模式,并用于在播放语音通讯消息的过程中,当所述距离大于所述第二预设数值时,控制所述音频播放模式为扬声器播放模式。The processor is configured to control the audio playback mode of the terminal to the handset playback mode when the distance is less than or equal to a second preset value during the playback of the voice communication message, and is used to play the voice communication message During the process, when the distance is greater than the second preset value, the audio playback mode is controlled to be a speaker playback mode.
可选的,所述处理器用于当在第一预设时长内连续接收到的多个距离满足预设的第一变化规则时,确定所述第一变化规则对应的控制指令,执行所述控制指令。Optionally, the processor is configured to determine a control instruction corresponding to the first change rule when the multiple distances received continuously within the first preset time length satisfy a preset first change rule, and execute the control instruction.
可选的,所述智能麦克风还用于当在第二预设时长内连续接收到的多个距离预设的第二变化规则时,向所述处理器发送唤醒通知;Optionally, the smart microphone is further configured to send a wake-up notification to the processor when a plurality of second preset distance change rules are continuously received within a second preset duration;
所述处理器还用于在接收到所述唤醒通知时,向所述智能麦克风获取所述第二变化规则,确定所述第二变化规则对应的控制指令,执行所述第二变化规则对应的控制指令。The processor is further configured to obtain the second change rule from the smart microphone when receiving the wake-up notification, determine the control instruction corresponding to the second change rule, and execute the control instruction corresponding to the second change rule. Control instruction.
可选的,所述终端还包括数模转换器;Optionally, the terminal further includes a digital-to-analog converter;
所述数模转换器设置在所述超声波发射器和所述智能麦克风的连接线路上;The digital-to-analog converter is arranged on the connection line between the ultrasonic transmitter and the smart microphone;
所述数模转换器,用于在接收到所述智能麦克风发送的对应所述音频数据的数字信号后,将所述数字信号转化为对应所述音频数据的模拟信号,向所述超声波发射器发送对应所述音频数据的模拟信号;The digital-to-analog converter is configured to convert the digital signal into an analog signal corresponding to the audio data after receiving the digital signal corresponding to the audio data sent by the smart microphone, and send the digital signal to the ultrasonic transmitter sending an analog signal corresponding to said audio data;
所述超声波发射器,用于发射对应所述音频数据的模拟信号的声波信号。The ultrasonic transmitter is used for transmitting a sound wave signal corresponding to the analog signal of the audio data.
可选的,所述数模转换器为音频编译码器Audio Codec。Optionally, the digital-to-analog converter is an Audio Codec.
可选的,所述终端还包括信号放大器;Optionally, the terminal also includes a signal amplifier;
所述信号放大器设置在所述超声波发射器和所述数模转换器的连接线路上;The signal amplifier is arranged on the connection line between the ultrasonic transmitter and the digital-to-analog converter;
所述信号放大器,用于在接收到所述数模转换器发送的对应所述音频数据的模拟信号后,对所述模拟信号进行功率放大,向所述超声波发射器发送进行功率放大后的对应所述音频数据的模拟信号;The signal amplifier is configured to amplify the power of the analog signal after receiving the analog signal corresponding to the audio data sent by the digital-to-analog converter, and send a corresponding power amplified signal to the ultrasonic transmitter. an analog signal of said audio data;
所述超声波发射器,用于发射对应进行功率放大后的所述音频数据的模拟信号的声波信号。The ultrasonic transmitter is used for transmitting a sound wave signal corresponding to the analog signal of the audio data after power amplification.
这样,可以使智能麦克风接收到的声音信号的功率更大。In this way, the sound signal received by the smart microphone can be made more powerful.
可选的,所述智能麦克风,用于在预设的超声波频段内检测被物体反射回来的对应所述音频数据的声波信号。Optionally, the smart microphone is used to detect the sound wave signal corresponding to the audio data reflected back by the object within a preset ultrasonic frequency band.
可选的,所述超声波发射器设置于所述终端的屏幕的上边缘的中部。Optionally, the ultrasonic transmitter is arranged in the middle of the upper edge of the screen of the terminal.
这样,可以使用户更加方便的使用终端。In this way, the user can use the terminal more conveniently.
可选的,所述智能麦克风设置于所述终端的上边缘的中部。Optionally, the smart microphone is arranged in the middle of the upper edge of the terminal.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开实施例中,终端包括处理器、超声波发射器和智能麦克风,其中:处理器分别与智能麦克风、超声波发射器电性连接,智能麦克风与超声波发射器电性连接,智能麦克风,用于在接收到处理器发送的距离检测指令后,向超声波发射器发送音频数据,超声波发射器,用于发射对应音频数据的声波信号,智能麦克风,用于接收被物体反射回来的对应音频数据的声波信号,确定被物体反射回来的声波信号的接收时间点与发射时间点之间的时间差,根据时间差,确定终端与物体之间的距离,向处理器发送距离,处理器,用于确定距离对应的控制指令,执行控制指令。这样,终端在进行距离检测时,智能麦克风可以确定终端与物体之间的距离,而不需要开启Audio DSP,从而可以降低终端的功耗。In the embodiment of the present disclosure, the terminal includes a processor, an ultrasonic transmitter, and a smart microphone, wherein: the processor is electrically connected to the smart microphone and the ultrasonic transmitter, respectively, the smart microphone is electrically connected to the ultrasonic transmitter, and the smart microphone is used to After receiving the distance detection command sent by the processor, send audio data to the ultrasonic transmitter, the ultrasonic transmitter is used to transmit the sound wave signal corresponding to the audio data, and the smart microphone is used to receive the sound wave signal corresponding to the audio data reflected back by the object , determine the time difference between the receiving time point and the emitting time point of the acoustic wave signal reflected back by the object, determine the distance between the terminal and the object according to the time difference, and send the distance to the processor, and the processor is used to determine the control corresponding to the distance Instructions, execute control instructions. In this way, when the terminal performs distance detection, the smart microphone can determine the distance between the terminal and the object without enabling the Audio DSP, thereby reducing the power consumption of the terminal.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. In the attached picture:
图1是根据一示例性实施例示出的一种具有超声波距离检测的终端的结构示意图;Fig. 1 is a schematic structural diagram of a terminal with ultrasonic distance detection according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种具有超声波距离检测的终端的结构示意图;Fig. 2 is a schematic structural diagram of a terminal with ultrasonic distance detection according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种具有超声波距离检测的终端的结构示意图。Fig. 3 is a schematic structural diagram of a terminal with ultrasonic distance detection according to an exemplary embodiment.
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.
具体实施方式detailed description
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present disclosure clearer, the implementation manners of the present disclosure will be further described in detail below in conjunction with the accompanying drawings.
本公开实施例提供了一种具有超声波距离检测的终端,该终端可以为手机等移动终端,如图1所示,该终端包括处理器1、超声波发射器2和智能麦克风3,其中:处理器1分别与智能麦克风3、超声波发射器2电性连接,智能麦克风3与超声波发射器2电性连接;智能麦克风3,用于在接收到处理器1发送的距离检测指令后,向超声波发射器2发送音频数据;超声波发射器2,用于发射对应音频数据的声波信号;智能麦克风3,用于接收被物体反射回来的对应音频数据的声波信号,确定被物体反射回来的声波信号的接收时间点与发射时间点之间的时间差,根据时间差,确定终端与物体之间的距离,向处理器1发送距离;处理器1,用于确定距离对应的控制指令,执行控制指令。An embodiment of the present disclosure provides a terminal with ultrasonic distance detection. The terminal may be a mobile terminal such as a mobile phone. As shown in FIG. 1 , the terminal includes a processor 1, an ultrasonic transmitter 2 and a smart microphone 3, wherein: the processor 1 is electrically connected to the smart microphone 3 and the ultrasonic transmitter 2 respectively, and the smart microphone 3 is electrically connected to the ultrasonic transmitter 2; 2 Send audio data; Ultrasonic transmitter 2 is used to transmit the sound wave signal corresponding to the audio data; Smart microphone 3 is used to receive the sound wave signal corresponding to the audio data reflected back by the object, and determine the receiving time of the sound wave signal reflected back by the object The time difference between the point and the launch time point, according to the time difference, determine the distance between the terminal and the object, and send the distance to the processor 1; the processor 1 is used to determine the control command corresponding to the distance, and execute the control command.
在实施中,终端可以是手机等移动终端,终端中设置有智能麦克风3、处理器1和超声波发射器2,处理器1分别于智能麦克风3、超声波发射器2电性连接,智能麦克风3与超声波发射器2电性连接,处理器1在检测到预设的操作事件后,控制智能麦克风3和超声波发射器2开启,如处理器1在检测到终端在通话,或检测到终端在播放语音通讯消息,向智能麦克风3发送距离检测指令,控制智能麦克风3开启。智能麦克风3开启后,智能麦克风3中的DSP可以生成音频数据或获取预先存储的音频数据,然后向超声波发射器2发送该音频数据。超声波发射器2接收到音频数据后,对应该音频数据发射声波信号。智能麦克风3处于开启状态时,可以接收声波信号,超声波发射器2发射的声波信号遇到物体,会被反射回来,智能麦克风3中的DSP可以接收被物体反射回来的对应音频数据的声波信号。然后确定向超声波发射器2,发送音频数据的时间点为发射对应音频数据的声波信号的发射时间点,并确定接收被物体反射回来的对应音频数据的声波信号的接收时间点,然后确定该接收时间点与发射时间点之间的时间差,然后将该时间差乘以声波信号的传输速度除以2,计算出终端与物体之间的距离,计算公式是L=V*T/2,(该公式中V表示声波信号的传输速度,T为接收时间点与发射时间点之间的时间差),然后向处理器1发送该距离。处理器1接收到智能麦克风3发送的距离后,可以查看预先存储的距离与控制指令的对应关系,确定该距离对应的控制指令,然后执行该控制指令。In implementation, the terminal can be a mobile terminal such as a mobile phone, and the terminal is provided with a smart microphone 3, a processor 1 and an ultrasonic transmitter 2, and the processor 1 is electrically connected to the smart microphone 3 and the ultrasonic transmitter 2 respectively, and the smart microphone 3 and the ultrasonic transmitter 2 are electrically connected to each other. The ultrasonic transmitter 2 is electrically connected. After the processor 1 detects a preset operation event, it controls the smart microphone 3 and the ultrasonic transmitter 2 to turn on. For example, the processor 1 detects that the terminal is talking, or detects that the terminal is playing voice The communication message sends a distance detection command to the smart microphone 3 to control the smart microphone 3 to turn on. After the smart microphone 3 is turned on, the DSP in the smart microphone 3 can generate audio data or obtain pre-stored audio data, and then send the audio data to the ultrasonic transmitter 2 . After receiving the audio data, the ultrasonic transmitter 2 emits a sound wave signal corresponding to the audio data. When the smart microphone 3 is in the open state, it can receive the sound wave signal. The sound wave signal emitted by the ultrasonic transmitter 2 encounters an object and will be reflected back. The DSP in the smart microphone 3 can receive the sound wave signal corresponding to the audio data reflected by the object. Then determine that to the ultrasonic transmitter 2, the time point of sending audio data is the emission time point of the sound wave signal corresponding to the audio data, and determine the reception time point of the sound wave signal corresponding to the audio data reflected by the object, and then determine the receiving time point The time difference between the time point and the launch time point, and then multiply the time difference by the transmission speed of the acoustic signal and divide it by 2 to calculate the distance between the terminal and the object. The calculation formula is L=V*T/2, (the formula where V represents the transmission speed of the acoustic wave signal, T is the time difference between the receiving time point and the transmitting time point), and then the distance is sent to the processor 1 . After the processor 1 receives the distance sent by the smart microphone 3, it can check the correspondence between the pre-stored distance and the control command, determine the control command corresponding to the distance, and then execute the control command.
需要说明的是,智能麦克风中的DSP结构比较简单,仅用于终端确定与物体之间的距离时使用,功耗相对于Audio DSP小很多。It should be noted that the DSP structure in the smart microphone is relatively simple, and it is only used when the terminal determines the distance to the object, and the power consumption is much smaller than that of the Audio DSP.
可选的,超声波发射器2设置于终端的屏幕的上边缘的中部。智能麦克风3设置于终端的上边缘的中部。Optionally, the ultrasonic transmitter 2 is disposed in the middle of the upper edge of the screen of the terminal. The smart microphone 3 is arranged in the middle of the upper edge of the terminal.
在实施中,一般人们在打电话或听语音通讯消息时,终端的屏幕的上边缘靠近人脸,所以超声波发射器2一般设置于终端的屏幕的上边缘的中部,这样,可以更好检测终端与人脸之间的距离,使确定出的控制指令更准确。为了使智能麦克风3计算出的终端与物体之间的距离更准确,智能麦克风3一般设置在超声波发射器2的旁边,可以设置于终端的上边缘的中部。In practice, generally when people make a phone call or listen to a voice communication message, the upper edge of the terminal screen is close to the face, so the ultrasonic transmitter 2 is generally arranged in the middle of the upper edge of the terminal screen, so that the terminal can be better detected. The distance between the face and the face makes the determined control instructions more accurate. In order to make the distance between the terminal and the object calculated by the smart microphone 3 more accurate, the smart microphone 3 is generally arranged beside the ultrasonic transmitter 2, and may be arranged in the middle of the upper edge of the terminal.
可选的,处理器1接收到的距离不同时,执行不同的控制指令,相应的,处理器1,用于在进行通话的过程中,当距离小于或等于第一预设数值时,控制终端的屏幕关闭,并用于在进行通话的过程中,当距离大于第一预设数值时,控制屏幕开启;或者,处理器1,用于在播放语音通讯消息的过程中,当距离小于或等于第二预设数值时,控制终端的音频播放模式为听筒播放模式,并用于在播放语音通讯消息的过程中,当距离大于第二预设数值时,控制音频播放模式为扬声器播放模式。Optionally, when the distances received by the processor 1 are different, different control instructions are executed. Correspondingly, the processor 1 is used to control the terminal when the distance is less than or equal to the first preset value during the call. The screen is turned off, and is used to control the screen to turn on when the distance is greater than the first preset value during the call; or, the processor 1 is used to control the screen when the distance is less than or equal to the first preset value during the process of playing the voice communication message. When the second preset value is used, the audio playback mode of the control terminal is the earpiece playback mode, and is used to control the audio playback mode to be the speaker playback mode when the distance is greater than the second preset value during the playback of the voice communication message.
其中,第一预设数值、第二预设数值可以由技术人员设置,并且存储在终端中,第一预设数值与第二预设数值可以相同,也可以不相同,如第一预设数值与第二预设数值都为5厘米,第一预设数值为5厘米,第二预设数值为3厘米等。Wherein, the first preset value and the second preset value can be set by technicians and stored in the terminal, the first preset value and the second preset value can be the same or different, such as the first preset value Both the second preset value and the second preset value are 5 cm, the first preset value is 5 cm, the second preset value is 3 cm, and so on.
在实施中,在进行通话的过程中,处理器1在接收到智能麦克风3发送的距离时,当确定该距离小于或等于第一预设数值时,控制关闭屏幕,可以节约电量。当确定该距离大于第一预设数值时,控制屏幕从关闭到开启。In practice, during a call, when the processor 1 receives the distance sent by the smart microphone 3 and determines that the distance is less than or equal to the first preset value, the processor 1 controls to turn off the screen, which can save power. When it is determined that the distance is greater than the first preset value, the control screen is turned from off to on.
或者,在播放语音通讯消息的过程中,处理器1在接收到智能麦克风3发送的距离时,当确定该距离小于或等于第二预设数值时,将终端的音频播放模式设置为听筒播放模式,这样,语音通讯消息以听筒播放模式进行播放,不会被别人听见。当确定该距离大于第二预设数值时,将终端的音频播放模式设置为扬声器播放模式,这样,语音通讯消息以扬声器播放模式进行播放,用户可以更清楚的听到语音通讯消息。Or, in the process of playing the voice communication message, when the processor 1 receives the distance sent by the smart microphone 3 and determines that the distance is less than or equal to the second preset value, the audio playback mode of the terminal is set to the earpiece playback mode , like this, the voice communication message is played in the handset playback mode, and will not be heard by others. When it is determined that the distance is greater than the second preset value, the audio playback mode of the terminal is set to the speaker playback mode, so that the voice communication message is played in the speaker playback mode, and the user can hear the voice communication message more clearly.
可选的,处理器1还可以使用接收到的多个距离确定控制指令,处理器1可以用于当在第一预设时长内连续接收到的多个距离满足预设的第一变化规则时,确定第一变化规则对应的控制指令,执行控制指令。Optionally, the processor 1 may also use the received multiple distances to determine the control instruction, and the processor 1 may be used for when the multiple distances received continuously within the first preset duration satisfy the preset first change rule , determine a control instruction corresponding to the first change rule, and execute the control instruction.
其中,第一预设时长可以由技术人员设置,并且存储至终端中,如0.5秒等。Wherein, the first preset duration can be set by a technician and stored in the terminal, such as 0.5 seconds.
在实施中,用户可以做预设的操作后,如点击电源按键等,处理器1则会检测到预设的操作事件,可以控制开启智能麦克风3,然后用户做预设的手势,如将手指在超声波发射器2的正上方沿远离超声波发射器2的方向移动等,智能麦克风3则会根据公式L=V*T/2,(该公式中V表示声波信号的传输速度,T为接收时间点与发射时间点之间的时间差),确定出多个距离,向处理器1发送多个距离。处理器1接收到多个距离时,当确定第一预设时长内连续接收到的多个距离满足第一变化规则时,可以从预先存储的变化规则与控制指令的对应关系中,确定第一变化规则对应的控制指令,然后执行控制指令。例如,用户将手指在超声波发射器2的正上方沿远离超声波发射器2的方向移动,多个连续的距离为从小到大,处理器1确定的第一变化规则为由下到上,控制指令为开启照相机,终端则会开启照相机,用户将手指在超声波发射器2的正上方沿靠近超声波发射器2的方向移动,多个连续的距离为从大到小,处理器1确定的第一变化规则为由上到下,控制指令为切换歌曲,终端则会切换到下一首歌曲。In practice, after the user performs a preset operation, such as clicking the power button, the processor 1 will detect the preset operation event, and can control to turn on the smart microphone 3, and then the user makes a preset gesture, such as moving the finger Moving in a direction away from the ultrasonic transmitter 2 directly above the ultrasonic transmitter 2, etc., the smart microphone 3 will be according to the formula L=V*T/2, (in this formula, V represents the transmission speed of the sound wave signal, and T is the receiving time The time difference between the point and the emission time point), determine a plurality of distances, and send the plurality of distances to the processor 1. When the processor 1 receives multiple distances, when it is determined that the multiple distances received continuously within the first preset time period meet the first change rule, it can determine the first change rule from the correspondence between the pre-stored change rule and the control instruction. Change the control instruction corresponding to the rule, and then execute the control instruction. For example, the user moves his finger directly above the ultrasonic transmitter 2 in a direction away from the ultrasonic transmitter 2, and the multiple continuous distances are from small to large, and the first change rule determined by the processor 1 is from bottom to top, and the control instruction In order to turn on the camera, the terminal will turn on the camera, and the user moves the finger directly above the ultrasonic transmitter 2 in a direction close to the ultrasonic transmitter 2. The multiple continuous distances are from large to small, and the first change determined by the processor 1 is The rule is from top to bottom, the control command is to switch songs, and the terminal will switch to the next song.
可选的,智能麦克风3还用于当在第二预设时长内连续接收到的多个距离预设的第二变化规则时,向处理器1发送唤醒通知;处理器1还用于在接收到唤醒通知时,向所述智能麦克风获取第二变化规则,确定第二变化规则对应的控制指令,执行第二变化规则对应的控制指令。Optionally, the smart microphone 3 is also used to send a wake-up notification to the processor 1 when a plurality of distance preset second change rules are continuously received within the second preset duration; the processor 1 is also used to receive When the notification is woken up, acquire the second change rule from the smart microphone, determine the control instruction corresponding to the second change rule, and execute the control instruction corresponding to the second change rule.
其中,第二预设时长可以由技术人员设置,并且存储至终端中,如0.6秒等。Wherein, the second preset duration can be set by a technician and stored in the terminal, such as 0.6 seconds.
在实施中,用户可以做预设的手势,如将手指在超声波发射器2的正上方沿远离超声波发射器2的方向移动等,智能麦克风3则会根据公式L=V*T/2,(该公式中V表示声波信号的传输速度,T为接收时间点与发射时间点之间的时间差),确定出多个连续的距离,当确定第二预设时长内连续接收到的多个距离满足第二变化规则时,如多个连续的距离为从小到大,智能麦克风3确定的第二变化规则为由下到上等,可以通过中断管脚向处理器1发送唤醒通知。处理器1接收到唤醒通知时,可以通过总线从智能麦克风3获取第二变化规则,然后从变化规则与控制指令的对应关系中,确定第二变化规则对应的控制指令,然后执行该控制指令。In implementation, the user can make a preset gesture, such as moving the finger directly above the ultrasonic transmitter 2 in a direction away from the ultrasonic transmitter 2, etc., and the smart microphone 3 will be based on the formula L=V*T/2, ( In this formula, V represents the transmission speed of the acoustic wave signal, and T is the time difference between the receiving time point and the transmitting time point), and a plurality of continuous distances are determined. In the second change rule, if the multiple continuous distances are from small to large, the second change rule determined by the smart microphone 3 is from bottom to top, etc., and a wake-up notification can be sent to the processor 1 through the interrupt pin. When the processor 1 receives the wake-up notification, it can obtain the second change rule from the smart microphone 3 through the bus, and then determine the control command corresponding to the second change rule from the correspondence between the change rule and the control command, and then execute the control command.
可选的,如图2所示,终端还包括数模转换器4;数模转换器4设置在超声波发射器2和智能麦克风3的连接线路上;数模转换器4,用于在接收到智能麦克风3发送的对应音频数据的数字信号后,将数字信号转化为对应音频数据的模拟信号,向超声波发射器2发送对应音频数据的模拟信号;超声波发射器2,用于发射对应音频数据的模拟信号的声波信号。Optionally, as shown in Figure 2, the terminal also includes a digital-to-analog converter 4; the digital-to-analog converter 4 is arranged on the connection line between the ultrasonic transmitter 2 and the smart microphone 3; the digital-to-analog converter 4 is used for receiving After the digital signal corresponding to the audio data sent by the smart microphone 3, the digital signal is converted into an analog signal corresponding to the audio data, and the analog signal corresponding to the audio data is sent to the ultrasonic transmitter 2; the ultrasonic transmitter 2 is used to transmit the corresponding audio data. The acoustic signal of the analog signal.
在实施中,终端中还可以设置有数模转换器4,数模转换器4设置在超声波发射器2和智能麦克风3的连接线路上。智能麦克风3在生成音频数据后或获取预先存储的音频数据后,可以向数模转换器4发送对应音频数据的数字信号,数模转换器4接收到智能麦克风3发送的对应音频数据的数字信号后,可以将数字信号转换为对应音频数据的模拟信号,然后将该模拟信号发送至超声波发射器2。超声波发射器2在接收到该模拟信号后,可以发发射对应音频数据的模拟信号的声波信号。In implementation, a digital-to-analog converter 4 may also be provided in the terminal, and the digital-to-analog converter 4 is provided on the connection line between the ultrasonic transmitter 2 and the smart microphone 3 . After the smart microphone 3 generates audio data or obtains pre-stored audio data, it can send a digital signal corresponding to the audio data to the digital-to-analog converter 4, and the digital-to-analog converter 4 receives the digital signal corresponding to the audio data sent by the smart microphone 3 Finally, the digital signal can be converted into an analog signal corresponding to the audio data, and then the analog signal is sent to the ultrasonic transmitter 2 . After receiving the analog signal, the ultrasonic transmitter 2 can transmit a sound wave signal corresponding to the analog signal of the audio data.
可选的,上述数模转换器4可以为音频编译码器Audio Codec。Optionally, the above-mentioned digital-to-analog converter 4 may be an Audio Codec.
可选的,如图3所示,终端中还可以包括信号放大器5;信号放大器5设置在超声波发射器2和数模转换器4的连接线路上;信号放大器5,用于在接收到数模转换器4发送的对应音频数据的模拟信号后,对模拟信号进行功率放大,向超声波发射器2发送进行功率放大后的对应音频数据的模拟信号;超声波发射器2,用于发射对应进行功率放大后的音频数据的模拟信号的声波信号。Optionally, as shown in Figure 3, a signal amplifier 5 may also be included in the terminal; the signal amplifier 5 is arranged on the connection line between the ultrasonic transmitter 2 and the digital-to-analog converter 4; the signal amplifier 5 is used for receiving the digital-to-analog After the analog signal corresponding to the audio data sent by the converter 4, the analog signal is power amplified, and the analog signal corresponding to the audio data after power amplification is sent to the ultrasonic transmitter 2; the ultrasonic transmitter 2 is used to transmit the corresponding power amplification The analog signal after the audio data is the sonic signal.
在实施中,终端中还可以设置有信号放大器5,信号放大器5可以设置在超声波发射器2和数模转换器4的连接线路上,数模转换器4将接收自智能麦克风3发送的对应音频数据的数字信号转换为模拟信号后,可以向信号放大器5发送该模拟信号。信号放大器5可以对该模拟信号进行功率放大,得到进行功率放大后的模拟信号,向超声波发射器2发送。超声波发射器2在接收到进行功率放大后的模拟信号后,可以发射对应进行功率放大后的模拟信号的声波信号。In implementation, a signal amplifier 5 can also be provided in the terminal, and the signal amplifier 5 can be arranged on the connection line between the ultrasonic transmitter 2 and the digital-to-analog converter 4, and the digital-to-analog converter 4 will receive the corresponding audio frequency sent from the smart microphone 3. After the digital signal of the data is converted into an analog signal, the analog signal can be sent to the signal amplifier 5 . The signal amplifier 5 can amplify the power of the analog signal to obtain the amplified analog signal and send it to the ultrasonic transmitter 2 . After the ultrasonic transmitter 2 receives the power amplified analog signal, it can transmit a sound wave signal corresponding to the power amplified analog signal.
可选的,智能麦克风3,用于在预设的超声波频段内检测被物体反射回来的对应音频数据的声波信号。Optionally, the smart microphone 3 is used to detect the sound wave signal corresponding to the audio data reflected back by the object within the preset ultrasonic frequency band.
其中,预设的超声波频段可以由技术人员设置,并且存储至终端中,一般超声波声音信号的频率要高于人说话声音信号的频率,所以预设的超声波频段的最低频率也高于人说话声音信号的频率。Among them, the preset ultrasonic frequency band can be set by the technician and stored in the terminal. Generally, the frequency of the ultrasonic sound signal is higher than the frequency of the human speaking sound signal, so the lowest frequency of the preset ultrasonic frequency band is also higher than the human speaking sound. the frequency of the signal.
在实施中,智能麦克风3在接收到超声波发射器2发送的声波信号时,同时也会接收到环境中的其他声音信号,智能麦克风3可以对接收到的声音信号进行分离,仅获取预设的超声波频段内被物体反射回来的对应音频数据的声波信号。In practice, when the smart microphone 3 receives the sound wave signal sent by the ultrasonic transmitter 2, it will also receive other sound signals in the environment. The smart microphone 3 can separate the received sound signals and only obtain the preset The sound wave signal corresponding to the audio data reflected back by the object in the ultrasonic frequency band.
本公开实施例中,终端包括处理器1、超声波发射器2和智能麦克风3,其中:处理器1分别与智能麦克风3、超声波发射器2电性连接,智能麦克风3与超声波发射器2电性连接,智能麦克风3,用于在接收到处理器1发送的距离检测指令后,向超声波发射器2发送音频数据,超声波发射器2,用于发射对应音频数据的声波信号,智能麦克风3,用于接收被物体反射回来的对应音频数据的声波信号,确定被物体反射回来的声波信号的接收时间点与发射时间点之间的时间差,根据时间差,确定终端与物体之间的距离,向处理器1发送距离,处理器1,用于确定距离对应的控制指令,执行控制指令。这样,终端在进行距离检测时,智能麦克风可以确定终端与物体之间的距离,而不需要开启Audio DSP,从而可以降低终端的功耗。In the embodiment of the present disclosure, the terminal includes a processor 1, an ultrasonic transmitter 2 and a smart microphone 3, wherein: the processor 1 is electrically connected to the smart microphone 3 and the ultrasonic transmitter 2 respectively, and the smart microphone 3 is electrically connected to the ultrasonic transmitter 2 connection, the smart microphone 3 is used to send audio data to the ultrasonic transmitter 2 after receiving the distance detection instruction sent by the processor 1, the ultrasonic transmitter 2 is used to transmit the sound wave signal corresponding to the audio data, and the smart microphone 3 is used to To receive the sound wave signal corresponding to the audio data reflected back by the object, determine the time difference between the receiving time point and the emission time point of the sound wave signal reflected back by the object, determine the distance between the terminal and the object according to the time difference, and send to the processor 1 Sending the distance, the processor 1 is configured to determine the control instruction corresponding to the distance, and execute the control instruction. In this way, when the terminal performs distance detection, the smart microphone can determine the distance between the terminal and the object without enabling the Audio DSP, thereby reducing the power consumption of the terminal.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710112848.7ACN106896362A (en) | 2017-02-28 | 2017-02-28 | A kind of terminal that function is detected with ultrasonic distance |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710112848.7ACN106896362A (en) | 2017-02-28 | 2017-02-28 | A kind of terminal that function is detected with ultrasonic distance |
| Publication Number | Publication Date |
|---|---|
| CN106896362Atrue CN106896362A (en) | 2017-06-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710112848.7APendingCN106896362A (en) | 2017-02-28 | 2017-02-28 | A kind of terminal that function is detected with ultrasonic distance |
| Country | Link |
|---|---|
| CN (1) | CN106896362A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107290750A (en)* | 2017-07-17 | 2017-10-24 | 青岛海信移动通信技术股份有限公司 | Method and terminal that audio hole is blocked are detected in a kind of terminal |
| CN107396237A (en)* | 2017-09-06 | 2017-11-24 | 北京灵隆科技有限公司 | Self-positioning intelligent sound box |
| CN107844763A (en)* | 2017-10-27 | 2018-03-27 | 努比亚技术有限公司 | A kind of face identification method, mobile terminal and computer-readable recording medium |
| CN107872585A (en)* | 2017-11-30 | 2018-04-03 | 努比亚技术有限公司 | Control method, terminal and the computer-readable recording medium of screen on-off state |
| CN108111934A (en)* | 2017-12-21 | 2018-06-01 | 广东小天才科技有限公司 | Control method and device for microphone, microphone and storage medium |
| CN109151202A (en)* | 2018-08-30 | 2019-01-04 | 苏州矽典微智能科技有限公司 | A kind of control method and mobile terminal of mobile terminal display screen |
| CN109639863A (en)* | 2018-12-29 | 2019-04-16 | 维沃移动通信有限公司 | A kind of method of speech processing and device |
| CN109725704A (en)* | 2017-10-30 | 2019-05-07 | 腾讯科技(武汉)有限公司 | The method and device of control application operation |
| CN110134305A (en)* | 2019-04-02 | 2019-08-16 | 北京搜狗科技发展有限公司 | A speech rate adjustment method, device and device for speech rate adjustment |
| CN111443351A (en)* | 2020-04-29 | 2020-07-24 | 潍坊歌尔微电子有限公司 | Device with ultrasonic distance measurement function and distance measurement method |
| NO20190356A1 (en)* | 2019-03-15 | 2020-09-16 | Elliptic Laboratories As | Touchless interaction using audio components |
| CN112116803A (en)* | 2020-09-04 | 2020-12-22 | 北京小米移动软件有限公司 | Information processing method and device, electronic device and storage medium |
| CN114152948A (en)* | 2021-11-08 | 2022-03-08 | 广州安协科技股份有限公司 | An adaptive ultrasonic object detection method, system, device and storage medium |
| CN115167671A (en)* | 2022-06-30 | 2022-10-11 | 华帝股份有限公司 | Control method and control device for range hood |
| US11581864B2 (en) | 2019-03-15 | 2023-02-14 | Elliptic Laboratories As | Touchless interaction using audio components |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1697467A (en)* | 2004-04-16 | 2005-11-16 | 宝利通公司 | Speakerphone with cellular connection |
| JP2011135551A (en)* | 2009-11-27 | 2011-07-07 | Kyocera Corp | Portable electronic apparatus |
| CN104301460A (en)* | 2014-09-22 | 2015-01-21 | 惠州Tcl移动通信有限公司 | Mobile phone and method for automatically answering call of mobile phone |
| CN204480270U (en)* | 2015-03-05 | 2015-07-15 | 上海吉动数码科技有限公司 | A kind of optical character identification wand being connected smart mobile phone by ultrasonic communication |
| CN105515682A (en)* | 2015-12-01 | 2016-04-20 | 惠州Tcl移动通信有限公司 | Method and system for sending and receiving ultrasonic wave by headphone jack |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1697467A (en)* | 2004-04-16 | 2005-11-16 | 宝利通公司 | Speakerphone with cellular connection |
| JP2011135551A (en)* | 2009-11-27 | 2011-07-07 | Kyocera Corp | Portable electronic apparatus |
| CN104301460A (en)* | 2014-09-22 | 2015-01-21 | 惠州Tcl移动通信有限公司 | Mobile phone and method for automatically answering call of mobile phone |
| CN204480270U (en)* | 2015-03-05 | 2015-07-15 | 上海吉动数码科技有限公司 | A kind of optical character identification wand being connected smart mobile phone by ultrasonic communication |
| CN105515682A (en)* | 2015-12-01 | 2016-04-20 | 惠州Tcl移动通信有限公司 | Method and system for sending and receiving ultrasonic wave by headphone jack |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107290750A (en)* | 2017-07-17 | 2017-10-24 | 青岛海信移动通信技术股份有限公司 | Method and terminal that audio hole is blocked are detected in a kind of terminal |
| CN107396237A (en)* | 2017-09-06 | 2017-11-24 | 北京灵隆科技有限公司 | Self-positioning intelligent sound box |
| CN107844763A (en)* | 2017-10-27 | 2018-03-27 | 努比亚技术有限公司 | A kind of face identification method, mobile terminal and computer-readable recording medium |
| CN109725704A (en)* | 2017-10-30 | 2019-05-07 | 腾讯科技(武汉)有限公司 | The method and device of control application operation |
| CN109725704B (en)* | 2017-10-30 | 2023-05-12 | 腾讯科技(武汉)有限公司 | Method and device for controlling application running |
| CN107872585A (en)* | 2017-11-30 | 2018-04-03 | 努比亚技术有限公司 | Control method, terminal and the computer-readable recording medium of screen on-off state |
| CN107872585B (en)* | 2017-11-30 | 2021-05-21 | 努比亚技术有限公司 | Control method of screen switch state, terminal and computer readable storage medium |
| CN108111934A (en)* | 2017-12-21 | 2018-06-01 | 广东小天才科技有限公司 | Control method and device for microphone, microphone and storage medium |
| CN109151202A (en)* | 2018-08-30 | 2019-01-04 | 苏州矽典微智能科技有限公司 | A kind of control method and mobile terminal of mobile terminal display screen |
| CN109639863B (en)* | 2018-12-29 | 2021-01-26 | 维沃移动通信有限公司 | Voice processing method and device |
| CN109639863A (en)* | 2018-12-29 | 2019-04-16 | 维沃移动通信有限公司 | A kind of method of speech processing and device |
| NO20190356A1 (en)* | 2019-03-15 | 2020-09-16 | Elliptic Laboratories As | Touchless interaction using audio components |
| WO2020190145A1 (en) | 2019-03-15 | 2020-09-24 | Elliptic Laboratories As | Touchless interaction using audio components |
| NO346082B1 (en)* | 2019-03-15 | 2022-02-07 | Elliptic Laboratories As | Touchless interaction using audio components |
| US11543921B2 (en) | 2019-03-15 | 2023-01-03 | Elliptic Laboratories As | Touchless interaction using audio components |
| US11581864B2 (en) | 2019-03-15 | 2023-02-14 | Elliptic Laboratories As | Touchless interaction using audio components |
| CN110134305A (en)* | 2019-04-02 | 2019-08-16 | 北京搜狗科技发展有限公司 | A speech rate adjustment method, device and device for speech rate adjustment |
| CN111443351A (en)* | 2020-04-29 | 2020-07-24 | 潍坊歌尔微电子有限公司 | Device with ultrasonic distance measurement function and distance measurement method |
| CN112116803A (en)* | 2020-09-04 | 2020-12-22 | 北京小米移动软件有限公司 | Information processing method and device, electronic device and storage medium |
| CN114152948A (en)* | 2021-11-08 | 2022-03-08 | 广州安协科技股份有限公司 | An adaptive ultrasonic object detection method, system, device and storage medium |
| CN115167671A (en)* | 2022-06-30 | 2022-10-11 | 华帝股份有限公司 | Control method and control device for range hood |
| Publication | Publication Date | Title |
|---|---|---|
| CN106896362A (en) | A kind of terminal that function is detected with ultrasonic distance | |
| US11251763B2 (en) | Audio signal adjustment method, storage medium, and terminal | |
| EP3547659B1 (en) | Method for processing audio signal and related products | |
| CN107580113B (en) | Prompting method, prompting device, storage medium and terminal | |
| CN108710615B (en) | Translation method and related equipment | |
| EP2820536B1 (en) | Gesture detection based on information from multiple types of sensors | |
| CN108874357B (en) | Prompting method and mobile terminal | |
| US9489172B2 (en) | Method and apparatus for voice control user interface with discreet operating mode | |
| US20170214994A1 (en) | Earbud Control Using Proximity Detection | |
| CN108668009B (en) | Input operation control method, device, terminal, earphone and readable storage medium | |
| WO2018045536A1 (en) | Sound signal processing method, terminal, and headphones | |
| JP2005504470A5 (en) | ||
| WO2017075979A1 (en) | Method and apparatus for processing voice signal | |
| WO2019033986A1 (en) | Sound playback device detection method, apparatus, storage medium, and terminal | |
| CN108803859A (en) | Information processing method, device, terminal, earphone and readable storage medium | |
| CN108900231B (en) | Dynamic antenna adjustment method and related products | |
| US20240163603A1 (en) | Smart glasses, system and control method thereof | |
| CN110161508A (en) | Distance measuring method, device, terminal and storage medium | |
| CN112532266A (en) | Intelligent helmet and voice interaction control method of intelligent helmet | |
| CN101227666B (en) | communication device | |
| CN108833683B (en) | Dynamic antenna adjustment implementation method and related product | |
| GB2573173A (en) | Processing audio signals | |
| CN108540900A (en) | Volume adjusting method and related product | |
| CN107506167A (en) | Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal | |
| CN104320527A (en) | Method and apparatus for improving mobile phone microphone effect |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170627 | |
| RJ01 | Rejection of invention patent application after publication |