WO2021017945A1 - Electronic device control method and apparatus, electronic device, and storage medium - Google Patents

Electronic device control method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2021017945A1
WO2021017945A1 PCT/CN2020/103291 CN2020103291W WO2021017945A1 WO 2021017945 A1 WO2021017945 A1 WO 2021017945A1 CN 2020103291 W CN2020103291 W CN 2020103291W WO 2021017945 A1 WO2021017945 A1 WO 2021017945A1
Authority
WO
WIPO (PCT)
Prior art keywords
ultrasonic
time
signal
reflected
electronic device
Prior art date
Application number
PCT/CN2020/103291
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 WO2021017945A1 publication Critical patent/WO2021017945A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/14Systems for determining distance or velocity not using reflection or reradiation using ultrasonic, sonic, or infrasonic waves
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/02Systems using reflection of radio waves, e.g. primary radar systems; Analogous systems
    • G01S13/50Systems of measurement based on relative movement of target
    • G01S13/505Systems of measurement based on relative movement of target using Doppler effect for determining closest range to a target or corresponding time, e.g. miss-distance indicator
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/043Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using propagating acoustic waves
    • G06F3/0436Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using propagating acoustic waves in which generating transducers and detecting transducers are attached to a single acoustic waves transmission substrate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • This application relates to the technical field of electronic equipment, and more specifically to an electronic equipment control method, device, electronic equipment and storage medium.
  • this application proposes an electronic device control method, device, electronic device, and storage medium, which can control the electronic device without contacting the electronic device to improve the above-mentioned problem.
  • an embodiment of the present application provides an electronic device control method, which is applied to an electronic device, the electronic device includes a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic device, and A second ultrasonic transmitter and a second ultrasonic receiver provided at the second end of the electronic device, the method includes: transmitting a first ultrasonic signal through the first ultrasonic transmitter, and transmitting through the second ultrasonic transmitter The second ultrasonic signal; determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is the first ultrasonic signal reflected by the object that meets the first preset condition Signal; determine the time when the second ultrasonic receiver receives the second target signal as the second time, the second target signal being a signal that meets a second preset condition among the second ultrasonic signals reflected by the object; The control instruction corresponding to the time difference between the first time and the second time; and corresponding operations are performed according to the control instruction.
  • an embodiment of the present application provides an electronic device control device, which is applied to an electronic device, the electronic device including a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic device, and A second ultrasonic transmitter and a second ultrasonic receiver are provided at the second end of the electronic device.
  • the device includes: an ultrasonic transmitter module for transmitting a first ultrasonic signal through the first ultrasonic transmitter and The second ultrasonic transmitter sends a second ultrasonic signal; the first time determining module is used to determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is reflected by an object The first ultrasonic signal that meets the first preset condition; the second time determining module is used to determine the time when the second ultrasonic receiver receives the second target signal as the second time, the second target The signal is a signal that satisfies the second preset condition in the second ultrasonic signal reflected by the object; the instruction acquisition module is used to acquire the control instruction corresponding to the time difference between the first time and the second time; the control module is used to The control instruction executes the corresponding operation.
  • an embodiment of the present application provides an electronic device, including a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic device, and a second ultrasonic wave provided at the second end of the electronic device
  • a transmitter and a second ultrasonic receiver, a memory and a processor the first end is opposite to the second end, the memory, the first ultrasonic transmitter, the first ultrasonic receiver, the second ultrasonic transmitter, and the first Two ultrasonic receivers are coupled to the processor, the first ultrasonic transmitter and the second ultrasonic transmitter are used for transmitting ultrasonic signals, the first ultrasonic receiver and the second ultrasonic receiver are used for receiving ultrasonic signals, the
  • the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above-mentioned method.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the above-mentioned method.
  • Fig. 1 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 shows a schematic diagram of receiving ultrasonic waves from different paths according to an embodiment of the present application.
  • Fig. 3 shows a schematic diagram of an ultrasonic wave sending, receiving and data processing flow provided by an embodiment of the present application.
  • FIG. 4 shows a schematic diagram of an air-space operation provided by an embodiment of the present application.
  • Fig. 5 shows another schematic diagram of an air-space operation provided by an embodiment of the present application.
  • Fig. 6 shows a flow chart of the electronic device control method provided by the embodiment of the present application.
  • FIG. 7 shows another flowchart of the electronic device control method provided by the embodiment of the present application.
  • Figure 8 shows a schematic diagram of the Doppler effect.
  • FIG. 9 shows a schematic diagram of a numerical interval division provided by an embodiment of the present application.
  • Fig. 10 shows a functional module diagram of an electronic device control apparatus provided by an embodiment of the present application.
  • Fig. 11 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 12 is a storage medium for storing or carrying program codes for implementing the electronic device control method according to the embodiment of the present application.
  • the control of the electronic equipment on the basis of not touching the electronic equipment can be achieved by infrared sensors.
  • the infrared sensor has a single infrared emission direction, which must face the front of the screen of the electronic device. It may not be easy to detect the sliding on the front of the screen, which is not conducive to the overall screen layout design, and has certain usage limitations.
  • ultrasonic waves radiate in the form of waves, and the radiation range is relatively wide. It does not need to be completely facing the front of the screen, and the ultrasonic waves can also be sent to the top of the front of the screen. Therefore, in the embodiment of the present application, ultrasonic waves are used to achieve Non-contact control.
  • An ultrasonic transmitter and an ultrasonic receiver can be set in the electronic device.
  • the ultrasonic transmitter is used to transmit ultrasonic waves, that is, the ultrasonic signal in the embodiment of this application; the ultrasonic receiver can receive ultrasonic waves, that is, the ultrasonic signal in the embodiment of this application.
  • the electronic device may include opposite first and second ends.
  • the first end 110 is the bottom of the electronic device 100
  • the second end 120 is the top of the electronic device.
  • the specific ends of the first end 110 and the second end 120 are not limited in the embodiments of the present application.
  • the first end 110 may also be the top of the electronic device 100
  • the second end 120 may be the bottom of the electronic device 100
  • the first end 110 may also be the left end of the electronic device, and the second end 120 may also be the right end of the electronic device.
  • an ultrasonic transmitter 111 and an ultrasonic receiver 112 may be provided at the first end 110.
  • the ultrasonic transmitter at the first end is defined as the first ultrasonic transmitter 111, and the first end
  • the ultrasonic receiver is the first ultrasonic receiver 112.
  • the second end 120 is also provided with an ultrasonic transmitter 121 and an ultrasonic receiver 122.
  • the ultrasonic transmitter at the second end is defined as the second ultrasonic transmitter 121
  • the ultrasonic receiver at the second end is defined as the second ultrasonic wave.
  • the ultrasonic transmitter may be an electronic device's earpiece, horn, special ultrasonic transmitter, etc.
  • the ultrasonic receiver may be a pickup that can receive ultrasonic waves.
  • Electronic equipment transmits ultrasonic waves through the ultrasonic wave transmitter.
  • a part of the ultrasonic waves travels through the air and reaches the ultrasonic receiver (path 1 in Figure 2), and a part of the ultrasonic waves travels through the air and is reflected by obstructions before reaching the ultrasonic receiver (as shown in Figure 2).
  • path 2 the ultrasonic wave sent from the ultrasonic transmitter 111 is blocked by the hand and reflected back to the ultrasonic receiver 112).
  • What the ultrasonic receiver picks up is the superimposed signal of the direct sound and the reflected sound, as shown in Figure 3, which is converted into an audio signal by an A/D converter.
  • the direct sound is the ultrasonic signal that is sent from the ultrasonic transmitter and is directly received by the ultrasonic receiver, as shown in the ultrasonic signal of path 1 in Figure 2.
  • the reflected sound is the ultrasonic signal reflected by the object received by the ultrasonic receiver, as shown in Path 2 in Figure 2. Ultrasonic signal.
  • Electronic equipment can distinguish between direct sound and reflected sound from the ultrasonic signal received by the ultrasonic receiver.
  • the direct sound and the reflected sound can be determined according to time. Specifically, because the distance between the ultrasonic transmitter and the ultrasonic receiver is constant, the propagation speed of ultrasonic waves in the air is basically the same. Therefore, the time required for direct sound to be transmitted from the ultrasonic transmitter to the ultrasonic receiver can be determined in advance and stored . Therefore, the electronic device can determine whether the received ultrasonic wave is direct sound or reflected sound according to the time difference when the ultrasonic wave received by the ultrasonic receiver is sent. If it is a direct sound, the time difference between when the ultrasonic wave is received and when it is transmitted should be equal to the stored time.
  • the direct sound and the reflected sound can be determined according to the frequency.
  • the frequency of the ultrasonic wave reflected to the electronic device is different from the frequency when the ultrasonic wave is transmitted, and the frequency of the direct sound is the same as the frequency when the ultrasonic wave is transmitted. Therefore, if the frequency of the received ultrasonic signal is different from the frequency of the transmitted ultrasonic wave, it is determined as the reflected sound.
  • the direct sound and the reflected sound can be determined according to the phase. Since the ultrasonic wave is received by the receiver after being reflected, it will produce a phase difference relative to the transmitted ultrasonic wave, so according to the phase difference between the received ultrasonic signal and the transmitted difference signal, it is determined whether the received ultrasonic signal is direct sound or reflected sound .
  • the method for distinguishing the direct sound and the reflected sound from the received ultrasonic signal is not limited, and may include one or more of the above-mentioned embodiments, which are merely illustrative.
  • FIG. 2 shows the direct sound and the reflected sound between the first ultrasonic transmitter 111 and the first ultrasonic receiver 112 disposed at the first end 110 of the electronic device.
  • the direct sound and the reflected sound between the second ultrasonic transmitter 121 and the second ultrasonic receiver 122 at the second end 120 are similar to those at the first end, and will not be repeated here.
  • the ultrasonic transmitter and ultrasonic receiver may be configured such that the ultrasonic signal sent by the first ultrasonic transmitter cannot reach the second ultrasonic receiver directly, and the ultrasonic signal sent by the second ultrasonic transmitter cannot Directly to the first ultrasonic receiver; the ultrasonic signal sent by the first ultrasonic transmitter cannot be reflected to the second ultrasonic receiver, and the ultrasonic signal sent by the second ultrasonic transmitter cannot be reflected to the first ultrasonic receiver.
  • the direct sound can also be distinguished from the reflected sound reflected by the obstruction according to conditions such as time, frequency, and phase.
  • the second ultrasonic receiver can receive the direct sound sent by the first ultrasonic transmitter, the direct sound can also be distinguished from the reflected sound reflected by the obstruction according to conditions such as time, frequency, and phase.
  • the first ultrasonic transmitter and the second ultrasonic transmitter transmit ultrasonic waves of different frequencies, and the different frequencies cannot be the frequency of the reflected ultrasonic waves.
  • the transmission of the first ultrasonic transmitter and the second ultrasonic transmitter are different
  • the frequency of the ultrasonic wave, and the different frequency cannot be the frequency of the reflected ultrasonic wave. Therefore, according to the frequency of the received ultrasonic signal, the ultrasonic signal received by the first ultrasonic receiver can be directly included in the ultrasonic signal sent by the second ultrasonic transmitter.
  • the signal and the reflected ultrasonic signal of the second ultrasonic transmitter are eliminated, directly eliminating the ultrasonic signal sent by the first ultrasonic transmitter and the reflected ultrasonic signal of the first ultrasonic transmitter from the ultrasonic signal received by the second ultrasonic receiver.
  • the first ultrasonic receiver and the second ultrasonic receiver can receive the object reflection
  • the return signal can be used to determine the sliding direction and sliding action of the object based on the signal, and determine the corresponding control method.
  • the embodiments of the present application provide an electronic device control method, device, electronic device, and storage medium to implement non-contact control of the electronic device. The following describes in detail the electronic device control method of the embodiment of the present application.
  • FIG. 6 shows a flowchart of an electronic device control method provided by an embodiment of the present application, and the electronic device control method is applied to an electronic device.
  • the electronic device control method includes:
  • Step S110 Send a first ultrasonic signal through the first ultrasonic transmitter, and send a second ultrasonic signal through the second ultrasonic transmitter.
  • the electronic device can control the ultrasonic transmitter to send signals and receive the signals through the ultrasonic receiver.
  • the first ultrasonic transmitter can be controlled to send ultrasonic signals
  • the second ultrasonic transmitter can be controlled to send ultrasonic signals. Define the ultrasonic signal sent by the first ultrasonic transmitter as the first ultrasonic signal, and define the ultrasonic signal sent by the second ultrasonic transmitter as the second ultrasonic signal.
  • the two ultrasonic transmitters may continuously transmit ultrasonic signals, or may transmit ultrasonic signals at high frequency intervals.
  • the specific frequency of the high frequency may be that the transmission time interval of two adjacent ultrasonic signals in time is greater than the time required for direct sound from transmission to reception, and less than the time required for direct sound from transmission to reception. Twice the time required to receive. Therefore, the direct sound and the reflected sound can be distinguished according to time, and because the time required for the direct sound from transmission to reception is very small and the ultrasonic signal transmission frequency is high, the ultrasonic signal reflected by the object can be detected in time.
  • Step S120 Determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is a signal that meets a first preset condition among the first ultrasonic signals reflected by the object.
  • the first ultrasonic signal sent by the first ultrasonic transmitter can be reflected and received by the first ultrasonic receiver.
  • a signal satisfying the first preset condition among the first ultrasonic signals reflected by the object is used as the first target signal.
  • the signal satisfying the first preset condition may represent the signal reflected back when the object slides over the first ultrasonic receiver just above the screen.
  • the specific method for the electronic device to identify the direct ultrasonic signal and the reflected ultrasonic signal can refer to the foregoing embodiment, and details are not described herein again.
  • the object slides over the screen of the electronic device that is, slides across the screen in a direction that is directly opposite to the screen of the electronic device.
  • the first time is the time when the first target signal is received.
  • Step S130 Determine the time when the second ultrasonic receiver receives the second target signal as the second time, and the second target signal is a signal that meets a second preset condition among the second ultrasonic signals reflected by the object.
  • the second ultrasonic signal sent by the second ultrasonic transmitter may be reflected and received by the second ultrasonic receiver.
  • a signal that meets the second preset condition among the second ultrasonic signals reflected by the object is used as the second target signal.
  • the signal satisfying the second preset condition may represent the signal reflected back when the object slides over the second ultrasonic receiver just above the screen.
  • the time when the second target signal is received is regarded as the second time.
  • the ultrasonic signal sent by the first ultrasonic transmitter cannot be reflected to the second ultrasonic receiver, and the ultrasonic signal sent by the second ultrasonic transmitter cannot be reflected to the first ultrasonic receiver, then the reflection received by the first ultrasonic receiver The sound is used as the received reflected first ultrasonic signal; the reflected sound received by the second ultrasonic receiver is used as the received reflected second ultrasonic signal. If the first ultrasonic receiver can receive the reflected second signal, if the second ultrasonic receiver can receive the reflected first ultrasonic signal, the first ultrasonic signal and the second ultrasonic signal can be set to different frequencies Ultrasonic signal.
  • This difference in frequency makes the first ultrasonic signal and the second ultrasonic signal reflected even if the frequency of the reflected first ultrasonic signal is different from the second ultrasonic signal and the reflected second ultrasonic signal.
  • the reflected second ultrasonic signal The frequency of the signal is different from the first ultrasonic signal and the reflected first ultrasonic signal, so that it can be determined whether the reflected ultrasonic signal is the first ultrasonic signal or the second ultrasonic signal according to the frequency of the received ultrasonic wave.
  • Step S140 Obtain a control instruction corresponding to the time difference between the first time and the second time.
  • Step S150 Perform a corresponding operation according to the control instruction.
  • the time difference between the first time and the second time reflects whether the object continuously slides over the screen of the electronic device, and can reflect the sliding speed and the sliding direction. Therefore, the corresponding instruction can be determined according to the time difference, so as to execute the corresponding operation according to the instruction, so as to realize the control of the electronic device.
  • the ultrasonic waves sent by the first ultrasonic transmitter and the second ultrasonic transmitter are reflected. Therefore, the receiving time of the reflected ultrasonic wave can be determined, and the corresponding control instruction can be determined according to the time difference between the first time and the second time, and the operation can be performed according to the control instruction to realize the electronic device without contacting the electronic device. Control of equipment.
  • the present application also provides an embodiment, in which the embodiment includes a method for specifically determining and operating a control instruction according to the time difference.
  • the method provided in this embodiment includes:
  • Step S210 Send a first ultrasonic signal through the first ultrasonic transmitter, and send a second ultrasonic signal through the second ultrasonic transmitter.
  • Step S220 Determine the time when the first ultrasonic receiver receives the first target signal as the first time.
  • the first target signal is a signal that meets a first preset condition among the first ultrasonic signals reflected by the object.
  • Step S230 Determine the time when the second ultrasonic receiver receives the second target signal as the second time, where the second target signal is a signal that meets a second preset condition among the second ultrasonic signals reflected by the object.
  • the first target signal that satisfies the first preset condition is determined from the reflected signals received by the first ultrasonic receiver, and the first target signal that satisfies the second preset condition is determined from the reflected signals received by the second ultrasonic receiver.
  • the reflected signal received by the first ultrasonic receiver is a signal of the first ultrasonic signal reflected by the object;
  • the reflected signal received by the second ultrasonic receiver is a signal of the second ultrasonic signal reflected by the object.
  • the first target signal may be the signal that the first ultrasonic signal is reflected back when the object slides over the first ultrasonic receiver;
  • the second target signal may be the object slide.
  • the second ultrasonic signal is reflected back when passing over the second ultrasonic receiver.
  • the object slides through the first end and the second end in sequence (as shown in Figure 4), or slides over the second end and the first end in sequence (as shown in Figure 5)
  • the object slides over the first end of the electronic device, it will be the closest to the first ultrasonic receiver when it passes over the first ultrasonic receiver; when the object slides over the second end, When sliding over the second ultrasonic receiver, it is closest to the second ultrasonic receiver.
  • the first ultrasonic signal reflected by the object may be determined from the first ultrasonic signal received by the first ultrasonic receiver when the object is closest to the first ultrasonic receiver, As the first target signal. From the second ultrasonic signal reflected by the object received by the second ultrasonic receiver, the second ultrasonic signal reflected when the object is closest to the second ultrasonic receiver may be determined as the second target signal.
  • the distance of the object corresponding to each reflection signal is calculated according to the received reflection signal, that is, the distance between the object and the ultrasonic receiver when each reflection signal is reflected by the object is calculated.
  • the specific calculation method is not limited in the embodiment of the present application.
  • the ultrasonic transmitter and the ultrasonic receiver provided at a certain end are used as an example for description.
  • the method of calculating the distance of the object corresponding to the reflected signal may be a time difference method.
  • the ultrasonic transmitter and the ultrasonic receiver on the same end are set up close, the ultrasonic transmitter of the electronic device sends ultrasonic signals at intervals, and the ultrasonic receiver of the electronic device receives the reflected signal.
  • the time when the reflected signal is sent The length of time between the received time and the propagation speed of the ultrasonic wave in the air can be calculated to obtain the physical distance corresponding to the reflected signal from the ultrasonic receiver.
  • the distance of the object can also be calculated according to the phase difference method.
  • the ultrasonic transmitter of the electronic device sends the ultrasonic signal, and the ultrasonic transmitter receives the reflected signal.
  • the phase difference caused by the ultrasonic wave reaching the ultrasonic receiver after reflection is determined, according to the phase difference To determine the relative distance between the object and the mobile terminal.
  • the distance of the object corresponding to each reflected signal of the first ultrasonic signal received by the first ultrasonic receiver can be calculated to obtain the first ultrasonic signal reflected back when the object is closest to the first ultrasonic receiver.
  • the first target signal As the first target signal.
  • the time when the first ultrasonic receiver receives the first target signal can be acquired as the first time.
  • the distance of the object corresponding to each reflected signal of the second ultrasonic signal received by the second ultrasonic receiver can also be calculated, so as to obtain the second ultrasonic signal reflected back when the object is closest to the second ultrasonic receiver.
  • the second target signal As the second target signal.
  • the time when the second ultrasonic receiver receives the second target signal can be acquired as the second time.
  • the Doppler effect shown in Figure 8 when an object (such as the observer in Figure 8) moves closer to the ultrasonic transmitter (the sound source in Figure 8), the object received by the ultrasonic receiver The frequency of the reflected ultrasonic wave becomes larger than the original frequency of the ultrasonic wave, and the higher the moving speed of the object, the higher the frequency of the reflected ultrasonic wave.
  • the frequency of the ultrasonic wave reflected by the object received by the ultrasonic receiver decreases relative to the original frequency of the ultrasonic wave, and the greater the object moving speed, the higher the frequency of the reflected ultrasonic wave. low.
  • the object slides past the first end and the second end sequentially, or when the object slides past the second end and the first end sequentially, During the process above an ultrasonic receiver, the object first approaches and then moves away from the first ultrasonic receiver, so that the frequency of the reflected signal received by the first ultrasonic receiver will first be greater than the transmit frequency and then less than the transmit frequency; the object slides over the second ultrasonic wave During the process above the receiver, the object first approaches and then moves away from the second ultrasonic receiver, so that the frequency of the reflected signal received by the second ultrasonic receiver is first greater than the transmit frequency and then less than the transmit frequency.
  • the transmission frequency is the frequency of the transmitted ultrasonic wave.
  • the first ultrasonic transmitter transmits the ultrasonic signal of the first frequency
  • the second ultrasonic transmitter transmits the ultrasonic signal of the second frequency.
  • the first ultrasonic signal with a frequency lower than the first frequency can be determined from the first ultrasonic signal received by the first ultrasonic receiver and reflected back by the object as the first target signal; received from the second ultrasonic receiver Among the received second ultrasonic signals reflected back by the object, the determined second ultrasonic signal with a first frequency lower than the second frequency is used as the second target signal.
  • the first frequency and the second frequency may be the same or different.
  • the first frequency can be set to a frequency that cannot be reflected by the user's operation of the ultrasonic wave of the first frequency
  • the second frequency can also be set to be that the ultrasonic wave of the second frequency cannot be operated by the user. The frequency of reflections.
  • the frequency of the ultrasonic signal reflected by the object starts to be lower than the first frequency. Therefore, when a first ultrasonic signal with a first frequency lower than the first frequency is received, it indicates that the object has just passed the first ultrasonic receiver at this time, and the ultrasonic signal can be used as the first target signal. In addition, the time when the first target signal is received by the first ultrasonic receiver can be acquired as the first time.
  • the frequency of the second ultrasonic signal reflected by the object starts to be lower than the second frequency. Therefore, when a second ultrasonic signal with a first frequency lower than the second frequency is received, it indicates that the object just slipped through the second ultrasonic receiver at this time, and the ultrasonic signal can be used as the second target signal. In addition, the time when the second target signal is received by the second ultrasonic receiver can be acquired as the second time.
  • the first ultrasonic signal with the highest frequency can be determined from the first ultrasonic signal received by the first ultrasonic receiver and reflected back by the object as the first target signal. And obtain the receiving time of the first target signal as the first time.
  • the electronic device determines the reflection signal with the highest frequency among the reflection signals of the first ultrasonic signal received by the first ultrasonic receiver as the first target signal.
  • the second ultrasonic signal with the highest frequency can be determined from the second ultrasonic signal reflected by the object received by the second ultrasonic receiver as the second target signal. Acquire the receiving time of the second target signal as the second time.
  • the electronic device determines the reflection signal with the highest frequency among the reflection signals of the second ultrasonic signal received by the second ultrasonic receiver as the second target signal.
  • Step S240 Determine the numerical interval of the difference value of the first time minus the second time. If the difference value belongs to a positive value interval, step S250 is executed; if the difference value belongs to a negative value interval, step S260 is executed.
  • Step S250 Perform a page turning operation in the first direction on the currently displayed content.
  • Step S260 Perform a page turning operation in the second direction on the currently displayed content.
  • the second direction is opposite to the first direction.
  • the control instruction corresponding to the time difference between the first time and the second time can be acquired, and corresponding operations can be performed according to the control instruction.
  • the first time is obtained first, and then the second time is obtained.
  • the difference between the first time and the second time The value is a negative value; when the object shown in Figure 5 (the hand in the figure) slides from the second end to the first end, the second time is first obtained, and then the first time is obtained.
  • the first time and the first time The difference between the two times is a positive value. Therefore, the sliding direction of the object can be determined according to the numerical interval to which the difference belongs to determine the control command.
  • a numerical interval is pre-stored, and the stored numerical interval includes a positive interval and a negative interval, the value of the positive interval is greater than 0, and the value of the negative interval is less than 0.
  • T1 represents the first time
  • T2 represents the second time
  • T represents the difference between the first time and the second time, that is, the time difference between the first time and the second time.
  • t1 represents a negative interval
  • t2 represents a positive interval
  • t0 represents a near-zero interval
  • the ordinate represents the probability of each corresponding time difference occurring within the statistical times.
  • the difference After obtaining the difference between the first time and the second time, if the difference is less than 0, it can be determined whether the difference is in the negative interval. If it is not in the negative interval, it means that the sliding process of the object corresponding to the first time and the second time may be invalid sliding, and no corresponding control will be performed; if the difference is in the negative interval, it means the object is sliding from the first end to the second The end, as shown in Figure 4, is effectively sliding. It can be determined that the instruction generated by the user's current sliding operation is a page turning instruction in the second direction, and the page turning operation in the second direction is performed on the currently displayed content.
  • the difference between the first time and the second time is greater than 0, it can be determined whether the difference is within a positive interval. If it is not in the positive interval, it means that the sliding process of the object corresponding to the first time and the second time may be invalid sliding, and no corresponding control will be performed; if the difference is in the positive interval, it means that the object slides from the second end to the first The end, as shown in Figure 5, is effectively sliding. It can be determined that the instruction generated by the user's current sliding operation is a page turning instruction in the first direction, and the page turning operation in the first direction is performed on the currently displayed content.
  • the first direction and the second direction are directions opposite to each other.
  • the first direction may be the direction from the second end of the electronic device to the first end
  • the second direction may be the first end of the electronic device The direction to the second end.
  • performing a page turning operation in the first direction on the currently displayed content and performing a page turning operation in the second direction on the currently displayed content may be determined according to the function of the application corresponding to the currently displayed content. For example, if the currently displayed page is the reading page of the reading software, the page turning operation in the first direction can be to turn the reading content in the first direction, or to the previous page; the page turning operation in the second direction can be Read the content to turn the page in the second direction, or turn to the next page, etc.
  • the page turning operation in the first direction can be to switch the video in the first direction, or switch to the previous video; the page turning operation in the second direction It can switch the video in the second direction, or switch to the next video.
  • the numerical interval may also include a near-zero interval t0 as shown in FIG. 9, which is a preset value smaller than zero to a preset value larger than zero.
  • the interval formed by the data in between, the positive interval is an interval formed by numerical values outside the near zero interval and greater than zero, and the negative interval is an interval formed by numerical values outside the near zero interval and smaller than zero.
  • the near-zero interval indicates that the time when the first ultrasonic receiver receives the first target signal and the second ultrasonic receiver receives the second target signal are close, and the time difference is about zero. If an object (such as the user's palm) is pressed toward the screen from a position that is roughly parallel to the screen and a certain distance from the screen, that is, keep the palm and the screen basically parallel to the screen, it can be detected that the difference between the first time and the second time is close Zero interval.
  • an object such as the user's palm
  • control commands corresponding to different numerical ranges are not limited, and may be other.
  • an instruction table is stored corresponding to different application programs, and the instruction table represents the control instructions of the application program corresponding to each numerical interval. You can determine the numerical range of the difference between the first time and the second time. After determining the numerical range of the difference between the first time and the second time, look up the numerical range of the difference in the instruction table corresponding to the application running in the foreground The corresponding control instruction executes the corresponding operation according to the found control instruction.
  • the first time when the object passes the first end and the second time when the object passes the second end can be acquired. Determine whether it is a valid sliding operation according to the time difference between the first time and the second time, and the sliding direction in the case of a valid sliding operation, determine the corresponding control command according to the sliding direction, and execute the operation corresponding to the control command to achieve The control of electronic devices without touching them.
  • the embodiment of the present application also provides an electronic device control apparatus 300.
  • the device 300 is applied to electronic equipment, which includes a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic equipment, and a second ultrasonic transmitter provided at the second end of the electronic equipment And the second ultrasonic receiver, the first end and the second end may be opposite ends.
  • the device 300 includes an ultrasonic sending module 310, a first time determining module 320, a second time determining module 330, an instruction obtaining module 340, and a control module 350.
  • the ultrasonic transmitting module 310 is configured to transmit a first ultrasonic signal through the first ultrasonic transmitter, and transmit a second ultrasonic signal through the second ultrasonic transmitter.
  • the first time determining module 320 is configured to determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is the first ultrasonic signal reflected by the object that satisfies the first Signals with preset conditions.
  • the second time determining module 330 is configured to determine the time when the second ultrasonic receiver receives the second target signal as the second time, and the second target signal is the second ultrasonic signal reflected by the object that satisfies the second Signals with preset conditions.
  • the instruction acquisition module 340 is configured to acquire a control instruction corresponding to the time difference between the first time and the second time.
  • the control module 350 is configured to perform corresponding operations according to the control instructions.
  • the instruction acquisition module 340 and the control module 350 may be integrated into one module, which is used to determine the value interval of the difference value of the first time minus the second time; if the difference value belongs to the positive value interval, Perform a page turning operation in a first direction for the currently displayed content; if the difference is in a negative interval, perform a page turning operation in a second direction for the currently displayed content, the second direction being opposite to the first direction.
  • the first direction may be a direction from the second end of the electronic device to the first end
  • the second direction may be a direction from the first end of the electronic device to the The direction of the second end.
  • the numerical interval may also include a near-zero interval, the near-zero interval being an interval formed by data from a preset value smaller than zero to a preset value greater than zero, and the positive value interval is near zero An interval formed by a numeric value outside the interval and greater than zero, and the negative interval is an interval formed by a numeric value outside the near-zero interval and smaller than zero.
  • the instruction acquisition module 340 and the control module 350 can be integrated into one module, which is used to switch the currently displayed video from playing to pause or from pause to playing if the difference is within the near-zero interval.
  • the first time determining module 320 may be configured to determine the ultrasonic signal with the highest frequency among the first ultrasonic signals reflected by the object received by the first ultrasonic receiver, as the first target signal; The receiving time of the target signal is regarded as the first time.
  • the second time determining module 330 may be used to determine the ultrasonic signal with the highest frequency from the second ultrasonic signal reflected by the object received by the second ultrasonic receiver, as the second target signal; to obtain the reception of the second target signal Time as the second time.
  • the first frequency ultrasonic signal sent by the first ultrasonic transmitter may be used to determine the first ultrasonic signal with a frequency lower than the first frequency from the first ultrasonic signal received by the first ultrasonic receiver and reflected back by the object as the first target signal ; Acquire the receiving time of the first target signal as the first time.
  • the second time determining module 330 may be used to determine the first ultrasonic signal with a frequency lower than the second frequency from the second ultrasonic signal received by the second ultrasonic receiver and reflected back by the object as the second target signal ; Acquire the receiving time of the second target signal as the second time.
  • the first time determining module 320 may be used to determine the ultrasonic wave reflected when the object is closest to the first ultrasonic receiver from the first ultrasonic signal received by the first ultrasonic receiver and reflected back by the object
  • the signal is used as the first target signal; the receiving time of the first target signal is acquired as the first time.
  • the second time determining module 330 may be used to determine the ultrasonic signal reflected when the object is closest to the second ultrasonic receiver from the second ultrasonic signal received by the second ultrasonic receiver and reflected back by the object, as the second ultrasonic signal Two target signals; acquiring the receiving time of the second target signal as the second time.
  • the electronic device when the electronic device is used, the electronic device can be operated in an empty space.
  • the mobile phone when the mobile phone is playing a video, the mobile phone can be operated in an empty space to switch the video playback top and bottom by sliding.
  • it increases the sense of technology and interest.
  • it can solve the user's inconvenience to operate when touching the screen, for example, it is inconvenient to touch the screen (when eating crayfish) with dirty things on the hand, which can assist in controlling the mobile phone.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • Various implementation modes in the embodiments of the present application may be implemented by corresponding modules, and the corresponding descriptions are not repeated in the embodiments of the present application.
  • FIG. 11 shows a structural block diagram of an electronic device 700 according to an embodiment of the present application.
  • the electronic device 700 may be an electronic device such as a mobile phone, a tablet computer, or an e-book.
  • the electronic device 700 includes a memory 710, a processor 720, a first ultrasonic transmitter 730, a first ultrasonic receiver 740, a second ultrasonic transmitter 750, and a second ultrasonic receiver 760.
  • the memory 710, the first ultrasonic transmitter 730, the first ultrasonic receiver 740, the second ultrasonic transmitter 750, and the second ultrasonic receiver 760 are coupled to the processor 720.
  • the first ultrasonic transmitter 730 and the second ultrasonic transmitter 750 are used for transmitting ultrasonic signals
  • the first ultrasonic receiver 740 and the second ultrasonic receiver 760 are used for receiving ultrasonic signals
  • the memory 710 stores instructions.
  • the processor 720 executes the method described in one or more embodiments above.
  • the processor 720 may include one or more processing cores.
  • the processor 720 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 710, and calling data stored in the memory 710.
  • the processor 720 may adopt 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 720 may be integrated with one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • 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 720, but may be implemented by a communication chip alone.
  • the memory 710 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 710 may be used to store instructions, programs, codes, code sets or instruction sets, such as instructions or code sets used to implement the electronic device control method provided in the embodiments of the present application.
  • the memory 710 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing each of the foregoing method embodiments, and the like.
  • the storage data area can also be data created by the electronic device in use (such as phone book, audio and video data, chat record data), etc.
  • FIG. 12 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable storage medium 800 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 800 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 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has a storage space for the program code 810 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 810 may be compressed in a suitable form, for example.

Abstract

Disclosed in the present application are an electronic device control method and apparatus, an electronic device, and a storage medium. The method comprises: transmitting a first ultrasonic signal by means of a first ultrasonic transmitter, and transmitting a second ultrasonic signal by means of a second ultrasonic transmitter; determining a time when a first ultrasonic receiver receives a first target signal as a first time, wherein the first target signal a signal meeting a first preset condition in first ultrasonic signals reflected back by an object; determining the time when a second ultrasonic receiver receives a second target signal as a second time, wherein the second target signal is a signal meeting a second preset condition in second ultrasonic signals reflected back by the object; obtaining a control instruction corresponding to a time difference between the first time and the second time; and according to the control instruction, performing a corresponding operation. The solution can perform control on the electronic device without being in contact with the electronic device.

Description

电子设备控制方法、装置、电子设备及存储介质Electronic equipment control method, device, electronic equipment and storage medium
本申请要求于2019年7月31日提交的申请号为201910701497.2的中国专利申请的优先权,在此通过引用将其全部内容并入本文。This application claims the priority of the Chinese patent application with the application number 201910701497.2 filed on July 31, 2019, and the entire content of which is incorporated herein by reference.
技术领域Technical field
本申请涉及电子设备技术领域,更具体地,涉及一种电子设备控制方法、装置、电子设备及存储介质。This application relates to the technical field of electronic equipment, and more specifically to an electronic equipment control method, device, electronic equipment and storage medium.
背景技术Background technique
在对电子设备进行控制时,需要与电子设备进行接触,例如触控电子设备的触摸屏屏幕、触控电子设备的物理按键等。但是,在某些场景下,用户可能不方便触控电子设备,从而在基于触控的控制下使用不便。When controlling an electronic device, it needs to make contact with the electronic device, such as a touch screen of a touch electronic device, a physical button of a touch electronic device, and so on. However, in some scenarios, it may be inconvenient for the user to touch the electronic device, which makes it inconvenient to use under touch-based control.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种电子设备控制方法、装置、电子设备及存储介质,可以在不接触电子设备的基础上对电子设备进行控制,以改善上述问题。In view of the above-mentioned problems, this application proposes an electronic device control method, device, electronic device, and storage medium, which can control the electronic device without contacting the electronic device to improve the above-mentioned problem.
第一方面,本申请实施例提供了一种电子设备控制方法,应用于电子设备,所述电子设备包括设置于所述电子设备第一端的第一超声波发送器以及第一超声波接收器,和设置于所述电子设备第二端的第二超声波发送器以及第二超声波接收器,所述方法包括:通过所述第一超声波发送器发送第一超声波信号,以及通过所述第二超声波发送器发送第二超声波信号;确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间,所述第一目标信号为被物体反射回的第一超声波信号中满足第一预设条件的信号;确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,所述第二目标信号为被物体反射回的第二超声波信号中满足第二预设条件的信号;获取所述第一时间以及第二时间的时间差对应的控制指令;根据所述控制指令执行对应的操作。In the first aspect, an embodiment of the present application provides an electronic device control method, which is applied to an electronic device, the electronic device includes a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic device, and A second ultrasonic transmitter and a second ultrasonic receiver provided at the second end of the electronic device, the method includes: transmitting a first ultrasonic signal through the first ultrasonic transmitter, and transmitting through the second ultrasonic transmitter The second ultrasonic signal; determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is the first ultrasonic signal reflected by the object that meets the first preset condition Signal; determine the time when the second ultrasonic receiver receives the second target signal as the second time, the second target signal being a signal that meets a second preset condition among the second ultrasonic signals reflected by the object; The control instruction corresponding to the time difference between the first time and the second time; and corresponding operations are performed according to the control instruction.
第二方面,本申请实施例提供了一种电子设备控制装置,应用于电子设备,所述电子设备包括设置于所述电子设备第一端的第一超声波发送器以及第一超声波接收器,和设置于所述电子设备第二端的第二超声波发送器以及第二超声波接收器,所述装置包括:超声波发送模块,用于通过所述第一超声波发送器发送第一超声波信号,以及通过所述第二超声波发送器发送第二超声波信号;第一时间确定模块,用于确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间,所述第一目标信号为被物体反射回的第一超声波信号中满足第一预设条件的信号;第二时间确定模块,用于确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,所述第二目标信号为被物体反射回的第二超声波信号中满足第二预设条件的信号;指令获取模块,用于获取所述第一时间以及第二时间的时间差对应的控制指令;控制模块,用于根据所述控制指令执行对应的操作。In a second aspect, an embodiment of the present application provides an electronic device control device, which is applied to an electronic device, the electronic device including a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic device, and A second ultrasonic transmitter and a second ultrasonic receiver are provided at the second end of the electronic device. The device includes: an ultrasonic transmitter module for transmitting a first ultrasonic signal through the first ultrasonic transmitter and The second ultrasonic transmitter sends a second ultrasonic signal; the first time determining module is used to determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is reflected by an object The first ultrasonic signal that meets the first preset condition; the second time determining module is used to determine the time when the second ultrasonic receiver receives the second target signal as the second time, the second target The signal is a signal that satisfies the second preset condition in the second ultrasonic signal reflected by the object; the instruction acquisition module is used to acquire the control instruction corresponding to the time difference between the first time and the second time; the control module is used to The control instruction executes the corresponding operation.
第三方面,本申请实施例提供了一种电子设备,包括设置于所述电子设备第一端的 第一超声波发送器以及第一超声波接收器,设置于所述电子设备第二端的第二超声波发送器以及第二超声波接收器,存储器以及处理器,所述第一端和所述第二端相对,所述存储器、第一超声波发送器、第一超声波接收器、第二超声波发送器以及第二超声波接收器耦接到所述处理器,所述第一超声波发送器以及第二超声波发送器用于发送超声波信号,所述第一超声波接收器以及第二超声波接收器用于接收超声波信号,所述存储器存储指令,当所述指令由所述处理器执行时,所述处理器执行上述的方法。In a third aspect, an embodiment of the present application provides an electronic device, including a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic device, and a second ultrasonic wave provided at the second end of the electronic device A transmitter and a second ultrasonic receiver, a memory and a processor, the first end is opposite to the second end, the memory, the first ultrasonic transmitter, the first ultrasonic receiver, the second ultrasonic transmitter, and the first Two ultrasonic receivers are coupled to the processor, the first ultrasonic transmitter and the second ultrasonic transmitter are used for transmitting ultrasonic signals, the first ultrasonic receiver and the second ultrasonic receiver are used for receiving ultrasonic signals, the The memory stores instructions, and when the instructions are executed by the processor, the processor executes the above-mentioned method.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the above-mentioned method.
附图说明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 structural diagram of an electronic device provided by an embodiment of the present application.
图2示出了本申请实施例提供的一种接收不同路径超声波的示意图。FIG. 2 shows a schematic diagram of receiving ultrasonic waves from different paths according to an embodiment of the present application.
图3示出了本申请实施例提供的超声波发送、接收和数据处理流程示意图。Fig. 3 shows a schematic diagram of an ultrasonic wave sending, receiving and data processing flow provided by an embodiment of the present application.
图4示出了本申请实施例提供的一种隔空操作示意图。FIG. 4 shows a schematic diagram of an air-space operation provided by an embodiment of the present application.
图5示出了本申请实施例提供的另一种隔空操作示意图。Fig. 5 shows another schematic diagram of an air-space operation provided by an embodiment of the present application.
图6示出了本申请实施例提供的电子设备控制方法的一种流程图。Fig. 6 shows a flow chart of the electronic device control method provided by the embodiment of the present application.
图7示出了本申请实施例提供的电子设备控制方法的另一种流程图。FIG. 7 shows another flowchart of the electronic device control method provided by the embodiment of the present application.
图8示出了多普勒效应的一种示意图。Figure 8 shows a schematic diagram of the Doppler effect.
图9示出了本申请实施例提供的一种数值区间划分示意图。FIG. 9 shows a schematic diagram of a numerical interval division provided by an embodiment of the present application.
图10示出了本申请实施例提供的电子设备控制装置的功能模块图。Fig. 10 shows a functional module diagram of an electronic device control apparatus provided by an embodiment of the present application.
图11示出了本申请实施例提供的电子设备的结构框图。Fig. 11 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
图12是本申请实施例的用于保存或者携带实现根据本申请实施例的电子设备控制方法的程序代码的存储介质。Fig. 12 is a storage medium for storing or carrying program codes for implementing the electronic device control 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.
在不接触电子设备的基础上对电子设备进行控制,可以通过红外传感器实现。但是红外传感器的红外线发射方向单一,从而必须朝向电子设备屏幕的正面,可能不容易检测到在屏幕正面上方的滑动,也不利于全面屏幕的布局设计,有一定的使用局限性。The control of the electronic equipment on the basis of not touching the electronic equipment can be achieved by infrared sensors. However, the infrared sensor has a single infrared emission direction, which must face the front of the screen of the electronic device. It may not be easy to detect the sliding on the front of the screen, which is not conducive to the overall screen layout design, and has certain usage limitations.
由于超声波作为一种声波,以波的形式辐射,辐射范围较为宽广,不必要求完全朝向屏幕正面,也可以将超声波发送到屏幕正面上方,因此,在本申请实施例中,通过超声波实现对电子设备的非接触控制。As a kind of sound wave, ultrasonic waves radiate in the form of waves, and the radiation range is relatively wide. It does not need to be completely facing the front of the screen, and the ultrasonic waves can also be sent to the top of the front of the screen. Therefore, in the embodiment of the present application, ultrasonic waves are used to achieve Non-contact control.
在电子设备中可以设置超声波发送器以及超声波接收器,其中,超声波发送器用于发送超声波,即本申请实施例中的超声波信号;超声波接收器可以接收超声波,即本申请实 施例中的超声波信号。An ultrasonic transmitter and an ultrasonic receiver can be set in the electronic device. The ultrasonic transmitter is used to transmit ultrasonic waves, that is, the ultrasonic signal in the embodiment of this application; the ultrasonic receiver can receive ultrasonic waves, that is, the ultrasonic signal in the embodiment of this application.
在本申请实施例中,电子设备可以包括相对的第一端以及第二端,例如,如图1所示,第一端110为电子设备100的底部,第二端120为电子设备的顶部。当然,第一端110以及第二端120具体为哪一端在本申请实施例中并不限定,例如第一端110也可以为电子设备100的顶部,第二端120可以为电子设备100的底部;第一端110也可以是电子设备的左侧端,第二端120也可以为电子设备的右侧端等。In the embodiment of the present application, the electronic device may include opposite first and second ends. For example, as shown in FIG. 1, the first end 110 is the bottom of the electronic device 100, and the second end 120 is the top of the electronic device. Of course, the specific ends of the first end 110 and the second end 120 are not limited in the embodiments of the present application. For example, the first end 110 may also be the top of the electronic device 100, and the second end 120 may be the bottom of the electronic device 100. The first end 110 may also be the left end of the electronic device, and the second end 120 may also be the right end of the electronic device.
如图1所示,在第一端110可以设置有超声波发送器111以及超声波接收器112,本申请实施例中,定义第一端的超声波发送器为第一超声波发送器111,定义第一端的超声波接收器为第一超声波接收器112。在第二端120也设置有超声波发送器121以及超声波接收器122,本申请实施例中,定义第二端的超声波发送器为第二超声波发送器121,定义第二端的超声波接收器为第二超声波接收器122。As shown in FIG. 1, an ultrasonic transmitter 111 and an ultrasonic receiver 112 may be provided at the first end 110. In the embodiment of the present application, the ultrasonic transmitter at the first end is defined as the first ultrasonic transmitter 111, and the first end The ultrasonic receiver is the first ultrasonic receiver 112. The second end 120 is also provided with an ultrasonic transmitter 121 and an ultrasonic receiver 122. In the embodiment of the present application, the ultrasonic transmitter at the second end is defined as the second ultrasonic transmitter 121, and the ultrasonic receiver at the second end is defined as the second ultrasonic wave. Receiver 122.
其中,超声波发送器可以是电子设备的听筒、喇叭、专用超声波发射器等,超声波接收器可以是可以接收超声波的拾音器。Among them, the ultrasonic transmitter may be an electronic device's earpiece, horn, special ultrasonic transmitter, etc., and the ultrasonic receiver may be a pickup that can receive ultrasonic waves.
电子设备通过超射波发送器发射超声波,一部分超声波通过空气传播直达超声波接收器(如图2的路径1),一部分超声波通过空气传播与遮挡物形成反射后再到达超声波接收器(如图2的路径2中,从超声波发射器111发送的超声波,被手部遮挡后反射回超声波接收器112)。超声波接收器拾取到的是直达声和反射声的叠加信号,如图3所示,经过A/D转换器转化为音频信号。其中直达声即从超声波发送器发送直接被超声波接收器接收的超声波信号,如图2路径1的超声波信号;反射声即超声波接收器接收到的由物体反射的超声波信号,如图2中路径2的超声波信号。Electronic equipment transmits ultrasonic waves through the ultrasonic wave transmitter. A part of the ultrasonic waves travels through the air and reaches the ultrasonic receiver (path 1 in Figure 2), and a part of the ultrasonic waves travels through the air and is reflected by obstructions before reaching the ultrasonic receiver (as shown in Figure 2). In path 2, the ultrasonic wave sent from the ultrasonic transmitter 111 is blocked by the hand and reflected back to the ultrasonic receiver 112). What the ultrasonic receiver picks up is the superimposed signal of the direct sound and the reflected sound, as shown in Figure 3, which is converted into an audio signal by an A/D converter. The direct sound is the ultrasonic signal that is sent from the ultrasonic transmitter and is directly received by the ultrasonic receiver, as shown in the ultrasonic signal of path 1 in Figure 2. The reflected sound is the ultrasonic signal reflected by the object received by the ultrasonic receiver, as shown in Path 2 in Figure 2. Ultrasonic signal.
电子设备可以从超声波接收器接收到的超声波信号中分辨出直达声和反射声。Electronic equipment can distinguish between direct sound and reflected sound from the ultrasonic signal received by the ultrasonic receiver.
作为一种实施方式,可以根据时间确定直达声和反射声。具体的,由于超声波发送器和超声波接收器之间的距离一定,超声波在空气中的传播速度基本不变,因此,可以预先确定直达声从超声波发送器发射到超声波接收器接收所需时间并存储。从而电子设备可以根据超声波接收器接收到的超声波距离发送时的时间差,确定接收到的超声波是直达声还是反射声。若是直达声,则该超声波接收到时距离发射时的时间差应当等于存储的时间。As an implementation manner, the direct sound and the reflected sound can be determined according to time. Specifically, because the distance between the ultrasonic transmitter and the ultrasonic receiver is constant, the propagation speed of ultrasonic waves in the air is basically the same. Therefore, the time required for direct sound to be transmitted from the ultrasonic transmitter to the ultrasonic receiver can be determined in advance and stored . Therefore, the electronic device can determine whether the received ultrasonic wave is direct sound or reflected sound according to the time difference when the ultrasonic wave received by the ultrasonic receiver is sent. If it is a direct sound, the time difference between when the ultrasonic wave is received and when it is transmitted should be equal to the stored time.
作为一种实施方式,可以根据频率确定直达声和反射声。当物体在相对电子设备运动时,根据多普勒效应,反射到电子设备的超声波的频率不同于该超声波发送时的频率,而直达声的频率与发送时的频率相同。因此,若接收到的超声波信号的频率与发送的超声波的频率不同,则确定为反射声。As an embodiment, the direct sound and the reflected sound can be determined according to the frequency. When an object moves relative to the electronic device, according to the Doppler effect, the frequency of the ultrasonic wave reflected to the electronic device is different from the frequency when the ultrasonic wave is transmitted, and the frequency of the direct sound is the same as the frequency when the ultrasonic wave is transmitted. Therefore, if the frequency of the received ultrasonic signal is different from the frequency of the transmitted ultrasonic wave, it is determined as the reflected sound.
作为一种实施方式,可以根据相位确定直达声和反射声。由于超声波经过反射后被接收器接收到时,相对发送的超声波产生相位差,从而根据接收到的超声波信号与发送的差别信号之间的相位差,确定接收到的超声波信号是直达声还是反射声。As an implementation manner, the direct sound and the reflected sound can be determined according to the phase. Since the ultrasonic wave is received by the receiver after being reflected, it will produce a phase difference relative to the transmitted ultrasonic wave, so according to the phase difference between the received ultrasonic signal and the transmitted difference signal, it is determined whether the received ultrasonic signal is direct sound or reflected sound .
在本申请实施例中,从接收到的超声波信号中分辨出直达声和反射声的方法并不限定,可以包括上述实施方式中的一种或多种,上述实施方式仅作为举例说明。In the embodiments of the present application, the method for distinguishing the direct sound and the reflected sound from the received ultrasonic signal is not limited, and may include one or more of the above-mentioned embodiments, which are merely illustrative.
可以理解的,图2示出的为设置于电子设备第一端110的第一超声波发送器111以及第一超声波接收器112之间的直达声和反射声。在第二端120的第二超声波发送器121以及第二超声波接收器122之间的直达声和反射声与第一端的类似,在此不再赘述。It can be understood that FIG. 2 shows the direct sound and the reflected sound between the first ultrasonic transmitter 111 and the first ultrasonic receiver 112 disposed at the first end 110 of the electronic device. The direct sound and the reflected sound between the second ultrasonic transmitter 121 and the second ultrasonic receiver 122 at the second end 120 are similar to those at the first end, and will not be repeated here.
可选的,在本申请实施例中,超声波发送器以及超声波接收器的设置可以是,第一超声波发送器发送的超声波信号无法直达第二超声波接收器,第二超声波发送器发送的超声波信号无法直达第一超声波接收器;第一超声波发送器发送的超声波信号无法反射到第二超声波接收器,第二超声波发送器发送的超声波信号无法反射到第一超声波接收器。Optionally, in this embodiment of the application, the ultrasonic transmitter and ultrasonic receiver may be configured such that the ultrasonic signal sent by the first ultrasonic transmitter cannot reach the second ultrasonic receiver directly, and the ultrasonic signal sent by the second ultrasonic transmitter cannot Directly to the first ultrasonic receiver; the ultrasonic signal sent by the first ultrasonic transmitter cannot be reflected to the second ultrasonic receiver, and the ultrasonic signal sent by the second ultrasonic transmitter cannot be reflected to the first ultrasonic receiver.
另外,若第一超声波接收器能接收到第二超声波发送器发送的直达声,也可以根据时间、频率、相位等条件将该直达声与由遮挡物反射回来的反射声相区别。若第二超声波接收器能接收到第一超声波发送器发送的直达声,也可以根据时间、频率、相位等条件将该直达声与由遮挡物反射回来的反射声相区别。或者是第一超声波发送器和第二超声波发送器发送不同频率的超声波,并且该不同的频率不可能为反射回的超声波的频率。若第一超声波能接收器能接收到第二超声波发送器的反射声,或者第二超声波接收器能接收到第一超声波发送器的反射声,第一超声波发送器和第二超声波发送器发送不同频率的超声波,并且该不同的频率不可能为反射回的超声波的频率,因此可以根据接收到超声波信号的频率,直接将第一超声波接收器接收到的超声波信号中第二超声波发送器发送的超声波信号以及反射的第二超声波发送器的超声波信号剔除,直接将第二超声波接收器接收到的超声波信号中第一超声波发送器发送的超声波信号以及反射的第一超声波发送器的超声波信号剔除。In addition, if the first ultrasonic receiver can receive the direct sound sent by the second ultrasonic transmitter, the direct sound can also be distinguished from the reflected sound reflected by the obstruction according to conditions such as time, frequency, and phase. If the second ultrasonic receiver can receive the direct sound sent by the first ultrasonic transmitter, the direct sound can also be distinguished from the reflected sound reflected by the obstruction according to conditions such as time, frequency, and phase. Or the first ultrasonic transmitter and the second ultrasonic transmitter transmit ultrasonic waves of different frequencies, and the different frequencies cannot be the frequency of the reflected ultrasonic waves. If the first ultrasonic energy receiver can receive the reflected sound of the second ultrasonic transmitter, or the second ultrasonic receiver can receive the reflected sound of the first ultrasonic transmitter, the transmission of the first ultrasonic transmitter and the second ultrasonic transmitter are different The frequency of the ultrasonic wave, and the different frequency cannot be the frequency of the reflected ultrasonic wave. Therefore, according to the frequency of the received ultrasonic signal, the ultrasonic signal received by the first ultrasonic receiver can be directly included in the ultrasonic signal sent by the second ultrasonic transmitter. The signal and the reflected ultrasonic signal of the second ultrasonic transmitter are eliminated, directly eliminating the ultrasonic signal sent by the first ultrasonic transmitter and the reflected ultrasonic signal of the first ultrasonic transmitter from the ultrasonic signal received by the second ultrasonic receiver.
当用户通过物体,如手部,凌空从电子设备屏幕正对方向大致平行屏幕滑过时,如图4所示及图5所示,第一超声波接收器以及第二超声波接收器可以接收到物体反射回的信号,从而可以根据该信号判断物体的滑动方向以及滑动动作等,确定对应的控制方式。具体的,本申请实施例提供了一种电子设备控制方法、装置、电子设备及存储介质,实现对电子设备的非接触控制。下面对本申请实施例的电子设备控制方法进行详细介绍。When the user passes an object, such as a hand, volleys from the electronic device screen in a direction that is roughly parallel to the screen, as shown in Figure 4 and Figure 5, the first ultrasonic receiver and the second ultrasonic receiver can receive the object reflection The return signal can be used to determine the sliding direction and sliding action of the object based on the signal, and determine the corresponding control method. Specifically, the embodiments of the present application provide an electronic device control method, device, electronic device, and storage medium to implement non-contact control of the electronic device. The following describes in detail the electronic device control method of the embodiment of the present application.
图6示出了本申请实施例提供的电子设备控制方法的流程图,该电子设备控制方法应用于电子设备。具体的,该电子设备控制方法包括:FIG. 6 shows a flowchart of an electronic device control method provided by an embodiment of the present application, and the electronic device control method is applied to an electronic device. Specifically, the electronic device control method includes:
步骤S110:通过所述第一超声波发送器发送第一超声波信号,以及通过所述第二超声波发送器发送第二超声波信号。Step S110: Send a first ultrasonic signal through the first ultrasonic transmitter, and send a second ultrasonic signal through the second ultrasonic transmitter.
电子设备可以控制超声波发送器发送信号,并通过超声波接收器接收信号。具体的,可以控制第一超声波发送器发送超声波信号,控制第二超声波发送器发送超声波信号。定义第一超声波发送器发送的超声波信号为第一超声波信号,定义第二超声波发送器发送的超声波信号为第二超声波信号。The electronic device can control the ultrasonic transmitter to send signals and receive the signals through the ultrasonic receiver. Specifically, the first ultrasonic transmitter can be controlled to send ultrasonic signals, and the second ultrasonic transmitter can be controlled to send ultrasonic signals. Define the ultrasonic signal sent by the first ultrasonic transmitter as the first ultrasonic signal, and define the ultrasonic signal sent by the second ultrasonic transmitter as the second ultrasonic signal.
在本申请实施例中,两个超声波发送器可以持续性地发送超声波信号,也可以高频率间隔发送超声波信号。In the embodiment of the present application, the two ultrasonic transmitters may continuously transmit ultrasonic signals, or may transmit ultrasonic signals at high frequency intervals.
可选的,对于任意一个超声波发送器,该高频率的具体频率可以是,两个时间上相邻的超声波信号的发送时间间隔大于直达声从发送到接收所需时间,小于直达声从发送到接收所需时间的两倍。从而,既可以根据时间分辨直达声和反射声,又由于直达声从发送到接收所需时间很小,超声波信号发送频率高,可以及时检测到物体反射回来的超声波信号。Optionally, for any ultrasonic transmitter, the specific frequency of the high frequency may be that the transmission time interval of two adjacent ultrasonic signals in time is greater than the time required for direct sound from transmission to reception, and less than the time required for direct sound from transmission to reception. Twice the time required to receive. Therefore, the direct sound and the reflected sound can be distinguished according to time, and because the time required for the direct sound from transmission to reception is very small and the ultrasonic signal transmission frequency is high, the ultrasonic signal reflected by the object can be detected in time.
步骤S120:确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间,所述第一目标信号为被物体反射回的第一超声波信号中满足第一预设条件的信号。Step S120: Determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is a signal that meets a first preset condition among the first ultrasonic signals reflected by the object.
当物体从电子设备屏幕上方滑过时,第一超声波发送器发送的第一超声波信号可以被 反射并被第一超声波接收器接收。以被物体反射回的第一超声波信号中满足第一预设条件的信号作为第一目标信号。其中,该满足第一预设条件的信号可以表示物体刚好在屏幕上方滑过第一超声波接收器时所反射回的信号。另外,电子设备识别直达的超声波信号以及反射的超声波信号的具体方法可以参照前述实施例,在此不再进行赘述。物体从电子设备屏幕上方滑过,即从电子设备屏幕正对方向大致平行屏幕滑过。When an object slides over the screen of the electronic device, the first ultrasonic signal sent by the first ultrasonic transmitter can be reflected and received by the first ultrasonic receiver. A signal satisfying the first preset condition among the first ultrasonic signals reflected by the object is used as the first target signal. Wherein, the signal satisfying the first preset condition may represent the signal reflected back when the object slides over the first ultrasonic receiver just above the screen. In addition, the specific method for the electronic device to identify the direct ultrasonic signal and the reflected ultrasonic signal can refer to the foregoing embodiment, and details are not described herein again. The object slides over the screen of the electronic device, that is, slides across the screen in a direction that is directly opposite to the screen of the electronic device.
以接收到第一目标信号的时间作为第一时间。The first time is the time when the first target signal is received.
步骤S130:确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,所述第二目标信号为被物体反射回的第二超声波信号中满足第二预设条件的信号。Step S130: Determine the time when the second ultrasonic receiver receives the second target signal as the second time, and the second target signal is a signal that meets a second preset condition among the second ultrasonic signals reflected by the object.
当物体从电子设备屏幕上方滑过时,第二超声波发送器发送的第二超声波信号可以被反射并被第二超声波接收器接收。以被物体反射回的第二超声波信号中满足第二预设条件的信号作为第二目标信号。其中,满足该第二预设条件的信号可以表示物体刚好在屏幕上方滑过第二超声波接收器时所反射回的信号。When the object slides over the screen of the electronic device, the second ultrasonic signal sent by the second ultrasonic transmitter may be reflected and received by the second ultrasonic receiver. A signal that meets the second preset condition among the second ultrasonic signals reflected by the object is used as the second target signal. Wherein, the signal satisfying the second preset condition may represent the signal reflected back when the object slides over the second ultrasonic receiver just above the screen.
以接收到第二目标信号的时间作为第二时间。The time when the second target signal is received is regarded as the second time.
若设置为第一超声波发送器发送的超声波信号无法反射到第二超声波接收器,第二超声波发送器发送的超声波信号无法反射到第一超声波接收器,则以第一超声波接收器接收到的反射声作为接收到的反射回的第一超声波信号;以第二超声波接收器接收到的反射声作为接收到的反射回的第二超声波信号。若第一超声波接收器能接收到被反射的第二信号,若第二超声波接收器能接收到被反射回的第一超声波信号,则第一超声波信号以及第二超声波信号可以设置为不同频率的超声波信号,该频率的不同使第一超声波信号以及第二超声波信号即使被反射,反射的第一超声波信号与第二超声波信号以及反射的第二超声波信号的频率也不相同,反射的第二超声波信号与第一超声波信号以及反射的第一超声波信号的频率也不相同,使可以根据接收到的超声波的频率确定反射回的超声波信号是第一超声波信号还是第二超声波信号。If it is set that the ultrasonic signal sent by the first ultrasonic transmitter cannot be reflected to the second ultrasonic receiver, and the ultrasonic signal sent by the second ultrasonic transmitter cannot be reflected to the first ultrasonic receiver, then the reflection received by the first ultrasonic receiver The sound is used as the received reflected first ultrasonic signal; the reflected sound received by the second ultrasonic receiver is used as the received reflected second ultrasonic signal. If the first ultrasonic receiver can receive the reflected second signal, if the second ultrasonic receiver can receive the reflected first ultrasonic signal, the first ultrasonic signal and the second ultrasonic signal can be set to different frequencies Ultrasonic signal. This difference in frequency makes the first ultrasonic signal and the second ultrasonic signal reflected even if the frequency of the reflected first ultrasonic signal is different from the second ultrasonic signal and the reflected second ultrasonic signal. The reflected second ultrasonic signal The frequency of the signal is different from the first ultrasonic signal and the reflected first ultrasonic signal, so that it can be determined whether the reflected ultrasonic signal is the first ultrasonic signal or the second ultrasonic signal according to the frequency of the received ultrasonic wave.
步骤S140:获取所述第一时间以及第二时间的时间差对应的控制指令。Step S140: Obtain a control instruction corresponding to the time difference between the first time and the second time.
步骤S150:根据所述控制指令执行对应的操作。Step S150: Perform a corresponding operation according to the control instruction.
第一时间以及第二时间之间的时间差反应了物体是否连续从电子设备屏幕上方滑过,并且可以反应滑动速度以及滑动方向。因此,可以根据该时间差确定对应的指令,以根据该指令执行相应的操作,从而实现对电子设备的控制。The time difference between the first time and the second time reflects whether the object continuously slides over the screen of the electronic device, and can reflect the sliding speed and the sliding direction. Therefore, the corresponding instruction can be determined according to the time difference, so as to execute the corresponding operation according to the instruction, so as to realize the control of the electronic device.
在本申请实施例中,由于物体滑过电子设备屏幕上方时,对第一超声波发送器以及第二超声波发送器的发送的超声波反射。因此,可以确定反射回的超声波的接收时间,根据其中的第一时间以及第二时间之间的时间差,确定相应的控制指令,根据该控制指令进行操作,实现不接触电子设备的情况下对电子设备的控制。In the embodiment of the present application, when the object slides over the screen of the electronic device, the ultrasonic waves sent by the first ultrasonic transmitter and the second ultrasonic transmitter are reflected. Therefore, the receiving time of the reflected ultrasonic wave can be determined, and the corresponding control instruction can be determined according to the time difference between the first time and the second time, and the operation can be performed according to the control instruction to realize the electronic device without contacting the electronic device. Control of equipment.
本申请还提供了一种实施例,在该实施例中,包括根据时间差具体确定控制指令并进行操作的方式。请参见图7,该实施例提供的方法包括:The present application also provides an embodiment, in which the embodiment includes a method for specifically determining and operating a control instruction according to the time difference. Referring to FIG. 7, the method provided in this embodiment includes:
步骤S210:通过所述第一超声波发送器发送第一超声波信号,以及通过所述第二超声波发送器发送第二超声波信号。Step S210: Send a first ultrasonic signal through the first ultrasonic transmitter, and send a second ultrasonic signal through the second ultrasonic transmitter.
步骤S220:确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间。所述第一目标信号为被物体反射回的第一超声波信号中满足第一预设条件的信号。Step S220: Determine the time when the first ultrasonic receiver receives the first target signal as the first time. The first target signal is a signal that meets a first preset condition among the first ultrasonic signals reflected by the object.
步骤S230:确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,所述第二目标信号为被物体反射回的第二超声波信号中满足第二预设条件的信号。Step S230: Determine the time when the second ultrasonic receiver receives the second target signal as the second time, where the second target signal is a signal that meets a second preset condition among the second ultrasonic signals reflected by the object.
从第一超声波接收器接收到的反射信号中确定满足第一预设条件的第一目标信号,从第二超声波接收器接收到的反射信号中确定满足第二预设条件的第一目标信号。其中,该第一超声波接收器接收到的反射信号为第一超声波信号被物体反射回的信号;第二超声波接收器接收到的反射信号为第二超声波信号被物体反射回的信号。The first target signal that satisfies the first preset condition is determined from the reflected signals received by the first ultrasonic receiver, and the first target signal that satisfies the second preset condition is determined from the reflected signals received by the second ultrasonic receiver. Wherein, the reflected signal received by the first ultrasonic receiver is a signal of the first ultrasonic signal reflected by the object; the reflected signal received by the second ultrasonic receiver is a signal of the second ultrasonic signal reflected by the object.
为了准确检测到物体滑过第一端时的时间,该第一目标信号可以为物体滑过第一超声波接收器上方时第一超声波信号被反射回的信号;该第二目标信号可以为物体滑过第二超声波接收器上方时第二超声波信号被反射回的信号。物体滑过第一超声波接收器上方,表示物体在大致平行屏幕的平面上滑动时经过第一超声波接收器相对的位置;物体滑过第二超声波接收器上方,表示物体在大致平行屏幕的平面上滑动时经过第二超声波接收器相对的位置。In order to accurately detect the time when the object slides over the first end, the first target signal may be the signal that the first ultrasonic signal is reflected back when the object slides over the first ultrasonic receiver; the second target signal may be the object slide. The second ultrasonic signal is reflected back when passing over the second ultrasonic receiver. When the object slides over the first ultrasonic receiver, it means that the object passes the relative position of the first ultrasonic receiver when sliding on a plane roughly parallel to the screen; when the object slides over the second ultrasonic receiver, it means that the object is on a plane roughly parallel to the screen. When sliding, pass the relative position of the second ultrasonic receiver.
如图4及图5所示,物体顺次滑过第一端以及第二端(如图4所示),或者顺次滑过第二端以及第一端(如图5所示)的情况下,当物体(如图4及图5中的手)滑过电子设备第一端时,滑过第一超声波接收器上方时距离第一超声波接收器最近;当物体滑过第二端时,滑过第二超声波接收器上方时距离第二超声波接收器最近。As shown in Figures 4 and 5, the object slides through the first end and the second end in sequence (as shown in Figure 4), or slides over the second end and the first end in sequence (as shown in Figure 5) When the object (such as the hand in Figure 4 and Figure 5) slides over the first end of the electronic device, it will be the closest to the first ultrasonic receiver when it passes over the first ultrasonic receiver; when the object slides over the second end, When sliding over the second ultrasonic receiver, it is closest to the second ultrasonic receiver.
因此,作为一种实施方式,可以从第一超声波接收器接收到的被物体反射回的第一超声波信号中,确定所述物体距离所述第一超声波接收器最近时反射的第一超声波信号,作为第一目标信号。可以从第二超声波接收器接收到的被物体反射回的第二超声波信号中,确定所述物体距离所述第二超声波接收器最近时反射的第二超声波信号,作为第二目标信号。Therefore, as an implementation manner, the first ultrasonic signal reflected by the object may be determined from the first ultrasonic signal received by the first ultrasonic receiver when the object is closest to the first ultrasonic receiver, As the first target signal. From the second ultrasonic signal reflected by the object received by the second ultrasonic receiver, the second ultrasonic signal reflected when the object is closest to the second ultrasonic receiver may be determined as the second target signal.
在该实施方式中,根据接收到的反射信号计算各个反射信号对应的物体的距离,即计算各个反射信号被物体反射时物体距离超声波接收器的距离。具体计算方式在本申请实施例中并不限定,下面以设置于某一端的超声波发送器以及超声波接收器进行举例说明。In this embodiment, the distance of the object corresponding to each reflection signal is calculated according to the received reflection signal, that is, the distance between the object and the ultrasonic receiver when each reflection signal is reflected by the object is calculated. The specific calculation method is not limited in the embodiment of the present application. The ultrasonic transmitter and the ultrasonic receiver provided at a certain end are used as an example for description.
例如,计算反射信号对应的物体的距离的方式可以是时间差方法。具体的,同一端的超声波发送器和超声波接收器的设置位置很近,电子设备的超声波发送器间隔发送超声波信号,电子设备的超声波接收器接收到反射信号,根据该反射信号被发送时的时间与接收到的时间之间的时间长度,以及超声波在空气中的传播速度,可以计算获得该反射信号对应的物理距离超声波接收器的距离。For example, the method of calculating the distance of the object corresponding to the reflected signal may be a time difference method. Specifically, the ultrasonic transmitter and the ultrasonic receiver on the same end are set up close, the ultrasonic transmitter of the electronic device sends ultrasonic signals at intervals, and the ultrasonic receiver of the electronic device receives the reflected signal. According to the time when the reflected signal is sent The length of time between the received time and the propagation speed of the ultrasonic wave in the air can be calculated to obtain the physical distance corresponding to the reflected signal from the ultrasonic receiver.
例如,也可以根据相位差方法计算物体的距离。电子设备的超声波发送器发送超声波信号,超声波发送器接收反射信号,通过计算发送出的信号和反射信号之间的相关性指标,确定超声波经过反射后到达超声波接收器产生的相位差,根据相位差来确定物体与移动终端的相对距离。For example, the distance of the object can also be calculated according to the phase difference method. The ultrasonic transmitter of the electronic device sends the ultrasonic signal, and the ultrasonic transmitter receives the reflected signal. By calculating the correlation index between the transmitted signal and the reflected signal, the phase difference caused by the ultrasonic wave reaching the ultrasonic receiver after reflection is determined, according to the phase difference To determine the relative distance between the object and the mobile terminal.
因此,在该实施方式中,可以计算第一超声波接收器接收到第一超声波信号的各个反射信号对应的物体的距离,从而获得物体距离第一超声波接收器最近时反射回的第一超声波信号,作为第一目标信号。并且可以获取第一超声波接收器接收到该第一目标信号的时间作为第一时间。Therefore, in this embodiment, the distance of the object corresponding to each reflected signal of the first ultrasonic signal received by the first ultrasonic receiver can be calculated to obtain the first ultrasonic signal reflected back when the object is closest to the first ultrasonic receiver. As the first target signal. And the time when the first ultrasonic receiver receives the first target signal can be acquired as the first time.
另外,在该实施方式中,也可以计算第二超声波接收器接收到第二超声波信号的各个 反射信号对应的物体的距离,从而获得物体距离第二超声波接收器最近时反射回的第二超声波信号,作为第二目标信号。并且可以获取第二超声波接收器接收到该第二目标信号的时间作为第二时间。In addition, in this embodiment, the distance of the object corresponding to each reflected signal of the second ultrasonic signal received by the second ultrasonic receiver can also be calculated, so as to obtain the second ultrasonic signal reflected back when the object is closest to the second ultrasonic receiver. , As the second target signal. And the time when the second ultrasonic receiver receives the second target signal can be acquired as the second time.
根据如图8所示的多普勒效应,当物体(如图8中的观察者)向靠近超声波发送器(如图8中的声源)的方向运动时,超声波接收器接收到的该物体反射的超声波频率,相对于超声波本来的频率变大,并且,物体移动速度越大,反射回的超声波频率越高。当物体向远离超声波发送器的方向运动时,超声波接收器接收到的该物体反射回的超声波的频率,相对于超声波本来的频率减小,并且,物体移动速度越大,反射回的超声波频率越低。According to the Doppler effect shown in Figure 8, when an object (such as the observer in Figure 8) moves closer to the ultrasonic transmitter (the sound source in Figure 8), the object received by the ultrasonic receiver The frequency of the reflected ultrasonic wave becomes larger than the original frequency of the ultrasonic wave, and the higher the moving speed of the object, the higher the frequency of the reflected ultrasonic wave. When an object moves away from the ultrasonic transmitter, the frequency of the ultrasonic wave reflected by the object received by the ultrasonic receiver decreases relative to the original frequency of the ultrasonic wave, and the greater the object moving speed, the higher the frequency of the reflected ultrasonic wave. low.
因此,作为一种实施方式,如图4及图5所示,物体顺次滑过第一端以及第二端,或者顺次滑过第二端以及第一端的情况下,物体滑过第一超声波接收器上方的过程中,物体相对第一超声波接收器先靠近再远离,从而第一超声波接收器接收到的反射信号的频率会先大于发射频率再小于发射频率;物体滑过第二超声波接收器上方的过程中,物体相对第二超声波接收器先靠近再远离,从而第二超声波接收器接收到的反射信号的频率会先大于发射频率再小于发射频率。发射频率为发送的超声波的频率。Therefore, as an embodiment, as shown in FIGS. 4 and 5, the object slides past the first end and the second end sequentially, or when the object slides past the second end and the first end sequentially, During the process above an ultrasonic receiver, the object first approaches and then moves away from the first ultrasonic receiver, so that the frequency of the reflected signal received by the first ultrasonic receiver will first be greater than the transmit frequency and then less than the transmit frequency; the object slides over the second ultrasonic wave During the process above the receiver, the object first approaches and then moves away from the second ultrasonic receiver, so that the frequency of the reflected signal received by the second ultrasonic receiver is first greater than the transmit frequency and then less than the transmit frequency. The transmission frequency is the frequency of the transmitted ultrasonic wave.
因此,在该实施方式中,第一超声波发送器发送的第一频率的超声波信号,所述第二超声波发送器发送的第二频率的超声波信号。可以从第一超声波接收器接收到的被物体反射回的第一超声波信号中,确定的第一个频率小于所述第一频率的超声波信号,作为第一目标信号;从第二超声波接收器接收到的被物体反射回的第二超声波信号中,确定的第一个频率小于所述第二频率的第二超声波信号,作为第二目标信号。其中,第一频率与第二频率可以相同也可以不同。若第一频率与第二频率不同,则第一频率可以设置为不可能是第一频率的超声波被用户操作反射的频率,第二频率也可以设置为不可能是第二频率的超声波被用户操作反射的频率。Therefore, in this embodiment, the first ultrasonic transmitter transmits the ultrasonic signal of the first frequency, and the second ultrasonic transmitter transmits the ultrasonic signal of the second frequency. The first ultrasonic signal with a frequency lower than the first frequency can be determined from the first ultrasonic signal received by the first ultrasonic receiver and reflected back by the object as the first target signal; received from the second ultrasonic receiver Among the received second ultrasonic signals reflected back by the object, the determined second ultrasonic signal with a first frequency lower than the second frequency is used as the second target signal. Wherein, the first frequency and the second frequency may be the same or different. If the first frequency is different from the second frequency, the first frequency can be set to a frequency that cannot be reflected by the user's operation of the ultrasonic wave of the first frequency, and the second frequency can also be set to be that the ultrasonic wave of the second frequency cannot be operated by the user. The frequency of reflections.
也就是说,当物体开始远离第一超声波接收器时,物体反射回的超声波信号的频率开始小于第一频率。从而接收到第一个频率小于所述第一频率的第一超声波信号时,表明此时物体刚好滑过第一超声波接收器,可以以该超声波信号作为第一目标信号。并且,可以获取该第一目标信号被第一超声波接收器接收到的时间,作为第一时间。That is, when the object starts to move away from the first ultrasonic receiver, the frequency of the ultrasonic signal reflected by the object starts to be lower than the first frequency. Therefore, when a first ultrasonic signal with a first frequency lower than the first frequency is received, it indicates that the object has just passed the first ultrasonic receiver at this time, and the ultrasonic signal can be used as the first target signal. In addition, the time when the first target signal is received by the first ultrasonic receiver can be acquired as the first time.
如图4及图5所示,当物体开始远离第二超声波接收器时,物体反射回的第二超声波信号的频率开始小于第二频率。从而接收到第一个频率小于所述第二频率的第二超声波信号时,表明此时物体刚好滑过第二超声波接收器,可以以该超声波信号作为第二目标信号。并且,可以获取该第二目标信号被第二超声波接收器接收到的时间,作为第二时间。As shown in FIGS. 4 and 5, when the object starts to move away from the second ultrasonic receiver, the frequency of the second ultrasonic signal reflected by the object starts to be lower than the second frequency. Therefore, when a second ultrasonic signal with a first frequency lower than the second frequency is received, it indicates that the object just slipped through the second ultrasonic receiver at this time, and the ultrasonic signal can be used as the second target signal. In addition, the time when the second target signal is received by the second ultrasonic receiver can be acquired as the second time.
作为另一种实施方式,如图4及图5所示,物体顺次滑过第一端以及第二端,或者顺次滑过第二端以及第一端的情况下,可以理解的,当物体滑过第一端,以最大速度靠近第一端时距离第一端较近时,即距离第一超声波接收器较近,第一超声波接收器接收到的反射信号的频率最高;当物体滑过第二端时,以最大速度靠近第二端时距离第二端较近,即距离第二超声波接收器较近,第二超声波接收器接收到的反射信号的频率最高。As another embodiment, as shown in FIGS. 4 and 5, when the object slides through the first end and the second end sequentially, or slides through the second end and the first end sequentially, it can be understood that when When the object slides past the first end and approaches the first end at the maximum speed, when it is closer to the first end, that is, closer to the first ultrasonic receiver, the frequency of the reflected signal received by the first ultrasonic receiver is the highest; When passing the second end, when approaching the second end at the maximum speed, the distance to the second end is closer, that is, the second ultrasonic receiver is closer, and the reflected signal received by the second ultrasonic receiver has the highest frequency.
因此,在该实施方式中,可以从第一超声波接收器接收到的被物体反射回的第一超声波信号中确定频率最高的第一超声波信号,作为第一目标信号。并获取所述第一目标信号的接收时间作为第一时间。Therefore, in this embodiment, the first ultrasonic signal with the highest frequency can be determined from the first ultrasonic signal received by the first ultrasonic receiver and reflected back by the object as the first target signal. And obtain the receiving time of the first target signal as the first time.
也就是说,电子设备在第一超声波接收器接收到的第一超声波信号的各个反射信号中,确定频率最高的反射信号,作为第一目标信号。That is, the electronic device determines the reflection signal with the highest frequency among the reflection signals of the first ultrasonic signal received by the first ultrasonic receiver as the first target signal.
可以从第二超声波接收器接收到的被物体反射回的第二超声波信号中确定频率最高的第二超声波信号,作为第二目标信号。获取所述第二目标信号的接收时间作为第二时间。The second ultrasonic signal with the highest frequency can be determined from the second ultrasonic signal reflected by the object received by the second ultrasonic receiver as the second target signal. Acquire the receiving time of the second target signal as the second time.
也就是说,电子设备在第二超声波接收器接收到的第二超声波信号的各个反射信号中,确定频率最高的反射信号,作为第二目标信号。That is, the electronic device determines the reflection signal with the highest frequency among the reflection signals of the second ultrasonic signal received by the second ultrasonic receiver as the second target signal.
步骤S240:判断所述第一时间减去所述第二时间的差值所属数值区间。若所述差值属于正值区间,执行步骤S250;若所述差值属于负值区间,执行步骤S260。Step S240: Determine the numerical interval of the difference value of the first time minus the second time. If the difference value belongs to a positive value interval, step S250 is executed; if the difference value belongs to a negative value interval, step S260 is executed.
步骤S250:对当前显示内容执行第一方向的翻页操作。Step S250: Perform a page turning operation in the first direction on the currently displayed content.
步骤S260:对当前显示内容执行第二方向的翻页操作。所述第二方向与所述第一方向相反。Step S260: Perform a page turning operation in the second direction on the currently displayed content. The second direction is opposite to the first direction.
可以获取所述第一时间以及第二时间的时间差对应的控制指令,根据所述控制指令执行对应的操作。The control instruction corresponding to the time difference between the first time and the second time can be acquired, and corresponding operations can be performed according to the control instruction.
由于在如图4所示的物体(如图中的手)从第一端向第二端滑动时,先获取到第一时间,再获取到第二时间,第一时间与第二时间的差值为负值;在如图5所示的物体(如图中的手)从第二端向第一端滑动时,先获取到第二时间,再获取到第一时间,第一时间与第二时间的差值为正值,因此,可以根据差值所属的数值区间确定物体的滑动方向,从而确定控制指令。Because when the object as shown in Figure 4 (the hand in the figure) slides from the first end to the second end, the first time is obtained first, and then the second time is obtained. The difference between the first time and the second time The value is a negative value; when the object shown in Figure 5 (the hand in the figure) slides from the second end to the first end, the second time is first obtained, and then the first time is obtained. The first time and the first time The difference between the two times is a positive value. Therefore, the sliding direction of the object can be determined according to the numerical interval to which the difference belongs to determine the control command.
作为一种实施方式,预先存储数值区间,存储的数值区间包括正值区间以及负值区间,正值区间的数值大于0,负值区间的数值小于0。其中,可以预先通过大量模拟正常手势从第一端到第二端的滑动,统计记录每一次时间差T=T1-T2,根据不同时间差数值出现概率形成负值区间;预先通过大量模拟正常手势从第二端到第一端的滑动,统计记录每一次时间差T=T1-T2,根据不同时间差数值出现概率形成正值区间。其中T1表示第一时间,T2表示第二时间,T表示第一时间与第二时间之间的差值,即第一时间与第二时间之间的时间差。如图9所示,t1表示负值区间,t2表示正值区间,t0表示近零区间,纵坐标表示在统计次数内每个对应的时间差出现的概率。As an embodiment, a numerical interval is pre-stored, and the stored numerical interval includes a positive interval and a negative interval, the value of the positive interval is greater than 0, and the value of the negative interval is less than 0. Among them, a large number of normal gestures can be simulated in advance from the first end to the second end, and each time difference T=T1-T2 can be statistically recorded, and a negative interval can be formed according to the occurrence probability of different time difference values; From the end to the first end of the sliding, each time difference T=T1-T2 is statistically recorded, and a positive interval is formed according to the occurrence probability of different time difference values. T1 represents the first time, T2 represents the second time, and T represents the difference between the first time and the second time, that is, the time difference between the first time and the second time. As shown in Figure 9, t1 represents a negative interval, t2 represents a positive interval, t0 represents a near-zero interval, and the ordinate represents the probability of each corresponding time difference occurring within the statistical times.
在获取到第一时间以及第二时间的差值后,若该差值小于0,则可以判断该差值是否在负值区间。若不在负值区间,表示该第一时间以及第二时间对应的物体滑动过程可能是无效的滑动,不进行对应控制;若该差值在负值区间,表示物体从第一端滑向第二端,如图4所示,且是有效的滑动。可以判定用户当前的滑动操作产生的指令为第二方向的翻页指令,对当前显示内容执行第二方向的翻页操作。After obtaining the difference between the first time and the second time, if the difference is less than 0, it can be determined whether the difference is in the negative interval. If it is not in the negative interval, it means that the sliding process of the object corresponding to the first time and the second time may be invalid sliding, and no corresponding control will be performed; if the difference is in the negative interval, it means the object is sliding from the first end to the second The end, as shown in Figure 4, is effectively sliding. It can be determined that the instruction generated by the user's current sliding operation is a page turning instruction in the second direction, and the page turning operation in the second direction is performed on the currently displayed content.
在该实施方式中,若第一时间以及第二时间的差值大于0,则可以判断该差值是否在正值区间。若不在正值区间,表示该第一时间以及第二时间对应的物体滑动过程可能是无效的滑动,不进行对应控制;若该差值在正值区间,表示物体从第二端滑向第一端,如图5所示,且是有效的滑动。可以判定用户当前的滑动操作产生的指令为第一方向的翻页指令,对当前显示内容执行第一方向的翻页操作。In this embodiment, if the difference between the first time and the second time is greater than 0, it can be determined whether the difference is within a positive interval. If it is not in the positive interval, it means that the sliding process of the object corresponding to the first time and the second time may be invalid sliding, and no corresponding control will be performed; if the difference is in the positive interval, it means that the object slides from the second end to the first The end, as shown in Figure 5, is effectively sliding. It can be determined that the instruction generated by the user's current sliding operation is a page turning instruction in the first direction, and the page turning operation in the first direction is performed on the currently displayed content.
第一方向以及第二方向是彼此相反的方向,例如,第一方向可以是电子设备的所述第二端到所述第一端的方向,第二方向可以是电子设备的所述第一端到所述第二端的方向。The first direction and the second direction are directions opposite to each other. For example, the first direction may be the direction from the second end of the electronic device to the first end, and the second direction may be the first end of the electronic device The direction to the second end.
另外,对当前显示内容执行第一方向的翻页操作,以及当前显示内容执行第二方向的翻页操作,可以根据当前显示内容所对应的应用程序的功能确定。例如,当前显示的为阅读软件的阅读页面,则第一方向的翻页操作可以是将阅读内容向第一方向翻页,或者说翻到上一页;第二方向的翻页操作可以是将阅读内容向第二方向翻页,或者说翻到下一页等。又如,当前显示的为短视频软件的短视频播放界面,则向第一方向的翻页操作可以是向第一方向切换视频,或者是切换为上一个视频;向第二方向的翻页操作可以是向第二方向切换视频,或者是切换为下一个视频。In addition, performing a page turning operation in the first direction on the currently displayed content and performing a page turning operation in the second direction on the currently displayed content may be determined according to the function of the application corresponding to the currently displayed content. For example, if the currently displayed page is the reading page of the reading software, the page turning operation in the first direction can be to turn the reading content in the first direction, or to the previous page; the page turning operation in the second direction can be Read the content to turn the page in the second direction, or turn to the next page, etc. For another example, if the short video playback interface of the short video software is currently displayed, the page turning operation in the first direction can be to switch the video in the first direction, or switch to the previous video; the page turning operation in the second direction It can switch the video in the second direction, or switch to the next video.
作为另一种实施方式,在上一实施方式的基础上,数值区间还可以包括如图9所示的近零区间t0,该近零区间为比零小预设值到比零大预设值之间的数据形成的区间,所述正值区间为近零区间以外且比零大的数值形成的区间,所述负值区间为近零区间以外且比零小的数值形成的区间。As another embodiment, on the basis of the previous embodiment, the numerical interval may also include a near-zero interval t0 as shown in FIG. 9, which is a preset value smaller than zero to a preset value larger than zero. The interval formed by the data in between, the positive interval is an interval formed by numerical values outside the near zero interval and greater than zero, and the negative interval is an interval formed by numerical values outside the near zero interval and smaller than zero.
其中,该近零区间表示第一超声波接收器接收到第一目标信号与第二超声波接收器接收到第二目标信号的时间接近,时间差在0左右。如物体(如用户的手掌)从大致平行屏幕且与屏幕具有一定距离的位置压向屏幕,即保持手掌与屏幕基本平行向屏幕靠近,可以检测到第一时间以及第二时间的差值处于近零区间。Wherein, the near-zero interval indicates that the time when the first ultrasonic receiver receives the first target signal and the second ultrasonic receiver receives the second target signal are close, and the time difference is about zero. If an object (such as the user's palm) is pressed toward the screen from a position that is roughly parallel to the screen and a certain distance from the screen, that is, keep the palm and the screen basically parallel to the screen, it can be detected that the difference between the first time and the second time is close Zero interval.
该实施方式中,还可以判断第一时间以及第二时间的差值是否属于近零区间。若属于近零区间,可以确定近零区间对应的控制指令并进行相应的操作。例如,若所述差值属于所述近零区间,将当前显示的视频由播放到暂停或由暂停到播放。当然,若所述差值属于所述近零区间,也可能是其他控制指令,如退出当前视频、退出当前应用程序、退出当前界面回到上一界面等。In this embodiment, it can also be determined whether the difference between the first time and the second time belongs to a near-zero interval. If it belongs to the near-zero interval, you can determine the control command corresponding to the near-zero interval and perform the corresponding operation. For example, if the difference belongs to the near zero interval, the currently displayed video is changed from playing to pause or from pause to playing. Of course, if the difference falls within the near-zero interval, it may also be other control instructions, such as exiting the current video, exiting the current application, exiting the current interface and returning to the previous interface.
在本申请实施例中,不同数值区间对应的控制指令并不限定,也可以是其他。例如,对应不同的应用程序存储指令表,该指令表表示各个数值区间对应的该应用程序的控制指令。可以确定第一时间以及第二时间的差值所属数值区间,在确定第一时间以及第二时间的差值所属数值区间后,查找前台运行的应用程序对应的指令表中,差值所属数值区间对应的控制指令,根据查找到的控制指令执行对应的操作。In the embodiment of the present application, the control commands corresponding to different numerical ranges are not limited, and may be other. For example, an instruction table is stored corresponding to different application programs, and the instruction table represents the control instructions of the application program corresponding to each numerical interval. You can determine the numerical range of the difference between the first time and the second time. After determining the numerical range of the difference between the first time and the second time, look up the numerical range of the difference in the instruction table corresponding to the application running in the foreground The corresponding control instruction executes the corresponding operation according to the found control instruction.
在本申请实施例中,当用户在进行如图4及如图5所示的滑动操作时,可以获取到物体经过第一端的第一时间以及经过第二端的第二时间。根据第一时间以及第二时间的时间差确定是否是有效的滑动操作,以及在是有效的滑动操作的情况下的滑动方向,根据滑动方向确定相应的控制指令,执行该控制指令对应的操作,实现在不接触电子设备的情况下对电子设备的控制。In the embodiment of the present application, when the user is performing the sliding operation as shown in FIG. 4 and FIG. 5, the first time when the object passes the first end and the second time when the object passes the second end can be acquired. Determine whether it is a valid sliding operation according to the time difference between the first time and the second time, and the sliding direction in the case of a valid sliding operation, determine the corresponding control command according to the sliding direction, and execute the operation corresponding to the control command to achieve The control of electronic devices without touching them.
本申请实施例还提供了一种电子设备控制装置300。该装置300应用于电子设备,所述电子设备包括设置于所述电子设备第一端的第一超声波发送器以及第一超声波接收器,和设置于所述电子设备第二端的第二超声波发送器以及第二超声波接收器,所述第一端和所述第二端可以是相对的两端。The embodiment of the present application also provides an electronic device control apparatus 300. The device 300 is applied to electronic equipment, which includes a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic equipment, and a second ultrasonic transmitter provided at the second end of the electronic equipment And the second ultrasonic receiver, the first end and the second end may be opposite ends.
请参见图10,该装置300包括超声波发送模块310,第一时间确定模块320,第二时间确定模块330,指令获取模块340以及控制模块350。Referring to FIG. 10, the device 300 includes an ultrasonic sending module 310, a first time determining module 320, a second time determining module 330, an instruction obtaining module 340, and a control module 350.
其中,超声波发送模块310,用于通过所述第一超声波发送器发送第一超声波信号,以及通过所述第二超声波发送器发送第二超声波信号。第一时间确定模块320,用于确定 所述第一超声波接收器接收到第一目标信号的时间作为第一时间,所述第一目标信号为被物体反射回的第一超声波信号中满足第一预设条件的信号。第二时间确定模块330,用于确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,所述第二目标信号为被物体反射回的第二超声波信号中满足第二预设条件的信号。指令获取模块340,用于获取所述第一时间以及第二时间的时间差对应的控制指令。控制模块350,用于根据所述控制指令执行对应的操作。Wherein, the ultrasonic transmitting module 310 is configured to transmit a first ultrasonic signal through the first ultrasonic transmitter, and transmit a second ultrasonic signal through the second ultrasonic transmitter. The first time determining module 320 is configured to determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is the first ultrasonic signal reflected by the object that satisfies the first Signals with preset conditions. The second time determining module 330 is configured to determine the time when the second ultrasonic receiver receives the second target signal as the second time, and the second target signal is the second ultrasonic signal reflected by the object that satisfies the second Signals with preset conditions. The instruction acquisition module 340 is configured to acquire a control instruction corresponding to the time difference between the first time and the second time. The control module 350 is configured to perform corresponding operations according to the control instructions.
可选的,指令获取模块340以及控制模块350可以集成为一个模块,用于判断所述第一时间减去所述第二时间的差值所属数值区间;若所述差值属于正值区间,对当前显示内容执行第一方向的翻页操作;若所述差值属于负值区间,对当前显示内容执行第二方向的翻页操作,所述第二方向与所述第一方向相反。Optionally, the instruction acquisition module 340 and the control module 350 may be integrated into one module, which is used to determine the value interval of the difference value of the first time minus the second time; if the difference value belongs to the positive value interval, Perform a page turning operation in a first direction for the currently displayed content; if the difference is in a negative interval, perform a page turning operation in a second direction for the currently displayed content, the second direction being opposite to the first direction.
可选的,所述第一方向可以为所述电子设备的所述第二端到所述第一端的方向,所述第二方向可以为所述电子设备的所述第一端到所述第二端的方向。Optionally, the first direction may be a direction from the second end of the electronic device to the first end, and the second direction may be a direction from the first end of the electronic device to the The direction of the second end.
可选的,所述数值区间还可以包括近零区间,所述近零区间为比零小预设值到比零大预设值之间的数据形成的区间,所述正值区间为近零区间以外且比零大的数值形成的区间,所述负值区间为近零区间以外且比零小的数值形成的区间。指令获取模块340以及控制模块350可以集成为一个模块,用于若所述差值属于所述近零区间,将当前显示的视频由播放到暂停或由暂停到播放。Optionally, the numerical interval may also include a near-zero interval, the near-zero interval being an interval formed by data from a preset value smaller than zero to a preset value greater than zero, and the positive value interval is near zero An interval formed by a numeric value outside the interval and greater than zero, and the negative interval is an interval formed by a numeric value outside the near-zero interval and smaller than zero. The instruction acquisition module 340 and the control module 350 can be integrated into one module, which is used to switch the currently displayed video from playing to pause or from pause to playing if the difference is within the near-zero interval.
可选的,第一时间确定模块320可以用于从第一超声波接收器接收到的被物体反射回的第一超声波信号中确定频率最高的超声波信号,作为第一目标信号;获取所述第一目标信号的接收时间作为第一时间。Optionally, the first time determining module 320 may be configured to determine the ultrasonic signal with the highest frequency among the first ultrasonic signals reflected by the object received by the first ultrasonic receiver, as the first target signal; The receiving time of the target signal is regarded as the first time.
第二时间确定模块330可以用于从第二超声波接收器接收到的被物体反射回的第二超声波信号中确定频率最高的超声波信号,作为第二目标信号;获取所述第二目标信号的接收时间作为第二时间。The second time determining module 330 may be used to determine the ultrasonic signal with the highest frequency from the second ultrasonic signal reflected by the object received by the second ultrasonic receiver, as the second target signal; to obtain the reception of the second target signal Time as the second time.
可选的,所述第一超声波发送器发送的第一频率的超声波信号,所述第二超声波发送器发送的第二频率的超声波信号。第一时间确定模块320可以用于从第一超声波接收器接收到的被物体反射回的第一超声波信号中,确定的第一个频率小于所述第一频率的超声波信号,作为第一目标信号;获取所述第一目标信号的接收时间作为第一时间。第二时间确定模块330可以用于从第二超声波接收器接收到的被物体反射回的第二超声波信号中,确定的第一个频率小于所述第二频率的超声波信号,作为第二目标信号;获取所述第二目标信号的接收时间作为第二时间。Optionally, the first frequency ultrasonic signal sent by the first ultrasonic transmitter, and the second frequency ultrasonic signal sent by the second ultrasonic transmitter. The first time determining module 320 may be used to determine the first ultrasonic signal with a frequency lower than the first frequency from the first ultrasonic signal received by the first ultrasonic receiver and reflected back by the object as the first target signal ; Acquire the receiving time of the first target signal as the first time. The second time determining module 330 may be used to determine the first ultrasonic signal with a frequency lower than the second frequency from the second ultrasonic signal received by the second ultrasonic receiver and reflected back by the object as the second target signal ; Acquire the receiving time of the second target signal as the second time.
可选的,第一时间确定模块320可以用于从第一超声波接收器接收到的被物体反射回的第一超声波信号中,确定所述物体距离所述第一超声波接收器最近时反射的超声波信号,作为第一目标信号;获取所述第一目标信号的接收时间作为第一时间。第二时间确定模块330可以用于从第二超声波接收器接收到的被物体反射回的第二超声波信号中,确定所述物体距离所述第二超声波接收器最近时反射的超声波信号,作为第二目标信号;获取所述第二目标信号的接收时间作为第二时间。Optionally, the first time determining module 320 may be used to determine the ultrasonic wave reflected when the object is closest to the first ultrasonic receiver from the first ultrasonic signal received by the first ultrasonic receiver and reflected back by the object The signal is used as the first target signal; the receiving time of the first target signal is acquired as the first time. The second time determining module 330 may be used to determine the ultrasonic signal reflected when the object is closest to the second ultrasonic receiver from the second ultrasonic signal received by the second ultrasonic receiver and reflected back by the object, as the second ultrasonic signal Two target signals; acquiring the receiving time of the second target signal as the second time.
在本申请实施例中,在使用电子设备时,可以隔空操作电子设备,如手机播放视频时候,可以隔空操作手机,滑动切换视频播放上下首。相对于传统的方式,增加科技感以及 趣味性。并且,可以解决用户不方便触屏时操作,例如手上有脏东西不方便触屏(吃小龙虾时)可以辅助操控手机。In the embodiment of the present application, when the electronic device is used, the electronic device can be operated in an empty space. For example, when the mobile phone is playing a video, the mobile phone can be operated in an empty space to switch the video playback top and bottom by sliding. Compared with the traditional method, it increases the sense of technology and interest. In addition, it can solve the user's inconvenience to operate when touching the screen, for example, it is inconvenient to touch the screen (when eating crayfish) with dirty things on the hand, which can assist in controlling the mobile phone.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the device and module described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请实施例中各种实施方式都可以有对应的模块进行实现,本申请实施例中不再一一进行对应赘述。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. Various implementation modes in the embodiments of the present application may be implemented by corresponding modules, and the corresponding descriptions are not repeated in the embodiments of the present application.
请参考图11,其示出了本申请实施例提供的一种电子设备700的结构框图。该电子设备700可以是手机、平板电脑、电子书等电子设备。该电子设备700包括存储器710、处理器720、第一超声波发送器730、第一超声波接收器740、第二超声波发送器750以及第二超声波接收器760。所述存储器710、第一超声波发送器730、第一超声波接收器740、第二超声波发送器750以及第二超声波接收器760耦接到所述处理器720。所述第一超声波发送器730以及第二超声波发送器750用于发送超声波信号,所述第一超声波接收器740以及第二超声波接收器760用于接收超声波信号,所述存储器710存储指令。当所述指令由所述处理器720执行时,所述处理器执行上述一个或多个实施例所描述的方法。Please refer to FIG. 11, which shows a structural block diagram of an electronic device 700 according to an embodiment of the present application. The electronic device 700 may be an electronic device such as a mobile phone, a tablet computer, or an e-book. The electronic device 700 includes a memory 710, a processor 720, a first ultrasonic transmitter 730, a first ultrasonic receiver 740, a second ultrasonic transmitter 750, and a second ultrasonic receiver 760. The memory 710, the first ultrasonic transmitter 730, the first ultrasonic receiver 740, the second ultrasonic transmitter 750, and the second ultrasonic receiver 760 are coupled to the processor 720. The first ultrasonic transmitter 730 and the second ultrasonic transmitter 750 are used for transmitting ultrasonic signals, the first ultrasonic receiver 740 and the second ultrasonic receiver 760 are used for receiving ultrasonic signals, and the memory 710 stores instructions. When the instructions are executed by the processor 720, the processor executes the method described in one or more embodiments above.
处理器720可以包括一个或者多个处理核。处理器720利用各种接口和线路连接整个电子设备700内的各个部分,通过运行或执行存储在存储器710内的指令、程序、代码集或指令集,以及调用存储在存储器710内的数据,执行电子设备700的各种功能和处理数据。可选地,处理器720可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器720可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器720中,单独通过一块通信芯片进行实现。The processor 720 may include one or more processing cores. The processor 720 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 710, and calling data stored in the memory 710. Various functions and processing data of the electronic device 700. Optionally, the processor 720 may adopt 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 720 may be integrated with one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like. 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 720, but may be implemented by a communication chip alone.
存储器710可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器710可用于存储指令、程序、代码、代码集或指令集,如用于实现本申请实施例提供的电子设备控制方法的指令或代码集。存储器710可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令、用于实现上述各个方法实施例的指令等。存储数据区还可以电子设备在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 710 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 710 may be used to store instructions, programs, codes, code sets or instruction sets, such as instructions or code sets used to implement the electronic device control method provided in the embodiments of the present application. The memory 710 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing each of the foregoing method embodiments, and the like. The storage data area can also be data created by the electronic device in use (such as phone book, audio and video data, chat record data), etc.
请参考图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。 该计算机可读存储介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 12, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable storage medium 800 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer-readable storage medium 800 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 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has a storage space for the program code 810 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 810 may be compressed in a suitable 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 electronic device control method, characterized in that it is applied to an electronic device, and the electronic device includes a first ultrasonic transmitter and a first ultrasonic receiver provided on a first end of the electronic device, and a first ultrasonic receiver provided on the electronic device The second ultrasonic transmitter and the second ultrasonic receiver at the second end, the method includes:
    通过所述第一超声波发送器发送第一超声波信号,以及通过所述第二超声波发送器发送第二超声波信号;Sending a first ultrasound signal through the first ultrasound transmitter, and sending a second ultrasound signal through the second ultrasound transmitter;
    确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间,所述第一目标信号为被物体反射回的第一超声波信号中满足第一预设条件的信号;Determining a time when the first ultrasonic receiver receives a first target signal as the first time, where the first target signal is a signal that meets a first preset condition among the first ultrasonic signals reflected by the object;
    确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,所述第二目标信号为被物体反射回的第二超声波信号中满足第二预设条件的信号;Determining a time when the second ultrasonic receiver receives a second target signal as a second time, where the second target signal is a signal that meets a second preset condition among the second ultrasonic signals reflected by the object;
    获取所述第一时间以及第二时间的时间差对应的控制指令;Acquiring a control instruction corresponding to the time difference between the first time and the second time;
    根据所述控制指令执行对应的操作。Perform corresponding operations according to the control instructions.
  2. 根据权利要求1所述的方法,其特征在于,对应不同的应用程序存储指令表,所述指令表表示各个数值区间对应的所述应用程序的控制指令,所述获取所述第一时间以及第二时间的时间差对应的控制指令,根据所述控制指令执行对应的操作,包括:The method according to claim 1, wherein an instruction table is stored corresponding to different application programs, the instruction table represents control instructions of the application program corresponding to each numerical interval, and the first time and the first time are acquired. The control instruction corresponding to the time difference between the two times, executing corresponding operations according to the control instruction, includes:
    确定第一时间以及第二时间的差值所属数值区间;Determine the numerical interval of the difference between the first time and the second time;
    查找前台运行的应用程序对应的指令表中,所述差值所属数值区间对应的控制指令;Look up the control instruction corresponding to the numerical interval of the difference in the instruction table corresponding to the application program running in the foreground;
    根据查找到的控制指令执行对应的操作。Perform corresponding operations according to the found control instructions.
  3. 根据权利要求1或2所述的方法,其特征在于,所述获取所述第一时间以及第二时间的时间差对应的控制指令,根据所述控制指令执行对应的操作,包括:The method according to claim 1 or 2, wherein the obtaining a control instruction corresponding to the time difference between the first time and the second time, and executing a corresponding operation according to the control instruction, comprises:
    判断所述第一时间减去所述第二时间的差值所属数值区间;Judging the numerical interval of the difference value of the first time minus the second time;
    若所述差值属于正值区间,对当前显示内容执行第一方向的翻页操作;If the difference is within a positive interval, perform a page turning operation in the first direction on the currently displayed content;
    若所述差值属于负值区间,对当前显示内容执行第二方向的翻页操作,所述第二方向与所述第一方向相反。If the difference value belongs to a negative value interval, a page turning operation in a second direction is performed on the currently displayed content, and the second direction is opposite to the first direction.
  4. 根据权利要求3所述的方法,其特征在于,若当前显示的为阅读软件的阅读页面,所述第一方向的翻页操作为将阅读内容向第一方向翻页,所述第二方向的翻页操作为将阅读内容向第二方向翻页。The method of claim 3, wherein if the currently displayed page is a reading page of the reading software, the page turning operation in the first direction is to turn the reading content in the first direction, and the second direction The page turning operation is to turn pages of the reading content in the second direction.
  5. 根据权利要求3所述的方法,其特征在于,若当前显示的为短视频软件的短视频播放界面,所述第一方向的翻页操作为向第一方向切换视频,所述第二方向的翻页操作为向第二方向切换视频。The method of claim 3, wherein if the short video playback interface of the short video software is currently displayed, the page turning operation in the first direction is to switch the video in the first direction, and the second direction The page turning operation is to switch the video in the second direction.
  6. 根据权利要求3至5任一项所述的方法,其特征在于,所述第一端与所述第二端相对,所述第一方向为所述电子设备的所述第二端到所述第一端的方向,所述第二方向为所述电子设备的所述第一端到所述第二端的方向。The method according to any one of claims 3 to 5, wherein the first end is opposite to the second end, and the first direction is from the second end of the electronic device to the The direction of the first end, and the second direction is a direction from the first end to the second end of the electronic device.
  7. 根据权利要求3至6任一项所述的方法,其特征在于,所述数值区间还包括近零区间,所述近零区间为比零小预设值到比零大预设值之间的数据形成的区间,所述正值区间为近零区间以外且比零大的数值形成的区间,所述负值区间为近零区间以外且比零小的数值形成的区间,所述方法还包括:The method according to any one of claims 3 to 6, wherein the numerical interval further comprises a near-zero interval, and the near-zero interval is between a preset value smaller than zero and a preset value greater than zero An interval formed by data, the positive interval is an interval formed by a value outside the near-zero interval and greater than zero, and the negative interval is an interval formed by a numeric value outside the near-zero interval and smaller than zero, and the method further includes :
    若所述差值属于所述近零区间,将当前显示的视频由播放到暂停或由暂停到播放。If the difference belongs to the near-zero interval, the currently displayed video is changed from playing to pause or from pause to playing.
  8. 根据权利要求3至6任一项所述的方法,其特征在于,所述数值区间还包括近零区间,所述近零区间为比零小预设值到比零大预设值之间的数据形成的区间,所述正值区间为近零区间以外且比零大的数值形成的区间,所述负值区间为近零区间以外且比零小的数值形成的区间,所述方法还包括:The method according to any one of claims 3 to 6, wherein the numerical interval further comprises a near-zero interval, and the near-zero interval is between a preset value smaller than zero and a preset value greater than zero An interval formed by data, the positive interval is an interval formed by a value outside the near-zero interval and greater than zero, and the negative interval is an interval formed by a numeric value outside the near-zero interval and smaller than zero, and the method further includes :
    若所述差值属于所述近零区间,退出当前应用程序;或If the difference falls within the near-zero interval, exit the current application; or
    若所述差值属于所述近零区间,退出当前界面回到上一界面。If the difference belongs to the near-zero interval, exit the current interface and return to the previous interface.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,满足第一预设条件的信号表示物体刚好在屏幕上方滑过第一超声波接收器时所反射回的信号,满足第二预设条件的信号表示物体刚好在屏幕上方滑过第二超声波接收器时所反射回的信号。The method according to any one of claims 1 to 8, wherein the signal that satisfies the first preset condition represents the signal reflected back when the object slides over the first ultrasonic receiver just above the screen, and satisfies the second preset condition. The conditional signal represents the signal reflected back when the object slides over the second ultrasonic receiver just above the screen.
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间,包括:The method according to any one of claims 1 to 9, wherein the determining the time when the first ultrasonic receiver receives the first target signal as the first time comprises:
    从第一超声波接收器接收到的被物体反射回的第一超声波信号中确定频率最高的超声波信号,作为第一目标信号;Determine the highest frequency ultrasonic signal from the first ultrasonic signals reflected by the object received by the first ultrasonic receiver as the first target signal;
    获取所述第一目标信号的接收时间作为第一时间;Acquiring the receiving time of the first target signal as the first time;
    所述确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,包括:The determining the time when the second ultrasonic receiver receives the second target signal as the second time includes:
    从第二超声波接收器接收到的被物体反射回的第二超声波信号中确定频率最高的超声波信号,作为第二目标信号;Determine the highest frequency ultrasonic signal from the second ultrasonic signals reflected by the object received from the second ultrasonic receiver as the second target signal;
    获取所述第二目标信号的接收时间作为第二时间。Acquire the receiving time of the second target signal as the second time.
  11. 根据权利要求1至9任一项所述的方法,其特征在于,所述第一超声波发送器发送的第一频率的超声波信号,所述第二超声波发送器发送的第二频率的超声波信号,所述确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间,包括:The method according to any one of claims 1 to 9, wherein the first frequency ultrasonic signal sent by the first ultrasonic transmitter, and the second frequency ultrasonic signal sent by the second ultrasonic transmitter, The determining the time when the first ultrasonic receiver receives the first target signal as the first time includes:
    从第一超声波接收器接收到的被物体反射回的超声波信号中,确定的第一个频率小于所述第一频率的第一超声波信号,作为第一目标信号;Among the ultrasonic signals received by the first ultrasonic receiver and reflected back by the object, a first determined first ultrasonic signal with a frequency lower than the first frequency is used as the first target signal;
    获取所述第一目标信号的接收时间作为第一时间;Acquiring the receiving time of the first target signal as the first time;
    所述确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,包括:The determining the time when the second ultrasonic receiver receives the second target signal as the second time includes:
    从第二超声波接收器接收到的被物体反射回的第二超声波信号中,确定的第一个频率小于所述第二频率的超声波信号,作为第二目标信号;Among the second ultrasonic signals received from the second ultrasonic receiver and reflected by the object, the determined first ultrasonic signal with a frequency lower than the second frequency is used as the second target signal;
    获取所述第二目标信号的接收时间作为第二时间。Acquire the receiving time of the second target signal as the second time.
  12. 根据权利要求1至9任一项所述的方法,其特征在于,所述确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间,包括:The method according to any one of claims 1 to 9, wherein the determining the time when the first ultrasonic receiver receives the first target signal as the first time comprises:
    从第一超声波接收器接收到的被物体反射回的第一超声波信号中,确定所述物体距离所述第一超声波接收器最近时反射的第一超声波信号,作为第一目标信号;From the first ultrasonic signal reflected by the object received by the first ultrasonic receiver, determining the first ultrasonic signal reflected when the object is closest to the first ultrasonic receiver as the first target signal;
    获取所述第一目标信号的接收时间作为第一时间;Acquiring the receiving time of the first target signal as the first time;
    所述确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,包括:The determining the time when the second ultrasonic receiver receives the second target signal as the second time includes:
    从第二超声波接收器接收到的被物体反射回的第二超声波信号中,确定所述物体距离所述第二超声波接收器最近时反射的第二超声波信号,作为第二目标信号;Determining the second ultrasonic signal reflected by the object when the object is closest to the second ultrasonic receiver from the second ultrasonic signal received by the second ultrasonic receiver as the second target signal;
    获取所述第二目标信号的接收时间作为第二时间。Acquire the receiving time of the second target signal as the second time.
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:计算第一超声波接 收器接收到第一超声波信号的各个反射信号对应的物体的距离;以及The method according to claim 12, characterized in that the method further comprises: calculating the distance of the object corresponding to each reflected signal of the first ultrasonic signal received by the first ultrasonic receiver; and
    计算第二超声波接收器接收到第二超声波信号的的各个反射信号对应的物体的距离。Calculate the distance of the object corresponding to each reflected signal of the second ultrasonic signal received by the second ultrasonic receiver.
  14. 根据权利要求1至13任一项所述的方法,其特征在于,第一超声波信号以及第二超声波信号为不同频率的超声波信号,反射的第一超声波信号与第二超声波信号以及反射的第二超声波信号的频率不相同,反射的第二超声波信号与第一超声波信号以及反射的第一超声波信号的频率不相同。The method according to any one of claims 1 to 13, wherein the first ultrasonic signal and the second ultrasonic signal are ultrasonic signals of different frequencies, the reflected first ultrasonic signal and the second ultrasonic signal, and the reflected second ultrasonic signal The frequency of the ultrasonic signal is different, and the frequency of the reflected second ultrasonic signal is different from the frequency of the first ultrasonic signal and the reflected first ultrasonic signal.
  15. 根据权利要求1至14任一项所述的方法,其特征在于,对于任意一个超声波发送器,发送超声波信号的频率为,两个时间上相邻的超声波信号的发送时间间隔大于直达声从发送到接收所需时间,小于直达声从发送到接收所需时间的两倍,所述直达声为从超声波发送器发送直接被超声波接收器接收的超声波信号。The method according to any one of claims 1 to 14, characterized in that, for any ultrasonic transmitter, the frequency at which the ultrasonic signal is sent is such that the transmission time interval of two adjacent ultrasonic signals in time is greater than that of the direct sound slave. The time required to receive is less than twice the time required for the direct sound to be transmitted from transmission to reception, and the direct sound is an ultrasonic signal sent from an ultrasonic transmitter that is directly received by an ultrasonic receiver.
  16. 根据权利要求1至15任一项所述的方法,其特征在于,电子设备从超声波接收器接收到的超声波信号中分辨出直达声和反射声,其中,直达声为从超声波发送器发送直接被超声波接收器接收的超声波信号,反射声为超声波接收器接收到的被物体反射的超声波信号。The method according to any one of claims 1 to 15, wherein the electronic device distinguishes the direct sound and the reflected sound from the ultrasonic signal received by the ultrasonic receiver, wherein the direct sound is transmitted directly from the ultrasonic transmitter. The ultrasonic signal received by the ultrasonic receiver, and the reflected sound is the ultrasonic signal received by the ultrasonic receiver and reflected by the object.
  17. 根据权利要求16所述的方法,其特征在于,电子设备从超声波接收器接收到的超声波信号中分辨出直达声和反射声的方式包括如下一种或多种:The method according to claim 16, wherein the method for the electronic device to distinguish between the direct sound and the reflected sound from the ultrasonic signal received by the ultrasonic receiver includes one or more of the following:
    根据时间确定直达声和反射声;Determine the direct sound and reflected sound according to time;
    根据频率确定直达声和反射声;以及Determine direct sound and reflected sound based on frequency; and
    根据相位确定直达声和反射声。Determine the direct sound and reflected sound according to the phase.
  18. 一种电子设备控制装置,其特征在于,应用于电子设备,所述电子设备包括设置于所述电子设备第一端的第一超声波发送器以及第一超声波接收器,和设置于所述电子设备第二端的第二超声波发送器以及第二超声波接收器,所述装置包括:An electronic device control device, characterized in that it is applied to an electronic device, the electronic device includes a first ultrasonic transmitter and a first ultrasonic receiver provided on the first end of the electronic device, and a first ultrasonic receiver provided on the electronic device The second ultrasonic transmitter and the second ultrasonic receiver at the second end, the device includes:
    超声波发送模块,用于通过所述第一超声波发送器发送第一超声波信号,以及通过所述第二超声波发送器发送第二超声波信号;An ultrasonic transmitting module, configured to transmit a first ultrasonic signal through the first ultrasonic transmitter, and transmit a second ultrasonic signal through the second ultrasonic transmitter;
    第一时间确定模块,用于确定所述第一超声波接收器接收到第一目标信号的时间作为第一时间,所述第一目标信号为被物体反射回的第一超声波信号中满足第一预设条件的信号;The first time determining module is configured to determine the time when the first ultrasonic receiver receives the first target signal as the first time, and the first target signal is the first ultrasonic signal reflected by the object that satisfies the first preset Conditional signal;
    第二时间确定模块,用于确定所述第二超声波接收器接收到第二目标信号的时间作为第二时间,所述第二目标信号为被物体反射回的第二超声波信号中满足第二预设条件的信号;The second time determining module is configured to determine the time when the second ultrasonic receiver receives the second target signal as the second time, and the second target signal is the second ultrasonic signal reflected by the object that satisfies the second preset Conditional signal;
    指令获取模块,用于获取所述第一时间以及第二时间的时间差对应的控制指令;An instruction acquisition module, configured to acquire a control instruction corresponding to the time difference between the first time and the second time;
    控制模块,用于根据所述控制指令执行对应的操作。The control module is used to perform corresponding operations according to the control instructions.
  19. 一种电子设备,其特征在于,包括设置于所述电子设备第一端的第一超声波发送器以及第一超声波接收器,设置于所述电子设备第二端的第二超声波发送器以及第二超声波接收器,存储器以及处理器,所述第一端和所述第二端相对,An electronic device, which is characterized by comprising a first ultrasonic transmitter and a first ultrasonic receiver provided at the first end of the electronic device, and a second ultrasonic transmitter and a second ultrasonic receiver provided at the second end of the electronic device A receiver, a memory, and a processor, the first end is opposite to the second end,
    所述存储器、第一超声波发送器、第一超声波接收器、第二超声波发送器以及第二超声波接收器耦接到所述处理器,所述第一超声波发送器以及第二超声波发送器用于发送超声波信号,所述第一超声波接收器以及第二超声波接收器用于接收超声波信号,所述存储 器存储指令,当所述指令由所述处理器执行时,所述处理器执行如权利要求1-17任一项所述的方法。The memory, the first ultrasonic transmitter, the first ultrasonic receiver, the second ultrasonic transmitter, and the second ultrasonic receiver are coupled to the processor, and the first ultrasonic transmitter and the second ultrasonic transmitter are used for transmitting Ultrasonic signals, the first ultrasonic receiver and the second ultrasonic receiver are used to receive ultrasonic signals, the memory stores instructions, and when the instructions are executed by the processor, the processor executes as claimed in claims 1-17 Any one of the methods.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。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-17 .
PCT/CN2020/103291 2019-07-31 2020-07-21 Electronic device control method and apparatus, electronic device, and storage medium WO2021017945A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910701497.2A CN110519449B (en) 2019-07-31 2019-07-31 Electronic device control method and device, electronic device and storage medium
CN201910701497.2 2019-07-31

Publications (1)

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

Family

ID=68624763

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103291 WO2021017945A1 (en) 2019-07-31 2020-07-21 Electronic device control method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN110519449B (en)
WO (1) WO2021017945A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519449B (en) * 2019-07-31 2021-09-14 Oppo广东移动通信有限公司 Electronic device control method and device, electronic device and storage medium
CN113359139A (en) * 2020-03-03 2021-09-07 阿里巴巴集团控股有限公司 Intelligent device, switch device, electronic device and interaction device
CN113567991B (en) * 2020-04-28 2023-11-10 深圳市万普拉斯科技有限公司 Ultrasonic ranging method and device, readable storage medium and electronic equipment
CN111751786B (en) * 2020-07-01 2023-06-30 北京小米移动软件有限公司 Acoustic wave measurement method, acoustic wave measurement device, acoustic wave measurement equipment and storage medium
CN113037394B (en) * 2021-02-25 2023-06-02 Oppo广东移动通信有限公司 Communication connection method and device
CN113411139B (en) * 2021-07-23 2022-11-22 北京小米移动软件有限公司 Control method, control device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244055A (en) * 2014-08-29 2014-12-24 苏州触达信息技术有限公司 Real-time interaction method of multimedia devices within effective space range
US20160345113A1 (en) * 2015-05-22 2016-11-24 Samsung Electronics Co., Ltd. Method of recognizing surrounding environment and electronic device for the same
CN207894494U (en) * 2018-01-30 2018-09-21 广东永衡良品科技有限公司 A kind of electronic scale of gesture identification control
CN110519449A (en) * 2019-07-31 2019-11-29 Oppo广东移动通信有限公司 Control method of electronic device, device, electronic equipment and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7856883B2 (en) * 2008-03-24 2010-12-28 Industrial Technology Research Institute Capacitive ultrasonic sensors and display devices using the same
US8907929B2 (en) * 2010-06-29 2014-12-09 Qualcomm Incorporated Touchless sensing and gesture recognition using continuous wave ultrasound signals
CN102938820B (en) * 2012-12-03 2015-06-17 华为终端有限公司 Mobile phone proximity waking method and mobile phone proximity waking device
CN103885590A (en) * 2014-03-10 2014-06-25 可牛网络技术(北京)有限公司 Method and user equipment for obtaining user instructions
US9569006B2 (en) * 2014-04-10 2017-02-14 Mediatek Inc. Ultrasound-based methods for touchless gesture recognition, and apparatuses using the same
CN204028810U (en) * 2014-07-07 2014-12-17 长沙维汉信息科技有限公司 A kind of vehicle-carrying music player of Non-contact gesture manipulation
CN204028809U (en) * 2014-07-07 2014-12-17 长沙维汉信息科技有限公司 A kind of manipulation of the Non-contact gesture for mobile electronic device peripheral hardware
CN105242786A (en) * 2015-10-15 2016-01-13 广东欧珀移动通信有限公司 Ultrasonic wave-based application control method and device
CN105204650A (en) * 2015-10-22 2015-12-30 上海科世达-华阳汽车电器有限公司 Gesture recognition method, controller, gesture recognition device and equipment
CN106775411A (en) * 2016-12-24 2017-05-31 珠海市魅族科技有限公司 Display control method and system
CN107995365B (en) * 2017-11-30 2021-05-21 努比亚技术有限公司 Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium
CN108055412B (en) * 2017-12-29 2021-07-23 努比亚技术有限公司 Method of controlling mobile terminal, and computer-readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244055A (en) * 2014-08-29 2014-12-24 苏州触达信息技术有限公司 Real-time interaction method of multimedia devices within effective space range
US20160345113A1 (en) * 2015-05-22 2016-11-24 Samsung Electronics Co., Ltd. Method of recognizing surrounding environment and electronic device for the same
CN207894494U (en) * 2018-01-30 2018-09-21 广东永衡良品科技有限公司 A kind of electronic scale of gesture identification control
CN110519449A (en) * 2019-07-31 2019-11-29 Oppo广东移动通信有限公司 Control method of electronic device, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110519449B (en) 2021-09-14
CN110519449A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
WO2021017945A1 (en) Electronic device control method and apparatus, electronic device, and storage medium
TWI679552B (en) Unlocking control method and mobile terminal
CN107608558B (en) Mobile terminal having touch screen and method for providing user interface in mobile terminal
US8941625B2 (en) Control using movements
WO2020258106A1 (en) Gesture recognition method and device, and positioning and tracking method and device
CN110502109B (en) Information processing method, information processing device, electronic equipment and storage medium
WO2019105376A1 (en) Gesture recognition method, terminal and storage medium
CN109240551B (en) Method for controlling electronic device by using gestures and related product
WO2021017927A1 (en) Method and device for controlling apparatus, electronic apparatus, and storage medium
CN109669544B (en) Fingerprint area determination method and device, terminal and readable storage medium
CN104898844A (en) Gesture recognition and control device based on ultrasonic positioning and gesture recognition and control method based on ultrasonic positioning
WO2011104673A1 (en) Gesture control
US9176589B2 (en) Gesture recognition apparatus and method of gesture recognition
WO2021017859A1 (en) Screen state control method and apparatus, mobile terminal and storage medium
CN107765251B (en) Distance detection method and terminal equipment
CN109212534B (en) Method, device, equipment and storage medium for detecting holding gesture of mobile terminal
WO2021017943A1 (en) Ultrasonic processing method and apparatus, electronic device, and computer-readable medium
WO2021017855A1 (en) Ring processing method and apparatus, mobile terminal and storage medium
WO2022083620A1 (en) Signal transmission method and apparatus, and terminal device, smart device, and electronic device
WO2021017851A1 (en) Screen state control method and apparatus, mobile terminal and storage medium
CN109298791B (en) Terminal control method, device, storage medium and mobile terminal
US20230333205A1 (en) Sound source positioning method and apparatus
US20160313817A1 (en) Mouse pad with touch detection function
EP3282680B1 (en) Blowing action-based method for operating mobile terminal and mobile terminal
US10735106B2 (en) Mobile device with ultrasound ranging

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: 20846344

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: 20846344

Country of ref document: EP

Kind code of ref document: A1