CN104656898A - Method for controlling distance sensor - Google Patents

Method for controlling distance sensor Download PDF

Info

Publication number
CN104656898A
CN104656898A CN201510073423.0A CN201510073423A CN104656898A CN 104656898 A CN104656898 A CN 104656898A CN 201510073423 A CN201510073423 A CN 201510073423A CN 104656898 A CN104656898 A CN 104656898A
Authority
CN
China
Prior art keywords
range sensor
frequency
transmitting terminal
signal transmitting
terminal
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
CN201510073423.0A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510073423.0A priority Critical patent/CN104656898A/en
Publication of CN104656898A publication Critical patent/CN104656898A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method for controlling a distance sensor. The method comprises the following steps of starting the distance sensor, and controlling a signal transmitting end of the distance sensor to send a pulse signal at first frequency; judging whether a receiving end of the distance sensor receives the pulse signal sent by the signal transmitting end of the distance sensor or not; when the receiving end of the distance sensor receives the pulse signal, adjusting the signal transmitting end of the distance sensor to send a pulse signal at second frequency. The method has the advantages that the transmitting frequency of the pulse signal of the sensor can be adjusted, and the consumption of electric amount of a terminal is decreased.

Description

A kind of control method of range sensor
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of control method of range sensor.
Background technology
Along with the universal of various mobile terminal and development, the function more and more diversification of mobile phone, brings colourful adventure in daily life to user.Present technology has developed into the function by contactless gesture manipulation mobile terminal.Such as, if mobile terminal does not receive any touch command within a certain period of time, in order to reduce the electric quantity consumption of mobile terminal, mobile terminal can enter locking mode automatically.Mobile terminal is after entering locking mode, outwards launch the infrared light moment by range sensor and detect whether receive gesture instruction, if gesture instruction detected, automatic unlocking, the direction that multiple range sensor induction gesture is gesticulated even can be set in mobile terminal, thus reach contactless manipulation mobile terminal, for the manipulation technology of mobile terminal brings qualitative leap.
Summary of the invention
The invention provides a kind of control method of range sensor, the frequency of adjustable sensor emission pulse signal, reduce the consumption of terminal power.
First aspect present invention provides a kind of control method of range sensor, comprising:
Start range sensor, the signal transmitting terminal controlling described range sensor sends pulse signal with first frequency;
Judge whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends;
When the receiving end of described range sensor detects, the signal transmitting terminal adjusting described range sensor sends pulse signal with second frequency.
Second aspect present invention provides a kind of control method of range sensor, comprising:
Start at least two range sensors, send pulse signal with the signal transmitting terminal of at least one range sensor at least two range sensors described in making with the 4th frequency;
Judge whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends;
When the receiving end of at least one range sensor described detects, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal.
Adopt the present invention, by starting range sensor, the signal transmitting terminal of command range sensor sends pulse signal with first frequency, whether the receiving end of judging distance sensor detects the pulse signal that the signal transmitting terminal of range sensor sends, when the receiving end of range sensor detects, the signal transmitting terminal of adjustment range sensor sends pulse signal with second frequency, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of an embodiment of the control method of a kind of range sensor of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another embodiment of the control method of a kind of range sensor of the embodiment of the present invention;
Fig. 3 is the sequential chart of the signal transmitting terminal transponder pulse signal of the range sensor of another embodiment of the control method of a kind of range sensor of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the 3rd embodiment of the control method of a kind of range sensor of the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the 4th embodiment of the control method of a kind of range sensor of the embodiment of the present invention;
Fig. 6 is the terminal schematic diagram of the 4th embodiment of the control method of a kind of range sensor of the embodiment of the present invention;
Fig. 7 is the sequential chart of the signal transmitting terminal transponder pulse signal of the range sensor of the 4th embodiment of the control method of a kind of range sensor of the embodiment of the present invention;
Fig. 8 is a kind of terminal structure schematic diagram of the embodiment of the present invention;
Fig. 9 is the structural representation of the another kind of terminal of the embodiment of the present invention;
Figure 10 is the structural representation of the third terminal of the embodiment of the present invention;
Figure 11 is the structural representation of the 4th kind of terminal of the embodiment of the present invention;
Figure 12 is the structural representation of the 5th kind of terminal of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Adopt the embodiment of the present invention, the frequency of adjustable sensor emission pulse signal, reduce the consumption of terminal power.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of an embodiment of the control method of a kind of range sensor of the embodiment of the present invention.Its subject of implementation is a kind of terminal with touch-screen, be specifically as follows the portable mobile terminals such as mobile phone, pad, portable computer, also can for undertaken by external touch screen displays work desktop computer, with the terminal with touch screen Presentation Function such as the Set Top Box of touch screen displays collaborative work or set-top box integrated machine.The range sensor that the present embodiment relates to is integrated in terminal, and the number of range sensor can be at least one.In addition, the pulse signal that the signal transmitting terminal of range sensor is launched can be the signal such as infrared light or ultrasound wave, and the present embodiment is that infrared light is specifically described with pulse signal.Terminal detects the direction of motion of non-contact object by range sensor, and such as detecting with the distance of terminal display screen is the direction of motion of the gesture of predeterminable range, thus according to the corresponding function of the corresponding operation control terminal of the direction of motion of gesture.
As shown in Figure 1, an embodiment of the control method of a kind of range sensor of the embodiment of the present invention can comprise the following steps.
S100, start range sensor, the signal transmitting terminal controlling described range sensor sends pulse signal with first frequency.
In specific implementation, the present embodiment is for single range sensor transponder pulse signal, and terminal, after the direction of motion of start detection gesture, starts range sensor, makes the signal transmitting terminal of range sensor launch infrared light with first frequency.Launch after infrared light with first frequency at the signal transmitting terminal of range sensor, the infrared light that the receiving end wait-receiving mode of range sensor is reflected back.Wherein, the signal transmitting terminal of range sensor launches the frequency of infrared light is launch the number of times of infrared light in the unit time.
As the enforceable mode of one, in order to improve sensitivity gesture being detected, range sensor can be controlled improve the number of times launching infrared light within the unit interval, launch infrared light with making range sensor high-frequency, the gesture that user makes can be detected quickly.
S101, judges whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends.
In specific implementation, after the signal transmitting terminal of range sensor launches infrared light, whether the receiving end of judging distance sensor receives the infrared light of reflection, if the receiving end of range sensor detects the infrared light of reflection, then illustrate that the infrared light that the signal transmitting terminal of range sensor is launched is reflected because running into shelter.
S102, when the receiving end of described range sensor detects, the signal transmitting terminal adjusting described range sensor sends pulse signal with second frequency.
In specific implementation, when the receiving end of range sensor detects the infrared light be reflected back, terminal receives the signal of range sensor transmission, and terminal then launches the frequency of infrared light according to the signal transmitting terminal of this signal adjustment range sensor.Concrete, user can not may make identical action when the function by gesture operation control terminal in the short time repeatedly, if still launch infrared light to high-frequency the infrared light of reflection detected at the receiving end of range sensor after, then can increase the electric quantity consumption of terminal, increase the pressure that terminal is powered.Therefore, in order to reduce the electric quantity consumption of terminal, the signal transmitting terminal of terminal Adjustable Range sensor launches the frequency of infrared light, the signal transmitting terminal of range sensor is launched the frequency control of infrared light at second frequency.Wherein, second frequency can be less than first frequency.After the receiving end of range sensor detects the infrared light that the signal transmitting terminal of range sensor is launched, the frequency that the signal transmitting terminal of range sensor launches infrared light is adjusted to the electric quantity consumption that second frequency can reduce terminal.
As the enforceable mode of one, second frequency can be zero, and namely the signal transmitting terminal of range sensor stops launching infrared light.
Adopt the embodiment of the present invention, by starting range sensor, the signal transmitting terminal of command range sensor sends pulse signal with first frequency, whether the receiving end of judging distance sensor detects the pulse signal that the signal transmitting terminal of range sensor sends, when the receiving end of range sensor detects, the signal transmitting terminal of adjustment range sensor sends pulse signal with second frequency, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another embodiment of the control method of a kind of range sensor of the embodiment of the present invention.Embodiment Fig. 2 further expands on the basis of embodiment Fig. 1.The present embodiment terminal detects the direction of motion of non-contact object by range sensor, and such as detecting with the distance of terminal display screen is the direction of motion of the gesture of predeterminable range, thus according to the corresponding function of the corresponding operation control terminal of the direction of motion of gesture.To be described in detail below.
As shown in Figure 2, another embodiment of the control method of a kind of range sensor of the embodiment of the present invention can comprise the following steps.
S200, start range sensor, the signal transmitting terminal controlling described range sensor sends pulse signal with first frequency.
In specific implementation, the present embodiment is still for single range sensor transponder pulse signal, and terminal, after the direction of motion of start detection gesture, starts range sensor, makes the signal transmitting terminal of range sensor launch infrared light with first frequency.Launch after infrared light with first frequency at the signal transmitting terminal of range sensor, the infrared light that the receiving end wait-receiving mode of range sensor is reflected back.Wherein, the signal transmitting terminal of range sensor launches the frequency of infrared light is launch the number of times of infrared light in the unit time.As shown in Figure 3, Fig. 3 is the sequential chart of range sensor transponder pulse signal, for the pulse signal launched for infrared light, first stage is that terminal startup range sensor launches infrared light with first frequency, suppose that its unit interval is 1 second, if range sensor sequential filming 4 times within the unit interval of first stage, then first frequency be 4 times per second.
As the enforceable mode of one, in order to improve sensitivity gesture being detected, range sensor can be controlled improve the number of times launching infrared light within the unit interval, launch infrared light with making range sensor high-frequency, the gesture that user makes can be detected quickly.
S201, judges whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends.
In specific implementation, after the signal transmitting terminal of range sensor launches infrared light, whether the receiving end of judging distance sensor receives the infrared light of reflection, if the receiving end of range sensor detects the infrared light of reflection, then illustrate that the infrared light that the signal transmitting terminal of range sensor is launched is reflected because running into shelter.
S202, when the receiving end of described range sensor detects, the signal transmitting terminal adjusting described range sensor sends pulse signal with second frequency.
In specific implementation, when the receiving end of range sensor detects the infrared light be reflected back, terminal receives the signal of range sensor transmission, and terminal then launches the frequency of infrared light according to the signal transmitting terminal of this signal adjustment range sensor.Concrete, user can not may make identical action when the function by gesture operation control terminal in the short time repeatedly, as user's possibility within the time of 2 seconds can not repeat the action of brandishing to the right, if still launch infrared light to high-frequency the infrared light of reflection therefore detected at the receiving end of range sensor after, then can increase the electric quantity consumption of terminal, increase the pressure that terminal is powered.In order to reduce the electric quantity consumption of terminal, the signal transmitting terminal of terminal Adjustable Range sensor launches the frequency of infrared light, the signal transmitting terminal of range sensor is launched the frequency control of infrared light at second frequency.Wherein, second frequency can be less than first frequency.As shown in Figure 3, when range sensor is after signal transmitting terminal transmitting infrared light 2 seconds, the receiving end of range sensor detected at the 3rd second the infrared light that signal transmitting terminal is launched, then reduce the frequency that signal transmitting terminal launches infrared light, with second frequency launch infrared light, wherein, second frequency can be 1 time per second, then terminal control sensor only launched 1 infrared light in the 3rd second, to reduce the electric quantity consumption of terminal.
As the enforceable mode of one, second frequency can be zero, and namely the signal transmitting terminal of range sensor stops launching infrared light, thus electric quantity consumption is dropped to minimum.
S203, judges whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends with described second frequency.
In specific implementation, by the receiving end of range sensor, whether terminal detects that the infrared light sent with second frequency carrys out the frequency of the signal transmitting terminal transmitting infrared light of command range sensor.If the receiving end of range sensor detects the infrared light that the signal transmitting terminal of range sensor is launched, then the signal transmitting terminal of terminal continuation command range sensor launches infrared light with second frequency; If the receiving end of range sensor does not detect the infrared light that the signal transmitting terminal of range sensor is launched, then terminal is after waiting for the time range preset, and the signal transmitting terminal of command range sensor launches infrared light with the 3rd frequency.
S204, when the receiving end of described range sensor does not detect, after the time range waiting for setting, the signal transmitting terminal adjusting described range sensor sends pulse signal with described 3rd frequency.
In specific implementation, terminal is after the signal transmitting terminal of command range sensor launches infrared light with second frequency, and whether the receiving end of judging distance sensor detects the infrared light that the signal transmitting terminal of range sensor is launched.When the receiving end of range sensor does not detect the infrared light of signal transmitting terminal transmitting of range sensor, the signal transmitting terminal of terminal control range sensor launches infrared light with second frequency in the time range of setting.Such as, user is after making a gesture to the display screen of terminal, next gesture may be made after 2 seconds, therefore as shown in Figure 3, the time range that terminal can launch infrared light according to the signal transmitting terminal of the behavioural habits setpoint distance sensor of user with second frequency (1 time per second) is 2 seconds.When the signal transmitting terminal of terminal command range sensor after the 3rd second launches infrared light with second frequency, receiving end due to range sensor does not detect the infrared light that the signal transmitting terminal of range sensor is launched, and the signal transmitting terminal that therefore terminal controls range sensor within the time of the 3rd second to the 4th second launches infrared light with second frequency.After 2 seconds, the signal transmitting terminal of terminal command range sensor again launches infrared light with the 3rd frequency, recovers the sensitivity of range sensor.Wherein the 3rd frequency is greater than second frequency.
As the enforceable mode of one, the 3rd frequency can be equal with first frequency, then, in figure 3, the 5th second time, the signal transmitting terminal of terminal control range sensor is by per second to 4 times for the frequency retrieval launching infrared light.
S205, adjusts the time range of described setting according to the time interval between the pulse signal that the double signal transmitting terminal receiving described range sensor of the receiving end of described range sensor sends.
In specific implementation, terminal also can according to the scope of the behavioural habits adjustment setting of user.Terminal is when performing above-mentioned steps, no matter which kind of frequency to launch infrared light with, once the infrared light that the double signal transmitting terminal receiving range sensor of the receiving end of range sensor sends, the receiving end that terminal can record this twice range sensor respectively receives the time point of infrared light, and calculates the time interval between above-mentioned two time points.Such as, as shown in Figure 3, terminal is when the signal transmitting terminal starting range sensor launches the 3rd second of infrared light, the receiving end of range sensor detects the infrared light that the signal transmitting terminal of range sensor is launched, then after the 3rd second, the signal transmitting terminal of terminal control range sensor launches infrared light with second frequency.Receiving end due to range sensor does not detect the infrared light that the signal transmitting terminal of range sensor is launched the 3rd second time, therefore after the time range of setting (time range of wait is set as 2 seconds by above-mentioned steps), the signal transmitting terminal of terminal controllable distance sensor the 5th second time launches infrared light with the 3rd frequency, if the receiving end of range sensor detects the infrared light that the signal transmitting terminal of range sensor is launched the 6th second time, then terminal record the 3rd second and the 6th second these two time points, calculating the time interval receiving infrared light for twice is 3 seconds, and the signal transmitting terminal of command range sensor continues to launch infrared light with second frequency.Last terminal adjusts the time range of setting according to the time interval repeatedly got, and makes the signal transmitting terminal of range sensor switch the time point of frequency launching infrared light and more to fit the behavioural habits of user.
Adopt the embodiment of the present invention, by starting range sensor, the signal transmitting terminal of command range sensor sends pulse signal with first frequency, whether the receiving end of judging distance sensor detects the pulse signal that the signal transmitting terminal of range sensor sends, when the receiving end of range sensor detects, the signal transmitting terminal of adjustment range sensor sends pulse signal with second frequency, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Refer to Fig. 4, Fig. 4 is the schematic flow sheet of the 3rd embodiment of the control method of a kind of range sensor of the embodiment of the present invention.The present embodiment terminal detects the direction of motion of non-contact object by range sensor, and such as detecting with the distance of terminal display screen is the direction of motion of the gesture of predeterminable range, thus according to the corresponding function of the corresponding operation control terminal of the direction of motion of gesture.In addition, the terminal of the present embodiment can comprise at least two range sensors.In addition, the pulse signal that the signal transmitting terminal of range sensor is launched can be the signal such as infrared light or ultrasound wave, and the present embodiment is that infrared light is specifically described with pulse signal.
As shown in Figure 4, the 3rd embodiment of the control method of a kind of range sensor of the embodiment of the present invention can comprise the following steps.
S400, starts at least two range sensors, sends pulse signal with the signal transmitting terminal of at least one range sensor at least two range sensors described in making with the 4th frequency.
In specific implementation, in order to the direction of motion of user's gesture can be detected more accurately, in terminal, at least two range sensors can be set, and the signal transmitting terminal controlling wherein at least one range sensor launches infrared light with the 4th frequency.This enforcement is to arrange two sensors in terminal, comprising the first range sensor and second distance sensor, the signal transmitting terminal that terminal can control the first range sensor and second distance sensor all launches infrared light with the 4th frequency.
S401, judges whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends.
In specific implementation, terminal can judge whether the receiving end of the first range sensor and second distance sensor detects the infrared light that the signal transmitting terminal of the first range sensor and second distance sensor is launched with the 4th frequency respectively.
S402, when the receiving end of at least one range sensor described detects, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal.
In specific implementation, if the receiving end of wherein any one range sensor of the first range sensor and second distance sensor detects the infrared light that the signal transmitting terminal of self is launched, the frequency of the infrared light of the signal transmitting terminal transmitting of terminal adjustable first range sensor and second distance sensor.Concrete, user can not make identical action when the function by gesture operation control terminal in the short time repeatedly, as user can not repeat the action of brandishing to the right within the time of 2 seconds, if still launch infrared light to high-frequency the infrared light of reflection therefore detected at the receiving end of range sensor after, the electric quantity consumption of terminal can be increased, and increase the pressure that terminal powers.In order to reduce the electric quantity consumption of terminal, the frequency of the transmitting infrared light after adjustment can be less than the 4th frequency, to reduce the energy ezpenditure of battery.
As the enforceable mode of one, the frequency of the transmitting infrared light after adjustment can be zero, and namely the signal transmitting terminal of range sensor stops launching infrared light.
Adopt the embodiment of the present invention, by starting at least two range sensors, pulse signal is sent with the 4th frequency to make the signal transmitting terminal of at least one range sensor at least two range sensors, judge whether the receiving end of at least one range sensor detects the pulse signal that the signal transmitting terminal of each range sensor sends, when the receiving end of at least one range sensor detects, the signal transmitting terminal of adjustment at least two range sensors sends the frequency of pulse signal, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Refer to Fig. 5, Fig. 5 is the schematic flow sheet of the 4th embodiment of the control method of a kind of range sensor of the embodiment of the present invention.The present embodiment terminal detects the direction of motion of non-contact object by range sensor, and such as detecting with the distance of terminal display screen is the direction of motion of the gesture of predeterminable range, thus according to the corresponding function of the corresponding operation control terminal of the direction of motion of gesture.In addition, the terminal of the present embodiment can comprise at least two range sensors, is detected upper and lower, the left and right direction of motion of gesture by least two range sensors.Be described in detail below in conjunction with at least two sensors.In addition, the pulse signal that the signal transmitting terminal of range sensor is launched can be the signal such as infrared light or ultrasound wave, and the present embodiment is that infrared light is specifically described with pulse signal.
As shown in Figure 5, the 4th embodiment of the control method of a kind of range sensor of the embodiment of the present invention can comprise the following steps.
S500, starts at least two range sensors, sends pulse signal with the signal transmitting terminal of at least one range sensor at least two range sensors described in making with the 4th frequency.
In specific implementation, in order to the direction of motion of user's gesture can be detected more accurately, in terminal, at least two range sensors can be set, and the signal transmitting terminal controlling wherein at least one range sensor launches infrared light with the 4th frequency.This enforcement is to arrange three sensors in terminal, as shown in Figure 6, wherein terminal built-in has the first range sensor, second distance sensor and the 3rd range sensor, wherein, first range sensor, second distance sensor and the 3rd range sensor are distributed in three sides in terminal display screen, the first range sensor, second distance sensor and the 3rd range sensor are distributed in upper and lower, the left and right direction of motion of three side identifiable design gestures in terminal display screen.The signal transmitting terminal that terminal can control the first range sensor, second distance sensor and the 3rd range sensor all launches infrared light with the 4th frequency.
S501, judges whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends.
In specific implementation, as shown in Figure 6, when user makes downward gesture relative to terminal, whether the receiving end of at least one range sensor that terminal can judge in the first range sensor, second distance sensor and the 3rd range sensor detects the infrared light that respective signal transmitting terminal is launched with the 4th frequency respectively.
S502, when the receiving end of at least one range sensor described detects, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal to the 5th frequency.
In specific implementation, when user makes downward gesture relative to the display screen of terminal, the receiving end of the first range sensor and second distance sensor can detect prior to the receiving end of the 3rd range sensor the infrared light that the signal transmitting terminal of self is launched.Because user is when making downward gesture relative to terminal, the receiving end of the first range sensor and the receiving end of second distance sensor detect that the time of the infrared light that respective signal transmitting terminal is launched may be inconsistent, therefore when the receiving end of the first range sensor and the receiving end of second distance sensor detect the infrared light of respective signal transmitting terminal transmitting in Preset Time (mistiming that the receiving end of the first range sensor and the receiving end of second distance sensor receive the infrared light that respective transmitting terminal is launched can ignore), terminal can by the first range sensor, the frequency of the signal transmitting terminal transmitting infrared light of second distance sensor and the 3rd range sensor is all adjusted to the 5th frequency.Wherein, the 5th frequency can be less than the 4th frequency.As shown in Figure 7, when the first range sensor and second distance sensor are after respective signal transmitting terminal transmitting infrared light 2 seconds, the receiving end of the first range sensor and the receiving end of second distance sensor detected the infrared light that respective signal transmitting terminal is launched at the 3rd second, then terminal control first range sensor, second distance sensor and the 3rd range sensor signal transmitting terminal separately reduces the frequency of launching infrared light, infrared light is launched with the 5th frequency, wherein, 5th frequency can be 1 time per second, then terminal control first range sensor, second distance sensor and the 3rd range sensor only launched 1 infrared light in the 3rd second, thus reduce the electric quantity consumption of terminal.
As the enforceable mode of one, the 5th frequency can be zero, and namely the signal transmitting terminal of range sensor stops launching infrared light, thus electric quantity consumption is dropped to minimum.
S503, judges whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends with described 5th frequency.
In specific implementation, whether terminal detects by the first range sensor and second distance sensor receiving end separately the infrared light that respective signal transmitting terminal sends with the 5th frequency, controls the frequency that the first range sensor, second distance sensor and the 3rd range sensor signal transmitting terminal separately launches infrared light.If at least one range sensor in the first range sensor, second distance sensor and the 3rd range sensor detects the infrared light that the signal transmitting terminal of self is launched, then terminal continues control first range sensor, second distance sensor and the 3rd range sensor signal transmitting terminal separately with the 5th frequency transmitting infrared light; If the first range sensor, second distance sensor and the 3rd range sensor all do not detect the infrared light that respective signal transmitting terminal is launched, then terminal is after waiting for the time range preset, and the signal transmitting terminal controlling at least one range sensor in the first range sensor, second distance sensor and the 3rd range sensor launches infrared light with the 6th frequency.
S504, when the receiving end of at least one range sensor described does not detect, after the time range waiting for setting, the signal transmitting terminal of adjustment at least one range sensor described sends the frequency of described pulse signal to described 6th frequency.
In specific implementation, the frequency that the signal transmitting terminal of at least one range sensor can be launched infrared light by the present embodiment is adjusted to the 6th frequency, and this enforcement is then all adjusted to the 6th frequency with the frequency of above-mentioned three range sensors signal transmitting terminal separately being launched infrared light and is illustrated.
In specific implementation, when the first range sensor, second distance sensor and the 3rd range sensor receiving end separately do not detect the infrared light of respective signal transmitting terminal transmitting, terminal control first range sensor, second distance sensor and the 3rd range sensor signal transmitting terminal separately launch infrared light with the 5th frequency in the time range of setting.Such as, user is after making a gesture to the display screen of terminal, next gesture may be made after 2 seconds, therefore as shown in Figure 7, the time range that terminal can launch infrared light according to the signal transmitting terminal of the behavioural habits setpoint distance sensor of user with the 5th frequency (1 time per second) is 2 seconds.When terminal controlled three range sensors signal transmitting terminal separately with the 5th frequency transmitting infrared light afterwards at the 3rd second, because three range sensors receiving end separately does not all detect the infrared light that respective signal transmitting terminal is launched, therefore terminal controls three range sensors signal transmitting terminal separately with the 5th frequency transmitting infrared light within the time of the 3rd second to the 4th second.After 2 seconds, terminal controls three range sensors signal transmitting terminal separately again and launches infrared light with the 6th frequency, recovers the sensitivity of range sensor.Wherein the 6th frequency is greater than the 5th frequency.
As the enforceable mode of one, the 6th frequency can be equal with the 4th frequency, then, in the figure 7, the 5th second time, the frequency retrieval that respective signal transmitting terminal is launched infrared light by terminal control three range sensors is per second to 4 times.
Adopt the embodiment of the present invention, by starting at least two range sensors, pulse signal is sent with the 4th frequency to make the signal transmitting terminal of at least one range sensor at least two range sensors, judge whether the receiving end of at least one range sensor detects the pulse signal that the signal transmitting terminal of each range sensor sends, when the receiving end of at least one range sensor detects, the signal transmitting terminal of adjustment at least two range sensors sends the frequency of pulse signal, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Refer to Fig. 8, Fig. 8 is a kind of terminal structure schematic diagram of the embodiment of the present invention.Terminal as shown in Figure 8 can comprise the first start unit 800, first judging unit 801 and the first adjustment unit 802.
First start unit 800, for starting range sensor, the signal transmitting terminal controlling described range sensor sends pulse signal with first frequency;
First judging unit 801, for judging whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends;
First adjustment unit 802, for when the judged result of described first judging unit 801 is for being, the signal transmitting terminal adjusting described range sensor sends pulse signal with second frequency.
In specific implementation, the present embodiment is still for single range sensor transponder pulse signal, and terminal, after the direction of motion of start detection gesture, starts range sensor, makes the signal transmitting terminal of range sensor launch infrared light with first frequency.Launch after infrared light with first frequency at the signal transmitting terminal of range sensor, the infrared light that the receiving end wait-receiving mode of range sensor is reflected back.Wherein, the signal transmitting terminal of range sensor launches the frequency of infrared light is launch the number of times of infrared light in the unit time.As shown in Figure 3, Fig. 3 is the sequential chart of range sensor transponder pulse signal, for the pulse signal launched for infrared light, first stage is that terminal startup range sensor launches infrared light with first frequency, suppose that its unit interval is 1 second, if range sensor sequential filming 4 times within the unit interval of first stage, then first frequency be 4 times per second.
As the enforceable mode of one, in order to improve sensitivity gesture being detected, range sensor can be controlled improve the number of times launching infrared light within the unit interval, launch infrared light with making range sensor high-frequency, the gesture that user makes can be detected quickly.
In specific implementation, after the signal transmitting terminal of range sensor launches infrared light, whether the receiving end of judging distance sensor receives the infrared light of reflection, if the receiving end of range sensor detects the infrared light of reflection, then illustrate that the infrared light that the signal transmitting terminal of range sensor is launched is reflected because running into shelter.
In specific implementation, when the receiving end of range sensor detects the infrared light be reflected back, terminal receives the signal of range sensor transmission, and terminal then launches the frequency of infrared light according to the signal transmitting terminal of this signal adjustment range sensor.Concrete, user can not may make identical action when the function by gesture operation control terminal in the short time repeatedly, as user's possibility within the time of 2 seconds can not repeat the action of brandishing to the right, if still launch infrared light to high-frequency the infrared light of reflection therefore detected at the receiving end of range sensor after, then can increase the electric quantity consumption of terminal, increase the pressure that terminal is powered.In order to reduce the electric quantity consumption of terminal, terminal can reduce the frequency of the signal transmitting terminal transmitting infrared light of range sensor, the signal transmitting terminal of range sensor is launched the frequency control of infrared light at second frequency.Wherein, second frequency can be less than first frequency.As shown in Figure 3, when range sensor is after signal transmitting terminal transmitting infrared light 2 seconds, the receiving end of range sensor detected at the 3rd second the infrared light that signal transmitting terminal is launched, then reduce the frequency that signal transmitting terminal launches infrared light, with second frequency launch infrared light, wherein, second frequency can be 1 time per second, then terminal control sensor only launched 1 infrared light in the 3rd second, to reduce the electric quantity consumption of terminal.
As the enforceable mode of one, second frequency can be zero, and namely the signal transmitting terminal of range sensor stops launching infrared light, thus electric quantity consumption is dropped to minimum.
As the enforceable mode of one, described first judging unit 801, also for judging whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends with described second frequency;
Described first adjustment unit 802, also for when the judged result of described first judging unit 801 is no, the signal transmitting terminal adjusting described range sensor sends pulse signal with the 3rd frequency.
In specific implementation, by the receiving end of range sensor, whether terminal detects that the infrared light sent with second frequency carrys out the frequency of the signal transmitting terminal transmitting infrared light of command range sensor.If the receiving end of range sensor detects the infrared light that the signal transmitting terminal of range sensor is launched, then the signal transmitting terminal of terminal continuation command range sensor launches infrared light with second frequency; If the receiving end of range sensor does not detect the infrared light that the signal transmitting terminal of range sensor is launched, then terminal is after waiting for the time range preset, and the signal transmitting terminal of command range sensor launches infrared light with the 3rd frequency.
As the enforceable mode of one, described first adjustment unit 802, also for when the judged result of described first judging unit 801 is no, after the time range waiting for setting, the signal transmitting terminal adjusting described range sensor sends pulse signal with described 3rd frequency.
In specific implementation, terminal is after the signal transmitting terminal of command range sensor launches infrared light with second frequency, and whether the receiving end of judging distance sensor detects the infrared light that the signal transmitting terminal of range sensor is launched.When the receiving end of range sensor does not detect the infrared light of signal transmitting terminal transmitting of range sensor, the signal transmitting terminal of terminal control range sensor launches infrared light with second frequency in the time range of setting.Such as, user is after making a gesture to the display screen of terminal, next gesture may be made after 2 seconds, therefore as shown in Figure 3, the time range that terminal can launch infrared light according to the signal transmitting terminal of the behavioural habits setpoint distance sensor of user with second frequency (1 time per second) is 2 seconds.When the signal transmitting terminal of terminal command range sensor after the 3rd second launches infrared light with second frequency, receiving end due to range sensor does not detect the infrared light that the signal transmitting terminal of range sensor is launched, and the signal transmitting terminal that therefore terminal controls range sensor within the time of the 3rd second to the 4th second launches infrared light with second frequency.After 2 seconds, the signal transmitting terminal of terminal command range sensor again launches infrared light with the 3rd frequency, recovers the sensitivity of range sensor.Wherein the 3rd frequency is greater than second frequency.
As the enforceable mode of one, the 3rd frequency can be equal with first frequency, then, in figure 3, the 5th second time, the signal transmitting terminal of terminal control range sensor is by per second to 4 times for the frequency retrieval launching infrared light.
As the enforceable mode of one, described 3rd frequency is equal with described first frequency.
As the enforceable mode of one, as shown in Figure 9, described terminal also comprises the second adjustment unit 803.
Second adjustment unit 803, for adjusting the time range of described setting according to the time interval between the double pulse signal receiving the signal transmitting terminal transmission of described range sensor of the receiving end of described range sensor.
In specific implementation, terminal also can according to the scope of the behavioural habits adjustment setting of user.Terminal is when performing above-mentioned steps, no matter which kind of frequency to launch infrared light with, once the infrared light that the double signal transmitting terminal receiving range sensor of the receiving end of range sensor sends, the receiving end that terminal can record this twice range sensor respectively receives the time point of infrared light, and calculates the time interval between above-mentioned two time points.Such as, as shown in Figure 3, terminal is when the signal transmitting terminal starting range sensor launches the 3rd second of infrared light, the receiving end of range sensor detects the infrared light that the signal transmitting terminal of range sensor is launched, then after the 3rd second, the signal transmitting terminal of terminal control range sensor launches infrared light with second frequency.Receiving end due to range sensor does not detect the infrared light that the signal transmitting terminal of range sensor is launched the 3rd second time, therefore after the time range of setting (time range of wait is set as 2 seconds by above-mentioned steps), the signal transmitting terminal of terminal controllable distance sensor the 5th second time launches infrared light with the 3rd frequency, if the receiving end of range sensor detects the infrared light that the signal transmitting terminal of range sensor is launched the 6th second time, then terminal record the 3rd second and the 6th second these two time points, calculating the time interval receiving infrared light for twice is 3 seconds, and the signal transmitting terminal of command range sensor continues to launch infrared light with second frequency.Last terminal adjusts the time range of setting according to the time interval repeatedly got, and makes the signal transmitting terminal of range sensor switch the time point of frequency launching infrared light and more to fit the behavioural habits of user.
Adopt the embodiment of the present invention, by starting range sensor, the signal transmitting terminal of command range sensor sends pulse signal with first frequency, whether the receiving end of judging distance sensor detects the pulse signal that the signal transmitting terminal of range sensor sends, when the receiving end of range sensor detects, the signal transmitting terminal of adjustment range sensor sends pulse signal with second frequency, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Refer to Figure 10, Figure 10 is the structural representation of the third terminal of the embodiment of the present invention.Terminal as shown in Figure 10 comprises the second start unit 1000, second judging unit 1001 and the 3rd adjustment unit 1002.
Second start unit 1000, for starting at least two range sensors, sends pulse signal with the signal transmitting terminal of at least one range sensor at least two range sensors described in making with the 4th frequency;
Second judging unit 1001, for judging whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends;
3rd adjustment unit 1002, for when the judged result of described second judging unit 1001 is for being, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal.
In specific implementation, in order to the direction of motion of user's gesture can be detected more accurately, in terminal, at least two range sensors can be set, and the signal transmitting terminal controlling wherein at least one range sensor launches infrared light with the 4th frequency.This enforcement is to arrange three sensors in terminal, as shown in Figure 6, wherein terminal built-in has the first range sensor, second distance sensor and the 3rd range sensor, wherein, first range sensor, second distance sensor and the 3rd range sensor are distributed in three sides in terminal display screen, the first range sensor, second distance sensor and the 3rd range sensor are distributed in upper and lower, the left and right direction of motion of three side identifiable design gestures in terminal display screen.The signal transmitting terminal that terminal can control the first range sensor, second distance sensor and the 3rd range sensor all launches infrared light with the 4th frequency.
In specific implementation, as shown in Figure 6, when user makes downward gesture relative to the display screen of terminal, whether the receiving end of at least one range sensor that terminal can judge in the first range sensor, second distance sensor and the 3rd range sensor detects the infrared light that respective signal transmitting terminal is launched with the 4th frequency respectively.
In specific implementation, if the receiving end of wherein any one range sensor of the first range sensor and second distance sensor detects the infrared light that the signal transmitting terminal of self is launched, the frequency of the infrared light of the signal transmitting terminal transmitting of terminal adjustable first range sensor and second distance sensor.Concrete, user can not make identical action when the function by gesture operation control terminal in the short time repeatedly, as user can not repeat the action of brandishing to the right within the time of 2 seconds, if still launch infrared light to high-frequency the infrared light of reflection therefore detected at the receiving end of range sensor after, the electric quantity consumption of terminal can be increased, and increase the pressure that terminal powers.In order to reduce the electric quantity consumption of terminal, the frequency of the transmitting infrared light after adjustment can be less than the 4th frequency, to reduce the energy ezpenditure of battery.
As the enforceable mode of one, the frequency of the transmitting infrared light after adjustment can be zero, and namely the signal transmitting terminal of range sensor stops launching infrared light.
As the enforceable mode of one, described 3rd adjustment unit 1002, also for when the judged result of described second judging unit 1001 is for being, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal to the 5th frequency.
In specific implementation, when user makes downward gesture relative to the display screen of terminal, the receiving end of the first range sensor and second distance sensor can detect prior to the receiving end of the 3rd range sensor the infrared light that the signal transmitting terminal of self is launched.Because the user receiving end of the first range sensor and receiving end of second distance sensor when making downward gesture relative to terminal detect that the time of the infrared light that respective signal transmitting terminal is launched may be inconsistent, therefore when the receiving end of the first range sensor and the receiving end of second distance sensor detect the infrared light of respective signal transmitting terminal transmitting in Preset Time (mistiming that the receiving end of the first range sensor and the receiving end of second distance sensor receive the infrared light that respective transmitting terminal is launched can ignore), terminal can by the first range sensor, the frequency of the signal transmitting terminal transmitting infrared light of second distance sensor and the 3rd range sensor is adjusted to the 5th frequency.Wherein, the 5th frequency can be less than the 4th frequency.As shown in Figure 7, when the first range sensor and second distance sensor are after respective signal transmitting terminal transmitting infrared light 2 seconds, the receiving end of the first range sensor and the receiving end of second distance sensor detected the infrared light that respective signal transmitting terminal is launched at the 3rd second, then terminal control first range sensor, second distance sensor and the 3rd range sensor signal transmitting terminal separately reduces the frequency of launching infrared light, infrared light is launched with the 5th frequency, wherein, 5th frequency can be 1 time per second, then terminal control first range sensor, second distance sensor and the 3rd range sensor only launched 1 infrared light in the 3rd second, thus reduce the electric quantity consumption of terminal.
As the enforceable mode of one, the 5th frequency can be zero, and namely the signal transmitting terminal of range sensor stops launching infrared light, thus electric quantity consumption is dropped to minimum.
As the enforceable mode of one, described second judging unit 1001, also for judging whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends with described 5th frequency;
Described 3rd adjustment unit 1002, also for when the judged result of described second judging unit 1001 is no, the signal transmitting terminal of adjustment at least one range sensor described sends the frequency of described pulse signal to the 6th frequency.
In specific implementation, whether terminal detects by the first range sensor and second distance sensor receiving end separately the infrared light that respective signal transmitting terminal sends with the 5th frequency, controls the frequency that the first range sensor, second distance sensor and the 3rd range sensor signal transmitting terminal separately launches infrared light.If at least one range sensor in the first range sensor, second distance sensor and the 3rd range sensor detects the infrared light that the signal transmitting terminal of self is launched, then terminal continues control first range sensor, second distance sensor and the 3rd range sensor signal transmitting terminal separately with the 5th frequency transmitting infrared light; If the first range sensor, second distance sensor and the 3rd range sensor all do not detect the infrared light that respective signal transmitting terminal is launched, then terminal is after waiting for the time range preset, and the signal transmitting terminal controlling at least one range sensor in the first range sensor, second distance sensor and the 3rd range sensor launches infrared light with the 6th frequency.
As the enforceable mode of one, described 3rd adjustment unit 1002, also for when the judged result of described second judging unit 1001 is no, after the time range waiting for setting, the signal transmitting terminal of adjustment at least one range sensor described sends the frequency of described pulse signal to described 6th frequency.
In specific implementation, the frequency that the signal transmitting terminal of at least one range sensor can be launched infrared light by the present embodiment is adjusted to the 6th frequency, and this enforcement is then all adjusted to the 6th frequency with the frequency of above-mentioned three range sensors signal transmitting terminal separately being launched infrared light and is illustrated.In specific implementation, when the first range sensor, second distance sensor and the 3rd range sensor receiving end separately do not detect the infrared light of respective signal transmitting terminal transmitting, terminal control first range sensor, second distance sensor and the 3rd range sensor signal transmitting terminal separately launch infrared light with the 5th frequency in the time range of setting.Such as, user is after making a gesture to the display screen of terminal, next gesture may be made after 2 seconds, therefore as shown in Figure 7, the time range that terminal can launch infrared light according to the signal transmitting terminal of the behavioural habits setpoint distance sensor of user with the 5th frequency (1 time per second) is 2 seconds.When terminal controlled three range sensors signal transmitting terminal separately with the 5th frequency transmitting infrared light afterwards at the 3rd second, because three range sensors receiving end separately does not all detect the infrared light that respective signal transmitting terminal is launched, therefore terminal controls three range sensors signal transmitting terminal separately with the 5th frequency transmitting infrared light within the time of the 3rd second to the 4th second.After 2 seconds, terminal controls three range sensors signal transmitting terminal separately again and launches infrared light with the 6th frequency, recovers the sensitivity of range sensor.Wherein the 6th frequency is greater than the 5th frequency.
As the enforceable mode of one, the 6th frequency can be equal with the 4th frequency, then, in the figure 7, the 5th second time, the frequency retrieval that respective signal transmitting terminal is launched infrared light by terminal control three range sensors is per second to 4 times.
Adopt the embodiment of the present invention, by starting at least two range sensors, pulse signal is sent with the 4th frequency to make the signal transmitting terminal of at least one range sensor at least two range sensors, judge whether the receiving end of at least one range sensor detects the pulse signal that the signal transmitting terminal of each range sensor sends, when the receiving end of at least one range sensor detects, the signal transmitting terminal of adjustment at least two range sensors sends the frequency of pulse signal, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Refer to Figure 11, Figure 11 is the structural representation of the 4th kind of terminal of the embodiment of the present invention.Terminal in the present embodiment comprises: at least one input media 1100; At least one output unit 1101; At least one processor 1102, such as CPU; With storer 1103, above-mentioned input media 1100, output unit 1101, processor 1102 are connected by bus with storer 1103.
Wherein, above-mentioned input media 1100 specifically can comprise range sensor, or, can be the contact panel of terminal, comprise touch-screen and touch screen, the functional mapping of the pulse signal control terminal that the signal transmitting terminal for the range sensor detected according to range sensor sends.
Above-mentioned output unit 1101 is specifically for exporting the steering order of above-mentioned processor 1102 to range sensor.
Above-mentioned storer 1103 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as magnetic disk memory.Above-mentioned storer 1103 is for storing batch processing code, and above-mentioned input media 1100, output unit 1101 and processor 1102, for calling the program code stored in storer 1103, perform and operate as follows:
Above-mentioned output unit 1101, for starting range sensor, the signal transmitting terminal controlling described range sensor sends pulse signal with first frequency;
Above-mentioned input media 1100, for judging whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends;
Above-mentioned processor 1102, for when the receiving end of described range sensor detects, the signal transmitting terminal adjusting described range sensor sends pulse signal with second frequency.
As the enforceable mode of one, above-mentioned input media 1100, specifically also for:
Judge whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends with described second frequency;
As the enforceable mode of one, above-mentioned processor 1102, specifically also for:
When the receiving end of described range sensor does not detect, the signal transmitting terminal adjusting described range sensor sends pulse signal with the 3rd frequency.
As the enforceable mode of one, above-mentioned processor 1102, specifically also for:
When the receiving end of described range sensor does not detect, after the time range waiting for setting, the signal transmitting terminal adjusting described range sensor sends pulse signal with described 3rd frequency.
As the enforceable mode of one, described 3rd frequency is equal with described first frequency.
As the enforceable mode of one, above-mentioned processor 1102, specifically also for:
The time range of described setting is adjusted according to the time interval between the pulse signal that the double signal transmitting terminal receiving described range sensor of the receiving end of described range sensor sends.
In specific implementation, input media 1100 described in the embodiment of the present invention, output unit 1101 and processor 1102 can perform embodiment Fig. 1 of the control method of the range sensor that the embodiment of the present invention provides and the implementation described in embodiment Fig. 2, also can perform the implementation of the first embodiment of the terminal that the embodiment of the present invention provides and the terminal described in the second embodiment, not repeat them here.
Adopt the embodiment of the present invention, by starting range sensor, the signal transmitting terminal of command range sensor sends pulse signal with first frequency, whether the receiving end of judging distance sensor detects the pulse signal that the signal transmitting terminal of range sensor sends, when the receiving end of range sensor detects, the signal transmitting terminal of adjustment range sensor sends pulse signal with second frequency, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Refer to Figure 12, Figure 12 is the structural representation of the 5th kind of terminal of the embodiment of the present invention.Terminal in the present embodiment comprises: at least one input media 1200; At least one output unit 1201; At least one processor 1202, such as CPU; With storer 1203, above-mentioned input media 1200, output unit 1201, processor 1202 are connected by bus with storer 1203.
Wherein, above-mentioned input media 1200 specifically can comprise range sensor, or, can be the contact panel of terminal, comprise touch-screen and touch screen, the functional mapping of the pulse signal control terminal that the signal transmitting terminal for the range sensor detected according to range sensor sends.
Above-mentioned output unit 1201 is specifically for exporting the steering order of above-mentioned processor 1202 to range sensor.
Above-mentioned storer 1203 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as magnetic disk memory.Above-mentioned storer 1203 is for storing batch processing code, and above-mentioned input media 1200, output unit 1201 and processor 1202, for calling the program code stored in storer 1203, perform and operate as follows:
Above-mentioned output unit 1201, for starting at least two range sensors, sends pulse signal with the signal transmitting terminal of at least one range sensor at least two range sensors described in making with the 4th frequency;
Above-mentioned input media 1200, for judging whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends;
Above-mentioned processor 1202, for when the receiving end of at least one range sensor described detects, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal.
As the enforceable mode of one, above-mentioned processor 1202, specifically also for:
When the receiving end of at least one range sensor described detects, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal to the 5th frequency.
As the enforceable mode of one, above-mentioned input media 1200, specifically also for:
Judge whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends with described 5th frequency.
As the enforceable mode of one, above-mentioned processor 1202, specifically also for:
When the receiving end of at least one range sensor described does not detect, the signal transmitting terminal of adjustment at least one range sensor described sends the frequency of described pulse signal to the 6th frequency.
As the enforceable mode of one, above-mentioned processor 1202, specifically also for:
When the receiving end of at least one range sensor described does not detect, after the time range waiting for setting, the signal transmitting terminal of adjustment at least one range sensor described sends the frequency of described pulse signal to described 6th frequency.
As the enforceable mode of one, described 6th frequency is equal with described 4th frequency.
In specific implementation, input media 1200 described in the embodiment of the present invention, output unit 1201 and processor 1202 can perform embodiment Fig. 4 of the control method of the range sensor that the embodiment of the present invention provides and the implementation described in embodiment Fig. 5, also can perform the implementation of the first embodiment of the terminal that the embodiment of the present invention provides and the terminal described in the second embodiment, not repeat them here.
Adopt the embodiment of the present invention, by starting at least two range sensors, pulse signal is sent with the 4th frequency to make the signal transmitting terminal of at least one range sensor at least two range sensors, judge whether the receiving end of at least one range sensor detects the pulse signal that the signal transmitting terminal of each range sensor sends, when the receiving end of at least one range sensor detects, the signal transmitting terminal of adjustment at least two range sensors sends the frequency of pulse signal, the frequency of the pulse signal that the signal transmitting terminal of adjustment range sensor the sends during pulse signal that the signal transmitting terminal that can receive range sensor at the receiving end of range sensor sends, reduce the consumption of terminal power.
Module in all embodiments of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application SpecificIntegrated Circuit, special IC).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a control method for range sensor, is characterized in that, comprising:
Start range sensor, the signal transmitting terminal controlling described range sensor sends pulse signal with first frequency;
Judge whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends;
When the receiving end of described range sensor detects, the signal transmitting terminal adjusting described range sensor sends pulse signal with second frequency.
2. method according to claim 1, is characterized in that, the signal transmitting terminal of the described range sensor of described adjustment is with after second frequency transmission pulse signal, and described method also comprises:
Judge whether the receiving end of described range sensor detects the pulse signal that the signal transmitting terminal of described range sensor sends with described second frequency;
When the receiving end of described range sensor does not detect, the signal transmitting terminal adjusting described range sensor sends pulse signal with the 3rd frequency.
3. method according to claim 2, is characterized in that, when the described receiving end when described range sensor does not detect, the signal transmitting terminal adjusting described range sensor sends pulse signal with the 3rd frequency and comprises:
When the receiving end of described range sensor does not detect, after the time range waiting for setting, the signal transmitting terminal adjusting described range sensor sends pulse signal with described 3rd frequency.
4. method according to claim 3, is characterized in that, described 3rd frequency is equal with described first frequency.
5. method according to claim 3, it is characterized in that, when the described receiving end when described range sensor does not detect, after the time range waiting for setting, adjust the signal transmitting terminal of described range sensor with after described 3rd frequency transmission pulse signal, described method also comprises:
The time range of described setting is adjusted according to the time interval between the pulse signal that the double signal transmitting terminal receiving described range sensor of the receiving end of described range sensor sends.
6. a control method for range sensor, is characterized in that, comprising:
Start at least two range sensors, send pulse signal with the signal transmitting terminal of at least one range sensor at least two range sensors described in making with the 4th frequency;
Judge whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends;
When the receiving end of at least one range sensor described detects, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal.
7. method according to claim 6, is characterized in that, when the described receiving end when at least one range sensor described detects, the frequency that the signal transmitting terminal of at least two range sensors described in adjustment sends described pulse signal comprises:
When the receiving end of at least one range sensor described detects, the signal transmitting terminal of at least two range sensors described in adjustment sends the frequency of described pulse signal to the 5th frequency.
8. method according to claim 7, is characterized in that, after the frequency that the signal transmitting terminal of at least two range sensors described in described adjustment sends described pulse signal to the 5th frequency, described method also comprises:
Judge whether the receiving end of at least one range sensor described detects the pulse signal that the signal transmitting terminal of each range sensor sends with described 5th frequency;
When the receiving end of at least one range sensor described does not detect, the signal transmitting terminal of adjustment at least one range sensor described sends the frequency of described pulse signal to the 6th frequency.
9. method according to claim 8, it is characterized in that, when the described receiving end when at least one range sensor described does not detect, the frequency that the signal transmitting terminal of at least one range sensor described in adjustment sends described pulse signal comprises to the 6th frequency:
When the receiving end of at least one range sensor described does not detect, after the time range waiting for setting, the signal transmitting terminal of adjustment at least one range sensor described sends the frequency of described pulse signal to described 6th frequency.
10. method according to claim 9, is characterized in that, described 6th frequency is equal with described 4th frequency.
CN201510073423.0A 2015-02-11 2015-02-11 Method for controlling distance sensor Pending CN104656898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510073423.0A CN104656898A (en) 2015-02-11 2015-02-11 Method for controlling distance sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510073423.0A CN104656898A (en) 2015-02-11 2015-02-11 Method for controlling distance sensor

Publications (1)

Publication Number Publication Date
CN104656898A true CN104656898A (en) 2015-05-27

Family

ID=53248133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510073423.0A Pending CN104656898A (en) 2015-02-11 2015-02-11 Method for controlling distance sensor

Country Status (1)

Country Link
CN (1) CN104656898A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994240A (en) * 2015-07-10 2015-10-21 Tcl移动通信科技(宁波)有限公司 Proximity detector power saving control method and system based on mobile terminal
CN107977074A (en) * 2016-10-21 2018-05-01 意法半导体公司 Method and apparatus for mobile or wearable device user context-aware
CN110986130A (en) * 2019-12-20 2020-04-10 华帝股份有限公司 Self-adaptive gesture control method of range hood

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011005549A1 (en) * 2009-07-10 2011-01-13 Motorola Mobility, Inc. Methods for adjusting proximity detectors
CN102300296A (en) * 2011-08-24 2011-12-28 中兴通讯股份有限公司 Method for reducing near field communication (NFC) apparatus power consumption and terminal equipment
CN103385795A (en) * 2013-07-18 2013-11-13 杭州微感科技有限公司 Blind guide glasses based on motion sensor and work method of blind guide glasses
CN103873699A (en) * 2012-12-10 2014-06-18 深圳富泰宏精密工业有限公司 Power adjustment system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011005549A1 (en) * 2009-07-10 2011-01-13 Motorola Mobility, Inc. Methods for adjusting proximity detectors
CN102300296A (en) * 2011-08-24 2011-12-28 中兴通讯股份有限公司 Method for reducing near field communication (NFC) apparatus power consumption and terminal equipment
CN103873699A (en) * 2012-12-10 2014-06-18 深圳富泰宏精密工业有限公司 Power adjustment system and method
CN103385795A (en) * 2013-07-18 2013-11-13 杭州微感科技有限公司 Blind guide glasses based on motion sensor and work method of blind guide glasses

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994240A (en) * 2015-07-10 2015-10-21 Tcl移动通信科技(宁波)有限公司 Proximity detector power saving control method and system based on mobile terminal
CN107977074A (en) * 2016-10-21 2018-05-01 意法半导体公司 Method and apparatus for mobile or wearable device user context-aware
US10748075B2 (en) 2016-10-21 2020-08-18 Stmicroelectronics, Inc. Method and apparatus for energy efficient probabilistic context awareness of a mobile or wearable device user by switching between a single sensor and multiple sensors
CN107977074B (en) * 2016-10-21 2021-06-15 意法半导体公司 Method and apparatus for context awareness for mobile or wearable device users
CN110986130A (en) * 2019-12-20 2020-04-10 华帝股份有限公司 Self-adaptive gesture control method of range hood
CN110986130B (en) * 2019-12-20 2022-05-17 华帝股份有限公司 Self-adaptive gesture control method of range hood

Similar Documents

Publication Publication Date Title
KR101424259B1 (en) Method and apparatus for providing input feedback in portable terminal
AU2016203222B2 (en) Touch-sensitive button with two levels
KR102081817B1 (en) Method for controlling digitizer mode
KR102178845B1 (en) Mobile terminal and method for controlling haptic
KR102141155B1 (en) Mobile apparatus providing with changed-shortcut icon responding to status of mobile apparatus and control method thereof
EP2840462A1 (en) Method and apparatus for saving battery of portable terminal
US20150253851A1 (en) Electronic device and method for outputting feedback
EP2743819A2 (en) Terminal and method for providing user interface using a pen
KR102496531B1 (en) Method for providing fingerprint recognition, electronic apparatus and storage medium
EP3252590B1 (en) Method for adjusting adjustable parameter of device, and device
EP2784629A2 (en) Method for controlling portable device equipped with flexible display, and portable device using the method
EP2703946B1 (en) Low power detection apparatus and method
CN104991721A (en) Fingerprint operation method and apparatus
EP2752754A2 (en) Remote mouse function method and terminals
EP4231121A1 (en) Stylus and control method therefor, and electronic device
CN108769299B (en) Screen control method and device and mobile terminal
CN104536643A (en) Icon dragging method and terminal
CN105578007A (en) Method and device used for mobile terminal, and mobile terminal
KR102091710B1 (en) Coordinate sensing apparatus and method for controlling thereof
CN104656898A (en) Method for controlling distance sensor
CN104679244A (en) Terminal
EP3575945B1 (en) Information display method and mobile terminal
CN104407774A (en) Screen switching equipment and method as well as mobile terminal
CN109074187A (en) Determination method, capacitance touch-control device and the electronic device of touch control detection wrong report point
EP3608761B1 (en) Electronic device and method for displaying affordance for providing charging of battery of external device through display

Legal Events

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

Application publication date: 20150527