WO2016145793A1 - 驾驶模式切换方法和装置 - Google Patents

驾驶模式切换方法和装置 Download PDF

Info

Publication number
WO2016145793A1
WO2016145793A1 PCT/CN2015/088668 CN2015088668W WO2016145793A1 WO 2016145793 A1 WO2016145793 A1 WO 2016145793A1 CN 2015088668 W CN2015088668 W CN 2015088668W WO 2016145793 A1 WO2016145793 A1 WO 2016145793A1
Authority
WO
WIPO (PCT)
Prior art keywords
user equipment
mode
state
driving mode
preset
Prior art date
Application number
PCT/CN2015/088668
Other languages
English (en)
French (fr)
Inventor
时玉娟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016145793A1 publication Critical patent/WO2016145793A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/57Arrangements for indicating or recording the number of the calling subscriber at the called subscriber's set
    • 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/725Cordless telephones

Definitions

  • the present invention relates to the field of communications, and in particular to a driving mode switching method and apparatus.
  • the driving mode is provided. After the smart terminal enters the driving, the setting of the intelligent terminal is optimized according to the driving environment, for example, the navigation function is automatically turned on, the short message voice reading, the caller hands-free answering, etc.; in this way, the user can use the smart terminal while driving. Convenient and safe.
  • Embodiments of the present invention provide a driving mode switching method and apparatus to solve at least the problems caused by the inability to automatically turn on the driving mode in the related art.
  • a driving mode switching method including: detecting a state of a user equipment; and detecting the working of the user equipment when detecting that the state of the user equipment is a first preset state
  • the mode is switched from the current mode to the driving mode, wherein the first preset state includes: the current placement state of the user equipment is a preset placement state, and a signal generated by touching the touch screen of the user equipment is not detected, and the foregoing
  • the moving speed of the user equipment exceeds a first preset threshold, wherein the preset placement state is a horizontal screen state or a vertical screen state.
  • the method further includes: when detecting that the state of the user equipment is the second preset state, operating the working mode of the user equipment from The above driving mode is switched to the above current mode.
  • the foregoing second preset state includes at least one of: detecting that the moving speed of the user equipment is lower than a second preset threshold in consecutive multiple detection periods; detecting in consecutive multiple detection periods Touching the signal generated by the touch screen of the above user equipment.
  • a signal generated by touching the touch screen of the user equipment is: touching a touch screen of the user equipment.
  • the signal generated by the edge position is: touching a touch screen of the user equipment.
  • the method before the switching the working mode of the user equipment to the driving mode, the method further includes: determining whether the first enabling switch on the user equipment is in an open state, wherein the first enabling switch is used to indicate Whether the function of automatically switching the working mode of the user equipment to the driving mode is enabled; wherein, the switching the working mode of the user equipment from the current mode to the driving mode comprises: determining that the first enabling switch is in an open state, And detecting that the working mode of the user equipment is switched from the current mode to the driving mode when the state of the user equipment is the first preset state.
  • the method further includes: receiving an operating mode switching instruction, where the working mode switching instruction is used to indicate that the user equipment is to work Switching from the driving mode to the current mode; and switching the operating mode of the user equipment from the driving mode to the current mode according to the operating mode switching command.
  • the switching of the working mode of the user equipment from the current mode to the driving mode includes: providing a voice prompt or a screen prompt, wherein the voice prompt or the screen prompt is used to prompt the user to use the working mode of the user equipment.
  • Switching from the current mode to the driving mode switching the operating mode of the user equipment from the current mode to the driving mode after receiving the confirmation operation or after a preset time.
  • the foregoing first preset state further includes: the application running on the system foreground of the user equipment is a non-multimedia application.
  • a driving mode switching apparatus including: a detecting module configured to detect a state of a user equipment; and a first switching module configured to detect a state of the user equipment
  • the working mode of the user equipment is switched from the current mode to the driving mode, wherein the first preset state includes: the current placement state of the user equipment is a preset placement state, and is not detected.
  • the signal generated by the touch screen of the user equipment is touched, and the moving speed of the user equipment exceeds a first preset threshold, wherein the preset placement state is a horizontal screen state or a vertical screen state.
  • the device further includes: a second switching module, configured to switch the working mode of the user equipment from the driving mode to the current when detecting that the state of the user equipment is a second preset state mode.
  • a second switching module configured to switch the working mode of the user equipment from the driving mode to the current when detecting that the state of the user equipment is a second preset state mode.
  • the foregoing second preset state includes at least one of: detecting that the moving speed of the user equipment is lower than a second preset threshold in consecutive multiple detection periods; detecting in consecutive multiple detection periods Touching the signal generated by the touch screen of the above user equipment.
  • a signal generated by touching the touch screen of the user equipment is: touching a touch screen of the user equipment.
  • the signal generated by the edge position is: touching a touch screen of the user equipment.
  • the state of the user equipment is detected; and when the state of the user equipment is detected as the first preset state, the working mode of the user equipment is switched from the current mode to the driving mode, wherein the first preset
  • the state includes: the current placement state of the user equipment is a preset placement state, and the signal generated by the touch screen of the user equipment is not detected, and the moving speed of the user equipment exceeds a first preset threshold, wherein the preset placement state is Horizontal screen status or vertical screen status, solution
  • the preset placement state is Horizontal screen status or vertical screen status
  • FIG. 1 is a flow chart of a driving mode switching method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a driving mode switching device according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of a driving mode switching method in accordance with a preferred embodiment of the present invention.
  • FIG. 4 is a first schematic diagram of a method for detecting a grip state according to a preferred embodiment of the present invention
  • FIG. 5 is a second schematic diagram of a method for detecting a grip state according to a preferred embodiment of the present invention.
  • FIG. 6 is a preferred flow diagram of a driving mode switching method in accordance with a preferred embodiment of the present invention.
  • FIG. 1 is a flowchart of a driving mode switching method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 detecting a state of the user equipment
  • Step S104 in a case that detecting that the state of the user equipment is the first preset state, switching the working mode of the user equipment from the current mode to the driving mode;
  • the first preset state includes: the current placement state of the user equipment is a preset placement state, and the signal generated by the touch screen of the user equipment is not detected, and the moving speed of the user equipment exceeds a first preset threshold, where The preset placement state is the horizontal screen state or the vertical screen state.
  • the working mode of the user equipment is switched from the current mode to the driving mode in the first preset state, thereby solving the problem caused by the inability to automatically turn on the driving mode in the related art. Automatic switching of the driving mode is achieved.
  • the foregoing user equipment includes, but is not limited to, a smart phone, a tablet computer, and other portable devices with a touch screen can also automatically switch the driving mode by using the above method.
  • the embodiment of the present invention can be applied to a mobile phone with a touch screen and a touch screen; in the embodiment of the present invention, detecting a message generated by touching the touch screen of the user equipment
  • the function of the number is to determine whether there is a user holding or touching the user equipment. Therefore, in the user equipment having the sensor for detecting the user operation on the frame, the sensors can also be regarded as an extension of the touch screen, and should also be It is within the scope of protection of the embodiments of the present invention.
  • a mobile phone with a touch screen is taken as an example for description and description; for example, the mobile phone detects the state of the user equipment; and when detecting that the state of the user equipment is the first preset state, The operating mode of the user device is switched from the current mode to the driving mode.
  • the state of the user equipment may be detected by a sensor and a touch screen, wherein the sensors include, but are not limited to, a gyro sensor, a gravity acceleration sensor.
  • the determination of the status and the switching of the operating mode can be handled by the processor in the user equipment.
  • the preset placement state refers to: a preset placement state of the user equipment.
  • the user may preset the horizontal screen state to a preset placement state, or may set the vertical screen state to a preset placement state in advance.
  • the first preset threshold refers to a speed threshold that can be used to distinguish the normal walking speed of the user. For example, if the walking speed of the person is generally lower than 10 kilometers per hour, the first preset threshold may be set to 10 kilometers per hour.
  • an upper limit threshold of the moving speed of the user equipment may also be set. For example, if the driving speed of the user is generally lower than 120 km/h, the user equipment may be set. The operating mode of the user equipment is switched from the current mode to the driving mode in a case where the moving speed is between 10 km/h and 120 km/h and the other first preset state is satisfied.
  • the above-mentioned speed threshold is only an exemplary description of the embodiment of the present invention, and is not limited to the setting of the preset threshold in the embodiment of the present invention, that is, the first preset threshold may be as needed. Pre-set or set and changed as needed by the user.
  • the working mode referred to in the embodiment of the present invention is also referred to as a scene mode.
  • the working modes include: conference mode, sleep mode, driving mode, etc.
  • conference mode the ringtone and the SMS notification are set to be muted; in the sleep mode, the data service can be turned off and the ringtone and the SMS notification are set to be muted.
  • the user equipment can switch between these working modes, and the parameter configuration of these working modes can also be customized by the user.
  • the driving mode referred to in the embodiment of the present invention generally refers to: automatic reading of received short messages, automatic hands-free answering by voice calls, and the like. Of course, different terminal manufacturers or equipment manufacturers may have different parameter settings for the driving mode.
  • the specific parameters of the driving mode are not limited, for example, in some manufacturers-defined driving modes. Text messages that may be received are not automatically read.
  • the current mode referred to in the embodiment of the present invention refers to an operation mode in which the user equipment is currently set, including but not limited to a conference mode, a silent mode, a sleep mode, and the like, and may even be a certain mode for driving (for example, : Mode for low speed driving, for high speed driving mode).
  • a manner of automatically cutting out the driving mode is also provided in the embodiment of the present invention. For example, in a case where it is detected that the state of the user equipment is the second preset state, the operating mode of the user equipment is switched from the driving mode to the current mode.
  • the second preset state includes: detecting that the moving speed of the user equipment is lower than a second preset threshold in a plurality of consecutive detection periods.
  • the second preset threshold is 3 km/h; the method of detecting the moving speed in a plurality of consecutive detection periods is to prevent the user from accidentally cutting out the driving mode caused by waiting for a red light or a temporary road congestion.
  • the working mode can be automatically switched to other working modes according to the current scene, and is not limited to switching to the current mode before the driving mode.
  • the second preset state includes detecting a signal generated by touching a touch screen of the user equipment in a plurality of consecutive detection periods.
  • the signal generated by the touch screen of the user equipment is: a signal generated by touching an edge position of the touch screen of the user equipment, wherein a width of the edge position can be defined according to requirements, for example, The length (or width) of the user device that is 5% from the border can be defined as the edge position; for the center area of the touch screen of the touch user device (the center area surrounded by the edge position), if the touch touch screen is not detected
  • the touch signal at the edge position can be considered that the user does not hold the user equipment, and the cutting operation of the driving mode may not be performed at this time.
  • the automatic switching driving mode can be set with an enabling switch, and the user can select whether to automatically switch the driving mode according to the need, for example, before switching the working mode of the user equipment to the driving mode, determining whether the first enabling switch on the user equipment is Is an open state, wherein the first enable switch is used to indicate whether to enable the function of automatically switching the working mode of the user equipment to the driving mode; when the working mode of the user equipment is switched from the current mode to the driving mode, the When the first enable switch is in an open state and the state of the user equipment is detected as the first preset state, the working mode of the user equipment is switched from the current mode to the driving mode.
  • a manner of manually cutting out the driving mode is also provided. For example, after the operating mode of the user equipment is switched from the current mode to the driving mode, the working mode switching instruction is received, wherein the working mode switching instruction is used. The user equipment is instructed to switch the working mode from the driving mode to the current mode; and the operating mode of the user equipment is switched from the driving mode to the current mode according to the working mode switching instruction.
  • a voice prompt or a screen prompt may be provided, wherein the voice prompt or the screen prompt is used.
  • the user is prompted to switch the working mode of the user device from the current mode to the driving mode.
  • the driving mode switching can be declared at the same time, and the mode of exiting the driving mode switching can be declared; in addition, the working mode of the user equipment is not performed after receiving the confirming operation or after the preset time. Switch from the current mode to the driving mode. In this way, the user can be prevented from automatically switching to the driving mode without requiring the driving mode switching.
  • the first preset state further includes: the application running on the user equipment in the foreground of the user equipment is a non-multimedia application.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (eg, ROM/RAM, disk, CD-ROM includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a storage medium eg, ROM/RAM, disk, CD-ROM includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a driving mode switching device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a structural block diagram of a driving mode switching apparatus according to an embodiment of the present invention.
  • the apparatus includes: a detecting module 22 and a first switching module 24.
  • the detecting module 22 is configured to detect the state of the user equipment;
  • the first switching module 24 is coupled to the detecting module 22, and is configured to: when the state of the user equipment is detected to be the first preset state, the user equipment is The working mode is switched from the current mode to the driving mode.
  • the first preset state includes: the current placement state of the user equipment is a preset placement state, and the signal generated by the touch screen of the user equipment is not detected, and the moving speed of the user equipment exceeds a first preset threshold, where The preset placement state is the horizontal screen state or the vertical screen state.
  • the device further includes: a second switching module coupled to the detecting module 22, configured to switch the working mode of the user equipment from the driving mode to the current state when detecting that the state of the user equipment is the second preset state mode.
  • a second switching module coupled to the detecting module 22, configured to switch the working mode of the user equipment from the driving mode to the current state when detecting that the state of the user equipment is the second preset state mode.
  • the second preset state includes at least one of: detecting that the moving speed of the user equipment is lower than a second preset threshold in consecutive multiple detection periods; detecting the touch user equipment in consecutive multiple detection periods The signal generated by the touch screen.
  • the signal generated by touching the touch screen of the user equipment is: touching the edge position of the touch screen of the user equipment. The resulting signal.
  • the device further comprises: a determining module coupled to the first switching module 24, configured to determine whether the first enabling switch on the user equipment is in an open state before switching the driving mode, wherein the first enabling switch is used for Determining whether a function of automatically switching the working mode of the user equipment to the driving mode is enabled; wherein the first switching module 24 is configured to determine that the first enabling switch is in an open state, and detecting that the state of the user equipment is the first pre- In the case of the state, the operating mode of the user equipment is switched from the current mode to the driving mode.
  • a determining module coupled to the first switching module 24, configured to determine whether the first enabling switch on the user equipment is in an open state before switching the driving mode, wherein the first enabling switch is used for Determining whether a function of automatically switching the working mode of the user equipment to the driving mode is enabled
  • the first switching module 24 is configured to determine that the first enabling switch is in an open state, and detecting that the state of the user equipment is the first pre- In the case of the state,
  • the apparatus further comprises: a first receiving module coupled to the first switching module, configured to receive an operating mode switching instruction after switching the operating mode of the user equipment from the current mode to the driving mode, wherein the working mode switching instruction And configured to indicate that the user equipment switches the working mode from the driving mode to the current mode; the third switching module is coupled to the first receiving module, configured to switch the working mode of the user equipment from the driving mode to the current mode according to the working mode switching instruction .
  • the first switching module 24 includes: a providing unit configured to provide a voice prompt or a screen prompt, wherein the voice prompt or the screen prompt is used to prompt the user to switch the working mode of the user equipment from the current mode to the driving mode;
  • the unit coupled to the providing unit, is configured to switch the operating mode of the user equipment from the current mode to the driving mode after receiving the confirmation operation or after a preset time.
  • the first preset state further includes: the application running on the user equipment in the foreground of the user equipment is a non-multimedia application.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a software for performing the technical solutions described in the above embodiments and preferred embodiments.
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be configured to store program code for performing the following steps:
  • the first preset state includes: the current placement state of the user equipment is a preset placement state, and the signal generated by the touch screen of the user equipment is not detected, and the moving speed of the user equipment exceeds a first preset threshold, where The preset placement state is the horizontal screen state or the vertical screen state.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the existing technical solutions generally describe the functions and features of the driving mode, and are basically manually selected.
  • the preferred embodiment of the present invention can realize automatic switching of the driving mode by continuous multiple condition judgments, and the switching is more accurate and the user experience is better.
  • the mode of switching to the driving mode is manually set, and if the user is driving, it is dangerous and inconvenient to operate the terminal.
  • the change of the acceleration is obtained only by the gravity sensor to determine whether to automatically switch the driving mode, it is easy to cause an erroneous operation.
  • the mobile phone is placed in a bag or other place, or the terminal user is not a driver but a passenger.
  • the mobile phone is watching the video on the mobile phone, according to the setting of the driving mode, if there is a short message, all the voices are read out. It is not conducive to protecting the user's private information, and the user experience is degraded.
  • a preferred embodiment of the present invention provides a system and method for detecting a driving mode and automatic switching of a borderless handset.
  • a borderless mobile phone is taken as an example for description.
  • the borderless mobile phone refers to a mobile phone whose touch screen is almost the same width as the mobile phone.
  • the mobile phone includes four modules: the first module is set to obtain whether the screen is in a landscape state (or a portrait state, determined according to a preset state); the second module is It is set to determine whether the touch screen (for example, the capacitive touch screen) has a hand grip point; the third is set to detect whether the horizontal movement speed of the terminal is within the set range value; the fourth module is set to acquire Judging the result and judging whether or not to automatically switch to the driving mode based on the result. For example, if the conditional judgment of the first three modules is established, that is, the current horizontal screen (or vertical screen), and there is no hand holding point, the moving speed is between 20 km/h and 200 km/h, and the fourth time. When the module obtains the judgment result, the system automatically turns on the driving mode of the mobile phone; otherwise, it does not open.
  • the system turns on the driving mode, if it detects that the following three conditions are met: the speed is 0, and it is in the horizontal screen (or vertical screen), and there is a hand grip point at the border and the hand holding time exceeds the preset time of the user. The value is judged to be in the state of ending the driving, and the driving mode is automatically turned off at this time. Also, the system provides a switch that can turn the automatic switching mode on and off. The default is on.
  • the conditions for switching the driving mode provided by the preferred embodiment include: acquiring the current mobile phone as a horizontal screen (or a vertical screen), no hand holding, and moving speed within a set range.
  • the flow chart of the judgment and switching method is shown in FIG.
  • Get the horizontal and vertical screen status of the terminal Whether the terminal is in the horizontal and vertical screen state can be obtained by the operating system of the terminal, and the system has a function of judging the horizontal and vertical screens, and obtaining the return value can obtain the current horizontal and vertical screen state.
  • Whether the terminal has a hand or not can be judged by the touch screen detecting whether there is a hand grip point; due to the characteristics of the borderless mobile phone (or a narrow-framed mobile phone), when the terminal has a hand grip, the edge of the screen border of the touch screen or There will be contacts in the main area of the screen. As long as any part of the contact is detected, the condition is judged not to pass. How to detect if there is a contact and how to obtain the contact position will be explained below.
  • capacitive screens including touch screens and integrated circuits (ICs).
  • the touch screen is also the transparent part of our hand touch operation; the touch IC chip is used to calculate the position coordinates of the contact when the capacitive screen is touched, which is calculated and processed by the chip.
  • the capacitive screen is plated with ITO (ie, indium tin oxide) on the surface of the glass to form horizontal (horizontal) and vertical (vertical) electrode arrays.
  • the electrodes respectively form a capacitance with the ground, so that the projected capacitance constitutes an axis coordinate type sensing unit matrix: the vertical rows and columns of the axis coordinate sensing unit, and the X is realized by two intersecting sliders (with sensing function)
  • the shaft slider and the Y-axis slider detect the change in capacitance of each of the sensing units.
  • the capacitive screen sequentially detects the horizontal and vertical electrode arrays respectively, and determines the lateral coordinates and the longitudinal coordinates according to the change of the capacitance before and after the touch, and then combines them into planar touch coordinates.
  • the scanning method of the capacitor is equivalent to projecting the touch points on the touch screen to the X-axis and Y-axis directions, respectively, and finally combining the coordinates of the touch points.
  • the process of parsing is done by the touch IC chip, and the driver of the operating system of the terminal acquires this coordinate.
  • the black solid border represents the entire screen area of the phone. If the screen is obtained as a vertical screen state at this time, it is judged that the X-axis distance of the contact coordinates is the distance from the contact to the left edge of the terminal, and greater than zero is less than 5% of the entire touch screen width or greater than 95% of the entire touch screen width. 100%, the contact is obtained at both sides of the position and the border. If the X-axis distance of the contact is between 5% and 95% of the width of the entire touch screen, the contact is acquired and operated in the main area of the screen. .
  • Condition three obtain the current moving speed of the terminal, and determine whether it is within the set range value.
  • the acceleration sensor is a very common configuration of the intelligent terminal, so the moving speed can be obtained by integrating the value of the acceleration sensor once. For example, if the speed value is greater than 20 km/h and less than 200 km/h, if the obtained speed value is greater than 20 km/h and less than 200 km/h, the conditional judgment is established.
  • v ⁇ a(t)dt, where a represents acceleration and t represents time.
  • the driving mode is automatically switched. That is, the condition for triggering the automatic switching of the driving mode is that when it is judged to be a horizontal screen (or a vertical screen), and there is no hand holding point at the screen border or in the main area, the speed is between 20 km/h and 200 km/h.
  • the driving mode of the preferred embodiment of the present invention incoming calls and short messages are automatically converted into voice playback, and the voice prompts whether navigation is required.
  • the system When automatically switching to driving mode, the system also provides a means to automatically detect and end the driving mode. For example, ending the drive
  • the trigger condition of the driving mode can be:
  • the timer is activated when the hand contact is detected. For example, if the time exceeds 1 minute, it is judged that the driving end state is at this time.
  • the length of the hand touch time can be set by the user. For example, 20 seconds, 40 seconds, 1 minute or 2 minutes are optional values.
  • the system provides a switch for opening and closing the automatic switching driving mode.
  • the above processing flow is only effective when the switch is turned on.
  • the switch can be turned off. As shown in FIG. First, it is judged whether the switch of the automatic switching driving mode of the terminal is ON, and if it is already opened, the above automatic detecting process is performed, and if the switch is off, it ends.
  • the user's terminal is preset to turn on the function of automatically switching the driving mode.
  • the mobile phone horizontal screen is placed on the mobile phone rack or the appropriate position of the car bridge, and the mobile phone obtains the status information of the screen in the horizontal screen (or vertical screen); when the user starts driving the car, The mobile phone continues to obtain the condition that there is no hand holding point at this time.
  • the mobile phone obtains the current moving speed of 20 km/h or more, then all the three conditions are judged to pass, and the mobile phone will automatically switch to the driving mode, the voice Prompt the user whether to open the navigation, the user voice control answer is yes, then directly open the navigation, and convert the SMS and incoming calls into voice mode.
  • the functions in the specific driving mode may vary slightly depending on the terminal.
  • the speed of the system acquiring the mobile terminal becomes 0, and it is judged whether there is a hand grip point at the border of the mobile phone, if the hand grip point is detected on the frame, and the hand touch time is greater than the preset time of the user. For example, for 1 minute, it is known that the driving end state is at this time, and the exit driving mode is automatically turned off.
  • the system obtains the speed of the mobile terminal is zero, and there is no hand contact at the border, but the main area of the screen has a hand contact, it is judged that the user may actively operate the screen in a state such as waiting for a traffic light, which does not match When the driving state is finished, the driving mode is not exited.
  • a hand grip point in the detection conditions in the above scheme may be replaced by detecting whether there is a hand contact around the borderless frame. Because if the mobile phone is used normally, under normal circumstances, there must be a hand contact at the border, and a borderless mobile phone (or a narrow-sized mobile phone) can just judge this condition. Moreover, in the process of driving mode, a judgment condition may also be added: when automatically switching to the driving mode, if it is detected that there is a hand contact in the main area of the screen, but the mobile phone is still in the horizontal screen state, the system determines At this time, when the user actively operates the mobile phone while driving, the driving mode is not turned off. How to detect that the contact is around the border or in front of the main area of the screen has been explained, no longer here Narration.
  • the terminal acquires the horizontal screen (or vertical screen) and has no hand grip point, and the speed is within the preset range value, indicating that the terminal is already in the driving state, and the terminal automatically switches to the driving mode, the voice.
  • Ask the user if they need to turn on the navigation, and all incoming calls and text messages are converted to voice mode; when the terminal gets the moving speed is zero, and there is a hand grip point at the phone frame and the hand touch time exceeds the time value set by the user, then automatically Turn off the driving mode.
  • the entire process allows users to operate without any manual operation.
  • modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
  • the state of the user equipment is detected; and when the state of the user equipment is detected as the first preset state, the working mode of the user equipment is switched from the current mode to the driving mode, where the first pre-
  • the setting state includes: the current placement state of the user equipment is a preset placement state, and the signal generated by the touch screen of the user equipment is not detected, and the moving speed of the user equipment exceeds a first preset threshold, wherein the preset placement state In the horizontal screen state or the vertical screen state, the problems caused by the inability to automatically turn on the driving mode in the related art are solved, and the automatic switching of the driving mode is realized.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

一种驾驶模式切换方法,该方法包括:检测用户设备的状态;在检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式,其中,第一预设状态包括:用户设备的当前放置状态为预设放置状态,未检测到触摸用户设备的触控屏所产生的信号,且用户设备的移动速度超过第一预设阈值,其中,预设放置状态为横屏状态或竖屏状态。还提供了一种驾驶模式切换装置。通过该切换方法和切换装置,解决了相关技术中无法自动开启驾驶模式所导致的问题,实现了驾驶模式的自动切换。

Description

驾驶模式切换方法和装置 技术领域
本发明涉及通信领域,具体而言,涉及一种驾驶模式切换方法和装置。
背景技术
越来越多的用户直接使用便携的用户设备(例如,智能终端等)作为导航,并且开车时经常要使用终端接打电话,此时如果临时找耳机也很不方便,鉴于以上两点,很多智能终端的工作模式中,提供了驾驶模式的方式。智能终端进入驾驶后,会根据驾驶环境对智能终端的设置进行优化,例如,自动开启导航功能、短信语音读出、来电免提接听等;通过这样的方式能够使得用户在驾车时使用智能终端更加便捷和安全。
然而,在相关技术中,开启驾驶模式时,需要用户手动将工作模式从当前模式切换至驾驶模式,因而,经常会出现用户正在忙于其他事情而不便进行驾驶模式切换,或者用户忘记将智能终端切换至驾驶模式。
针对相关技术中无法自动开启驾驶模式所导致的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种驾驶模式切换方法和装置,以至少解决相关技术中无法自动开启驾驶模式所导致的问题。
根据本发明实施例的一个方面,提供了一种驾驶模式切换方法,包括:检测用户设备的状态;在检测到上述用户设备的状态为第一预设状态的情况下,将上述用户设备的工作模式从当前模式切换至驾驶模式,其中,上述第一预设状态包括:上述用户设备的当前放置状态为预设放置状态,未检测到触摸上述用户设备的触控屏所产生的信号,且上述用户设备的移动速度超过第一预设阈值,其中,上述预设放置状态为横屏状态或竖屏状态。
可选地,在将上述用户设备的工作模式切换为上述驾驶模式之后,上述方法还包括:在检测到上述用户设备的状态为第二预设状态的情况下,将上述用户设备的工作模式从上述驾驶模式切换至上述当前模式。
可选地,上述第二预设状态包括以下至少之一:在连续的多个检测周期内检测到上述用户设备的移动速度低于第二预设阈值;在连续的多个检测周期内检测到触摸上述用户设备的触控屏所产生的信号。
可选地,在连续的多个检测周期内检测到触摸上述用户设备的触控屏所产生的信号中,触摸上述用户设备的触控屏所产生的信号为:触摸上述用户设备的触控屏的边缘位置所产生的信号。
可选地,在将上述用户设备的工作模式切换至上述驾驶模式之前,上述方法还包括:判断上述用户设备上第一使能开关是否为打开状态,其中,上述第一使能开关用于指示是否启用自动将上述用户设备的工作模式切换至驾驶模式的功能;其中,将上述用户设备的工作模式从上述当前模式切换至上述驾驶模式包括:在判断到上述第一使能开关为打开状态,且检测到上述用户设备的状态为上述第一预设状态的情况下,将上述用户设备的工作模式从上述当前模式切换至上述驾驶模式。
可选地,在将上述用户设备的工作模式从上述当前模式切换至上述驾驶模式之后,上述方法还包括:接收工作模式切换指令,其中,上述工作模式切换指令用于指示上述用户设备将工作模式从上述驾驶模式切换至上述当前模式;根据上述工作模式切换指令,将上述用户设备的工作模式从上述驾驶模式切换至上述当前模式。
可选地,将上述用户设备的工作模式从上述当前模式切换至上述驾驶模式包括:提供语音提示或者画面提示,其中,上述语音提示或者上述画面提示用于提示用户即将将上述用户设备的工作模式从上述当前模式切换至上述驾驶模式;在接收到确认操作之后或者在预设时间之后,将上述用户设备的工作模式从上述当前模式切换至上述驾驶模式。
可选地,上述第一预设状态还包括:上述用户设备上***前台正在运行的应用为非多媒体应用。
根据本发明实施例的另一个发明,还提供了一种驾驶模式切换装置,包括:检测模块,被设置为检测用户设备的状态;第一切换模块,被设置为在检测到上述用户设备的状态为第一预设状态的情况下,将上述用户设备的工作模式从当前模式切换至驾驶模式,其中,上述第一预设状态包括:上述用户设备的当前放置状态为预设放置状态,未检测到触摸上述用户设备的触控屏所产生的信号,且上述用户设备的移动速度超过第一预设阈值,其中,上述预设放置状态为横屏状态或竖屏状态。
可选地,上述装置还包括:第二切换模块,被设置为在检测到上述用户设备的状态为第二预设状态的情况下,将上述用户设备的工作模式从上述驾驶模式切换至上述当前模式。
可选地,上述第二预设状态包括以下至少之一:在连续的多个检测周期内检测到上述用户设备的移动速度低于第二预设阈值;在连续的多个检测周期内检测到触摸上述用户设备的触控屏所产生的信号。
可选地,在连续的多个检测周期内检测到触摸上述用户设备的触控屏所产生的信号中,触摸上述用户设备的触控屏所产生的信号为:触摸上述用户设备的触控屏的边缘位置所产生的信号。
通过本发明实施例,采用检测用户设备的状态;在检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式,其中,第一预设状态包括:用户设备的当前放置状态为预设放置状态,未检测到触摸用户设备的触控屏所产生的信号,且用户设备的移动速度超过第一预设阈值,其中,预设放置状态为横屏状态或竖屏状态,解 决了相关技术中无法自动开启驾驶模式所导致的问题,实现了驾驶模式的自动切换。
附图说明
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的驾驶模式切换方法的流程图;
图2是根据本发明实施例的驾驶模式切换装置的结构示意图;
图3是根据本发明优选实施例的驾驶模式切换方法的流程图;
图4是根据本发明优选实施例的手握状态检测方法的示意图一;
图5是根据本发明优选实施例的手握状态检测方法的示意图二;
图6是根据本发明优选实施例的驾驶模式切换方法的优选流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种驾驶模式切换方法,图1是根据本发明实施例的驾驶模式切换方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,检测用户设备的状态;
步骤S104,在检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式;
其中,第一预设状态包括:用户设备的当前放置状态为预设放置状态,未检测到触摸用户设备的触控屏所产生的信号,且用户设备的移动速度超过第一预设阈值,其中,预设放置状态为横屏状态或竖屏状态。
通过上述步骤,采用对用户设备状态的判断的方式,在第一预设状态下降用户设备的工作模式从当前模式切换至驾驶模式,从而解决了相关技术中无法自动开启驾驶模式所导致的问题,实现了驾驶模式的自动切换。
优选地,上述的用户设备包括但并不限于:智能手机、平板电脑,其他具备触控屏的便携式设备也可以采用上述方法进行驾驶模式的自动切换。尤其地,本发明实施例可以应用在无边框、具备触控屏的手机中;在本发明实施例中,检测触摸用户设备的触控屏所产生的信 号的作用是判断是否有用户持握或者触摸操作用户设备,因此,在边框上具有检测用户操作的感应器的用户设备中,这些感应器也可以看成是触控屏的延伸,也应当在本发明实施例的保护范围之内。在本发明实施例中,将采用具备触控屏的手机为例进行描述和说明;例如,手机检测用户设备的状态;并在检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式。
在本发明实施例中,用户设备的状态可以通过传感器和触摸屏来检测,其中,这些传感器包括但不限于:陀螺仪传感器、重力加速度传感器。而状态的判断以及工作模式的切换可以由用户设备中的处理器进行处理。
上述的预设放置状态是指:预先设置的用户设备的放置状态,例如,用户可以预先设置横屏状态为预设放置状态,也可以预先设置竖屏状态为预设放置状态。
上述的第一预设阈值是指可以用于区别用户正常行走速度的速度阈值,例如:人的步行速度一般低于10公里每小时,则第一预设阈值可以设置为10公里每小时。此外,需要说明的是,在根据本发明实施例的变形方式中,还可以设置用户设备的移动速度的上限阈值,例如:用户的驾驶速度一般低于120公里每小时,则可以设置用户设备在10公里每小时至120公里每小时之间的移动速度,且满足其他的第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式。需要说明的是,上述的速度阈值仅为本发明实施例的示例性描述,并不表示在本发明实施例中仅限于上述预设阈值的设置,即,上述第一预设阈值是可以根据需要进行预先设置,或者被用户根据需要进行设置和更改的。
在本发明实施例中所指的工作模式,又称为场景模式。工作模式包括:会议模式、睡眠模式、驾驶模式等,例如,会议模式中,会将铃声和短信通知设置为静音;睡眠模式中,可以将数据服务关闭且将铃声和短信通知设置为静音等。用户设备可以在这些工作模式之间进行切换,且这些工作模式的参数配置也是可以由用户自定义更改的。在本发明实施例中所指的驾驶模式一般是指:接收到的短信自动读出、语音电话自动免提接听等。当然,不同的终端厂商或者设备厂商对驾驶模式的参数设置可能有所不同,然而本发明实施例中并不对驾驶模式的具体参数作任何限制,例如,在某些厂商定义的驾驶模式中,也可能接收的短信并不会自动读出。本发明实施例中所指的当前模式是指:用户设备当前被设置为的工作模式,包括但不限于会议模式、静音模式、睡眠模式等,甚至可能是某一种用于驾驶的模式(例如:用于低速驾驶的模式,用于高速驾驶的模式)。
在本发明实施例中还提供了一种自动切出驾驶模式的方式。例如,在检测到用户设备的状态为第二预设状态的情况下,将用户设备的工作模式从驾驶模式切换至当前模式。
第二预设状态包括:在连续的多个检测周期内检测到用户设备的移动速度低于第二预设阈值。例如,第二预设阈值为3公里每小时;设置在连续的多个检测周期内检测移动速度的方式,是为了防止用户在等红灯、道路暂时拥塞所导致的驾驶模式误切出。另外,在本发明实施例的一些变形方式中,工作模式切出驾驶模式之后,可以根据当前场景,自动切换到其他的工作模式,并不限于切换至驾驶模式之前的当前模式。
还可以通过对触摸屏上触摸信号的检测,判断用户是否在连续的多个检测周期内均在操作用户设备。若用户在多个检测周期内均在操作用户设备,也可以认为用户目前并不在驾驶中。例如,第二预设状态包括:在连续的多个检测周期内检测到触摸用户设备的触控屏所产生的信号。较优地,上述的触摸所述用户设备的触控屏所产生的信号为:触摸用户设备的触控屏的边缘位置所产生的信号,其中,边缘位置的宽度可以根据需要进行定义,例如,可以定义距离边框的距离为5%的用户设备长度(或者宽度)为边缘位置;对于触摸用户设备的触控屏的中心区域(被边缘位置包围的中心区域),如果没有检测到触摸触控屏边缘位置的触摸信号,则可以认为用户没有手持用户设备,此时可以不进行驾驶模式的切出操作。
可以在连续的多个检测周期中同时检测用户设备的移动速度和触摸信号的方式来判断是否将用户设备的工作模式切出驾驶模式。
自动切换驾驶模式可以设置一个使能开关,用户可以根据需要选择是否开启自动切换驾驶模式的功能,例如,在将用户设备的工作模式切换至驾驶模式之前,判断用户设备上第一使能开关是否为打开状态,其中,第一使能开关用于指示是否启用自动将用户设备的工作模式切换至驾驶模式的功能;在将用户设备的工作模式从当前模式切换至驾驶模式时,可以在判断到第一使能开关为打开状态,且检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式。
在本发明实施例中也提供了一种手动切出驾驶模式的方式,例如,在将用户设备的工作模式从当前模式切换至驾驶模式之后,接收工作模式切换指令,其中,工作模式切换指令用于指示用户设备将工作模式从驾驶模式切换至当前模式;根据工作模式切换指令,将用户设备的工作模式从驾驶模式切换至当前模式。
优选地,为了避免误操作,并提供给用户直观的使用体验,可以在将用户设备的工作模式从当前模式切换至驾驶模式时,同时提供语音提示或者画面提示,其中,语音提示或者画面提示用于提示用户即将将用户设备的工作模式从当前模式切换至驾驶模式。上述的语音提示或者画面提示中,同时可以申明即将进行驾驶模式切换,还可以申明退出驾驶模式切换的方式;此外,在接收到确认操作之后或者在预设时间之后,才将用户设备的工作模式从当前模式切换至驾驶模式。通过这样的方式,使得用户可以在不需要进行驾驶模式切换的情况下,避免用户设备自动切换到驾驶模式。
优选地,考虑到用户可能使用手机支架观看多媒体应用提供的多媒体节目,因此,为了避免这种情况下的驾驶模式自动切换,可以通过对正在用户设备的***前台运行的应用程序进行判断,例如,第一预设状态还包括:用户设备上***前台正在运行的应用为非多媒体应用。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如 ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种驾驶模式切换装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的驾驶模式切换装置的结构框图,如图2所示,该装置包括:检测模块22、第一切换模块24。其中,检测模块22,被设置为检测用户设备的状态;第一切换模块24,耦合至检测模块22,被设置为在检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式。
其中,第一预设状态包括:用户设备的当前放置状态为预设放置状态,未检测到触摸用户设备的触控屏所产生的信号,且用户设备的移动速度超过第一预设阈值,其中,预设放置状态为横屏状态或竖屏状态。
优选地,装置还包括:第二切换模块,耦合至检测模块22,被设置为在检测到用户设备的状态为第二预设状态的情况下,将用户设备的工作模式从驾驶模式切换至当前模式。
优选地,第二预设状态包括以下至少之一:在连续的多个检测周期内检测到用户设备的移动速度低于第二预设阈值;在连续的多个检测周期内检测到触摸用户设备的触控屏所产生的信号。
优选地,在连续的多个检测周期内检测到触摸用户设备的触控屏所产生的信号中,触摸用户设备的触控屏所产生的信号为:触摸用户设备的触控屏的边缘位置所产生的信号。
优选地,装置还包括:判断模块,耦合至第一切换模块24,被设置为在切换驾驶模式之前,判断用户设备上第一使能开关是否为打开状态,其中,第一使能开关用于指示是否启用自动将用户设备的工作模式切换至驾驶模式的功能;其中,第一切换模块24被设置为在判断到第一使能开关为打开状态,且检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式。
优选地,装置还包括:第一接收模块,耦合至第一切换模块,被设置为在将用户设备的工作模式从当前模式切换至驾驶模式之后,接收工作模式切换指令,其中,工作模式切换指令用于指示用户设备将工作模式从驾驶模式切换至当前模式;第三切换模块,耦合至第一接收模块,被设置为根据工作模式切换指令,将用户设备的工作模式从驾驶模式切换至当前模式。
优选地,第一切换模块24包括:提供单元,被设置为提供语音提示或者画面提示,其中,语音提示或者画面提示用于提示用户即将将用户设备的工作模式从当前模式切换至驾驶模式;切换单元,耦合至提供单元,被设置为在接收到确认操作之后或者在预设时间之后,将用户设备的工作模式从当前模式切换至驾驶模式。
优选地,所述第一预设状态还包括:所述用户设备上***前台正在运行的应用为非多媒体应用。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
本发明的实施例还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。
本发明的实施例还提供了一种存储介质。在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,检测用户设备的状态;
S2,在检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式;
其中,第一预设状态包括:用户设备的当前放置状态为预设放置状态,未检测到触摸用户设备的触控屏所产生的信号,且用户设备的移动速度超过第一预设阈值,其中,预设放置状态为横屏状态或竖屏状态。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
为了使本发明实施例的描述更加清楚,下面结合优选实施例进行描述和说明。
已有的技术方案普遍是描述驾驶模式的功能和特点,基本都是手动选取的方式。本发明优选实施例通过连续的多个条件判断,可以实现驾驶模式的自动切换,并且切换更加准确,用户体验更好。
目前手动设置切换为驾驶模式的方式,如果当用户正在驾驶,去操作终端将变得危险且不方便。而如果仅仅通过重力感应器获取加速度的变化来判断是否自动切换驾驶模式,则容易引起误操作。例如,用户开车时将手机放置在包里或者其他地方,再或者终端使用者不是司机而是座客,正在手持手机看视频,按照驾驶模式的设置,此时如果有短信将全部语音读出,不利于保护用户的私人信息,用户体验变差。
为了达到自动并精确的判断驾驶模式的切换,从而自动切换驾驶模式。本发明优选实施例提供了一种检测无边框手机的驾驶模式以及自动切换的***和方法。在本发明优选实施例中,以无边框手机为例进行说明。其中,无边框手机是指触控屏与手机宽度几乎等宽的手机。
本发明优选实施例提供的方案中,该手机包括四个模块:第一个模块被设置为获取屏幕是否处于横屏状态(或者竖屏状态,根据预先设置的状态确定);第二个模块被设置为判断触控屏(例如,电容触控屏)是否有手握点;第三个被设置为检测终端的水平移动速度,是否在设定的范围值内;第四个模块被设置为获取判断结果并根据结果判断是否要自动切换为驾驶模式。例如,如果前三个模块的条件判断都成立,即当前为横屏(或竖屏),并且无手握点,移动速度在20公里/小时到200公里/小时之间,此时第四个模块获取到判断结果为成立,***则自动打开手机的驾驶模式,否则,不打开。
同理,***打开驾驶模式后,如果检测到同时满足以下三个条件:速度为0,且处于横屏(或竖屏),并且边框处有手握点并且手握时间超过用户预设的时间值,则判断处于结束驾驶的状态,此时自动关闭驾驶模式。并且,***提供一个可以打开和关闭自动切换驾驶模式的开关,默认为打开。
下面结合附图对本发明优选实施例进行描述和说明。
一、自动切换驾驶模式的检测及实现过程
本优选实施例提供的切换驾驶模式的条件包括:获取当前手机为横屏(或竖屏)、无手握、移动速度在设定的范围内。判断及切换方法的流程图如图3所示。
下面对三个条件的判断分别进行描述和说明。
条件一,获取当前手机为横屏(或竖屏)
获取终端的横竖屏状态。终端是否处于横竖屏状态可由终端的操作***获取,***有判断横竖屏的函数,获取返回值即可得到当前的横竖屏状态。
条件二,检测终端是否处于手握状态
终端有无手握可以通过触控屏检测有无手握点来判断;由于无边框手机(或者边框较窄的手机)的特点,当终端有手握时,触控屏的屏幕边框边缘部分或屏幕主区域会有触点。而只要检测到任何一个部分有触点,则条件判断不通过。下面将说明如何检测是否有触点以及获取触点位置的方法。
1)我们通常所说的电容屏,包括触摸屏和触摸集成电路(Integrated Circuit,简称为IC)芯片。触摸屏也就是我们手触摸操作的透明部分;触摸IC芯片,其作用是当触摸电容屏时,要解析到触点的位置坐标,就是通过这颗芯片去计算处理的。
2)现在平板电脑、手机、车载等基本都是采用投射式电容,电容屏在玻璃表面镀上ITO(即氧化铟锡)制作成横向(水平)与纵向(垂直)电极阵列,这些横向和纵向的电极分别与地构成电容,这样,投射电容就构成了一个轴坐标式的感应单元矩阵:轴坐标式感应单元分立的行和列,以两个交叉的滑条(带传感功能)实现X轴滑条和Y轴滑条来检测每一格感应单元的电容变化。当手指触摸到电容屏时,手指的电容将会叠加到屏体电容上,使屏体电容量增加。
3)在触摸检测时,电容屏依次分别检测横向与纵向电极阵列,根据触摸前后电容的变化,分别确定横向坐标和纵向坐标,然后组合成平面的触摸坐标。电容的扫描方式,相当于把触摸屏上的触摸点分别投影到X轴和Y轴方向,最后组合成触摸点的坐标。解析的过程由触摸IC芯片来完成,而终端的操作***的驱动会获取到此坐标。
4)***对获取到的触摸坐标进行如下判断:
a),如图4所示,黑色实线的边框代表手机的整个屏幕区域。如果此时获取到屏幕为竖屏状态,则判断触点坐标的X轴距离也就是触点到终端左边缘的距离,大于零小于整个触摸屏宽度的5%或大于整个触屏宽度的95%小于100%,则获取到触点是位与边框处的两侧,如果触点的X轴距离为整个触摸屏宽度的5%到95%之间,则获取到触点是在屏幕的主区域内操作。百分比的计算通过触点的像素点来判断,例如以手机的屏幕分辨率是1280*720为例,也就是说屏幕的每一个长度的方向上都有1280个像素点,而每一个宽度方向上都720个像素点.如果此时触点的像素点的X轴方向也就是宽度方向是720*5%=36以内,或者是720*95%=684以外,则说明触点是在边框的两侧,如果是大于36小于684,则说明触点是在屏幕的主区域。
b),如图5所示,黑色实线的边框代表手机的整个屏幕区域。如果此时获取到的屏幕为横屏状态,则判断触点坐标的Y轴距离,就是触点坐标到终点下边缘的距离,同上,如果距离大于零小于整个触摸屏宽度的5%或大于整个触屏宽度的95%小于100%,则获取到触点是位与边框处的上下两侧,如果触点的Y轴距离为整个触摸屏宽度的5%到95%之间,则获取到触点是在屏幕的主区域内操作。百分比的计算根据触点的像素点的Y轴方向来判断,同样以1280*720的分辨率为例,在横屏状态下,Y轴方向的像素点的5%和95%,同样也是720*5%=36,720*95%=684。
条件三,获取终端当前的移动速度,并判断是否在设定的范围值内。
加速度传感器是智能终端非常普遍的配置,因此移动速度可以通过加速度传感器的值,积分一次即获取速度。以速度值大于20公里/小时小于200公里/小时为例,如果得到的速度值大于20公里/小时小于200公里/小时,则条件判断成立。
其中,加速度积分求速度的公式如下:
v=∫a(t)dt,其中,a表示加速度,t表示时间。
在进行上述三个条件判断之后,获取这些判断值,如果根据判断值判断到同时满足以上三个条件,则自动切换驾驶模式。也就是,触发自动切换驾驶模式的条件就是当判断为横屏(或竖屏),并且屏幕边框处或主区域内均无手握点,速度在20公里/小时到200公里/小时之间。在本发明优选实施例的驾驶模式中,来电和短信等自动转成语音播放,并且将语音提示是否需要导航。
二、结束驾驶模式的检测及实现过程
当自动切换到驾驶模式后,***也提供自动检测并结束驾驶模式的方法。例如,结束驾 驶模式的触发条件可以是:
1)终端检测到水平移动速度为零;
2)边框处有手握点,且从检测到手触点时启用计时器,例如,时间超过1分钟则判断此时处于驾驶结束状态。手触时间的长度,用户可以自行设定,例如,20秒、40秒、1分钟或2分钟等均是可选值。
以上两个条件的判断方法,可以参照前述说明,在此将不再赘述。如果以上两个条件均成立,则判断处于结束驾驶的状态,此时可以自动关闭驾驶模式。
同时,***提供打开和关闭自动切换驾驶模式的开关,以上处理流程仅在打开此开关时有效,当用户不需要***自动检测驾驶模式时,则关闭此开关即可.如图6所示,***首先判断终端的自动切换驾驶模式的开关是否为开,如果已打开,则进行上述的自动检测流程,如果开关为关,则结束。
下面对本发明优选实施例的应用场景进行说明。
1、触发切换驾驶模式:
用户的终端以预先设置为打开自动切换驾驶模式的功能。当用户准备驾驶汽车时,将手机横屏放置于手机架上或者汽车驾驶台的合适位置,此时手机就获取到了屏幕处于横屏(或竖屏)的状态信息;当用户开始驾驶汽车时,手机继续获取到此时符合没有手握点的条件,当汽车启动,手机获取当前的移动速度大于等于20公里/小时,则三个条件均判断通过,此时手机将自动切换到驾驶模式,语音提示用户是否需要打开导航,用户语音控制回答是,则直接开启导航,并且将短信和来电均转换为语音模式。具体的驾驶模式下的功能,因终端不同而可能有少许的差异。
2、结束驾驶模式
当用户停止驾驶,此时,***获取到移动终端的速度变为0,并且判断手机边框处有无手握点,如果检测到边框出有手握点,并且手触时间大于用户预设的时间,例如1分钟,则得知此时处于驾驶结束状态,从而自动关闭退出驾驶模式。
如果***获取到移动终端速度为零时,且边框处无手触点,但是屏幕的主区域有手触点,则判断此时可能是用户在等红绿灯等状态下主动操作屏幕的行为,不符合结束驾驶状态,则不退出驾驶模式。
需要说明的是,以上方案中的检测条件中的是否有手握点,也可以替换为,仅检测无边框的周围是否有手触点。因为如果正常使用手机,一般情况下,边框处一定会有手触点,无边框手机(或者边框窄的手机)刚好能做到判断这一条件。并且,在处于驾驶模式的过程中,也可以增加一个判断条件:当自动切换为驾驶模式后,如果检测到屏幕的主区域内有手触点,但是手机仍然处于横屏状态,则***判断出,此时是用户在驾驶状态下主动操作手机,则不关闭驾驶模式。如何检测触点处于边框周围或者是屏幕主区域前面已经进行说明,此处不再 赘述。
综上所述,通过本发明的上述实施例或者优选实施例,通过连续条件的检测判断,做到准确判断是否处于驾驶状态,从而自动切换为驾驶模式。在上述实施例中,终端获取到处于横屏(或竖屏)且无手握点,并且速度在预设的范围值内,则说明已经处于驾驶状态,此时终端自动切换为驾驶模式,语音询问用户是否需要打开导航,并且所有来电和短信均转换为语音模式;而当终端获取到移动速度为零,并且手机边框处有手握点且手触时间超过用户设定的时间值,则自动关闭驾驶模式。整个过程用户可以无需任何手动操作,方便安全。
显然,本领域的技术人员应该明白,上述的本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明实施例不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
在本发明实施例中,采用检测用户设备的状态;在检测到用户设备的状态为第一预设状态的情况下,将用户设备的工作模式从当前模式切换至驾驶模式,其中,第一预设状态包括:用户设备的当前放置状态为预设放置状态,未检测到触摸用户设备的触控屏所产生的信号,且用户设备的移动速度超过第一预设阈值,其中,预设放置状态为横屏状态或竖屏状态,解决了相关技术中无法自动开启驾驶模式所导致的问题,实现了驾驶模式的自动切换。

Claims (12)

  1. 一种驾驶模式切换方法,包括:
    检测用户设备的状态;
    在检测到所述用户设备的状态为第一预设状态的情况下,将所述用户设备的工作模式从当前模式切换至驾驶模式,其中,所述第一预设状态包括:所述用户设备的当前放置状态为预设放置状态,未检测到触摸所述用户设备的触控屏所产生的信号,且所述用户设备的移动速度超过第一预设阈值,其中,所述预设放置状态为横屏状态或竖屏状态。
  2. 根据权利要求1所述的方法,其中,在将所述用户设备的工作模式切换为所述驾驶模式之后,所述方法还包括:
    在检测到所述用户设备的状态为第二预设状态的情况下,将所述用户设备的工作模式从所述驾驶模式切换至所述当前模式。
  3. 根据权利要求2所述的方法,其中,所述第二预设状态包括以下至少之一:
    在连续的多个检测周期内检测到所述用户设备的移动速度低于第二预设阈值;
    在连续的多个检测周期内检测到触摸所述用户设备的触控屏所产生的信号。
  4. 根据权利要求3所述的方法,其中,在连续的多个检测周期内检测到触摸所述用户设备的触控屏所产生的信号中,触摸所述用户设备的触控屏所产生的信号为:
    触摸所述用户设备的触控屏的边缘位置所产生的信号。
  5. 根据权利要求1所述的方法,其中,
    在将所述用户设备的工作模式切换至所述驾驶模式之前,所述方法还包括:判断所述用户设备上第一使能开关是否为打开状态,其中,所述第一使能开关用于指示是否启用自动将所述用户设备的工作模式切换至驾驶模式的功能;
    其中,将所述用户设备的工作模式从所述当前模式切换至所述驾驶模式包括:在判断到所述第一使能开关为打开状态,且检测到所述用户设备的状态为所述第一预设状态的情况下,将所述用户设备的工作模式从所述当前模式切换至所述驾驶模式。
  6. 根据权利要求1所述的方法,其中,在将所述用户设备的工作模式从所述当前模式切换至所述驾驶模式之后,所述方法还包括:
    接收工作模式切换指令,其中,所述工作模式切换指令用于指示所述用户设备将工作模式从所述驾驶模式切换至所述当前模式;
    根据所述工作模式切换指令,将所述用户设备的工作模式从所述驾驶模式切换至所述当前模式。
  7. 根据权利要求1所述的方法,其中,将所述用户设备的工作模式从所述当前模式切换至 所述驾驶模式包括:
    提供语音提示或者画面提示,其中,所述语音提示或者所述画面提示用于提示用户即将将所述用户设备的工作模式从所述当前模式切换至所述驾驶模式;
    在接收到确认操作之后或者在预设时间之后,将所述用户设备的工作模式从所述当前模式切换至所述驾驶模式。
  8. 根据权利要求1至7中任一项所述的方法,其中,所述第一预设状态还包括:
    所述用户设备上***前台正在运行的应用为非多媒体应用。
  9. 一种驾驶模式切换装置,包括:
    检测模块,被设置为检测用户设备的状态;
    第一切换模块,被设置为在检测到所述用户设备的状态为第一预设状态的情况下,将所述用户设备的工作模式从当前模式切换至驾驶模式,其中,所述第一预设状态包括:所述用户设备的当前放置状态为预设放置状态,未检测到触摸所述用户设备的触控屏所产生的信号,且所述用户设备的移动速度超过第一预设阈值,其中,所述预设放置状态为横屏状态或竖屏状态。
  10. 根据权利要求9所述的装置,其中,所述装置还包括:
    第二切换模块,被设置为在检测到所述用户设备的状态为第二预设状态的情况下,将所述用户设备的工作模式从所述驾驶模式切换至所述当前模式。
  11. 根据权利要求10所述的装置,其中,所述第二预设状态包括以下至少之一:
    在连续的多个检测周期内检测到所述用户设备的移动速度低于第二预设阈值;
    在连续的多个检测周期内检测到触摸所述用户设备的触控屏所产生的信号。
  12. 根据权利要求11所述的装置,其中,在连续的多个检测周期内检测到触摸所述用户设备的触控屏所产生的信号中,触摸所述用户设备的触控屏所产生的信号为:
    触摸所述用户设备的触控屏的边缘位置所产生的信号。
PCT/CN2015/088668 2015-07-23 2015-08-31 驾驶模式切换方法和装置 WO2016145793A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510438218.XA CN106371740A (zh) 2015-07-23 2015-07-23 驾驶模式切换方法和装置
CN201510438218.X 2015-07-23

Publications (1)

Publication Number Publication Date
WO2016145793A1 true WO2016145793A1 (zh) 2016-09-22

Family

ID=56918236

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088668 WO2016145793A1 (zh) 2015-07-23 2015-08-31 驾驶模式切换方法和装置

Country Status (2)

Country Link
CN (1) CN106371740A (zh)
WO (1) WO2016145793A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506853A (zh) * 2016-11-28 2017-03-15 深圳市金立通信设备有限公司 情景模式管理方法及装置
CN109831375A (zh) * 2019-03-18 2019-05-31 努比亚技术有限公司 即时通信信息的收发方法、终端及计算机可读存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257407A (zh) * 2017-06-05 2017-10-17 广东小天才科技有限公司 一种信息处理方法及移动终端
CN107315519A (zh) * 2017-06-30 2017-11-03 北京奇虎科技有限公司 驾驶状态下的os切换方法、装置及移动终端
CN107728810B (zh) * 2017-10-19 2021-03-26 Oppo广东移动通信有限公司 终端控制方法、装置、终端及存储介质
CN108099912B (zh) * 2017-11-27 2020-02-11 重庆长安汽车股份有限公司 汽车驾驶模式的控制方法及控制***
CN108804010B (zh) * 2018-05-31 2021-07-30 北京小米移动软件有限公司 终端控制方法、装置及计算机可读存储介质
CN111984853B (zh) * 2019-05-22 2024-03-22 北京车和家信息技术有限公司 试驾报告生成方法和云端服务器

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201204700Y (zh) * 2007-12-29 2009-03-04 深圳市戴文科技有限公司 一种通信终端
KR20110050275A (ko) * 2009-11-06 2011-05-13 삼성전자주식회사 차량 관련 이동통신 단말기의 운용 방법 및 시스템
CN102984379A (zh) * 2012-11-26 2013-03-20 上海斐讯数据通信技术有限公司 具有安全驾驶模式的移动终端及移动终端来电控制方法
CN103024177A (zh) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 一种移动终端驾驶模式操作方法及移动终端
CN103051803A (zh) * 2012-12-28 2013-04-17 海南舟悠科技有限公司 一种在驾驶车辆中自动处理手机来电及信息的方法及***
CN103634479A (zh) * 2013-12-16 2014-03-12 江苏大学 一种汽车行驶时自动开启手机行车模式的装置及方法
CN103997560A (zh) * 2013-02-18 2014-08-20 浪潮乐金数字移动通信有限公司 一种行车时移动通信终端的来电处理方法及移动通信终端
EP2770500A2 (en) * 2013-02-22 2014-08-27 Samsung Electronics Co., Ltd. Method for providing a voice-speech service and mobile terminal implementing the same
US8825032B1 (en) * 2009-09-14 2014-09-02 Sprint Spectrum L.P. Method and system for using a hands-free audio profile to limit use of a wireless communication device
JP2014220821A (ja) * 2014-06-30 2014-11-20 日本電気株式会社 無線通信システム及び方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742603A (zh) * 2009-11-20 2010-06-16 华为终端有限公司 提示终端用户切换模式的方法及移动终端
JP2013244838A (ja) * 2012-05-25 2013-12-09 Toyota Motor Corp 車両の自動運転システム
CN103716457A (zh) * 2013-12-06 2014-04-09 乐视致新电子科技(天津)有限公司 一种车载手机控制方法和装置
US10353571B2 (en) * 2014-08-29 2019-07-16 Huawei Technologies Co., Ltd. Method and apparatus for preventing touchscreen misoperation

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201204700Y (zh) * 2007-12-29 2009-03-04 深圳市戴文科技有限公司 一种通信终端
US8825032B1 (en) * 2009-09-14 2014-09-02 Sprint Spectrum L.P. Method and system for using a hands-free audio profile to limit use of a wireless communication device
KR20110050275A (ko) * 2009-11-06 2011-05-13 삼성전자주식회사 차량 관련 이동통신 단말기의 운용 방법 및 시스템
CN102984379A (zh) * 2012-11-26 2013-03-20 上海斐讯数据通信技术有限公司 具有安全驾驶模式的移动终端及移动终端来电控制方法
CN103024177A (zh) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 一种移动终端驾驶模式操作方法及移动终端
CN103051803A (zh) * 2012-12-28 2013-04-17 海南舟悠科技有限公司 一种在驾驶车辆中自动处理手机来电及信息的方法及***
CN103997560A (zh) * 2013-02-18 2014-08-20 浪潮乐金数字移动通信有限公司 一种行车时移动通信终端的来电处理方法及移动通信终端
EP2770500A2 (en) * 2013-02-22 2014-08-27 Samsung Electronics Co., Ltd. Method for providing a voice-speech service and mobile terminal implementing the same
CN103634479A (zh) * 2013-12-16 2014-03-12 江苏大学 一种汽车行驶时自动开启手机行车模式的装置及方法
JP2014220821A (ja) * 2014-06-30 2014-11-20 日本電気株式会社 無線通信システム及び方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506853A (zh) * 2016-11-28 2017-03-15 深圳市金立通信设备有限公司 情景模式管理方法及装置
CN109831375A (zh) * 2019-03-18 2019-05-31 努比亚技术有限公司 即时通信信息的收发方法、终端及计算机可读存储介质

Also Published As

Publication number Publication date
CN106371740A (zh) 2017-02-01

Similar Documents

Publication Publication Date Title
WO2016145793A1 (zh) 驾驶模式切换方法和装置
CN107045420B (zh) 应用程序的切换方法及移动终端、存储介质
US8954099B2 (en) Layout design of proximity sensors to enable shortcuts
US20170187566A1 (en) Alerting Method and Mobile Terminal
WO2017032068A1 (zh) 一种查看短信的方法及用户终端
WO2016119673A1 (zh) 应用快速启动方法和***、计算机存储介质
US20160210034A1 (en) Method and apparatus for switching display mode
US10191645B2 (en) Controlling a touch panel display during scrolling operations
EP3163404A1 (en) Method and device for preventing accidental touch of terminal with touch screen
US20180158225A1 (en) Method and apparatus for switching real-time image in instant messaging
US9001039B2 (en) Device with touch screen false actuation prevention
CN111899545B (zh) 一种行车提醒方法、装置、存储介质及移动终端
US20150138135A1 (en) Protective case for electronic device, information processing method and electronic device
CN107239166B (zh) 一种调整移动终端界面显示的方法及移动终端
US20160334936A1 (en) Portable device and method of modifying touched position
EP3249505B1 (en) Method and electronic device for controlling a state of a touch screen
CN105827812A (zh) 一种通话模式切换方法和移动通信终端
CN103838577A (zh) 一种突发消息处理方法及终端
US20150242100A1 (en) Detecting intentional rotation of a mobile device
KR101910509B1 (ko) 전자장치에서 자동응답시스템 서비스 이용중 화면 꺼짐 방지를 위한 방법 및 장치
CN104461312A (zh) 一种显示控制方法及电子设备
US20140228073A1 (en) Automatic presentation of an image from a camera responsive to detection of a particular type of movement of a user device
CN103900552A (zh) 一种导航方法和装置
CN103399959A (zh) 一种网页的交互控件的显示方法及终端
CN105472157A (zh) 终端运动状态监测方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15885168

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15885168

Country of ref document: EP

Kind code of ref document: A1