[0023] The present invention provides a state setting method, device and mobile terminal of a mobile terminal. The main idea of the present invention is that in a vehicle-mounted environment, the mobile terminal sets the state of the mobile terminal according to the state control information of the mobile terminal, that is, the moving speed and/or road condition information of the mobile terminal. The state of the mobile terminal includes an awake state and a sleep state. Among them, the awake state means that the screen of the mobile terminal is lit and the mobile terminal is in an unlocked state; the sleep state means that the screen of the mobile terminal is not lit and the mobile terminal is in a locked state. Through the present invention, the user can avoid the operation step of waking up the mobile terminal during driving, which is convenient for the user to use the mobile terminal and improves the user experience effect.
[0024] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0025] According to an embodiment of the present invention, a method for setting a state of a mobile terminal is provided.
[0026] Such as figure 1 As shown, figure 1 It is a flowchart of a method for setting the state of a mobile terminal according to an embodiment of the present invention.
[0027] Step S110: Obtain state control information of the mobile terminal.
[0028] The state control information is used to provide a reference for the state setting of the mobile terminal. The status control information includes the moving speed of the mobile terminal and/or the road condition information of the location of the mobile terminal.
[0029] The moving speed of the mobile terminal can be detected by GPS (Global Positioning System, global positioning system), global satellite navigation system GLONASS, Beidou satellite navigation system or speed sensor.
[0030] The road condition information of the mobile terminal is used to reflect the traffic situation where the mobile terminal is located. Road condition information includes: smooth driving, slow driving, congestion, etc. Road condition information can be obtained through existing traffic navigation technology.
[0031] Step S120: Set the state of the mobile terminal according to the state control information.
[0032] The state of the mobile terminal includes an awake state and a sleep state.
[0033] Specifically, the state of the mobile terminal is set according to the moving speed of the mobile terminal and/or the road condition information of the location of the mobile terminal.
[0034] When the state control information includes road condition information, the state of the mobile terminal can be set according to the road condition information. Specifically, the corresponding state is set for each type of road condition information in advance, so as to set the state of the mobile terminal according to the state corresponding to each type of road condition information. For example: set the sleep state for smooth driving, and the wakeup state for slow driving and congestion. When the acquired road condition information is congestion, the mobile terminal is awakened without the user manually waking up the mobile terminal.
[0035] When the status control information includes moving speed and road condition information, the status of the mobile terminal can be set according to the moving speed and road condition information. When the preset road condition information appears, the state of the mobile terminal is set according to the moving speed. Further, when the state is set according to the detected moving speed information of the mobile terminal, the road condition information can be combined as an auxiliary judgment factor for the state setting.
[0036] When the status control information includes the moving speed, the status of the mobile terminal can be set according to the moving speed. When the moving speed of the mobile terminal is slow, the state of the mobile terminal is set to the awake state; when the moving speed is faster, the state of the mobile terminal is set to the sleeping state.
[0037] When setting the state of the mobile terminal according to the moving speed or according to the moving speed and road condition information, it involves the step of setting the state according to the moving speed of the mobile terminal. For this step, please refer to Figure 2-Figure 3 的实施例。 Example.
[0038] Such as figure 2 As shown, figure 2 It is a flowchart of the steps of setting the state according to the moving speed of the mobile terminal according to an embodiment of the present invention.
[0039] Step S210: Detect the moving speed of the mobile terminal in real time.
[0040] Step S220: Set the state of the mobile terminal based on the moving speed of the mobile terminal.
[0041] The first threshold and the second threshold are preset, where the first threshold is less than or equal to the second threshold, for example: the first threshold is 3km/h, and the second threshold is 10km/h.
[0042] The detected moving speed of the mobile terminal is compared with the first threshold and the second threshold in real time; if the moving speed is less than the first threshold, the mobile terminal is awake; if the moving speed is greater than the second threshold, the mobile terminal is Sleeping. When the first threshold is less than the second threshold, if the moving speed is greater than or equal to the first threshold and less than or equal to the second threshold, the mobile terminal is maintained at the state at the previous moment, which is a sleep state or an awake state. In other words, if the moving speed changes from less than the first threshold to less than or equal to the second threshold, and greater than or equal to the first threshold, the mobile terminal is maintained in the awake state; if the moving speed changes from greater than the second threshold to less than or equal to the second threshold, and If it is greater than or equal to the first threshold, the mobile terminal is maintained in a sleep state.
[0043] In one embodiment, when the first threshold is less than the second threshold, and when the moving speed is between the first threshold and the second threshold (including two end values), it can be determined that the mobile terminal is accelerating, decelerating, or moving at a constant speed. If the moving speed reflects that the mobile terminal accelerates from the first threshold to the second threshold, the mobile terminal is put in a sleep state; if the moving speed reflects the mobile terminal is decelerating from the second threshold to the first threshold, the mobile terminal is put in an awake state; If the moving speed reflects that the speed of the mobile terminal has not changed, that is, moving at a constant speed, the mobile terminal is in the state of the previous moment. Further, comparing the detection results of two adjacent moving speeds, if the moving speed of the next time is greater than the moving speed of the previous time, it is determined that the mobile terminal is accelerating, and if the moving speed of the next time is less than the moving speed of the previous time, it is determined The mobile terminal is decelerating, and if the moving speed of the next time is equal to the moving speed of the previous time, it is determined that the mobile terminal is moving at a constant speed.
[0044] A specific embodiment is given below to illustrate the state setting method of the mobile terminal of the present invention, such as image 3 As shown, image 3 It is a specific flowchart of a method for setting a state of a mobile terminal according to an embodiment of the present invention. In this embodiment, the first threshold is smaller than the second threshold.
[0045] Step S310: Turn on the vehicle-mounted mode without unlocking.
[0046] In the vehicle-mounted mode without unlocking, the user's mobile terminal can automatically wake up or sleep while driving.
[0047] During the entire driving process, the user can keep the mobile terminal working in the unlock-free in-vehicle mode, or close the mode at any time, enter the normal working mode, and wake up the mobile terminal manually.
[0048] In step S320, the speed of the vehicle is detected in real time.
[0049] When the mobile terminal starts the unlock-free vehicle-mounted mode, the mobile terminal will turn on the navigation system, such as GPS, GLONASS, Beidou satellite navigation system or speed sensor, to detect the moving speed of the mobile terminal. The moving speed of the mobile terminal is also the speed of the vehicle. The vehicle can use its own navigation system to detect vehicle speed. The vehicle can transmit the detected vehicle speed to the mobile terminal, and the mobile terminal uses the vehicle speed as its moving speed. Similarly, the road condition information of the location of the mobile terminal can also be obtained through the road condition navigation system of the vehicle.
[0050] Step S330: It is determined whether the vehicle speed is greater than a second threshold. If yes, go to step S240, if not, go to step S350.
[0051] Step S340: Put the mobile terminal in a sleep state.
[0052] When the vehicle speed is greater than the second threshold, it means that the vehicle is running at a high speed. Generally speaking, when the vehicle is running at a high speed, the user does not use the mobile terminal. At this time, the mobile terminal is not awakened for the user.
[0053] When the mobile terminal is in the sleep state, the user cannot directly operate the applications in the mobile terminal. If you need to operate an application in the mobile terminal, you need to wake up the mobile terminal manually. Further, when the mobile terminal is in the sleep state, the navigation system works normally.
[0054] Step S350: Determine whether the vehicle speed is less than a first threshold. If yes, execute step S260, if not, execute step S370.
[0055] Step S360, make the mobile terminal in an awake state.
[0056] When the vehicle speed is less than the first threshold, the mobile terminal is automatically awakened, which is convenient for users to use. For example: set the first threshold to 3km/h and the second threshold to 10km/h. When the vehicle is waiting for a red light, it can be detected that the speed of the vehicle is 0 km/h, which is less than the first threshold of 3 km/h. At this time, the mobile terminal is awakened. When the vehicle encounters road congestion, the vehicle speed is detected, and if the vehicle speed is less than the first threshold 3km/h, the mobile terminal is awakened at this time.
[0057] When the mobile terminal is awake, the user can operate applications in the mobile terminal, such as chat tools, GPS map navigation, etc.
[0058] Step S370: Put the mobile terminal in a preset state. The preset state is a sleep state or a wake-up state.
[0059] When the vehicle speed is less than or equal to the second threshold and greater than or equal to the first threshold, the state of the mobile terminal can be set according to a preset rule.
[0060] The rule may be: setting the state of the mobile terminal according to the hysteresis comparison method, in other words, when the vehicle speed is less than or equal to the second threshold and greater than or equal to the first threshold, the mobile terminal is maintained in the previous state. For example: if the vehicle speed at the previous moment is greater than the second threshold and the state of the mobile terminal is in the sleep state, when the vehicle speed is reduced to less than or equal to the second threshold and greater than or equal to the first threshold, the state of the mobile terminal can be set to remain in the sleep state, Moreover, when the vehicle speed is less than or equal to the second threshold value and greater than or equal to the first threshold value, no matter if the vehicle accelerates monotonously, decelerates monotonically, decelerates after acceleration, or accelerates after deceleration, the state of the mobile terminal is always maintained in a sleep state, thus avoiding the mobile terminal The status is switched repeatedly.
[0061] The rule can also be based on the change trend of the vehicle speed, when the vehicle speed becomes slow, the state of the mobile terminal is set to the awake state, and when the vehicle speed becomes faster, the state of the mobile terminal is set to the sleep state.
[0062] The invention provides a state setting device of a mobile terminal. Such as Figure 4 As shown, Figure 4 It is a structural diagram of a state setting device of a mobile terminal according to an embodiment of the present invention.
[0063] The device includes:
[0064] The obtaining module 410 is used to obtain state control information of the mobile terminal.
[0065] The setting module 420 is configured to set the state of the mobile terminal based on the state control information, and the state includes the wake state and the sleep state.
[0066] In one embodiment, when the state control information includes the road condition information of the location of the mobile terminal, the setting module 420 is further configured to: set the corresponding state for each type of road condition information, so as to set the corresponding state for each type of road condition information. The state of the mobile terminal.
[0067] In another embodiment, when the state control information includes the moving speed of the mobile terminal, the setting module 420 is specifically configured to: compare the moving speed with the preset first threshold and second threshold; wherein the first threshold is less than or Equal to the second threshold; if the moving speed is less than the first threshold, the mobile terminal is put in an awake state; if the moving speed is greater than the second threshold, the mobile terminal is put in a sleep state. Further, when the first threshold is less than the second threshold, the setting module 420 is further configured to: if the moving speed changes from less than the first threshold to less than or equal to the second threshold, and greater than or equal to the first threshold, then Maintain the mobile terminal in the awake state; if the moving speed changes from greater than the second threshold to less than or equal to the second threshold and greater than or equal to the first threshold, then the mobile terminal is maintained in the sleep state; or if the movement The speed reflects that the mobile terminal accelerates from the first threshold to the second threshold, then the mobile terminal is put into a sleep state; if the moving speed reflects that the mobile terminal is decelerating from the second threshold to the first threshold, then The mobile terminal is in an awake state.
[0068] The function of the device of the present invention has been Figure 1-Figure 3 The method embodiment shown is described, so the description of this embodiment is not exhaustive, and you can refer to the relevant description in the foregoing embodiment, which will not be repeated here.
[0069] The above-mentioned device can be set in the mobile terminal, as a component of the mobile terminal, to realize the state setting of the mobile terminal.
[0070] The above descriptions are only the embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modification, equivalent replacement, improvement, etc., made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.