CN108712555A - A kind of method and device sending warning message - Google Patents
A kind of method and device sending warning message Download PDFInfo
- Publication number
- CN108712555A CN108712555A CN201810211303.6A CN201810211303A CN108712555A CN 108712555 A CN108712555 A CN 108712555A CN 201810211303 A CN201810211303 A CN 201810211303A CN 108712555 A CN108712555 A CN 108712555A
- Authority
- CN
- China
- Prior art keywords
- terminal
- moment
- warning message
- state
- current time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72418—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
- H04M1/72421—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with automatic activation of emergency service functions, e.g. upon sensing an alarm
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
- Alarm Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the present invention provides a kind of method and device sending warning message, is applied to field of communication technology, can improve the probability for being successfully transmitted warning message.The program includes:First position information is obtained, first position information is used to indicate first position of the first terminal residing for current time;In the case where the state of first terminal meets preset alarm condition, warning message is sent to second terminal, the state of first terminal is at least used to indicate first position;The preset alarm condition includes:First position and at least one second position are in the first predeterminable area, and the distance between first position and any one second position at least one second position are respectively less than or are equal to pre-determined distance threshold value, the second position was the first moment to the location of first terminal between current time, and duration between the first moment and current time is more than preset duration.The program is applied particularly in the scene that the personal safety of the corresponding user of first terminal may be on the hazard.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of method and devices sending warning message.
Background technology
With the development of the communication technology, the intelligence degree of the terminals such as mobile phone, tablet computer is continuously improved, to meet user
Various demands.For example, the demand that user sends terminal warning message is higher and higher.
Specifically, when user's personal safety is on the hazard, demand terminal can send warning message to emergency contact.
Wherein, user can carry out terminal the input of triggering alarm, such as be inputted to the option for being used to trigger alarm in terminal, or
Person the terminal such as inputs with certain gestures, and terminal can so be made to send warning message to emergency contact.
It, can be to urgent the problem is that terminal needs to receive the input that user triggers alarm in the prior art
Contact person sends warning message, and user may be not easy to input terminal when the personal safety of user is on the hazard.
To cause in the scene that demand terminal sends warning message, terminal occur possibly can not be successfully transmitted asking for warning message
Topic.
Invention content
The embodiment of the present invention provides a kind of method and device sending warning message, and warning message is successfully transmitted to improve
Probability.
In order to solve the above-mentioned technical problem, the embodiment of the present invention is realized in:
In a first aspect, providing a kind of method sending warning message, this method includes:Acquisition first position information, first
Location information is used to indicate first position of the first terminal residing for current time;Meet preset alarm in the state of first terminal
In the case of condition, warning message is sent to second terminal, the state of first terminal is at least used to indicate first position;Wherein,
Preset alarm condition includes:First position and at least one second position are in the first predeterminable area, and first position with
The distance between any one second position is respectively less than or is equal to pre-determined distance threshold value, the second position at least one second position
For the first moment to the location of first terminal between current time, the duration between the first moment and current time is more than pre-
If duration.
Second aspect, the embodiment of the present invention additionally provide a kind of device sending warning message, which includes:Obtain mould
Block and sending module;Acquisition module, for obtaining first position information, first position information is used to indicate first terminal current
First position residing for moment;Sending module, in the case where the state of first terminal meets preset alarm condition, to
Two terminals send warning message, and the state of first terminal is at least used to indicate the first position information instruction of acquisition module acquisition
First position;Wherein, preset alarm condition includes:First position and at least one second position are in the first predeterminable area
It is interior, and in first position and at least one second position the distance between any one second position be respectively less than or equal to it is default away from
From threshold value, the second position is the first moment to the location of first terminal between current time, the first moment and current time
Between duration be more than preset duration.
The third aspect, an embodiment of the present invention provides it is a kind of send warning message device, including processor, memory and
It is stored in the computer program that can be run on the memory and on the processor, when which is executed by the processor
The step of realizing the method for transmission warning message as described in relation to the first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage mediums
Computer program is stored in matter, and transmission warning message as described in relation to the first aspect is realized when which is executed by processor
Method the step of.
In embodiments of the present invention, the terminal of demand alarm need not receive the defeated of the triggering transmission warning message of user
Enter, and in the case where the state of the terminal meets preset alarm condition, the device for sending warning message can be independently to tight
Anxious contact person sends the corresponding warning message of the terminal.In this way, the corresponding report of terminal for being successfully transmitted demand alarm can be improved
The probability of alert information.
Description of the drawings
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of method sending warning message provided in an embodiment of the present invention;
Fig. 3 is a kind of position view of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of device sending warning message provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware architecture diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of hardware architecture diagram of server provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
It should be noted that "/" herein indicate or the meaning, for example, A/B can indicate A or B;Herein
"and/or" is only a kind of incidence relation of description affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can
To indicate:Individualism A exists simultaneously A and B, these three situations of individualism B." multiple " refer to two or more.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating
Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer
It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used
Such as " word is intended to that related notion is presented in specific ways.
Term " first " and " second " in description and claims of this specification etc. are for distinguishing different pairs
As, rather than for the particular order of description object.For example, first position and second position etc. are for distinguishing different positions
It sets, rather than the particular order for describing position.
The method and device provided in an embodiment of the present invention for sending warning message, being determined in the device for sending warning message should
In the case that the state of terminal meets preset alarm condition, independently the corresponding alarm of the terminal can be sent to emergency contact
Information.In this way, the probability for being successfully transmitted the corresponding warning message of terminal for needing to alarm can be improved.
Terminal in the embodiment of the present invention can be the terminal with operating system.The operating system can be Android
(Android) operating system can be ios operating systems, can also be other possible operating systems, the embodiment of the present invention is not
Make specific limit.
Below by taking Android operation system as an example, the method institute provided in an embodiment of the present invention for sending warning message is introduced
The software environment of application.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming
In 1, the framework of Android operation system includes 4 layers, respectively:Application layer, application framework layer, system operation library layer and
Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system
Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation of the frame in accordance with application program
In the case of principle, some application programs are developed based on application framework layer.For example, system setting application, system chat are answered
With with system camera application etc. application programs.Third party is arranged application, third party's camera applications and third party's chat application etc. and answers
Use program.
System operation library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour
All kinds of resources needed for it are provided as system.Android operation system running environment is used to provide software loop for Android operation system
Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior
Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1
The software program of the method provided in an embodiment of the present invention for sending warning message is realized in the system architecture of operating system, exploitation, from
And the method for the transmission warning message is run based on Android operation system as shown in Figure 1.That is processor or end
End equipment can realize transmission alarm signal provided in an embodiment of the present invention by running the software program in Android operation system
The method of breath.
Transmission provided in an embodiment of the present invention is reported with reference to the flow chart of the method shown in Fig. 2 for sending warning message
The method of alert information is described in detail.Wherein, although showing transmission provided in an embodiment of the present invention in method flow diagram
The logical order of the method for warning message, but in some cases, can with different from sequence herein execute it is shown or
The step of description.For example, the method shown in Figure 2 for sending warning message may include S201 and S202:
S201, the device for sending warning message obtain first position information, and first position information is used to indicate first terminal
First position residing for current time.
Optionally, in the case where it is first terminal to send the device of warning message, first terminal can detect this in real time
The position of first terminal obtains the location information for indicating the position.Above-mentioned first position information is obtained by first terminal, and first eventually
The location information obtained in real time can be reported to the device of the network sides such as server by end.
Optionally, in the case where it is the device of the network sides such as server to send the device of warning message, the nets such as server
The device of network side can position and obtain the position of first terminal in real time, obtain the location information for indicating the position.Above-mentioned first
Location information can be obtained by server, and server can be interacted from first terminal in real time, to obtain the position of first terminal
Information.
Specifically, the location information of first terminal may include the plane coordinates information and height above sea level letter of first terminal
Breath etc..
In addition, the device for sending warning message can such as should with detecting the location of first terminal at regular intervals
A period of time can be 5 minutes.
S202, in the case where the state of first terminal meets preset alarm condition, send the device of warning message to
Two terminals send warning message.
Wherein, the state of first terminal is at least used to indicate first position, which determines for second terminal
One position.
Specifically, above-mentioned preset alarm condition may include:First position and at least one second position are in first
In predeterminable area, and first position is respectively less than or waits with the distance between any one second position at least one second position
In pre-determined distance threshold value.
Wherein, the second position was the first moment to the location of first terminal between current time, the first moment with work as
Duration between the preceding moment is more than preset duration.
It should be noted that above-mentioned first position and at least one second position are in the first predeterminable area, and the
The distance between one position and any one second position at least one second position are respectively less than pre-determined distance threshold value (such as 1
Rice), then illustrate in above-mentioned preset duration (such as 24 hours) and the position of current time first terminal is constant, first terminal corresponds to
User be in the region that personal safety may be on the hazard, i.e., first terminal is for a long time in the area that can trigger warning message
Domain.
Illustratively, user's control first terminal is in the first predeterminable area, and first terminal will not usually be held for a long time
It is continuous to be in the same position.For example, in the case that user sleeps, the position of terminal can be in the same position in 8-10 hours
It sets, in the case of user job, the position of terminal can be in the same position in 1-2 hours.In this way, long in first terminal
When time (such as 24 hours) is in the region that can trigger warning message, first terminal can be determined by sending the device of warning message
State meet alert if.
It is understood that being in personal safety may be on the hazard using the user (such as owner user) of first terminal
Situation, which can be user's the case where injury waits for rescue in the wild or user, to be controlled by offender some place the case where
Deng.
Wherein, first terminal (i.e. the terminal of demand alarm) provided in an embodiment of the present invention can be denoted as terminal 1, and first eventually
Hold corresponding owner user that can be denoted as user 1.
Wherein, above-mentioned second terminal can be the terminal for having incidence relation with first terminal.
Optionally, second terminal can be identification information (the being denoted as identification information 1) instruction pre-saved in first terminal
Terminal.Alternatively, second terminal can be with the higher terminal of first terminal frequency of interaction, the identification information of the terminal can also
It is denoted as identification information 1.Wherein, the identification information of second terminal can be set to the emergency contact of first terminal.
Illustratively, in the case where terminal provided in an embodiment of the present invention is mobile phone, the identification information of a terminal can
Think the phone number and/or handset serial of the terminal.Wherein, a phone number can identify a client identification module
Block (Subscriber Identity Module, SIM), above-mentioned handset serial is also referred to as International Mobile Equipment Identity code
(International Mobile Equipment Identity, IMEI).
It is emphasized that before sending the above-mentioned warning message of device transmission of warning message, it may be determined that first terminal
State meet preset alarm condition.
The terminal of the method provided in an embodiment of the present invention for sending warning message, demand alarm need not receive touching for user
Hair sends the input of warning message, and in the case where the state of the terminal meets preset alarm condition, send warning message
Device independently can send the corresponding warning message of the terminal to emergency contact.In this way, the demand of being successfully transmitted can be improved
The probability of the corresponding warning message of terminal of alarm.
In one possible implementation, the identification information of first terminal, second terminal are carried in above-mentioned warning message
And/or server can determine the first position residing for first terminal current time according to the identification information of first terminal.Alternatively,
The identification information of first position information and first terminal can be carried in above-mentioned warning message, second terminal and/or server can
To obtain the first position residing for the first terminal current time of first position information instruction.
It is understood that can also include other information, such as " emergency " text message in above-mentioned warning message.When
So, above-mentioned other information can be that first terminal or server are pre-set.
Optionally, above-mentioned warning message can be text message or voice messaging, such as the warning message is first terminal
Corresponding short message or the warning message are the corresponding call of first terminal.
It should be noted that the method provided in an embodiment of the present invention for sending warning message, sends the device of warning message
The corresponding warning message of terminal of the demand alarm of transmission can indicate the state of the terminal in many ways, after being conducive to raising
The success rate and accuracy rate of the continuous position that the terminal is determined according to the warning message.
In one possible implementation, the first predeterminable area in preset alarm condition provided in an embodiment of the present invention
Can be diversified forms.For example, the first predeterminable area can be it is pre-set will not trigger send warning message region it
Outer region.
Illustratively, the above-mentioned region that will not trigger transmission warning message can be that the corresponding owner user of first terminal is normal
The region gone, alternatively, preset target area in first terminal.
It is understood that region and target area set by user that user often goes be the user personal safety not
The region that can be on the hazard.For example, where the region that user often goes may include the places such as family and the office of user
Position.At this point, the region except will not triggering the region for sending warning message, i.e., above-mentioned first predeterminable area is the person of user
The region that safety may be on the hazard, you can to trigger the region of warning message.
Illustratively, as shown in figure 3, being a kind of position view of terminal provided in an embodiment of the present invention.Fig. 3 is shown
Position 1 where 1 current time of terminal, corresponding will not trigger of terminal 1 send the region of warning message as predeterminable area 1.Its
In, predeterminable area 1 includes often going to position 1 in the A of city, often going to position 2, often go to position 3 and often go to position 4.At this point, first
Predeterminable area is the region except above-mentioned predeterminable area 1.
Optionally, above-mentioned first predeterminable area can be the region that pre-set triggering sends warning message.
It can be touched it should be noted that first terminal or server can obtain one or more according to big data analysis
The region for sending out warning message, such as predeterminable area 2, predeterminable area 3, predeterminable area 4 and predeterminable area 5.Wherein, multiple to touch
The grade for sending out each region in the region of warning message can be different, and the region triggering of higher grade sends the time of warning message
It is shorter, and the accuracy rate for triggering transmission warning message is higher.Illustratively, predeterminable area 2, predeterminable area 3,4 and of predeterminable area
The grade of predeterminable area 5 is sequentially increased.
It is understood that the first position of above-mentioned first terminal is respectively at predeterminable area 2, predeterminable area 3, preset areas
In the case of domain 4 and predeterminable area 5, preset duration is sequentially reduced.
It should be noted that the method provided in an embodiment of the present invention for sending warning message, sends the device of warning message
It can determine that a terminal is the terminal of demand alarm according to a variety of conditions, be conducive to avoid to touch not needing terminal alarms mistiming
Hair sends the case where terminal corresponding warning message, can improve the accuracy rate for sending the corresponding warning message of the terminal.
In one possible implementation, above-mentioned preset alarm condition can also include:In the second moment first terminal
Electricity be more than default power threshold and be switched to off-mode from open state in the second moment first terminal, and the
Two moment to current time first terminal is constantly in off-mode, the second moment the first moment and above-mentioned current time it
Between.
It is understood that when user's using terminal, if the electricity of terminal is higher (electricity of such as terminal is more than 20%),
The terminal will not be usually shut down.Further, even if user is led in the higher control terminal shutdown of electricity of terminal
The terminal will not be often made to be in the off-mode long period (such as 6 hours).
It is opposite, in the case where the personal safety of user may be on the hazard, the terminal of the usual user may compared with
Off-mode is continuously in long-time.For example, user is controlled by offender some place the case where, which can
It can be so that being continuously in off-mode in the mobile phone long period of user.
Illustratively, above-mentioned default power threshold can be 20%, and the duration at above-mentioned second moment to current time is more than 6
Hour.
Wherein, the state of first terminal provided in an embodiment of the present invention can also be wrapped in addition to the position including first terminal
Include the electricity and on-off state of first terminal.
It should be noted that the method provided in an embodiment of the present invention for sending warning message, sends the device of warning message
It can be not only the terminal of demand alarm according to the location determination of the terminal terminal, can be combined with the position of a terminal
Information, electricity and on-off state determine that the terminal is the terminal of demand alarm.An end is determined in this way, can further increase
End is the accuracy rate of the terminal of demand alarm, and further increases the accuracy rate for sending warning message.
In one possible implementation, preset alarm condition can also include:In the electricity of the second moment first terminal
Amount is more than default power threshold and from open state is switched to off-mode in the second moment first terminal and at current time
The identification information that first terminal is switched to open state and first terminal from off-mode is different from default identification information, the
Two moment are between the first moment and above-mentioned current time.At this point, the personal safety of the corresponding user of first terminal may be by
It threatens.In this way, the corresponding warning message of the terminal can be sent by sending the device of warning message.
Wherein, above-mentioned default identification information can be the information of the corresponding default SIM card of first terminal, such as preset hand
Machine number.
Specifically, in the case where the personal safety of user may be on the hazard, the terminal of the usual user may compared with
Off-mode is continuously in long-time.For example, user is controlled by offender some place the case where, which can
It can be so that being continuously in off-mode in the mobile phone long period of user.Further, if offender is again turned on mobile phone,
The SIM card of mobile phone is usually replaced.
In this way, the method provided in an embodiment of the present invention for sending warning message, the device for sending warning message can be with more
Kind mode determines that the terminal is the terminal of demand alarm according to the position of terminal, electricity and on-off state.In this way, can be into one
Step improves the accuracy rate for the terminal for determining that a terminal is demand alarm, and improves the accuracy rate for sending warning message.
It is illustrated in figure 4 a kind of structural schematic diagram of device sending warning message provided in an embodiment of the present invention.Fig. 4 shows
The device 40 of the transmission warning message gone out includes:Acquisition module 401 and sending module 402;Acquisition module 401, for obtaining the
One location information, first position information are used to indicate first position of the first terminal residing for current time;Sending module 402,
For in the case where the state of first terminal meets preset alarm condition, warning message, first terminal to be sent to second terminal
State be at least used to indicate acquisition module 401 acquisition first position;Wherein, preset alarm condition includes:First position and
At least one second position is in the first predeterminable area, and any one in first position and at least one second position the
The distance between two positions are respectively less than or are equal to pre-determined distance threshold value, and the second position is the first moment between current time first
The location of terminal, the duration between the first moment and current time are more than preset duration.
Optionally, the first predeterminable area is the pre-set region that will not be triggered except the region for sending warning message.
Optionally, the first predeterminable area is the region that pre-set triggering sends warning message.
Optionally, the state of first terminal is additionally operable to the electricity and on-off state of instruction first terminal;Preset alarm item
Part further includes:It is more than default power threshold and in the first moment first terminal from booting in the electricity of the first moment first terminal
State is switched to off-mode, and is constantly in off-mode, the first moment in the first moment to current time first terminal
For any time in the second preset time period.
Optionally, the state of first terminal is additionally operable to the electricity and on-off state of instruction first terminal;Preset alarm item
Part further includes:It is more than default power threshold and in the first moment first terminal from booting in the electricity of the first moment first terminal
State is switched to off-mode and is switched to open state and first terminal from off-mode in current time first terminal
Identification information it is different from default identification information, the first moment be the second preset time period in any time.
Optionally, the identification information of first terminal is carried in warning message, or carries first position information and first eventually
The identification information at end.
The device 40 provided in an embodiment of the present invention for sending warning message, which can be realized, sends report in above method embodiment
Each process that the device of alert information is realized, to avoid repeating, which is not described herein again.
The terminal of the device provided in an embodiment of the present invention for sending warning message, demand alarm need not receive touching for user
Hair sends the input of warning message, and in the case where the state of the terminal meets preset alarm condition, send warning message
Device independently can send the corresponding warning message of the terminal to emergency contact.In this way, the demand of being successfully transmitted can be improved
The probability of the corresponding warning message of terminal of alarm.
In one possible implementation, the device provided in an embodiment of the present invention for sending warning message can be eventually
End, such as above-mentioned first terminal.Fig. 5 is a kind of hardware architecture diagram of terminal provided in an embodiment of the present invention, the terminal 100 packet
It includes but is not limited to:Radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display
The components such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111.This
Field technology personnel are appreciated that the restriction of the not structure paired terminal of terminal structure shown in Fig. 5, terminal may include than figure
Show more or fewer components, either combines certain components or different components arrangement.In embodiments of the present invention, terminal
Including but not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer
Deng.
Wherein, processor 110, for obtaining first position information, first position information is used to indicate first terminal and is working as
First position residing for the preceding moment;Radio frequency unit 101, for the case where the state of first terminal meets preset alarm condition
Under, warning message is sent to second terminal, the state of first terminal is at least used to indicate the first position letter of the acquisition of processor 110
Cease the first position of instruction;Wherein, preset alarm condition includes:It is pre- that first position and at least one second position are in first
If in region, and first position is respectively less than or is equal to the distance between any one second position at least one second position
Pre-determined distance threshold value, the second position were the first moment to the location of first terminal between current time, the first moment with work as
Duration between the preceding moment is more than preset duration.
The device (i.e. terminal) provided in an embodiment of the present invention for sending warning message, the terminal need not receive touching for user
Hair sends the input of warning message, and in the case where the state of the terminal meets preset alarm condition, terminal can be autonomous
The corresponding warning message of the terminal is sent to emergency contact.It is answered in this way, the terminal-pair that the demand that is successfully transmitted is alarmed can be improved
Warning message probability.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 101 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by radio communication system and network and other set
Standby communication.
Terminal has provided wireless broadband internet to the user by network module 102 and has accessed, and such as user is helped to receive and dispatch electricity
Sub- mail, browsing webpage and access streaming video etc..
It is that audio output unit 103 can receive radio frequency unit 101 or network module 102 or in memory 109
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 100 executes.Sound
Frequency output unit 103 includes loud speaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike
Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 101 by being converted in the case of telephone calling model.
Terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjusts the brightness of display panel 1061, and proximity sensor can close display panel when terminal 100 is moved in one's ear
1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 105 can be with
Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer,
Infrared sensor etc., details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generates and set with the user of terminal
It sets and the related key signals of function control inputs.Specifically, user input unit 107 include touch panel 1071 and other
Input equipment 1072.Touch panel 1071, also referred to as touch screen, collect user on it or neighbouring touch operation (such as
User is using any suitable objects or attachment such as finger, stylus on touch panel 1071 or near touch panel 1071
Operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receives processor 110
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.
Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, switch
Button etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it
On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touch
The type for touching event provides corresponding visual output on display panel 1061.Although in Figure 5, touch panel 1071 and display
Panel 1061 is to realize the function that outputs and inputs of terminal as two independent components, but in certain embodiments, can
The function that outputs and inputs of terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not limited herein specifically
It is fixed.
Interface unit 108 is the interface that external device (ED) is connect with terminal 100.For example, external device (ED) may include it is wired or
Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port,
For connecting the port of device with identification module, the port audio input/output (I/O), video i/o port, ear port
Etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will
One or more elements that the input received is transferred in terminal 100 or can be used for terminal 100 and external device (ED) it
Between transmission data.
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to
It crosses operation or executes the software program and/or module being stored in memory 109, and call and be stored in memory 109
Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 110 may include one
Or multiple processing units;Preferably, processor 110 can integrate application processor and modem processor, wherein application processing
The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage
Solution, above-mentioned modem processor can not also be integrated into processor 110.
Terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be with
It is logically contiguous by power-supply management system and processor 110, to by power-supply management system realize management charging, electric discharge, with
And the functions such as power managed.
In addition, terminal 100 includes some unshowned function modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal, including processor 110, and memory 109 is stored in storage
It is real when which is executed by processor 110 on device 109 and the computer program that can be run on the processor 110
Each process of existing above method embodiment, and identical technique effect can be reached, to avoid repeating, which is not described herein again.
In one possible implementation, the device provided in an embodiment of the present invention for sending warning message can be service
Device.Server 2600 shown in Fig. 6 includes:Processor 2601, transceiver 2602, memory 2603, user interface 2604 and total
Line interface.
In the embodiment of the present invention, in figure 6, bus architecture may include the bus and bridge of any number of interconnection, specifically
The various circuits for the memory that the one or more processors and memory 2603 represented by processor 2601 represent are linked at one
It rises.Bus architecture can also link various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like
Together, these are all it is known in the art, and therefore, it will not be further described herein.Bus interface offer connects
Mouthful.Transceiver 2602 can be multiple element, that is, include transmitter and receiver, provide for over a transmission medium with it is various its
The unit of his device communication.For different servers, user interface 2604, which can also be external to be inscribed, needs equipment
The equipment of interface, connection includes but not limited to keypad, display, loud speaker, microphone, control stick etc..Processor 2601 is negative
Duty management bus architecture and common processing, memory 2603 can store the used number when executing operation of processor 2601
According to.
In addition, server 2600 further includes some unshowned function modules, details are not described herein.
Wherein, processor 2601, for obtaining first position information, first position information is used to indicate first terminal and is working as
First position residing for the preceding moment;Transceiver 2602, in the case where the state of first terminal meets preset alarm condition,
Warning message is sent to second terminal, the state of first terminal is at least used to indicate the first position information of the acquisition of processor 2601
The first position of instruction;Wherein, preset alarm condition includes:It is default that first position and at least one second position are in first
In region, and the distance between first position and any one second position at least one second position are respectively less than or equal to pre-
If distance threshold, the second position was the first moment to the location of first terminal between current time, the first moment with it is current
Duration between moment is more than preset duration.
The terminal of the device (i.e. server) provided in an embodiment of the present invention for sending warning message, demand alarm need not connect
The triggering for receiving user sends the input of warning message, and in the case where the state of the terminal meets preset alarm condition, service
Device independently can send the corresponding warning message of the terminal to emergency contact.It is successfully transmitted demand report in this way, can improve
The probability of the corresponding warning message of alert terminal.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, realizes each process of above method embodiment when which is executed by processor, and can reach identical
Technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as read-only memory
(Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD
Deng.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (11)
1. a kind of method sending warning message, which is characterized in that including:
First position information is obtained, the first position information is used to indicate first of first terminal residing for current time
It sets;
In the case where the state of the first terminal meets preset alarm condition, warning message is sent to second terminal, it is described
The state of first terminal is at least used to indicate the first position;
Wherein, the preset alarm condition includes:
The first position and at least one second position are in the first predeterminable area, and the first position with it is described extremely
The distance between any one second position is respectively less than or is equal to pre-determined distance threshold value, the second in few second position
Be set to for the first moment to the location of described first terminal between the current time, first moment with it is described current when
Duration between quarter is more than preset duration.
2. according to the method described in claim 1, it is characterized in that, first predeterminable area will not trigger to be pre-set
Send the region except the region of the warning message.
3. according to the method described in claim 1, it is characterized in that, first predeterminable area sends for pre-set triggering
The region of the warning message.
4. method as claimed in any of claims 1 to 3, which is characterized in that
The state of the first terminal is additionally operable to indicate the electricity and on-off state of the first terminal;
The preset alarm condition further includes:
The electricity of first terminal described in the second moment is more than default power threshold and the first terminal described in second moment
It is switched to off-mode from open state, and the first terminal described in second moment to the current time is constantly in
Off-mode, second moment is between first moment and the current time.
5. method as claimed in any of claims 1 to 3, which is characterized in that
The state of the first terminal is additionally operable to indicate the electricity and on-off state of the first terminal;
The preset alarm condition further includes:
The electricity of first terminal described in the second moment is more than default power threshold and the first terminal described in second moment
It is switched to off-mode from open state and the first terminal described in the current time is switched to booting shape from off-mode
The identification information of state and the first terminal is different from default identification information, second moment at first moment and
Between the current time.
6. a kind of device sending warning message, which is characterized in that including:Acquisition module and sending module;
The acquisition module, for obtaining first position information, the first position information is used to indicate first terminal current
First position residing for moment;
The sending module, in the case where the state of the first terminal meets preset alarm condition, to second terminal
Warning message is sent, the state of the first terminal is at least used to indicate the first position information that the acquisition module obtains
The first position indicated;
Wherein, the preset alarm condition includes:
The first position and at least one second position are in the first predeterminable area, and the first position with it is described extremely
The distance between any one second position is respectively less than or is equal to pre-determined distance threshold value, the second in few second position
Be set to for the first moment to the location of described first terminal between the current time, first moment with it is described current when
Duration between quarter is more than preset duration.
7. device according to claim 6, which is characterized in that first predeterminable area will not trigger to be pre-set
Send the region except the region of the warning message.
8. device according to claim 6, which is characterized in that first predeterminable area sends for pre-set triggering
The region of the warning message.
9. the device according to any one of claim 6 to 8, which is characterized in that
The state of the first terminal is additionally operable to indicate the electricity and on-off state of the first terminal;
The preset alarm condition further includes:
The electricity of first terminal described in the second moment is more than default power threshold and the first terminal described in second moment
It is switched to off-mode from open state, and the first terminal described in second moment to the current time is constantly in
Off-mode, second moment is between first moment and the current time.
10. the device according to any one of claim 6 to 8, which is characterized in that the state of the first terminal is also used
In the electricity and on-off state that indicate the first terminal;
The preset alarm condition further includes:
The electricity of first terminal described in the second moment is more than default power threshold and the first terminal described in second moment
It is switched to off-mode from open state and the first terminal described in the current time is switched to booting shape from off-mode
The identification information of state and the first terminal is different from default identification information, second moment at first moment and
Between the current time.
11. a kind of device sending warning message, which is characterized in that including processor, memory and be stored in the memory
Computer program that is upper and can running on the processor, is realized when the computer program is executed by the processor as weighed
Profit requires the step of method of the transmission warning message described in any one of 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810211303.6A CN108712555B (en) | 2018-03-14 | 2018-03-14 | Method and device for sending alarm information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810211303.6A CN108712555B (en) | 2018-03-14 | 2018-03-14 | Method and device for sending alarm information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108712555A true CN108712555A (en) | 2018-10-26 |
CN108712555B CN108712555B (en) | 2020-11-06 |
Family
ID=63866115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810211303.6A Active CN108712555B (en) | 2018-03-14 | 2018-03-14 | Method and device for sending alarm information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108712555B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600737A (en) * | 2018-11-23 | 2019-04-09 | 北斗天地股份有限公司 | Alarm method and device |
CN111080984A (en) * | 2019-11-11 | 2020-04-28 | 高新兴科技集团股份有限公司 | Anti-cross-supply early warning method, device, equipment and system |
CN111385730A (en) * | 2018-12-27 | 2020-07-07 | 北斗天地股份有限公司 | Positioning terminal control method and server |
CN112235711A (en) * | 2019-06-28 | 2021-01-15 | 北京海益同展信息科技有限公司 | Security system and positioning method for security system |
CN113543034A (en) * | 2021-06-25 | 2021-10-22 | 深圳市宝尔爱迪科技有限公司 | Safety early warning method, device, equipment and storage medium based on positioning information |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101778353A (en) * | 2010-02-20 | 2010-07-14 | 华为终端有限公司 | Automatic alarm method and terminal |
CN105336091A (en) * | 2014-07-16 | 2016-02-17 | 北京奇虎科技有限公司 | Method of carrying out alarm aiming at portable positioning equipment, apparatus and system |
CN105493162A (en) * | 2013-03-29 | 2016-04-13 | 华为技术有限公司 | Boundary violation alarm server, monitored terminal, monitoring terminal, system and method |
CN106157527A (en) * | 2015-03-31 | 2016-11-23 | Tcl集团股份有限公司 | Alarm method based on mobile terminal and device |
CN106211064A (en) * | 2016-06-30 | 2016-12-07 | 上海卓易科技股份有限公司 | A kind of method and device reminding consumers risk position |
CN107103725A (en) * | 2017-05-27 | 2017-08-29 | 深圳市易特科信息技术有限公司 | Children's anti-lost positioning device |
WO2017172972A1 (en) * | 2016-03-30 | 2017-10-05 | Avitan Peri | Personal medical device |
-
2018
- 2018-03-14 CN CN201810211303.6A patent/CN108712555B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101778353A (en) * | 2010-02-20 | 2010-07-14 | 华为终端有限公司 | Automatic alarm method and terminal |
CN105493162A (en) * | 2013-03-29 | 2016-04-13 | 华为技术有限公司 | Boundary violation alarm server, monitored terminal, monitoring terminal, system and method |
CN105336091A (en) * | 2014-07-16 | 2016-02-17 | 北京奇虎科技有限公司 | Method of carrying out alarm aiming at portable positioning equipment, apparatus and system |
CN106157527A (en) * | 2015-03-31 | 2016-11-23 | Tcl集团股份有限公司 | Alarm method based on mobile terminal and device |
WO2017172972A1 (en) * | 2016-03-30 | 2017-10-05 | Avitan Peri | Personal medical device |
CN106211064A (en) * | 2016-06-30 | 2016-12-07 | 上海卓易科技股份有限公司 | A kind of method and device reminding consumers risk position |
CN107103725A (en) * | 2017-05-27 | 2017-08-29 | 深圳市易特科信息技术有限公司 | Children's anti-lost positioning device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600737A (en) * | 2018-11-23 | 2019-04-09 | 北斗天地股份有限公司 | Alarm method and device |
CN111385730A (en) * | 2018-12-27 | 2020-07-07 | 北斗天地股份有限公司 | Positioning terminal control method and server |
CN111385730B (en) * | 2018-12-27 | 2022-08-05 | 北斗天地股份有限公司 | Positioning terminal control method and server |
CN112235711A (en) * | 2019-06-28 | 2021-01-15 | 北京海益同展信息科技有限公司 | Security system and positioning method for security system |
CN111080984A (en) * | 2019-11-11 | 2020-04-28 | 高新兴科技集团股份有限公司 | Anti-cross-supply early warning method, device, equipment and system |
CN113543034A (en) * | 2021-06-25 | 2021-10-22 | 深圳市宝尔爱迪科技有限公司 | Safety early warning method, device, equipment and storage medium based on positioning information |
CN113543034B (en) * | 2021-06-25 | 2024-03-19 | 深圳市宝尔爱迪科技有限公司 | Safety early warning method, device, equipment and storage medium based on positioning information |
Also Published As
Publication number | Publication date |
---|---|
CN108712555B (en) | 2020-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108712555A (en) | A kind of method and device sending warning message | |
CN109995933A (en) | The method and terminal device of the alarm clock of controlling terminal equipment | |
CN108366220A (en) | A kind of video calling processing method and mobile terminal | |
CN109656437A (en) | A kind of information display method and terminal device | |
CN109871246A (en) | A kind of message display method and terminal device | |
CN109600297A (en) | A kind of mark sweep-out method and terminal device | |
CN108512980A (en) | A kind of detection method and mobile terminal of mobile terminal | |
CN108828692A (en) | A kind of weather prediction method and terminal device | |
CN108600078A (en) | A kind of method and terminal of communication | |
CN108391008A (en) | A kind of message prompt method and mobile terminal | |
CN108769369A (en) | A kind of method for early warning and mobile terminal | |
CN108388403A (en) | A kind of method and terminal of processing message | |
CN108597495A (en) | A kind of method and device of processing voice data | |
CN108833684A (en) | A kind of information cuing method and terminal device | |
CN109976844A (en) | A kind of message display method and mobile terminal | |
CN109857305A (en) | A kind of input response method and mobile terminal | |
CN108762799A (en) | A kind of method and terminal of update application | |
CN108449490A (en) | A kind of terminal control method and terminal | |
CN108063869A (en) | A kind of safe early warning method, mobile terminal | |
CN110505349A (en) | A kind of based reminding method and terminal | |
CN109828702A (en) | A kind of interface display method and terminal device | |
CN110045898A (en) | A kind of display methods and terminal device | |
CN109068276A (en) | A kind of message conversion method and terminal | |
CN109151215A (en) | A kind of alarm method and mobile terminal | |
CN109246308A (en) | A kind of method of speech processing and terminal device |
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 |