WO2021017860A1 - Information processing method and apparatus, electronic device and storage medium - Google Patents

Information processing method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2021017860A1
WO2021017860A1 PCT/CN2020/102377 CN2020102377W WO2021017860A1 WO 2021017860 A1 WO2021017860 A1 WO 2021017860A1 CN 2020102377 W CN2020102377 W CN 2020102377W WO 2021017860 A1 WO2021017860 A1 WO 2021017860A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
motion state
digital signal
relative motion
signal processor
Prior art date
Application number
PCT/CN2020/102377
Other languages
French (fr)
Chinese (zh)
Inventor
林进全
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021017860A1 publication Critical patent/WO2021017860A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Definitions

  • This application relates to the field of communication technology, and more specifically, to an information processing method, device, electronic device, and storage medium.
  • the functions implemented by electronic devices have become more and more diversified and intelligent.
  • the screen can be turned off or 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 to achieve, that is, the existing screen state control method is relatively rigid and has low intelligence.
  • the present invention provides an information processing method, device, electronic equipment, and storage medium to solve the above-mentioned problems.
  • an embodiment of the present application provides an information processing method applied to a communication digital signal processor of an electronic device.
  • the electronic device further includes an audio digital signal processor, a posture detection device, and a screen.
  • the method includes: obtaining 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 state Obtained from the audio data returned by the object; Obtain the posture data collected by the posture detection device; Determine the posture information of the electronic device according to the posture data; According to the posture information of the electronic device and the relative movement
  • the status control screen turns on and off.
  • an 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, a posture detection device, and a screen.
  • the method includes: The audio data returned by the object acquires the relative motion state, the relative motion state is the motion state between the electronic device and the object; the relative motion state is sent to the communication digital signal processor to instruct the communication
  • the digital signal processor obtains the posture data collected by the posture detection device, determines the posture information of the electronic device according to the posture data, and controls the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  • an embodiment of the present application provides an information processing device, which is applied to a communication digital signal processor of an electronic device, and the electronic device further includes an audio digital signal processor, a posture 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, the relative motion state is the motion state between the electronic device and the object, and the relative motion state is the audio
  • the digital signal processor obtains it based on the received audio data returned by the object.
  • the posture data acquisition module is used to acquire the posture data collected by the posture detection device.
  • the posture information determining module is used to determine the posture information of the electronic device according to the posture data.
  • the screen control module is used to control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  • an embodiment of the present application provides an information processing device that is applied to an audio digital signal processor of an electronic device, and the electronic device further includes a communication digital signal processor, a posture detection device, and a screen.
  • the device includes: a second state acquisition module and a movement state transmission module.
  • the second state acquisition module is used to obtain the relative movement state according to the audio data returned by the object, and the relative movement state is the difference between the electronic device and the object.
  • the motion state sending module is configured to send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, and determine the The posture information of the electronic device controls the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  • an embodiment of the present application also provides an electronic device, including a communication digital signal processor, an audio digital signal processor, a posture 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, 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, the communication digital signal processor is used to receive the relative motion state, and the communication digital signal processor is further used to obtain the attitude data collected by the attitude detection device
  • the communication digital signal processor is also used to determine the posture information of the electronic device according to the posture data, and the communication digital signal processor is also used to control the posture information of the electronic device and the relative motion state.
  • the screen turns on and off.
  • the embodiments of the present application also provide a computer-readable medium, and the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the foregoing method.
  • the information processing method, device, electronic equipment, and storage medium control the on-off of the screen by acquiring the relative motion state and the posture information of the electronic equipment, where the relative motion state is
  • the audio digital signal processor is obtained based on the received audio data returned by the object, and the posture information of the electronic device is obtained based on the posture data collected by the posture detection device.
  • the communication digital signal processor in this embodiment of the application can be combined with The acquired posture information and relative motion state of the electronic device can 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.
  • Fig. 1 shows a schematic diagram of a propagation path of ultrasonic waves provided by an embodiment of the present application
  • Figure 2 shows an example diagram of ultrasonic transmission, reception and sensor data transmission
  • FIG. 3 shows a method flowchart of an information processing method provided by an embodiment of the present application
  • FIG. 4 shows an example diagram of data transmission in an information processor method provided by an embodiment of the present application
  • FIG. 5 shows a method flowchart of an information processing method provided by another embodiment of the present application.
  • FIG. 6 shows a method flowchart of an information processing method provided by another embodiment of the present application.
  • FIG. 7 shows a block diagram of modules of an information processing device provided by an embodiment of the present application.
  • FIG. 8 shows a block diagram of modules of an information processing device provided by an embodiment of the present application.
  • FIG. 9 shows a module block diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 10 shows a storage unit provided by an embodiment of the present application for storing or carrying program code for implementing the information processing method according to the embodiment of the present application.
  • ultrasonic proximity monitoring solutions on electronic devices to replace traditional infrared proximity detection solutions.
  • Electronic equipment transmits ultrasonic waves through ultrasonic transmitters (such as earpieces, horns, special ultrasonic transmitters, etc.). Part of the ultrasonic waves travels through the air directly to the ultrasonic receiver (pickup) (path 1 in Figure 1), and part of the ultrasonic waves travels through the air. After the object forms a reflection, it reaches the ultrasonic receiver (path 2 in Figure 1). What the ultrasonic receiver picks up is the superimposed signal of the direct sound and the reflected sound, which is converted into an audio signal by an A/D converter.
  • the audio data is processed by algorithms to obtain the operating state of the object relative to the electronic device, and then guide the display screen of the electronic device to be in the on-screen state or the off-screen state.
  • a fixed-frequency ultrasonic signal can be sent through the built-in ultrasonic transmitter of the electronic device. It can be understood that part of the ultrasonic signal sent by the ultrasonic transmitter travels through the air and reaches the ultrasonic receiver. The other part of the device is transmitted through the air and reflected by the object before reaching the ultrasonic receiving device.
  • 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 A/D.
  • the object may include a person Face, human body, etc.
  • a fixed-frequency ultrasonic signal is sent through the built-in earpiece, horn, or special ultrasonic transmitter of the electronic device.
  • a part of the ultrasonic signal travels through the air directly to the pickup, and the other part is transmitted through the air and reflected by the object.
  • the pickup is the superimposed signal of the direct sound and the reflected sound picked up by the pickup, which is converted into an audio signal by A/D.
  • the electronic device 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 Signal Processor, ADSP).
  • the digital signal processor processes the audio data.
  • the sensor data after the sensor acquires the sensor data, the sensor data can be transmitted to the communication digital signal processor (Communication Digital Signal Processor, CDSP), and the communication digital signal processor can process the sensor data to obtain the electronic equipment The posture information, and then the communication digital signal processor transmits the posture information of the electronic device to the audio digital signal processor according to a fixed cycle.
  • the audio digital signal processor can process the acquired audio data to obtain the motion state of the object relative to the electronic device.
  • it can process the posture information of the electronic device transmitted by the communication digital signal processor, that is, the audio digital signal processor can According to the acquired motion state and the posture information of the electronic device, the screen of the electronic device is controlled on and off.
  • the communication digital signal processor needs to transmit the posture information of the electronic device it obtains to the audio digital signal processor in a fixed cycle, which will cause a large amount of data transmission between the two processors, which will further cause the electronic device to generate more data. Large power consumption.
  • an embodiment of the present application provides an information processing method, which is applied to a communication digital signal processor of an electronic device, and the electronic device further includes an audio digital signal processor, a posture detection device, and Screen, the method may include step S301 to step S304.
  • 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 based on the received audio data returned by the object.
  • the communication digital signal processor may receive 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, that is, the motion state of the electronic device relative to the object.
  • the motion state is obtained by the audio digital signal processor according to the audio data returned by the object it receives.
  • an electronic device uses an ultrasonic transmitter and a pickup to obtain 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
  • the audio data can then 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 posture information of the electronic device to control the on and off of the electronic device screen, which will lead to Electronic equipment generates greater power consumption.
  • the motion state can be transmitted to the communication digital signal processor, and the communication digital signal processor is used to determine the relative motion state of the electronic device and The posture information of the electronic device is analyzed, and then the screen on and off of the electronic device can be controlled.
  • the specific data transmission process is shown in Figure 4.
  • Step S302 Obtain the posture data collected by the posture detection device.
  • the communication digital signal processor can collect the posture data of the electronic equipment using the posture detection device, where the posture detection device refers to the sensor, which is mainly used to detect the posture data of the electronic device in real time.
  • electronic devices will have built-in sensors for collecting posture data or operating status information of electronic devices, such as acceleration sensors, gyroscope sensors, infrared sensors, gravity sensors, magnetic sensors, direction sensors, and linear sensors.
  • light sensors, pressure sensors, temperature sensors, and proximity sensors can be built-in to assist in collecting other information of electronic devices.
  • the sensor data collected by the aforementioned posture detection device can be referred to as posture data of the electronic device.
  • the posture data in this embodiment may include at least one of data collected by a gravity sensor, data collected by an acceleration sensor, and data collected by a gyroscope.
  • Step S303 Determine the posture information of the electronic device according to the posture data.
  • the communication digital signal processor can analyze and process the posture data to obtain the posture information of the electronic device.
  • the posture information of the electronic device may include acceleration information, distance information, or position information, etc., using these information to determine the moving distance and direction of the electronic device within a certain period of time, and then determine the posture of the electronic device.
  • Step S304 Control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  • the posture data obtained by the electronic device using the posture detection device and the audio data obtained by the ultrasonic transmitter and the microphone are all directly or indirectly transmitted to the communication digital signal processor.
  • the posture data collected by the posture detection device does not need to be transmitted to the audio digital signal processor in a certain period after the communication digital signal processor is used to obtain the posture data.
  • the posture information of the device is used to control the screen of the electronic device to turn on and off.
  • the communication digital signal processor can first obtain the posture information of the electronic device according to the posture data, and then receive the relative motion state sent by the audio digital signal processor, or first receive the relative motion state sent by the audio digital signal processor. Then obtain the posture information of the electronic device according to the posture data, or obtain the two data according to the actual situation. For example, if the posture detection device first collects posture data, the communication digital signal processor may first obtain the posture information of the electronic device according to the posture data, and then receive the relative motion state sent by the audio digital signal processor. In addition, the communication digital signal processor can also obtain the posture information and the relative motion state of the electronic device at the same time. There is no clear restriction on which data to obtain first.
  • the communication digital signal processor obtains the posture information of the electronic device using the posture detection device, and combines the posture information of the electronic device with the relative motion state sent by the audio digital signal processor, In turn, it is possible to control the on and off of the screen of the electronic device.
  • This application avoids transmitting the posture information of the electronic device to the audio digital signal processor in a fixed period, which can reduce the transmission of large amounts of data between the two devices to a certain extent. , which in turn can reduce the power consumption of electronic devices.
  • FIG. 5 Another embodiment of the present application provides an information processing method. Please refer to FIG. 5, which is applied to a communication digital signal processor of an electronic device.
  • the electronic device further includes an audio digital signal processor, a posture detection device, and a screen.
  • the processing method may include step S501 to step S504.
  • Step S501 Obtain a relative motion state sent by the audio digital signal processor, where the relative motion state is a motion state between the electronic device and an object, wherein the relative motion state is the audio digital signal processor Obtained based on the received audio data returned by the object.
  • Step S502 Obtain posture data collected by the posture detection device.
  • Step S503 Determine the posture information of the electronic device according to the posture data.
  • Step S504 Control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  • the communication digital signal processor After the communication digital signal processor obtains the posture information and relative motion state of the electronic device, it can control the brightness of the electronic device screen in combination with the posture information and relative motion state of the electronic device.
  • the communication digital signal processor determines that the movement state between the electronic device and the object is that the electronic device is approaching the object, and the posture information of the electronic device changes, the screen can be controlled to be in the off-screen state.
  • the motion state between the electronic device and the object can be obtained based on the Doppler effect area difference and the Doppler effect area sum, or it can also directly use the attribute value of the ultrasonic signal in the transmission process to obtain the electronic device and the object.
  • 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 When the amplitude becomes smaller, it can be determined that the electronic device is far away from the object.
  • the communication digital signal processor can determine whether the posture information of the electronic device changes within a preset time period, and if the posture information of the electronic device changes within a preset time period, it can control the screen to be in an off-screen state.
  • the posture information of the electronic device may include gravity information, acceleration information, gyroscope information, etc.
  • the electronic device When determining whether the posture information of the electronic device has changed, it is possible to compare whether the posture information of the electronic device has changed at two moments before and after. If the posture information of at least two electronic devices has changed at two moments before and after, it can be determined that the posture information of the electronic device has changed. At this time, the electronic device can be controlled to be in the off-screen state.
  • the last motion state of the electronic device is acquired , And control the on and off of the screen according to the last relative motion state.
  • the last movement trend of the electronic device is obtained. If it is determined that the last relative movement state of the electronic device is approaching On the object, the screen of the control electronic device continues to be in the off-screen state.
  • 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 or far from the object has been described in detail above, and will not be described in detail here.
  • the screen is controlled to be in a bright screen state.
  • the screen in order to determine whether the relative motion state is that the electronic device is far away from the object, first obtain the amplitude of the ultrasonic wave at different moments, and then determine whether the amplitude of the ultrasonic signal gradually decreases. If it keeps decreasing, it can be determined that the electronic device is far away from the object.
  • this embodiment may further determine whether the amplitude of the ultrasonic signal is less than a second preset threshold, and if the amplitude of the ultrasonic signal 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 posture 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.
  • the communication digital signal processor can control the electronic device first according to the motion state of the electronic device relative to the object
  • the screen turns on and off.
  • the screen on/off control of the electronic device in this embodiment 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.
  • the information processing method proposed in the implementation of this application comprehensively controls the screen on and off by combining the posture information of the electronic device and the relative motion state. If the relative motion state and the posture information of the electronic device are different, the corresponding screen on and off control is also different. Similarly, this information processing method can make the screen on and off control more intelligent.
  • 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, a gesture detection device, and a screen. Please refer to FIG. 6 for this information
  • the processing method may include step S601 to step S602.
  • Step S601 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.
  • the electronic device may include both an ultrasonic transmitting device and an ultrasonic receiving device.
  • the ultrasonic transmitting device moves relative to the object, so the ultrasonic receiving device also moves relative to the object.
  • the wavelength of the object radiation changes due to the relative motion of the wave source (electronic device) and the observer (object).
  • the Doppler effect formula is as follows:
  • 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 movement speed of the observer, if the observer approaches the emission source, it will be forward + number of operation symbol, otherwise it is - number
  • v s is the moving speed of the transmission source, if the object approaches the front of the viewer is an operation symbol - number, and vice versa for the + sign.
  • the electronic device after the electronic device receives the ultrasonic signal through the ultrasonic receiving device, it can obtain 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, and transmission time of the ultrasonic signal sent by the ultrasonic transmitter, and the frequency variation range, reception amplitude, and reception time of the ultrasonic signal received by the ultrasonic receiver. Make a limit.
  • the electronic device can obtain the movement state between the electronic device and the object based on the Doppler effect area difference and the Doppler effect area sum.
  • the movement state between the electronic device and the object can include the trend of the electronic device. It is close to the object, the electronic device is far away from the object, and the relative position between the electronic device and the object remains unchanged.
  • the attribute value of the ultrasonic signal is different in the transmission process or the Doppler effect area difference and the Doppler effect area sum are different, the corresponding motion state may also be different.
  • 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. The specific method used to obtain the motion state is not specifically limited here.
  • Step S602 Send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, and determine the posture of the electronic device according to the posture data Information, controlling the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  • the audio digital signal processor After the audio digital signal processor obtains the relative motion state, it can send the relative motion state to the communication digital signal processor to instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, and then according to the posture
  • 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 posture information of the electronic device may include information such as the moving speed, moving distance, and moving direction of the electronic device.
  • the audio digital signal processor Before sending the relative motion state to the communication digital signal processor, the audio digital signal processor can determine whether the relative motion state acquired this time does not match the relative motion state acquired last time. In one embodiment, after the audio digital signal processor obtains the relative motion state, it can compare the current relative motion state acquired by it with the relative motion state acquired last time, and determine the electronic data acquired twice before and after. Whether the movement state between the device and the object matches, if the relative movement state obtained this time matches the relative movement state obtained last time, the audio digital signal processor is used to retrieve the audio data and the movement 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 this time has changed from the relative motion state acquired last time, otherwise, the relative motion state does not need to be sent.
  • the difference in Doppler effect area and the sum of the Doppler effect area can be compared to determine whether the motion state obtained twice before and after the electronic device matches, that is, it can be judged whether the difference in the area of Doppler effect obtained twice before and after is matched.
  • 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.
  • this embodiment can also directly use the attribute value of the ultrasonic signal in the transmission process to make the judgment. Which method is used to judge here No explicit restriction.
  • the audio digital signal processor determines whether to transmit the relative motion state obtained this time to the communication digital signal processor by comparing the relative motion state of the previous two times, which can not only guarantee The relative motion state acquired by the communication digital signal processor is all valid data, and the transmission of unnecessary data can be reduced to a large extent, and the operating power consumption of the electronic device can be reduced.
  • an information processing device 700 proposed in an embodiment of the present application is applied to a communication digital signal processor of an electronic device, and the electronic device further includes an audio digital signal processor, a posture detection device, and a screen.
  • the information processing device 700 includes: a first state acquisition module 701, a posture data acquisition module 702, a posture information determination module 703, and a screen control module 704.
  • the first state acquisition module 701 is configured 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 digital signal processor is obtained based on the received audio data returned by the object.
  • the posture data acquisition module 702 is used to obtain posture data collected by the posture detection device.
  • the posture data includes at least one of data collected by a gravity sensor, data collected by an acceleration sensor, and data collected by a gyroscope.
  • the posture information determining module 703 is configured to determine the posture information of the electronic device according to the posture data.
  • the screen control module 704 is configured to control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  • the screen control module 704 is configured to control the screen to be in an off-screen state when the motion state is that the electronic device approaches the object and the posture information of the electronic device changes.
  • the motion state is that the electronic device is in a state where the relative position of the electronic device is unchanged relative to the object and the posture information of the electronic device has not changed
  • the last motion state of the electronic device is acquired, and the The state of motion controls the on and off of the screen.
  • the screen is controlled to be in a bright screen state.
  • an information processing device 800 proposed in an embodiment of the present application is applied to an audio digital signal processor of an electronic device, and the electronic device further includes a communication digital signal processor, a posture detection device, and a screen.
  • the information processing device 800 includes: a second state acquiring module 801 and a motion state sending module 802.
  • the second state acquisition module 801 is configured to acquire the 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.
  • the motion state sending module 802 is configured to send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, and determine the position according to the posture data. According to the posture information of the electronic device, the screen is controlled to turn on and off according to the posture information of the electronic device and the relative motion state.
  • the motion state sending module 802 is used to determine whether the relative motion state obtained this time does not match the relative motion state obtained last time; if it does not match, the relative motion state obtained this time is sent to the communication Digital signal processor. If the relative motion state acquired this time is the same as the relative motion state acquired last time, the relative motion state is acquired again.
  • FIG. 9 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 application programs, such as a smart phone, a tablet computer, or an e-book.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a gesture detection device 130, a screen 140, and one or more application programs, of which one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 110 may include an audio digital signal processor 111 and a communication digital signal processor 112 and one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • the processor 110 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem.
  • the CPU mainly processes the operating system, user interface, and application programs;
  • the GPU is used for rendering and drawing of display content;
  • the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
  • the audio digital signal processor 111 is a type of DSP (Digital Signal Processor, digital signal processor), which is mainly used to process audio digital signals.
  • DSP Digital Signal Processor, digital signal processor
  • the communication digital signal processor 112 is mainly used to cooperate with the central processing unit to complete the voice communication function.
  • the audio digital signal processor 111 is configured to obtain the relative motion state according to the audio data returned by the object, the relative motion state being the motion state between the electronic device and the object, and the audio digital signal processing The device 111 is also used to send the relative motion state to the communication digital signal processor 112, the communication digital signal processor 112 is used to receive the relative motion state, and the communication digital signal processor 112 is also used to Obtain the posture data collected by the posture detection device, determine the posture information of the electronic device according to the posture data, and control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc.
  • the storage data area can also store data created by the electronic device 100 during use (such as phone book, audio and video data, chat record data) and the like.
  • the electronic device 100 further includes a posture detection device 130.
  • the posture detection device 130 refers to a sensor, which is mainly used to detect the posture data of the electronic device 100.
  • Commonly used posture detection devices 130 include light sensors, motion sensors, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the screen 140 according to the brightness of the ambient light.
  • the proximity sensor can turn off the screen 140 and/or when the electronic device 100 is moved to the ear. Backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), 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, percussion), etc.; posture detection device 130 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Thermometer, infrared sensor, etc. will not be repeated here.
  • the screen 140 is used to display information input by the user or information provided to the user.
  • the screen 140 can be configured in the form of a liquid crystal display (LCD), an organic light emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light emitting diode
  • FIG. 10 shows a structural block diagram of a computer-readable storage medium 1200 provided by an embodiment of the present application.
  • the computer-readable storage medium 1000 stores program codes, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • 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.
  • the computer-readable storage medium 1000 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 1000 has storage space for the program code 1010 for executing any method steps in the above-mentioned methods. These program codes can be read out from or written into one or more computer program products.
  • the program code 1010 may be compressed in an appropriate form, for example.

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

Disclosed are an information processing method and apparatus, an electronic device and a storage medium, belonging to the technical field of communications. The method is applied to a communication digital signal processor of an electronic device, the electronic device further comprises an audio digital signal processor, an attitude detection apparatus and a screen. The method comprises: acquiring a relative movement state sent by an audio digital signal processor; determining attitude information of an electronic device according to attitude data; and controlling the lighting-up or turning-off of a screen according to the attitude information and the relative movement state. In the information processing method proposed in the present application, the lighting-up and turning-off of the screen of an electronic device can be controlled by means of a communication digital signal processor in conjunction with attitude information of the electronic device and a relative movement state, such that power consumption generated by data transmission can be reduced to a certain extent.

Description

信息处理方法、装置、电子设备及存储介质Information processing method, device, electronic equipment and storage medium
相关申请的交叉引用Cross references to related applications
本申请要求于2019年07月31日提交中国专利局的申请号为CN201910702558.7、名称为“信息处理方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on July 31, 2019, with the application number CN201910702558.7 and titled "information processing methods, devices, electronic equipment and storage media", the entire contents of which are incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及通信技术领域,更具体地,涉及一种信息处理方法、装置、电子设备及存储介质。This application relates to the field of communication technology, and more specifically, to an information processing method, device, electronic device, and storage medium.
背景技术Background technique
近年来,随着电子设备的发展,电子设备实现的功能越来越多样化与智能化,例如,通过电子设备的按键实现屏幕的熄屏或亮屏。现有的熄屏或亮屏操作,大多需要用户在电子设备中按压键实现,即现有的屏幕状态的控制方式较为死板,且智能性较低。In recent years, with the development of electronic devices, the functions implemented by electronic devices have become more and more diversified and intelligent. For example, the screen can be turned off or 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 to achieve, that is, the existing screen state control method is relatively rigid and has low intelligence.
发明内容Summary of the invention
有鉴于此,本发明提出了一种信息处理方法、装置、电子设备及存储介质,以解决上述问题。In view of this, the present invention provides an information processing method, device, electronic equipment, and storage medium to solve the above-mentioned problems.
第一方面,本申请实施例提供了一种信息处理方法,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,该方法包括:获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的;获取所述姿态检测装置采集的姿态数据;根据所述姿态数据确定所述电子设备的姿态信息;根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In the first aspect, an embodiment of the present application provides an information processing method applied to a communication digital signal processor of an electronic device. The electronic device further includes an audio digital signal processor, a posture detection device, and a screen. The method includes: obtaining 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 state Obtained from the audio data returned by the object; Obtain the posture data collected by the posture detection device; Determine the posture information of the electronic device according to the posture data; According to the posture information of the electronic device and the relative movement The status control screen turns on and off.
第二方面,本申请实施例提供了一种信息处理方法,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕,该方法包括:根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态;将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In the 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, the electronic device further includes a communication digital signal processor, a posture detection device, and a screen. The method includes: The audio data returned by the object acquires the relative motion state, the relative motion state is the motion state between the electronic device and the object; the relative motion state is sent to the communication digital signal processor to instruct the communication The digital signal processor obtains the posture data collected by the posture detection device, determines the posture information of the electronic device according to the posture data, and controls the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
第三方面,本申请实施例提供了一种信息处理装置,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置 和屏幕。所述装置包括:第一状态获取模块、姿态数据获取模块、姿态信息确定模块和屏幕控制模块。第一状态获取模块用于获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的。姿态数据获取模块用于获取所述姿态检测装置采集的姿态数据。姿态信息确定模块用于根据所述姿态数据确定所述电子设备的姿态信息。屏幕控制模块用于根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In a third aspect, an embodiment of the present application provides an information processing device, which is applied to a communication digital signal processor of an electronic device, and the electronic device further includes an audio digital signal processor, a posture 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, the relative motion state is the motion state between the electronic device and the object, and the relative motion state is the audio The digital signal processor obtains it based on the received audio data returned by the object. The posture data acquisition module is used to acquire the posture data collected by the posture detection device. The posture information determining module is used to determine the posture information of the electronic device according to the posture data. The screen control module is used to control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
第四方面,本申请实施例提供了一种信息处理装置,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕。所述装置包括:第二状态获取模块和运动状态发送模块,第二状态获取模块,用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态。运动状态发送模块,用于将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In a fourth aspect, an embodiment of the present application provides an information processing device that is applied to an audio digital signal processor of an electronic device, and the electronic device further includes a communication digital signal processor, a posture detection device, and a screen. The device includes: a second state acquisition module and a movement state transmission module. The second state acquisition module is used to obtain the relative movement state according to the audio data returned by the object, and the relative movement state is the difference between the electronic device and the object. The state of movement between. The motion state sending module is configured to send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, and determine the The posture information of the electronic device controls the screen to turn 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 also provides an electronic device, including a communication digital signal processor, an audio digital signal processor, a posture 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, 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, the communication digital signal processor is used to receive the relative motion state, and the communication digital signal processor is further used to obtain the attitude data collected by the attitude detection device The communication digital signal processor is also used to determine the posture information of the electronic device according to the posture data, and the communication digital signal processor is also used to control the posture information of the electronic device and the relative motion state. The screen turns on and off.
第六方面,本申请实施例还提供了一种计算机可读介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a sixth aspect, the embodiments of the present application also provide a computer-readable medium, and the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the foregoing method.
相对于现有技术,本申请实施例提供的信息处理方法、装置、电子设备及存储介质,通过获取相对运动状态和电子设备的姿态信息来对屏幕的亮灭进行控制,其中,相对运动状态是音频数字信号处理器根据所接收的由物体返回的音频数据而获取的,而电子设备的姿态信息则是根据姿态检测装置采集的姿态数据获取的,本申请实施例中通信数字信号处理器可以结合其获取的电子设备的姿态信息和相对运动状态来对电子设备的屏幕亮灭进行控制,在一定程度上可以减少数据的传输,进而可以降低屏幕亮灭控制所需的功耗。Compared with the prior art, the information processing method, device, electronic equipment, 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 posture information of the electronic equipment, where the relative motion state is The audio digital signal processor is obtained based on the received audio data returned by the object, and the posture information of the electronic device is obtained based on the posture data collected by the posture detection device. The communication digital signal processor in this embodiment of the application can be combined with The acquired posture information and relative motion state of the electronic device can 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 the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还 可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed 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 be obtained based on these drawings without creative work.
图1示出了本申请实施例提供的超声波的传播路径的示意图;Fig. 1 shows a schematic diagram of a propagation path of ultrasonic waves provided by an embodiment of the present application;
图2示出了超声波发射、接收以及传感数据传输的示例图;Figure 2 shows an example diagram of ultrasonic transmission, reception and sensor data transmission;
图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 block diagram of modules of an information processing device provided by an embodiment of the present application;
图8示出了本申请实施例提供的信息处理装置的模块框图;FIG. 8 shows a block diagram of modules of an information processing device 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 program code for implementing the information processing method according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the 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 on electronic devices to replace traditional infrared proximity detection solutions. Electronic equipment transmits ultrasonic waves through ultrasonic transmitters (such as earpieces, horns, special ultrasonic transmitters, etc.). Part of the ultrasonic waves travels through the air directly to the ultrasonic receiver (pickup) (path 1 in Figure 1), and part of the ultrasonic waves travels through the air. After the object forms a reflection, it reaches the ultrasonic receiver (path 2 in Figure 1). What the ultrasonic receiver picks up is the superimposed signal of the direct sound and the reflected sound, which is converted into an audio signal by an A/D converter. The audio data is processed by algorithms to obtain the operating state of the object relative to the electronic device, and then guide the display screen of the electronic device to be in the on-screen state or the off-screen state.
具体地,当监听到电子设备处于通话状态时,可以通过电子设备内置的超声波发送装置发送固定频率的超声波信号,可以理解的是,超声波发送装置发送的超声波信号中的一部分通过空气传播直达超声波接收装置,另一部分通过空气传播与物体形成反射后再达到超声波接收装置,超声波接收装置拾取到的是直达声和反射声的叠加信号,经过A/D转换为音频信号,其中,该物体可以包括人脸、人体等。例如,如图2所示,通过电子设备内置的听筒、喇叭或者专用超声波发射器发送固定频率的超声波信号,超声波信号的一部分通过空气传播直达拾音器,另一部分通过空气传播与物体形成反射后再达到拾音器,拾音器拾取到的是直达声和反射声的叠加信号,经过A/D转换为音频信号。Specifically, when it is monitored that the electronic device is in a call state, a fixed-frequency ultrasonic signal can be sent through the built-in ultrasonic transmitter of the electronic device. It can be understood that part of the ultrasonic signal sent by the ultrasonic transmitter travels through the air and reaches the ultrasonic receiver. The other part of the device is transmitted through the air and reflected by the object before reaching the ultrasonic receiving device. 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 A/D. The object may include a person Face, human body, etc. For example, as shown in Figure 2, a fixed-frequency ultrasonic signal is sent through the built-in earpiece, horn, or special ultrasonic transmitter of the electronic device. A part of the ultrasonic signal travels through the air directly to the pickup, and the other part is transmitted through the air and reflected by the object. The pickup is the superimposed signal of the direct sound and the reflected sound picked up by the pickup, which is converted into an audio signal by A/D.
另外,电子设备获取到超声波后,可以利用A/D转换器将其获取到的超声波转化为音频数据,并将该音频数据传输至音频数字信号处理器(Audio Digital Signal Processor,ADSP),利用音频数字信号处理器对该音频数据进行处理。同时,传感器获取到传感数据后可以将该传感数据传输至通信数字信号处理器(Communication Digital Signal 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 Signal Processor, ADSP). The digital signal processor processes the audio data. At the same time, after the sensor acquires the sensor data, the sensor data can be transmitted to the communication digital signal processor (Communication Digital Signal Processor, CDSP), and the communication digital signal processor can process the sensor data to obtain the electronic equipment The posture information, and then the communication digital signal processor transmits the posture information of the electronic device to the audio digital signal processor according to a fixed cycle. The audio digital signal processor can process the acquired audio data to obtain the motion state of the object relative to the electronic device. At the same time, it can process the posture information of the electronic device transmitted by the communication digital signal processor, that is, the audio digital signal processor can According to the acquired motion state and the posture information of the electronic device, the screen of the electronic device is controlled on and off.
通信数字信号处理器需将其获取到的电子设备的姿态信息以固定周期传输至音频数字信号处理器,如此会导致这两个处理器之间存在大量的数据传输,进而会使电子设备产生较大的功耗。The communication digital signal processor needs to transmit the posture information of the electronic device it obtains to the audio digital signal processor in a fixed cycle, which will cause a large amount of data transmission between the two processors, which will further cause the electronic device to generate more data. Large power consumption.
因此,为了克服上述缺陷,如图3,本申请实施例提供了一种信息处理方法,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,该方法可以包括步骤S301至步骤S304。Therefore, in order to overcome the above-mentioned shortcomings, 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, and the electronic device further includes an audio digital signal processor, a posture detection device, and Screen, the method may include step S301 to step 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 based on 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. 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. The motion state is obtained by the audio digital signal processor according to the audio data returned by the object it receives.
假如,电子设备利用超声波发射器和拾音器获取到音频数据后,先对该数据进行模数转换,然后将转换后的音频数据传输至音频数字信号处理器,音频数字信号处理器接收到该音频数据后可以对该音频数据进行分析,进而获取到物体相对电子设备的运动状态,而后音频数字信号处理器可以结合该相对运动状态与电子设备的姿态信息对电子设备屏幕的亮灭进行控制,会导致电子设备产生较大的功耗。而本申请实施例中,音频数字信号处理器获取到物体相对电子设备的运动状态后,可以将该运动状态传输至通信数字信号处理器,利用通信数字信号处理器对电子设备的相对运动状态和电子设备的姿态信息进行分析,进而可以实现对电子设备屏幕亮灭的控制,具体的数据传输流程如图4所示。Suppose, after an electronic device uses an ultrasonic transmitter and a pickup to obtain 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 The audio data can then 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 posture information of the electronic device to control the on and off of the electronic device screen, which will lead to Electronic equipment generates greater power consumption. 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 is used to determine the relative motion state of the electronic device and The posture information of the electronic device is analyzed, and then the screen on and off of the electronic device can be controlled. The specific data transmission process is shown in Figure 4.
步骤S302:获取所述姿态检测装置采集的姿态数据。Step S302: Obtain the posture data collected by the posture detection device.
通信数字信号处理器可以利用姿态检测装置采集电子设备的姿态数据,其中,姿态检测装置指的是传感器,其主要用于实时检测电子设备的姿态数据。显然,电子设备会内置用于采集电子设备的姿态数据或运行状态信息的传感器,如加速度传感器、陀螺仪传感器、红外传感器、重力传感器、磁力传感器、方向传感器以及线性传感器等。另外,还可以内置辅助采集电子设备其他信息的光线感应传感器、压力传感器、温度传感器以及接近传感器等。利用上述姿态检测装置采集的传感数据即可称为电子设备的姿态数据,本实施例中姿态数据可以包括重力传感器采集的数据、加速度传感器采集的数据以及陀螺仪采集的数据中的至少一个。The communication digital signal processor can collect the posture data of the electronic equipment using the posture detection device, where the posture detection device refers to the sensor, which is mainly used to detect the posture data of the electronic device in real time. Obviously, electronic devices will have built-in sensors for collecting posture data or operating status information of electronic devices, such as acceleration sensors, gyroscope sensors, infrared sensors, gravity sensors, magnetic sensors, direction sensors, and linear sensors. In addition, light sensors, pressure sensors, temperature sensors, and proximity sensors can be built-in to assist in collecting other information of electronic devices. The sensor data collected by the aforementioned posture detection device can be referred to as posture data of the electronic device. The posture data in this embodiment 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 obtaining the posture data of the electronic device, the communication digital signal processor can analyze and process the posture data to obtain the posture information of the electronic device. In this embodiment, the posture information of the electronic device may include acceleration information, distance information, or position information, etc., using these information to determine the moving distance and direction of the electronic device within a certain period of time, and then determine the posture of the electronic device.
步骤S304:根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。Step S304: Control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
通过图4可以知道电子设备利用姿态检测装置获取的姿态数据和利用超声波发射器和拾音器获取到的音频数据均通过直接或间接的方式被传输至通信数字信号处理器。显然,本实施例中利用通信数字信号处理器获取到姿态检测装置采集的姿态数据后不需将其以一定周期传输至音频数字信号处理器,而只需对该姿态数据进行分析与处理得到电子设备的姿态信息以供其控制电子设备屏幕亮灭使用。From FIG. 4, it can be known that the posture data obtained by the electronic device using the posture detection device and the audio data obtained by the ultrasonic transmitter and the microphone are all directly or indirectly transmitted to the communication digital signal processor. Obviously, in this embodiment, the posture data collected by the posture detection device does not need to be transmitted to the audio digital signal processor in a certain period after the communication digital signal processor is used to obtain the posture data. The posture information of the device is used to control the screen of the electronic device to turn on and off.
需要说明的是,通信数字信号处理器可以先根据姿态数据获取电子设备的姿态信息,然后接收音频数字信号处理器发送的相对运动状态,也可以先接收音频数字信号处理器发送的相对运动状态,然后再根据姿态数据获取电子设备的姿态信息,或者也可以根据实际情况获取这两个数据。例如,姿态检测装置先采集到姿态数据,则通信数字信号处理器可以先根据该姿态数据获取电子设备的姿态信息,然后再接收音频数字信号处理器发送的相对运动状态。另外,通信数字信号处理器也可以同时获取电子设备的姿态信息和相对运动状态这两个数据,具体先获取哪个数据这里不进行明确限制。It should be noted that the communication digital signal processor can first obtain the posture information of the electronic device according to the posture data, and then receive the relative motion state sent by the audio digital signal processor, or first receive the relative motion state sent by the audio digital signal processor. Then obtain the posture information of the electronic device according to the posture data, or obtain the two data according to the actual situation. For example, if the posture detection device first collects posture data, the communication digital signal processor may first obtain the posture information of the electronic device according to the posture data, and then receive the relative motion state sent by the audio digital signal processor. In addition, the communication digital signal processor can also obtain the posture information and the relative motion state of the electronic device at the same time. There is no clear restriction on which data to obtain first.
本申请实施例提出的一种信息处理方法中通信数字信号处理器利用姿态检测装置获取电子设备的姿态信息,并将该电子设备的姿态信息与音频数字信号处理器发送的相对运动状态进行结合,进而可以实现对电子设备屏幕亮灭的控制,本申请因避免将电子设备的姿态信息以固定周期传输至音频数字信号处理器,其在一定程度上可以减少这两个器件之间大量数据的传输,进而可以降低电子设备的功耗。In the information processing method proposed in the embodiment of the application, the communication digital signal processor obtains the posture information of the electronic device using the posture detection device, and combines the posture information of the electronic device with the relative motion state sent by the audio digital signal processor, In turn, it is possible to control the on and off of the screen of the electronic device. This application avoids transmitting the posture information of the electronic device to the audio digital signal processor in a fixed period, which can reduce the transmission of large amounts of data between the two devices to a certain extent. , Which in turn can reduce the power consumption of electronic devices.
本申请另一个实施例提供了一种信息处理方法,请参阅图5,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,该信息处理方法可以包括步骤S501至步骤S504。Another embodiment of the present application provides an information processing method. Please refer to FIG. 5, which is applied to a communication digital signal processor of an electronic device. The electronic device further includes an audio digital signal processor, a posture detection device, and a screen. The processing method may include step S501 to step S504.
步骤S501:获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的。Step S501: Obtain a relative motion state sent by the audio digital signal processor, where the relative motion state is a motion state between the electronic device and an object, wherein the relative motion state is the audio digital signal processor Obtained based on the received audio data returned by the object.
步骤S502:获取所述姿态检测装置采集的姿态数据。Step S502: Obtain posture data collected by the posture 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 posture information of the electronic device and the relative motion state.
通信数字信号处理器获取到电子设备的姿态信息和相对运动状态后,可以结合该电子设备的姿态信息和相对运动状态对电子设备屏幕的亮度进行控制。当通信数字信号处理器确定电子设备与物体之间的运动状态为电子设备趋近于物体时,且电子设备的姿态信息发生改变时可以控制屏幕处于灭屏状态。After the communication digital signal processor obtains the posture information and relative motion state of the electronic device, it can control the brightness of the electronic device screen in combination with the posture information and relative motion state of the electronic device. When the communication digital signal processor determines that the movement state between the electronic device and the object is that the electronic device is approaching the object, and the posture information of the electronic device changes, the screen can be controlled to be in the off-screen state.
本实施例可以基于多普勒效应面积差和多普勒效应面积和来获取电子设备与物体之间的运动状态,或者也可以直接利用超声波信号在传输过程中的属性值来获取电子设备与物体之间的运动状态。在一个具体实施例中,可以利用超声波信号的幅值变化来确定电子设备与物体之间的运动状态,当超声波信号的幅值变大时,可以确定电子设备趋近于物体,而当超声波信号的幅值变小时,可以确定电子设备远离物体。In this embodiment, the motion state between the electronic device and the object can be obtained based on the Doppler effect area difference and the Doppler effect area sum, or it can also directly use the attribute value of the ultrasonic signal in the transmission process to obtain the electronic device and the object. The 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 When the amplitude 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 determined whether the amplitude of the ultrasonic signal is greater than the first preset threshold, and if the amplitude of the ultrasonic signal is greater than the The first preset threshold determines that the electronic device is approaching the object. At the same time, the communication digital signal processor can determine whether the posture information of the electronic device changes within a preset time period, and if the posture information of the electronic device changes within a preset time period, it can control the screen to be in an off-screen state. In this embodiment, the posture information of the electronic device may include gravity information, acceleration information, gyroscope information, etc. When determining whether the posture information of the electronic device has changed, it is possible to compare whether the posture information of the electronic device has changed at two moments before and after. If the posture information of at least two electronic devices has changed at two moments before and after, it can be determined that the posture information of the electronic device has changed. At this time, the electronic device can be controlled to be in the 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 is unchanged relative to the object and the posture information of the electronic device has not changed, the last motion state of the electronic device is acquired , And control the on and off of the screen according to the last relative motion state. In other words, if it is determined that the movement state of the electronic device relative to the object has not changed and the posture information of the electronic device has not changed, the last movement trend of the electronic device is obtained. If it is determined that the last relative movement state of the electronic device is approaching On 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 movement state of the electronic device is far 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 or far 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 posture information of the electronic device changes, the screen is controlled to be in a bright screen state. In the same way, in order to determine whether the relative motion state is that the electronic device is far away from the object, first obtain the amplitude of the ultrasonic wave at different moments, and then determine whether the amplitude of the ultrasonic signal gradually decreases. If it keeps decreasing, it can be determined that the electronic device is far away from the object. In order to make the determination of the relative motion state more accurate, this embodiment may further determine whether the amplitude of the ultrasonic signal is less than a second preset threshold, and if the amplitude of the ultrasonic signal 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 posture 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 of the electronic device is close to or far from the object, but the posture information of the electronic device has not changed, at this time, the communication digital signal processor can control the electronic device first according to the motion state of the electronic device relative to the object The screen turns on and off. Obviously, the screen on/off control of the electronic device in this embodiment 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.
本申请实施提出的一种信息处理方法通过结合电子设备的姿态信息和相对运动状态综合对屏幕亮灭进行控制,相对运动状态和电子设备的姿态信息不同,则其对应的屏幕亮灭控制也不相同,通过该信息处理方法可以使屏幕亮灭的控制更加智能化。The information processing method proposed in the implementation of this application comprehensively controls the screen on and off by combining the posture information of the electronic device and the relative motion state. If the relative motion state and the posture information of the electronic device are different, the corresponding screen on and off control is also different. Similarly, this information processing method can make the screen on and off control more intelligent.
本申请又一个实施例提供了一种信息处理方法,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕,请参阅图6,该信息处理方法可以包括步骤S601至步骤S602。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, a gesture detection device, and a screen. Please refer to FIG. 6 for this information The processing method may include step S601 to step S602.
步骤S601:根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态。Step S601: 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.
本实施例中,电子设备可以同时包括超声波发送装置和超声波接收装置。在超声波发送装置相对物体运动的过程中,其实质是电子设备相对物体运动,从而超声波接收装置也相对物体运动。根据多普勒效应,物体辐射的波长因为波源(电子设备)和观测者(物体)的相对运动而产生变化,多普勒效应公式如下:In this embodiment, the electronic device may include both an ultrasonic transmitting device and an ultrasonic receiving device. During the movement of the ultrasonic transmitting device 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 object radiation changes due to the relative motion of the wave source (electronic device) and the observer (object). The Doppler effect formula is as follows:
Figure PCTCN2020102377-appb-000001
Figure PCTCN2020102377-appb-000001
其中,f'为观察到的频率、f为发射源于该介质中的原始发射频率、v为波在该介质中的传播速度、v 0为观察者移动速度,若观察者接近发射源则前方运算符号为+号,反之则为-号;v s为发射源移动速度,若物体接近观察者则前方运算符号为-号,反之则为+号。由多普勒效应公式可知,当发射源与观察者相对接近时,观察者接收到的信号频率会变大;当发射源与观察者相对远离时,观察者接收到的信号频率会变小;当发射源与观察者相对静止时,观察者接收到信号频率与发射源一致。 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 movement speed of the observer, if the observer approaches the emission source, it will be forward + number of operation symbol, otherwise it is - number; v s is the moving speed of the transmission source, if the object approaches the front of the viewer is an operation symbol - number, and vice versa for the + sign. From the Doppler effect formula, it can be known that when the emission source is relatively close to the observer, the frequency of the signal received by the observer will increase; when the emission source is relatively far away from the observer, the frequency of the signal received by the observer will decrease; When the transmitting source and the observer are relatively stationary, the frequency of the signal received by the observer is consistent with the transmitting source.
在一个实施例中,当电子设备通过超声波接收装置接收到超声波信号后,可以获取该超声波信号在传输过程中的属性值,并基于该属性值计算该超声波信号在传输过程中的多普勒效应面积差和多普勒效应面积和。其中,该属性值可以包括超声波发送装置发送的超声波信号的发送频率、发送幅值、发送时间等,超声波接收装置所接收的超声波信号的频率变化范围、接收幅值、接收时间等,在此不做限定。In one embodiment, after the electronic device receives the ultrasonic signal through the ultrasonic receiving device, it can obtain 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. Among them, the attribute value may include the transmission frequency, transmission amplitude, and transmission time of the ultrasonic signal sent by the ultrasonic transmitter, and the frequency variation range, reception amplitude, and reception time of the ultrasonic signal received by the ultrasonic receiver. Make a limit.
电子设备可以基于多普勒效应面积差和所述多普勒效应面积和来获取电子设备与物体之间的运动状态,通过上述介绍可以知道电子设备与物体之间的运动状态可以包括电子设备趋近于物体、电子设备远离物体以及电子设备与物体之间处于相对位置不变状态。超声波信号在传输过程中的属性值不同或者多普勒效应面积差和所述多普勒效应面积和不相同则其对应的运动状态也可能不相同。在本实施例中,当超声波的幅值变大则表明物体趋近电子设备,而超声波的幅值变小则表明物体远离电子设备,而如果超声波的幅值未发生改变, 则表明电子设备与物体之间处于相对位置不变状态。另外,也可以根据超声波信号在传输过程中的其他的属性值来判断电子设备与物体之间的运动状态,具体使用哪种方式获取运动状态这里不进行明确限制。The electronic device can obtain the movement state between the electronic device and the object based on the Doppler effect area difference and the Doppler effect area sum. Through the above introduction, it can be known that the movement state between the electronic device and the object can include the trend of the electronic device. It is close to the object, the electronic device is far away from the object, and the relative position between the electronic device and the object remains unchanged. When the attribute value of the ultrasonic signal is different in the transmission process or the Doppler effect area difference and the Doppler effect area sum are different, the corresponding motion state 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, while the amplitude of the ultrasonic wave decreases, which indicates that the object is far away from the electronic device. If the amplitude of the ultrasonic wave does not change, it indicates that the electronic device is The relative position of the objects remains 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. The specific method used 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 posture data collected by the posture detection device, and determine the posture of the electronic device according to the posture data Information, controlling 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, it can send the relative motion state to the communication digital signal processor to instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, and then according to the posture 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. Among them, the posture information of the electronic device may include information such as the moving speed, moving distance, and moving direction of the electronic device.
将所述相对运动状态发送至所述通信数字信号处理器前,音频数字信号处理器可以判断本次获取的相对运动状态相对上一次获取的相对运动状态是否不匹配。在一个实施例中,音频数字信号处理器获取到相对运动状态后,可以将其获取到的本次相对运动状态与上一次获取到的相对运动状态进行比较,并判断前后两次获取到的电子设备与物体之间的运动状态是否匹配,如果本次获取相对运动状态相对上一次获取的相对运动状态匹配,则利用音频数字信号处理器重新获取音频数据和该音频数据对应的运动状态。如果本次获取相对运动状态相对上一次获取的相对运动状态不匹配,则将本次获取的所述相对运动状态发送至所述通信数字信号处理器。显然,只有确定本次相对运动状态相对上次获取的相对运动状态发生改变时音频数字信号处理器才将该相对运动状态发送至通信数字信号处理器,否则的话不需将相对运动状态进行发送。Before sending the relative motion state to the communication digital signal processor, the audio digital signal processor can determine whether the relative motion state acquired this time does not match the relative motion state acquired last time. In one embodiment, after the audio digital signal processor obtains the relative motion state, it can compare the current relative motion state acquired by it with the relative motion state acquired last time, and determine the electronic data acquired twice before and after. Whether the movement state between the device and the object matches, if the relative movement state obtained this time matches the relative movement state obtained last time, the audio digital signal processor is used to retrieve the audio data and the movement 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 this time has changed from the relative motion state acquired last time, otherwise, the relative motion state does not need to be sent.
本实施例中,可以通过比较多普勒效应面积差和多普勒效应面积和来判断电子设备前后两次获取的运动状态是否匹配,即可以判断前后两次获取的多普勒效应面积差之间的匹配度是否大于第一预设匹配度,如果大于第一预设匹配度则表明电子设备与物体之间的运动状态匹配,否的话则表明前后两次电子设备与物体之间的运动状态不匹配。另外,也可以判断前后两次获取的多普勒效应面积和之间的匹配度是否小于第二预设匹配度,如果小于第二预设匹配度则表明电子设备与物体之间的运动状态匹配,否的话则表明前后两次电子设备与物体之间的运动状态不匹配。需要说明的是,在判断前后两次电子设备与物体之间的运动状态是否匹配时,本实施例也可以直接利用超声波信号在传输过程中的属性值来进行判定,具体使用哪种方式判断这里不进行明确限制。In this embodiment, the difference in Doppler effect area and the sum of the Doppler effect area can be compared to determine whether the motion state obtained twice before and after the electronic device matches, that is, it can be judged whether the difference in the area of Doppler effect obtained twice before and after is matched. 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 Doppler effect area sum obtained twice before and after is less than the second preset matching degree. If it is less than the second preset matching degree, it indicates that the motion state between the electronic device and the object matches. , Otherwise, it means 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 in the previous and next two times, this embodiment can also directly use the attribute value of the ultrasonic signal in the transmission process to make the judgment. Which method is used to judge here No explicit restriction.
本申请实施例中提出的一种信息处理方法,音频数字信号处理器通过比较前后两次的相对运动状态来确定是否将本次获取的相对运动状态传输至通信数字信号处理器,如此不仅可以保证通信数字信号处理器获取到的相对运动状态均为有效数据,而且可以在很大程度上减少不必要数据的传输,降低电子设备的运行功耗。In an information processing method proposed in the embodiment of the present application, the audio digital signal processor determines whether to transmit the relative motion state obtained this time to the communication digital signal processor by comparing the relative motion state of the previous two times, which can not only guarantee The relative motion state acquired by the communication digital signal processor is all valid data, and the transmission of unnecessary data can be reduced to a large extent, and the operating power consumption of the electronic device can be reduced.
请参阅图7,本申请实施例提出的一种信息处理装置700,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,具体地,该信息处理装置700包括:第一状态获取模块701、姿态数据获取模块702、姿态信息确定模块703和屏幕控制模块704。Referring to FIG. 7, an information processing device 700 proposed in an embodiment of the present application is applied to a communication digital signal processor of an electronic device, and the electronic device further includes an audio digital signal processor, a posture detection device, and a screen. Specifically, The information processing device 700 includes: a first state acquisition module 701, a posture data acquisition module 702, a posture information determination module 703, and a screen control module 704.
第一状态获取模块701,用于获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的。The first state acquisition module 701 is configured 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 digital signal processor is obtained based on the received audio data returned by the object.
姿态数据获取模块702,用于获取所述姿态检测装置采集的姿态数据。The posture data acquisition module 702 is used to obtain posture data collected by the posture detection device.
进一步的,所述姿态数据包括重力传感器采集的数据、加速度传感器采集的数据以及陀螺仪采集的数据中的至少一个。Further, the posture 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 posture information determining module 703 is configured to determine the posture information of the electronic device according to the posture data.
屏幕控制模块704,用于根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。The screen control module 704 is configured to control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
进一步的,屏幕控制模块704用于当所述运动状态为所述电子设备趋近所述物体且所述电子设备的姿态信息发生改变时,控制所述屏幕处于灭屏状态。当所述运动状态为所述电子设备相对所述物体处于相对位置不变状态且所述电子设备的姿态信息未发生改变时,获取所述电子设备上一次的运动状态,并根据所述上一次的运动状态控制所述屏幕的亮灭。当所述运动状态为所述电子设备远离所述物体且所述电子设备的姿态信息发生改变时,控制所述屏幕处于亮屏状态。Further, the screen control module 704 is configured to control the screen to be in an off-screen state when the motion state is that the electronic device approaches the object and the posture information of the electronic device changes. When the motion state is that the electronic device is in a state where the relative position of the electronic device is unchanged relative to the object and the posture information of the electronic device has not changed, the last motion state of the electronic device is acquired, and the The state of motion controls the on and off of the screen. When the motion state is that the electronic device is far away from the object and the posture information of the electronic device changes, the screen is controlled to be in a bright screen state.
请参阅图8,本申请实施例提出的一种信息处理装置800,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕,具体地,该信息处理装置800包括:第二状态获取模块801和运动状态发送模块802。Referring to FIG. 8, an information processing device 800 proposed in an embodiment of the present application is applied to an audio digital signal processor of an electronic device, and the electronic device further includes a communication digital signal processor, a posture detection device, and a screen. Specifically, The information processing device 800 includes: a second state acquiring module 801 and a motion state sending module 802.
第二状态获取模块801,用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态。The second state acquisition module 801 is configured to acquire the 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.
运动状态发送模块802,用于将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。The motion state sending module 802 is configured to send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, and determine the position according to the posture data. According to the posture information of the electronic device, the screen is controlled to turn on and off according to the posture information of the electronic device and the relative motion state.
进一步的,运动状态发送模块802用于判断本次获取的相对运动状态相对上一次获取的相对运动状态是否不匹配;如果不匹配,则将本次获取的所述相对运动状态发送至所述通信数字信号处理器。如果本次获取的相对运动状态相对上一次获取的相对运动状态相同,则重新获取相对运动状态。Further, the motion state sending module 802 is used to determine whether the relative motion state obtained this time does not match the relative motion state obtained last time; if it does not match, the relative motion state obtained this time is sent to the communication Digital signal processor. If the relative motion state acquired this time is the same as the relative motion state acquired last time, the relative motion state is acquired again.
请参阅图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 application programs, such as a smart phone, a tablet computer, or an e-book. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a gesture detection device 130, a screen 140, and one or more application programs, of which one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
处理器110可以包括音频数字信号处理器111和通信数字信号处理器112以及一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作***、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include an audio digital signal processor 111 and a communication digital signal processor 112 and one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120. Various functions and processing data of the electronic device 100. Optionally, the processor 110 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). A kind of hardware form to realize. The processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
音频数字信号处理器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 to process audio digital signals. DSP is a processor composed of large-scale or very large-scale integrated circuit chips to complete a certain signal processing task. It is gradually developed to meet the needs of high-speed real-time signal processing tasks. The communication digital signal processor 112 is mainly used to cooperate with the central processing unit to complete the voice communication function.
一个实施例中,音频数字信号处理器111用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态,所述音频数字信号处理器111还用于将所述相对运动状态发送至所述通信数字信号处理器112,所述通信数字信号处理器112用于接收所述相对运动状态,所述通信数字信号处理器112还用于获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。In one embodiment, the audio digital signal processor 111 is configured to obtain the relative motion state according to the audio data returned by the object, the relative motion state being the motion state between the electronic device and the object, and the audio digital signal processing The device 111 is also used to send the relative motion state to the communication digital signal processor 112, the communication digital signal processor 112 is used to receive the relative motion state, and the communication digital signal processor 112 is also used to Obtain the posture data collected by the posture detection device, determine the posture information of the electronic device according to the posture data, and control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作***的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc. The storage data area can also store data created by the electronic device 100 during use (such as phone book, audio and video data, chat record data) and the like.
电子设备100还包括姿态检测装置130,本实施例中姿态检测装置130指的是传感器,其主要用于检测电子设备100的姿态数据。常用的姿态检测装置130包括光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节屏幕140的亮度,接近传感器可在电子设备100移动到耳边时,关闭屏幕140和 /或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;姿态检测装置130还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 100 further includes a posture detection device 130. In this embodiment, the posture detection device 130 refers to a sensor, which is mainly used to detect the posture data of the electronic device 100. Commonly used posture detection devices 130 include light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the screen 140 according to the brightness of the ambient light. The proximity sensor can turn off the screen 140 and/or 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 various directions (usually three-axis), 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, percussion), etc.; posture detection device 130 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Thermometer, infrared sensor, 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 can be configured in the form of a liquid crystal display (LCD), an organic light emitting diode (OLED), etc.
请参阅图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. The computer-readable storage medium 1000 stores program codes, and the program codes can be invoked by a processor to execute the methods described in the foregoing 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. The computer-readable storage medium 1000 has storage space for the program code 1010 for executing any method steps in the above-mentioned methods. These program codes can be read out from or written into one or more computer program products. The program code 1010 may be compressed in an appropriate form, for example.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; 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 (20)

  1. 一种信息处理方法,其特征在于,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,所述方法包括:An information processing method, characterized in that it is applied to a communication digital signal processor of an electronic device, the electronic device further comprising an audio digital signal processor, a posture detection device and a screen, and the method includes:
    获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的;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 digital signal processor according to the received state Is obtained from the audio data returned by the object;
    获取所述姿态检测装置采集的姿态数据;Acquiring the posture data collected by the posture detection device;
    根据所述姿态数据确定所述电子设备的姿态信息;Determining the posture information of the electronic device according to the posture data;
    根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。The screen is controlled to turn on and off according to the posture information of the electronic device and the relative motion state.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭,包括:The method according to claim 1, wherein the controlling the screen to turn on and off according to the posture information of the electronic device and the relative motion state comprises:
    当所述运动状态为所述电子设备趋近所述物体且所述电子设备的姿态信息发生改变时,控制所述屏幕处于灭屏状态。When the motion state is that the electronic device approaches the object and the posture information of the electronic device changes, control the screen to be in an off-screen state.
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭,包括:The method according to claim 1, wherein the controlling the screen to turn on and off according to the posture information of the electronic device and the relative motion state comprises:
    当所述运动状态为所述电子设备相对所述物体处于相对位置不变状态且所述电子设备的姿态信息未发生改变时,获取所述电子设备上一次的运动状态,并根据所述上一次的运动状态控制所述屏幕的亮灭。When the motion state is that the electronic device is in a state where the relative position of the electronic device is unchanged relative to the object and the posture information of the electronic device has not changed, the last motion state of the electronic device is acquired, and the The state of motion controls the on and off of the screen.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述上一次的运动状态控制所述屏幕的亮灭,包括:The method according to claim 3, wherein the controlling the on and off of the screen according to the last motion state comprises:
    如果上一次的运动状态为所述电子设备趋近所述物体,则控制所述电子设备屏幕处于灭屏状态。If the last motion state is that the electronic device approaches the object, the screen of the electronic device is controlled to be in an off-screen state.
  5. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    如果上一次的运动状态为所述电子设备远离所述物体,则控制所述电子设备处于亮屏状态。If the last motion state is that the electronic device is far away from the object, the electronic device is controlled to be in a bright screen state.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭,包括:The method according to claim 1, wherein the controlling the screen to turn on and off according to the posture information of the electronic device and the relative motion state comprises:
    当所述运动状态为所述电子设备远离所述物体且所述电子设备的姿态信息发生改变时,控制所述屏幕处于亮屏状态。When the motion state is that the electronic device is far away from the object and the posture information of the electronic device changes, the screen is controlled to be in a bright screen state.
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭,包括:The method according to claim 1, wherein the controlling the screen to turn on and off according to the posture information of the electronic device and the relative motion state comprises:
    当所述运动状态为所述电子设备远离所述物体且所述电子设备的姿态信息未发生改变时,控制所述屏幕处于亮屏状态。When the motion state is that the electronic device is far away from the object and the posture information of the electronic device has not changed, controlling the screen to be in a bright screen state.
  8. 根据权利要求1所述的方法,其特征在于,所述根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭,包括:The method according to claim 1, wherein the controlling the screen to turn on and off according to the posture information of the electronic device and the relative motion state comprises:
    当所述运动状态为所述电子设备趋近所述物体且所述电子设备的姿态信息未发生改变时,控制所述屏幕处于灭屏状态。When the motion state is that the electronic device approaches the object and the posture information of the electronic device has not changed, the screen is controlled to be in an off-screen state.
  9. 根据权利要求1-8任一所述的方法,其特征在于,所述姿态数据包括重力传感器采集的数据、加速度传感器采集的数据以及陀螺仪采集的数据中的至少一个。The method according to any one of claims 1-8, wherein the posture data includes at least one of data collected by a gravity sensor, data collected by an acceleration sensor, and data collected by a gyroscope.
  10. 一种信息处理方法,其特征在于,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕,所述方法包括:An information processing method, characterized in that it is applied to an audio digital signal processor of an electronic device, the electronic device further comprising a communication digital signal processor, a posture detection device, and a screen, and the method includes:
    根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态;Acquiring the relative motion state according to the audio data returned by the object, the relative motion state being the motion state between the electronic device and the object;
    将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。Send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, determine the posture information of the electronic device according to the posture data, and The posture information of the electronic device and the relative motion state control the screen to turn on and off.
  11. 根据权利要求10所述的方法,其特征在于,所述将所述相对运动状态发送至所述通信数字信号处理器,包括:The method according to claim 10, wherein the sending the relative motion state to the communication digital signal processor comprises:
    判断本次获取的相对运动状态相对上一次获取的相对运动状态是否不匹配;Determine whether the relative motion state acquired this time does not match the relative motion state acquired last time;
    如果不匹配,则将本次获取的所述相对运动状态发送至所述通信数字信号处理器。If there is no match, the relative motion state acquired this time is sent to the communication digital signal processor.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method of claim 11, wherein the method further comprises:
    如果本次获取的相对运动状态相对上一次获取的相对运动状态相同,则重新获取相对运动状态。If the relative motion state acquired this time is the same as the relative motion state acquired last time, the relative motion state is acquired again.
  13. 根据权利要求10所述的方法,其特征在于,所述根据物体返回的音频数据获取相对运动状态,包括:The method according to claim 10, wherein the obtaining the relative motion state according to the audio data returned by the object comprises:
    当所述电子设备通过超声波接收装置接收到超声波信号时,获取所述超声波信号在传输过程中的属性值;When the electronic device receives the ultrasonic signal through the ultrasonic receiving device, acquiring the attribute value of the ultrasonic signal in the transmission process;
    基于所述属性值获取所述超声波信号在传输过程中的多普勒效应面积差和多普勒效应面积和;Acquiring, based on the attribute value, the Doppler effect area difference and the Doppler effect area sum of the ultrasonic signal in the transmission process;
    利用所述多普勒效应面积差和所述多普勒效应面积和获取电子设备与所述物体之间的相对运动状态。Using the Doppler effect area difference and the Doppler effect area to obtain the relative motion state between the electronic device and the object.
  14. 根据权利要求10所述的方法,其特征在于,所述根据物体返回的音频数据获取相对运动状态,包括:The method according to claim 10, wherein the obtaining the relative motion state according to the audio data returned by the object comprises:
    根据所述音频数据确定不同时刻超声波信号的幅值大小;Determining the amplitude of the ultrasonic signal at different moments according to the audio data;
    利用不同时刻所述超声波信号的幅值大小确定所述电子设备与所述物体之间的运行状态。The amplitude of the ultrasonic signal at different times is used to determine the operating state between the electronic device and the object.
  15. 根据权利要求14所述的方法,其特征在于,所述利用不同时刻所述超声波信号的幅值大小确定所述电子设备与所述物体之间的运行状态,包括:The method according to claim 14, wherein the determining the operating state between the electronic device and the object by using the amplitude of the ultrasonic signal at different times comprises:
    当所述超声波信号的幅值不断变大时,获取所述超声波信号的幅值不断变大的过程中的最大幅值;When the amplitude of the ultrasonic signal is continuously increasing, acquiring the maximum amplitude in the process of continuously increasing the amplitude of the ultrasonic signal;
    判断所述最大幅值是否大于第一预设阈值;Judging whether the maximum amplitude is greater than a first preset threshold;
    如果所述最大幅值大于第一预设阈值,则确定所述电子设备趋近于所述物体。If the maximum amplitude is greater than the first preset threshold, it is determined that the electronic device is approaching the object.
  16. 根据权利要求14所述的方法,其特征在于,所述利用不同时刻所述超声波信号的幅值大小确定所述电子设备与所述物体之间的运行状态,包括:The method according to claim 14, wherein the determining the operating state between the electronic device and the object by using the amplitude of the ultrasonic signal at different times comprises:
    当所述超声波信号的幅值不断变小时,获取所述超声波信号的幅值不断变小的过程中的最小幅值;When the amplitude of the ultrasonic signal keeps getting smaller, acquiring the smallest amplitude in the process of getting smaller the amplitude of the ultrasonic signal;
    判断所述最小幅值是否小于第二预设值;Judging whether the minimum amplitude value is less than a second preset value;
    如果所述最小幅值小于第二预设阈值,则确定所述电子设备远离所述物体。If the minimum amplitude is less than a second preset threshold, it is determined that the electronic device is far away from the object.
  17. 一种信息处理装置,其特征在于,应用于电子设备的通信数字信号处理器,所述电子设备还包括音频数字信号处理器、姿态检测装置和屏幕,所述装置包括:An information processing device, characterized in that a communication digital signal processor applied to an electronic device, the electronic device further comprising an audio digital signal processor, a posture detection device and a screen, the device comprising:
    第一状态获取模块,用于获取所述音频数字信号处理器发送的相对运动状态,所述相对运动状态为所述电子设备与物体之间的运动状态,其中,所述相对运动状态为所述音频数字信号处理器根据所接收的由所述物体返回的音频数据而获取的;The first state acquisition module is configured 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 Acquired by the audio digital signal processor based on the received audio data returned by the object;
    姿态数据获取模块,用于获取所述姿态检测装置采集的姿态数据;A posture data acquisition module for acquiring posture data collected by the posture detection device;
    姿态信息确定模块,用于根据所述姿态数据确定所述电子设备的姿态信息;A posture information determining module, configured to determine the posture information of the electronic device according to the posture data;
    屏幕控制模块,用于根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。The screen control module is configured to control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  18. 一种信息处理装置,其特征在于,应用于电子设备的音频数字信号处理器,所述电子设备还包括通信数字信号处理器、姿态检测装置和屏幕,所述装置包括:An information processing device, characterized in that an audio digital signal processor applied to an electronic device, the electronic device further comprising a communication digital signal processor, a posture detection device and a screen, the device comprising:
    第二状态获取模块,用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态;A second state acquisition module, configured to acquire a relative motion state according to the audio data returned by the object, the relative motion state being the motion state between the electronic device and the object;
    运动状态发送模块,用于将所述相对运动状态发送至所述通信数字信号处理器,指示所述通信数字信号处理器获取所述姿态检测装置采集的姿态数据,根据所述姿态数据确定所述电子设备的姿态信息,根据所述电子设备的姿态信息和所述相对运动状态控制所述屏幕亮灭。The motion state sending module is configured to send the relative motion state to the communication digital signal processor, instruct the communication digital signal processor to obtain the posture data collected by the posture detection device, and determine the The posture information of the electronic device controls the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  19. 一种电子设备,其特征在于,包括通信数字信号处理器、音频数字信号处理器、姿态检测装置和屏幕,包括:An electronic device, which is characterized by comprising a communication digital signal processor, an audio digital signal processor, a gesture detection device and a screen, and includes:
    所述音频数字信号处理器用于根据物体返回的音频数据获取相对运动状态,所述相对运动状态为所述电子设备与所述物体之间的运动状态;The audio digital signal processor is configured to obtain a relative motion state according to the audio data returned by the object, the relative motion state being the motion state between the electronic device and the object;
    所述音频数字信号处理器还用于将所述相对运动状态发送至所述通信数字信号处理器;The audio digital signal processor is also used to send the relative motion state to the communication digital signal processor;
    所述通信数字信号处理器用于接收所述相对运动状态;The communication digital signal processor is used to receive the relative motion state;
    所述通信数字信号处理器还用于获取所述姿态检测装置采集的姿态数据;The communication digital signal processor is also used to obtain the posture data collected by the posture detection device;
    所述通信数字信号处理器还用于根据所述姿态数据确定所述电子设备的姿态信息;The communication digital signal processor is further configured to determine the posture information of the electronic device according to the posture data;
    所述通信数字信号处理器还用于根据所述电子设备的姿态信息和所述相 对运动状态控制所述屏幕亮灭。The communication digital signal processor is also used to control the screen to turn on and off according to the posture information of the electronic device and the relative motion state.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-9任一项所述的方法。A computer readable storage medium, wherein the computer readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-9 .
PCT/CN2020/102377 2019-07-31 2020-07-16 Information processing method and apparatus, electronic device and storage medium WO2021017860A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910702558.7 2019-07-31
CN201910702558.7A CN110502109B (en) 2019-07-31 2019-07-31 Information processing method, information processing device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021017860A1 true WO2021017860A1 (en) 2021-02-04

Family

ID=68586802

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/102377 WO2021017860A1 (en) 2019-07-31 2020-07-16 Information processing method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN110502109B (en)
WO (1) WO2021017860A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865710A (en) * 2019-11-19 2020-03-06 Oppo(重庆)智能科技有限公司 Terminal control method and device, mobile terminal and storage medium
CN112882035A (en) * 2021-02-18 2021-06-01 联想(北京)有限公司 Detection method, equipment and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
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
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
CN112579037A (en) * 2020-12-21 2021-03-30 Oppo广东移动通信有限公司 Audio control method and device, storage medium and electronic equipment
CN116708661B (en) * 2022-10-26 2024-05-03 荣耀终端有限公司 Audio call processing method, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110301885A1 (en) * 2010-06-04 2011-12-08 Apple Inc. System and method for testing a light sensor of a portable electronic device
CN106933366A (en) * 2017-03-23 2017-07-07 北京小米移动软件有限公司 Bright screen method and device
CN109710142A (en) * 2017-10-25 2019-05-03 华为技术有限公司 A kind of method and terminal for controlling terminal screen light on and off
CN110502109A (en) * 2019-07-31 2019-11-26 Oppo广东移动通信有限公司 Information processing method, device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107896272B (en) * 2017-08-11 2020-09-18 Oppo广东移动通信有限公司 Call control method and device
CN108052352A (en) * 2017-11-30 2018-05-18 努比亚技术有限公司 Control method, terminal and the computer readable storage medium of screen on-off state

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110301885A1 (en) * 2010-06-04 2011-12-08 Apple Inc. System and method for testing a light sensor of a portable electronic device
CN106933366A (en) * 2017-03-23 2017-07-07 北京小米移动软件有限公司 Bright screen method and device
CN109710142A (en) * 2017-10-25 2019-05-03 华为技术有限公司 A kind of method and terminal for controlling terminal screen light on and off
CN110502109A (en) * 2019-07-31 2019-11-26 Oppo广东移动通信有限公司 Information processing method, device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865710A (en) * 2019-11-19 2020-03-06 Oppo(重庆)智能科技有限公司 Terminal control method and device, mobile terminal and storage medium
CN110865710B (en) * 2019-11-19 2023-08-18 Oppo(重庆)智能科技有限公司 Terminal control method and device, mobile terminal and storage medium
CN112882035A (en) * 2021-02-18 2021-06-01 联想(北京)有限公司 Detection method, equipment and storage medium

Also Published As

Publication number Publication date
CN110502109B (en) 2022-04-19
CN110502109A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
WO2021017860A1 (en) Information processing method and apparatus, electronic device and storage medium
US11373054B2 (en) Object recognition method and mobile terminal
CN108427876B (en) Fingerprint identification method and mobile terminal
WO2019154181A1 (en) Display control method and mobile terminal
WO2018103525A1 (en) Method and device for tracking facial key point, and storage medium
CN111223143B (en) Key point detection method and device and computer readable storage medium
WO2021017947A1 (en) Terminal control method and device, mobile terminal and storage medium
WO2021017859A1 (en) Screen state control method and apparatus, mobile terminal and storage medium
CN110781899B (en) Image processing method and electronic device
CN111382624A (en) Action recognition method, device, equipment and readable storage medium
WO2022179376A1 (en) Gesture control method and apparatus, and electronic device and storage medium
US11165950B2 (en) Method and apparatus for shooting video, and storage medium
CN111554321A (en) Noise reduction model training method and device, electronic equipment and storage medium
WO2021017851A1 (en) Screen state control method and apparatus, mobile terminal and storage medium
WO2021017927A1 (en) Method and device for controlling apparatus, electronic apparatus, and storage medium
EP4096207A1 (en) Mobile terminal, method for detecting image capturing mode, and storage medium
WO2021017855A1 (en) Ring processing method and apparatus, mobile terminal and storage medium
CN113934330A (en) Screen capturing method and electronic equipment
CN113448482A (en) Sliding response control method and device of touch screen and electronic equipment
CN113325948B (en) Air-isolated gesture adjusting method and terminal
KR20220157485A (en) Detection result output method, electronic device and medium
CN110457885B (en) Operation method and electronic equipment
US20120206348A1 (en) Display device and method of controlling the same
CN111026263B (en) Audio playing method and electronic equipment
CN109194793B (en) Screen adjusting method and mobile terminal

Legal Events

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

Ref document number: 20846222

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20846222

Country of ref document: EP

Kind code of ref document: A1