CN109510900A - A kind of control method, device, equipment and storage medium - Google Patents

A kind of control method, device, equipment and storage medium Download PDF

Info

Publication number
CN109510900A
CN109510900A CN201910086211.4A CN201910086211A CN109510900A CN 109510900 A CN109510900 A CN 109510900A CN 201910086211 A CN201910086211 A CN 201910086211A CN 109510900 A CN109510900 A CN 109510900A
Authority
CN
China
Prior art keywords
terminal device
alarm clock
sleep
light data
status information
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
CN201910086211.4A
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.)
Kunshan Pinyuan Intellectual Property Operating Technology Co ltd
Original Assignee
Shanghai Wind Communication Technologies 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 Shanghai Wind Communication Technologies Co Ltd filed Critical Shanghai Wind Communication Technologies Co Ltd
Priority to CN201910086211.4A priority Critical patent/CN109510900A/en
Publication of CN109510900A publication Critical patent/CN109510900A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Abstract

The invention discloses a kind of control method, device, equipment and storage mediums.This method comprises: obtaining the status information and light data of the terminal device when detecting that terminal device is provided with sleep reminding alarm clock;When the status information of the terminal device and light data meet preset condition, it controls the sleep reminding alarm clock to close, according to the technical solution of the present invention, can be realized when user is in sleep state, the related reminding alarm clock with sleep is automatically closed, promotes the usage experience of user.

Description

A kind of control method, device, equipment and storage medium
Technical field
The present embodiments relate to intelligent terminal technologies more particularly to a kind of control method, device, equipment and storage to be situated between Matter.
Background technique
Currently, being all to point just by the tinkle of bells set, volume and mode carry out prompting use because of the characteristic of quarter-bell Family, quarter-bell is once set, if would not be varied without changing manually.
In actual use, as soon as will appear one when needing to add a quarter-bell at night for reminding oneself to sleep A problem will be than the estimated time later, so being typically all setting one if jingle bell is slept again to point every time Time must sleep to this time.But in fact, when many time is all more early than this time, just on Bed is slept, but has arrived the time of this alarm clock setting, and alarm clock is rung again, and people is mixed it, and closes open this daily Alarm clock is very troublesome, if user forgets, will appear user and has been in sleep, but the sleep alarm clock set is again by user It wakes up with a start, reduces the usage experience of user, bring inconvenience to the life of user.
Summary of the invention
The embodiment of the present invention provides a kind of control method, device, equipment and storage medium, is in sleep in user to realize When state, the related reminding alarm clock with sleep is automatically closed, promotes the usage experience of user.
In a first aspect, the embodiment of the invention provides a kind of control methods, comprising:
When detecting that terminal device is provided with sleep reminding alarm clock, the status information and light of the terminal device are obtained Data;
When the status information of the terminal device and light data meet preset condition, the sleep reminding alarm clock is controlled It closes.
Further, when detecting that terminal device is provided with sleep reminding alarm clock, the state of the terminal device is obtained Information and light data include:
When detecting that terminal device is provided with sleep reminding alarm clock, the terminal device is monitored by gravity sensor Status information;
If determining the screen of terminal device downward according to the status information of the terminal device, pass through the terminal device Rear camera obtain the first light data;
Correspondingly, controlling the sleep when the status information of the terminal device and light data meet preset condition Reminding alarm clock is closed
When the terminal device screen downward, the first light data be less than given threshold when, control the sleep Reminding alarm clock is closed.
Further, when detecting that terminal device is provided with sleep reminding alarm clock, the state of the terminal device is obtained Information and light data include:
When detecting that terminal device is provided with sleep reminding alarm clock, the terminal device is monitored by gravity sensor Status information;
If the screen for determining terminal device according to the status information of the terminal device is upward, obtained by light sensor Take the second light data;
Correspondingly, controlling the sleep when the status information of the terminal device and light data meet preset condition Reminding alarm clock is closed
When the terminal device screen upward, the second light data be less than given threshold when, control the sleep Reminding alarm clock is closed.
Further, it when the status information of the terminal device and light data meet preset condition, is slept described in control Dormancy reminding alarm clock is closed
When the status information of the terminal device meets preset condition, and the light data decrease below given threshold When, it controls the sleep reminding alarm clock and closes.
Second aspect, the embodiment of the invention also provides a kind of control device, which includes:
Module is obtained, for obtaining the terminal device when detecting that terminal device is provided with sleep reminding alarm clock Status information and light data;
Control module, for controlling institute when the status information of the terminal device and light data meet preset condition Sleep reminding alarm clock is stated to close.
Further, module is obtained to be specifically used for:
When detecting that terminal device is provided with sleep reminding alarm clock, the terminal device is monitored by gravity sensor Status information;
If determining the screen of terminal device downward according to the status information of the terminal device, pass through the terminal device Rear camera obtain the first light data;
Correspondingly, control module is specifically used for:
When the terminal device screen downward, the first light data be less than given threshold when, control the sleep Reminding alarm clock is closed.
Further, module is obtained to be specifically used for:
When detecting that terminal device is provided with sleep reminding alarm clock, the terminal device is monitored by gravity sensor Status information;
If the screen for determining terminal device according to the status information of the terminal device is upward, obtained by light sensor Take the second light data;
Correspondingly, control module is specifically used for:
When the terminal device screen upward, the second light data be less than given threshold when, control the sleep Reminding alarm clock is closed.
Further, control module is specifically used for:
When the status information of the terminal device meets preset condition, and the light data decrease below given threshold When, it controls the sleep reminding alarm clock and closes.
The third aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, the processor are realized when executing described program as the present invention is real Apply any control method in example.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the control method as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention, by obtaining the terminal and setting when detecting that terminal device is provided with sleep reminding alarm clock Standby status information and light data;When the status information of the terminal device and light data meet preset condition, control The sleep reminding alarm clock is closed, and can be realized when user is in sleep state, is automatically closed and is made a noise with related remind of sleeping Clock promotes the usage experience of user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow chart of one of the embodiment of the present invention one control method;
Fig. 2 is the flow chart of one of the embodiment of the present invention two control method;
Fig. 3 is the structural schematic diagram of one of the embodiment of the present invention three control device;
Fig. 4 is the structural schematic diagram of one of the embodiment of the present invention four computer equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Embodiment one
Fig. 1 is a kind of flow chart for control method that the embodiment of the present invention one provides, and the present embodiment is applicable to control Situation, this method can be executed by the control device in the embodiment of the present invention, which can be used the side of software and/or hardware Formula is realized, as shown in Figure 1, this method specifically comprises the following steps:
S110 obtains the status information and light of terminal device when detecting that terminal device is provided with sleep reminding alarm clock Line number evidence.
Wherein, the terminal device can be smart phone, or smartwatch can also be the intelligence such as Intelligent bracelet Energy wearable device, it is not limited by the embodiments of the present invention.
Wherein, the sleep reminding alarm clock is used to that user to be reminded to sleep, such as can be, and sleep set by user is reminded noisy Clock is 11:00 in afternoon, then 11:00 reminds user that should sleep in the afternoon.
Wherein, the status information of the terminal device can be the movement state information of terminal device, or terminal The rollover states information of equipment can also can embody the information of the screen direction of terminal device, the embodiment of the present invention for other This is not limited.
Wherein, the acquisition modes of the status information of the terminal device can be to be set by acceleration transducer acquisition terminal The change curve of standby acceleration determines the status information of terminal device according to the change curve of acceleration, can also be to pass through The change curve of the acceleration of gravity of gravity sensor acquisition terminal equipment determines terminal according to the change curve of acceleration of gravity The status information of equipment, can also cooperate the gyroscope in terminal device to obtain the variation in the direction of terminal device, and the present invention is real It applies example and this is not limited.
Wherein, the light data can be obtained by being set to the photoelectric sensor acquisition of the screen side of terminal device , it can also be acquired and be obtained by rear camera, which kind of mode is the embodiment of the present invention specifically use obtain light data and end The status information of end equipment is related, such as can be, if the status information of terminal device be terminal device screen downward, lead to Cross the rear camera acquisition light data of terminal device.If the status information of terminal device be terminal device screen upward, Light data are acquired by the light sensor of terminal device.
Specifically, obtaining the state letter of the terminal device when detecting that terminal device is provided with sleep reminding alarm clock Breath and light data, such as can be, it detects that terminal device is provided with the sleep reminding alarm clock of 11:00 in afternoon, passes through gravity The data of sensor acquisition determine terminal device status information be terminal device screen downward, then by after terminal device Camera acquires light data, alternatively, determining that the status information of terminal device is terminal by the data that gravity sensor acquires The screen of equipment upward, then acquires light data by the light sensor of terminal device.
S120, when the status information of terminal device and light data meet preset condition, control sleep reminding alarm clock is closed It closes.
Wherein, the status information of terminal device and light data meet the status information that preset condition can be terminal device For terminal device screen downward, be less than given threshold by the light data that the rear camera of terminal device obtains;It can be with Status information for terminal device be the screen of terminal device upward, the light number obtained by the light sensor of terminal device According to less than given threshold;Or can be terminal device status information be terminal device screen downward, pass through terminal device Rear camera obtain light data decrease below given threshold;It or can be the status information of terminal device be terminal The screen of equipment decreases below given threshold upward, by the light data that the light sensor of terminal device obtains.
Optionally, when detecting that terminal device is provided with sleep reminding alarm clock, the state letter of the terminal device is obtained Breath and light data include:
When detecting that terminal device is provided with sleep reminding alarm clock, the terminal device is monitored by gravity sensor Status information.
If the screen for determining terminal device according to the status information of the terminal device is upward, obtained by light sensor Take the second light data.
Wherein, the second light data are to pass through the collected light data of light sensor.
Specifically, predefining the status information of terminal device, and then is determined and acquired according to the status information of terminal device The mode of light data.
Correspondingly, controlling the sleep when the status information of the terminal device and light data meet preset condition Reminding alarm clock is closed
When the terminal device screen upward, the second light data be less than given threshold when, control the sleep Reminding alarm clock is closed.
Optionally, when the status information of the terminal device and light data meet preset condition, the sleep is controlled Reminding alarm clock is closed
When the status information of the terminal device meets preset condition, and the light data decrease below given threshold When, it controls the sleep reminding alarm clock and closes.
Specifically, when the status information of terminal device and light data meet preset condition, control sleep reminding alarm clock It closes, such as can be, the sleep reminding alarm clock corresponding reminder time being arranged in terminal device is obtained, before reminder time For a period of time, movement that mobile phone is not overturn etc is determined by the gravity sensor, and is detected by light sensor Light later and does not have light, is considered as turning off the light.And then determining that user is in sleep state, control sleep reminding alarm clock closes It closes.
The technical solution of the present embodiment, by when detecting that terminal device is provided with sleep reminding alarm clock, described in acquisition The status information and light data of terminal device;When the status information and light data of the terminal device meet preset condition When, it controls the sleep reminding alarm clock and closes, can be realized when user is in sleep state, be automatically closed related with sleep Reminding alarm clock promotes the usage experience of user.
Embodiment two
Fig. 2 is the flow chart of one of the embodiment of the present invention two control method, and the present embodiment is using above-described embodiment as base Plinth optimizes, and in the present embodiment, when detecting that terminal device is provided with sleep reminding alarm clock, obtains the terminal device Status information and light data include: in detect terminal device be provided with sleep reminding alarm clock when, pass through gravity sensor Monitor the status information of the terminal device;If determining the screen court of terminal device according to the status information of the terminal device Under, then the first light data are obtained by the rear camera of the terminal device;Correspondingly, the state when the terminal device is believed When breath and light data meet preset condition, controlling the sleep reminding alarm clock closing includes: the screen when the terminal device Downward, it when the first light data are less than given threshold, control the sleep reminding alarm clock and closes.
As shown in Fig. 2, the method for the present embodiment specifically comprises the following steps:
S210 monitors terminal device by gravity sensor when detecting that terminal device is provided with sleep reminding alarm clock Status information.
S220 passes through terminal device if determining the screen of terminal device downward according to the status information of terminal device Rear camera obtains the first light data.
Wherein, the first light data are the light data acquired by the rear camera of terminal device.
Specifically, if the screen for determining terminal device according to the status information of terminal device downward, passes through terminal device Rear camera obtain the first light data, such as can be, it is noisy to determine that terminal device is reminded in sleep by gravity sensor The clock corresponding time is flipped for the previous period, it is determined that the status information of terminal device be terminal device screen downward, The rear camera of opening terminal apparatus obtains the first light data by the rear camera of terminal device.
S230, when terminal device screen downward, the first light data be less than given threshold when, control sleep reminding alarm clock It closes.
Specifically, when terminal device screen downward, and the first light number acquired by the rear camera of terminal device When according to being less than given threshold, control sleep alarm clock is closed.
Optionally, can also be, when terminal device screen downward, and the acquired by the rear camera of terminal device When one light data decrease below given threshold, control sleep alarm clock is closed.
In a specific example, it is provided with the sleep reminding alarm clock for reminding sleep on mobile phone, obtains sleep and mentions It wakes up the alarm clock corresponding time, is sleeping the reminding alarm clock corresponding time for the previous period, passing through the light being arranged on terminal device Sensor is confirmed whether it is turn-off, and light has grown dark and mobile phone is not the state detained, it is believed that it is sleep of turning off the light, And sleep reminding alarm clock corresponding time for the previous period, the movement that mobile phone is not overturn etc, and the light on mobile phone Sensor has detected later and do not have light, be considered as turning off the light.Whether mobile phone, which is detained, puts, and passes through gravity sensitive Device can detect.Whether mobile phone can receive light, and the light sensor of mobile phone can receive light.If mobile phone is detained Put, just start rear camera, to confirm light.For example mobile phone is in the state detained, just starting rear camera confirmation is It is no to have light.It can be considered to turn off the light when light is less than some value.Mobile phone identifies sound by mic, is sleep, or Chat.
In another specific example, user sleeps when listening song when having arrived the corresponding needs of sleep reminding alarm clock The time of feel just stops playing, the quarter-bell on mobile phone, synchronous speaker, acquires voice data by intelligent sound box, confirmation user broadcasts The state of sound reproduction sound slowly turns down volume of music, user is notified to arrive sleeping time when to sleep.
The technical solution of the present embodiment, by passing through gravity when detecting that terminal device is provided with sleep reminding alarm clock Sensor monitors the status information of the terminal device;If determining the screen of terminal device according to the status information of the terminal device Curtain downward, then obtains the first light data by the rear camera of the terminal device;When the terminal device screen downward, It when the first light data are less than given threshold, control the sleep reminding alarm clock and closes, can be realized to be in user and sleep When dormancy state, the related reminding alarm clock with sleep is automatically closed, promotes the usage experience of user.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for control device that the embodiment of the present invention three provides.The present embodiment is applicable to control The case where processed, the mode which can be used software and/or hardware realize that the device can be integrated in any offer control function In equipment, as shown in figure 3, the control device specifically includes: obtaining module 310 and control module 320.
Wherein, module 310 is obtained, for obtaining the end when detecting that terminal device is provided with sleep reminding alarm clock The status information and light data of end equipment;
Control module 320, for when the status information of the terminal device and light data meet preset condition, control The sleep reminding alarm clock is closed.
Optionally, module is obtained to be specifically used for:
When detecting that terminal device is provided with sleep reminding alarm clock, the terminal device is monitored by gravity sensor Status information;
If determining the screen of terminal device downward according to the status information of the terminal device, pass through the terminal device Rear camera obtain the first light data;
Correspondingly, control module is specifically used for:
When the terminal device screen downward, the first light data be less than given threshold when, control the sleep Reminding alarm clock is closed.
Optionally, module is obtained to be specifically used for:
When detecting that terminal device is provided with sleep reminding alarm clock, the terminal device is monitored by gravity sensor Status information;
If the screen for determining terminal device according to the status information of the terminal device is upward, obtained by light sensor Take the second light data;
Correspondingly, control module is specifically used for:
When the terminal device screen upward, the second light data be less than given threshold when, control the sleep Reminding alarm clock is closed.
Optionally, control module is specifically used for:
When the status information of the terminal device meets preset condition, and the light data decrease below given threshold When, it controls the sleep reminding alarm clock and closes.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
The technical solution of the present embodiment, by when detecting that terminal device is provided with sleep reminding alarm clock, described in acquisition The status information and light data of terminal device;When the status information and light data of the terminal device meet preset condition When, it controls the sleep reminding alarm clock and closes, can be realized when user is in sleep state, be automatically closed related with sleep Reminding alarm clock promotes the usage experience of user.
Example IV
Fig. 4 is the structural schematic diagram of one of the embodiment of the present invention four computer equipment.Fig. 4, which is shown, to be suitable for being used in fact The block diagram of the exemplary computer device 12 of existing embodiment of the present invention.The computer equipment 12 that Fig. 4 is shown is only one and shows Example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 4, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with Including but not limited to: one or more processor or processing unit 16, system storage 28 connect different system components The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not Movably, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").It although not shown in fig 4, can be with The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to moving The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould Block 42 usually executes function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other calculating equipment Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.In addition, the calculating in the present embodiment Machine equipment 12, display 24 exist not as independent individual, but are embedded in mirror surface, not aobvious in the display surface of display 24 When showing, the display surface of display 24 visually combines together with mirror surface.Also, computer equipment 12 can also be suitable by network Orchestration 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) Communication.As shown, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.It should be understood that the greatest extent Pipe is not shown in the figure, and other hardware and/or software module can be used in conjunction with computer equipment 12, including but not limited to: micro- generation Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are deposited Storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize control method provided by the embodiment of the present invention: it is reminded in detecting that terminal device is provided with to sleep When alarm clock, the status information and light data of the terminal device are obtained;When the status information and light number of the terminal device When according to meeting preset condition, controlling the sleep reminding alarm clock and closing.
Embodiment five
The embodiment of the present invention five provides a kind of computer readable storage medium, is stored thereon with computer program, the journey The control method provided such as all inventive embodiments of the application is realized when sequence is executed by processor: in detecting that terminal device is arranged When having sleep reminding alarm clock, the status information and light data of the terminal device are obtained;When the state of the terminal device is believed When breath and light data meet preset condition, controls the sleep reminding alarm clock and close.
It can be using any combination of one or more computer-readable media.Computer-readable medium can be calculating Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes: electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of control method characterized by comprising
When detecting that terminal device is provided with sleep reminding alarm clock, the status information and light number of the terminal device are obtained According to;
When the status information of the terminal device and light data meet preset condition, controls the sleep reminding alarm clock and close It closes.
2. the method according to claim 1, wherein in detecting that terminal device is provided with sleep reminding alarm clock When, the status information and light data for obtaining the terminal device include:
When detecting that terminal device is provided with sleep reminding alarm clock, the state of the terminal device is monitored by gravity sensor Information;
If determining the screen of terminal device downward according to the status information of the terminal device, by after the terminal device Camera obtains the first light data;
Correspondingly, controlling the sleep when the status information of the terminal device and light data meet preset condition and reminding Alarm clock is closed
When the terminal device screen downward, when the first light data are less than given threshold, control sleep prompting Alarm clock is closed.
3. the method according to claim 1, wherein in detecting that terminal device is provided with sleep reminding alarm clock When, the status information and light data for obtaining the terminal device include:
When detecting that terminal device is provided with sleep reminding alarm clock, the state of the terminal device is monitored by gravity sensor Information;
If determining the screen of terminal device upward according to the status information of the terminal device, the is obtained by light sensor Two light data;
Correspondingly, controlling the sleep when the status information of the terminal device and light data meet preset condition and reminding Alarm clock is closed
When the terminal device screen upward, when the second light data are less than given threshold, control sleep prompting Alarm clock is closed.
4. the method according to claim 1, wherein the status information and light data when the terminal device are full When sufficient preset condition, controlling the sleep reminding alarm clock closing includes:
When the status information of the terminal device meets preset condition, and the light data decrease below given threshold, The sleep reminding alarm clock is controlled to close.
5. a kind of control device characterized by comprising
Module is obtained, for obtaining the state of the terminal device when detecting that terminal device is provided with sleep reminding alarm clock Information and light data;
Control module, for being slept described in control when the status information of the terminal device and light data meet preset condition Dormancy reminding alarm clock is closed.
6. device according to claim 5, which is characterized in that obtain module and be specifically used for:
When detecting that terminal device is provided with sleep reminding alarm clock, the state of the terminal device is monitored by gravity sensor Information;
If determining the screen of terminal device downward according to the status information of the terminal device, by after the terminal device Camera obtains the first light data;
Correspondingly, control module is specifically used for:
When the terminal device screen downward, when the first light data are less than given threshold, control sleep prompting Alarm clock is closed.
7. device according to claim 5, which is characterized in that obtain module and be specifically used for:
When detecting that terminal device is provided with sleep reminding alarm clock, the state of the terminal device is monitored by gravity sensor Information;
If determining the screen of terminal device upward according to the status information of the terminal device, the is obtained by light sensor Two light data;
Correspondingly, control module is specifically used for:
When the terminal device screen upward, when the second light data are less than given threshold, control sleep prompting Alarm clock is closed.
8. device according to claim 5, which is characterized in that control module is specifically used for:
When the status information of the terminal device meets preset condition, and the light data decrease below given threshold, The sleep reminding alarm clock is controlled to close.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes the side as described in any in claim 1-4 when executing described program Method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The method as described in any in claim 1-4 is realized when execution.
CN201910086211.4A 2019-01-29 2019-01-29 A kind of control method, device, equipment and storage medium Pending CN109510900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910086211.4A CN109510900A (en) 2019-01-29 2019-01-29 A kind of control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910086211.4A CN109510900A (en) 2019-01-29 2019-01-29 A kind of control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109510900A true CN109510900A (en) 2019-03-22

Family

ID=65758252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910086211.4A Pending CN109510900A (en) 2019-01-29 2019-01-29 A kind of control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109510900A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944084A (en) * 2019-11-08 2020-03-31 深圳传音控股股份有限公司 Single-hand mode control method, terminal and computer storage medium
CN112399008A (en) * 2020-11-16 2021-02-23 Oppo(重庆)智能科技有限公司 Method and device for intelligently turning off alarm clock, mobile terminal and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140037109A1 (en) * 2012-08-03 2014-02-06 Samsung Electronics Co. Ltd. Method and apparatus for alarm service using context awareness in portable terminal
CN105550561A (en) * 2015-12-14 2016-05-04 广东欧珀移动通信有限公司 Identification method and device of mobile terminal
CN106843706A (en) * 2017-01-19 2017-06-13 北京小米移动软件有限公司 shutdown control method, device and terminal device
CN107026941A (en) * 2017-05-26 2017-08-08 北京小米移动软件有限公司 The reply treating method and apparatus of unread message
CN107172307A (en) * 2017-07-26 2017-09-15 北京小米移动软件有限公司 Alarm clock jingle bell control method, device and storage medium
CN107911544A (en) * 2017-11-13 2018-04-13 广东欧珀移动通信有限公司 The method for controlling volume and device of a kind of mobile terminal
CN108234738A (en) * 2017-08-18 2018-06-29 广东欧珀移动通信有限公司 volume adjusting method, device, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140037109A1 (en) * 2012-08-03 2014-02-06 Samsung Electronics Co. Ltd. Method and apparatus for alarm service using context awareness in portable terminal
CN105550561A (en) * 2015-12-14 2016-05-04 广东欧珀移动通信有限公司 Identification method and device of mobile terminal
CN106843706A (en) * 2017-01-19 2017-06-13 北京小米移动软件有限公司 shutdown control method, device and terminal device
CN107026941A (en) * 2017-05-26 2017-08-08 北京小米移动软件有限公司 The reply treating method and apparatus of unread message
CN107172307A (en) * 2017-07-26 2017-09-15 北京小米移动软件有限公司 Alarm clock jingle bell control method, device and storage medium
CN108234738A (en) * 2017-08-18 2018-06-29 广东欧珀移动通信有限公司 volume adjusting method, device, terminal and storage medium
CN107911544A (en) * 2017-11-13 2018-04-13 广东欧珀移动通信有限公司 The method for controlling volume and device of a kind of mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110944084A (en) * 2019-11-08 2020-03-31 深圳传音控股股份有限公司 Single-hand mode control method, terminal and computer storage medium
CN112399008A (en) * 2020-11-16 2021-02-23 Oppo(重庆)智能科技有限公司 Method and device for intelligently turning off alarm clock, mobile terminal and computer equipment

Similar Documents

Publication Publication Date Title
WO2020228815A1 (en) Voice-based wakeup method and device
CN105323648B (en) Caption concealment method and electronic device
JP2018180523A (en) Managing agent engagement in a man-machine dialog
CN105282343A (en) Smart sleep reminding method and smart sleep reminding device
CN108962240A (en) A kind of sound control method and system based on earphone
CN107025906A (en) The method and product and message processing device in the cycle of extended voice identification
CN105556595A (en) Method and apparatus for adjusting detection threshold for activating voice assistant function
CN109286727B (en) Operation control method and terminal equipment
CN108174037B (en) Notification message prompting method and mobile terminal
CN106527723A (en) Method and device for controlling alarm clock of mobile terminal and mobile terminal
CN109995933A (en) The method and terminal device of the alarm clock of controlling terminal equipment
CN105895126A (en) Method and apparatus for indicating and controlling playing audio/audio and video data
CN109510900A (en) A kind of control method, device, equipment and storage medium
US20130159400A1 (en) User device, server, and operating conditions setting system
CN109754823A (en) A kind of voice activity detection method, mobile terminal
CN106453789A (en) Alarm clock volume adjustment method and apparatus, and intelligent terminal
CN108494970A (en) Processing method, device, storage medium and the terminal of terminal's status information
CN108111664A (en) A kind of method, terminal and the computer-readable medium of the tinkle of bells control
CN107135305A (en) A kind of message prompt method, device and terminal
CN107343100B (en) Information prompting method and device, storage medium and electronic equipment
CN106527863A (en) Protective cover based interface display method and apparatus
WO2016052520A1 (en) Conversation device
CN112435441B (en) Sleep detection method and wearable electronic device
CN108874143A (en) A kind of playback method and terminal device
CN113835670A (en) Device control method, device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200416

Address after: Room 706, Room 1699, South Zuchong Road, Yushan Town, Kunshan City, Suzhou City, Jiangsu Province

Applicant after: Kunshan Pinyuan Intellectual Property Operating Technology Co.,Ltd.

Address before: 200233 Shanghai city industry Jinshan District Jinshan Industrial Zone Road No. 218 building 3 layer 2

Applicant before: SHANGHAI YUDE COMMUNICATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190322

RJ01 Rejection of invention patent application after publication