CN109895143A - Terminal anti-fall method, device, equipment and computer readable storage medium - Google Patents

Terminal anti-fall method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109895143A
CN109895143A CN201910154956.XA CN201910154956A CN109895143A CN 109895143 A CN109895143 A CN 109895143A CN 201910154956 A CN201910154956 A CN 201910154956A CN 109895143 A CN109895143 A CN 109895143A
Authority
CN
China
Prior art keywords
infrared
light
terminal
external reflection
reflection light
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
CN201910154956.XA
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.)
Xin Yijia Science And Technology Co Ltd Of Shenzhen
Original Assignee
Xin Yijia Science And Technology Co Ltd Of Shenzhen
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 Xin Yijia Science And Technology Co Ltd Of Shenzhen filed Critical Xin Yijia Science And Technology Co Ltd Of Shenzhen
Priority to CN201910154956.XA priority Critical patent/CN109895143A/en
Publication of CN109895143A publication Critical patent/CN109895143A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of terminal anti-fall method and devices, equipment and storage medium, this method comprises: receiving the enabled instruction in user's input terminal, start infrared launcher in the terminal based on the enabled instruction and emit infrared light;The corresponding infrared external reflection light of each infrared light is obtained, and the strong a reference value of reference light is determined based on the first intensity value of the first infrared external reflection light for being in test phase in each infrared external reflection light;The second infrared external reflection light in each infrared external reflection light after test phase is obtained, and judges whether the second intensity value of the second infrared external reflection light is less than the strong a reference value of the reference light;If second intensity value is less than the strong a reference value of the reference light, the terminal is out of service.The technical issues of dropproof function of solving intelligent terminal in the prior art fails under special screne.

Description

Terminal anti-fall method, device, equipment and computer readable storage medium
Technical field
The present invention relates to infrared technology field more particularly to a kind of terminal anti-fall method, device, equipment and calculating Machine readable storage medium storing program for executing.
Background technique
With the development of science and technology, the technology of intelligent terminal (such as sweeping robot, intelligent robot) also increasingly at It is ripe.And the dropproof of terminal devices such as sweeper, intelligent robot on the market is all based on infrared emission and reception pipe at present Come what is realized, still, for dark extinction face, the infrared light intensity due to being reflected into reception pipe die down and will lead to machine lose it is anti- Fall function.Therefore, how to improve and ensure that the dropproof function of terminal becomes a technical problem to be solved urgently.
Summary of the invention
The main purpose of the present invention is to provide a kind of terminal anti-fall method, terminal fall-proofing device, equipment and calculating Machine storage medium, it is intended to solve the technical issues of dropproof function of intelligent terminal in the prior art fails under special screne.
To achieve the above object, the present invention provides a kind of terminal anti-fall method, the terminal anti-fall method include with Lower step:
The enabled instruction in user's input terminal is received, infrared emission dress in the terminal is started based on the enabled instruction Set transmitting infrared light;
The corresponding infrared external reflection light of each infrared light is obtained, and is based on being in test phase in each infrared external reflection light The first intensity value of the first infrared external reflection light determine the strong a reference value of reference light;
The second infrared external reflection light in each infrared external reflection light after test phase is obtained, and judges that described second is infrared Whether the second intensity value of reflected light is less than the strong a reference value of the reference light;
If second intensity value is less than the strong a reference value of the reference light, the terminal is out of service.
Optionally, the last the first based on the first infrared external reflection light for being in test phase in each infrared external reflection light Angle value determines the step of reference light strong a reference value, comprising:
The the first infrared external reflection light for being in test phase is determined in each infrared external reflection light, and it is red to obtain described first Corresponding first intensity value of external reflectance light;
The preset ratio value in the terminal is obtained, and is determined between the preset ratio value and first intensity value Product, using the product as the strong a reference value of the reference light in the terminal.
Optionally, the second infrared external reflection light obtained in each infrared external reflection light after test phase, and judge Whether the second intensity value of the second infrared external reflection light is less than the step of reference light strong a reference value, comprising:
The prefixed time interval in the terminal is obtained, and the time point to receive the first infrared external reflection light is as when starting Between point, obtain an infrared external reflection light using as the second infrared external reflection light at interval of prefixed time interval;
It is quasi- to judge whether corresponding second intensity value of each second infrared external reflection light is less than the reference light strong basis one by one Value.
Optionally, described to judge whether corresponding second intensity value of each second infrared external reflection light is less than the ginseng one by one After the step of examining light intensity a reference value, comprising:
Corresponding second intensity value of the second infrared external reflection light is greater than or equal to the strong a reference value of the reference light if it exists, The prefixed time interval is then waited to obtain the second new infrared external reflection light again, until the second infrared external reflection light pair that discovery is new The new intensity value answered is less than the strong a reference value of the reference light.
Optionally, the enabled instruction received in user's input terminal starts the terminal based on the enabled instruction The step of middle infrared launcher transmitting infrared light, comprising:
The enabled instruction in user's input terminal is received, based on the enabled instruction to the infrared light emission in the terminal Intensity is initialized;
The default emissive porwer in the terminal is obtained, and based on infrared in the default emissive porwer transmitting terminal The infrared light of emitter.
Optionally, the step that the infrared light of infrared launcher in the terminal is emitted based on the default emissive porwer Suddenly, comprising:
Obtain the default launch angle of infrared launcher transmitting infrared light in the terminal;
Obtain the current launch angle of the infrared launcher, and judge the current launch angle whether with it is described pre- If launch angle is identical;
If the current launch angle is identical with the default launch angle, by the infrared launcher with current Launch angle emits the infrared light of default emissive porwer.
It is optionally, described to judge the current launch angle whether after the step identical with the default launch angle, Include:
If the current launch angle and the default launch angle be not identical, the current launch angle is adjusted to The default launch angle, and the infrared of default emissive porwer is emitted to preset launch angle by the infrared launcher Light.
In addition, to achieve the above object, the present invention also provides a kind of terminal fall-proofing device, the terminal fall-proofing device Include:
Transmitting module starts the end based on the enabled instruction for receiving the enabled instruction in user's input terminal Infrared launcher emits infrared light in end;
Module is obtained, for obtaining the corresponding infrared external reflection light of each infrared light, and is based on each infrared external reflection light In the first intensity value of the first infrared external reflection light in test phase determine the strong a reference value of reference light;
Judgment module for obtaining the second infrared external reflection light in each infrared external reflection light after test phase, and is sentenced Whether the second intensity value of the second infrared external reflection light of breaking is greater than the strong a reference value of the reference light;
Stopping modular, if being less than the strong a reference value of the reference light for second intensity value, the terminal stops fortune Row.
In addition, to achieve the above object, the present invention also provides a kind of terminal fall arrest devices;
The terminal fall arrest device includes: mobile terminal, three-section earphone, memory, processor and is stored in described On memory and the computer program that can run on the processor, in which:
The computer program realizes the step of terminal anti-fall method as described above when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of storage mediums;
It is stored with computer program on the storage medium, realizes when the computer program is executed by processor as above-mentioned Terminal anti-fall method the step of.
The present invention is started in the terminal by receiving the enabled instruction in user's input terminal based on the enabled instruction Infrared launcher emits infrared light;The corresponding infrared external reflection light of each infrared light is obtained, and is based on each infrared external reflection First intensity value of the first infrared external reflection light in light in test phase determines the strong a reference value of reference light;It obtains each described infrared The second infrared external reflection light in reflected light after test phase, and judge the second infrared external reflection light the second intensity value whether Less than the strong a reference value of the reference light;If second intensity value is less than the strong a reference value of the reference light, the terminal stops Operation.By determining the strong a reference value of reference light according to the first infrared external reflection light got, and by subsequent second infrared external reflection The strong a reference value of the second intensity value and reference light of light is compared, to determine whether the front environment of terminal operating changes, And when the second intensity value of discovery a reference value strong less than reference light, it may be considered that the time of the second infrared external reflection light received Elongated, the front environment of terminal operating has changed, and terminal can be out of service at this time, occurs falling shape so as to avoid terminal State, the phenomenon that influencing the performance of terminal generation, has ensured that terminal can adapt to run various environment, has solved intelligence in the prior art The technical issues of dropproof function of energy terminal fails under special screne.
Detailed description of the invention
Fig. 1 be the hardware running environment that the embodiment of the present invention is related to terminal apparatus structure schematic diagram;
Fig. 2 is the flow diagram of terminal anti-fall method first embodiment of the present invention;
Fig. 3 is the flow diagram of terminal anti-fall method second embodiment of the present invention;
Fig. 4 is the functional block diagram of terminal fall-proofing device of the present invention;
Fig. 5 is the circuit diagram of I2C device in terminal anti-fall method of the present invention.
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention is terminal fall arrest device.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Optionally, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio Circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, light Sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can according to the light and shade of ambient light come The brightness of display screen is adjusted, proximity sensor can close display screen and/or backlight when terminal device is moved in one's ear.Certainly, Terminal device can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, herein no longer It repeats.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and the dropproof program of terminal.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for calling the dropproof program of the terminal stored in memory 1005, and execute following operation:
The enabled instruction in user's input terminal is received, infrared emission dress in the terminal is started based on the enabled instruction Set transmitting infrared light;
The corresponding infrared external reflection light of each infrared light is obtained, and is based on being in test phase in each infrared external reflection light The first intensity value of the first infrared external reflection light determine the strong a reference value of reference light;
The second infrared external reflection light in each infrared external reflection light after test phase is obtained, and judges that described second is infrared Whether the second intensity value of reflected light is less than the strong a reference value of the reference light;
If second intensity value is less than the strong a reference value of the reference light, the terminal is out of service.
Referring to Fig. 2, the present invention provides a kind of terminal anti-fall method, in one embodiment of terminal anti-fall method, terminal Anti-fall method the following steps are included:
Step S10 receives the enabled instruction in user's input terminal, is started based on the enabled instruction red in the terminal Outer emitter emits infrared light;
In the present embodiment, terminal can be intelligent robot, sweeper etc. with infrared light emission and receive capabilities. The enabled instruction of user's input is received in the terminal, and terminal can be automatically based upon this enabled instruction starting terminal, terminal is allowed to be in fortune Row state, and the infrared launcher in terminal also begins preparing transmitting infrared light at this time.Wherein, when terminal enters booting shape When state, infrared emittance and receiving sensitivity that user is arranged in the terminal in advance can be obtained automatically, then infrared emission is allowed to fill It sets and infrared light emission is carried out according to this infrared emittance.It should be noted that when infrared launcher emits infrared light, Launch angle needs to be acute angle, can guarantee that terminal can receive the corresponding infrared external reflection light of infrared light.For example, working as terminal When for intelligent robot, and when this intelligent robot operates in desktop, the infrared light and intelligence machine of intelligent robot transmitting Angle between people itself is necessarily less than 90 degree.Wherein, the mode of the power-on instruction in user's input terminal can be user Inputted by way of voice (for example, user directly says " booting " to the terminal with speech identifying function, this terminal meeting According to the voice Auto Power On recognized), be also possible to be inputted by way of pressing power button at the terminal, etc. Herein with no restrictions Deng, the mode specifically inputted.
Step S20 obtains the corresponding infrared external reflection light of each infrared light, and is based on being in each infrared external reflection light First intensity value of the first infrared external reflection light of test phase determines the strong a reference value of reference light;
The infrared light that infrared external reflection light can go out for terminal transmission encounters the reflected light of barrier.Test phase can To be in terminal transmission infrared light to the time phase received between the first infrared external reflection light.First in test phase is red External reflectance light can be the infrared infrared external reflection light received after the preset lime of terminal transmission, be also possible to receive in terminal The infrared external reflection light received after to the infrared external reflection light of preset times.The strong a reference value of reference light can be whether to judge terminal The definite value that can fall, changes with the changes in intensity values of the first infrared external reflection light.When terminal has turned on and outwardly emits Out when infrared light, when this infrared light encounters barrier, understands some infrared light reflection and returns to terminal, i.e. infrared external reflection light, And the infrared receiving device in terminal can receive this infrared external reflection light automatically, and this infrared external reflection light is converted into corresponding infrared Then light intensity value can pass through I2C (Inter-Integrated Circuit, twin wire universal serial bus) every, interface again The infrared light intensity value of reading reflection is inquired every prefixed time interval, then can be from each infrared external reflection light got really Determine the first infrared external reflection light that terminal receives for the first time, and determines corresponding first intensity value of the first infrared external reflection light, then obtain The preset ratio value in terminal is taken, the strong a reference value of reference light is determined according to preset ratio value and the product of the first intensity value.Example Such as, when the first intensity value that terminal receives is 100, it is assumed that when preset ratio value is 50%, then reference light strong basis at this time Quasi- value can be 50, that is, the strong a reference value of reference light only occupies the certain proportion value of the first intensity value.
Wherein, the infrared external reflection light received can be converted to by light intensity value by I2C device in the terminal, and I2C The circuit diagram of device is referred to shown in Fig. 5, in I2C circuit, the element of use have optical sensor MG56913, Voltage regulator (pressure regulator), capacitor (C1, C2, C3) and resistance (R1, R2, R3) etc., three in optical sensor Interface SDA, INTB and SCL are connected with SDA, INTB, SCL interface in terminal respectively, and need to access one on each line Need to access resistance R1 among a resistance, i.e., the SDA interface in optical sensor and the SDA interface links in terminal, similarly, Need to access resistance R2 among INTB interface in optical sensor and the INTB interface links in terminal, in optical sensor Need to access resistance R3 among SCL interface links in SCL interface and terminal,.Again by pressure regulator VDD, capacitor C1 and C3 and light LD-A interface in VDD interface links in sensor MG56913, pressure regulator VLED, capacitor C2 and optical sensor MG56913 connects Line.It should be noted that need to establish earthed circuit in this circuit arrangement, i.e. capacitor (C1, C2, C3) and optical sensor MG56913 It needs to establish grounding connection, to guarantee the safety of entire circuit.
Step S30 obtains the second infrared external reflection light in each infrared external reflection light after test phase, and described in judgement Whether the second intensity value of the second infrared external reflection light is less than the strong a reference value of the reference light;
Second infrared external reflection light can be to wait prefixed time interval after terminal receives the infrared external reflection light of first time The infrared external reflection light got again.Second intensity value can be the corresponding luminous intensity values of the second infrared external reflection light.When at end After having determined that the strong a reference value of reference light in end, it is also necessary to after waiting prefixed time interval in each infrared external reflection light, obtain again The second infrared external reflection light is taken, and determines this corresponding second intensity value of the second infrared external reflection light, then judges the second intensity value again Whether it is less than the strong a reference value of reference light, and when the second intensity value of discovery a reference value strong less than reference light, then can stops terminal Operating status.But it when a reference value strong more than or equal to reference light by judgement the second intensity value of discovery, then will continue to protect The operating status of terminal is held, and when discovery a reference value strong less than reference light there are the intensity value of infrared external reflection light (or eventually Whens end has when the halt instruction for receiving user's input or terminal power has been used up etc.), it can just stop the operation shape of terminal State.
Step S40, if second intensity value is less than the strong a reference value of the reference light, the terminal is out of service.
When a reference value strong less than reference light by judgement the second intensity value of discovery, then it can stop the operating status of terminal, That is, it is believed that the front environment of terminal operating has changed at this time, needs to suspend the operating status of terminal, to keep away Exempt to damage terminal.
Supplemented by assistant solve the present invention in, terminal how to be determined whether according to infrared luminous intensity stop terminal movement original Reason, is exemplified below.
For example, when terminal is intelligent robot, and Run-time scenario is in desktop, the booting for first receiving user's input refers to When enabling, first the light sensation in intelligent robot is initialized, and set infrared emittance and receiving sensitivity, further according to The infrared emittance set emits infrared light to desktop, and is inquired by I2C interface at interval of 100ms and read reflection Infrared luminous intensity, and since the extinction degree of each desktop is different, the corresponding infrared external reflection luminous intensity of difference desktop Value is not also identical, therefore can be by reading current infrared light intensity value as dynamic reference light intensity a reference value, and works as and determine After dynamic reference light intensity a reference value, the subsequent infrared external reflection light intensity value got and dynamic reference light intensity a reference value can be carried out Compare.I.e. when intelligent robot is in desktop, the infrared external reflection light intensity value read at this time can be quasi- in this reference light strong basis Near value, but when intelligent robot runs to table side edge, at this time since the infrared light of transmitting does not pass through desktop reflection When, the infrared external reflection light intensity value monitored will be significantly less than this reference value, and system will control on intelligent robot at this time Wheel stop motion, to achieve the purpose that prevent intelligent robot from falling.
In the present embodiment, by receiving the enabled instruction in user's input terminal, institute is started based on the enabled instruction It states infrared launcher in terminal and emits infrared light;The corresponding infrared external reflection light of each infrared light is obtained, and based on each described First intensity value of the first infrared external reflection light in infrared external reflection light in test phase determines the strong a reference value of reference light;It obtains each The second infrared external reflection light in the infrared external reflection light after test phase, and judge the last the second of the second infrared external reflection light Whether angle value is less than the strong a reference value of the reference light;If second intensity value is less than the strong a reference value of the reference light, described Terminal is out of service.By determining the strong a reference value of reference light according to the first infrared external reflection light got, and by subsequent second The strong a reference value of the second intensity value and reference light of infrared external reflection light is compared, to determine whether the front environment of terminal operating is sent out Changing, and when the second intensity value of discovery a reference value strong less than reference light, it may be considered that the second infrared external reflection received The time of light is elongated, and the front environment of terminal operating has changed, and terminal can be out of service at this time, goes out so as to avoid terminal The phenomenon that now falling state, influencing the performance of terminal generation has ensured that terminal can adapt to run various environment, has solved existing The technical issues of dropproof function of intelligent terminal fails under special screne in technology.
Further, on the basis of first embodiment of the invention, the second of terminal anti-fall method of the present invention is proposed Embodiment, the present embodiment are the step S20 of first embodiment of the invention, are based on being in test phase in each infrared external reflection light The first intensity value of the first infrared external reflection light the step of determining reference light strong a reference value refinement, referring to Fig. 3, comprising:
Step S21 determines the first infrared external reflection light for being in test phase in each infrared external reflection light, and obtains institute State corresponding first intensity value of the first infrared external reflection light;
First intensity value can be the luminous intensity values of the first infrared external reflection light.It is each infrared anti-when receiving in the terminal When penetrating light, it is also necessary to determine the first infrared external reflection that terminal receives for the first time in each first infrared external reflection light got In light, and this first infrared external reflection light is converted to the first intensity value, that is, each intensity value after conversion, is selected Corresponding first intensity value of one infrared external reflection light.
And after getting the first intensity value, it is also necessary to determine the strong a reference value of reference light.For example, when terminal is intelligence machine When people, and when operating in desktop, since the infrared light intensity that different colours, material desktop reflect is different, it is therefore desirable to first obtain For the first time by the reflected first infrared external reflection light of desktop, and determine this corresponding first intensity of the first infrared external reflection light Value, however since the intensity value of the reflected infrared external reflection light in each position of desktop is not exactly the same.Therefore, join A part of value in the first intensity value can be taken by examining light intensity a reference value, i.e. the first intensity value is greater than the strong a reference value of reference light, and ginseng The size for examining light intensity a reference value is determined by the first intensity value, is controllable.
Step S22 obtains the preset ratio value in the terminal, and determines the preset ratio value and first intensity Product between value, using the product as the strong a reference value of the reference light in the terminal.
Preset ratio value can be the arbitrary proportion value that user is arranged in advance.When getting in the first intensity value and terminal After preset ratio value, it is also necessary to determine the product of the preset ratio value in the first intensity value and terminal, and this can be multiplied Product is as the strong a reference value of reference light in terminal.For example, when the first intensity value got is 100, it is assumed that at this time in terminal Preset ratio value be 80%, then need 100 multiplied by 80% to obtain its product 80, at this time can will be 80 as in terminals The strong a reference value of reference light, for followed by judgement.
In the present embodiment, the strong a reference value of reference light is determined by preset ratio value and the product of the first intensity value, from And ensure that the accuracy of the strong a reference value of reference light, reducing terminal there is the generation of the phenomenon that erroneous judgement, improves the use of user Experience sense.
Further, first embodiment of the invention and second embodiment any one on the basis of, propose the present invention The 3rd embodiment of terminal anti-fall method, the present embodiment are the step S30 of first embodiment of the invention, are obtained each described infrared The second infrared external reflection light in reflected light after test phase, and judge the second infrared external reflection light the second intensity value whether The refinement of the step of a reference value strong less than the reference light, comprising:
Step S31 obtains the prefixed time interval in the terminal, and is made with receiving the time point of the first infrared external reflection light For start time point, an infrared external reflection light is obtained using as the second infrared external reflection light at interval of prefixed time interval;
Prefixed time interval can be the time interval that user is arranged in advance based on the hobby demand of itself, can be 100ms, 50ms, 120ms etc..After getting the first infrared external reflection light, and have determined that the strong a reference value of reference light, it is also necessary to obtain Prefixed time interval in terminal, and after getting the first infrared external reflection light, wait prefixed time interval to obtain again To infrared external reflection light be the second infrared external reflection light.I.e. to receive time point of the first infrared external reflection light as initial time Point, then an infrared external reflection light is obtained at interval of prefixed time interval, and these infrared external reflection light that will acquire are as second Infrared external reflection light just stops obtaining infrared until finding to have the intensity value of the second infrared external reflection light to be less than the strong a reference value of reference light Reflected light.For example, when the infrared external reflection light got for the first time is A, working as process when prefixed time interval is 100ms The infrared external reflection light got again after 100ms is B, it may be considered that B is the second infrared external reflection light.
Step S32, judges whether corresponding second intensity value of each second infrared external reflection light is less than the reference one by one Light intensity a reference value.
After having determined that the second infrared external reflection light in the terminal, it is also necessary to determine corresponding the last the second of the second infrared external reflection light Then second intensity value and the strong a reference value of reference light are compared by angle value again, refer to light intensity when finding that the second intensity value is less than When a reference value, then it can stop the operating status of terminal, but when the second intensity value of discovery is more than or equal to reference light strong basis When quasi- value, then after can waiting prefixed time interval, the newest intensity value of infrared external reflection light is obtained again, and continue to judge newest Whether intensity value is less than the strong a reference value of reference light, until finding to have the intensity value of infrared external reflection light to be less than the strong a reference value of reference light, The operating status of terminal can just be stopped.
In the present embodiment, by after getting the first infrared external reflection light and waiting prefixed time interval, then is obtained Two infrared external reflection light improve the usage experience of user to reduce the power consumption of terminal while meeting the needs of users Sense.
Specifically, judge whether corresponding second intensity value of each second infrared external reflection light is less than the reference light one by one After the step of strong a reference value, comprising:
Step S33, corresponding second intensity value of the second infrared external reflection light is greater than or equal to the reference light if it exists Strong a reference value then waits the prefixed time interval to obtain the second new infrared external reflection light again, until finding that new second is red The corresponding new intensity value of external reflectance light is less than the strong a reference value of the reference light.
Light intensity is referred to when being more than or equal to by judgement discovery there are corresponding second intensity value of the second infrared external reflection light When a reference value, it may be considered that it is normal in front of terminal operating at this time, the operating status for keeping present terminal can be continued, also, It also will continue to that prefixed time interval is waited to obtain new infrared external reflection light again at this time, and can be corresponding by new infrared external reflection light Intensity value and the strong a reference value of reference light are compared, until discovery has the new corresponding new intensity value of the second infrared external reflection light to be less than The strong a reference value of reference light, can just stop terminal operating.
In the present embodiment, by being obtained again when determining that the second intensity value is more than or equal to the strong a reference value of reference light New infrared external reflection light is taken, until discovery has infrared external reflection light to be less than the strong a reference value of reference light, to ensure that the normal of terminal Operation, and reduce terminal and occur falling shape probability of state.
Further, first embodiment of the invention and 3rd embodiment any one on the basis of, propose the present invention The fourth embodiment of terminal anti-fall method, the present embodiment are the step S10 of first embodiment of the invention, receive user and input eventually Enabled instruction in end starts the thin of the step of infrared launcher emits infrared light in the terminal based on the enabled instruction Change, comprising:
Step S11 receives the enabled instruction in user's input terminal, based on the enabled instruction to red in the terminal Outer light emitting intensity is initialized;
After the enabled instruction in the terminal, receiving user, terminal can start this terminal according to this enabled instruction, and Infrared emittance in this terminal can be initialized, to guarantee the infrared ray energy launched by infrared launcher It meets the needs of users.
Step S12 obtains the default emissive porwer in the terminal, and emits the end based on the default emissive porwer The infrared light of infrared launcher in end.
Default emissive porwer can be the infrared ray emission strength that user is arranged in advance based on itself hobby demand.When to end After infrared ray emission strength in end is initialized, the default emissive porwer in terminal can be obtained, and this is preset into transmitting Intensity value of the intensity as infrared launcher transmitting infrared light in terminal.
In the present embodiment, by obtaining default emissive porwer, and infrared light is emitted according to default emissive porwer, To ensure that while meeting user demand, the power consumption of terminal is reduced.
Specifically, the step of infrared light of infrared launcher in the terminal being emitted based on the default emissive porwer, Include:
Step S121 obtains the default launch angle of infrared launcher transmitting infrared light in the terminal;
Default launch angle can be the angle of any transmitting infrared light of the user based on itself hobby demand self-setting. When being ready to pass through infrared launcher transmitting infrared light in the terminal, it is also necessary to first obtain infrared launcher transmitting in terminal The default launch angle of infrared light.
Step S122, obtains the current launch angle of the infrared launcher, and judges that the current launch angle is It is no identical with the default launch angle;
Due to during terminal operating, the infrared launcher infrared external reflection that it gets using different launch angles The intensity value of light is different, therefore after getting default launch angle, it is also necessary to obtain the current hair of infrared launcher Then firing angle degree judges whether current launch angle is identical with default launch angle again, and determines terminal according to judging result The angle of middle infrared launcher transmitting infrared light.
Step S123 passes through the infrared emission if the current launch angle is identical with the default launch angle Device emits the infrared light of default emissive porwer with current launch angle.
When finding that current launch angle is identical with default launch angle by judgement, then can not need to launch angle It is modified, infrared launcher is directly allowed to emit the infrared light of default emissive porwer with current launch angle.
In the present embodiment, by determining the launch angle of terminal transmission infrared light, to ensure that terminal can be in different rings Infrared external reflection light can be received by running under border, improve the usage experience sense of user.
Specifically, judge the current launch angle whether after the step identical with the default launch angle, comprising:
Step S124, if the current launch angle and the default launch angle be not identical, by the current transmitting Angle is adjusted to the default launch angle, and strong to preset the default transmitting of launch angle transmitting by the infrared launcher The infrared light of degree.
It, then can will be current when finding the launch angle and not identical default launch angle of current infrared light by judgement Launch angle is adjusted to default launch angle, and by infrared launcher with the default default hair of launch angle transmitting adjusted Penetrate the infrared light of intensity.
In the present embodiment, when by the current launch angle of determination with default launch angle difference, by current launch angle It is adjusted to default launch angle and improves the usage experience sense of user to improve the validity of the dropproof function of terminal.
In addition, the embodiment of the present invention also proposes a kind of terminal fall-proofing device, the terminal fall-proofing device referring to Fig. 4 Include:
Transmitting module starts the end based on the enabled instruction for receiving the enabled instruction in user's input terminal Infrared launcher emits infrared light in end;
Module is obtained, for obtaining the corresponding infrared external reflection light of each infrared light, and is based on each infrared external reflection light In the first intensity value of the first infrared external reflection light in test phase determine the strong a reference value of reference light;
Judgment module for obtaining the second infrared external reflection light in each infrared external reflection light after test phase, and is sentenced Whether the second intensity value of the second infrared external reflection light of breaking is less than the strong a reference value of the reference light;
Stopping modular, if being less than the strong a reference value of the reference light for second intensity value, the terminal stops fortune Row.
Optionally, the acquisition module, is also used to:
The the first infrared external reflection light for being in test phase is determined in each infrared external reflection light, and it is red to obtain described first Corresponding first intensity value of external reflectance light;
The preset ratio value in the terminal is obtained, and is determined between the preset ratio value and first intensity value Product, using the product as the strong a reference value of the reference light in the terminal.
Optionally, the judgment module, is also used to:
The prefixed time interval in the terminal is obtained, and the time point to receive the first infrared external reflection light is as when starting Between point, obtain an infrared external reflection light using as the second infrared external reflection light at interval of prefixed time interval;
It is quasi- to judge whether corresponding second intensity value of each second infrared external reflection light is less than the reference light strong basis one by one Value.
Optionally, the judgment module, is also used to:
Corresponding second intensity value of the second infrared external reflection light is greater than or equal to the strong a reference value of the reference light if it exists, The prefixed time interval is then waited to obtain the second new infrared external reflection light again, until the second infrared external reflection light pair that discovery is new The new intensity value answered is less than the strong a reference value of the reference light.
Optionally, the transmitting module, is also used to:
The enabled instruction in user's input terminal is received, based on the enabled instruction to the infrared light emission in the terminal Intensity is initialized;
The default emissive porwer in the terminal is obtained, and based on infrared in the default emissive porwer transmitting terminal The infrared light of emitter.
Optionally, the transmitting module, is also used to:
Obtain the default launch angle of infrared launcher transmitting infrared light in the terminal;
Obtain the current launch angle of the infrared launcher, and judge the current launch angle whether with it is described pre- If launch angle is identical;
If the current launch angle is identical with the default launch angle, by the infrared launcher with current Launch angle emits the infrared light of default emissive porwer.
Optionally, the transmitting module, is also used to:
If the current launch angle and the default launch angle be not identical, the current launch angle is adjusted to The default launch angle, and the infrared of default emissive porwer is emitted to preset launch angle by the infrared launcher Light.
Wherein, the step of each Implement of Function Module of terminal fall-proofing device can refer to terminal anti-fall method of the present invention Each embodiment, details are not described herein again.
The present invention also provides a kind of terminal fall arrest device, the terminal fall arrest device includes: mobile terminal, three-stage Earphone, memory, processor, communication bus and the dropproof program of terminal being stored on the memory:
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing the dropproof program of the terminal, to realize above-mentioned each embodiment of terminal anti-fall method The step of.
The present invention also provides a kind of storage medium, the storage medium is stored with one or more than one program, institute Stating one or more than one program can also be executed by one or more than one processor to prevent for realizing above-mentioned terminal The step of falling each embodiment of method.
Storage medium specific embodiment of the present invention and above-mentioned each embodiment of terminal anti-fall method are essentially identical, herein not It repeats again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of terminal anti-fall method, which is characterized in that the terminal anti-fall method the following steps are included:
The enabled instruction in user's input terminal is received, infrared launcher hair in the terminal is started based on the enabled instruction Penetrate infrared light;
Obtain the corresponding infrared external reflection light of each infrared light, and based on being in the of test phase in each infrared external reflection light First intensity value of one infrared external reflection light determines the strong a reference value of reference light;
The second infrared external reflection light in each infrared external reflection light after test phase is obtained, and judges second infrared external reflection Whether the second intensity value of light is less than the strong a reference value of the reference light;
If second intensity value is less than the strong a reference value of the reference light, the terminal is out of service.
2. terminal anti-fall method as described in claim 1, which is characterized in that described based in each infrared external reflection light In the step of the first intensity value of the first infrared external reflection light of test phase determines reference light strong a reference value, comprising:
The the first infrared external reflection light for being in test phase is determined in each infrared external reflection light, and it is infrared anti-to obtain described first Penetrate corresponding first intensity value of light;
The preset ratio value in the terminal is obtained, and determines multiplying between the preset ratio value and first intensity value Product, using the product as the strong a reference value of the reference light in the terminal.
3. terminal anti-fall method as described in claim 1, which is characterized in that described obtain is surveyed in each infrared external reflection light The second infrared external reflection light after the examination stage, and judge whether the second intensity value of the second infrared external reflection light is less than the ginseng The step of examining light intensity a reference value, comprising:
The prefixed time interval in the terminal is obtained, and using the time point of the first infrared external reflection light of reception as initial time Point obtains an infrared external reflection light using as the second infrared external reflection light at interval of prefixed time interval;
Judge whether corresponding second intensity value of each second infrared external reflection light is less than the strong a reference value of the reference light one by one.
4. terminal anti-fall method as claimed in claim 3, which is characterized in that described to judge that each described second is infrared anti-one by one It penetrates after the step of whether corresponding second intensity value of light is less than the reference light strong a reference value, comprising:
Corresponding second intensity value of the second infrared external reflection light is greater than or equal to the strong a reference value of the reference light if it exists, then etc. The second new infrared external reflection light is obtained again to the prefixed time interval, until the second infrared external reflection light of discovery newly is corresponding New intensity value is less than the strong a reference value of the reference light.
5. terminal anti-fall method as described in claim 1, which is characterized in that the starting received in user's input terminal Instruction starts the step of infrared launcher emits infrared light in the terminal based on the enabled instruction, comprising:
The enabled instruction in user's input terminal is received, based on the enabled instruction to the infrared light emission intensity in the terminal It is initialized;
The default emissive porwer in the terminal is obtained, and infrared emission in the terminal is emitted based on the default emissive porwer The infrared light of device.
6. terminal anti-fall method as claimed in claim 5, which is characterized in that described based on the default emissive porwer transmitting In the terminal the step of infrared light of infrared launcher, comprising:
Obtain the default launch angle of infrared launcher transmitting infrared light in the terminal;
Obtain the current launch angle of the infrared launcher, and judge the current launch angle whether with the default hair Firing angle degree is identical;
If the current launch angle is identical with the default launch angle, by the infrared launcher currently to emit Angle emits the infrared light of default emissive porwer.
7. terminal anti-fall method as claimed in claim 6, which is characterized in that described whether to judge the current launch angle After the step identical with the default launch angle, comprising:
If the current launch angle and the default launch angle be not identical, the current launch angle is adjusted to described Default launch angle, and by the infrared launcher to preset the infrared light that launch angle emits default emissive porwer.
8. a kind of terminal fall-proofing device, which is characterized in that the terminal fall-proofing device includes:
Transmitting module is started in the terminal for receiving the enabled instruction in user's input terminal based on the enabled instruction Infrared launcher emits infrared light;
Module is obtained, for obtaining the corresponding infrared external reflection light of each infrared light, and based in each infrared external reflection light The strong a reference value of reference light is determined in the first intensity value of the first infrared external reflection light of test phase;
Judgment module for obtaining the second infrared external reflection light in each infrared external reflection light after test phase, and judges institute Whether the second intensity value for stating the second infrared external reflection light is greater than the strong a reference value of the reference light;
Stopping modular, if being less than the strong a reference value of the reference light for second intensity value, the terminal is out of service.
9. a kind of terminal fall arrest device, which is characterized in that the terminal fall arrest device includes: memory, processor and deposits The dropproof program of terminal that can be run on the memory and on the processor is stored up, the dropproof program of terminal is by institute State the step of realizing the terminal anti-fall method as described in any one of claims 1 to 7 when processor executes.
10. a kind of computer readable storage medium, which is characterized in that it is anti-to be stored with terminal on the computer readable storage medium Fall program, the terminal as described in any one of claims 1 to 7 is realized when the dropproof program of terminal is executed by processor The step of anti-fall method.
CN201910154956.XA 2019-02-28 2019-02-28 Terminal anti-fall method, device, equipment and computer readable storage medium Pending CN109895143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910154956.XA CN109895143A (en) 2019-02-28 2019-02-28 Terminal anti-fall method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910154956.XA CN109895143A (en) 2019-02-28 2019-02-28 Terminal anti-fall method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109895143A true CN109895143A (en) 2019-06-18

Family

ID=66946021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910154956.XA Pending CN109895143A (en) 2019-02-28 2019-02-28 Terminal anti-fall method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109895143A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110587605A (en) * 2019-09-17 2019-12-20 深圳市优必选科技股份有限公司 Desktop robot and control circuit and control method thereof
CN111631640A (en) * 2020-05-26 2020-09-08 珠海市一微半导体有限公司 Application method of detection device capable of judging condition of robot walking surface
CN112975995A (en) * 2019-12-17 2021-06-18 沈阳新松机器人自动化股份有限公司 Service robot chassis anti-falling array device and anti-falling method
CN113443313A (en) * 2021-07-13 2021-09-28 深圳市海柔创新科技有限公司 Robot falling processing method and device, server and storage medium
CN113495567A (en) * 2021-08-27 2021-10-12 湖南格兰博智能科技有限责任公司 Cliff detection method and sweeping robot
CN114794976A (en) * 2021-01-29 2022-07-29 尚科宁家(中国)科技有限公司 Cleaning robot and wall following method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000221269A (en) * 1999-01-29 2000-08-11 Mitsubishi Electric Corp Light wave sensor device
CN1788945A (en) * 2004-12-17 2006-06-21 三星电子株式会社 Robot system
CN106142104A (en) * 2015-04-10 2016-11-23 科沃斯机器人股份有限公司 Self-movement robot and control method thereof
CN106228795A (en) * 2016-08-15 2016-12-14 杭州阿优文化创意有限公司 Dropproof wheeled robot and anti-fall method
CN107581976A (en) * 2017-09-20 2018-01-16 上海美祎科技有限公司 A kind of cleaning method, device and clean robot
CN108020844A (en) * 2017-11-27 2018-05-11 深圳市沃特沃德股份有限公司 Steep cliff detection method and robot
CN108958254A (en) * 2018-07-23 2018-12-07 深圳市银星智能科技股份有限公司 Self-movement robot

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000221269A (en) * 1999-01-29 2000-08-11 Mitsubishi Electric Corp Light wave sensor device
CN1788945A (en) * 2004-12-17 2006-06-21 三星电子株式会社 Robot system
CN106142104A (en) * 2015-04-10 2016-11-23 科沃斯机器人股份有限公司 Self-movement robot and control method thereof
CN106228795A (en) * 2016-08-15 2016-12-14 杭州阿优文化创意有限公司 Dropproof wheeled robot and anti-fall method
CN107581976A (en) * 2017-09-20 2018-01-16 上海美祎科技有限公司 A kind of cleaning method, device and clean robot
CN108020844A (en) * 2017-11-27 2018-05-11 深圳市沃特沃德股份有限公司 Steep cliff detection method and robot
CN108958254A (en) * 2018-07-23 2018-12-07 深圳市银星智能科技股份有限公司 Self-movement robot

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110587605A (en) * 2019-09-17 2019-12-20 深圳市优必选科技股份有限公司 Desktop robot and control circuit and control method thereof
CN110587605B (en) * 2019-09-17 2021-04-16 深圳市优必选科技股份有限公司 Desktop robot and control circuit and control method thereof
CN112975995A (en) * 2019-12-17 2021-06-18 沈阳新松机器人自动化股份有限公司 Service robot chassis anti-falling array device and anti-falling method
CN111631640A (en) * 2020-05-26 2020-09-08 珠海市一微半导体有限公司 Application method of detection device capable of judging condition of robot walking surface
CN114794976A (en) * 2021-01-29 2022-07-29 尚科宁家(中国)科技有限公司 Cleaning robot and wall following method thereof
CN113443313A (en) * 2021-07-13 2021-09-28 深圳市海柔创新科技有限公司 Robot falling processing method and device, server and storage medium
CN113495567A (en) * 2021-08-27 2021-10-12 湖南格兰博智能科技有限责任公司 Cliff detection method and sweeping robot

Similar Documents

Publication Publication Date Title
CN109895143A (en) Terminal anti-fall method, device, equipment and computer readable storage medium
US10635449B2 (en) Method and apparatus for running game client
US20190260854A1 (en) Method for controlling cooperation of multiple intelligent devices and apparatus thereof
WO2018228077A1 (en) Mobile terminal, method of controlling same, and computer-readable storage medium
CN106303023B (en) Screen state adjusting method and device
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
US11048403B2 (en) Method and device for animating graphic symbol for indication of data transmission
US10397877B2 (en) Electronic device and transmission power controlling method
US20160066326A1 (en) Communication channel management method and electronic device supporting the same
KR102277207B1 (en) Method and Apparatus for Mobile Communication using a plurality of Networks
US9189358B2 (en) Apparatus and method for verifying operating system of host device in portable terminal
US10585453B2 (en) Electronic device and method for communicating with external electronic device
KR102372188B1 (en) Method for cancelling noise of audio signal and electronic device thereof
US10470134B2 (en) Method of controlling an electronic device according to a communication state of the electronic device
WO2015043403A1 (en) Method, apparatus, and terminal for obtaining video data
CN108958805A (en) menu display method and device
US20180365050A1 (en) Method for Controlling Process and Related Device
US11617177B2 (en) Beam failure recovery method and terminal
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN110418003B (en) Brightness adjusting method, brightness adjusting device and mobile terminal
WO2014166307A1 (en) Method for determining performance of process of application and computer system
CN110071761B (en) Detection method and device
EP3342180B1 (en) Method of detecting external devices and electronic device for processing same
CN111883146A (en) Cross-platform distributed nearby wake-up method and device
CN110677456A (en) Resource allocation method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20221115