[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110290576A - Control method of electronic device and device - Google Patents

Control method of electronic device and device Download PDF

Info

Publication number
CN110290576A
CN110290576A CN201910517116.5A CN201910517116A CN110290576A CN 110290576 A CN110290576 A CN 110290576A CN 201910517116 A CN201910517116 A CN 201910517116A CN 110290576 A CN110290576 A CN 110290576A
Authority
CN
China
Prior art keywords
module
electronic equipment
sound
time
ultrasonic signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910517116.5A
Other languages
Chinese (zh)
Inventor
乔文亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910517116.5A priority Critical patent/CN110290576A/en
Publication of CN110290576A publication Critical patent/CN110290576A/en
Pending legal-status Critical Current

Links

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
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • G01S15/08Systems for measuring distance only
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

The disclosure is directed to control method of electronic device and devices.This method comprises: the first sound module in controlling electronic devices emits the first ultrasonic signal, and obtain the first launch time that the first sound module emits the first ultrasonic signal;The first receiving time that the first sound receiving module receives first echo signal is obtained, first echo signal is the first ultrasonic signal reflected by testee;The first time obtained between the first receiving time and the first launch time is poor;According to poor the first measurement distance obtained between electronic equipment and testee at the first time.The technical solution can be under the premise of not needing to occupy exceptional space in electronic equipment and not increasing new module for electronic equipment, obtain the distance between electronic equipment and testee, to reduce the manufacturing cost of electronic equipment and reduce the volume of electronic equipment, user experience is improved.

Description

Control method of electronic device and device
Technical field
This disclosure relates to control technology field more particularly to control method of electronic device and device.
Background technique
With the development of technology, electronic equipment such as Intelligent mobile communication terminal, tablet computer, intelligence wearing is set in recent years Standby wait has appeared widely in people's lives.In use due to electronic equipment, it can emit radio wave, and one The radio wave divided can be absorbed by the body, therefore electronic equipment may generate radiation to human body.
In order to reduce electronic equipment to radiation caused by human body, it can reduce to the power that antenna exports and conduct function Rate.Since when reducing conducted power, the data-transformation facility or call function of electronic equipment will receive influence, therefore can lead to The distance between detection electronic equipment and other objects such as human body are crossed, only between electronic equipment and other objects such as human body Hypotelorism when, conducted power is reduced, to reduce electronic equipment to radiation caused by human body, to avoid other objects are worked as Such as human body not close to electronic equipment when electronic equipment data-transformation facility or call function be affected.
Summary of the invention
To overcome the problems in correlation technique, embodiment of the disclosure provides a kind of electronic equipment control method and dress It sets.Technical solution is as follows:
It is according to an embodiment of the present disclosure in a first aspect, provide a kind of electronic equipment control method, comprising:
The first sound module in controlling electronic devices emits the first ultrasonic signal, and obtains the transmitting of the first sound module First launch time of the first ultrasonic signal;
The first receiving time that the first sound receiving module receives first echo signal is obtained, first echo signal is by quilt Survey the first ultrasonic signal of object reflection;
The first time obtained between the first receiving time and the first launch time is poor;
According to poor the first measurement distance obtained between electronic equipment and testee at the first time.
In the technical scheme provided by this disclosed embodiment, pass through the first sound module in controlling electronic devices transmitting the One ultrasonic signal, and the first launch time that the first sound module emits the first ultrasonic signal is obtained, obtain the first sound Receiving module receives the first receiving time of first echo signal, obtain the first receiving time and between the first launch time the One time difference, according to poor the first measurement distance obtained between electronic equipment and testee at the first time.Wherein due to first Sound module and the first sound receiving module can be able to be for already present module in electronic equipment, such as the first sound module Earpiece module or loudspeaker module in electronic equipment, the first sound receiving module can be the microphone module in electronic equipment Deng, therefore the technical scheme provided by this disclosed embodiment, it can not need to occupy exceptional space in electronic equipment and not be Under the premise of electronic equipment increases new module, the distance between electronic equipment and testee are obtained, is set to reduce electronics Standby manufacturing cost and the volume for reducing electronic equipment, improve user experience.
In one embodiment, method further include:
The second sound module in controlling electronic devices emits the second ultrasonic signal, and obtains the transmitting of the second sound module Second launch time of the second ultrasonic signal, the first sound module are located at the first end of electronic equipment, the second sound module position In the second end of electronic equipment;
The second receiving time that second sound receiving module receives second echo signal is obtained, second echo signal is by quilt The second ultrasonic signal of object reflection is surveyed, the first sound receiving module is located at the first end of electronic equipment, and second sound receives Module is located at the second end of electronic equipment;
Obtain the second time difference between the second receiving time and the second launch time;
The second measurement distance between electronic equipment and testee is obtained according to the second time difference;
According to the first measurement distance and the second measurement distance obtain the nearest object between electronic equipment and testee away from From.
In one embodiment, method further include:
Targeted conduction power is obtained according to nearest object distance, targeted conduction power and nearest object distance are negatively correlated;
Antenna in controlling electronic devices works according to targeted conduction power.
In one embodiment, the first end of electronic equipment is the top of electronic equipment, and the second end of electronic equipment is electricity The bottom end of sub- equipment, the first sound module are earpiece module, and the second sound module is loudspeaker module, the first sound receiving module For the first microphone module, second sound receiving module is second microphone module.
Second aspect according to an embodiment of the present disclosure provides a kind of electronic equipment control device, comprising:
First ultrasonic signal transmitting module emits the first ultrasonic wave for the first sound module in controlling electronic devices Signal, and obtain the first launch time that the first sound module emits the first ultrasonic signal;
First receiving time obtains module, receive first echo signal for obtaining the first sound receiving module first Receiving time, first echo signal are the first ultrasonic signal reflected by testee;
Poor acquisition module at the first time, for obtaining the first time between the first receiving time and the first launch time Difference;
First measurement distance obtains module, for according to poor the obtained between electronic equipment and testee at the first time One measurement distance.
In one embodiment, device further include:
Second ultrasonic signal transmitting module emits the second ultrasonic wave for the second sound module in controlling electronic devices Signal, and the second launch time that the second sound module emits the second ultrasonic signal is obtained, the first sound module is located at electronics The first end of equipment, the second sound module are located at the second end of electronic equipment;
Second receiving time obtains module, receive second echo signal for obtaining second sound receiving module second Receiving time, second echo signal are the second ultrasonic signal reflected by testee, and the first sound receiving module is located at electricity The first end of sub- equipment, second sound receiving module are located at the second end of electronic equipment;
Second measurement distance obtains module, for obtaining the second time between the second receiving time and the second launch time Difference;
Second measurement distance obtains module, for obtaining the between electronic equipment and testee according to the second time difference Two measurement distances;
Nearest object distance obtains module, for according to the first measurement distance and the second measurement distance obtain electronic equipment with Nearest object distance between testee.
In one embodiment, device further include:
Targeted conduction power acquisition module, for obtaining targeted conduction power, targeted conduction function according to nearest object distance Rate and nearest object distance are negatively correlated;
Antenna control module works for the antenna in controlling electronic devices according to targeted conduction power.
In one embodiment, the first end of electronic equipment is the top of electronic equipment, and the second end of electronic equipment is electricity The bottom end of sub- equipment, the first sound module are earpiece module, and the second sound module is loudspeaker module, the first sound receiving module For the first microphone module, second sound receiving module is second microphone module.
The third aspect according to an embodiment of the present disclosure provides a kind of electronic equipment control device, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
The first sound module in controlling electronic devices emits the first ultrasonic signal, and obtains the transmitting of the first sound module First launch time of the first ultrasonic signal;
The first receiving time that the first sound receiving module receives first echo signal is obtained, first echo signal is by quilt Survey the first ultrasonic signal of object reflection;
The first time obtained between the first receiving time and the first launch time is poor;
According to poor the first measurement distance obtained between electronic equipment and testee at the first time.
Fourth aspect according to an embodiment of the present disclosure provides a kind of computer readable storage medium, is stored thereon with meter Calculation machine instruction, when which is executed by processor the step of any one of first aspect of realization embodiment of the disclosure method.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 a is the flow diagram of control method of electronic device shown according to an exemplary embodiment;
Fig. 1 b1 is the flow diagram of control method of electronic device shown according to an exemplary embodiment;
Fig. 1 b2 is the structural schematic diagram of electronic equipment shown according to an exemplary embodiment;
Fig. 1 c is the flow diagram of control method of electronic device shown according to an exemplary embodiment;
Fig. 2 a is the structural schematic diagram of electronic appliance controlling device shown according to an exemplary embodiment;
Fig. 2 b is the structural schematic diagram of electronic appliance controlling device shown according to an exemplary embodiment;
Fig. 2 c is the structural schematic diagram of electronic appliance controlling device shown according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of device shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
With the high speed development and continuous improvement of people's living standards of science and technology, electronic equipment is for example intelligent in recent years Communication terminal, tablet computer, intelligent wearable device etc. have appeared widely in people's lives.Since electronic equipment exists In use process, radio wave can be emitted, and the radio wave of a part can be absorbed by the body, therefore electronic equipment may be right Human body generates radiation.
In order to reduce electronic equipment to radiation caused by human body, it can reduce to the power that antenna exports and conduct function Rate.Since when reducing conducted power, the data-transformation facility or call function of electronic equipment will receive influence, therefore can lead to The distance between detection electronic equipment and other objects such as human body are crossed, only between electronic equipment and other objects such as human body Hypotelorism when, conducted power is reduced, to reduce electronic equipment to radiation caused by human body, to avoid other objects are worked as Such as human body not close to electronic equipment when electronic equipment data-transformation facility or call function be affected.
In the related technology, capacitance sensor can be set on an electronic device to detect the capacitance sensor and electronic equipment Capacitance between ground terminal, when other objects such as human body is close to mobile phone, which can become larger, therefore can be according to electricity Capacitance obtains the distance between electronic equipment and other objects such as human body.
Although above scheme is able to detect the distance between electronic equipment and other objects such as human body, since capacitor passes The higher cost of sensor, and need to occupy additional space in the electronic device, thus increase the manufacture of electronic equipment at This simultaneously increases the volume of electronic equipment, compromises user experience.
To solve the above-mentioned problems, in the technical scheme provided by this disclosed embodiment, by controlling electronic devices First sound module emits the first ultrasonic signal, and obtains the first transmitting that the first sound module emits the first ultrasonic signal Time obtains the first receiving time that the first sound receiving module receives first echo signal, obtains the first receiving time and the First time between one launch time is poor, according to poor the first measurement obtained between electronic equipment and testee at the first time Distance.Wherein since the first sound module and the first sound receiving module can be already present module in electronic equipment, such as First sound module can be the earpiece module or loudspeaker module in electronic equipment, and the first sound receiving module can be electronics Microphone module etc. in equipment, therefore the technical scheme provided by this disclosed embodiment can be set not needing occupancy electronics Standby middle exceptional space and under the premise of not increasing new module for electronic equipment, obtain between electronic equipment and testee away from From improving user experience to reduce the manufacturing cost of electronic equipment and reduce the volume of electronic equipment.
Embodiment of the disclosure provides a kind of electronic equipment control method, as shown in Figure 1a, include the following steps 101 to Step 104:
In a step 101, the first sound module in controlling electronic devices emits the first ultrasonic signal, and obtains first Sound module emits the first launch time of the first ultrasonic signal.
Illustratively, the first sound module can be the earpiece module on electronic equipment, or on electronic equipment Horn module.
In a step 102, the first receiving time that the first sound receiving module receives first echo signal is obtained.
Wherein, first echo signal is the first ultrasonic signal reflected by testee.
Illustratively, the first sound receiving module can be the microphone module on electronic equipment.
In step 103, it obtains the first receiving time and first time between the first launch time is poor.
At step 104, according to poor the first measurement distance obtained between electronic equipment and testee at the first time.
It illustratively, can be with according to poor the first measurement distance obtained between electronic equipment and testee at the first time For by the way that poor at the first time the first measurement distance will be obtained divided by 2 again multiplied by the aerial spread speed of ultrasonic wave.
It should be noted that when the distance between electronic equipment and testee are excessive, by the of testee reflection The signal strength of one ultrasonic signal may be too small, therefore electronic equipment possibly can not detect first echo signal.Therefore, if Detection finish time be still not detected first echo signal (wherein detect finish time after the first launch time, and with It is poor that time difference between first launch time is greater than or equal to delay detection time), it is determined that range measurement failure.Wherein, really Set a distance measurement unsuccessfully can be understood as the distance between electronic equipment and testee greater than at a distance from capable of being detected Limit, it is understood that lead to distance monitoring failure to be interfered in monitoring process.It, can be with after determining range measurement failure Corresponding range measurement failure information is produced, and shows the range measurement failure information;It, can also be with after determining range measurement failure It is carried out again after predetermined time period apart from monitoring, such as: it can be after determining the range measurement failure moment, when postponing one section Between after (can for default detection time interval), execute step 101 again and carry out apart from detection.
In the technical scheme provided by this disclosed embodiment, pass through the first sound module in controlling electronic devices transmitting the One ultrasonic signal, and the first launch time that the first sound module emits the first ultrasonic signal is obtained, obtain the first sound Receiving module receives the first receiving time of first echo signal, obtain the first receiving time and between the first launch time the One time difference, according to poor the first measurement distance obtained between electronic equipment and testee at the first time.Wherein due to first Sound module and the first sound receiving module can be able to be for already present module in electronic equipment, such as the first sound module Earpiece module or loudspeaker module in electronic equipment, the first sound receiving module can be the microphone module in electronic equipment Deng, therefore the technical scheme provided by this disclosed embodiment, it can not need to occupy exceptional space in electronic equipment and not be Under the premise of electronic equipment increases new module, the distance between electronic equipment and testee are obtained, is set to reduce electronics Standby manufacturing cost and the volume for reducing electronic equipment, improve user experience.
In one embodiment, as shown in Fig. 1 b1, the control method of electronic device that embodiment of the disclosure provides further includes Following steps 105 are to step 109:
In step 105, the second sound module in controlling electronic devices emits the second ultrasonic signal, and obtains second Sound module emits the second launch time of the second ultrasonic signal.
Wherein, the first sound module is located at the first end of electronic equipment, and the second sound module is located at the second of electronic equipment End.
Illustratively, Fig. 1 b2 is the structural schematic diagram of electronic equipment, and as shown in Fig. 1 b2, the first end of electronic equipment can be with For the top 11 of electronic equipment 10, the second end of electronic equipment can be the bottom end 12 of electronic equipment 10, and the first sound module can Think the earpiece module 13 that the top 11 of electronic equipment 10 is set, the second sound module can be that electronic equipment 10 is arranged in The loudspeaker module 14 of bottom end 12.
In step 106, the second receiving time that second sound receiving module receives second echo signal is obtained.
Wherein, second echo signal is the second ultrasonic signal reflected by testee, the first sound receiving module position In the first end of electronic equipment, second sound receiving module is located at the second end of electronic equipment.
Illustratively, Fig. 1 b2 is the structural schematic diagram of electronic equipment, and as shown in Fig. 1 b2, the first sound receiving module can be with For the first microphone module 15, second sound receiving module can be second microphone module 16, wherein the first microphone module 15 can be set on the top of electronic equipment 10 11, and second microphone module 16 can be set in the bottom end of electronic equipment 10 12.
It should be noted that the testee of the second ultrasonic signal of reflection, it can be with the first ultrasonic signal of reflection Testee is same object, or different objects, or the different piece for same object.For example, the first ultrasound of reflection The testee of wave signal can be the head of user, and the testee for reflecting the second ultrasonic signal can be the hand of user Arm.
In step 107, the second receiving time and the second time difference between the second launch time are obtained.
In step 108, the second measurement distance between electronic equipment and testee is obtained according to the second time difference.
In step 109, obtained between electronic equipment and testee according to the first measurement distance and the second measurement distance Nearest object distance.
It is exemplary, nearest object distance, it can be understood as the testee nearest apart from electronic equipment and electronic equipment it Between the distance between distance or the testee part nearest apart from electronic equipment and electronic equipment.
It should be noted that step 105 to the sequencing between step 108 and step 101 to step 104 can be mutual It is reverse.
Further, when being provided with three or more sound modules on electronic equipment and set with each generation module It sets in the sound receiving module of same side, can be controlled separately each sound module and is arranged with each sound module in phase Range measurement is carried out respectively to different directions centered on electronic equipment referring to above-described embodiment with the sound receiving module at end, And nearest object distance is obtained according to the measurement of different directions distance.For example, to be additionally provided with third sounding mould on electronic equipment It is illustrated for block and third sound receiving module, the control method of electronic device that embodiment of the disclosure provides can be with Include: the third sound module transmitting third ultrasonic signal in controlling electronic devices, and obtains third sound module transmitting the The third launch time of three ultrasonic signals, wherein third sound module is located at the third end of electronic equipment.Obtain third sound Receiving module receives the third receiving time of third echo-signal, and third echo-signal is the third ultrasound reflected by testee Wave signal, third sound receiving module are located at the third end of electronic equipment.Obtain third receiving time and third launch time it Between the third time difference;The third between electronic equipment and testee, which is obtained, according to the third time difference measures distance;According to One measurement distance, the second measurement distance and third measurement distance obtain the nearest object between electronic equipment and testee away from From.
Emit the second ultrasonic signal by the second sound module in controlling electronic devices, and obtains the second sound module Emit the second launch time of the second ultrasonic signal, obtain second sound receiving module reception second echo signal second connects Between time receiving, the second receiving time and the second time difference between the second launch time are obtained, electronics is obtained according to the second time difference The second measurement distance between equipment and testee, and electronic equipment is obtained according to the first measurement distance and the second measurement distance Nearest object distance between testee, can there are multiple testees and multiple testees around electronic equipment The distance between electronic equipment have differences or electronic equipment around there are the different piece of testee and testee When the distance between different piece and electronic equipment have differences, obtain nearest object between electronic equipment and testee away from From, i.e., the distance between testee nearest apart from electronic equipment and electronic equipment or testee apart from electronic equipment most The distance between close part and electronic equipment, in order to according to the work function of the nearest object distance adjustment electronic device antenna Rate, in order to make electronic equipment adjust the distance electronic equipment most under the premise of not influencing electronic equipment signal sending function as far as possible Radiation caused by close testee is met the requirements.
In one embodiment, as illustrated in figure 1 c, the control method of electronic device of embodiment of the disclosure offer further includes Following steps 110 are to step 111:
In step 110, targeted conduction power is obtained according to nearest object distance, targeted conduction power and nearest object away from From negative correlation.
In step 111, the antenna in controlling electronic devices works according to targeted conduction power.
Illustratively, targeted conduction power is obtained according to nearest object distance, nearest object distance can be being passed according to It leads in power data library and is inquired, to obtain targeted conduction power, wherein conducted power database be can serve to indicate that recently Corresponding relationship between object distance and targeted conduction power.For example, the corresponding mesh of nearest object distance of different value intervals It is different to mark conducted power, when nearest object distance is greater than or equal to unobstructed distance threshold, targeted conduction power can be positive Normal conducted power value, when antenna works according to normal conduction performance number, the signal sending function of electronic equipment, which not will receive, appoints What is influenced.When nearest object distance is less than or equal to human body close to distance threshold, targeted conduction power can be close for human body Conducted power value, wherein normal conduction performance number is greater than human body close to conducted power value.
By obtaining targeted conduction power according to nearest object distance, and the antenna in controlling electronic devices is passed according to target Power work is led, electronic equipment can be made to adjust the distance electronics under the premise of not influencing electronic equipment signal sending function as far as possible Radiation caused by the nearest testee of equipment is met the requirements, and reduces electronic equipment to radiation caused by user's body, from And improve user experience.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 2 a is the block diagram of a kind of electronic equipment control device 20 shown according to an exemplary embodiment, electronic equipment Control device 20 can may be a part of electronic equipment for electronic equipment, and electronic appliance controlling device 20 can be by soft Part, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in Figure 2 a, which controls Device 20 includes:
First ultrasonic signal transmitting module 201 the first surpasses for the first sound module transmitting in controlling electronic devices Acoustic signals, and obtain the first launch time that the first sound module emits the first ultrasonic signal.
First receiving time obtains module 202, receives first echo signal for obtaining the first sound receiving module First receiving time, first echo signal are the first ultrasonic signal reflected by testee.
Poor acquisition module 203 at the first time, when for obtaining first between the first receiving time and the first launch time Between it is poor.
First measurement distance obtains module 204, for according between first time poor acquisition electronic equipment and testee First measurement distance.
In one embodiment, as shown in Figure 2 b, electronic appliance controlling device 20 further include:
Second ultrasonic signal transmitting module 205 the second surpasses for the second sound module transmitting in controlling electronic devices Acoustic signals, and the second launch time that the second sound module emits the second ultrasonic signal is obtained, the first sound module is located at The first end of electronic equipment, the second sound module are located at the second end of electronic equipment.
Second receiving time obtains module 206, receives second echo signal for obtaining second sound receiving module Second receiving time, second echo signal are the second ultrasonic signal reflected by testee, the first sound receiving module position In the first end of electronic equipment, second sound receiving module is located at the second end of electronic equipment.
Second measurement distance obtains module 207, for obtaining second between the second receiving time and the second launch time Time difference.
Second measurement distance obtains module 208, for being obtained between electronic equipment and testee according to the second time difference Second measurement distance.
Nearest object distance obtains module 209, sets for obtaining electronics with the second measurement distance according to the first measurement distance The standby nearest object distance between testee.
In one embodiment, as shown in Figure 2 c, electronic appliance controlling device 20 further include:
Targeted conduction power acquisition module 210, for obtaining targeted conduction power, targeted conduction according to nearest object distance Power and nearest object distance are negatively correlated.
Antenna control module 211 works for the antenna in controlling electronic devices according to targeted conduction power.
In one embodiment, the first end of electronic equipment is the top of electronic equipment, and the second end of electronic equipment is electricity The bottom end of sub- equipment, the first sound module are earpiece module, and the second sound module is loudspeaker module.
In one embodiment, the first sound receiving module is the first microphone module, and second sound receiving module is the Two microphone modules.
Embodiment of the disclosure provides a kind of electronic equipment control device, which can pass through control The first sound module in electronic equipment emits the first ultrasonic signal, and obtains the first sound module and emit the first ultrasonic wave letter Number the first launch time, obtain the first sound receiving module receive first echo signal the first receiving time, obtain first First time between receiving time and the first launch time is poor, according to poor acquisitions electronic equipment at the first time and testee it Between first measurement distance.It can be wherein existing in electronic equipment with the first sound receiving module due to the first sound module Module, such as the first sound module can be the earpiece module or loudspeaker module in electronic equipment, and the first sound receives mould Block can be the microphone module etc. in electronic equipment, therefore the technical scheme provided by this disclosed embodiment, can be not required to Under the premise of occupying exceptional space in electronic equipment and not increasing new module for electronic equipment, electronic equipment and measured object are obtained The distance between body improves user's body to reduce the manufacturing cost of electronic equipment and reduce the volume of electronic equipment It tests.
Fig. 3 is the block diagram of a kind of electronic equipment control device 30 shown according to an exemplary embodiment, the electronic equipment Control device 30 can be terminal, or a part of terminal, electronic appliance controlling device 30 include:
Processor 301;
Memory 302 for 301 executable instruction of storage processor;
Wherein, processor 301 is configured as:
The first sound module in controlling electronic devices emits the first ultrasonic signal, and obtains the transmitting of the first sound module First launch time of the first ultrasonic signal;
The first receiving time that the first sound receiving module receives first echo signal is obtained, first echo signal is by quilt Survey the first ultrasonic signal of object reflection;
The first time obtained between the first receiving time and the first launch time is poor;
According to poor the first measurement distance obtained between electronic equipment and testee at the first time.
In one embodiment, above-mentioned processor 301 can be additionally configured to:
The second sound module in controlling electronic devices emits the second ultrasonic signal, and obtains the transmitting of the second sound module Second launch time of the second ultrasonic signal, the first sound module are located at the first end of electronic equipment, the second sound module position In the second end of electronic equipment;
The second receiving time that second sound receiving module receives second echo signal is obtained, second echo signal is by quilt The second ultrasonic signal of object reflection is surveyed, the first sound receiving module is located at the first end of electronic equipment, and second sound receives Module is located at the second end of electronic equipment;
Obtain the second time difference between the second receiving time and the second launch time;
The second measurement distance between electronic equipment and testee is obtained according to the second time difference;
According to the first measurement distance and the second measurement distance obtain the nearest object between electronic equipment and testee away from From.
In one embodiment, above-mentioned processor 301 can be additionally configured to:
Targeted conduction power is obtained according to nearest object distance, targeted conduction power and nearest object distance are negatively correlated;
Antenna in controlling electronic devices works according to targeted conduction power.
In one embodiment, above-mentioned processor 301 can be additionally configured to:
The first end of sub- equipment is the top of electronic equipment, and the second end of electronic equipment is the bottom end of electronic equipment, first Sound module is earpiece module, and the second sound module is loudspeaker module, and the first sound receiving module is the first microphone module, Second sound receiving module is second microphone module.
Embodiment of the disclosure provides a kind of electronic equipment control device, which can pass through control The first sound module in electronic equipment emits the first ultrasonic signal, and obtains the first sound module and emit the first ultrasonic wave letter Number the first launch time, obtain the first sound receiving module receive first echo signal the first receiving time, obtain first First time between receiving time and the first launch time is poor, according to poor acquisitions electronic equipment at the first time and testee it Between first measurement distance.It can be wherein existing in electronic equipment with the first sound receiving module due to the first sound module Module, such as the first sound module can be the earpiece module or loudspeaker module in electronic equipment, and the first sound receives mould Block can be the microphone module etc. in electronic equipment, therefore the technical scheme provided by this disclosed embodiment, can be not required to Under the premise of occupying exceptional space in electronic equipment and not increasing new module for electronic equipment, electronic equipment and measured object are obtained The distance between body improves user's body to reduce the manufacturing cost of electronic equipment and reduce the volume of electronic equipment It tests.
Fig. 4 is a kind of block diagram of device 400 for controlling electronic devices shown according to an exemplary embodiment, the dress It sets 400 and is suitable for electronic equipment.For example, device 400 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting set It is standby, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 400 may include following one or more components: processing component 402, memory 404, power supply module 406, Multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414 and communication component 416。
The integrated operation of the usual control device 400 of processing component 402, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 402 may include that one or more processors 420 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured not stored various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application or method for operating on device 400, contact data, and telephone book data disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 may include power management system System, one or more power supplys and other with for device 400 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between device 400 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense the side of touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, multimedia group Part 408 includes a front camera and/or rear camera.When device 400 is in operation mode, such as screening-mode or video When mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition Camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike Wind (MIC), when device 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set Part 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor module 414 can detecte the state that opens/closes of device 400, and the relative positioning of component, for example, it is described Component is the display and keypad of device 400, and sensor module 414 can be with 400 1 components of detection device 400 or device Position change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400 Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as intercom private network, WiFi, 2G, 3G, 4G or 5G or their group It closes.In one exemplary embodiment, communication component 416 receives the broadcast from external broadcasting management system via broadcast channel Signal or broadcast related information.In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) mould Block, to promote short range communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) skill can be based in NFC module Art, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 400 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 400 When device executes, so that device 400 is able to carry out above-mentioned control method of electronic device, which comprises
The first sound module in controlling electronic devices emits the first ultrasonic signal, and obtains the transmitting of the first sound module First launch time of the first ultrasonic signal;
The first receiving time that the first sound receiving module receives first echo signal is obtained, first echo signal is by quilt Survey the first ultrasonic signal of object reflection;
The first time obtained between the first receiving time and the first launch time is poor;
According to poor the first measurement distance obtained between electronic equipment and testee at the first time.
In one embodiment, method further include:
The second sound module in controlling electronic devices emits the second ultrasonic signal, and obtains the transmitting of the second sound module Second launch time of the second ultrasonic signal, the first sound module are located at the first end of electronic equipment, the second sound module position In the second end of electronic equipment;
The second receiving time that second sound receiving module receives second echo signal is obtained, second echo signal is by quilt The second ultrasonic signal of object reflection is surveyed, the first sound receiving module is located at the first end of electronic equipment, and second sound receives Module is located at the second end of electronic equipment;
Obtain the second time difference between the second receiving time and the second launch time;
The second measurement distance between electronic equipment and testee is obtained according to the second time difference;
According to the first measurement distance and the second measurement distance obtain the nearest object between electronic equipment and testee away from From.
In one embodiment, method further include:
Targeted conduction power is obtained according to nearest object distance, targeted conduction power and nearest object distance are negatively correlated;
Antenna in controlling electronic devices works according to targeted conduction power.
In one embodiment, the first end of electronic equipment is the top of electronic equipment, and the second end of electronic equipment is electricity The bottom end of sub- equipment, the first sound module are earpiece module, and the second sound module is loudspeaker module, the first sound receiving module For the first microphone module, second sound receiving module is second microphone module.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of electronic equipment control method characterized by comprising
The first sound module in controlling electronic devices emits the first ultrasonic signal, and obtains the first sound module transmitting First launch time of first ultrasonic signal;
The first receiving time that the first sound receiving module receives first echo signal is obtained, the first echo signal is by quilt Survey the first ultrasonic signal of object reflection;
The first time obtained between first receiving time and first launch time is poor;
According to the first time poor the first measurement distance obtained between the electronic equipment and testee.
2. control method of electronic device according to claim 1, which is characterized in that the method also includes:
The second sound module in controlling electronic devices emits the second ultrasonic signal, and obtains the second sound module transmitting Second launch time of second ultrasonic signal, first sound module are located at the first end of the electronic equipment, institute State the second end that the second sound module is located at the electronic equipment;
The second receiving time that second sound receiving module receives second echo signal is obtained, the second echo signal is by quilt The second ultrasonic signal of object reflection is surveyed, first sound receiving module is located at the first end of the electronic equipment, described Second sound receiving module is located at the second end of the electronic equipment;
Obtain the second time difference between second receiving time and second launch time;
The second measurement distance between the electronic equipment and testee is obtained according to second time difference;
It is obtained between the electronic equipment and testee most according to the first measurement distance and the second measurement distance Nearly object distance.
3. control method of electronic device according to claim 2, which is characterized in that the method also includes:
Targeted conduction power is obtained according to the nearest object distance, the targeted conduction power and the nearest object distance are negative It is related;
The antenna controlled in the electronic equipment works according to the targeted conduction power.
4. control method of electronic device according to claim 2, which is characterized in that the first end of the electronic equipment is institute The top of electronic equipment is stated, the second end of the electronic equipment is the bottom end of the electronic equipment, and first sound module is Earpiece module, second sound module are loudspeaker module;First sound receiving module is the first microphone module, institute Stating second sound receiving module is second microphone module.
5. a kind of electronic equipment control device characterized by comprising
First ultrasonic signal transmitting module emits the first ultrasonic wave letter for the first sound module in controlling electronic devices Number, and obtain the first launch time that first sound module emits first ultrasonic signal;
First receiving time obtains module, and the first reception of first echo signal is received for obtaining the first sound receiving module Time, the first echo signal are the first ultrasonic signal reflected by testee;
Poor acquisition module at the first time, when for obtaining first between first receiving time and first launch time Between it is poor;
First measurement distance obtains module, for according between the first time poor acquisition electronic equipment and testee First measurement distance.
6. electronic appliance controlling device according to claim 5, which is characterized in that described device further include:
Second ultrasonic signal transmitting module emits the second ultrasonic wave letter for the second sound module in controlling electronic devices Number, and the second launch time that second sound module emits second ultrasonic signal is obtained, the first sounding mould Block is located at the first end of the electronic equipment, and second sound module is located at the second end of the electronic equipment;
Second receiving time obtains module, and the second reception of second echo signal is received for obtaining second sound receiving module Time, the second echo signal are the second ultrasonic signal reflected by testee, first sound receiving module position In the first end of the electronic equipment, the second sound receiving module is located at the second end of the electronic equipment;
Second measurement distance obtains module, for obtaining second between second receiving time and second launch time Time difference;
Second measurement distance obtains module, for being obtained between the electronic equipment and testee according to second time difference Second measurement distance;
Nearest object distance obtains module, for obtaining the electricity according to the first measurement distance and the second measurement distance Nearest object distance between sub- equipment and testee.
7. electronic appliance controlling device according to claim 6, which is characterized in that described device further include:
Targeted conduction power acquisition module, for obtaining targeted conduction power according to the nearest object distance, the target is passed It leads power and the nearest object distance is negatively correlated;
Antenna control module works for controlling the antenna in the electronic equipment according to the targeted conduction power.
8. electronic appliance controlling device according to claim 6, which is characterized in that the first end of the electronic equipment is institute The top of electronic equipment is stated, the second end of the electronic equipment is the bottom end of the electronic equipment, and first sound module is Earpiece module, second sound module are loudspeaker module;First sound receiving module is the first microphone module, institute Stating second sound receiving module is second microphone module.
9. a kind of electronic equipment control device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first sound module in controlling electronic devices emits the first ultrasonic signal, and obtains the first sound module transmitting First launch time of first ultrasonic signal;
The first receiving time that the first sound receiving module receives first echo signal is obtained, the first echo signal is by quilt Survey the first ultrasonic signal of object reflection;
The first time obtained between first receiving time and first launch time is poor;
According to the first time poor the first measurement distance obtained between the electronic equipment and testee.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of any one of claim 1-4 the method is realized when execution.
CN201910517116.5A 2019-06-14 2019-06-14 Control method of electronic device and device Pending CN110290576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910517116.5A CN110290576A (en) 2019-06-14 2019-06-14 Control method of electronic device and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910517116.5A CN110290576A (en) 2019-06-14 2019-06-14 Control method of electronic device and device

Publications (1)

Publication Number Publication Date
CN110290576A true CN110290576A (en) 2019-09-27

Family

ID=68003892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910517116.5A Pending CN110290576A (en) 2019-06-14 2019-06-14 Control method of electronic device and device

Country Status (1)

Country Link
CN (1) CN110290576A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113679379A (en) * 2021-07-14 2021-11-23 深圳大学 Human body posture estimation method, device, equipment, system and medium based on sound waves
CN113709009A (en) * 2021-08-31 2021-11-26 北京小米移动软件有限公司 Device communication method, device, electronic device and storage medium
CN113890648A (en) * 2021-10-11 2022-01-04 荣耀终端有限公司 Method for detecting approach of life body to terminal equipment, terminal equipment and chip

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012063104A1 (en) * 2010-11-12 2012-05-18 Nokia Corporation Proximity detecting apparatus and method based on audio signals
US9198138B2 (en) * 2010-09-28 2015-11-24 Samsung Electronics Co., Ltd. Device and method for controlling power in mobile terminal
EP2983063A2 (en) * 2014-08-07 2016-02-10 Nxp B.V. Low-power environment monitoring and activation triggering for mobile devices through ultrasound echo analysis
CN105635477A (en) * 2016-01-13 2016-06-01 广东小天才科技有限公司 Non-radiation distance reminding method and system for mobile equipment
CN108206884A (en) * 2016-12-20 2018-06-26 北京小米移动软件有限公司 Terminal, the method for adjustment of terminal transmission signal of communication and electronic equipment
CN108881618A (en) * 2018-05-28 2018-11-23 Oppo广东移动通信有限公司 Reduce method, mobile terminal and its storage medium of electromagnetic wave specific absorption rate

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9198138B2 (en) * 2010-09-28 2015-11-24 Samsung Electronics Co., Ltd. Device and method for controlling power in mobile terminal
WO2012063104A1 (en) * 2010-11-12 2012-05-18 Nokia Corporation Proximity detecting apparatus and method based on audio signals
EP2983063A2 (en) * 2014-08-07 2016-02-10 Nxp B.V. Low-power environment monitoring and activation triggering for mobile devices through ultrasound echo analysis
CN105635477A (en) * 2016-01-13 2016-06-01 广东小天才科技有限公司 Non-radiation distance reminding method and system for mobile equipment
CN108206884A (en) * 2016-12-20 2018-06-26 北京小米移动软件有限公司 Terminal, the method for adjustment of terminal transmission signal of communication and electronic equipment
CN108881618A (en) * 2018-05-28 2018-11-23 Oppo广东移动通信有限公司 Reduce method, mobile terminal and its storage medium of electromagnetic wave specific absorption rate

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113679379A (en) * 2021-07-14 2021-11-23 深圳大学 Human body posture estimation method, device, equipment, system and medium based on sound waves
CN113679379B (en) * 2021-07-14 2024-06-04 深圳大学 Human body posture estimation method, device, equipment, system and medium based on sound wave
CN113709009A (en) * 2021-08-31 2021-11-26 北京小米移动软件有限公司 Device communication method, device, electronic device and storage medium
CN113890648A (en) * 2021-10-11 2022-01-04 荣耀终端有限公司 Method for detecting approach of life body to terminal equipment, terminal equipment and chip

Similar Documents

Publication Publication Date Title
CN106546969B (en) The method and device of ultrasonic wave calibration
CN111736147B (en) Detection device, detection method and device, and storage medium
CN104537365B (en) Touch key-press and fingerprint recognition implementation method, device and terminal device
CN106980486B (en) Method for controlling volume and device
WO2021037129A1 (en) Sound collection method and apparatus
CN106210294B (en) Screen state method for handover control and device
CN106385290B (en) Ultrasonic wave calibration method and device
CN107920263A (en) Volume adjusting method and device
CN106445242B (en) Pressure touch device and electronic equipment
EP3285049B1 (en) Method and device for microphone selection
CN109599104A (en) Multi-beam choosing method and device
CN110290576A (en) Control method of electronic device and device
CN108989687A (en) camera focusing method and device
CN106886019B (en) Distance measurement method and device
CN106357348B (en) Adjust the method and device of ultrasonic wave transmission power
CN108989494A (en) A kind of electronic equipment
CN106546970B (en) The ultrasonic wave calibration method and device of mobile device
CN105607738A (en) Single-hand mode determination method and apparatus
CN109088980A (en) Sounding control method, device, electronic device and computer-readable medium
CN109862169A (en) Control method of electronic device and device
CN109543666A (en) Structure light assembly control method and device
CN106772390B (en) The device and method of distance detection
CN110297543A (en) A kind of audio frequency playing method and terminal device
CN109803051A (en) Ambient brightness value-acquiring method and device
CN109862171A (en) Terminal equipment control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190927

RJ01 Rejection of invention patent application after publication