CN106537887B - Terminal control method and terminal - Google Patents

Terminal control method and terminal Download PDF

Info

Publication number
CN106537887B
CN106537887B CN201680001273.5A CN201680001273A CN106537887B CN 106537887 B CN106537887 B CN 106537887B CN 201680001273 A CN201680001273 A CN 201680001273A CN 106537887 B CN106537887 B CN 106537887B
Authority
CN
China
Prior art keywords
terminal
walking
user
mode
yctalopia
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
CN201680001273.5A
Other languages
Chinese (zh)
Other versions
CN106537887A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN106537887A publication Critical patent/CN106537887A/en
Application granted granted Critical
Publication of CN106537887B publication Critical patent/CN106537887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The disclosure is directed to a kind of terminal control method and terminals, belong to field of terminal technology.This method comprises: obtaining the walking speed and upper and lower line mode for currently holding the user of the terminal;Based on the walking speed and the line mode up and down, the manner of walking of the user is determined;When the manner of walking is default manner of walking, display reminding message, the prompting message is for prompting the user to open the lighting device in the terminal;When detecting the start-up operation of the lighting device, the lighting device is opened to be illuminated.The embodiment of the present disclosure is when the manner of walking for the user for determining to hold terminal is default manner of walking, by the display reminding message notifying user open a terminal in lighting device open lighting device so that being can choose after seeing the prompting message with to preset the user that manner of walking is advanced and illuminate.

Description

Terminal control method and terminal
Technical field
This disclosure relates to field of terminal technology more particularly to a kind of terminal control method and terminal.
Background technique
With the development of lighting engineering, many terminals are equipped with lighting device, for example, the flashlight being equipped in mobile phone. When user needs to illuminate, lighting device can provide bright light for user, such as when the ambient enviroment of user is than darker, User when walking outside at night or brighter light is needed to go to see thing clearly by user, user can by the lighting device of terminal come It is illuminated.
The method for the lighting device that usual terminal control is equipped with are as follows: when terminal detects the starting behaviour of the lighting device of outfit When making, the lighting device is opened, to be illuminated by the lighting device.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of terminal control method and terminal.
According to the first aspect of the embodiments of the present disclosure, a kind of terminal control method is provided, which comprises
Obtain the walking speed and upper and lower line mode for currently holding the user of the terminal;
Based on the walking speed and the line mode up and down, the manner of walking of the user is determined;
When the manner of walking is default manner of walking, display reminding message, the prompting message is used to prompt described User opens the lighting device in the terminal;
When detecting the start-up operation of the lighting device, the lighting device is opened to be illuminated.
It is optionally, described to obtain the walking speed and upper and lower line mode for currently holding the user of the terminal, comprising:
Determine the walking distance of the user in preset duration;
Based on the walking distance of the user in the preset duration, the walking speed of the user is determined;
By the gravity sensing device being mounted in the terminal, the line mode up and down of the user is determined.
Optionally, described to be based on the walking speed and the line mode up and down, it determines the manner of walking of the user, wraps It includes:
Based on the walking speed and the line mode up and down, from the walking speed range of storage, upper and lower line mode and step In corresponding relationship between line mode, corresponding manner of walking is obtained.
It optionally, include one-key start option in the prompting message, the one-key start option is used for one-key start institute State lighting device;
It is described when detecting the start-up operation of the lighting device, open the lighting device to be illuminated, comprising:
Judge whether to detect the trigger action of the one-key start option;
When detecting the trigger action of the one-key start option, the starting behaviour of the lighting device is confirmly detected Make, and opens the lighting device to be illuminated.
Optionally, it before the walking speed and upper and lower line mode for obtaining the user for currently holding the terminal, also wraps It includes:
Judge whether yctalopia mode has been opened, the yctalopia mode is used to indicate user and goes by default manner of walking Into when open lighting device mode;
When judging that the yctalopia mode has been opened, the walking for obtaining and currently holding the user of the terminal is executed The step of speed and upper and lower line mode.
Optionally, described before judging that the yctalopia mode has been opened, further include such as at least one of under type:
When current time is within preset time period, the yctalopia mode is opened;
When detecting the trigger action of the yctalopia option in system setup menu, the yctalopia mode, the night are opened Blind option opens or closes for realizing the yctalopia mode;
When the light intensity for detecting current environment is less than default light intensity, the yctalopia mode is opened.
Optionally, described when current time is within preset time period, before opening the yctalopia mode, also wrap It includes:
Between upon this detection when section setting instruction, the period setting instruction entrained period is determined as described Preset time period;Alternatively,
It determines the time zone being presently in and season, the preset time period is determined according to the time zone and season.
According to the second aspect of an embodiment of the present disclosure, a kind of terminal is provided, the terminal includes:
Module is obtained, for obtaining the walking speed and upper and lower line mode of currently holding the user of the terminal;
First determining module, for determining the walking of the user based on the walking speed and the line mode up and down Mode;
Cue module is used for when the manner of walking is default manner of walking, display reminding message, the prompting message For prompting the user to open the lighting device in the terminal;
First open module, for when detecting the start-up operation of the lighting device, open the lighting device with It is illuminated.
Optionally, the acquisition module includes:
First determines submodule, for determining the walking distance of the user in preset duration;
Second determines that submodule determines the user for the walking distance based on the user in the preset duration Walking speed;
Third determines submodule, for the gravity sensing device by being mounted in the terminal, determines the user's Upper and lower line mode.
Optionally, first determining module includes:
Acquisition submodule, for based on the walking speed and the line mode up and down, from the walking speed range of storage, In corresponding relationship between upper and lower line mode and manner of walking, corresponding manner of walking is obtained.
It optionally, include one-key start option in the prompting message, the one-key start option is used for one-key start institute State lighting device;
Described first, which opens module, includes:
Judging submodule, for judging whether to detect the trigger action of the one-key start option;
4th determines submodule, for confirmly detecting institute when detecting the trigger action of the one-key start option The start-up operation of lighting device is stated, and opens the lighting device to be illuminated.
Optionally, the terminal further include:
Judgment module, for judging whether yctalopia mode has been opened, the yctalopia mode is used to indicate user by presetting The mode of lighting device is opened when manner of walking is advanced;
Trigger module is currently held for when judging that the yctalopia mode has been opened, triggering the acquisition module acquisition There are the walking speed and upper and lower line mode of the user of the terminal.
Optionally, the terminal further includes at least one of following module:
Second opens module, for opening the yctalopia mode when current time is within preset time period;
Third opens module, for opening institute when detecting the trigger action of the yctalopia option in system setup menu State yctalopia mode, yctalopia option the opening or closing for realizing the yctalopia mode;
4th opens module, for opening the night when the light intensity for detecting current environment is less than default light intensity Blind mode.
Optionally, the terminal further include:
Second determining module between being used for upon this detection when section setting instruction, will be arranged entrained by instruction the period Period be determined as the preset time period;Alternatively,
Third determining module, the time zone being presently in for determination and season, according to the time zone and season determination Preset time period.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, the terminal includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the walking speed and upper and lower line mode for currently holding the user of the terminal;
Based on the walking speed and the line mode up and down, the manner of walking of the user is determined;
When the manner of walking is default manner of walking, display reminding message, the prompting message is used to prompt described User opens the lighting device in the terminal;
When detecting the start-up operation of the lighting device, the lighting device is opened to be illuminated.
The technical scheme provided by this disclosed embodiment can include the following benefits: in the embodiments of the present disclosure, eventually End obtains the walking speed and upper and lower line mode of the user for currently holding the terminal first, be then based on acquisition walking speed and Upper and lower line mode determines the manner of walking of the user, when the manner of walking of the user is default manner of walking, is mentioned by display Show message notifying user open a terminal in lighting device so that seeing that this mentions to preset the user that manner of walking is advanced Show to can choose after message and open lighting device and illuminated, that is to say can remind at night or advance under dim environment When often forget about using lighting device user open lighting device illuminate.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of terminal control method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the terminal control method shown according to another exemplary embodiment.
Fig. 3 A is a kind of block diagram of terminal 300 shown according to an exemplary embodiment.
Fig. 3 B is a kind of block diagram for obtaining module shown according to an exemplary embodiment.
Fig. 3 C is a kind of block diagram of first determining module shown according to an exemplary embodiment.
Fig. 3 D is the shown according to an exemplary embodiment a kind of first block diagram for opening module.
Fig. 3 E is the block diagram of another terminal 300 shown according to an exemplary embodiment.
Fig. 3 F is the block diagram of the third terminal 300 shown according to an exemplary embodiment.
Fig. 3 G is the block diagram of the 4th kind of terminal 300 shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of terminal 400 shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Before carrying out detailed explanation to the embodiment of the present disclosure, first the application scenarios of the embodiment of the present disclosure are given It introduces.When evening corridor perhaps path light can more dim therefore people walk outside at night at night or stair activity When, it may advance relatively slower due to not seeing road;Alternatively, people may when the bad place of some light is advanced It can be slower;Or some people are more afraid of black, also can may relatively delay when these people advance under dim environment Slowly, but many people are seeing road due to concentrating one's energy during groping ahead through the darkness, and may forget that lighting device can be passed through It is illuminated, for example opens the flashlight being equipped in mobile phone and illuminate etc..Therefore, the embodiment of the present disclosure provides a kind of photograph Bright method can prompt the use when holding local at a slow speed stair activity of the user of terminal at night or in insufficient light The lighting device that family is opened a terminal is to be illuminated.
Fig. 1 is a kind of flow chart of terminal control method shown according to an exemplary embodiment.As shown in Figure 1, the end Hold control method for including the following steps in terminal.
In a step 101, the walking speed and upper and lower line mode for currently holding the user of terminal are obtained.
In a step 102, the walking speed based on acquisition and upper and lower line mode, determine the manner of walking of the user.
In step 103, when determining manner of walking is default manner of walking, display reminding message, the prompting message For prompt the user open a terminal in lighting device.
At step 104, when detecting the start-up operation of lighting device, lighting device is opened to be illuminated.
In the embodiments of the present disclosure, terminal obtains the walking speed for currently holding the user of the terminal and uplink and downlink side first Formula is then based on the walking speed and upper and lower line mode of acquisition, the manner of walking of the user is determined, when the manner of walking of the user When for default manner of walking, by display reminding message notifying user open a terminal in lighting device so that with default The user that manner of walking is advanced can choose opening lighting device after seeing the prompting message and illuminate, and that is to say can mention It wakes up to often forget about at night or the traveling under dim environment and be illuminated using user's opening lighting device of lighting device.
Optionally, the walking speed and upper and lower line mode for currently holding the user of terminal are obtained, comprising:
Determine the walking distance of user in preset duration;
Based on the walking distance of user in preset duration, the walking speed of user is determined;
By the gravity sensing device being mounted in terminal, the line mode up and down of user is determined.
Optionally, it is based on walking speed and upper and lower line mode, determines the manner of walking of user, comprising:
Based on walking speed and upper and lower line mode, from the walking speed range of storage, upper and lower line mode and manner of walking it Between corresponding relationship in, obtain corresponding manner of walking.
It optionally, include one-key start option in prompting message, one-key start option is used for one-key start lighting device;
When detecting the start-up operation of lighting device, lighting device is opened to be illuminated, comprising:
Judge whether to detect the trigger action of one-key start option;
When detecting the trigger action of one-key start option, the start-up operation of lighting device is confirmly detected, and is opened Lighting device is to be illuminated.
Optionally, before the walking speed and upper and lower line mode that obtain the user for currently holding terminal, further includes:
Judge whether yctalopia mode has been opened, yctalopia mode is used to indicate user when advancing by default manner of walking Open the mode of lighting device;
When judging that yctalopia mode has been opened, the walking speed and uplink and downlink for obtaining the user for currently holding terminal are executed The step of mode.
Optionally, further include such as at least one of under type before judging that yctalopia mode has been opened:
When current time is within preset time period, yctalopia mode is opened;
When detecting the trigger action of the yctalopia option in system setup menu, yctalopia mode is opened, yctalopia option is used In opening or closing for realization yctalopia mode;
When the light intensity for detecting current environment is less than default light intensity, yctalopia mode is opened.
Optionally, when current time is within preset time period, before opening yctalopia mode, further includes:
Between upon this detection when section setting instruction, the period setting instruction entrained period is determined as preset time Section;Alternatively,
It determines the time zone being presently in and season, preset time period is determined according to time zone and season.
All the above alternatives, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is real It applies example and this is no longer repeated one by one.
Fig. 2 is a kind of flow chart of terminal control method shown according to an exemplary embodiment.As shown in Fig. 2, the end Hold control method for including the following steps in terminal.
In step 201, judge whether yctalopia mode has been opened.
When terminal executes the terminal control method, it is necessary first to judge whether yctalopia mode has been opened, very night blind mode When having opened, the step of terminal can just execute the terminal control method.
It should be noted that the yctalopia mode, which is used to indicate the current user for holding terminal, passes through default manner of walking progress The mode of lighting device is opened when traveling.The default manner of walking include at a slow speed uplink, at a slow speed downlink, at a slow speed under parallel, middling speed Row, can also include other manner of walking in practical application certainly.In addition, upstream and downstream be primarily referred to as stair activity or on Lower abrupt slope.
In addition, terminal needs are detecting the lighting device option in system setup menu when very night blind mode is not switched on Start-up operation after, could open be equipped with lighting device to be illuminated, which needs through user's It clicks or slide is triggered.
In step 202, when judging that yctalopia mode has been opened, the walking speed for currently holding the user of terminal is obtained With upper and lower line mode.
Wherein, the implementation for obtaining the walking speed and upper and lower line mode of currently holding the user of terminal can be with are as follows: really Determine the walking distance of user in preset duration;Based on the walking distance of user in preset duration, the walking speed of user is determined;It is logical The gravity sensing device being mounted in terminal is crossed, determines the line mode up and down of user.
It should be noted that between walking distance and the preset duration of the walking speed of user for user in preset duration Ratio.In addition, the walking speed of determining user may be inaccurate, and works as the preset duration when the preset duration very little When very big, terminal can not determine in time the walking speed of user, to can not remind in time user, therefore, this is default Duration should be arranged within the scope of a reasonable duration, for example the preset duration can be 8 seconds, 10 seconds etc..
In addition, the gravity sensing device can be the gravity sensor being mounted in terminal, terminal passes through the gravity sensing Device can determine the motion state of terminal itself, that is to say that determining terminal itself is moved upwards or moved downward, and by Currently hold the terminal in user, so the motion state of itself can be determined as currently holding the user's of the terminal by terminal Motion state.When determining that terminal itself moves upwards, the user for currently holding the terminal can be determined in uplink;It is whole when determining It holds when itself moving downward, the user for currently holding the terminal can be determined in downlink.
Furthermore before judging that yctalopia mode has been opened, terminal can at least one of in the following way mode Open yctalopia mode:
The first unfolding mode: when current time is within preset time period, yctalopia mode is opened.
Wherein, terminal determines current time according to the own system time, and judges whether current time is in preset time Within section, when judging that current time is within preset time period, yctalopia mode is opened.
It, can also be by following before opening yctalopia mode when opening yctalopia mode by the first unfolding mode Preset time period is arranged in two ways: between upon this detection when section setting instruction, by the period setting instruction entrained time Section is determined as preset time period;Alternatively, determining the time zone being presently in and season, preset time is determined according to time zone and season Section.
For the mode of the first setting preset time period, the period setting instruction entrained period can be by The user for currently holding terminal inputs a period in the period input frame that terminal screen is shown and obtains, certainly, real It can also be a period list is previously stored by terminal in the application of border, by currently holding the user of terminal from the period A period is selected in list and is obtained.
Second is arranged the mode of preset time period, terminal can be by the position that is presently in and current first System time determines the time zone being presently in and season;Then terminal is according to determining time zone and season, can from storage when In corresponding relationship between area, season and period, when the period that obtains the corresponding period, and will acquire is determined as default Between section.
For example, the corresponding relationship between the time zone of terminal storage, season and period can be correspondence as shown in table 1 below Relationship, the position of terminal positioning being presently in can be Beijing, and current system time can be on January 1st, 2016, eventually End is according to position Beijing and current time on the January 1st, 2016 being presently in, when the time zone that is presently in can be determined for east eight Area, season are winter, and then terminal is according to determining UTC+8 and winter, from time zone as shown in table 1 below, season and time In corresponding relationship between section, obtaining the corresponding period is 5 points of 19 o'clock sharps to next day 30 minutes, and 19 o'clock sharps that will acquire are to secondary 5 points of 30 minutes this periods of day are determined as preset time period.
Table 1
Time zone Season Period
UTC+8 Winter 5 points of 19 o'clock sharps to next day 30 minutes
UTC+8 Summer 5 o'clock sharp of 20 o'clock sharps to next day
Eastern seven time zones Winter 6 points of 20 o'clock sharps to next day 30 minutes
Eastern seven time zones Summer 6 o'clock sharp of 21 o'clock sharps to next day
…… …… ……
It should be noted that only with pair between time zone as listed in Table 1, season and period in the embodiment of the present disclosure It is illustrated for should being related to, above-mentioned table 1 does not constitute the embodiment of the present disclosure and limits.
When opening yctalopia mode by the first unfolding mode, terminal can be in preset time determining current time When within section, yctalopia mode is automatically opened, that is to say can automatically open yctalopia mode in the period of dark, without It is passive that user is waited to open yctalopia mode, so that the efficiency for opening yctalopia mode is improved, meanwhile, forget to open yctalopia in user Terminal can open yctalopia mode in time when mode, so that user be facilitated to pass through the terminal control side in the period for needing to illuminate Method opens a terminal the lighting device of outfit, to be illuminated.
Second of unfolding mode: when detecting the trigger action of the yctalopia option in system setup menu, yctalopia is opened Mode, yctalopia option the opening or closing for realizing yctalopia mode.
Wherein, the user for currently holding terminal can find yctalopia option from system setup menu, and pass through click Or the operation such as sliding, yctalopia option can be triggered, when terminal detects the trigger action of yctalopia mode, can be opened Yctalopia mode.
It should be noted that terminal can show that the description to yctalopia mode is believed in the lower section of the yctalopia option or subpage frame Breath, the description information are used to describe the application scenarios of the yctalopia mode, for example can show " night in the lower section of the yctalopia option Would automatically turn on flashlight when stair activity " description information, to make user understand the application scenarios of the yctalopia mode, and certainly It is fixed whether to open the yctalopia mode.
When opening yctalopia mode by second of unfolding mode, the user for currently holding terminal can independently be chosen whether Yctalopia mode is opened, user is facilitated to decide whether to open a terminal by the terminal control method according to their own needs the photograph of outfit Bright device, to be illuminated.
The third unfolding mode: when the light intensity for detecting current environment is less than default light intensity, yctalopia mode is opened.
Wherein, terminal detects the light intensity of current environment by the light intensity test device being mounted in the terminal, works as inspection When the light intensity of survey is less than default light intensity, yctalopia mode is opened.The light intensity test device can be the light intensity being mounted in the terminal Sensor etc..
When opening yctalopia mode by the third unfolding mode, terminal can be less than pre- in the light intensity for determining local environment If when light intensity, automatically opening yctalopia mode, that is to say can automatically open yctalopia mode when ambient light is weaker, without quilt It is dynamic that user is waited to open yctalopia mode, so that the efficiency for opening yctalopia mode is improved, meanwhile, forget to open yctalopia mould in user Terminal can open yctalopia mode in time when formula, to facilitate user in the environment of needing to illuminate by the terminal control method Open a terminal the lighting device of outfit, to be illuminated.
In step 203, the walking speed based on acquisition and upper and lower line mode, determine the manner of walking of the user.
Wherein, terminal is obtained from the corresponding relationship between the walking speed range of storage, upper and lower line mode and manner of walking Multiple walking speed ranges are taken, from multiple walking speed ranges of acquisition, determine the walking speed for currently holding the user of terminal Walking speed range belonging to degree determines corresponding walking based on determining walking speed range and the line mode up and down obtained Mode.
For example, the walking speed that terminal obtains can be 0.25 meter per second, upper and lower line mode can be uplink mode, terminal Corresponding relationship between the walking speed range of storage, upper and lower line mode and manner of walking can be as shown in table 2 below corresponding Relationship, terminal can be from the corresponding relationships between walking speed range as shown in table 2 below, upper and lower line mode and manner of walking In, obtain multiple 0 meter per seconds of < v≤0.3 of walking speed range, 0.3 meter per second < v≤0.5 meter per second, 0.5 v≤1 meter meter per second </ Second ..., 0 meter per second of < v≤0.3 of multiple walking speed ranges, 0.3 meter per second < v≤0.5 meter per second, 0.5 meter per second from acquisition In the meter per second ... of < v≤1, walking speed range belonging to 0.25 meter per second of walking speed for the user for currently holding terminal is determined For 0 meter per second of < v≤0.3, based on the uplink mode of determining walking speed range 0 meter per second of < v≤0.3 and acquisition, determining pair The manner of walking answered is uplink at a slow speed.
Table 2
It should be noted that in the embodiment of the present disclosure only with walking speed range shown in table 2 as above, upper and lower line mode with It is illustrated for corresponding relationship between manner of walking, above-mentioned table 2 does not constitute the embodiment of the present disclosure and limits.
In step 204, when the manner of walking of the user is default manner of walking, display reminding message, the prompt disappears Cease for prompt the user open a terminal in lighting device.
Since default manner of walking can have multiple, for example default manner of walking may include uplink at a slow speed, at a slow speed downlink Equal manner of walking, therefore when terminal determines that the manner of walking of the user is any default walking side in multiple default manner of walking When formula, display reminding message.
It should be noted that may include one-key start option in the prompting message, which is used for a key Start lighting device.By triggering the lighting device that can be opened a terminal with a key to the one-key start option, it is not necessarily to user Lighting device startupoptions is searched from system setup menu, to simplify the process for opening lighting device.
In addition, can also vibrate or play default prompt melody, the default prompt while terminal display reminding message The melody of the tinkle of bells such as melody and the incoming call of terminal, short message, quarter-bell is neither identical, so as to make user that will start lighting device The melody of the tinkle of bells such as prompt melody and incoming call, short message, the quarter-bell of terminal distinguishes, and prevents user from missing the prompting message.In addition, The prompting message can show default display duration, such as 5 seconds on a terminal screen, 10 seconds etc., when showing the prompting message When duration is more than the default display duration, the prompting message is closed, it, can be with to not only can effectively be reminded user Avoid consuming excessively for terminal power.
In step 205, when detecting the start-up operation of lighting device, lighting device is opened to be illuminated.
It wherein, can be to the prompt after currently holding the prompting message that the user of the terminal shows on seeing screen The one-key start option for including in message is triggered, therefore the implementation of this step can be with are as follows: judges whether to detect one The trigger action of key startupoptions;When detecting the trigger action of one-key start option, opening for lighting device is confirmly detected Dynamic operation, and lighting device is opened to be illuminated.
It should be noted that the trigger action of the one-key start option can for the click of the one-key start option or to The operations such as upper sliding.
In addition, can be opened a key after the prompting message that the user for currently holding the terminal shows on seeing screen Dynamic option is triggered, so that the lighting device to open a terminal is illuminated;In addition, see after the prompting message can also be with by user It is automatically closed after waiting the prompting message to show default display duration, or is directly closed by triggering prompting message the off option The prompting message, so that the lighting device for not starting terminal is illuminated.
Furthermore when current time is not within preset time period, or work as the use detected in system setup menu When closing the trigger action of yctalopia option, or when the light intensity of terminal local environment is more than or equal to default light intensity, terminal can To close lighting device.
In the embodiments of the present disclosure, terminal first determines whether yctalopia mode has been opened, when judging that yctalopia mode beaten When opening, the walking speed and upper and lower line mode of the user of terminal are currently held by obtaining, determines the manner of walking of the user, when When the manner of walking of the user is default manner of walking, by display reminding message notifying user open a terminal in illumination fill It sets, so that can choose opening lighting device progress after seeing the prompting message to preset the user that manner of walking is advanced Illumination.In addition, when in the prompting message further including one-key start option, when the trigger action for detecting one-key start option When, lighting device can be opened with a key to be illuminated, search lighting device starting choosing from system setup menu without user , to simplify the process for opening lighting device, improve the efficiency for opening lighting device.
Fig. 3 A is a kind of block diagram for terminal 300 that the embodiment of the present disclosure provides.Referring to Fig. 3 A, which includes obtaining module 301, the first determining module 302, cue module 303 and first open module 304.
Module 301 is obtained, for obtaining the walking speed and upper and lower line mode of currently holding the user of terminal;
First determining module 302 determines the manner of walking of user for being based on walking speed and upper and lower line mode;
Cue module 303, for when manner of walking is default manner of walking, display reminding message, prompting message to be used for Prompt user open a terminal in lighting device;
First opens module 304, for when detecting the start-up operation of lighting device, opening lighting device to be shone It is bright.
Optionally, referring to Fig. 3 B, obtaining module 301 includes:
First determines submodule 3011, for determining the walking distance of user in preset duration;
Second determines submodule 3012, for the walking distance based on user in preset duration, determines the walking speed of user Degree;
Third determines submodule 3013, for the gravity sensing device by being mounted in terminal, determines that user's is upper and lower Line mode.
Optionally, referring to Fig. 3 C, the first determining module 302 includes:
Acquisition submodule 3021, for being based on walking speed and upper and lower line mode, from the walking speed range of storage, up and down In corresponding relationship between line mode and manner of walking, corresponding manner of walking is obtained.
It optionally, include one-key start option in prompting message, one-key start option is used for one-key start lighting device;
Referring to Fig. 3 D, the first opening module 304 includes:
Judging submodule 3041, for judging whether to detect the trigger action of one-key start option;
4th determines submodule 3042, for confirmly detecting photograph when detecting the trigger action of one-key start option The start-up operation of bright device, and lighting device is opened to be illuminated.
Optionally, referring to Fig. 3 E, terminal 300 further include:
Judgment module 305, for judging whether yctalopia mode has been opened, yctalopia mode is used to indicate user and passes through default step The mode of lighting device is opened when line mode is advanced;
Trigger module 306, for when judging that yctalopia mode has been opened, triggering to obtain module acquisition and currently holds terminal User walking speed and upper and lower line mode.
Optionally, referring to Fig. 3 F, terminal 300 further includes at least one of following module:
Second opens module 307, for opening yctalopia mode when current time is within preset time period;
Third opens module 308, for opening when detecting the trigger action of the yctalopia option in system setup menu Yctalopia mode, yctalopia option open or close for realizing yctalopia mode;
4th opens module 309, for opening yctalopia when the light intensity for detecting current environment is less than default light intensity Mode.
Optionally, referring to Fig. 3 G, terminal 300 further include:
Second determining module 310 will be entrained by period setting instruction between being used for upon this detection when section setting instruction Period is determined as preset time period;Alternatively,
Third determining module 311, for determining the time zone being presently in and season, when determining default according to time zone and season Between section.
In the embodiments of the present disclosure, terminal obtains the walking speed for currently holding the user of the terminal and uplink and downlink side first Formula is then based on the walking speed and upper and lower line mode of acquisition, the manner of walking of the user is determined, when the manner of walking of the user When for default manner of walking, by display reminding message notifying user open a terminal in lighting device so that with default The user that manner of walking is advanced can choose opening lighting device after seeing the prompting message and illuminate, and that is to say can mention It wakes up to often forget about at night or the traveling under dim environment and be illuminated using user's opening lighting device of lighting device.
About the terminal in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 4 is a kind of block diagram for terminal 400 that the embodiment of the present disclosure provides.For example, terminal 400 can be mobile phone, Computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment, a number Word assistant etc..
Referring to Fig. 4, terminal 400 may include following one or more components: processing component 402, memory 404, power supply Component 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414, and Communication component 416.
The integrated operation of the usual controlling terminal 400 of processing component 402, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 402 may include that one or more processors 420 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in terminal 400.These data are shown Example includes the instruction of any application or method for operating in terminal 400, contact data, and telephone book data disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of terminal 400.Power supply module 406 may include power management system System, one or more power supplys and other with for terminal 400 generate, manage, and distribute the associated component of power supply.
Multimedia component 408 includes the screen of one output interface of offer between terminal 400 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense the side of touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, multimedia group Part 408 includes a front camera and/or rear camera.When terminal 400 is in operation mode, such as screening-mode or video When mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition Camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike Wind (MIC), when terminal 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set Part 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for terminal 400 is commented Estimate.For example, sensor module 414 can detecte the state that opens/closes of terminal 400, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 400, and sensor module 414 can also detect 400 1 components of terminal 400 or terminal Position change, the existence or non-existence that user contacts with terminal 400,400 orientation of terminal or acceleration/deceleration and terminal 400 Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between terminal 400 and other equipment.Terminal 400 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 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 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, terminal 400 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of terminal 400 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that mobile terminal is able to carry out a kind of means of illumination, which comprises
Obtain the walking speed and upper and lower line mode for currently holding the user of terminal;
Based on walking speed and upper and lower line mode, the manner of walking of user is determined;
When manner of walking is default manner of walking, display reminding message, prompting message is for prompting user to open a terminal In lighting device;
When detecting the start-up operation of lighting device, lighting device is opened to be illuminated.
Optionally, the walking speed and upper and lower line mode for currently holding the user of terminal are obtained, comprising:
Determine the walking distance of user in preset duration;
Based on the walking distance of user in preset duration, the walking speed of user is determined;
By the gravity sensing device being mounted in terminal, the line mode up and down of user is determined.
Optionally, it is based on walking speed and upper and lower line mode, determines the manner of walking of user, comprising:
Based on walking speed and upper and lower line mode, from the walking speed range of storage, upper and lower line mode and manner of walking it Between corresponding relationship in, obtain corresponding manner of walking.
It optionally, include one-key start option in prompting message, one-key start option is used for one-key start lighting device;
When detecting the start-up operation of lighting device, lighting device is opened to be illuminated, comprising:
Judge whether to detect the trigger action of one-key start option;
When detecting the trigger action of one-key start option, the start-up operation of lighting device is confirmly detected, and is opened Lighting device is to be illuminated.
Optionally, before the walking speed and upper and lower line mode that obtain the user for currently holding terminal, further includes:
Judge whether yctalopia mode has been opened, yctalopia mode is used to indicate user when advancing by default manner of walking Open the mode of lighting device;
When judging that yctalopia mode has been opened, the walking speed and uplink and downlink for obtaining the user for currently holding terminal are executed The step of mode.
Optionally, further include such as at least one of under type before judging that yctalopia mode has been opened:
When current time is within preset time period, yctalopia mode is opened;
When detecting the trigger action of the yctalopia option in system setup menu, yctalopia mode is opened, yctalopia option is used In opening or closing for realization yctalopia mode;
When the light intensity for detecting current environment is less than default light intensity, yctalopia mode is opened.
Optionally, when current time is within preset time period, before opening yctalopia mode, further includes:
Between upon this detection when section setting instruction, the period setting instruction entrained period is determined as preset time Section;Alternatively,
It determines the time zone being presently in and season, preset time period is determined according to time zone and season.
In the embodiments of the present disclosure, terminal obtains the walking speed for currently holding the user of the terminal and uplink and downlink side first Formula is then based on the walking speed and upper and lower line mode of acquisition, the manner of walking of the user is determined, when the manner of walking of the user When for default manner of walking, by display reminding message notifying user open a terminal in lighting device so that with default The user that manner of walking is advanced can choose opening lighting device after seeing the prompting message and illuminate, and that is to say can mention It wakes up to often forget about at night or the traveling under dim environment and be illuminated using user's opening lighting device of lighting device.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention 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 true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (15)

1. a kind of terminal control method, which is characterized in that the described method includes:
Obtain the walking speed and upper and lower line mode for currently holding the user of the terminal;
Based on the walking speed and the line mode up and down, the manner of walking of the user is determined;
When the manner of walking is default manner of walking, display reminding message, the prompting message is for prompting the user Open the lighting device in the terminal;
When detecting the start-up operation of the lighting device, the lighting device is opened to be illuminated.
2. the method as described in claim 1, which is characterized in that described to obtain the walking speed for currently holding the user of the terminal Degree and upper and lower line mode, comprising:
Determine the walking distance of the user in preset duration;
Based on the walking distance of the user in the preset duration, the walking speed of the user is determined;
By the gravity sensing device being mounted in the terminal, the line mode up and down of the user is determined.
3. the method as described in claim 1, which is characterized in that it is described to be based on the walking speed and the line mode up and down, Determine the manner of walking of the user, comprising:
Based on the walking speed and the line mode up and down, from the walking speed range of storage, upper and lower line mode and walking side In corresponding relationship between formula, corresponding manner of walking is obtained.
4. method a method according to any one of claims 1-3, which is characterized in that it include one-key start option in the prompting message, The one-key start option is for lighting device described in one-key start;
It is described when detecting the start-up operation of the lighting device, open the lighting device to be illuminated, comprising:
Judge whether to detect the trigger action of the one-key start option;
When detecting the trigger action of the one-key start option, the start-up operation of the lighting device is confirmly detected, and The lighting device is opened to be illuminated.
5. the method as described in claim 1, which is characterized in that described to obtain the walking speed for currently holding the user of the terminal Before degree and upper and lower line mode, further includes:
Judge whether yctalopia mode has been opened, the yctalopia mode is used to indicate user when advancing by default manner of walking Open the mode of lighting device;
When judging that the yctalopia mode has been opened, the walking speed for obtaining and currently holding the user of the terminal is executed The step of with upper and lower line mode.
6. method as claimed in claim 5, which is characterized in that it is described before judging that the yctalopia mode has been opened, also Including at least one of such as under type:
When current time is within preset time period, the yctalopia mode is opened;
When detecting the trigger action of the yctalopia option in system setup menu, the yctalopia mode, the yctalopia choosing are opened Item opening or closing for realizing the yctalopia mode;
When the light intensity for detecting current environment is less than default light intensity, the yctalopia mode is opened.
7. method as claimed in claim 6, which is characterized in that it is described when current time is within preset time period, it beats Before opening the yctalopia mode, further includes:
Between upon this detection when section setting instruction, the period setting instruction entrained period is determined as described default Period;Alternatively,
It determines the time zone being presently in and season, the preset time period is determined according to the time zone and season.
8. a kind of terminal, which is characterized in that the terminal includes:
Module is obtained, for obtaining the walking speed and upper and lower line mode of currently holding the user of the terminal;
First determining module, for determining the manner of walking of the user based on the walking speed and the line mode up and down;
Cue module, for when the manner of walking is default manner of walking, display reminding message, the prompting message to be used for The user is prompted to open the lighting device in the terminal;
First opens module, for when detecting the start-up operation of the lighting device, opening the lighting device to carry out Illumination.
9. terminal as claimed in claim 8, which is characterized in that the acquisition module includes:
First determines submodule, for determining the walking distance of the user in preset duration;
Second determines that submodule determines the step of the user for the walking distance based on the user in the preset duration Scanning frequency degree;
Third determines submodule, for the gravity sensing device by being mounted in the terminal, determines that the user's is upper and lower Line mode.
10. terminal as claimed in claim 8, which is characterized in that first determining module includes:
Acquisition submodule, for based on the walking speed and the line mode up and down, from the walking speed range of storage, up and down In corresponding relationship between line mode and manner of walking, corresponding manner of walking is obtained.
11. the terminal as described in claim 8-10 is any, which is characterized in that include that one-key start is selected in the prompting message , the one-key start option is for lighting device described in one-key start;
Described first, which opens module, includes:
Judging submodule, for judging whether to detect the trigger action of the one-key start option;
4th determines submodule, for confirmly detecting the photograph when detecting the trigger action of the one-key start option The start-up operation of bright device, and the lighting device is opened to be illuminated.
12. terminal as claimed in claim 8, which is characterized in that the terminal further include:
Judgment module, for judging whether yctalopia mode has been opened, the yctalopia mode is used to indicate user by presetting walking The mode of lighting device is opened when mode is advanced;
Trigger module currently holds institute for when judging that the yctalopia mode has been opened, triggering the acquisition module and obtaining State the walking speed and upper and lower line mode of the user of terminal.
13. terminal as claimed in claim 12, which is characterized in that the terminal further includes at least one of following module:
Second opens module, for opening the yctalopia mode when current time is within preset time period;
Third opens module, for opening the night when detecting the trigger action of the yctalopia option in system setup menu Blind mode, yctalopia option the opening or closing for realizing the yctalopia mode;
4th opens module, for opening the yctalopia mould when the light intensity for detecting current environment is less than default light intensity Formula.
14. terminal as claimed in claim 13, which is characterized in that the terminal further include:
Second determining module, between being used for upon this detection when section setting instruction, when by entrained by period setting instruction Between section be determined as the preset time period;Alternatively,
Third determining module determines described default for determining the time zone being presently in and season according to the time zone and season Period.
15. a kind of terminal, which is characterized in that the terminal includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the walking speed and upper and lower line mode for currently holding the user of the terminal;
Based on the walking speed and the line mode up and down, the manner of walking of the user is determined;
When the manner of walking is default manner of walking, display reminding message, the prompting message is for prompting the user Open the lighting device in the terminal;
When detecting the start-up operation of the lighting device, the lighting device is opened to be illuminated.
CN201680001273.5A 2016-11-04 2016-11-04 Terminal control method and terminal Active CN106537887B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/104578 WO2018082013A1 (en) 2016-11-04 2016-11-04 Terminal control method and terminal

Publications (2)

Publication Number Publication Date
CN106537887A CN106537887A (en) 2017-03-22
CN106537887B true CN106537887B (en) 2019-06-21

Family

ID=58335831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680001273.5A Active CN106537887B (en) 2016-11-04 2016-11-04 Terminal control method and terminal

Country Status (2)

Country Link
CN (1) CN106537887B (en)
WO (1) WO2018082013A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018082013A1 (en) * 2016-11-04 2018-05-11 北京小米移动软件有限公司 Terminal control method and terminal
CN107222622A (en) * 2017-05-31 2017-09-29 深圳天珑无线科技有限公司 The method and its system of intelligent switch flashlight
CN107690029A (en) * 2017-08-30 2018-02-13 北京小米移动软件有限公司 Terminal control method and device
CN107888780B (en) * 2017-11-29 2021-04-27 维沃移动通信有限公司 Illumination control method of mobile terminal and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005142916A (en) * 2003-11-07 2005-06-02 Hitachi Ltd Mobile terminal device with camera, its illumination control method and program for illumination control
CN102592434A (en) * 2012-02-20 2012-07-18 中兴通讯股份有限公司 Infrared remote control method and device
CN103354582B (en) * 2013-06-14 2015-02-25 广东欧珀移动通信有限公司 Method and system for intelligently associating with application through sensor
KR102223277B1 (en) * 2014-01-06 2021-03-05 엘지전자 주식회사 Mobile terminal and control method for the mobile terminal
CN105302304A (en) * 2015-10-23 2016-02-03 广东小天才科技有限公司 Method and apparatus for automatically starting illumination apparatus and intelligent watch
WO2018082013A1 (en) * 2016-11-04 2018-05-11 北京小米移动软件有限公司 Terminal control method and terminal

Also Published As

Publication number Publication date
CN106537887A (en) 2017-03-22
WO2018082013A1 (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN106210550B (en) Mode regulating method and device
CN105162945B (en) Method for information display and device
CN105204357B (en) The contextual model method of adjustment and device of intelligent home device
CN104978868B (en) arrival reminding method and device
CN105517277B (en) Lighting apparatus control method and device
CN104618218B (en) Message prompt method and device
CN105681928B (en) Apparatus control method and device
CN106537887B (en) Terminal control method and terminal
CN105744133B (en) Video light compensation method and device
CN109361593A (en) A kind of method, apparatus of prompting message, mobile terminal and storage medium
CN104038693B (en) Photographic method and device
CN107872576A (en) Alarm clock prompting method, device and computer-readable recording medium
CN106210336B (en) Control the method and device of mobile terminal state switching
CN106292320B (en) Control the method and device of controlled device operation
CN105120057B (en) Alarm clock control method and device
US20170366745A1 (en) Method, device and medium of photography prompts
CN105892618A (en) Information display method and device and electronic device
CN110349578A (en) Equipment wakes up processing method and processing device
CN105828294B (en) Detection method and device
CN106817492A (en) The method and apparatus that red packet activity is reminded
CN107566750A (en) Control method, device and the storage medium of flash lamp
CN106502664B (en) User is reminded to open the method and device of application
CN106534495B (en) The method, device and equipment of information processing
CN108574777A (en) Information prompting method and device
CN105472149B (en) A kind of the tinkle of bells setting method and device

Legal Events

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