CN105373004B - Smart machine control method and device - Google Patents

Smart machine control method and device Download PDF

Info

Publication number
CN105373004B
CN105373004B CN201510866985.0A CN201510866985A CN105373004B CN 105373004 B CN105373004 B CN 105373004B CN 201510866985 A CN201510866985 A CN 201510866985A CN 105373004 B CN105373004 B CN 105373004B
Authority
CN
China
Prior art keywords
threshold value
smart machine
duration
light intensity
timer
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.)
Active
Application number
CN201510866985.0A
Other languages
Chinese (zh)
Other versions
CN105373004A (en
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.)
Xiaomi Inc
Beijing Smartmi Technology Co Ltd
Original Assignee
Xiaomi Inc
Beijing Smartmi Technology 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 Xiaomi Inc, Beijing Smartmi Technology Co Ltd filed Critical Xiaomi Inc
Priority to CN201510866985.0A priority Critical patent/CN105373004B/en
Publication of CN105373004A publication Critical patent/CN105373004A/en
Application granted granted Critical
Publication of CN105373004B publication Critical patent/CN105373004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The disclosure discloses a kind of smart machine control method and device, belongs to smart home field.The smart machine control method includes:Utilize the light sensor sensing light intensity;Obtain the duration that the light intensity is greater than predetermined strength threshold value;When the duration is greater than scheduled duration threshold value, then controls the smart machine and be switched to designated mode.The disclosure solves the technical issues of current control mode is not easy to daily manipulation of the user to smart machine;Reach simplified user's operation, improves the effect of user experience.

Description

Smart machine control method and device
Technical field
This disclosure relates to smart home field, in particular to a kind of smart machine control method and device.
Background technique
Various smart machines, such as air purifier, water purifier, air conditioner can be configured in Modern Smart Home It can according to need Deng, user and manipulate these smart machines.
For example, user can trigger the key being arranged on smart machine directly to control smart machine, also by Application program corresponding with smart machine controls smart machine.When being controlled by key smart machine, it is desirable that User must closely control, and when being controlled by application program smart machine, then operating process is excessively cumbersome, therefore Current control mode is not easy to daily manipulation of the user to smart machine.
Summary of the invention
The disclosure provides a kind of smart machine control method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of smart machine control method is provided, applied to being provided with light In the smart machine of sensor, the method includes:
Utilize the light sensor sensing light intensity;
Obtain the duration that the light intensity is greater than predetermined strength threshold value;
When the duration is greater than scheduled duration threshold value, then controls the smart machine and be switched to designated mode.
The implementation institute of the first aspect of the embodiment of the present disclosure is attainable to be had the beneficial effect that:By utilizing light level Device sensing light intensity obtains the duration that the light intensity is greater than predetermined strength threshold value, if duration is greater than pre- timing When long threshold value, then controls smart machine and be switched to designated mode;Due to can be directly according to the light conditions around smart machine It controls the designated mode of switching smart machine, therefore solves current control mode and be not easy to user to smart machine The technical issues of daily manipulation;Reach simplified user's operation, improves the effect of user experience.
Optionally, the duration for obtaining light intensity and being greater than predetermined strength threshold value, including:
Whether light intensity described in real-time detection is more than the predetermined strength threshold value;
When the light intensity is more than the predetermined strength threshold value, starting timer carries out timing, strong in the light In a period of degree is more than the predetermined strength threshold value, the timer is continually scanned for, by the numerical value of the timer scanned It is determined as the duration;Alternatively,
When the light intensity is more than the predetermined strength threshold value, start timer, during the timer timing, If the light intensity is more than the predetermined strength threshold value always, the timing length of the timer is determined as described lasting The timing length of duration, the timer is greater than the scheduled duration threshold value.
Optionally, the method also includes:
After the duration is greater than the scheduled duration threshold value, stop scanning the timer, by the timer It is zeroed out.Optionally, the method also includes:
Setting instruction is received, carries at least one set of scheduled duration threshold value and designated mode in the setting instruction;
Scheduled duration threshold value and the designated mode described in every group are subjected to corresponding storage.
The optional implementation institute of the first aspect of the embodiment of the present disclosure is attainable to be had the beneficial effect that:By the way that multiple groups are arranged Scheduled duration threshold value and designated mode allow users to control smart machine by the duration for changing irradiation light sensor Into different operating modes, so that the more abundant intelligence of scheme control.
Optionally, described when the duration is greater than scheduled duration threshold value, then it controls the smart machine and is switched to Designated mode, including:
When there is the scheduled duration threshold value for being less than the duration, obtain predetermined less than the maximum of the duration Duration threshold value;
Obtain designated mode corresponding with the maximum scheduled duration threshold value;
Control the designated mode that the smart machine switches to acquisition.
The optional implementation institute of the first aspect of the embodiment of the present disclosure is attainable to be had the beneficial effect that:By getting Greater than the light intensity of predetermined strength threshold value duration when, only determine and the pre- timing of maximum corresponding to the duration Long threshold value, and control the smart machine and switch to designated mode corresponding with the maximum scheduled duration threshold value, so as to avoid because Shorter duration and the case where switch mode, and then avoid the frequent switching of mode.
According to the second aspect of an embodiment of the present disclosure, a kind of smart machine control device is provided, applied to being provided with light In the smart machine of sensor, described device includes:
Sensing module is configured as utilizing the light sensor sensing light intensity;
Module is obtained, the light intensity for being configured as obtaining the sensing module perception is greater than continuing for predetermined strength threshold value Duration;
Control module is configured as then controlling when the duration that the acquisition module obtains is greater than scheduled duration threshold value It makes the smart machine and is switched to designated mode.
Optionally, the acquisition module, including:
Detection sub-module is configured as whether light intensity described in real-time detection is more than the predetermined strength threshold value;
Promoter module, be configured as the light intensity be more than the predetermined strength threshold value when, starting timer into Row timing;
It determines submodule, is configured as constantly sweeping in a period of the light intensity is more than the predetermined strength threshold value The timer is retouched, the numerical value of the timer scanned is determined as the duration;Alternatively,
It is configured as starting timer, in the timer when the light intensity is more than the predetermined strength threshold value During timing, if the light intensity is more than the predetermined strength threshold value always, the timing length of the timer is determined Timing length for the duration, the timer is greater than the scheduled duration threshold value.
Optionally, the returning apparatus includes:
Dump block is configured as after the duration is greater than the scheduled duration threshold value, stops scanning the meter When device, the timer is zeroed out.
Optionally, the returning apparatus includes:
Receiving module is configured as receiving setting instruction, carries at least one set of scheduled duration threshold in the setting instruction Value and designated mode;
Memory module is configured as carrying out scheduled duration threshold value and the designated mode described in every group into corresponding storage.
Optionally, the control module, including:
First acquisition submodule is configured as obtaining small when there is the scheduled duration threshold value for being less than the duration In the maximum scheduled duration threshold value of the duration;
Second acquisition submodule is configured as obtaining designated mode corresponding with the maximum scheduled duration threshold value;
Control submodule is configured as controlling second acquisition submodule acquisition that the smart machine switches to acquisition Designated mode.
According to the third aspect of an embodiment of the present disclosure, a kind of smart machine control device is provided, applied to being provided with light In the smart machine of sensor, described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
Utilize the light sensor sensing light intensity;
Obtain the duration that the light intensity is greater than predetermined strength threshold value;
When the duration is greater than scheduled duration threshold value, then controls the smart machine and be switched to designated mode.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and consistent with the instructions for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of smart machine control method shown according to an exemplary embodiment;
Fig. 2A is a kind of flow chart of the smart machine control method shown according to another exemplary embodiment;
Fig. 2 B is a kind of flow chart of smart machine control method shown according to another exemplary embodiment;
Fig. 2 C is a kind of setting multiple groups scheduled duration threshold value and designated mode shown according to another exemplary embodiment The flow chart of method;
Fig. 2 D be show according to another exemplary embodiment it is a kind of using intelligent terminal to every group of scheduled duration threshold value and The interface schematic diagram that designated mode is configured;
Fig. 2 E is the method that a kind of control smart machine shown according to another exemplary embodiment is switched to designated mode Flow chart;
Fig. 3 is a kind of block diagram of smart machine control device shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the smart machine control device shown according to another exemplary embodiment;
Fig. 5 is shown according to an exemplary embodiment a kind of for controlling the block diagram of the device of smart machine.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of smart machine control method shown according to an exemplary embodiment.The smart machine Control method may include the following steps.
In a step 101, light sensor sensing light intensity is utilized.
In a step 102, the duration that light intensity is greater than predetermined strength threshold value is obtained.
In step 103, it when duration is greater than scheduled duration threshold value, then controls the smart machine and is switched to specified mould Formula.
In conclusion the smart machine control method provided in the embodiment of the present disclosure, by being perceived using light sensor Light intensity obtains the duration that the light intensity is greater than predetermined strength threshold value, if duration is greater than scheduled duration threshold value When, then it controls smart machine and is switched to designated mode;Due to can directly be controlled according to the light conditions around smart machine Switch the designated mode of smart machine, therefore solves the daily behaviour that current control mode is not easy to user to smart machine The technical issues of control;Reach simplified user's operation, improves the effect of user experience.
Fig. 2A is a kind of flow chart of the smart machine control method shown according to another exemplary embodiment.The intelligence is set Standby control method may include the following steps.
In step 201, light sensor sensing light intensity is utilized.
The light intensity of light sensor meeting real-time perception smart machine ambient enviroment on smart machine, and real-time report To the intelligent chip in smart machine.
In step 202, whether real-time detection light intensity is more than predetermined strength threshold value.
For intelligent chip according to the light intensity of light sensor meeting real-time report, whether real-time detection light intensity is more than pre- Determine intensity threshold.
Whether smart machine real-time detection light intensity is more than predetermined strength threshold value, which can set in advance It is fixed.For example, predetermined strength threshold value can be set by the user, it is also possible to pre-set before smart machine factory, can also be It is pre-set in smart machine system.
By taking predetermined strength threshold value can be set by the user as an example, user can set according to the input module that smart machine provides Predetermined strength threshold value is set, setting control is then triggered, at this point, smart machine, which can then receive one, is used to indicate setting predetermined strength The setting of threshold value instructs, and stores the predetermined strength threshold value of user's input.Obviously, mode of the user in input predetermined strength threshold value It is not limited to the input module of smart machine offer, user can also be by voice input mode or by setting with the intelligence Standby corresponding application program (English:Application, referred to as:APP) the predetermined strength threshold value is set.The present embodiment to The specific implementation of predetermined strength threshold value is arranged without limiting in family.
By taking predetermined strength threshold value can be preset in smart machine system as an example, developer can be according to experiment number According to a more appropriate predetermined strength threshold value is arranged in systems, when system upgrade, which can also be with System upgrade is modified.
In general, predetermined strength threshold value cannot be too small, causes mode accidentally to be cut to avoid because light sensor is excessively sensitive The case where changing.
In one possible implementation, the light sensor of smart machine can be more intelligent namely it both can be with The light intensity of real-time perception smart machine ambient enviroment, and whether can be more than predetermined strength threshold with real-time detection light intensity Value, and will test result and inform to the intelligent chip of smart machine.
In step 203, when light intensity is more than predetermined strength threshold value, starting timer carries out timing, strong in light In a period of degree is more than predetermined strength threshold value, timer is continually scanned for, the numerical value of the timer scanned is determined as continuing Duration.
When the light intensity that light sensor detects is more than predetermined strength threshold value, starting timer starts to be counted When.
Timer progress is utilized when for the light intensity that detects again in light sensor being more than predetermined strength threshold value Timing stops scanning the timer, which is zeroed out after duration is greater than scheduled duration threshold value.
In step 204, it when duration is greater than scheduled duration threshold value, then controls smart machine and is switched to specified mould Formula.
Scheduled duration threshold value and designated mode can be preset by smart machine system, can also be set in advance by user It is fixed.
By taking smart machine is air purifier as an example, user can be configured air purifier, and user is settable predetermined Duration threshold value is 3s, and designated mode is " opening air-cleaning function, when purification is 2 hours a length of, and clean level is C grades ".User Light sensor is persistently irradiated using bright light torch, and the light intensity of light sensor detection at this time is greater than predetermined Intensity threshold.In a period of light intensity is more than predetermined strength threshold value, timer is continually scanned for, is shone with to light sensor The increase of duration is penetrated, duration also changes therewith.When it is 3s that duration, which is greater than scheduled duration threshold value, the air is net Change device and then enters designated mode " opening air-cleaning function, when purification is 2 hours a length of, and clean level is C grades ".
As shown in Figure 2 B, step 203 may be replaced by:When light intensity is more than predetermined strength threshold value, starting timing Device, if light intensity is more than predetermined strength threshold value always, the timing length of timer is determined as during timer timing The timing length of duration, timer is greater than scheduled duration threshold value.
Scheduled duration threshold value, timing length and designated mode can be preset by smart machine system, can also by with Family is preset.For example, user can set scheduled duration threshold value as 3s, and smart machine system is according to set by user predetermined Duration threshold value determines that timing length, the timing length of smart machine default are greater than scheduled duration threshold value, such as smart machine System can set timing length as 3.5s, and smart machine system can set timing length as 4s for another example.
With scheduled duration threshold value be 3s and timing length is 3.5s to illustrate.When light intensity is more than predetermined strength threshold When value, start timer.It, will timing if light intensity is more than predetermined strength threshold value always in the 3.5s of timer timing The timing length 3.5s of device is determined as duration.At this point, duration 3.5s is greater than scheduled duration threshold value 3s, control intelligence is set It is standby to be switched to designated mode.
In conclusion the smart machine control method provided in the embodiment of the present disclosure, by being perceived using light sensor Light intensity obtains the duration that the light intensity is greater than predetermined strength threshold value, if duration is greater than scheduled duration threshold value When, then it controls smart machine and is switched to designated mode;Due to can directly be controlled according to the light conditions around smart machine Switch the designated mode of smart machine, therefore solves the daily behaviour that current control mode is not easy to user to smart machine The technical issues of control;Reach simplified user's operation, improves the effect of user experience.
In addition, the smart machine control method provided in the embodiment of the present disclosure, by setting multiple groups scheduled duration threshold value and Designated mode allows users to enter different work by the duration control smart machine for changing irradiation light sensor Mode, so that the more abundant intelligence of scheme control.
In one possible implementation, in order to manipulate the various modes of smart machine, it is pre- that multiple groups can be set in user Periodically long threshold value and designated mode, the corresponding designated mode of each scheduled duration threshold value, setting up procedure are as shown in Figure 2 C.
In step 205, when light intensity is more than predetermined strength threshold value, starting timer carries out timing, strong in light When degree is lower than predetermined strength threshold value, the timing of time-out clock, the numerical value obtained when obtaining the timer determines the numerical value For duration.
When the light intensity that light sensor detects is more than predetermined strength threshold value, starting timer starts to be counted When.Timer is after starting timing, continuous accumulated time, until time-out position.In general, timer is before starting timing Initial value can be 0, or the value after last time timing.
When the light intensity that light sensor detects is lower than predetermined strength threshold value, the timing of time-out clock.If meter When device initial value be 0, then the numerical value is determined as duration by the numerical value obtained when obtaining the timer.If timer Initial value be not 0, then the numerical value is subtracted the initial value of timer by the numerical value obtained when obtaining the timer, will be obtained Difference be determined as duration.
Optionally, it in order to determine duration using timer next time, after getting this duration, can incite somebody to action Timer is zeroed out.
In step 206, reception setting instructs, and at least one set of scheduled duration threshold value is carried in setting instruction and is specified Mode.
The settable at least one set of scheduled duration threshold value of user and designated mode, accordingly, smart machine receives the setting and refers to It enables.
In actual implementation, the input module that user can provide according to smart machine is arranged scheduled duration threshold value and specifies Then mode triggers setting control, be used to indicate setting scheduled duration threshold value at this point, smart machine can then receive one and specify The setting of mode instructs, and stores each group scheduled duration threshold value and designated mode of user's input.Obviously, user is predetermined in input Mode when duration threshold value and designated mode is not limited to the input module of smart machine offer, and user can also pass through voice Scheduled duration threshold value and designated mode is arranged by application program corresponding with the smart machine in input mode.This implementation Example is to the specific implementation of user setting scheduled duration threshold value and designated mode without limiting.
By taking scheduled duration threshold value and designated mode can be preset in smart machine system as an example, developer can be with One more appropriate each group scheduled duration threshold value and designated mode is set in systems according to experimental data, when system upgrade, Each group scheduled duration threshold value and designated mode can also be modified with system upgrade.User can according to system specification, Practical operation maintains the strong light of different durations.For example, smart machine glazed thread intensity is irradiated using major light, flashlight etc., And can be according to system specification, the duration for selecting maintenance different is to switch to associative mode for smart machine.
In step 207, every group of scheduled duration threshold value and designated mode are subjected to corresponding storage.
For example, intelligent terminal and air purifier can be attached by user, using intelligent terminal to air cleaning Device is configured.As shown in Figure 2 D, the settable scheduled duration threshold value of user is 3s, will be the corresponding finger of 3s with scheduled duration threshold value Enable that mode 1 is " opening air-cleaning function, when purification is 2 hours a length of, and clean level is C grades " and the scheduled duration threshold value is 3s Carry out corresponding storage.It is 6s that scheduled duration threshold value, which can also be arranged, in user, and scheduled duration threshold value is that the corresponding instruction mode 2 of 6s is " opening air-cleaning function, when purification is 1 hour a length of, and clean level is B grade " will be the corresponding finger of 6s with scheduled duration threshold value Enable that mode is " opening air-cleaning function, when purification is 1 hour a length of, and clean level be B grades " and the scheduled duration threshold value is 6s Carry out corresponding storage.
In the case where user setting multiple groups scheduled duration threshold value and designated mode, step 204 then can be by Fig. 2 E institute Several steps for showing are realized.
In step 204a, when there is the scheduled duration threshold value for being less than duration, obtaining and being less than the duration Maximum scheduled duration threshold value.
For example, user setting multiple groups scheduled duration threshold value and designated mode.As shown in Figure 2 D, user setting is pre- Periodically long threshold value is 3s, and scheduled duration threshold value is that the instruction mode 1 answered of 3s is " to open air-cleaning function, a length of 2 is small when purification When, clean level is C grades ".It is 6s that user, which is also provided with scheduled duration threshold value, and scheduled duration threshold value is the corresponding instruction mode of 6s 2 be " opening air-cleaning function, when purification is 1 hour a length of, and clean level is B grades ".
When duration is 10s, scheduled duration threshold value 3s and scheduled duration threshold value 6s are both less than the duration, obtain Maximum scheduled duration threshold value less than the duration is 6s.
In step 204b, designated mode corresponding with maximum scheduled duration threshold value is obtained.
Obtaining with maximum scheduled duration threshold value is the corresponding designated mode of 6s " unlatching air-cleaning function, a length of 1 when purification Hour, clean level is B grades ".
In step 204c, control smart machine switches to the designated mode of acquisition.
It is corresponding designated mode " the unlatching air cleaning function of 6s that control smart machine, which is switched to maximum scheduled duration threshold value, Can, when purification, is 1 hour a length of, and clean level is B grades ".
In conclusion only being determined by when getting the duration greater than the light intensity of predetermined strength threshold value With maximum scheduled duration threshold value corresponding to the duration, and controls the smart machine and switch to and the maximum scheduled duration threshold It is worth corresponding designated mode, so as to avoid due to shorter duration the case where switch mode, and then avoids the frequency of mode Numerous switching.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 3 is a kind of block diagram of smart machine control device shown according to an exemplary embodiment, the smart machine control Device processed being implemented in combination with as some or all of of smart machine by software, hardware or both.The intelligence is set May include for control device:Sensing module 310 obtains module 320 and control module 330.
Sensing module 310 is configured as utilizing light sensor sensing light intensity.
Module 320 is obtained, is configured as obtaining light intensity the holding greater than predetermined strength threshold value that sensing module 310 perceives Continuous duration.
Control module 330 is configured as when the duration for obtaining the acquisition of module 320 is greater than scheduled duration threshold value, then It controls the smart machine and is switched to designated mode.
In conclusion the smart machine control device provided in the embodiment of the present disclosure, by being perceived using light sensor Light intensity obtains the duration that the light intensity is greater than predetermined strength threshold value, if duration is greater than scheduled duration threshold value When, then it controls smart machine and is switched to designated mode;Due to can directly be controlled according to the light conditions around smart machine Switch the designated mode of smart machine, therefore solves the daily behaviour that current control mode is not easy to user to smart machine The technical issues of control;Reach simplified user's operation, improves the effect of user experience.
Fig. 4 is a kind of block diagram of the smart machine control device shown according to another exemplary embodiment, the smart machine Control device being implemented in combination with as some or all of of smart machine by software, hardware or both.The intelligence Plant control unit may include:Sensing module 410 obtains module 420 and control module 430.
Sensing module 410 is configured as utilizing light sensor sensing light intensity.
The light intensity of light sensor meeting real-time perception smart machine ambient enviroment on smart machine, and real-time report To the intelligent chip in smart machine.
Module 420 is obtained, is configured as obtaining light intensity the holding greater than predetermined strength threshold value that sensing module 410 perceives Continuous duration.
Control module 430 is configured as when the duration for obtaining the acquisition of module 420 is greater than scheduled duration threshold value, then It controls the smart machine and is switched to designated mode.
Scheduled duration threshold value and designated mode can be set by smart machine, can also be set by the user.
Optionally, above-mentioned acquisition module 420 includes:Detection sub-module 420a, promoter module 420b and determining submodule 420c。
Detection sub-module 420a is configured as whether real-time detection light intensity is more than predetermined strength threshold value.
For intelligent chip according to the light intensity of light sensor meeting real-time report, whether real-time detection light intensity is more than pre- Determine intensity threshold.
Whether smart machine real-time detection light intensity is more than predetermined strength threshold value, which can set in advance It is fixed.
In general, predetermined strength threshold value cannot be too small, causes mode accidentally to be cut to avoid because light sensor is excessively sensitive The case where changing.
In one possible implementation, the light sensor of smart machine can be more intelligent namely it both can be with The light intensity of real-time perception smart machine ambient enviroment, and whether can be more than predetermined strength threshold with real-time detection light intensity Value, and will test result and inform to the intelligent chip of smart machine.
Promoter module 420b is configured as when light intensity is more than predetermined strength threshold value, and starting timer is counted When.
When the light intensity that light sensor detects is more than predetermined strength threshold value, starting timer starts to be counted When.Timer is after starting timing, continuous accumulated time, until time-out position.
In general, initial value of the timer before starting timing can be 0, or the value after last time timing.
It determines submodule 420c, is configured as continually scanning for counting in a period of light intensity is more than predetermined strength threshold value When device, the numerical value of the timer scanned is determined as duration;
When the light intensity that light sensor detects is more than predetermined strength threshold value, starting timer starts to be counted When.
Timer progress is utilized when for the light intensity that detects again in light sensor being more than predetermined strength threshold value Timing stops scanning the timer, which is zeroed out after duration is greater than scheduled duration threshold value.
Alternatively, determining submodule 420c, it is configured as starting timer when light intensity is more than predetermined strength threshold value, During timer timing, if light intensity is more than predetermined strength threshold value always, the timing length of timer is determined as holding The timing length of continuous duration, the timer is greater than scheduled duration threshold value.
Scheduled duration threshold value, timing length and designated mode can be preset by smart machine system, can also by with Family is preset.
Optionally, the smart machine control device further includes:
Dump block 440 is configured as after duration is greater than scheduled duration threshold value, is stopped scanning timer, will be counted When device be zeroed out.
It, can be by timer after getting this duration in order to determine duration using timer next time It is zeroed out.
Optionally, the smart machine control device further includes:
Receiving module 450 is configured as receiving setting instruction, carries at least one set of scheduled duration threshold in setting instruction Value and designated mode.
The settable at least one set of scheduled duration threshold value of user and designated mode, accordingly, smart machine receives the setting and refers to It enables.
In actual implementation, the input module that user can provide according to smart machine is arranged scheduled duration threshold value and specifies Then mode triggers setting control, be used to indicate setting scheduled duration threshold value at this point, smart machine can then receive one and specify The setting of mode instructs, and stores each group scheduled duration threshold value and designated mode of user's input.Obviously, user is predetermined in input Mode when duration threshold value and designated mode is not limited to the input module of smart machine offer, and user can also pass through voice Scheduled duration threshold value and designated mode is arranged by application program corresponding with the smart machine in input mode.This implementation Example is to the specific implementation of user setting scheduled duration threshold value and designated mode without limiting.
Memory module 460 is configured as carrying out every group of scheduled duration threshold value and designated mode into corresponding storage.
Optionally, above-mentioned control module 430, including:
First acquisition submodule 430a is configured as obtaining small when there is the scheduled duration threshold value for being less than duration In the maximum scheduled duration threshold value of the duration.
Second acquisition submodule 430b is configured as obtaining designated mode corresponding with maximum scheduled duration threshold value.
Control submodule 430c is configured as control smart machine and switches to the specified of the second acquisition submodule 430b acquisition Mode.
In conclusion the smart machine control device provided in the embodiment of the present disclosure, by being perceived using light sensor Light intensity obtains the duration that the light intensity is greater than predetermined strength threshold value, if duration is greater than scheduled duration threshold value When, then it controls smart machine and is switched to designated mode;Due to can directly be controlled according to the light conditions around smart machine Switch the designated mode of smart machine, therefore solves the daily behaviour that current control mode is not easy to user to smart machine The technical issues of control;Reach simplified user's operation, improves the effect of user experience.
An exemplary embodiment of the present disclosure provides a kind of smart machine control devices, can be realized the intelligence of disclosure offer Energy apparatus control method, the smart machine control device include:Processor, for the storage of storage processor executable instruction Device;
Wherein, processor is configured as:
Utilize light sensor sensing light intensity;
Obtain the duration that light intensity is greater than predetermined strength threshold value;
When duration is greater than scheduled duration threshold value, then controls smart machine and be switched to designated mode.
Fig. 5 is shown according to an exemplary embodiment a kind of for controlling the block diagram of the device of smart machine.For example, dress Setting 500 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 5, device 500 may include following one or more components:Processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 502 may include that one or more processors 520 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application or method for operating on device 500, contact data, and telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.The sensor module 514 includes at least light sensor 514a, and light sensor 514a is used for the real-time perception device The light intensity of 500 ambient enviroments.For example, sensor module 514 can detecte the state that opens/closes of device 500, component Relative positioning, such as the component be device 500 display and keypad, sensor module 514 can be with detection device 500 or 500 1 components of device position change, the existence or non-existence that user contacts with device 500,500 orientation of device or The temperature change of acceleration/deceleration and device 500.Sensor module 514 may include proximity sensor, be configured to do not having It is detected the presence of nearby objects when any physical contact.Sensor module 514 can also include optical sensor, such as CMOS or Ccd image sensor, for being used in imaging applications.In some embodiments, which can also include adding Velocity sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 500 When device executes, so that device 500 is able to carry out above-mentioned smart machine control method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 518 of device 500 to complete above-mentioned smart machine control Method processed.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (9)

1. a kind of smart machine control method, which is characterized in that described applied in the smart machine for being provided with light sensor Method includes:
Setting instruction is received, carries at least one set of scheduled duration threshold value and designated mode in the setting instruction;
Scheduled duration threshold value and the designated mode described in every group are subjected to corresponding storage;
Utilize the light sensor sensing light intensity;
Obtain the duration that the light intensity is greater than predetermined strength threshold value;
When the duration is greater than scheduled duration threshold value, then controls the smart machine and be switched to designated mode.
2. the method according to claim 1, wherein the light intensity that obtains is greater than holding for predetermined strength threshold value Continuous duration, including:
Whether light intensity described in real-time detection is more than the predetermined strength threshold value;
When the light intensity is more than the predetermined strength threshold value, starting timer carries out timing, super in the light intensity In a period of crossing the predetermined strength threshold value, the timer is continually scanned for, the numerical value of the timer scanned is determined For the duration;Alternatively,
When the light intensity is more than the predetermined strength threshold value, start timer, during the timer timing, if institute Stating light intensity always is more than the predetermined strength threshold value, then when the timing length of the timer being determined as described continue Long, the timing length of the timer is greater than the scheduled duration threshold value.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
After the duration is greater than the scheduled duration threshold value, stops scanning the timer, the timer is carried out It resets.
4. the method according to claim 1, wherein described when the duration is greater than scheduled duration threshold value When, then it controls the smart machine and is switched to designated mode, including:
When there is the scheduled duration threshold value for being less than the duration, the maximum scheduled duration for being less than the duration is obtained Threshold value;
Obtain designated mode corresponding with the maximum scheduled duration threshold value;
Control the designated mode that the smart machine switches to acquisition.
5. a kind of smart machine control device, which is characterized in that described applied in the smart machine for being provided with light sensor Device includes:
Receiving module is configured as receiving setting instruction, carried in setting instruction at least one set of scheduled duration threshold value with Designated mode;
Memory module is configured as carrying out scheduled duration threshold value and the designated mode described in every group into corresponding storage;
Sensing module is configured as utilizing the light sensor sensing light intensity;
Obtain module, be configured as obtaining the sensing module perception light intensity be greater than predetermined strength threshold value it is lasting when It is long;
Control module is configured as then controlling institute when the duration that the acquisition module obtains is greater than scheduled duration threshold value It states smart machine and is switched to designated mode.
6. device according to claim 5, which is characterized in that the acquisition module, including:
Detection sub-module is configured as whether light intensity described in real-time detection is more than the predetermined strength threshold value;
Promoter module is configured as when the light intensity is more than the predetermined strength threshold value, and starting timer is counted When;
It determines submodule, is configured as continually scanning for institute in a period of the light intensity is more than the predetermined strength threshold value Timer is stated, the numerical value of the timer scanned is determined as the duration;Alternatively,
It is configured as starting timer when the light intensity is more than the predetermined strength threshold value, in the timer timing The timing length of the timer is determined as institute if the light intensity is more than the predetermined strength threshold value always by period Duration is stated, the timing length of the timer is greater than the scheduled duration threshold value.
7. device according to claim 6, which is characterized in that described device further includes:
Dump block is configured as after the duration is greater than the scheduled duration threshold value, stops scanning the timer, The timer is zeroed out.
8. device according to claim 5, which is characterized in that the control module, including:
First acquisition submodule is configured as obtaining when there is the scheduled duration threshold value for being less than the duration and being less than institute State the maximum scheduled duration threshold value of duration;
Second acquisition submodule is configured as obtaining designated mode corresponding with the maximum scheduled duration threshold value;
Control submodule is configured as controlling the finger for second acquisition submodule acquisition that the smart machine switches to acquisition Mould-fixed.
9. a kind of smart machine control device, which is characterized in that described applied in the smart machine for being provided with light sensor Device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
Setting instruction is received, carries at least one set of scheduled duration threshold value and designated mode in the setting instruction;
Scheduled duration threshold value and the designated mode described in every group are subjected to corresponding storage;
Utilize the light sensor sensing light intensity;
Obtain the duration that the light intensity is greater than predetermined strength threshold value;
When the duration is greater than scheduled duration threshold value, then controls the smart machine and be switched to designated mode.
CN201510866985.0A 2015-12-01 2015-12-01 Smart machine control method and device Active CN105373004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510866985.0A CN105373004B (en) 2015-12-01 2015-12-01 Smart machine control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510866985.0A CN105373004B (en) 2015-12-01 2015-12-01 Smart machine control method and device

Publications (2)

Publication Number Publication Date
CN105373004A CN105373004A (en) 2016-03-02
CN105373004B true CN105373004B (en) 2018-11-30

Family

ID=55375298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510866985.0A Active CN105373004B (en) 2015-12-01 2015-12-01 Smart machine control method and device

Country Status (1)

Country Link
CN (1) CN105373004B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI637260B (en) * 2016-12-01 2018-10-01 緯創資通股份有限公司 Power saving method and device
CN108833683B (en) * 2018-05-28 2021-02-02 Oppo广东移动通信有限公司 Dynamic antenna adjustment implementation method and related product
CN108882034A (en) * 2018-06-29 2018-11-23 广州视源电子科技股份有限公司 Television set watches control method, device, readable storage medium storing program for executing and television set
CN113163109A (en) * 2021-03-02 2021-07-23 广州朗国电子科技有限公司 Monitoring method, device, equipment and storage medium of intelligent door lock

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414825A (en) * 2013-08-15 2013-11-27 惠州Tcl移动通信有限公司 Contextual model switching method based on sensor group and mobile terminal thereof
CN103885588A (en) * 2014-03-05 2014-06-25 小米科技有限责任公司 Automatic switchover method and device
CN104252327A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Reading mode start method and device
CN104315663A (en) * 2014-10-29 2015-01-28 小米科技有限责任公司 Method and device for controlling work of air purifier
CN104468943A (en) * 2013-09-16 2015-03-25 联想(北京)有限公司 A controlling method and electronic apparatus
CN104994241A (en) * 2015-07-17 2015-10-21 上海斐讯数据通信技术有限公司 Novel night mode protection method and system, and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252327A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Reading mode start method and device
CN103414825A (en) * 2013-08-15 2013-11-27 惠州Tcl移动通信有限公司 Contextual model switching method based on sensor group and mobile terminal thereof
CN104468943A (en) * 2013-09-16 2015-03-25 联想(北京)有限公司 A controlling method and electronic apparatus
CN103885588A (en) * 2014-03-05 2014-06-25 小米科技有限责任公司 Automatic switchover method and device
CN104315663A (en) * 2014-10-29 2015-01-28 小米科技有限责任公司 Method and device for controlling work of air purifier
CN104994241A (en) * 2015-07-17 2015-10-21 上海斐讯数据通信技术有限公司 Novel night mode protection method and system, and electronic device

Also Published As

Publication number Publication date
CN105373004A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
US10119715B2 (en) Method and device for turning on air conditioner
RU2646777C2 (en) Method (versions) and device (versions) for controlling household appliances
RU2618502C2 (en) Method and device for issuance of tips on air clearing, user equipment and system
CN104932455B (en) The group technology and apparatus for grouping of smart machine in intelligent domestic system
CN104302048B (en) Method for controlling lamp and device
CN105404160B (en) Based on dormant control method and device
EP3301521A2 (en) Method and apparatus for controlling device
CN105517277B (en) Lighting apparatus control method and device
CN105681928B (en) Apparatus control method and device
US10598707B2 (en) Method, apparatus, and system for counting electricity consumption
EP3136793A1 (en) Method and apparatus for awakening electronic device
CN106406117B (en) Equipment control method and device
CN104980565A (en) Terminal anti-addiction method and device
CN105373004B (en) Smart machine control method and device
CN106548764A (en) Screen brightness control method and device
CN105045622A (en) Terminal alarming method and apparatus
CN106292320B (en) Control the method and device of controlled device operation
CN105487650A (en) Intelligent alarm clock turn-off method and apparatus
US10354678B2 (en) Method and device for collecting sounds corresponding to surveillance images
EP3099017A1 (en) A method and a device for controlling a smart home power supply
CN105511307B (en) The control method and device of a kind of electronic equipment
CN107995676A (en) terminal control method and device
CN105516469B (en) Alarm clock control method and device
EP3015949A1 (en) Method and device for displaying information
CN105242775B (en) The method and device of state adjustment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant