CN110502109B - Information processing method, information processing device, electronic equipment and storage medium - Google Patents
Information processing method, information processing device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110502109B CN110502109B CN201910702558.7A CN201910702558A CN110502109B CN 110502109 B CN110502109 B CN 110502109B CN 201910702558 A CN201910702558 A CN 201910702558A CN 110502109 B CN110502109 B CN 110502109B
- Authority
- CN
- China
- Prior art keywords
- digital signal
- motion state
- signal processor
- electronic device
- relative motion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 32
- 238000003672 processing method Methods 0.000 title claims abstract description 23
- 238000004891 communication Methods 0.000 claims abstract description 91
- 238000001514 detection method Methods 0.000 claims abstract description 52
- 238000000034 method Methods 0.000 claims abstract description 37
- 230000005540 biological transmission Effects 0.000 claims abstract description 32
- 238000012545 processing Methods 0.000 claims description 18
- 230000001133 acceleration Effects 0.000 claims description 7
- 230000005484 gravity Effects 0.000 claims description 6
- 238000013459 approach Methods 0.000 claims description 4
- 238000004458 analytical method Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000005236 sound signal Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3215—Monitoring of peripheral devices
- G06F1/3218—Monitoring of peripheral devices of display devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
本申请公开了一种信息处理方法、装置、电子设备及存储介质,属于通信技术领域。所述方法应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,该方法包括:获取所述音频数字信号处理器发送的相对运动状态;根据所述姿态数据确定所述电子设备的姿态信息;根据所述姿态信息和所述相对运动状态控制所述屏幕亮灭。本申请提出的信息处理方法中通信数字信号处理器结合电子设备的姿态信息和相对运动状态可以对电子设备屏幕的亮灭进行控制,在一定程度上可以降低由于数据传输产生的功耗。
The present application discloses an information processing method, an apparatus, an electronic device and a storage medium, which belong to the technical field of communication. The method is applied to a communication digital signal processor of an electronic device, the electronic device further includes an audio digital signal processor, an attitude detection device and a screen, and the method includes: acquiring the relative motion state sent by the audio digital signal processor; Determine the attitude information of the electronic device according to the attitude data; control the screen to turn on and off according to the attitude information and the relative motion state. In the information processing method proposed in this application, the communication digital signal processor can control the on-off of the screen of the electronic device in combination with the attitude information and relative motion state of the electronic device, which can reduce the power consumption due to data transmission to a certain extent.
Description
技术领域technical field
本申请涉及通信技术领域,更具体地,涉及一种信息处理方法、装置、电子设备及存储介质。The present application relates to the field of communication technologies, and more particularly, to an information processing method, apparatus, electronic device, and storage medium.
背景技术Background technique
近年来,随着电子设备的发展,电子设备实现的功能越来越多样化与智能化,例如,通过电子设备的按键实现屏幕的熄屏或亮屏。现有的熄屏或亮屏操作,大多需要用户在电子设备中按压键实现,即现有的屏幕状态的控制方式较为死板,且智能性较低。In recent years, with the development of electronic devices, the functions realized by the electronic devices are more and more diversified and intelligent, for example, the screen is turned off or the screen is turned on through the keys of the electronic device. Most of the existing screen-off or screen-on operations require the user to press a key in the electronic device, that is, the existing screen state control method is relatively rigid and less intelligent.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明提出了一种信息处理方法、装置、电子设备及存储介质,以解决上述问题。In view of this, the present invention proposes an information processing method, device, electronic device and storage medium to solve the above problems.
第一方面,本申请实施例提供了一种信息处理方法,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,该方法包括:获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的;获取所述姿态检测装置采集的姿态数据;根据所述姿态数据确定所述电子设备的姿态信息;根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In a first aspect, an embodiment of the present application provides an information processing method, which is applied to a communication digital signal processor of an electronic device, where the electronic device further includes an audio digital signal processor, an attitude detection device, and a screen, and the method includes: acquiring The relative motion state sent by the audio digital signal processor, the relative motion state is the motion state between the electronic device and the object, wherein the relative motion state is the audio digital signal processor according to the received obtained from the audio data returned by the object; obtain the attitude data collected by the attitude detection device; determine the attitude information of the electronic equipment according to the attitude data; according to the attitude information of the electronic equipment and the relative motion Status controls the screen on and off.
第二方面,本申请实施例提供了一种信息处理方法,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕,该方法包括:根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态;将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In a second aspect, an embodiment of the present application provides an information processing method, which is applied to an audio digital signal processor of an electronic device, where the electronic device further includes a communication digital signal processor, an attitude detection device, and a screen, and the method includes: according to The audio data returned by the object obtains the relative motion state, which is the motion state between the electronic device and the object; the relative motion state is sent to the communication digital signal processor to indicate the communication The digital signal processor acquires the attitude data collected by the attitude detection device, determines the attitude information of the electronic device according to the attitude data, and controls the screen to turn on and off according to the attitude information of the electronic equipment and the relative motion state.
第三方面,本申请实施例提供了一种信息处理装置,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕。所述装置包括:第一状态获取模块、姿态数据获取模块、姿态信息确定模块和屏幕控制模块。第一状态获取模块用于获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的。姿态数据获取模块用于获取所述姿态检测装置采集的姿态数据。姿态信息确定模块用于根据所述姿态数据确定所述电子设备的姿态信息。屏幕控制模块用于根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In a third aspect, an embodiment of the present application provides an information processing apparatus, which is applied to a communication digital signal processor of an electronic device, where the electronic device further includes an audio digital signal processor, an attitude detection device, and a screen. The device includes: a first state acquisition module, a posture data acquisition module, a posture information determination module and a screen control module. The first state acquisition module is used to acquire the relative motion state sent by the audio digital signal processor, where the relative motion state is the motion state between the electronic device and the object, wherein the relative motion state is the audio The digital signal processor obtains from the received audio data returned by the object. The attitude data acquisition module is used for acquiring attitude data collected by the attitude detection device. The attitude information determination module is configured to determine the attitude information of the electronic device according to the attitude data. The screen control module is configured to control the screen on and off according to the attitude information of the electronic device and the relative motion state.
第四方面,本申请实施例提供了一种信息处理装置,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕。所述装置包括:第二状态获取模块和运动状态发送模块,第二状态获取模块,用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态。运动状态发送模块,用于将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In a fourth aspect, an embodiment of the present application provides an information processing apparatus, which is applied to an audio digital signal processor of an electronic device, where the electronic device further includes a communication digital signal processor, an attitude detection device, and a screen. The device includes: a second state acquisition module and a motion state transmission module, and a second state acquisition module for acquiring a relative motion state according to the audio data returned by the object, the relative motion state being the relationship between the electronic device and the object. state of motion in between. A motion state sending module, configured to send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the attitude data collected by the attitude detection device, and determine the The posture information of the electronic device is used to control the screen on and off according to the posture information of the electronic device and the relative motion state.
第五方面,本申请实施例还提供了一种电子设备,包括通信数字信号处理器、音频数字信号处理器、姿态检测装置和屏幕。所述音频数字信号处理器用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态,所述音频数字信号处理器还用于将所述相对运动状态发送至所述通信数字信号处理器,所述通信数字信号处理器用于接收所述相对运动状态,所述通信数字信号处理器还用于获取所述姿态检测装置采集的姿态数据,所述通信数字信号处理器还用于根据所述姿态数据确定所述电子设备的姿态信息,所述通信数字信号处理器还用于根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In a fifth aspect, an embodiment of the present application further provides an electronic device, including a communication digital signal processor, an audio digital signal processor, an attitude detection device, and a screen. The audio digital signal processor is used to obtain the relative motion state according to the audio data returned by the object, and the relative motion state is the motion state between the electronic device and the object, and the audio digital signal processor is also used to The relative motion state is sent to the communication digital signal processor, and the communication digital signal processor is configured to receive the relative motion state, and the communication digital signal processor is further configured to acquire attitude data collected by the attitude detection device , the communication digital signal processor is also used to determine the attitude information of the electronic device according to the attitude data, and the communication digital signal processor is also used to control the attitude information of the electronic device and the relative motion state The screen turns on and off.
第六方面,本申请实施例还提供了一种计算机可读介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a sixth aspect, an embodiment of the present application further provides a computer-readable medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.
相对于现有技术,本申请实施例提供的信息处理方法、装置、电子设备及存储介质,通过获取相对运动状态和电子设备的姿态信息来对屏幕的亮灭进行控制,其中,相对运动状态是音频数字信号处理器根据所接收的由物体返回的音频数据而获取的,而电子设备的姿态信息则是根据姿态检测装置采集的姿态数据获取的,本申请实施例中通信数字信号处理器可以结合其获取的电子设备的姿态信息和相对运动状态来对电子设备的屏幕亮灭进行控制,在一定程度上可以减少数据的传输,进而可以降低屏幕亮灭控制所需的功耗。Compared with the prior art, the information processing method, device, electronic device and storage medium provided by the embodiments of the present application control the on-off of the screen by acquiring the relative motion state and the attitude information of the electronic device, wherein the relative motion state is: The audio digital signal processor is obtained according to the received audio data returned by the object, and the attitude information of the electronic device is obtained according to the attitude data collected by the attitude detection device. In the embodiment of the present application, the communication digital signal processor may be combined with The obtained attitude information and relative motion state of the electronic device are used to control the screen on and off of the electronic device, which can reduce the transmission of data to a certain extent, thereby reducing the power consumption required for the screen on and off control.
附图说明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 only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出了本申请实施例提供的超声波的传播路径的示意图;FIG. 1 shows a schematic diagram of a propagation path of an ultrasonic wave provided by an embodiment of the present application;
图2示出了超声波发射、接收以及传感数据传输的示例图;Figure 2 shows an example diagram of ultrasonic transmission, reception, and transmission of sensory data;
图3示出了本申请一个实施例提供的信息处理方法的方法流程图;FIG. 3 shows a method flowchart of an information processing method provided by an embodiment of the present application;
图4示出了本申请一个实施例提供的信息处理器方法中数据传输示例图;FIG. 4 shows an example diagram of data transmission in an information processor method provided by an embodiment of the present application;
图5示出了本申请另一个实施例提供的信息处理方法的方法流程图;FIG. 5 shows a method flowchart of an information processing method provided by another embodiment of the present application;
图6示出了本申请又一个实施例提供的信息处理方法的方法流程图;FIG. 6 shows a method flowchart of an information processing method provided by another embodiment of the present application;
图7示出了本申请实施例提供的信息处理装置的模块框图;FIG. 7 shows a module block diagram of an information processing apparatus provided by an embodiment of the present application;
图8示出了本申请实施例提供的信息处理装置的模块框图;FIG. 8 shows a module block diagram of an information processing apparatus provided by an embodiment of the present application;
图9示出了本申请实施例提供的电子设备的模块框图;FIG. 9 shows a module block diagram of an electronic device provided by an embodiment of the present application;
图10出了本申请实施例提供的用于保存或者携带实现根据本申请实施例的信息处理方法的程序代码的存储单元。FIG. 10 shows a storage unit provided by an embodiment of the present application for storing or carrying a program code for implementing the information processing method according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
随着电子设备的全面屏设计的流行,为了节省电子设备的顶部空间,已经有更多厂家在电子设备上采用超声波接近监测方案来替代传统的红外接近检测方案。电子设备通过超射波发送装置(如听筒、喇叭、专用超声波发射器等)发射超声波,一部分超声波通过空气传播直达超声波接收装置(拾音器)(如图1的路径1),一部分超声波通过空气传播与物体形成反射后再到达超声波接收装置(如图1的路径2)。超声波接收装置拾取到的是直达声和反射声的叠加信号,经过A/D转换器转化为音频信号。通过算法处理音频数据得到物体相对电子设备的运行状态,进而指导电子设备的显示屏处于亮屏状态或息屏状态。With the popularity of the full-screen design of electronic devices, in order to save the top space of electronic devices, more manufacturers have adopted ultrasonic proximity monitoring solutions to replace traditional infrared proximity detection solutions on electronic devices. The electronic equipment transmits ultrasonic waves through ultrasonic transmitting devices (such as earpieces, speakers, special ultrasonic transmitters, etc.), and part of the ultrasonic waves propagates through the air directly to the ultrasonic receiving device (pickup) (path 1 in Figure 1), and part of the ultrasonic waves propagates through the air. The object forms reflection and then reaches the ultrasonic receiving device (path 2 in Figure 1). The ultrasonic receiving device picks up the superimposed signal of the direct sound and the reflected sound, which is converted into an audio signal through the A/D converter. The operation state of the object relative to the electronic device is obtained by processing the audio data through the algorithm, and then the display screen of the electronic device is guided to be in a bright screen state or an off screen state.
具体地,当监听到电子设备处于通话状态时,可以通过电子设备内置的超声波发送装置发送固定频率的超声波信号,可以理解的是,超声波发送装置发送的超声波信号中的一部分通过空气传播直达超声波接收装置,另一部分通过空气传播与物体形成反射后再达到超声波接收装置,超声波接收装置拾取到的是直达声和反射声的叠加信号,经过A/D转换为音频信号,其中,该物体可以包括人脸、人体等。例如,如图2所示,通过电子设备内置的听筒、喇叭或者专用超声波发射器发送固定频率的超声波信号,超声波信号的一部分通过空气传播直达拾音器,另一部分通过空气传播与物体形成反射后再达到拾音器,拾音器拾取到的是直达声和反射声的叠加信号,经过A/D转换为音频信号。Specifically, when it is monitored that the electronic device is in a talking state, an ultrasonic signal of a fixed frequency can be sent through the built-in ultrasonic transmitting device of the electronic device. It can be understood that a part of the ultrasonic signal sent by the ultrasonic transmitting device is transmitted through the air and directly received by the ultrasonic wave The other part is reflected by the object through the air and then reaches the ultrasonic receiving device. The ultrasonic receiving device picks up the superimposed signal of the direct sound and the reflected sound, and converts it into an audio signal through A/D. The object can include a human being. face, human body, etc. For example, as shown in Figure 2, a fixed frequency ultrasonic signal is sent through the built-in earpiece, speaker or special ultrasonic transmitter of the electronic device. Part of the ultrasonic signal propagates through the air and reaches the pickup directly, and the other part propagates through the air and forms reflection from the object before reaching the The pickup picks up the superimposed signal of the direct sound and the reflected sound, and converts it into an audio signal through A/D.
另外,电子设备获取到超声波后,可以利用A/D转换器将其获取到的超声波转化为音频数据,并将该音频数据传输至音频数字信号处理器(Audio Digital SignalProcessor,ADSP),利用音频数字信号处理器对该音频数据进行处理。同时,传感器获取到传感数据后可以将该传感数据传输至通信数字信号处理器(Communication DigitalSignal Processor,CDSP),而通信数字信号处理器则可以对该传感数据进行处理得到电子设备的姿态信息,然后通信数字信号处理器按照固定周期将所述电子设备的姿态信息传输至音频数字信号处理器。音频数字信号处理器对其获取到的音频数据进行处理可以得到物体相对电子设备的运动状态,同时其可以处理由通信数字信号处理器传输过来的电子设备的姿态信息,即音频数字信号处理器可以根据其获取到的运动状态和电子设备的姿态信息对电子设备的屏幕亮灭进行控制。In addition, after the electronic device acquires the ultrasonic wave, it can use the A/D converter to convert the acquired ultrasonic wave into audio data, and transmit the audio data to the audio digital signal processor (Audio Digital SignalProcessor, ADSP), and use the audio digital signal processor. A signal processor processes the audio data. At the same time, after the sensor obtains the sensing data, it can transmit the sensing data to the Communication Digital Signal Processor (CDSP), and the communication digital signal processor can process the sensing data to obtain the attitude of the electronic device information, and then the communication digital signal processor transmits the attitude information of the electronic device to the audio digital signal processor according to a fixed period. The audio digital signal processor can process the acquired audio data to obtain the motion state of the object relative to the electronic device, and at the same time it can process the attitude information of the electronic device transmitted by the communication digital signal processor, that is, the audio digital signal processor can The screen of the electronic device is controlled on and off according to the obtained motion state and the posture information of the electronic device.
通信数字信号处理器需将其获取到的电子设备的姿态信息以固定周期传输至音频数字信号处理器,如此会导致这两个处理器之间存在大量的数据传输,进而会使电子设备产生较大的功耗。The communication digital signal processor needs to transmit the obtained attitude information of the electronic device to the audio digital signal processor in a fixed period, which will lead to a large amount of data transmission between the two processors, which will cause the electronic device to generate relatively high noise. large power consumption.
因此,为了克服上述缺陷,如图3,本申请实施例提供了一种信息处理方法,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,该方法可以包括步骤S301至步骤S304。Therefore, in order to overcome the above defects, as shown in FIG. 3 , an embodiment of the present application provides an information processing method, which is applied to a communication digital signal processor of an electronic device, the electronic device further includes an audio digital signal processor, an attitude detection device and screen, the method may include steps S301 to S304.
步骤S301:获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的。Step S301: Obtain the relative motion state sent by the audio digital signal processor, where the relative motion state is the motion state between the electronic device and the object, wherein the relative motion state is the audio digital signal processor Obtained from the received audio data returned by the object.
在一个实施例中,通信数字信号处理器可以接收音频数字信号处理器发送的相对运动状态,该相对运动状态为电子设备与物体之间的运动状态,即电子设备相对物体的运动状态,而所述运动状态是音频数字信号处理器根据其接收的由物体返回的音频数据获取的。In one embodiment, the communication digital signal processor may receive the relative motion state sent by the audio digital signal processor, where the relative motion state is the motion state between the electronic device and the object, that is, the motion state of the electronic device relative to the object, and the relative motion state is the motion state of the electronic device relative to the object. The motion state is acquired by the audio digital signal processor according to the audio data returned by the object.
假如,电子设备利用超声波发射器和拾音器获取到音频数据后,先对该数据进行模数转换,然后将转换后的音频数据传输至音频数字信号处理器,音频数字信号处理器接收到该音频数据后可以对该音频数据进行分析,进而获取到物体相对电子设备的运动状态,而后音频数字信号处理器可以结合该相对运动状态与电子设备的姿态信息对电子设备屏幕的亮灭进行控制,会导致电子设备产生较大的功耗。而本申请实施例中,音频数字信号处理器获取到物体相对电子设备的运动状态后,可以将该运动状态传输至通信数字信号处理器,利用通信数字信号处理器对电子设备的相对运动状态和电子设备的姿态信息进行分析,进而可以实现对电子设备屏幕亮灭的控制,具体的数据传输流程如图4所示。If the electronic equipment uses the ultrasonic transmitter and the pickup to obtain the audio data, it first performs analog-to-digital conversion on the data, and then transmits the converted audio data to the audio digital signal processor, and the audio digital signal processor receives the audio data. Then, the audio data can be analyzed to obtain the motion state of the object relative to the electronic device, and then the audio digital signal processor can combine the relative motion state and the attitude information of the electronic device to control the on-off of the electronic device screen, which will lead to Electronic devices generate a large amount of power consumption. However, in the embodiment of the present application, after the audio digital signal processor obtains the motion state of the object relative to the electronic device, the motion state can be transmitted to the communication digital signal processor, and the communication digital signal processor can be used to compare the relative motion state of the electronic device and the electronic device. The attitude information of the electronic device is analyzed, and then the control of the screen on and off of the electronic device can be realized. The specific data transmission process is shown in Figure 4.
步骤S302:获取所述姿态检测装置采集的姿态数据。Step S302: Acquire attitude data collected by the attitude detection device.
通信数字信号处理器可以利用姿态检测装置采集电子设备的姿态数据,其中,姿态检测装置指的是传感器,其主要用于实时检测电子设备的姿态数据。显然,电子设备会内置用于采集电子设备的姿态数据或运行状态信息的传感器,如加速度传感器、陀螺仪传感器、红外传感器、重力传感器、磁力传感器、方向传感器以及线性传感器等。另外,还可以内置辅助采集电子设备其他信息的光线感应传感器、压力传感器、温度传感器以及接近传感器等。利用上述姿态检测装置采集的传感数据即可称为电子设备的姿态数据,本实施例中姿态数据可以包括重力传感器采集的数据、加速度传感器采集的数据以及陀螺仪采集的数据中的至少一个。The communication digital signal processor can collect the attitude data of the electronic equipment by using the attitude detection device, wherein the attitude detection device refers to a sensor, which is mainly used for real-time detection of the attitude data of the electronic equipment. Obviously, electronic devices will have built-in sensors for collecting attitude data or operating status information of electronic devices, such as acceleration sensors, gyroscope sensors, infrared sensors, gravity sensors, magnetic sensors, orientation sensors, and linear sensors. In addition, light sensing sensors, pressure sensors, temperature sensors, and proximity sensors that assist in collecting other information of electronic devices can also be built-in. Sensing data collected by the above attitude detection device can be called attitude data of the electronic device. In this embodiment, the attitude data may include at least one of data collected by a gravity sensor, data collected by an acceleration sensor, and data collected by a gyroscope.
步骤S303:根据所述姿态数据确定所述电子设备的姿态信息。Step S303: Determine the posture information of the electronic device according to the posture data.
获取到电子设备的姿态数据后,通信数字信号处理器可以对所述姿态数据进行分析与处理进而得到电子设备的姿态信息。本实施例中电子设备的姿态信息可以包括加速度信息、距离信息或者位置信息等,利用这些信息可以确定电子设备在一定时间段内的移动距离、移动方向等信息,进而可以确定电子设备的姿态。After acquiring the attitude data of the electronic device, the communication digital signal processor can analyze and process the attitude data to obtain the attitude information of the electronic device. In this embodiment, the attitude information of the electronic device may include acceleration information, distance information, or position information, etc., and the information such as the moving distance and moving direction of the electronic device within a certain period of time can be determined by using this information, and then the attitude of the electronic device can be determined.
步骤S304:根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。Step S304: Control the screen to turn on and off according to the attitude information of the electronic device and the relative motion state.
通过图4可以知道电子设备利用姿态检测装置获取的姿态数据和利用超声波发射器和拾音器获取到的音频数据均通过直接或间接的方式被传输至通信数字信号处理器。显然,本实施例中利用通信数字信号处理器获取到姿态检测装置采集的姿态数据后不需将其以一定周期传输至音频数字信号处理器,而只需对该姿态数据进行分析与处理得到电子设备的姿态信息以供其控制电子设备屏幕亮灭使用。It can be known from FIG. 4 that the attitude data obtained by the electronic device using the attitude detection device and the audio data obtained by using the ultrasonic transmitter and the pickup are directly or indirectly transmitted to the communication digital signal processor. Obviously, in this embodiment, after the attitude data collected by the attitude detection device is acquired by the communication digital signal processor, it does not need to be transmitted to the audio digital signal processor in a certain period, but only needs to be analyzed and processed to obtain the electronic signal. The attitude information of the device is used by it to control the electronic device screen on and off.
需要说明的是,通信数字信号处理器可以先根据姿态数据获取电子设备的姿态信息,然后接收音频数字信号处理器发送的相对运动状态,也可以先接收音频数字信号处理器发送的相对运动状态,然后再根据姿态数据获取电子设备的姿态信息,或者也可以根据实际情况获取这两个数据。例如,姿态检测装置先采集到姿态数据,则通信数字信号处理器可以先根据该姿态数据获取电子设备的姿态信息,然后再接收音频数字信号处理器发送的相对运动状态。另外,通信数字信号处理器也可以同时获取电子设备的姿态信息和相对运动状态这两个数据,具体先获取哪个数据这里不进行明确限制。It should be noted that the communication digital signal processor can first obtain the attitude information of the electronic device according to the attitude data, and then receive the relative motion state sent by the audio digital signal processor, or can first receive the relative motion state sent by the audio digital signal processor, Then, the attitude information of the electronic device is obtained according to the attitude data, or the two data can also be obtained according to the actual situation. For example, if the attitude detection device first collects attitude data, the communication digital signal processor can first obtain attitude information of the electronic device according to the attitude data, and then receive the relative motion state sent by the audio digital signal processor. In addition, the communication digital signal processor can also acquire the two data of the attitude information and the relative motion state of the electronic device at the same time, and which data is acquired first is not specifically limited here.
本申请实施例提出的一种信息处理方法中通信数字信号处理器利用姿态检测装置获取电子设备的姿态信息,并将该电子设备的姿态信息与音频数字信号处理器发送的相对运动状态进行结合,进而可以实现对电子设备屏幕亮灭的控制,本申请因避免将电子设备的姿态信息以固定周期传输至音频数字信号处理器,其在一定程度上可以减少这两个器件之间大量数据的传输,进而可以降低电子设备的功耗。In the information processing method proposed by the embodiment of the present application, the communication digital signal processor uses the attitude detection device to obtain the attitude information of the electronic equipment, and combines the attitude information of the electronic equipment with the relative motion state sent by the audio digital signal processor, Further, the control of the screen on and off of the electronic device can be realized. The present application avoids transmitting the attitude information of the electronic device to the audio digital signal processor in a fixed period, which can reduce the transmission of a large amount of data between the two devices to a certain extent. , thereby reducing the power consumption of the electronic device.
本申请另一个实施例提供了一种信息处理方法,请参阅图5,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,该信息处理方法可以包括步骤S501至步骤S504。Another embodiment of the present application provides an information processing method, please refer to FIG. 5, a communication digital signal processor applied to an electronic device, the electronic device further includes an audio digital signal processor, an attitude detection device and a screen, the information The processing method may include steps S501 to S504.
步骤S501:获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的。Step S501: Obtain the relative motion state sent by the audio digital signal processor, where the relative motion state is the motion state between the electronic device and the object, wherein the relative motion state is the audio digital signal processor Obtained from the received audio data returned by the object.
步骤S502:获取所述姿态检测装置采集的姿态数据。Step S502: Acquire attitude data collected by the attitude detection device.
步骤S503:根据所述姿态数据确定所述电子设备的姿态信息。Step S503: Determine the posture information of the electronic device according to the posture data.
步骤S504:根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。Step S504: Control the screen to turn on and off according to the attitude information of the electronic device and the relative motion state.
通信数字信号处理器获取到电子设备的姿态信息和相对运动状态后,可以结合该电子设备的姿态信息和相对运动状态对电子设备屏幕的亮度进行控制。当通信数字信号处理器确定电子设备与物体之间的运动状态为电子设备趋近于物体时,且电子设备的姿态信息发生改变时可以控制屏幕处于灭屏状态。After acquiring the attitude information and relative motion state of the electronic device, the communication digital signal processor can control the brightness of the screen of the electronic device in combination with the attitude information and the relative motion state of the electronic device. When the communication digital signal processor determines that the motion state between the electronic device and the object is that the electronic device approaches the object, and the attitude information of the electronic device changes, the screen can be controlled to be in an off-screen state.
本实施例可以基于多普勒效应面积差和多普勒效应面积和来获取电子设备与物体之间的运动状态,或者也可以直接利用超声波信号在传输过程中的属性值来获取电子设备与物体之间的运动状态。在一个具体实施例中,可以利用超声波信号的幅值变化来确定电子设备与物体之间的运动状态,当超声波信号的幅值变大时,可以确定电子设备趋近于物体,而当超声波信号的幅值变小时,可以确定电子设备远离物体。In this embodiment, the motion state between the electronic device and the object may be acquired based on the Doppler effect area difference and the Doppler effect area sum, or the property value of the ultrasonic signal during the transmission process may be directly used to acquire the electronic device and the object state of motion between. In a specific embodiment, the change in the amplitude of the ultrasonic signal can be used to determine the motion state between the electronic device and the object. When the amplitude of the ultrasonic signal becomes larger, it can be determined that the electronic device is approaching the object, and when the ultrasonic signal becomes smaller, it can be determined that the electronic device is far away from the object.
另外,为了使屏幕亮灭控制更加准确,本实施例在确定超声波信号幅值变大时,可以进一步判断所述超声波信号的幅值是否大于第一预设阈值,如果超声波的幅值大于所述第一预设阈值则确定电子设备趋近于物体。同时,通信数字信号处理器可以判断电子设备的姿态信息在预设时间段内是否发生改变,如果电子设备的姿态信息在预设时间段内发生改变,则可以控制屏幕处于灭屏状态。本实施例中,电子设备的姿态信息可以包括重力信息、加速度信息以及陀螺仪信息等,在判断电子设备的姿态信息是否发生改变时,可以比对前后两个时刻电子设备的姿态信息是否发生改变,如果在前后两个时刻至少有两个电子设备的姿态信息发生改变,则可以确定电子设备的姿态信息发生改变。此时,则可以控制电子设备处于灭屏状态。In addition, in order to make the screen on and off control more accurate, in this embodiment, when it is determined that the amplitude of the ultrasonic signal becomes larger, it can be further judged whether the amplitude of the ultrasonic signal is greater than the first preset threshold, and if the amplitude of the ultrasonic wave is greater than the The first preset threshold determines that the electronic device approaches the object. At the same time, the communication digital signal processor can determine whether the attitude information of the electronic device changes within the preset time period, and if the attitude information of the electronic device changes within the preset time period, it can control the screen to be in an off-screen state. In this embodiment, the attitude information of the electronic device may include gravity information, acceleration information, and gyroscope information, etc. When judging whether the attitude information of the electronic device has changed, it is possible to compare whether the attitude information of the electronic device has changed at two moments before and after. , if the posture information of at least two electronic devices changes at two moments before and after, it can be determined that the posture information of the electronic devices changes. At this time, the electronic device can be controlled to be in an off-screen state.
在一个实施例中,当所述相对运动状态为所述电子设备相对所述物体处于相对位置不变状态且所述电子设备的姿态信息未发生改变时,获取所述电子设备上一次的运动状态,并根据所述上一次的相对运动状态控制所述屏幕的亮灭。换句话说,如果确定电子设备相对物体的运动状态未发生改变且电子设备的姿态信息也为发生改变,则获取电子设备上一次的运动趋势,若确定电子设备上一次的相对运动状态为趋近于物体,则控制电子设备屏幕继续处于灭屏状态。若确定电子设备上一次的相对运动状态为远离所述物体,则控制电子设备屏幕继续处于亮屏状态。具体如何判断电子设备的相对运动状态是趋近物体还是远离物体上述已进行详细的介绍,这里就不进行详细描述。In one embodiment, when the relative motion state is that the electronic device is in a state where the relative position of the electronic device remains unchanged relative to the object and the attitude information of the electronic device has not changed, the last motion state of the electronic device is acquired , and control the on/off of the screen according to the last relative motion state. In other words, if it is determined that the motion state of the electronic device relative to the object has not changed and the attitude information of the electronic device has also changed, then the last motion trend of the electronic device is obtained. If it is determined that the last relative motion state of the electronic device is approaching the object, the screen of the control electronic device continues to be in the off-screen state. If it is determined that the last relative motion state of the electronic device is away from the object, the screen of the electronic device is controlled to continue to be in the bright screen state. How to determine whether the relative motion state of the electronic device is approaching the object or moving away from the object has been described in detail above, and will not be described in detail here.
另外,当所述相对运动状态为所述电子设备远离所述物体且所述电子设备的姿态信息发生改变时,控制所述屏幕处于亮屏状态。同理,为了判断相对运动状态是否为电子设备远离物体,可以先获取不同时刻超声波的幅值大小,然后判断超声波信号的幅值是否逐渐变小,如果不断变小则可以确定电子设备远离物体。为了使相对运动状态的判定更加准确,本实施例可以进一步判断超声波信号的幅值是否小于第二预设阈值,如果超声波的幅值小于所述第二预设阈值则确定所述电子设备远离物体。此时,若电子设备的姿态信息也发生改变,则通信数字信号处理器控制电子设备的屏幕处于亮屏的状态。In addition, when the relative motion state is that the electronic device is far away from the object and the attitude information of the electronic device changes, the screen is controlled to be in a bright screen state. Similarly, in order to judge whether the relative motion state is that the electronic device is far away from the object, the amplitude of the ultrasonic wave at different times can be obtained first, and then it can be determined whether the amplitude of the ultrasonic signal gradually becomes smaller. In order to make the determination of the relative motion state more accurate, this embodiment can further determine whether the amplitude of the ultrasonic signal is less than a second preset threshold, and if the amplitude of the ultrasonic wave is less than the second preset threshold, it is determined that the electronic device is far away from the object . At this time, if the attitude information of the electronic device also changes, the communication digital signal processor controls the screen of the electronic device to be in a bright screen state.
需要说明的是,当确定相对运动状态为电子设备靠近或远离物体,但电子设备的姿态信息未发生改变,此时,通信数字信号处理器可以优先根据电子设备相对物体的运动状态来控制电子设备的屏幕亮灭。显然,本实施例中电子设备屏幕亮灭控制主要依据是相对运动状态,而电子设备的姿态信息的变化则是用来辅助运动状态的变化。It should be noted that when it is determined that the relative motion state is that the electronic device is close to or away from the object, but the attitude information of the electronic device has not changed, at this time, the communication digital signal processor can preferentially control the electronic device according to the motion state of the electronic device relative to the object. The screen turns on and off. Obviously, in this embodiment, the control of the screen on and off of the electronic device is mainly based on the relative motion state, and the change of the posture information of the electronic device is used to assist the change of the motion state.
本申请实施提出的一种信息处理方法通过结合电子设备的姿态信息和相对运动状态综合对屏幕亮灭进行控制,相对运动状态和电子设备的姿态信息不同,则其对应的屏幕亮灭控制也不相同,通过该信息处理方法可以使屏幕亮灭的控制更加智能化。An information processing method proposed in the implementation of this application controls the screen on and off comprehensively by combining the attitude information of the electronic device and the relative motion state. If the relative motion state is different from the attitude information of the electronic device, the corresponding screen on and off control will not Similarly, the control of the screen on and off can be made more intelligent through this information processing method.
本申请又一个实施例提供了一种信息处理方法,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕,请参阅图6,该信息处理方法可以包括步骤S601至步骤S602。Yet another embodiment of the present application provides an information processing method, which is applied to an audio digital signal processor of an electronic device. The electronic device further includes a communication digital signal processor, an attitude detection device, and a screen. Please refer to FIG. 6 , the information The processing method may include steps S601 to S602.
步骤S601:根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态。Step S601: Acquire a relative motion state according to the audio data returned by the object, where the relative motion state is a motion state between the electronic device and the object.
本实施例中,电子设备可以同时包括超声波发送装置和超声波接收装置。在超声波发送装置相对物体运动的过程中,其实质是电子设备相对物体运动,从而超声波接收装置也相对物体运动。根据多普勒效应,物体辐射的波长因为波源(电子设备)和观测者(物体)的相对运动而产生变化,多普勒效应公式如下:In this embodiment, the electronic device may include an ultrasonic sending device and an ultrasonic receiving device at the same time. In the process of the ultrasonic sending device moving relative to the object, the essence is that the electronic device moves relative to the object, so the ultrasonic receiving device also moves relative to the object. According to the Doppler effect, the wavelength of the radiation of the object changes due to the relative motion of the wave source (electronic device) and the observer (object). The Doppler effect formula is as follows:
其中,f'为观察到的频率、f为发射源于该介质中的原始发射频率、v为波在该介质中的传播速度、v0为观察者移动速度,若观察者接近发射源则前方运算符号为+号,反之则为-号;vs为发射源移动速度,若物体接近观察者则前方运算符号为-号,反之则为+号。由多普勒效应公式可知,当发射源与观察者相对接近时,观察者接收到的信号频率会变大;当发射源与观察者相对远离时,观察者接收到的信号频率会变小;当发射源与观察者相对静止时,观察者接收到信号频率与发射源一致。Among them, f' is the observed frequency, f is the original emission frequency of the emission source in the medium, v is the propagation speed of the wave in the medium, v 0 is the moving speed of the observer, if the observer is close to the emission source, the front The operation symbol is +, otherwise it is -; v s is the moving speed of the emission source. If the object is close to the observer, the front operation symbol is -, otherwise, it is +. According to the Doppler effect formula, when the emission source is relatively close to the observer, the frequency of the signal received by the observer will become larger; when the emission source is relatively far away from the observer, the frequency of the signal received by the observer will become smaller; When the emission source and the observer are relatively stationary, the frequency of the signal received by the observer is consistent with the emission source.
在一个实施例中,当电子设备通过超声波接收装置接收到超声波信号后,可以获取该超声波信号在传输过程中的属性值,并基于该属性值计算该超声波信号在传输过程中的多普勒效应面积差和多普勒效应面积和。其中,该属性值可以包括超声波发送装置发送的超声波信号的发送频率、发送幅值、发送时间等,超声波接收装置所接收的超声波信号的频率变化范围、接收幅值、接收时间等,在此不做限定。In one embodiment, after the electronic device receives the ultrasonic signal through the ultrasonic receiving device, it can acquire the attribute value of the ultrasonic signal during the transmission process, and calculate the Doppler effect of the ultrasonic signal during the transmission process based on the attribute value Area difference and Doppler effect area sum. The attribute value may include the transmission frequency, transmission amplitude, transmission time, etc. of the ultrasonic signal transmitted by the ultrasonic transmission device, and the frequency variation range, reception amplitude, reception time, etc. of the ultrasonic signal received by the ultrasonic reception device. Do limit.
电子设备可以基于多普勒效应面积差和所述多普勒效应面积和来获取电子设备与物体之间的运动状态,通过上述介绍可以知道电子设备与物体之间的运动状态可以包括电子设备趋近于物体、电子设备远离物体以及电子设备与物体之间处于相对位置不变状态。超声波信号在传输过程中的属性值不同或者多普勒效应面积差和所述多普勒效应面积和不相同则其对应的运动状态也可能不相同。在本实施例中,当超声波的幅值变大则表明物体趋近电子设备,而超声波的幅值变小则表明物体远离电子设备,而如果超声波的幅值未发生改变,则表明电子设备与物体之间处于相对位置不变状态。另外,也可以根据超声波信号在传输过程中的其他的属性值来判断电子设备与物体之间的运动状态,具体使用哪种方式获取运动状态这里不进行明确限制。The electronic device can obtain the motion state between the electronic device and the object based on the Doppler effect area difference and the Doppler effect area sum. From the above introduction, we can know that the motion state between the electronic device and the object may include the trend of the electronic device. It is close to the object, the electronic device is far from the object, and the relative position between the electronic device and the object is unchanged. If the property values of the ultrasonic signals during transmission are different or the difference between the Doppler effect areas and the sum of the Doppler effect areas are not the same, the corresponding motion states may also be different. In this embodiment, when the amplitude of the ultrasonic wave increases, it indicates that the object is approaching the electronic device, and when the amplitude of the ultrasonic wave decreases, it indicates that the object is far away from the electronic device. The relative positions of the objects remain unchanged. In addition, the motion state between the electronic device and the object can also be determined according to other attribute values of the ultrasonic signal during the transmission process, and which method to use to obtain the motion state is not specifically limited here.
步骤S602:将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。Step S602: Send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the attitude data collected by the attitude detection device, and determine the attitude of the electronic device according to the attitude data information, and control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
音频数字信号处理器获取到相对运动状态后,可以将该相对运动状态发送至通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,然后根据所述姿态数据确定所述电子设备的姿态信息,并根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。其中,电子设备的姿态信息可以包括电子设备的移动速度、移动距离以及移动方向等信息。After the audio digital signal processor obtains the relative motion state, the relative motion state can be sent to the communication digital signal processor, instructing the communication digital signal processor to obtain the attitude data collected by the attitude detection device, and then according to the attitude The data determines the posture information of the electronic device, and controls the screen to turn on and off according to the posture information of the electronic device and the relative motion state. The attitude information of the electronic device may include information such as the moving speed, the moving distance, and the moving direction of the electronic device.
将所述相对运动状态发送至所述通信数字信号处理器前,音频数字信号处理器可以判断本次获取的相对运动状态相对上一次获取的相对运动状态是否不匹配。在一个实施例中,音频数字信号处理器获取到相对运动状态后,可以将其获取到的本次相对运动状态与上一次获取到的相对运动状态进行比较,并判断前后两次获取到的电子设备与物体之间的运动状态是否匹配,如果本次获取相对运动状态相对上一次获取的相对运动状态匹配,则利用音频数字信号处理器重新获取音频数据和该音频数据对应的运动状态。如果本次获取相对运动状态相对上一次获取的相对运动状态不匹配,则将本次获取的所述相对运动状态发送至所述通信数字信号处理器。显然,只有确定本次相对运动状态相对上次获取的相对运动状态发生改变时音频数字信号处理器才将该相对运动状态发送至通信数字信号处理器,否则的话不需将相对运动状态进行发送。Before sending the relative motion state to the communication digital signal processor, the audio digital signal processor may determine whether the relative motion state acquired this time does not match the relative motion state acquired last time. In one embodiment, after acquiring the relative motion state, the audio digital signal processor can compare the current relative motion state acquired by the audio digital signal processor with the relative motion state acquired last time, and determine the electronic Whether the motion state between the device and the object matches, if the relative motion state acquired this time matches the relative motion state acquired last time, the audio digital signal processor is used to re-acquire the audio data and the motion state corresponding to the audio data. If the relative motion state acquired this time does not match the relative motion state acquired last time, the relative motion state acquired this time is sent to the communication digital signal processor. Obviously, the audio digital signal processor sends the relative motion state to the communication digital signal processor only when it is determined that the relative motion state of the current time has changed from the relative motion state obtained last time, otherwise the relative motion state does not need to be sent.
本实施例中,可以通过比较多普勒效应面积差和多普勒效应面积和来判断电子设备前后两次获取的运动状态是否匹配,即可以判断前后两次获取的多普勒效应面积差之间的匹配度是否大于第一预设匹配度,如果大于第一预设匹配度则表明电子设备与物体之间的运动状态匹配,否的话则表明前后两次电子设备与物体之间的运动状态不匹配。另外,也可以判断前后两次获取的多普勒效应面积和之间的匹配度是否小于第二预设匹配度,如果小于第二预设匹配度则表明电子设备与物体之间的运动状态匹配,否的话则表明前后两次电子设备与物体之间的运动状态不匹配。需要说明的是,在判断前后两次电子设备与物体之间的运动状态是否匹配时,本实施例也可以直接利用超声波信号在传输过程中的属性值来进行判定,具体使用哪种方式判断这里不进行明确限制。In this embodiment, it can be judged whether the motion states acquired by the electronic device before and after the two acquisitions match by comparing the Doppler effect area difference and the Doppler effect area sum. Whether the matching degree between the two is greater than the first preset matching degree, if it is greater than the first preset matching degree, it indicates that the motion state between the electronic device and the object matches, otherwise, it indicates the motion state between the electronic device and the object twice before and after. Mismatch. In addition, it can also be judged whether the matching degree between the sum of the Doppler effect areas obtained twice before and after is less than the second preset matching degree, and if it is less than the second preset matching degree, it indicates that the motion state between the electronic device and the object is matched , otherwise it indicates that the motion state between the electronic device and the object does not match. It should be noted that when judging whether the motion state between the electronic device and the object matches the two times before and after, this embodiment can also directly use the attribute value of the ultrasonic signal in the transmission process to judge, and which method is used to judge here. No explicit restrictions are imposed.
本申请实施例中提出的一种信息处理方法,音频数字信号处理器通过比较前后两次的相对运动状态来确定是否将本次获取的相对运动状态传输至通信数字信号处理器,如此不仅可以保证通信数字信号处理器获取到的相对运动状态均为有效数据,而且可以在很大程度上减少不必要数据的传输,降低电子设备的运行功耗。In the information processing method proposed in the embodiment of the present application, the audio digital signal processor determines whether to transmit the relative motion state acquired this time to the communication digital signal processor by comparing the relative motion states before and after. The relative motion states obtained by the communication digital signal processor are all valid data, and the transmission of unnecessary data can be reduced to a great extent, and the operating power consumption of the electronic equipment can be reduced.
请参阅图7,本申请实施例提出的一种信息处理装置700,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,具体地,该信息处理装置700包括:第一状态获取模块701、姿态数据获取模块702、姿态信息确定模块703和屏幕控制模块704。Referring to FIG. 7 , an
第一状态获取模块701,用于获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的。The first
姿态数据获取模块702,用于获取所述姿态检测装置采集的姿态数据。The attitude
进一步的,所述姿态数据包括重力传感器采集的数据、加速度传感器采集的数据以及陀螺仪采集的数据中的至少一个。Further, the attitude data includes at least one of data collected by a gravity sensor, data collected by an acceleration sensor, and data collected by a gyroscope.
姿态信息确定模块703,用于根据所述姿态数据确定所述电子设备的姿态信息。The attitude
屏幕控制模块704,用于根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。The
进一步的,屏幕控制模块704用于当所述运动状态为所述电子设备趋近所述物体且所述电子设备的姿态信息发生改变时,控制所述屏幕处于灭屏状态。当所述运动状态为所述电子设备相对所述物体处于相对位置不变状态且所述电子设备的姿态信息未发生改变时,获取所述电子设备上一次的运动状态,并根据所述上一次的运动状态控制所述屏幕的亮灭。当所述运动状态为所述电子设备远离所述物体且所述电子设备的姿态信息发生改变时,控制所述屏幕处于亮屏状态。Further, the
请参阅图8,本申请实施例提出的一种信息处理装置800,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕,具体地,该信息处理装置800包括:第二状态获取模块801和运动状态发送模块802。Referring to FIG. 8 , an
第二状态获取模块801,用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态。The second
运动状态发送模块802,用于将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。The motion
进一步的,运动状态发送模块802用于判断本次获取的相对运动状态相对上一次获取的相对运动状态是否不匹配;如果不匹配,则将本次获取的所述相对运动状态发送至所述通信数字信号处理器。如果本次获取的相对运动状态相对上一次获取的相对运动状态相同,则重新获取相对运动状态。Further, the motion
请参阅图9,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、姿态检测装置130、屏幕140以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 9 , which shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, an electronic book, or the like. The electronic device 100 in this application may include one or more of the following components: a
处理器110可以包括音频数字信号处理器111和通信数字信号处理器112以及一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-ProgrammableGate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The
音频数字信号处理器111是DSP(Digital Signal Processor,数字信号处理器)的一种,其主要用于处理音频数字信号。DSP是由大规模或超大规模集成电路芯片组成的用来完成某种信号处理任务的处理器,它是为适应高速实时信号处理任务的需要而逐渐发展起来的。通信数字信号处理器112主要用于协同中央处理器完成语音通信功能。The audio digital signal processor 111 is a type of DSP (Digital Signal Processor, digital signal processor), which is mainly used for processing audio digital signals. DSP is a processor composed of large-scale or ultra-large-scale integrated circuit chips to complete certain signal processing tasks. It is gradually developed to meet the needs of high-speed real-time signal processing tasks. The communication
一个实施例中,音频数字信号处理器111用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态,所述音频数字信号处理器111还用于将所述相对运动状态发送至所述通信数字信号处理器112,所述通信数字信号处理器112用于接收所述相对运动状态,所述通信数字信号处理器112还用于获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In one embodiment, the audio digital signal processor 111 is configured to obtain a relative motion state according to the audio data returned by the object, where the relative motion state is the motion state between the electronic device and the object, and the audio digital signal processing The controller 111 is further configured to send the relative motion state to the communication
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The
电子设备100还包括姿态检测装置130,本实施例中姿态检测装置130指的是传感器,其主要用于检测电子设备100的姿态数据。常用的姿态检测装置130包括光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节屏幕140的亮度,接近传感器可在电子设备100移动到耳边时,关闭屏幕140和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;姿态检测装置130还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 further includes an attitude detection device 130 . In this embodiment, the attitude detection device 130 refers to a sensor, which is mainly used to detect attitude data of the electronic device 100 . Commonly used gesture detection devices 130 include light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the screen 140 according to the brightness of the ambient light, and the proximity sensor can turn off the screen 140 and/or turn off the screen 140 when the electronic device 100 is moved to the ear. 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 stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the posture detection device 130 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, Thermometers, infrared sensors, etc. will not be repeated here.
屏幕140用于显示由用户输入的信息或提供给用户的信息,本实施例可以采用液晶显示器(LiquidCrystalDisplay,LCD)、有机发光二极管(OrganicLight-EmiTTingDiode,OLED)等形式来配置屏幕140。The screen 140 is used to display information input by the user or information provided to the user. In this embodiment, the screen 140 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), and the like.
请参阅图10,其示出了本申请实施例提供的一种计算机可读存储介质1200的结构框图。该计算机可读存储介质1000中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 10 , which shows a structural block diagram of a computer-readable storage medium 1200 provided by an embodiment of the present application. Program codes are stored in the computer-readable storage medium 1000, and the program codes can be invoked by a processor to execute the methods described in the above method embodiments.
计算机可读存储介质1000可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1000包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1000具有执行上述方法中的任何方法步骤的程序代码1010的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1010可以例如以适当形式进行压缩。The computer-readable storage medium 1000 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1000 includes a non-transitory computer-readable storage medium. Computer readable storage medium 1000 has storage space for
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (12)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910702558.7A CN110502109B (en) | 2019-07-31 | 2019-07-31 | Information processing method, information processing device, electronic equipment and storage medium |
PCT/CN2020/102377 WO2021017860A1 (en) | 2019-07-31 | 2020-07-16 | Information processing method and apparatus, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910702558.7A CN110502109B (en) | 2019-07-31 | 2019-07-31 | Information processing method, information processing device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110502109A CN110502109A (en) | 2019-11-26 |
CN110502109B true CN110502109B (en) | 2022-04-19 |
Family
ID=68586802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910702558.7A Active CN110502109B (en) | 2019-07-31 | 2019-07-31 | Information processing method, information processing device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110502109B (en) |
WO (1) | WO2021017860A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502109B (en) * | 2019-07-31 | 2022-04-19 | Oppo广东移动通信有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN110865710B (en) * | 2019-11-19 | 2023-08-18 | Oppo(重庆)智能科技有限公司 | Terminal control method and device, mobile terminal and storage medium |
CN111045518B (en) * | 2019-12-09 | 2023-06-30 | 上海瑾盛通信科技有限公司 | Method and related device for acquiring attitude data |
CN113313136A (en) * | 2020-02-27 | 2021-08-27 | 惠州迪芬尼声学科技股份有限公司 | Motion characteristic detection method and device for electronic equipment and loudspeaker |
CN114513573A (en) * | 2020-11-16 | 2022-05-17 | 深圳市万普拉斯科技有限公司 | Screen control method and device, electronic equipment and storage medium |
CN112579037B (en) * | 2020-12-21 | 2024-08-09 | Oppo广东移动通信有限公司 | Audio control method and device, storage medium and electronic equipment |
CN112882035A (en) * | 2021-02-18 | 2021-06-01 | 联想(北京)有限公司 | Detection method, equipment and storage medium |
CN116708661B (en) * | 2022-10-26 | 2024-05-03 | 荣耀终端有限公司 | Audio call processing method, electronic equipment and storage medium |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8688392B2 (en) * | 2010-06-04 | 2014-04-01 | Apple Inc. | System and method for testing a light sensor of a portable electronic device |
KR102068749B1 (en) * | 2013-08-23 | 2020-01-21 | 삼성전자주식회사 | Photographing apparatus and method |
CN103631494A (en) * | 2013-11-15 | 2014-03-12 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104267819B (en) * | 2014-10-09 | 2017-07-14 | 苏州触达信息技术有限公司 | Can gesture wake up electronic equipment and electronic equipment gesture awakening method |
CN105988559B (en) * | 2015-02-03 | 2019-02-05 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN106933366A (en) * | 2017-03-23 | 2017-07-07 | 北京小米移动软件有限公司 | Bright screen method and device |
CN107896272B (en) * | 2017-08-11 | 2020-09-18 | Oppo广东移动通信有限公司 | Call control method and device |
CN109710142A (en) * | 2017-10-25 | 2019-05-03 | 华为技术有限公司 | A method and terminal for controlling the on-off of terminal screen |
CN108052352A (en) * | 2017-11-30 | 2018-05-18 | 努比亚技术有限公司 | Control method, terminal and the computer readable storage medium of screen on-off state |
CN110502109B (en) * | 2019-07-31 | 2022-04-19 | Oppo广东移动通信有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
-
2019
- 2019-07-31 CN CN201910702558.7A patent/CN110502109B/en active Active
-
2020
- 2020-07-16 WO PCT/CN2020/102377 patent/WO2021017860A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
CN110502109A (en) | 2019-11-26 |
WO2021017860A1 (en) | 2021-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110502109B (en) | Information processing method, information processing device, electronic equipment and storage medium | |
US20210150171A1 (en) | Object recognition method and mobile terminal | |
CN108427876B (en) | Fingerprint identification method and mobile terminal | |
CN110515085B (en) | Ultrasonic processing method, ultrasonic processing device, electronic device, and computer-readable medium | |
WO2021017947A1 (en) | Terminal control method and device, mobile terminal and storage medium | |
CN110113528B (en) | Parameter obtaining method and terminal equipment | |
CN111554321A (en) | Noise reduction model training method and device, electronic equipment and storage medium | |
WO2021017859A1 (en) | Screen state control method and apparatus, mobile terminal and storage medium | |
CN111638522B (en) | Proximity detection method and electronic device | |
CN108366220A (en) | A kind of video calling processing method and mobile terminal | |
WO2021017927A1 (en) | Method and device for controlling apparatus, electronic apparatus, and storage medium | |
CN110287903A (en) | A skin detection method and terminal | |
CN107682558A (en) | A kind of screen control method and mobile terminal | |
CN109727212B (en) | An image processing method and mobile terminal | |
CN109088973B (en) | Antenna control method and device and mobile terminal | |
WO2021017851A1 (en) | Screen state control method and apparatus, mobile terminal and storage medium | |
CN111246061B (en) | Mobile terminal, detection method of shooting mode, and storage medium | |
CN111370026A (en) | Device state detection method and electronic device | |
CN108932505B (en) | Image processing method and electronic equipment | |
CN108008808B (en) | Operating parameter adjustment method and mobile terminal | |
CN110764612B (en) | Ultrasonic processing method, ultrasonic processing device, electronic equipment and computer readable medium | |
CN109947345B (en) | A fingerprint identification method and terminal device | |
CN109067429B (en) | A control method and terminal device | |
CN117135264A (en) | Screen state control method, electronic device and readable storage medium | |
CN110839108A (en) | Noise reduction method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |