CN107835304A - Control method, apparatus, mobile terminal and the storage medium of mobile terminal - Google Patents

Control method, apparatus, mobile terminal and the storage medium of mobile terminal Download PDF

Info

Publication number
CN107835304A
CN107835304A CN201711015411.8A CN201711015411A CN107835304A CN 107835304 A CN107835304 A CN 107835304A CN 201711015411 A CN201711015411 A CN 201711015411A CN 107835304 A CN107835304 A CN 107835304A
Authority
CN
China
Prior art keywords
mobile terminal
distance
positional information
user
road traffic
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.)
Granted
Application number
CN201711015411.8A
Other languages
Chinese (zh)
Other versions
CN107835304B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711015411.8A priority Critical patent/CN107835304B/en
Publication of CN107835304A publication Critical patent/CN107835304A/en
Application granted granted Critical
Publication of CN107835304B publication Critical patent/CN107835304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • 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

Abstract

The invention relates to a kind of method, apparatus, mobile terminal and storage medium for controlling mobile terminal.The above method, including:When detecting that user is kept in motion, the positional information of mobile terminal is obtained;Calculate the positional information and the distance of road traffic signal;When the distance is less than pre-determined distance, enters the mobile terminal and put out screen state.Method, apparatus, mobile terminal and the storage medium of above-mentioned control mobile terminal, it is possible to reduce influenceed because using mobile terminal caused by user's personal safety.

Description

Control method, apparatus, mobile terminal and the storage medium of mobile terminal
Technical field
The application is related to field of computer technology, more particularly to a kind of method, apparatus for controlling mobile terminal, movement eventually End and computer-readable recording medium.
Background technology
Powerful all the more with intelligent mobile terminal (such as mobile phone, tablet personal computer etc.) function, user is to its degree of dependence More and more higher.Many users become " race of bowing ", or even are walked while use mobile terminal when on foot, The personal safety of user may be influenceed.
The content of the invention
The embodiment of the present application provides a kind of method, apparatus, mobile terminal and computer-readable storage for controlling mobile terminal Medium, it is possible to reduce influenceed because using mobile terminal caused by user's personal safety.
A kind of method for controlling mobile terminal, including:
When detecting that user is kept in motion, the positional information of mobile terminal is obtained;
Calculate the positional information and the distance of road traffic signal;
When the distance is less than pre-determined distance, enters the mobile terminal and put out screen state.
A kind of device for controlling mobile terminal, including:
Position acquisition module, for when detecting that user is kept in motion, obtaining the positional information of mobile terminal;
Computing module, for calculating the distance of the positional information and road traffic signal;
Panel module is put out, puts out screen state for when the distance is less than pre-determined distance entering, the mobile terminal.
A kind of mobile terminal, including memory and processor, computer program, the calculating are stored with the memory When machine program is by the computing device so that the processor realizes method as described above.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor Method as described above is realized during row.
Method, apparatus, mobile terminal and the computer-readable recording medium of above-mentioned control mobile terminal, when detecting user When being kept in motion, the distance of the positional information of mobile terminal, calculating location information and road traffic signal is obtained, if should be away from From less than pre-determined distance, then mobile terminal is set to carry out putting out screen state, user can not operate mobile terminal again, it is possible to reduce Yong Hu On foot etc. under state, because using mobile terminal to the personal safety of user caused by influence.
Brief description of the drawings
Fig. 1 is the method flow schematic diagram that mobile terminal is controlled in one embodiment;
Fig. 2 is the schematic flow sheet that whether detection user is kept in motion in one embodiment;
Fig. 3 is the flow signal that the positional information of mobile terminal and the distance of road traffic signal are calculated in one embodiment Figure;
Fig. 4 is when the positional information of mobile terminal and the distance of road traffic signal are less than pre-determined distance in one embodiment When, send the schematic flow sheet of information warning;
Fig. 5 is the block diagram for the device that mobile terminal is controlled in one embodiment;
Fig. 6 is the block diagram for the device that mobile terminal is controlled in another embodiment;
Fig. 7 is the block diagram of mobile terminal in one embodiment.
Embodiment
In order that the object, technical solution and advantage of the application are more clearly understood, it is right below in conjunction with drawings and Examples The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not For limiting the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes Say, in the case where not departing from scope of the present application, the first client can be referred to as the second client, and similarly, can incite somebody to action Second client is referred to as the first client.First client and the second client both clients, but it is not same visitor Family end.
As shown in Figure 1, there is provided a kind of method for controlling mobile terminal, comprise the following steps:
Step 110, when detecting that user is kept in motion, the positional information of mobile terminal is obtained.
Mobile terminal can detect whether user is kept in motion, wherein, motion state may include the shapes such as walking, running State, in one embodiment, mobile terminal can gather the number of the sensors such as gravity sensor, acceleration transducer and gyroscope According to, and the data characteristics of the sensing data of collection is analyzed, the usage scenario of mobile terminal is classified by data characteristics. The usage scenario of mobile terminal may include but be not limited to user and be in non-athletic state to walk line state using mobile terminal, user Lower mobile terminal be held on hand using, user walk line state move down dynamic terminal be put into pocket or knapsack, on user downstairs Mobile terminal is held in when terraced uses on hand.Mobile terminal can gather sensing data according to default frequency acquisition, and can According to the sensing data drawing data curve of collection, corresponding data characteristics can obtain by analyze data curve, wherein, number It may include difference between crest in data and curves, trough, crest and trough etc. according to feature.Different mobile terminals uses field Scape can correspond to different data characteristicses respectively, and mobile terminal can be by analyzing mobile terminal corresponding to the determination of obtained data characteristics Usage scenario.
After mobile terminal determines usage scenario, it can determine whether user is kept in motion.If user is in walking, run It during the motion states such as step, stair activity, can be positioned, and obtain the positional information being currently located, wherein, positional information can wrap Latitude and longitude information is included, longitude and latitude is a coordinate system of longitude and latitude composition, referred to as geographical co-ordinate system, and it is a kind of profit The spherical coordinate system in tellurian space is defined with the sphere in three-dimensional space, any one tellurian position can be indicated Put.Alternatively, mobile terminal can pass through global positioning system (Global Positioning System, GPS), assisted global Global position system (Assisted Global Positioning System, AGPS) or based on location-based service (Location Based Service, LBS) etc. mode positioned.GPS is that one kind utilizes GPS positioning satellite, is entered in real time in the world Row positioning, the system of navigation, when mobile terminal is provided with GPS chip, you can GPS positioning satellite signal is received by GPS chip, So as to which the latitude and longitude information that mobile terminal is currently located be calculated, positioning is realized.AGPS be it is a kind of based on traditional gps satellite and Mobile phone base station, the system quickly positioned.In AGPS, mobile terminal first can be got currently from nearest cellular basestation Residing approximate location, and sent the approximate location being presently in AGPS location servers, AGPS positions by cellular network The corresponding usable satellite information of server can be inquired about with this is presently in approximate location is put, when mobile terminal receives available defend During star information, you can currently available gps satellite is quickly found out according to usable satellite information, and receives gps satellite signal realization Positioning, wherein usable satellite refers to the satellite of the upper dry running for the approximate location being presently in mobile terminal.What LBS then referred to It is by way of the radio communication network of the operator such as telecommunications or movement is positioned.
Step 120, the distance of calculating location information and road traffic signal.
Road traffic signal may include but be not limited to traffic lights, traffic sign, traffic marking etc., wherein, traffic letter Signal lamp may include direction instruction signal lamp, traffic lights etc., and traffic sign may include caution sign, Warning Mark etc., traffic marking It may include instruction graticule, pavement graticule etc..After mobile terminal is positioned and obtains positional information, it can be read in positional information Preset range in map datum, and obtain the positional information where road traffic signal in the map datum.It is mobile The position letter that terminal can calculate the positional information of each road traffic signal in the map datum and mobile terminal is presently in The distance of breath, and obtain the closest road traffic signal of the positional information being presently in mobile terminal.
In one embodiment, mobile terminal can predefine the species of road traffic signal, mobile terminal confidence in place In map datum in the preset range of breath, the position belonged to where the road friendship energy signal of predetermined species can be only obtained Information, then calculate the positional information that positional information and the mobile terminal of each road traffic signal of acquisition are presently in away from From.For example, the species that mobile terminal can predefine road traffic signal is traffic lights, then can be in the preset range of positional information In interior map datum, obtain traffic lights where positional information, and calculate each traffic lights and mobile terminal of acquisition away from From can therefrom obtain the traffic lights nearest apart from mobile terminal.
Step 130, when distance is less than pre-determined distance, enter mobile terminal and put out screen state.
After acquisition for mobile terminal and the closest road traffic signal of the positional information being presently in, can be nearest by this Distance compared with pre-determined distance, judge mobile terminal and nearest road traffic signal distance whether be less than it is default away from From, wherein, pre-determined distance may refer to use safely the distance of mobile terminal, and pre-determined distance can be set according to the actual requirements It is fixed, such as 50 meters, 30 meters etc..When the distance of mobile terminal and nearest road traffic signal is less than pre-determined distance, illustrate entrance Screen state is put out using in mobile terminal unsafe distance range, mobile terminal can enter, it is mobile into after putting out screen state Terminal can be no longer operated.Mobile terminal is carried out after putting out screen state, and the touch control operation of user can not be responded.
In the present embodiment, when detecting that user is kept in motion, the positional information of mobile terminal is obtained, calculates position Confidence ceases the distance with road traffic signal, if the distance is less than pre-determined distance, makes mobile terminal carry out putting out screen state, user Mobile terminal can not be operated again, it is possible to reduce user is walking etc. under state, because using personal safety of the mobile terminal to user Caused by influence.
As shown in Fig. 2 in one embodiment, in step 110 when detecting that user is kept in motion, obtain movement Before the positional information of terminal, it may include following steps:
Step 202, exercise data is gathered every preset time period.
Step 204, if the exercise data of this collection is different from the exercise data of last time collection, detect at user In motion state.
Mobile terminal can gather the exercise data of user every preset time period, wherein, exercise data may include but unlimited Calorie of step number, consumption in user's walking etc..Mobile terminal can be by the exercise data of this collection and last collection Exercise data is compared, and judges whether the exercise data of collection changes, if the exercise data of this collection and last time The exercise data of collection is different, then can determine that user is kept in motion.
In one embodiment, after mobile terminal can gather multiple exercise data, then judge whether exercise data is in and hold The state of continuous change, if the exercise data of multi collect is different, illustrates that exercise data is in the state persistently changed, then can sentence Determine user to be kept in motion, result of determination can be made more accurate.
Alternatively, step 202 gathers exercise data every preset time period, including:Meter step is gathered every preset time period Using the exercise data of record.
The meter that mobile terminal can gather installation every preset time period walks the exercise data of application, and is examined according to exercise data Survey whether user is kept in motion, wherein, meter step application refer to installing in mobile terminal can according to gravity sensor plus Velocity sensor etc. records the application program of user movement data.
Mobile terminal can enter the exercise data of the meter step application record of this collection and the exercise data of last time collection Row compares, and judges whether the exercise data of collection changes, if the exercise data of this collection and the motion of last collection Data are different, then can determine that user is kept in motion.In one embodiment, mobile terminal can gather repeatedly meter step application After exercise data, then judge that exercise data whether in the state persistently changed, if the exercise data of multi collect is different, is said Bright exercise data is in the state persistently changed, then can determine that user is kept in motion, result of determination can be made more accurate.
Alternatively, step 202 gathers exercise data every preset time period, it may include:Detect whether wearing for connection Equipment is worn, if so, then gathering exercise data from the wearable device of connection every preset time period.
Mobile terminal can detect whether the wearable device of connection, wherein, wearable device refers to directly being through With, or being incorporated into the clothes of user or a kind of portable set of accessory, wearable device may include intelligent watch, intelligence Bracelet, intelligent shoe etc..Wearable device can record to exercise data of user etc., such as the step of record user's walking Data, the wearable devices such as number, the calorie consumed can establish network connection, and exercise data by record etc. with mobile terminal Send to mobile terminal, alternatively, wearable device can establish network with mobile terminal by bluetooth (BLUETOOTH) etc. and connect Connect.
When mobile terminal detects the wearable device of connection, then can be set every preset time period from the wearable of connection Standby collection exercise data, and can be by the exercise data that the wearable device of this collection records and the exercise data of last collection It is compared, judges whether the exercise data of collection changes, if the exercise data of this collection and the fortune of last collection Dynamic data are different, then can determine that user is kept in motion.In one embodiment, mobile terminal can gather repeatedly connect can After the exercise data of wearable device, then whether exercise data is judged in the state persistently changed, if the motion number of multi collect According to equal difference, illustrate that exercise data is in the state persistently changed, then can determine that user is kept in motion, result of determination can be made It is more accurate.
In the present embodiment, it can detect whether user is kept in motion according to the exercise data of collection, can facilitate User be in walk etc. motion state when, mobile terminal is controlled, mobile terminal capable of reducing using to user the person peace Influence caused by complete.
As shown in figure 3, in one embodiment, the distance of step 120 calculating location information and road traffic signal, including Following steps:
Step 302, destination information is obtained, and programme path is generated according to positional information and destination information.
When mobile terminal detects that user is kept in motion, it can be positioned, so as to obtain the current institute of mobile terminal The positional information at place, mobile terminal can obtain destination information, and be given birth to according to the positional information and destination information being presently in Into programme path.Programme path can be route or road closest between positional information and destination information The best route of environment, wherein, road environment may include congestion in road situation, pavement construction situation etc..
In one embodiment, destination information can be that user is inputted in advance, can also be united by mobile terminal The moving line of user in a period of time is counted, the moving line matched with positional information can be obtained from the moving line of statistics, And frequency of occurrences highest moving line is chosen from the moving line of matching, can be by the frequency of occurrences highest moving line Destination information of the destination information as this.For example, mobile terminal can count the moving line of user in one month, it is mobile Terminal is in position A, then can obtain the moving line matched with position A, wherein, it may include A with the position A moving lines matched → B, A → C, A → D etc., it is A → C that can therefrom choose frequency of occurrences highest moving line, can be using position C as this mesh Ground.Alternatively, mobile terminal also can be using the frequency of occurrences highest moving line of selection as programme path.
Step 304, the road traffic signal that programme path includes is obtained.
Step 306, each road traffic signal of acquisition and the distance of the positional information, and acquisition and position are calculated respectively Confidence ceases closest road traffic signal.
Mobile terminal can obtain the road traffic signal that programme path includes in map datum, and comprising each road Positional information where the traffic signals of road, then calculate each road traffic signal that programme path includes respectively and work as with mobile terminal The distance of the location of preceding information.Mobile terminal can obtain the positional information that is presently in programme path with mobile terminal away from From nearest road traffic signal, and by the nearest distance compared with pre-determined distance, if mobile terminal and programme path The distance of upper nearest road traffic signal is less than pre-determined distance, can enter mobile terminal and put out screen state.
In the present embodiment, can be according to the positional information generation planning road that destination information and mobile terminal are presently in Line, and road traffic signal closest with positional information on programme path is obtained, when the positional information of mobile terminal is with being somebody's turn to do When the distance of nearest road traffic signal is less than pre-determined distance, mobile terminal is set to carry out putting out screen state, user can not operate again Mobile terminal, it is possible to reduce user is walking etc. under state, because using mobile terminal to the personal safety of user caused by influence, And improve the accuracy of control mobile terminal.
As shown in figure 4, in one embodiment, it is further comprising the steps of after when distance is less than pre-determined distance:
Step 402, the application program identification of front stage operation is obtained, and determines the application type belonging to application program identification.
When the positional information and the distance of road traffic signal that mobile terminal is presently in are less than pre-determined distance, can pass through Active manager obtains the application program identification of front stage operation, can pass through the RunningAppProcessInfo of active manager Class obtains the application list, and record has all application programs being currently running in the application list, can judge to apply one by one The state of each application program being currently running is front stage operation or running background in program listing.Mobile terminal can be from application The application program identification that state is front stage operation is obtained in program listing, wherein, application program identification can be application program Title, or numbering etc. can be used for the information of unique mark application program.Mobile terminal can be according to the application program of front stage operation Mark, it is determined that the application type of the application program in front stage operation, application type may include instant messaging application, game application, Shopping application, Video Applications etc..
Step 404, if judging, whether application type is intended application type, if so, step 406 is then performed, if it is not, then holding Row step 408.
Mobile terminal can determine whether the application type belonging to the application program identification of front stage operation is intended application type, Wherein, intended application type can be configured according to demand, such as can be game application, or instant messaging application etc..
Step 406, information warning is sent according to predetermined manner.
If the application type belonging to the application program identification of front stage operation is intended application type, mobile terminal can be according to pre- If mode sends information warning, wherein, the sending method of information warning can be set according to the actual requirements, such as pass through vibrations Information warning is sent, information warning is sent by voice, transmission information warning etc. is flashed by flash lamp.
In one embodiment, mobile terminal can be positioned in real time, and update current positional information.Work as front stage operation Application program identification belonging to application type be intended application type, mobile terminal sends information warning according to predetermined manner, When the positional information of mobile terminal and the distance of road traffic signal are less than predetermined threshold value, mobile terminal can enter to tap into put out screen State, wherein, predetermined threshold value can be the distance more shorter than pre-determined distance, such as 10 meters, 5 meters etc..When the position of mobile terminal When information and the distance of road traffic signal are less than predetermined threshold value, explainable user has reached substantially to road traffic signal institute Position, can directly make mobile terminal enter put out screen state, the touch control operation of user is not responded.
Step 408, enter mobile terminal and put out screen state.
When the positional information and the distance of road traffic signal that mobile terminal is presently in are less than pre-determined distance, if foreground Application type belonging to the application program identification of operation is not intended application type, then can enter mobile terminal and put out screen state, The touch control operation of user is not responded.
In one embodiment, when the positional information and the distance of road traffic signal that mobile terminal is presently in are less than in advance If apart from when, whether mobile terminal is detectable current be in default communication state, and default communication state may include call shape State, video state etc., but not limited to this.If mobile terminal is currently at default communication state, can be sent out according to predetermined manner Information warning is sent, can avoid being directly entered and put out screen state interrupt communication.
In the present embodiment, if the application type belonging to the application program identification of front stage operation is intended application type, move Dynamic terminal can send information warning according to predetermined manner, and can avoid, which directly enters mobile terminal, puts out what screen state was brought to user Inconvenience.
In one embodiment, the method for above-mentioned control mobile terminal, in addition to:When the position for detecting mobile terminal is believed When the distance of breath and road traffic signal is more than or equal to pre-determined distance, mobile terminal is waken up.
Mobile terminal can be positioned by GPS or AGPS etc. in real time, update the positional information being presently in, and calculate more The positional information of new mobile terminal and the distance of road traffic signal.When mobile terminal detects positional information and road traffic When the distance of signal is less than pre-determined distance, it can enter mobile terminal and put out screen state.When mobile terminal detect positional information with When the distance of road traffic signal is more than or equal to pre-determined distance, mobile terminal can be waken up, user can normal use mobile terminal.
In one embodiment, when mobile terminal detects that user is kept in motion, can obtain in map datum with The closest road traffic signal of the positional information that is presently in.Mobile terminal obtains positional information in real time, can be according to real-time The positional information calculation mobile terminal of acquisition and the distance of the nearest road traffic signal.When mobile terminal detects that position is believed When the distance of breath and the nearest road traffic signal is less than pre-determined distance, it can enter mobile terminal and put out screen state.It is mobile whole End, can when the distance for detecting positional information and road traffic signal is more than or equal to pre-determined distance into after putting out screen state Mobile terminal is waken up, user can normal use mobile terminal again.
In the present embodiment, when mobile terminal is away from road traffic signal, mobile terminal can be reawaked, makes user can Normal use mobile terminal, walked etc. under state reducing user, caused by using mobile terminal to the personal safety of user Influence while, meet the needs of user uses mobile terminal, it is more convenient.
In one embodiment, there is provided a kind of method for controlling mobile terminal, comprise the following steps:
Step (1), exercise data is gathered every preset time period, if the exercise data of this collection and last collection Exercise data is different, then detects that user is kept in motion.
Alternatively, exercise data is gathered every preset time period, including:Meter step application record is gathered every preset time period Exercise data.
Alternatively, exercise data is gathered every preset time period, including:The wearable device of connection is detected whether, if Have, then gather exercise data from the wearable device of connection every preset time period.
Step (2), when detecting that user is kept in motion, obtain the positional information of mobile terminal.
The distance of step (3), calculating location information and road traffic signal.
Alternatively, the distance of calculating location information and road traffic signal, including:Destination information is obtained, and according to position Confidence ceases and destination information generation programme path;Obtain the road traffic signal that programme path includes;Calculate what is obtained respectively The distance of each road traffic signal and positional information, and obtain and the closest road traffic signal of positional information.
Step (4), when distance is less than pre-determined distance, enters mobile terminal and put out screen state.
Alternatively, when distance is less than pre-determined distance, the application program identification of front stage operation is obtained, and determine application program Application type belonging to mark;If application type is intended application type, information warning is sent according to predetermined manner, otherwise, Enter mobile terminal and put out screen state.
Step (5), preset when the positional information and the distance of road traffic signal for detecting mobile terminal are more than or equal to Apart from when, wake up mobile terminal.
In the present embodiment, when detecting that user is kept in motion, the positional information of mobile terminal is obtained, calculates position Confidence ceases the distance with road traffic signal, if the distance is less than pre-determined distance, makes mobile terminal carry out putting out screen state, user Mobile terminal can not be operated again, it is possible to reduce user is walking etc. under state, because using personal safety of the mobile terminal to user Caused by influence.
As shown in figure 5, in one embodiment, there is provided a kind of device 500 for controlling mobile terminal, including position acquisition mould Block 510, computing module 520 and put out panel module 530.
Position acquisition module 510, the position for when detecting that user is kept in motion, obtaining mobile terminal are believed Breath.
Computing module 520, the distance for calculating location information and road traffic signal.
Panel module 530 is put out, for when distance is less than pre-determined distance, entering mobile terminal and putting out screen state.
In the present embodiment, when detecting that user is kept in motion, the positional information of mobile terminal is obtained, calculates position Confidence ceases the distance with road traffic signal, if the distance is less than pre-determined distance, makes mobile terminal carry out putting out screen state, user Mobile terminal can not be operated again, it is possible to reduce user is walking etc. under state, because using personal safety of the mobile terminal to user Caused by influence.
As shown in fig. 6, in one embodiment, the device 500 of above-mentioned control mobile terminal, except including position acquisition mould Block 510, computing module 520 and panel module 530 is put out, in addition to acquisition module 540 and detection module 550.
Acquisition module 540, for gathering exercise data every preset time period.
Alternatively, acquisition module 540, it is additionally operable to gather the exercise data of meter step application record every preset time period.
Alternatively, acquisition module 540, it is additionally operable to detect whether the wearable device of connection, if so, then when default Between section gather exercise data from the wearable device of connection.
Detection module 550, if the exercise data for this collection is different from the exercise data of last time collection, detect It is kept in motion to user.
In the present embodiment, it can detect whether user is kept in motion according to the exercise data of collection, can facilitate User be in walk etc. motion state when, mobile terminal is controlled, mobile terminal capable of reducing using to user the person peace Influence caused by complete.
In one embodiment, computing module 520, including generation unit, signal acquiring unit and computing unit.
Generation unit, programme path is generated for obtaining destination information, and according to positional information and destination information.
Signal acquiring unit, the road traffic signal included for obtaining programme path.
Computing unit, for calculating each road traffic signal of acquisition and the distance of positional information respectively, and obtain with The closest road traffic signal of positional information.
In the present embodiment, can be according to the positional information generation planning road that destination information and mobile terminal are presently in Line, and road traffic signal closest with positional information on programme path is obtained, when the positional information of mobile terminal is with being somebody's turn to do When the distance of nearest road traffic signal is less than pre-determined distance, mobile terminal is set to carry out putting out screen state, user can not operate again Mobile terminal, it is possible to reduce user is walking etc. under state, because using mobile terminal to the personal safety of user caused by influence, And improve the accuracy of control mobile terminal.
In one embodiment, the device 500 of above-mentioned control mobile terminal, except including position acquisition module 510, calculating Module 520, panel module 530, acquisition module 540 and detection module 550 are put out, in addition to apply acquisition module and alarm module.
Using acquisition module, for obtaining the application program identification of front stage operation, and determine belonging to application program identification Application type.
Alarm module, if being intended application type for application type, information warning is sent according to predetermined manner.
Panel module 530 is put out, if it is not intended application type to be additionally operable to application type, enters mobile terminal and puts out screen shape State.
In the present embodiment, if the application type belonging to the application program identification of front stage operation is intended application type, move Dynamic terminal can send information warning according to predetermined manner, and can avoid, which directly enters mobile terminal, puts out what screen state was brought to user Inconvenience.
In one embodiment, the device 500 of above-mentioned control mobile terminal, except including position acquisition module 510, calculating Module 520, put out panel module 530, acquisition module 540, detection module 550, using acquisition module and alarm module, in addition to wake up Module.
Wake module, detect that the positional information of mobile terminal and the distance of road traffic signal are more than or equal to for working as During pre-determined distance, mobile terminal is waken up.
In the present embodiment, when mobile terminal is away from road traffic signal, mobile terminal can be reawaked, makes user can Normal use mobile terminal, walked etc. under state reducing user, caused by using mobile terminal to the personal safety of user Influence while, meet the needs of user uses mobile terminal, it is more convenient.
The embodiment of the present application additionally provides a kind of mobile terminal.As shown in fig. 7, for convenience of description, it illustrate only and this Apply for the related part of embodiment, particular technique details does not disclose, refer to the embodiment of the present application method part.The movement is whole End can be to include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, Wearable, using mobile terminal as mobile phone Exemplified by:
Fig. 7 is the block diagram of the part-structure of the mobile phone related to the mobile terminal of the embodiment of the present application offer.With reference to figure 7, Mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 710, memory 720, input block 730, display unit 740, biography Sensor 750, voicefrequency circuit 760, Wireless Fidelity (Wireless-Fidelity, WiFi) module 770, processor 780, Yi Ji electricity The grade part of source 790., can be with it will be understood by those skilled in the art that the handset structure shown in Fig. 7 does not form the restriction to mobile phone Including than illustrating more or less parts, either combining some parts or different parts arrangement.
Wherein, RF circuits 710 can be used for receive and send messages or communication process in, the reception and transmission of signal can be by base stations After downlink information receives, handled to processor 780;Up data can also be sent to base station.Generally, RF circuits include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 710 can also be communicated by radio communication with network and other equipment.Above-mentioned channel radio Letter can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System for Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA, WCDMA (Wideband Code Division Multiple Access, WCDMA), drill for a long time Enter (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) Deng.
Memory 720 can be used for storage software program and module, and processor 780 is stored in memory 720 by operation Software program and module, so as to perform the various function application of mobile phone and data processing.Memory 720 can mainly include Program storage area and data storage area, wherein, program storage area can storage program area, the application journey needed at least one function Sequence (such as the application program of sound-playing function, application program of image player function etc.) etc.;Data storage area can store root Created data (such as voice data, address list etc.) etc. are used according to mobile phone.In addition, memory 720 can be included at a high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input block 730 can be used for the numeral or character information for receiving input, and produces and set with the user of mobile phone 700 And the key signals input that function control is relevant.Specifically, input block 730 may include contact panel 732 and other inputs Equipment 734.Contact panel 732, alternatively referred to as touch-screen, collect touch operation (such as user of the user on or near it Use the operation of any suitable object such as finger, stylus or annex on contact panel 732 or near contact panel 732), And corresponding attachment means are driven according to formula set in advance.In one embodiment, contact panel 732 may include to touch inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation The signal brought, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 780, and the order sent of reception processing device 780 and can be performed.In addition, The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 732.Except touch surface Plate 732, input block 730 can also include other input equipments 734.Specifically, other input equipments 734 can be included but not The one or more being limited in physical keyboard, function key (such as volume control button, switch key etc.) etc..
Display unit 740 can be used for display by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 740 may include display panel 742.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 742.In one embodiment, contact panel 732 can cover display panel 742, when contact panel 732 is examined After measuring the touch operation on or near it, processor 780 is sent to determine the type of touch event, is followed by subsequent processing device 780 provide corresponding visual output according to the type of touch event on display panel 742.Although in the figure 7, contact panel 732 and display panel 742 are the parts independent as two to realize the input of mobile phone and input function, but in some implementations In example, contact panel 732 and display panel 742 can be integrated and realize input and the output function of mobile phone.
Mobile phone 700 may also include at least one sensor 750, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 742, and proximity transducer can close display panel when mobile phone is moved in one's ear 742 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared ray sensor etc..
Voicefrequency circuit 760, loudspeaker 762 and microphone 764 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data received conversion can be transferred to loudspeaker 762, sound is converted to by loudspeaker 762 by road 760 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 764, is turned after being received by voicefrequency circuit 760 Voice data is changed to, then after voice data output processor 780 is handled, another mobile phone can be sent to through RF circuits 710, or Person exports voice data to memory 720 so as to subsequent treatment.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 770 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.
Processor 780 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module being stored in memory 720, and call and be stored in memory 720 Data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.In one embodiment, handle Device 780 may include one or more processing units.In one embodiment, processor 780 can integrate application processor and modulation Demodulation processor, wherein, application processor mainly handles operating system, user interface and application program etc.;Modulation /demodulation is handled Device mainly handles radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 780.
Mobile phone 700 also includes the power supply 790 (such as battery) to all parts power supply, it is preferred that power supply 790 can pass through Power-supply management system and processor 780 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
In one embodiment, mobile phone 700 can also include camera, bluetooth module etc..
In the embodiment of the present application, the processor 780 included by the mobile terminal performs the calculating of storage on a memory The method that above-mentioned control mobile terminal is realized during machine program.
In one embodiment, the mobile terminal may include memory 720 and processor 780, is stored with memory 720 Computer program, when the computer program is performed by processor 780 so that computing device following steps:
When detecting that user is kept in motion, the positional information of mobile terminal is obtained;
The distance of calculating location information and road traffic signal;
When distance is less than pre-determined distance, enters mobile terminal and put out screen state.
In one embodiment, there is provided a kind of computer-readable recording medium, be stored thereon with computer program, the calculating Machine program realizes above-mentioned control mobile terminal method when being executed by processor.
In one embodiment, there is provided a kind of computer program product for including computer program, when it sets in computer During standby upper operation so that computer equipment realizes above-mentioned control mobile terminal method when performing.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can be read In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Any reference to memory, storage, database or other media may include non-volatile as used herein And/or volatile memory.Suitable nonvolatile memory may include read-only storage (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the application, and its description is more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art Say, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the protection of the application Scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

  1. A kind of 1. method for controlling mobile terminal, it is characterised in that including:
    When detecting that user is kept in motion, the positional information of mobile terminal is obtained;
    Calculate the positional information and the distance of road traffic signal;
    When the distance is less than pre-determined distance, enters the mobile terminal and put out screen state.
  2. 2. according to the method for claim 1, it is characterised in that described when detecting that user is kept in motion, Before the positional information for obtaining mobile terminal, methods described also includes:
    Exercise data is gathered every preset time period;
    If the exercise data of this collection is different from the exercise data of last time collection, detect that user is kept in motion.
  3. 3. according to the method for claim 2, it is characterised in that it is described to gather exercise data every preset time period, including:
    The exercise data of meter step application record is gathered every preset time period.
  4. 4. according to the method for claim 1, it is characterised in that it is described to gather exercise data every preset time period, including:
    The wearable device of connection is detected whether, if so, then gathering fortune from the wearable device of connection every preset time period Dynamic data.
  5. 5. according to the method for claim 1, it is characterised in that the positional information and the road traffic signal of calculating Distance, including:
    Destination information is obtained, and programme path is generated according to the positional information and destination information;
    Obtain the road traffic signal that the programme path includes;
    Calculate each road traffic signal of acquisition and the distance of the positional information respectively, and obtain with the positional information away from From nearest road traffic signal.
  6. 6. according to the method for claim 1, it is characterised in that it is described when the distance is less than pre-determined distance after, Including:
    The application program identification of front stage operation is obtained, and determines the application type belonging to the application program identification;
    If the application type is intended application type, information warning is sent according to predetermined manner, otherwise, is made described mobile whole End, which enters, puts out screen state.
  7. 7. method according to any one of claims 1 to 6, it is characterised in that make the mobile terminal entrance put out screen described After state, methods described also includes:
    When detecting that the positional information of the mobile terminal and the distance of the road traffic signal be more than or equal to pre-determined distance When, wake up the mobile terminal.
  8. A kind of 8. device for controlling mobile terminal, it is characterised in that including:
    Position acquisition module, for when detecting that user is kept in motion, obtaining the positional information of mobile terminal;
    Computing module, for calculating the distance of the positional information and road traffic signal;
    Panel module is put out, puts out screen state for when the distance is less than pre-determined distance entering, the mobile terminal.
  9. 9. a kind of mobile terminal, including memory and processor, computer program, the computer are stored with the memory When program is by the computing device so that the processor realizes the method as described in claim 1 to 7 is any.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The method as described in claim 1 to 7 is any is realized when being executed by processor.
CN201711015411.8A 2017-10-26 2017-10-26 Method and device for controlling mobile terminal, mobile terminal and storage medium Active CN107835304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711015411.8A CN107835304B (en) 2017-10-26 2017-10-26 Method and device for controlling mobile terminal, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711015411.8A CN107835304B (en) 2017-10-26 2017-10-26 Method and device for controlling mobile terminal, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107835304A true CN107835304A (en) 2018-03-23
CN107835304B CN107835304B (en) 2021-04-23

Family

ID=61649436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711015411.8A Active CN107835304B (en) 2017-10-26 2017-10-26 Method and device for controlling mobile terminal, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107835304B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112669585A (en) * 2020-12-15 2021-04-16 广州极飞科技有限公司 Method for device pairing, processor, mobile terminal and server
CN114253623A (en) * 2021-11-19 2022-03-29 惠州Tcl移动通信有限公司 Screen amplification processing method and device based on mobile terminal, terminal and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6430935A (en) * 1987-07-24 1989-02-01 Yanmar Diesel Engine Co Automatic pressure reducing device for hydraulically operated equipment
CN103247144A (en) * 2012-02-07 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Traffic safety prompting method and mobile terminal
CN105096632A (en) * 2014-05-14 2015-11-25 广州杰赛科技股份有限公司 Traffic light reminding method
CN106254657A (en) * 2016-08-11 2016-12-21 车云交 A kind of mobile phone puts out screen system
CN106302951A (en) * 2015-05-19 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus realizing traffic reminding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6430935A (en) * 1987-07-24 1989-02-01 Yanmar Diesel Engine Co Automatic pressure reducing device for hydraulically operated equipment
CN103247144A (en) * 2012-02-07 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Traffic safety prompting method and mobile terminal
CN105096632A (en) * 2014-05-14 2015-11-25 广州杰赛科技股份有限公司 Traffic light reminding method
CN106302951A (en) * 2015-05-19 2017-01-04 中兴通讯股份有限公司 A kind of method and apparatus realizing traffic reminding
CN106254657A (en) * 2016-08-11 2016-12-21 车云交 A kind of mobile phone puts out screen system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112669585A (en) * 2020-12-15 2021-04-16 广州极飞科技有限公司 Method for device pairing, processor, mobile terminal and server
CN112669585B (en) * 2020-12-15 2022-08-16 广州极飞科技股份有限公司 Method for device pairing, processor, mobile terminal and server
CN114253623A (en) * 2021-11-19 2022-03-29 惠州Tcl移动通信有限公司 Screen amplification processing method and device based on mobile terminal, terminal and medium
CN114253623B (en) * 2021-11-19 2024-01-19 惠州Tcl移动通信有限公司 Screen amplification processing method and device based on mobile terminal, terminal and medium

Also Published As

Publication number Publication date
CN107835304B (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN106778585B (en) A kind of face key point-tracking method and device
CN107172590B (en) Mobile terminal and activity state information processing method and device based on same
CN103563406B (en) Monitoring geofence exit
CN108257378B (en) Traffic flow prediction method and device
CN111316673B (en) Electronic fence updating method and communication device
CN109164477B (en) Application positioning method and mobile terminal
CN104599346A (en) Driving behavior evaluation method and driving behavior evaluation apparatus
TW201508312A (en) Method, device and system for forecasting weather
WO2018157541A1 (en) Method and device for drawing roads in electronic map
CN107005810A (en) A kind of floor location method, the network equipment and mobile terminal
Ryoo et al. Geo-fencing: Geographical-fencing based energy-aware proactive framework for mobile devices
CN107941222A (en) Air navigation aid and device, computer equipment, computer-readable recording medium
CN108093131A (en) Arrival reminding method, apparatus, storage medium and mobile terminal
CN110019626A (en) A kind of the determination method and relevant apparatus of population distribution information
CN109040968A (en) Road conditions based reminding method, mobile terminal and computer readable storage medium
CN107534949A (en) A kind of indoor orientation method and equipment
CN107422298A (en) Bluetooth ranging parameters optimization method, system, storage medium and mobile terminal
CN109688539A (en) Method of locating terminal, device, mobile terminal and readable storage medium storing program for executing
CN106295861A (en) The acquisition methods of weather forecast information, device and equipment
CN107534932A (en) A kind of method and relevant device of functional status control
CN104346368A (en) Indoor scene switch displaying method and device and mobile terminal
CN106997052B (en) Position information processing method, device and computer equipment
CN113124857A (en) Method for determining entrance and exit positions, related device, equipment and storage medium
CN108491539A (en) terminal control method, device, storage medium and electronic equipment
CN107835304A (en) Control method, apparatus, mobile terminal and the storage medium of mobile terminal

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant