CN109104689B - Safety warning method and terminal - Google Patents

Safety warning method and terminal Download PDF

Info

Publication number
CN109104689B
CN109104689B CN201810968375.5A CN201810968375A CN109104689B CN 109104689 B CN109104689 B CN 109104689B CN 201810968375 A CN201810968375 A CN 201810968375A CN 109104689 B CN109104689 B CN 109104689B
Authority
CN
China
Prior art keywords
terminal
safety warning
screen
current position
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810968375.5A
Other languages
Chinese (zh)
Other versions
CN109104689A (en
Inventor
刘佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810968375.5A priority Critical patent/CN109104689B/en
Publication of CN109104689A publication Critical patent/CN109104689A/en
Application granted granted Critical
Publication of CN109104689B publication Critical patent/CN109104689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information

Abstract

The embodiment of the invention provides a safety warning method and a safety warning terminal, relates to the technical field of communication, and aims to solve the problem of low personal safety coefficient caused by the fact that a mobile terminal of people ignores surrounding dangers. The safety warning method comprises the following steps: detecting whether the current position of the terminal is within a preset safety warning range; and controlling the terminal to send out a safety warning signal under the condition that the current position of the terminal is detected to be within a safety warning range. The safety warning method in the embodiment of the invention is applied to the terminal.

Description

Safety warning method and terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a safety warning method and a terminal.
Background
With the rapid development of communication technology, mobile terminals have entered our lives and become a part of work and life.
On one hand, the functions of the mobile terminal are enriched day by day, so that the frequency of use of people is more frequent; on the other hand, just as people use mobile terminals more and more frequently, functions of the mobile terminals can be richer based on the current situation, and the functions of the mobile terminals are further penetrated into every detail of people's clothes and residents.
People can often see that many people carry and use the mobile terminal at any time in different scenes, and even can be invested in neglecting surrounding areas and things in the using process. Therefore, although the mobile terminal brings convenience to people, people can easily ignore surrounding dangers, and certain potential safety hazards are brought.
Disclosure of Invention
The embodiment of the invention provides a safety warning method, which aims to solve the problem of low personal safety coefficient caused by the fact that people neglect surrounding dangers at a terminal.
In order to solve the technical problem, the invention is realized as follows: a security alert method, comprising: detecting whether the current position of the terminal is within a preset safety warning range; and controlling the terminal to send out a safety warning signal under the condition that the current position of the terminal is detected to be within a safety warning range.
In a first aspect, an embodiment of the present invention further provides a terminal, including: the safety detection module is used for detecting whether the current position of the terminal is within a preset safety warning range or not; and the safety warning module is used for controlling the terminal to send out a safety warning signal under the condition that the current position of the terminal is detected to be within a safety warning range.
In a second aspect, an embodiment of the present invention further provides a terminal, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the security alert method.
In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the safety warning method.
In the embodiment of the invention, the terminal can detect whether the current position is within the safety warning range, and sends out the safety warning signal when the terminal is within the safety warning range. Therefore, when the user uses the terminal, if the user is in a dangerous area, such as an area with more vehicles, an area under a night environment and the like, the terminal can detect the current position in time and send out a safety warning signal, and then the user and surrounding people can notice the safety warning signal, so that the user can be reminded to pay attention to the surrounding area and object, the vigilance of the user is improved, and meanwhile, the surrounding people can be reminded to notice the user, and the user is prevented from being injured. Therefore, the safety warning method can reduce the potential safety hazard of the user and improve the personal safety factor of the user.
Drawings
FIG. 1 is a flow chart of a method for security alert according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a safety warning method according to an embodiment of the present invention;
FIG. 3 is a third flowchart of a safety warning method according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart of a safety warning method according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart of a safety warning method according to an embodiment of the present invention;
FIG. 6 is a sixth flowchart of a safety warning method according to an embodiment of the present invention;
fig. 7 is one of block diagrams of a terminal of an embodiment of the present invention;
fig. 8 is a second block diagram of the terminal according to the 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.
Referring to fig. 1, fig. 1 shows a flowchart of a security alert method according to an embodiment of the present invention, which is applied to a terminal, and includes:
step 110: and detecting whether the current position of the terminal is within the safety warning range.
When a user uses the terminal, based on the safety warning method in the embodiment, whether the current position of the terminal is within the safety warning range can be detected.
The safety warning range comprises an environment area with potential safety hazards to users, such as a night environment, a dark environment, a road, an environment with more vehicles and the like.
Step 120: and under the condition that the current position of the terminal is detected to be within the safety warning range, the control terminal sends out a safety warning signal.
And if the current position of the terminal is detected to have potential safety hazard to the user, the terminal sends out a safety warning signal.
The safety warning signal is used for giving a safety warning to the user so as to remind the user of the danger of the current area; on the other hand, the warning device is used for giving a safety warning to surrounding pedestrians, vehicles and the like so as to remind the surrounding pedestrians, vehicles and the like to notice users and avoid causing harm to the users.
In the embodiment of the invention, the terminal can detect whether the current position is within the safety warning range, and sends out the safety warning signal when the terminal is within the safety warning range. Therefore, when the user uses the terminal, if the user is in a dangerous area, such as an area with more vehicles, an area under a night environment and the like, the terminal can detect the current position in time and send out a safety warning signal, and then the user and surrounding people can notice the safety warning signal, so that the user can be reminded to pay attention to the surrounding area and object, the vigilance of the user is improved, and meanwhile, the surrounding people can be reminded to notice the user, and the user is prevented from being injured. Therefore, the safety warning method can reduce the potential safety hazard of the user and improve the personal safety factor of the user.
Based on the embodiment shown in fig. 1, fig. 2 shows a flowchart of a safety warning method according to another embodiment of the present invention, and step 110 includes:
step 1101: and acquiring real-time speed data of a speed detection device of the terminal.
When a user uses the terminal, the user is common, and the action with the highest risk coefficient is that the user walks and looks down at the screen of the terminal. If the action occurs during crossing roads and walking at night, the user can easily neglect surrounding dangers, and surrounding people can easily see the problems such as sight lines, and the like, so that the user can not be found in time, and accidents are caused.
Therefore, in this step, real-time speed data of the speed detection device of the terminal is acquired.
Preferably, the speed detection device includes a gyroscope, so that in this step, the angular speed of the terminal rotation is obtained through the gyroscope, and then the real-time speed data of the terminal is calculated according to the angular speed.
Preferably, the speed detection means may further comprise a speed sensor, whereby real-time speed data is acquired by the speed sensor in this step.
Wherein the real-time speed data includes a moving speed of the terminal.
Step 1102: and under the condition that the real-time speed data is within a preset walking speed range, detecting whether the current position of the terminal is within a preset safety warning range.
The condition that the real-time speed data is within the preset walking speed range can be considered as the condition that the moving speed of the terminal is greater than a first threshold value, the first threshold value is a preset value, the first threshold value can be set as a minimum critical value for the user to walk, and namely the user is considered to be walking when the moving speed is greater than the first threshold value.
Under the condition that the real-time speed data is within the preset walking speed range, a Global Positioning System (GPS) can be adopted to acquire the position information of the terminal, so that whether the current position of the terminal is within the preset safety warning range or not is detected according to the position information.
For example, according to the position information, whether the current position of the terminal is within the safety warning range such as a road and a busy area is detected.
The embodiment provides a safety warning method applied to user walking, so that the user is prevented from being too concentrated in the terminal and neglecting surrounding dangers in the walking process, the safety warning signal can move along with the terminal, the safety warning signal not only can play a role in reminding the user, but also can remind other people to see the user who walks, and danger is avoided.
For example, when the user is dangerous when crossing the road, the safety warning signal can remind the user not to pay much attention to the head-down using terminal, and simultaneously remind the driver of the vehicle on the road in a more obvious way, wherein pedestrians (users) are arranged, so that collision is avoided.
On the basis of the embodiment shown in fig. 2, fig. 3 shows a flowchart of a safety warning method according to another embodiment of the present invention, and step 1101 includes:
step 11011: and acquiring real-time light intensity data of an ambient light detection device of the terminal.
On the basis of the embodiment shown in fig. 2, one action that is more dangerous is: the user walks at night or in the dark. When the vehicle runs at night, the driver can observe whether pedestrians appear suddenly on the road completely, but some dead corners or places with poor lighting conditions are inevitable, and the driver cannot find the pedestrians in time. Therefore, the user is walking at night or in the dark, and surrounding vehicles, pedestrians, and the like are difficult to find the user, thereby causing a phenomenon such as collision. If the user lowers his head and concentrates on the terminal, the user may not avoid the vehicle, pedestrian, etc. in time, and the probability of collision, etc. will be higher.
Therefore, in this step, real-time light intensity data of the ambient light detection means in the terminal can be acquired.
Preferably, the ambient light detection device includes a light sensor, and the real-time light intensity data includes a light value collected by the light sensor. The light sensor is used for sensing external illumination and converting the sensed illumination into a light sensing value, and therefore, the light sensing value includes an illumination intensity value. Therefore, the terminal can monitor the light sensation value in real time, when the light sensation value changes, the external illumination is possibly weakened from strong to weak or from weak to strong, so that the current illumination intensity value is obtained, and if the illumination intensity value is low, the user is considered to be in a dark environment or a night environment.
Step 11012: and acquiring real-time speed data of a speed detection device of the terminal under the condition that the real-time light intensity data is lower than a preset threshold value.
The preset threshold is preset light intensity data, and when the real-time light intensity data is smaller than the preset threshold, the terminal is considered to be in darkness or at night currently, so that the real-time speed data of the speed detection device of the terminal is further acquired.
The embodiment provides the safety warning method applied to the walking of the user in the dark environment, so that the application scene of the safety warning method is expanded, and the safety coefficient of the user is further improved.
Preferably, after the user is judged to be dark or at night, the monitoring mode is started, and whether the current position is within the safety warning range or not is detected in real time; or after the user is judged to be in darkness or at night and the user is judged to be walking, starting a monitoring mode and detecting whether the current position is within a safety warning range; or after the user is judged to walk, starting the monitoring mode and detecting whether the current position is within the safety warning range.
Based on the embodiment shown in fig. 1, fig. 4 shows a flowchart of a safety warning method according to another embodiment of the present invention, and step 120 includes at least one of the following steps:
step 1201: and under the condition that the current position of the terminal is detected to be within the safety warning range, controlling a target screen of the terminal to display a safety warning signal.
Preferably, the safety warning signal can keep higher display brightness for a screen of the terminal; the safety warning signal can also keep flashing display on a screen of the terminal.
Preferably, the safety warning signal may also be text information, image information, and the like displayed on a screen of the terminal to remind the user and the surrounding people of the danger of the current position.
Step 1202: and under the condition that the current position of the terminal is detected to be within the safety warning range, controlling a flash lamp of the terminal to flash according to a preset safety warning mode.
Preferably, the safety warning signal can keep higher display brightness for the flash lamp; the safety warning signal can also keep flashing display for the flash lamp.
Illustratively, if the current position of the terminal is detected to be within the safety warning range, the relative orientation relation between the screen of the terminal and the body of the user can be detected. If the screen of the terminal faces the body of the user, a flash lamp on the back of the terminal sends out a safety warning signal; and if the screen of the terminal faces away from the body of the user, the screen of the terminal is used as a target screen to display the safety warning signal. Therefore, the warning function can be achieved, meanwhile, the terminal displays the safety warning signal on one side back to the user, and the influence of the safety warning signal on the user, such as visual discomfort, can be avoided. For example, the display brightness of the screen or the flash lamp is too high, which may cause damage to human eyes.
Exemplarily, if the current position of the terminal is detected to be within the safety warning range, the screen of the control terminal displays a safety warning signal, and the flash lamp is controlled to send out the safety warning signal, so that the user can be noticed by pedestrians and vehicles in more directions, and the safety factor of the user is further improved.
And under the condition that the terminal comprises the first screen and the second screen, the target screen comprises the first screen and the second screen, or the target screen is a screen facing to the user.
Exemplarily, the terminal comprises a first screen and a second screen, if the current position of the terminal is detected to be within the safety warning range, one screen of the control terminal displays the safety warning signal, or two screens are controlled to display the safety warning signal at the same time in consideration of the condition that vehicles can come and go in different directions.
In the scheme that the target screen is a screen facing the user, the screen facing the user displays the safety warning signal, so that the safety warning signal is more easily noticed by the user, and the safety factor of the user is improved.
The display brightness of the screen or the flash lamp can be preset in advance; the screen or the flash lamp can send out a safety warning signal according to a preset safety warning mode. Such as the flashing of a screen or a flash, may follow certain flashing rules to facilitate identification, such as the rule of a Morse code. The display brightness and flashing rules may be initially default or may be set by user selection.
It should be added that if it is detected that the current position of the terminal is within the safety warning range, the specific implementation step of detecting the relative orientation relationship between the screen of the terminal and the body of the user may include:
and judging the direction of the user holding the terminal according to the fingerprint or the touch range on the screen, thereby further judging whether the screen faces to the body or faces away from the body. If the fingerprint on the screen is identified to be the finger fingerprint, the palm print is considered to be on the back of the screen, and the screen can be judged to face the body based on the human body characteristics; if the fingerprint on the screen is identified to be a palm print, the finger is considered to be on the back of the screen, and the fact that the screen faces away from the body can be judged based on the human body characteristics.
Or if the touch range on the screen is identified to be small, the fingerprint on the screen is a finger fingerprint, and the palm print is on the back of the screen, the screen can be judged to face the body based on the human body characteristics; if the touch range on the screen is identified to be large, the fingerprint on the screen is a palm print, and if the finger is on the back of the screen, the fact that the screen is back to the body can be judged based on the human body characteristics.
Further, if the terminal is monitored to leave the safety warning range, the terminal stops sending the safety warning signal, and whether the current position of the terminal is located in the safety warning range or not is continuously monitored.
Further, if the light sensation value and/or the moving speed of the terminal are detected not to meet the preset range, whether the current position of the terminal is located in the safety warning range or not is stopped to be monitored.
Based on the embodiment shown in fig. 1, fig. 5 shows a flowchart of a safety warning method according to another embodiment of the present invention, and step 110 includes:
step 1103: and acquiring longitude and latitude information of the current position of the terminal.
Step 1104: and under the condition that the longitude and latitude information of the current position is within a preset longitude and latitude range, determining that the current position of the terminal is within a preset safety warning range.
The preset latitude and longitude range comprises latitude and longitude information of the position in the safety warning range. If the preset longitude and latitude range comprises the longitude and latitude information of the road, the current position of the terminal can be determined to be in the preset safety warning range under the condition that the longitude and latitude information of the current position is in the preset longitude and latitude range.
The preset latitude and longitude range can be stored in a database in advance. The database can be established manually or by script collection, and an interface can be opened for reporting by a user.
The embodiment provides a scheme for determining whether the current position of the terminal is located in the safety warning range based on latitude and longitude information, so that the current position of the terminal can be identified quickly, and meanwhile, the identification accuracy is ensured.
Based on the embodiment shown in fig. 1, fig. 6 shows a flowchart of a safety warning method according to another embodiment of the present invention, and step 110 includes:
step 1105: and acquiring the current position of the terminal.
Step 1106: and under the condition that at least one vehicle exists in a preset range from the current position, determining that the current position of the terminal is located in a preset safety warning range.
In this embodiment, the terminal can use the internet of things to be networked with the vehicles, so that the number of the vehicles near the terminal and the distance between the vehicles and the terminal are identified and reported in the internet of things according to the current position of the terminal, and when the terminal identifies that the networked vehicles exist in a certain range near the terminal, the current position of the terminal is considered to be located in the safety warning range.
The method comprises the steps that a preset range can be set, if the preset range is a range with the distance from a terminal being smaller than a second threshold, when the distance from a vehicle to the terminal is smaller than the second threshold, the vehicle is considered to cause potential safety hazards to a user, namely the terminal recognizes that a networking vehicle exists in a certain range nearby, and the current position of the terminal is determined to be located in the preset safety warning range.
The embodiment provides a scheme for determining whether the current position of a terminal is located in a safety warning range or not based on vehicles around the terminal, so that the danger of the current position is judged according to the vehicles around, and a safety warning signal is timely sent out when the vehicles cause potential safety hazards to users, so that the safety factor of the users is improved.
Preferably, in consideration of power consumption, the remaining power of the terminal may be adjusted appropriately, such as setting the time interval for performing the detection in step 110.
In conclusion, when the user is in a dark dangerous environment, the terminal can automatically turn on the screen, so that the current environment of the user can be reminded, the user can pay more attention in the walking process, and the user can also inform the coming vehicle that pedestrians walk in the vehicle through the light, so that the vehicle slows down. The screen is turned on and turned off intelligently, complex operation of a user is not needed, and the method is simple and easy to implement. And the appointed screen is lightened according to the direction of the terminal, and the pertinence is realized. Therefore, the mobile equipment can be used for entertainment, study and work of the user, can also protect the user to a certain extent, and improves the safety factor of the user.
Referring to fig. 7, there is shown a block diagram of a terminal according to another embodiment of the present invention, including:
the safety detection module 10 is used for detecting whether the current position of the terminal is within a preset safety warning range;
and the safety warning module 20 is configured to control the terminal to send a safety warning signal when detecting that the current position of the terminal is within the safety warning range.
In the embodiment of the present invention, the security detection module 10 in the terminal can detect whether the current location is within the security alert range, and when the terminal is within the security alert range, the security alert module 20 sends out a security alert signal. Therefore, when the user uses the terminal, if the user is in a dangerous area, such as an area with more vehicles, an area under a night environment and the like, the terminal can detect the current position in time and send out a safety warning signal, and then the user and surrounding people can notice the safety warning signal, so that the user can be reminded to pay attention to the surrounding area and object, the vigilance of the user is improved, and meanwhile, the surrounding people can be reminded to notice the user, and the user is prevented from being injured. Therefore, the safety warning method can reduce the potential safety hazard of the user and improve the personal safety factor of the user.
In a terminal according to another embodiment of the present invention, the security detection module 10 includes: the speed acquisition unit and the detection execution unit are connected;
the speed acquisition unit is used for acquiring real-time speed data of a speed detection device of the terminal;
and the detection execution unit is used for detecting whether the current position of the terminal is within a preset safety warning range or not under the condition that the real-time speed data is within the preset walking speed range.
Preferably, the speed acquisition unit includes: the light intensity acquisition subunit and the acquisition execution subunit are connected;
the light intensity acquisition subunit is used for acquiring real-time light intensity data of an ambient light detection device of the terminal;
and the acquisition execution subunit is used for acquiring the real-time speed data of the speed detection device of the terminal under the condition that the real-time light intensity data is lower than the preset threshold value.
Preferably, the safety alert module 20 includes at least one of:
the target screen warning unit is used for controlling a target screen of the terminal to display a safety warning signal;
under the condition that the terminal comprises a first screen and a second screen, the target screen comprises the first screen and the second screen, or the target screen is a screen facing a user;
and the flash lamp warning unit is used for controlling the flash lamp of the terminal to flash according to a preset safety warning mode.
Preferably, the security detection module comprises: the longitude and latitude acquisition unit and the first determination unit are connected;
the latitude and longitude acquiring unit is used for acquiring latitude and longitude information of the current position of the terminal;
the first determining unit is used for determining that the current position of the terminal is within a preset safety warning range under the condition that the longitude and latitude information of the current position is within a preset longitude and latitude range.
Preferably, the security detection module 10 comprises: the position acquisition unit and the second determination unit are connected;
the position acquisition unit is used for acquiring the current position of the terminal;
and the second determining unit is used for determining that the current position of the terminal is within the preset safety warning range under the condition that at least one vehicle exists within the preset range from the current position.
The terminal provided by the embodiment of the present invention can implement each process implemented by the terminal in the method embodiments of fig. 1 to fig. 6, and is not described herein again to avoid repetition.
Fig. 8 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 1010, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 8 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 1010 is configured to detect whether the current position of the terminal is within a preset safety warning range; and controlling the terminal to send out a safety warning signal under the condition that the current position of the terminal is detected to be within a safety warning range.
In the embodiment of the invention, the terminal can detect whether the current position is within the safety warning range, and sends out the safety warning signal when the terminal is within the safety warning range. Therefore, when the user uses the terminal, if the user is in a dangerous area, such as an area with more vehicles, an area under a night environment and the like, the terminal can detect the current position in time and send out a safety warning signal, and then the user and surrounding people can notice the safety warning signal, so that the user can be reminded to pay attention to the surrounding area and object, the vigilance of the user is improved, and meanwhile, the surrounding people can be reminded to notice the user, and the user is prevented from being injured. Therefore, the safety warning method can reduce the potential safety hazard of the user and improve the personal safety factor of the user.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 8, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 is an interface through which an external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby integrally monitoring the mobile terminal. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for powering the various components, and preferably, the power supply 111 may be logically coupled to the processor 1010 through a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, the mobile terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 1010, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 1010, where the computer program, when executed by the processor 1010, implements each process of the foregoing safety warning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned safety warning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A safety warning method is applied to a terminal and is characterized by comprising the following steps:
detecting whether the current position of the terminal is within a preset safety warning range; the safety warning range comprises: night environment, dark environment, road and vehicle-rich environment;
under the condition that the current position of the terminal is detected to be within a safety warning range, controlling the terminal to send out a safety warning signal;
detect whether the current position of terminal is located predetermined safety warning within range, include:
acquiring the current position of the terminal;
determining that the current position of the terminal is within a preset safety warning range under the condition that at least one vehicle exists within a preset range from the current position;
the control of the terminal to send out a safety warning signal comprises at least one of the following steps:
controlling a target screen of the terminal to display a safety warning signal; the safety warning signal comprises a brightness warning signal and a flashing warning signal;
under the condition that the terminal comprises a first screen and a second screen, the target screen comprises the first screen and the second screen, or the target screen is a screen facing a user;
controlling a flash lamp of the terminal to flash according to a preset safety warning mode;
the control the terminal sends out safety warning signal, still includes: detecting the relative orientation relation between the screen of the terminal and the body of a user;
if the screen of the terminal faces the body of the user, controlling a back flash lamp of the terminal to send the safety warning signal;
and if the screen of the terminal faces away from the body of the user, controlling the screen of the terminal to be used as the target screen to display the safety warning signal.
2. The method according to claim 1, wherein the detecting whether the current location of the terminal is within a preset safety warning range comprises:
acquiring real-time speed data of a speed detection device of the terminal;
and under the condition that the real-time speed data is within a preset walking speed range, detecting whether the current position of the terminal is within a preset safety warning range.
3. The method of claim 2, wherein the obtaining real-time speed data of the speed detection device of the terminal comprises:
acquiring real-time light intensity data of an ambient light detection device of the terminal;
and acquiring real-time speed data of a speed detection device of the terminal under the condition that the real-time light intensity data is lower than a preset threshold value.
4. The method according to claim 1, wherein the detecting whether the current location of the terminal is within a preset safety warning range comprises:
acquiring longitude and latitude information of the current position of the terminal;
and under the condition that the longitude and latitude information of the current position is within a preset longitude and latitude range, determining that the current position of the terminal is within a preset safety warning range.
5. A terminal, comprising:
the safety detection module is used for detecting whether the current position of the terminal is within a preset safety warning range or not; the safety warning range comprises: night environment, dark environment, road and vehicle-rich environment;
the safety warning module is used for controlling the terminal to send out a safety warning signal under the condition that the current position of the terminal is detected to be within a safety warning range;
the security detection module includes:
a position obtaining unit, configured to obtain a current position of the terminal;
the second determining unit is used for determining that the current position of the terminal is located in a preset safety warning range under the condition that at least one vehicle exists in a preset range from the current position;
the safety warning module comprises at least one of the following:
the target screen warning unit is used for controlling a target screen of the terminal to display a safety warning signal; the safety warning signal comprises a brightness warning signal and a flashing warning signal;
under the condition that the terminal comprises a first screen and a second screen, the target screen comprises the first screen and the second screen, or the target screen is a screen facing a user;
the flash lamp warning unit is used for controlling a flash lamp of the terminal to flash according to a preset safety warning mode;
the safety warning module is also used for detecting the relative orientation relation between the screen of the terminal and the body of the user; if the screen of the terminal faces the body of the user, controlling a back flash lamp of the terminal to send the safety warning signal; and if the screen of the terminal faces away from the body of the user, controlling the screen of the terminal to be used as the target screen to display the safety warning signal.
6. The terminal of claim 5, wherein the security detection module comprises:
the speed acquisition unit is used for acquiring real-time speed data of a speed detection device of the terminal;
and the detection execution unit is used for detecting whether the current position of the terminal is within a preset safety warning range or not under the condition that the real-time speed data is within a preset walking speed range.
7. The terminal according to claim 6, wherein the speed acquisition unit comprises:
the light intensity acquisition subunit is used for acquiring real-time light intensity data of an ambient light detection device of the terminal;
and the acquisition execution subunit is used for acquiring the real-time speed data of the speed detection device of the terminal under the condition that the real-time light intensity data is lower than a preset threshold value.
8. The terminal of claim 5, wherein the security detection module comprises:
a latitude and longitude acquiring unit for acquiring latitude and longitude information of the current position of the terminal;
and the first determining unit is used for determining that the current position of the terminal is within a preset safety warning range under the condition that the longitude and latitude information of the current position is within a preset longitude and latitude range.
9. A terminal, characterized in that it comprises a processor, a memory, a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the safety warning method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the safety warning method according to one of claims 1 to 4.
CN201810968375.5A 2018-08-23 2018-08-23 Safety warning method and terminal Active CN109104689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810968375.5A CN109104689B (en) 2018-08-23 2018-08-23 Safety warning method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810968375.5A CN109104689B (en) 2018-08-23 2018-08-23 Safety warning method and terminal

Publications (2)

Publication Number Publication Date
CN109104689A CN109104689A (en) 2018-12-28
CN109104689B true CN109104689B (en) 2021-02-23

Family

ID=64851054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810968375.5A Active CN109104689B (en) 2018-08-23 2018-08-23 Safety warning method and terminal

Country Status (1)

Country Link
CN (1) CN109104689B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111476922A (en) * 2020-04-15 2020-07-31 北京国网富达科技发展有限责任公司 Method and device for judging arrival of power transmission line inspection personnel
CN112089591A (en) * 2020-05-22 2020-12-18 未来穿戴技术有限公司 Neck massager and pedestrian anti-collision early warning method
CN111968352B (en) * 2020-09-09 2022-11-08 上海闻泰电子科技有限公司 Traffic safety prompting method and device, mobile terminal and readable storage medium
CN114485501A (en) * 2021-12-30 2022-05-13 歌尔光学科技有限公司 Safety prompting method and device, intelligent foot pad, system and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140699A (en) * 2007-09-27 2008-03-12 深圳华强信息产业有限公司 Circuit inspect method based on vehicle mounted GPS terminal
CN103247144A (en) * 2012-02-07 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Traffic safety prompting method and mobile terminal
CN106527897A (en) * 2016-11-21 2017-03-22 京东方科技集团股份有限公司 Intelligent terminal and control method therefor
CN107566659A (en) * 2017-10-20 2018-01-09 维沃移动通信有限公司 User security based reminding method and mobile terminal
CN107645703A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Walking security monitoring method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110234399A1 (en) * 2010-03-25 2011-09-29 Nokia Corporation Method and apparatus for providing a remote lost-and-found service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140699A (en) * 2007-09-27 2008-03-12 深圳华强信息产业有限公司 Circuit inspect method based on vehicle mounted GPS terminal
CN103247144A (en) * 2012-02-07 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Traffic safety prompting method and mobile terminal
CN107645703A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Walking security monitoring method and apparatus
CN106527897A (en) * 2016-11-21 2017-03-22 京东方科技集团股份有限公司 Intelligent terminal and control method therefor
CN107566659A (en) * 2017-10-20 2018-01-09 维沃移动通信有限公司 User security based reminding method and mobile terminal

Also Published As

Publication number Publication date
CN109104689A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN109104689B (en) Safety warning method and terminal
CN108427876B (en) Fingerprint identification method and mobile terminal
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN108961681B (en) Fatigue driving reminding method and device and storage medium
CN108174044B (en) Alarm clock setting method and mobile terminal
CN107846518B (en) Navigation state switching method, mobile terminal and computer readable storage medium
CN109495641B (en) Reminding method and mobile terminal
CN109040968B (en) Road condition reminding method, mobile terminal and computer readable storage medium
CN110496018A (en) Method, wearable device and the storage medium of wearable device guide blind person
CN109753350B (en) Resource management method and terminal equipment
CN110097736B (en) Alarm method and alarm device
CN111179880A (en) Brightness adjusting method and device of display screen, electronic equipment and system
CN111899545A (en) Driving reminding method and device, storage medium and mobile terminal
CN109327606B (en) Message reminding method and terminal
CN108551525B (en) State determination method of movement track and mobile terminal
CN108712555B (en) Method and device for sending alarm information
CN110865858A (en) Screen awakening method and electronic equipment
CN111477334A (en) Target area reminding method and electronic equipment
CN111357006A (en) Fatigue prompting method and terminal
CN109005297B (en) Display method of navigation application and mobile terminal
CN111103607B (en) Positioning prompting method and electronic equipment
CN110740214B (en) Prompting method, terminal and computer readable storage medium
CN110826115B (en) Management method, wearable device and electronic device
CN109246305B (en) Navigation processing method of navigation equipment, navigation equipment and mobile terminal
CN108063869B (en) Safety early warning method and mobile terminal

Legal Events

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