CN107199969B - Vehicle-mounted navigation state monitoring method and terminal - Google Patents
Vehicle-mounted navigation state monitoring method and terminal Download PDFInfo
- Publication number
- CN107199969B CN107199969B CN201710310151.0A CN201710310151A CN107199969B CN 107199969 B CN107199969 B CN 107199969B CN 201710310151 A CN201710310151 A CN 201710310151A CN 107199969 B CN107199969 B CN 107199969B
- Authority
- CN
- China
- Prior art keywords
- terminal
- preset
- music
- vehicle
- state
- 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.)
- Expired - Fee Related
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 64
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000001133 acceleration Effects 0.000 claims abstract description 90
- 230000008859 change Effects 0.000 claims abstract description 34
- 230000007958 sleep Effects 0.000 claims abstract description 21
- 238000009423 ventilation Methods 0.000 claims description 7
- 230000005059 dormancy Effects 0.000 claims description 6
- 230000008569 process Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 230000005484 gravity Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000033764 rhythmic process Effects 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
- B60R16/023—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
- B60R16/0231—Circuits relating to the driving or the functioning of the vehicle
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3407—Route searching; Route guidance specially adapted for specific applications
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Navigation (AREA)
Abstract
The embodiment of the invention provides a method and a terminal for monitoring a vehicle navigation state, wherein the method comprises the following steps: judging whether the terminal is in a non-sleep state or not; if the terminal plane is in the non-dormant state, monitoring whether the change value of the included angle between the terminal plane and the horizontal plane within first preset time is smaller than a first preset threshold value; if the acceleration is smaller than the first preset threshold, monitoring whether the acceleration of the terminal is continuously changed within second preset time and whether the acceleration is larger than the second preset threshold; if the acceleration is continuously changed and the magnitude of the acceleration is larger than a second preset threshold, judging whether the change value of the acceleration direction of the terminal in a second preset time is smaller than a third preset threshold; and if the terminal is smaller than the third preset threshold, determining that the terminal is in a vehicle navigation state. The embodiment of the invention can accurately judge whether the terminal is in the vehicle-mounted navigation state without depending on a navigation map, can provide scene basis for other applications on the terminal, better serves terminal users and improves user experience.
Description
Technical Field
The embodiment of the invention belongs to the technical field of electronics, and particularly relates to a method and a terminal for monitoring a vehicle navigation state.
Background
With the continuous development of navigation technology, the navigation mode used on the current automobile is transferred from a special vehicle-mounted navigation terminal to a mobile terminal provided with navigation software, compared with the prior vehicle-mounted navigation terminal, the mobile terminal can conveniently upgrade the navigation software, almost no extra cost is caused, and a user only needs to install a bracket for fixing the mobile terminal on the automobile.
At present, the technical scheme for judging whether an automobile is in a vehicle-mounted navigation state is generally realized through navigation software installed on a mobile terminal, the navigation software reads information such as acceleration sensor data in the mobile terminal and a traveling route drawn on a navigation map when navigating and positioning, then an average speed per hour is calculated according to the information, and whether the mobile terminal on the automobile is in the vehicle-mounted navigation state is judged according to the average speed per hour. However, the method needs to use or open a navigation map, and the obtained determination result is generally only known by third-party navigation software, but other applications on the mobile terminal cannot share the determination result and cannot provide a scene basis for other applications on the mobile terminal.
Disclosure of Invention
The embodiment of the invention provides a method and a terminal for monitoring a vehicle-mounted navigation state, which can accurately judge whether the terminal is in the vehicle-mounted navigation state without depending on a navigation map, can provide scene basis for other applications on the terminal, better serve terminal users and improve user experience.
An embodiment of the present invention provides a method for monitoring a vehicle navigation state, including:
judging whether the terminal is in a non-sleep state or not;
if the terminal plane is in the non-dormant state, monitoring whether the change value of the included angle between the terminal plane and the horizontal plane within first preset time is smaller than a first preset threshold value;
if the acceleration is smaller than the first preset threshold, monitoring whether the acceleration of the terminal is continuously changed within second preset time and whether the acceleration is larger than the second preset threshold;
if the acceleration is continuously changed and the acceleration is larger than a second preset threshold, judging whether the change value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold;
and if the terminal is smaller than a third preset threshold, determining that the terminal is in a vehicle navigation state.
Another aspect of the embodiments of the present invention further provides a terminal, including:
the dormancy monitoring unit is used for judging whether the terminal is in a non-dormancy state;
the plane included angle monitoring unit is used for monitoring whether a change value of an included angle between the terminal plane and the horizontal plane within first preset time is smaller than a first preset threshold value or not if the terminal plane is in a non-dormant state;
the acceleration monitoring unit is used for monitoring whether the acceleration of the terminal is continuously changed within second preset time and whether the acceleration is larger than a second preset threshold value or not if the acceleration is smaller than the first preset threshold value;
the acceleration direction calculating unit is used for judging whether the change value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold value or not if the acceleration is continuously changed and the acceleration is larger than the second preset threshold value;
and the navigation state determining unit is used for determining that the terminal is in a vehicle-mounted navigation state if the navigation state is smaller than a third preset threshold.
The embodiment of the invention judges whether the terminal is in a non-dormant state; if the terminal plane is in the non-dormant state, monitoring whether the change value of the included angle between the terminal plane and the horizontal plane within first preset time is smaller than a first preset threshold value; if the acceleration is smaller than the first preset threshold, monitoring whether the acceleration of the terminal is continuously changed within second preset time and whether the acceleration is larger than the second preset threshold; if the acceleration is continuously changed and the acceleration is larger than a second preset threshold, judging whether the change value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold; if the terminal is smaller than the third preset threshold, the terminal is determined to be in the vehicle-mounted navigation state, so that whether the terminal is in the vehicle-mounted navigation state or not can be accurately judged without depending on a navigation map, scene basis can be provided for other applications on the terminal, service can be better provided for terminal users, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for monitoring a vehicle navigation state according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a default coordinate system in a terminal in the method for monitoring a vehicle navigation state according to the embodiment of the present invention;
fig. 3 is a vector resultant force plan view of three axial gravitational accelerations of a default coordinate system in a terminal in the method for monitoring a vehicle navigation state according to the embodiment of the present invention;
fig. 4 is a schematic flow chart of a method for monitoring a vehicle navigation state according to another embodiment of the present invention;
fig. 5 is a schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a terminal according to another embodiment of the present invention;
fig. 7 is a schematic block diagram of a terminal according to still another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
Referring to fig. 1, a schematic flowchart of a method for monitoring a vehicle navigation state according to an embodiment of the present invention is provided. As shown in fig. 1, the method may include the steps of:
step S101, judging whether the terminal is in a non-sleep state, and if the terminal is in the non-sleep state, entering step S102; otherwise, the process proceeds to step S106.
In this embodiment, whether the terminal is in the non-sleep state may be determined by detecting whether the CPU of the terminal is running, and if it is detected that the CPU of the terminal is running, it indicates that the terminal is in the non-sleep state; and if the CPU of the terminal is detected not to be operated, the terminal is in a sleep state.
In this embodiment, it may also be determined whether the terminal is in a dormant state by detecting whether a program in the terminal is transmitting and receiving network data, and if it is detected that the program is transmitting and receiving network data, it indicates that the terminal is in a non-dormant state; otherwise, the device is in a dormant state.
In this embodiment, it may also be determined whether the terminal is in a non-sleep state by reading the attribute of the system, and when the terminal is in the sleep or non-sleep state, corresponding content is recorded on the attribute of the system.
Step S102, monitoring whether a change value of an included angle between a terminal plane and a horizontal plane within a first preset time is smaller than a first preset threshold, and if the change value is smaller than the first preset threshold, entering step S103; otherwise, the process proceeds to step S106.
When the terminal is used for vehicle-mounted navigation, the terminal is generally fixed on a mobile phone support installed in a vehicle, so that when the terminal is in a vehicle-mounted navigation state, an included angle of a terminal plane relative to a horizontal plane is always relatively fixed, and the change is small. Therefore, in this embodiment, if it is monitored that the change value of the included angle between the terminal plane and the horizontal plane within the first preset time is smaller than the first preset threshold, the step S103 is performed; otherwise, it indicates that the terminal is in the non-sleep state, and directly jumps to step S106.
Further, in this embodiment, the monitoring a change value of an included angle between the terminal plane and the horizontal plane within a first preset time includes:
the terminal acquires three-axis data of the gravity sensor at intervals, calculates an included angle between a terminal plane and a horizontal plane according to the acquired three-axis data of the gravity sensor, compares the included angle obtained by the calculation with the included angle obtained by the previous calculation to obtain a change value of an included angle in two time points, and analogizes in turn to obtain a change value of the included angle between the terminal plane and the horizontal plane in the first preset time.
The three-axis data of the gravity sensor are vector force data of X, Y, Z three-axis gravity acceleration of a default coordinate system in the terminal, wherein X, Y axes are two sides of a terminal plane, a Z axis is perpendicular to the terminal plane, and a schematic diagram of the coordinate system is shown in fig. 2. Wherein, calculating the included angle between the terminal plane and the horizontal plane according to the obtained three-axis data of the gravity sensor comprises:
assuming that the resultant vector of the gravitational acceleration on the X axis and the Y axis is a, and the included angle between the terminal plane and the horizontal plane is b, it can be known from the resultant vector plane diagram of the gravitational acceleration in three axial directions shown in fig. 3: tan b ═ z/a; and is provided withThus, there are
Wherein x, y and z are respectively acquired vector force data of the gravity sensor on three axes X, Y, Z.
Step S103, monitoring whether the acceleration of the terminal is continuously changed and whether the acceleration is larger than a second preset threshold value within second preset time, and entering step S104 if the acceleration is continuously changed and the acceleration is larger than the second preset threshold value; otherwise, the process proceeds to step S106.
In this embodiment, the terminal may monitor the acceleration of the terminal in real time through an acceleration sensor built in the terminal, and if it is monitored that the accelerations continuously detected by the acceleration sensor for multiple times within a second preset time always change and the magnitudes of the accelerations detected for multiple times are all greater than a second preset threshold, it is indicated that the terminal may be located on a running vehicle at this time, and the process proceeds to step S104 to continue to determine; otherwise, it indicates that the terminal is not located on the traveling vehicle, i.e., in the off-board navigation state, and the process proceeds directly to step S106.
Step S104, judging whether the variation value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold, and if so, entering step S105; otherwise, the process proceeds to step S106.
When the terminal is used for vehicle navigation, the terminal acceleration always faces to a certain direction, because the position of the terminal is always relatively fixed in a vehicle navigation state, and the vehicle always runs relatively straight when running, namely runs up and down, but three axes of an acceleration sensor of the mobile terminal do not change relative to a running 'straight line', and do not change relative to the running direction of the automobile, so the acceleration direction of the acceleration sensor does not change relative to a vehicle chassis. Therefore, in this embodiment, whether the terminal is in the vehicle navigation state may be determined by determining whether a variation value of the terminal acceleration direction within the second preset time is smaller than a third preset threshold, where the acceleration direction is a direction of acceleration resultant of the terminal.
And step S105, determining that the terminal is in a vehicle navigation state.
And step S106, determining that the terminal is in an off-board navigation state.
In this embodiment, if it is determined that the change value of the terminal acceleration direction within the second preset time is smaller than a third preset threshold, it indicates that the terminal is currently in a vehicle navigation state; and otherwise, if the change value of the acceleration direction of the terminal in the second preset time is judged to be larger than or equal to a third preset threshold, the terminal is in the off-board navigation state currently.
Preferably, in another implementation example, after the step S104 determines that the change value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold, the method further includes:
monitoring whether navigation software on the terminal is opened;
if the navigation software on the terminal is opened, the step S105 is carried out, and the terminal is determined to be in a vehicle navigation state;
or, monitoring whether the terminal receives the satellite position data;
if the terminal receives the satellite position data, the step S105 is carried out, and the terminal is determined to be in a vehicle navigation state.
Similarly, if it is monitored that the navigation software on the terminal is not opened or the terminal does not receive the satellite position data within a period of time, the terminal is in the off-board navigation state, so that the accuracy of the judgment result can be further improved.
As can be seen from the above, in the monitoring method for the vehicle navigation state provided by this embodiment, whether the terminal is in the non-sleep state is determined; if the terminal plane is in the non-dormant state, monitoring whether the change value of the included angle between the terminal plane and the horizontal plane within first preset time is smaller than a first preset threshold value; if the acceleration is smaller than the first preset threshold, monitoring whether the acceleration of the terminal is continuously changed within second preset time and whether the acceleration is larger than the second preset threshold; if the acceleration is continuously changed and the acceleration is larger than a second preset threshold, judging whether the change value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold; if the terminal is smaller than the third preset threshold, the terminal is determined to be in the vehicle-mounted navigation state, so that whether the terminal is in the vehicle-mounted navigation state or not can be accurately judged without depending on a navigation map, scene basis can be provided for other applications on the terminal, service can be better provided for terminal users, and user experience is improved.
Fig. 4 is a schematic flow chart illustrating a method for monitoring a vehicle navigation state according to another embodiment of the present invention. Referring to fig. 4, the method may include the steps of:
step S401, judging whether the terminal is in a non-sleep state, if so, entering step S402; otherwise, the process proceeds to step S406.
Step S402, monitoring whether a change value of an included angle between a terminal plane and a horizontal plane within a first preset time is smaller than a first preset threshold, and if the change value is smaller than the first preset threshold, entering step S403; otherwise, the process proceeds to step S406.
Step S403, monitoring whether the acceleration of the terminal is continuously changed within a second preset time and whether the acceleration is larger than a second preset threshold value; if the acceleration is continuously changed and the magnitude of the acceleration is greater than a second preset threshold, the step S404 is entered; otherwise, the process proceeds to step S406.
Step S404, judging whether the variation value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold, and if so, entering step S405; otherwise, the process proceeds to step S406.
And step S405, determining that the terminal is in a vehicle navigation state.
And step S406, determining that the terminal is in an off-board navigation state.
It should be noted that, since the implementation manners of the steps S401 to S406 in this embodiment are completely the same as those of the steps S101 to S106 in the previous embodiment, detailed descriptions thereof are omitted here.
Step S407, counting vehicle navigation time, judging whether the vehicle navigation time exceeds a preset time threshold, and if the vehicle navigation time exceeds the preset time threshold, entering step S408; otherwise, no processing is performed.
In this embodiment, the preset time threshold is a fatigue driving time threshold, and when the vehicle-mounted navigation time exceeds the preset time threshold, it indicates that the current user is driving continuously for a long time and belongs to fatigue driving, and at this time, the step S408 is performed to remind the user.
And step S408, reminding the user of being in a fatigue driving state.
In this embodiment, the user may be reminded of the fatigue driving state in a voice prompt mode in the terminal, such as: the method comprises the steps that voice prompt information of fatigue driving is stored in a terminal in advance, and the voice prompt information is read and played when a user is determined to be in a fatigue driving state; the user can be prompted to be in a fatigue driving state currently through a vibration or ringing alarm mode.
Preferably, after step S408, the method may further include:
step S409, controlling music playing software installed in the terminal to play music of a preset type.
In this embodiment, step S409 specifically includes:
judging the music playing state of music playing software installed in the terminal;
if the music playing software is playing music currently, controlling the music playing software to extract music of a preset type from a music library and add the music to a play list, and playing the music added in the play list;
if the music playing software is in a closed state currently, acquiring a noise value of the current environment of the terminal, and judging whether the noise value is smaller than a preset noise threshold value or not;
if the noise is smaller than the preset noise threshold value, the control terminal automatically starts music playing software, controls the music playing software to extract preset types of music from a music library and add the music into a play list, and plays the music added in the play list.
In this embodiment, if the noise value of the current environment of the terminal is smaller than the preset noise threshold, it indicates that the current user may be in a window-closed driving state, and a fatigue driving state is likely to occur, so that the control terminal automatically starts music playing software to play music of a preset type; if the noise value of the current environment of the terminal is larger than the preset noise threshold value, it indicates that the current environment of the terminal is noisy, for example, the user may be in a windowed driving or a chat by a plurality of people in the vehicle, and at this time, even if the music playing software is turned on, the music effect has little effect on adjusting the fatigue driving state of the user, so that no processing is performed at this time.
Further, in this embodiment, the preset type of music includes, but is not limited to, music of a rock type, a sport type, and the like, which is fast in rhythm and spiritual excitement, so that the occurrence of fatigue of the user can be reduced.
Preferably, in this embodiment, after step S409, the method may further include:
step S410, monitoring whether the temperature of the environment where the terminal is located is higher than a preset temperature threshold value, and if the temperature is higher than the preset temperature threshold value, entering step S411; otherwise, no processing is performed.
And step S411, sending an instruction to the vehicle-mounted machine control system to request to lower the temperature of the air conditioner in the vehicle and increase the ventilation.
Because the user easily enters the sleep state under the condition of high temperature, if the user drives for a long time and the current temperature in the vehicle is high, the user is easily in a state of getting stranded and is not beneficial to driving safety, in the embodiment, the temperature in the vehicle is further monitored, and when the temperature in the vehicle is monitored to be larger than a preset threshold value, the temperature of an air conditioner in the vehicle is controlled to be adjusted downwards by the vehicle control system, and ventilation is increased, so that the user is kept in a waking state, and the occurrence of user fatigue is reduced.
Further, in this embodiment, the terminal establishes wireless communication connection with the car machine control system through bluetooth or wifi in advance, and when detecting that the temperature in the car is higher than the preset temperature threshold value, sends an instruction to the car machine control system of the car through bluetooth connection or wifi connection to make the car machine system adjust the air conditioner temperature down and increase the ventilation according to the received instruction.
Compared with the previous embodiment, the method for monitoring the vehicle navigation state provided by the embodiment can accurately judge whether the terminal is in the vehicle navigation state without depending on a navigation map, provide a scene basis for other applications on the terminal, better serve terminal users, and improve user experience; and moreover, the vehicle-mounted navigation time can be counted according to the judged vehicle-mounted navigation state, corresponding measures are adopted in time when the vehicle is in fatigue driving, the fatigue degree of the user is reduced, and the driving safety of the user is ensured.
Fig. 5 is a schematic block diagram of a terminal according to an embodiment of the present invention. Only the portions related to the present embodiment are shown for convenience of explanation.
Referring to fig. 5, the present embodiment provides a terminal 100 including:
the dormancy monitoring unit 11 is used for judging whether the terminal is in a non-dormancy state;
the plane included angle monitoring unit 12 is configured to monitor whether a change value of an included angle between the terminal plane and the horizontal plane within a first preset time is smaller than a first preset threshold value if the terminal plane is in a non-sleep state;
the acceleration monitoring unit 13 is configured to monitor whether the acceleration of the terminal is changing continuously within a second preset time and whether the acceleration is greater than a second preset threshold if the acceleration is smaller than the first preset threshold;
the acceleration direction calculating unit 14 is configured to, if the acceleration is continuously changing and the acceleration is greater than a second preset threshold, determine whether a change value of the acceleration direction of the terminal within the second preset time is smaller than a third preset threshold;
and the navigation state determining unit 17 is configured to determine that the terminal is in a vehicle-mounted navigation state if the navigation state is smaller than a third preset threshold.
Optionally, the terminal 100 further includes:
the navigation software monitoring unit 15 is used for monitoring whether the navigation software on the terminal is opened;
the navigation state determining unit 17 is further configured to determine that the terminal is in a vehicle-mounted navigation state if navigation software on the terminal is turned on; or,
a satellite data monitoring unit 16, configured to monitor whether the terminal receives satellite position data;
the navigation state determining unit 17 is further configured to determine that the terminal is in a vehicle navigation state if the terminal receives the satellite position data.
Optionally, referring to fig. 6, in another embodiment, the terminal 100 further includes:
the navigation time counting unit 18 is used for counting the vehicle-mounted navigation time and judging whether the vehicle-mounted navigation time exceeds a preset time threshold value;
and the fatigue driving prompting unit 19 is used for prompting the user to be in a fatigue driving state if the preset time threshold is exceeded.
Optionally, the terminal 100 further includes:
and a music playing control unit 20, configured to control music playing software installed in the terminal to play music of a preset type.
Optionally, the terminal 100 further includes:
the temperature monitoring unit 21 is configured to monitor whether the temperature of the environment where the terminal is currently located is higher than a preset temperature threshold;
and the temperature control unit 22 is used for sending an instruction to the vehicle-mounted machine control system to request to lower the temperature of the air conditioner in the vehicle and increase the ventilation if the temperature is higher than the preset temperature threshold.
It should be noted that, since each unit in the terminal provided in the embodiment of the present invention is based on the same concept as that of the embodiment of the method of the present invention, the technical effect brought by the unit is the same as that of the embodiment of the method of the present invention, and specific contents may refer to descriptions in the embodiment of the method of the present invention, and are not described herein again.
Therefore, it can be seen that the terminal provided by the embodiment of the invention can accurately judge whether the terminal is in the vehicle navigation state without depending on a navigation map, and can provide a scene basis for other applications on the terminal, so that the terminal can be better served for a terminal user, and the user experience is improved;
referring to fig. 7, a schematic block diagram of a terminal according to still another embodiment of the present invention is shown. The terminal in the present embodiment shown in fig. 7 may include: one or more processors 701; one or more input devices 702, one or more output devices 703, and memory 704. The processor 701, the input device 702, the output device 703, and the memory 704 are connected by a bus 705. The memory 702 is used for storing instructions and the processor 701 is used for executing the instructions stored by the memory 702. Wherein the processor 701 is configured to:
judging whether the terminal is in a non-sleep state or not;
if the terminal plane is in the non-dormant state, monitoring whether the change value of the included angle between the terminal plane and the horizontal plane within first preset time is smaller than a first preset threshold value;
if the acceleration is smaller than the first preset threshold, monitoring whether the acceleration of the terminal is continuously changed within second preset time and whether the acceleration is larger than the second preset threshold;
if the acceleration is continuously changed and the acceleration is larger than a second preset threshold, judging whether the change value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold;
and if the terminal is smaller than a third preset threshold, determining that the terminal is in a vehicle navigation state.
The processor 701 is further configured to:
monitoring whether navigation software on the terminal is opened;
if the navigation software on the terminal is opened, determining that the terminal is in a vehicle-mounted navigation state;
or, monitoring whether the terminal receives the satellite position data;
and if the terminal receives the satellite position data, determining that the terminal is in a vehicle navigation state.
The processor 701 is further configured to:
counting vehicle-mounted navigation time, and judging whether the vehicle-mounted navigation time exceeds a preset time threshold value;
and if the preset time threshold is exceeded, reminding the user of being in a fatigue driving state.
The processor 701 is further configured to:
and controlling music playing software installed in the terminal to play music of a preset type.
The processor 701 is further configured to:
monitoring whether the temperature of the current environment of the terminal is higher than a preset temperature threshold value;
and if the temperature is higher than the preset temperature threshold value, sending an instruction to the vehicle-mounted machine control system to request to lower the temperature of the air conditioner in the vehicle and increase the ventilation.
It should be understood that, in the embodiment of the present invention, the Processor 701 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 702 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 703 may include a display (LCD, etc.), a speaker, etc.
The memory 704 may include both read-only memory and random-access memory, and provides instructions and data to the processor 701. A portion of the memory 704 may also include non-volatile random access memory. For example, the memory 704 may also store device type information.
In a specific implementation, the processor 701, the input device 702, and the output device 703 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the method provided in this embodiment of the present invention, and may also execute the implementation manners of the terminal described in this embodiment of the present invention, which is not described herein again.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the terminal of the embodiment of the invention can be merged, divided and deleted according to actual needs.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (6)
1. A monitoring method for a vehicle navigation state is characterized by comprising the following steps:
judging whether the terminal is in a non-sleep state or not; if detecting that the CPU of the terminal is running, the terminal is in a non-sleep state; if detecting that a program is transmitting and receiving network data, the terminal is in a non-sleep state; if the attribute of the system records corresponding content in the non-dormant state, the terminal is in the non-dormant state;
if the terminal plane is in the non-dormant state, monitoring whether the change value of the included angle between the terminal plane and the horizontal plane within first preset time is smaller than a first preset threshold value;
if the acceleration is smaller than the first preset threshold, monitoring whether the acceleration of the terminal is continuously changed within second preset time and whether the acceleration is larger than the second preset threshold;
if the acceleration is continuously changed and the acceleration is larger than a second preset threshold, judging whether the change value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold;
if the terminal is smaller than a third preset threshold, determining that the terminal is in a vehicle navigation state;
counting vehicle-mounted navigation time, judging whether the vehicle-mounted navigation time exceeds a preset time threshold, and if the vehicle-mounted navigation time exceeds the preset time threshold, reminding a user of being in a fatigue driving state, wherein the preset time threshold is a fatigue driving time threshold;
the method for controlling the music playing software installed in the terminal to play music of a preset type specifically comprises the following steps: judging the music playing state of music playing software installed in the terminal; if the music playing software is playing music currently, controlling the music playing software to extract music of a preset type from a music library and add the music to a play list, and playing the music added in the play list; if the music playing software is in a closed state currently, acquiring a noise value of the current environment of the terminal, and judging whether the noise value is smaller than a preset noise threshold value or not; if the noise is smaller than the preset noise threshold value, the control terminal automatically starts music playing software, controls the music playing software to extract preset types of music from a music library and add the music into a play list, and plays the music added in the play list.
2. The method for monitoring the vehicle navigation state according to claim 1, further comprising, after the step of determining that the vehicle navigation state is smaller than a third preset threshold:
monitoring whether navigation software on the terminal is opened;
if the navigation software on the terminal is opened, determining that the terminal is in a vehicle-mounted navigation state;
or, monitoring whether the terminal receives the satellite position data;
and if the terminal receives the satellite position data, determining that the terminal is in a vehicle navigation state.
3. The method for monitoring the vehicle navigation state according to claim 1, wherein after the music playing software installed in the control terminal plays the preset type of music, the method further comprises:
monitoring whether the temperature of the current environment of the terminal is higher than a preset temperature threshold value;
and if the temperature is higher than the preset temperature threshold value, sending an instruction to the vehicle-mounted machine control system to request to lower the temperature of the air conditioner in the vehicle and increase the ventilation.
4. A terminal, comprising:
the dormancy monitoring unit is used for judging whether the terminal is in a non-dormancy state; if detecting that the CPU of the terminal is running, the terminal is in a non-sleep state; if detecting that a program is transmitting and receiving network data, the terminal is in a non-sleep state; if the attribute of the system records corresponding content in the non-dormant state, the terminal is in the non-dormant state;
the plane included angle monitoring unit is used for monitoring whether a change value of an included angle between the terminal plane and the horizontal plane within first preset time is smaller than a first preset threshold value or not if the terminal plane is in a non-dormant state;
the acceleration monitoring unit is used for monitoring whether the acceleration of the terminal is continuously changed within second preset time and whether the acceleration is larger than a second preset threshold value or not if the acceleration is smaller than the first preset threshold value;
the acceleration direction calculating unit is used for judging whether the change value of the acceleration direction of the terminal in the second preset time is smaller than a third preset threshold value or not if the acceleration is continuously changed and the acceleration is larger than the second preset threshold value;
the navigation state determining unit is used for determining that the terminal is in a vehicle navigation state if the navigation state is smaller than a third preset threshold;
the navigation time counting unit is used for counting the vehicle-mounted navigation time and judging whether the vehicle-mounted navigation time exceeds a preset time threshold value;
the fatigue driving prompting unit is used for prompting the user to be in a fatigue driving state if the preset time threshold value is exceeded;
the music playing control unit is used for controlling music playing software installed in the terminal to play music of a preset type, and specifically comprises: judging the music playing state of music playing software installed in the terminal; if the music playing software is playing music currently, controlling the music playing software to extract music of a preset type from a music library and add the music to a play list, and playing the music added in the play list; if the music playing software is in a closed state currently, acquiring a noise value of the current environment of the terminal, and judging whether the noise value is smaller than a preset noise threshold value or not; if the noise is smaller than the preset noise threshold value, the control terminal automatically starts music playing software, controls the music playing software to extract preset types of music from a music library and add the music into a play list, and plays the music added in the play list.
5. The terminal of claim 4, further comprising:
the navigation software monitoring unit is used for monitoring whether the navigation software on the terminal is opened;
the navigation state determining unit is further used for determining that the terminal is in a vehicle-mounted navigation state if navigation software on the terminal is opened; or,
the satellite data monitoring unit is used for monitoring whether the terminal receives satellite position data;
the navigation state determining unit is further configured to determine that the terminal is in a vehicle navigation state if the terminal receives the satellite position data.
6. The terminal of claim 4, further comprising:
the temperature monitoring unit is used for monitoring whether the temperature of the current environment of the terminal is higher than a preset temperature threshold value;
and the temperature control unit is used for sending an instruction to the vehicle-mounted machine control system if the temperature is higher than the preset temperature threshold value, requesting to lower the temperature of the air conditioner in the vehicle, and increasing the ventilation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710310151.0A CN107199969B (en) | 2017-05-04 | 2017-05-04 | Vehicle-mounted navigation state monitoring method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710310151.0A CN107199969B (en) | 2017-05-04 | 2017-05-04 | Vehicle-mounted navigation state monitoring method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107199969A CN107199969A (en) | 2017-09-26 |
CN107199969B true CN107199969B (en) | 2020-01-14 |
Family
ID=59905708
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710310151.0A Expired - Fee Related CN107199969B (en) | 2017-05-04 | 2017-05-04 | Vehicle-mounted navigation state monitoring method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107199969B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110726412B (en) * | 2018-07-16 | 2023-09-26 | 上海擎感智能科技有限公司 | Self-protection method of navigation vehicle, navigation method of terminal, vehicle and terminal |
CN111169376B (en) * | 2018-11-13 | 2022-07-29 | 上海擎感智能科技有限公司 | Vehicle, vehicle equipment and scene-based key color control method |
CN114954350A (en) * | 2021-07-21 | 2022-08-30 | 长城汽车股份有限公司 | Vehicle early warning method, vehicle-mounted terminal, system and vehicle |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007107951A (en) * | 2005-10-12 | 2007-04-26 | Matsushita Electric Ind Co Ltd | Installation angle calculation device |
CN101799716A (en) * | 2009-12-30 | 2010-08-11 | 宇龙计算机通信科技(深圳)有限公司 | Method and mobile terminal for switching application foci |
CN104050777A (en) * | 2013-03-15 | 2014-09-17 | 厦门歌乐电子企业有限公司 | Reminding method based on vehicle travel time and device thereof |
CN104967746A (en) * | 2015-07-10 | 2015-10-07 | 上海斐讯数据通信技术有限公司 | Method and system for changing the state of mobile phone by using directional sensing |
CN105957310A (en) * | 2016-05-24 | 2016-09-21 | 北京小米移动软件有限公司 | Rest prompting method, device and equipment in driving process |
CN106289248A (en) * | 2016-07-28 | 2017-01-04 | 南京航空航天大学 | A kind of fixed installation based on mobile phone and on-fixed Installation Modes identification algorithm |
-
2017
- 2017-05-04 CN CN201710310151.0A patent/CN107199969B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007107951A (en) * | 2005-10-12 | 2007-04-26 | Matsushita Electric Ind Co Ltd | Installation angle calculation device |
CN101799716A (en) * | 2009-12-30 | 2010-08-11 | 宇龙计算机通信科技(深圳)有限公司 | Method and mobile terminal for switching application foci |
CN104050777A (en) * | 2013-03-15 | 2014-09-17 | 厦门歌乐电子企业有限公司 | Reminding method based on vehicle travel time and device thereof |
CN104967746A (en) * | 2015-07-10 | 2015-10-07 | 上海斐讯数据通信技术有限公司 | Method and system for changing the state of mobile phone by using directional sensing |
CN105957310A (en) * | 2016-05-24 | 2016-09-21 | 北京小米移动软件有限公司 | Rest prompting method, device and equipment in driving process |
CN106289248A (en) * | 2016-07-28 | 2017-01-04 | 南京航空航天大学 | A kind of fixed installation based on mobile phone and on-fixed Installation Modes identification algorithm |
Also Published As
Publication number | Publication date |
---|---|
CN107199969A (en) | 2017-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11122511B2 (en) | Mobile terminal and method for managing power thereof | |
US7577522B2 (en) | Spatially associated personal reminder system and method | |
CN109871166B (en) | Electronic device and method for controlling multiple windows in electronic device | |
US9348434B2 (en) | Low power management of multiple sensor integrated chip architecture | |
CN108521521B (en) | Volume adjusting method, mobile terminal and computer readable storage medium | |
US20140028477A1 (en) | Vehicle location system | |
US11297477B2 (en) | Tethering distribution apparatus, control method thereof, and central mediator | |
EP3326090B1 (en) | Context-aware system for providing fitness information | |
US20160034043A1 (en) | Buttonless display activation | |
CN107199969B (en) | Vehicle-mounted navigation state monitoring method and terminal | |
WO2019101185A1 (en) | Method and apparatus for playing audio data | |
WO2015168183A1 (en) | Automated detection of vehicle parking and location | |
WO2012025029A1 (en) | Information processing device and control method thereof | |
US9612129B2 (en) | Controlling media output during consecutive navigation interruptions | |
KR20170015143A (en) | A smart device and an operation method thereof | |
CN111742540B (en) | Method, mobile device and computer readable medium for detecting patterns and behaviors to avoid mobile terminal drop events | |
CN104590112A (en) | Method and system for judging vehicle turning safety degree | |
CN107797652B (en) | Method, device and terminal for adjusting display effect | |
CN107479848A (en) | Method for playing music and terminal device | |
EP2923250A2 (en) | Low power management of multiple sensor integrated chip architecture | |
JP5775209B2 (en) | Information processing apparatus, information processing method, recording medium on which information processing program is recorded, and information processing program | |
WO2014081949A2 (en) | Low power management of multiple sensor integrated chip architecture | |
CN111836108B (en) | Media resource playing method, device, terminal and storage medium | |
WO2014081952A2 (en) | Low power management of multiple sensor integrated chip architecture |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200114 Termination date: 20200504 |