Warning system and based on the car alarming method of this warning system
Technical field
The present invention relates to a kind of warning system and based on the car alarming method of this warning system, especially a kind of when do not receive in threshold time that portable terminal sends set up the PDP Context connection request message time warning system of reporting to the police and the car alarming method of this warning system of opportunity.
Background technology
Adopt Logical Link Management in the GPRS network structure:, remain the logic wireless connections between MS and the SGSN no matter whether data transmission is arranged; But only just user's distributing radio resource when the actual transmissions data.Can more effectively utilize wireless interface resource like this.
Serving GPRS Support Node (Serving GPRS Support Node, SGSN): carry out functions such as mobile management, security function, Access Control and Route Selection.Gateway GPRS Support Node (GatewayGPRS Support Node, GGSN): be responsible for providing the interface of GPRS PLMN and external packet data net, and security mechanism between necessary net is provided.SGSN and GGSN can independently be provided with, and also can close and establish.
It is as follows that process is set up in the logic connection:
After the MS start, with the monitoring wireless channel, listening system information sends request then on the control channel that system information provides.After system receives request, will distribute wireless channel to give MS.Afterwards, MS adheres to request startup attaching process to one of SGSN transmission on the wireless channel of system assignment.After SGSN receives and adheres to request, will send message, the IMSI of request MS to SGSN.MS informs SGSN with its IMSI, and SGSN is with the IMSI that obtains request authentication in the HLR, and MS is carried out authentication.If the GPRS subscription data of MS allows MS to adhere in current route district, SGSN will be to the HLR return messages, and HLR will be to the SGSN return messages as response.At last, SGSN shows that to MS transmission message MS adheres to successfully.After MS adheres to successfully, just set up the communication port between MS and the GPRS network, MS can receive and dispatch short message, but can't receive and dispatch other data, want to receive and dispatch other data, also must initiate pdp context activation, set up the data path of MS and external data network.
When MS need open the connection weak point, just initiate opposite " going a to connect " process, show that " separation " comes out from this SGSN.
Along with development of times, the use amount of automobile is increasing, and people are also more and more higher for the dependence of automobile.The safety issue of automobile also highlights gradually thus.
Existing auto alarm device and alarm method are to utilize central controlled lock, alarm and use GPS are installed on the vehicle mostly.
Combination padlock is mainly taked the numerical control principle, the ignition function of control engine.Have only the car owner to input correct password, just can open car door, ignition engine.This method shortcoming is that technology is complicated, and combination padlock goes wrong, and often must be unblanked by specialized factory.If cartheft has demoder, also decryption at short notice.
The alerting signal transmission range of the alarm of installing on the vehicle is very short, under car situation far away, is difficult to detect the alarm of alarm.When vehicle is not intended to collision by passing pedestrian, or be that alarm also can give the alarm by the pet collision, if alarm times is too much like this, the car owner will lose vigilance to alarm, and alarm is ignored.
GPS is installed on vehicle, passes through stolen vehicle position, GPS positioning system Directory Enquiries in the stolen back of vehicle, thereby reduce the loss.This method is can not the better controlled vehicle stolen, just a kind of a kind of measure of tracing vehicle after vehicle is stolen.Can't realize like this finding that in real time vehicle is stolen, and in case after being removed, just can't follow the tracks of the position of stolen vehicle again.Therefore, also do not have special car alarm system at present, and the warning effect of existing auto alarm method is undesirable.
Summary of the invention
First purpose of the present invention be at existing not based on mobile network's warning system, and provide a kind of warning system, when do not receive in threshold time that portable terminal sends set up the PDP Context connection request message time report to the police.
Second purpose of the present invention is to provide a kind of car alarming method based on warning system at the defective of existing car alarming method, do not utilize with the portable terminal of vehicle stationary receives in threshold time that portable terminal sends and set up the PDP Context connection request message, think that vehicle is stolen, and report to the police.
For realizing above-mentioned first purpose, the invention provides a kind of warning system, comprising:
Portable terminal is used for sending the message of setting up the PDP Context connection request to network side;
Serving GPRS Support Node is connected with portable terminal by communication network, is used for the forwarding of information;
Gateway GPRS Support Node is connected with described Serving GPRS Support Node, is used for portable terminal is authenticated;
Center module is connected with described Serving GPRS Support Node, is used for reporting to the police.
For realizing above-mentioned second purpose, the invention provides a kind of car alarming method based on above-mentioned warning system, described portable terminal and vehicle fix, and this method comprises the steps::
Step 1, when automobile parking, portable terminal sends to Serving GPRS Support Node and sets up the PDP Context connection request message;
Step 2, if Serving GPRS Support Node receives that this sets up the PDP Context connection request message then execution in step 3 in threshold time, otherwise execution in step 7;
Step 3, Serving GPRS Support Node are transmitted to Gateway GPRS Support Node and are set up the PDP Context connection request message;
Step 4, portable terminal are set up and are connected with the center module PDP Context, and Gateway GPRS Support Node returns to Serving GPRS Support Node and sets up the response that PDP Context connects;
Step 5, Serving GPRS Support Node send to portable terminal and have set up the information that PDP Context connects;
Step 6, portable terminal disconnect and are connected execution in step 1 with the PDP Context of center module;
Step 7, Serving GPRS Support Node notice center module surpass threshold time and do not receive that portable terminal sets up the PDP Context connection request message, and center module is reported to the police.
Comprise the steps: also between described step 3 and the step 4 that Gateway GPRS Support Node receives after this sets up the PDP Context connection request message, this portable terminal is authenticated that authentication is by execution in step 4 then, otherwise finish.Comprise also between described step 5 and the step 6 that this portable terminal returns to Serving GPRS Support Node and sets up the information response that PDP Context connects.In the described step 7, center module is reported to the police and is specially: the number of the communication terminal of center module inquiry and this mobile terminal binding, dialing this communication terminal reports to the police, the perhaps number of center module inquiry and the communication terminal of this mobile terminal binding, send short message alarm to this communication terminal, perhaps center module repayment alarm call is reported to the police, and perhaps center module is inquired about the number of this vehicle of fixing with this portable terminal, dial the police emergency number, point out this vehicle stolen.
Therefore, vehicle alarming system of the present invention realized when do not receive in threshold time that portable terminal sends set up the PDP Context connection request message time report to the police.The present invention is based on the car alarming method of warning system, the portable terminal of having realized utilization and vehicle stationary does not receive in threshold time that portable terminal sends sets up the PDP Context connection request message, thinks that vehicle is stolen, and reports to the police.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the structural representation of warning system of the present invention.
Fig. 2 is the process flow diagram of car alarming method of the present invention.
Embodiment
The portable terminal of utilization of the present invention and vehicle stationary does not receive in threshold time that portable terminal sends sets up the PDP Context connection request message, thinks that vehicle is stolen, and reports to the police.
As shown in Figure 1, the structural representation for warning system of the present invention comprises: portable terminal 1 is used for sending the message of setting up the PDP Context connection request to network side; Serving GPRS Support Node (SGSN) 2 is connected with portable terminal 1 by communication network 3, is used for the forwarding of information; Gateway GPRS Support Node (GGSN) 4 is connected with described Serving GPRS Support Node 2, is used for portable terminal 1 is authenticated; Center module 5 is connected with described Serving GPRS Support Node 2, is used for reporting to the police.
Car alarming method of the present invention may further comprise the steps:
Step 1, when automobile parking, portable terminal sends to Serving GPRS Support Node and sets up the PDP Context connection request message;
Step 2, if Serving GPRS Support Node receives that this sets up the PDP Context connection request message then execution in step 3 in threshold time, otherwise execution in step 7;
Step 3, Serving GPRS Support Node are transmitted to Gateway GPRS Support Node and are set up the PDP Context connection request message;
Step 4, portable terminal are set up and are connected with the center module PDP Context, and Gateway GPRS Support Node returns to Serving GPRS Support Node and sets up the response that PDP Context connects;
Step 5, Serving GPRS Support Node send to portable terminal and have set up the information that PDP Context connects;
Step 6, portable terminal disconnect and are connected execution in step 1 with the PDP Context of center module;
Step 7, Serving GPRS Support Node notice center module surpass threshold time and do not receive that portable terminal sets up the PDP Context connection request message, and center module is reported to the police.
As shown in Figure 2, the process flow diagram for car alarming method of the present invention may further comprise the steps:
Step 101, when automobile parking, portable terminal sends to SGSN and sets up the PDP Context connection request message;
Step 102, if SGSN receives that this sets up the PDP Context connection request message then execution in step 103 in threshold time, otherwise execution in step 109;
Step 103, SGSN transmits to GGSN and sets up the PDP Context connection request message;
Step 104, GGSN receives after this sets up the PDP Context connection request message, and this portable terminal is authenticated, and authentication is by execution in step 105 then, otherwise finishes;
Step 105, portable terminal are set up and are connected with the center module PDP Context, and GGSN returns to SGSN and sets up the response that PDP Context connects;
Step 106, SGSN sends to portable terminal and has set up the information that PDP Context connects;
Step 107, this portable terminal are returned to SGSN and are set up the information response that PDP Context connects;
Step 108, portable terminal disconnect and are connected execution in step 101 with the PDP Context of center module;
Step 109, SGSN notice center module surpass threshold time and do not receive that portable terminal sets up the PDP Context connection request message, and center module is reported to the police;
Alarm method in this step has a lot, and for example the number of the communication terminal of center module inquiry and this mobile terminal binding is dialed this communication terminal and reported to the police; Perhaps the number of the communication terminal of center module inquiry and this mobile terminal binding sends short message alarm to this communication terminal; Perhaps center module repayment alarm call is reported to the police; Perhaps center module is inquired about the number of this vehicle of fixing with this portable terminal, dials the police emergency number, and points out this vehicle stolen.
During vehicle parking, place the mobile terminal period (can set) in the car to send registration data (identity identification information of portable terminal) to center module, if center module was not received the registration data that portable terminal sends over when the stipulated time arrived, it is unusual that center module thinks that then this portable terminal produces.
Behind the mobile terminal-opening, with the monitoring wireless channel, listening system information sends request then on the control channel that system information provides.After center module is received request, will distribute wireless channel to give portable terminal.Afterwards, portable terminal adheres to request startup attaching process to one of Serving GPRS Support Node (SGSN) transmission on the wireless channel of system assignment.After Serving GPRS Support Node is received and adhered to request, will send message IdentityRequest (IdentityType=IMSI), the IMSI of request portable terminal to Gateway GPRS Support Node.Portable terminal is informed Serving GPRS Support Node with an IdentityResponse with its IMSI, and Serving GPRS Support Node is with the IMSI that obtains request authentication in the HLR, and car-mounted terminal is carried out authentication.After the car-mounted terminal authentication was passed through, SGSN sent UpdateLocation message to HLR.Afterwards, HLR sends message InsertSubscriberData to SGSN, and this message comprises the GPRS subscription data (GPRSSubscriptionData) of car-mounted terminal.If the GPRS subscription data of car-mounted terminal allows portable terminal to adhere in current route district, SGSN will be to HLR return messages InsertSubscriberDataAck, and HLR will be to SGSN return messages UpdateLocationAck as the response to UpdateLocation message.At last, SGSN sends message AttachAccept to car-mounted terminal, shows that portable terminal adheres to successfully.
When terminal works normal (not having conductively-closed), arrive periodically the time after, portable terminal need send registration data, will set up PDP Context this moment and connect.Portable terminal sends to SGSN and activates PDP Context request message (having information such as APN, pdp address, service quality in the message).After SGSN receives the PDP Context request message, request DNS (name server) resolves APN, obtain the IP address of the GGSN of this APN correspondence, SGSN sends the PDP Context request message to Gateway GPRS Support Node (GGSN) simultaneously, after GGSN receives request message, this user is authenticated.After authentication was passed through, GGSN returned to SGSN and sets up the PDP Context response message.At last, SGSN sends to portable terminal and activates PDP Context reception message.So far, set up data path between portable terminal and the GPRS network fully.Portable terminal sends a registration data bag (comprising identity identification information own) and gives center module, thinks promptly after center module is received that portable terminal is working properly.
When car-mounted terminal work undesired (conductively-closed), and owing to do not initiate " go to connect,, process is so SGSN thinks still that this car-mounted terminal " adheres to " and is attached to this locality.After arriving the periodicity time, portable terminal need send registration data, will set up PDP Context this moment and connect.And this moment portable terminal because conductively-closed, so can't get in touch with SGSN, so can't sending periodically, registration data arrives center module, center module is not at the appointed time received the registration data of portable terminal, promptly think this portable terminal operation irregularity, the center module platform will send to car owner or other service organizations with " portable terminal abnormal information " with various forms such as note, callings.
Therefore, vehicle alarming system of the present invention realized when do not receive in threshold time that portable terminal sends set up the PDP Context connection request message time report to the police.The present invention is based on the car alarming method of warning system, the portable terminal of having realized utilization and vehicle stationary does not receive in threshold time that portable terminal sends sets up the PDP Context connection request message, thinks that vehicle is stolen, and reports to the police.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.