Summary of the invention
The technical problem to be solved in the present invention, is to provide a kind of WIFI module that utilizes to carry out the antitheft method and system of mobile device, realizes the anti-theft feature of mobile device self.
The present invention is achieved in that
Utilize WIFI module to carry out the antitheft method of mobile device, comprise the steps:
Step 10, after WIFI module connects WIFI hot spot, obtain the signal initial intensity value of WIFI hot spot connected;
Step 20, obtain the signal strength values of above-mentioned WIFI hot spot;
If the ratio of the signal strength values that step 30 gets and signal initial intensity value is not lower than the first attenuation ratio, then return step 20, otherwise the ratio of the signal strength values got and signal initial intensity value lower than the first attenuation ratio, is then recorded as secondary signal intensity level;
Step 40, obtain the signal strength values of above-mentioned WIFI hot spot;
If the ratio of the signal strength values that step 50 gets and secondary signal intensity level is not lower than the second attenuation ratio, then return step 40, otherwise the ratio of the signal strength values got and secondary signal intensity level is lower than the second attenuation ratio, then the loudspeaker on mobile device are driven to send default alarm song.Alarm song can be undertaken self-defined by user.
What this method was taked is utilize the WIFI module of mobile device to be connected on wireless router (WIFI hot spot), the changing value of the signal intensity of continuous detecting it and this wireless router, when mobile device is gradually away from this wireless router time, systems axiol-ogy presents obvious downtrending to intensity, judge that now mobile device has by the possibility of stealing, timely prompting is reported to the police, and realizes anti-theft feature.Described attenuation ratio is a ratio, and this ratio represents the signal strength values that the detects ratio relative to the intensity level of the signal detected below above.Wherein the first attenuation ratio and the second attenuation ratio can be arranged to the arbitrary value from 0%-100% as required, arrange too little, that only has just reminds when WIFI signal intensity level drops to quite low ratio relative to signal strength values last time, then equipment has larger distance from WIFI hot spot, if arrange too large, then a little distance of equipment moving just may send alarm sound.Preferably, the first attenuation ratio is 60%-80%, and the second attenuation ratio is 60%-80%.The signal attenuation of this scope than in the application of reality, mobile device probably than position during signal initial intensity value away from WIFI hot spot direction 5-20 rice.The distance of this movement is more appropriate.
Preferably, the first described attenuation ratio is 70%.
Preferably, the second described attenuation ratio is 70%.Position during such warning and the position of signal initial intensity value are about 10 meters in the direction away from WIFI hot spot, more realistic demand.
Preferably, before step 10, also comprise step 1: detect anti-theft feature and whether be opened, if anti-theft feature is not opened, then do not carry out the step of step 10 to step 50, otherwise anti-theft feature is opened, and enters step 10.By step 1, anti-theft feature can be closed when not needing to carry out antitheft, avoiding equipment to report to the police.
In order to realize above-mentioned method, the present invention also provides a kind of WIFI module that utilizes to carry out the antitheft system of mobile device, comprises as lower module:
WIFI module: for connecting WIFI hot spot;
SDIO controller: for controlling described WIFI module; SDIO controller is serial protocol controller, is usually used in the control of WIFI module;
WIFI signal detection module: for detecting the signal strength values of WIFI hot spot;
Loudspeaker: for sounding the alarm;
Buzzing system: for driving loudspeaker;
Central processing unit: for after WIFI module connects WIFI hot spot, obtains the signal initial intensity value of the WIFI hot spot connected; Obtain the signal strength values of above-mentioned WIFI hot spot; If the ratio of the signal strength values got and signal initial intensity value is not lower than the first attenuation ratio, then returns back and again obtain signal intensity; Otherwise the ratio of the signal strength values got and signal initial intensity value lower than the first attenuation ratio, is then recorded as secondary signal intensity level; Obtain the signal strength values of above-mentioned WIFI hot spot; If the ratio of the signal strength values got and secondary signal intensity level not lower than the second attenuation ratio, then returns in back and again obtains signal intensity; Otherwise the ratio of the signal strength values got and secondary signal intensity level is lower than the second attenuation ratio, then send default alarm song by buzzing system drive loudspeaker.
Preferably, the first described attenuation ratio is 60%-80%.
Preferably, the second described attenuation ratio is 60%-80%.
Preferably, the first described attenuation ratio is 70%, and the second described attenuation ratio is 70%.
Tool of the present invention has the following advantages: the WIFI module of self utilizing mobile device, achieves the anti-theft feature of mobile device self, when not increasing extra anti-theft module, effectively serves the anti-theft feature of mobile device.
Embodiment
As shown in Figure 1, a kind of WIFI module that utilizes carries out the antitheft system of mobile device, comprises as lower module: central processing unit 1, SDIO controller 2, WIFI signal detection module 3, buzzing system 4, WIFI module 5, loudspeaker 6.WIFI module 5 is for connecting WIFI hot spot, SDIO controller 2 is for controlling WIFI module 5, WIFI signal detection module 3 is for detecting the signal strength values of WIFI hot spot, loudspeaker 6 are for sounding the alarm, buzzing system 4 is for driving loudspeaker 6, central processing unit 1 for judging the size of the signal intensity comparing the WIFI hot spot that WIFI module 5 connects, and drives loudspeaker 6 to sound the alarm by buzzing system 4.
When application the present invention carries out antitheft, should have the WIFI hot spot group 7 that can be used for connecting around mobile device, WIFI hot spot group 7 includes multiple hotspot, has wireless AP1 to wireless aps N (as shown in Figure 1).As shown in Figure 2, for the present invention carries out the antitheft method of mobile device, first preset alarm song, open anti-theft feature in step S101, use WIFI module 5 to connect a WIFI hot spot for wireless aps 3.Then in step s 102, control WIFI signal detection module 3 by central processing unit 1 by SDIO controller 2 and carry out detecting and the signal initial intensity value recording wireless aps 3, be designated as V1.In step s 103, central processing unit 1 controls the signal strength values that WIFI signal detection module 3 detects AP3, and is designated as V2.In step S104, the ratio of V2 and V1 and 70% compare by central processing unit 1, if V2 is except being more than or equal to 70% in V1, then return step S103, otherwise V2 is except being less than 70% in V1, then enter the signal strength values that step S105 detects AP3, and be designated as V3.In step s 106, the ratio of V3 and V2 and 70% compare by central processing unit 1, if V3 is except being more than or equal to 70% in V2, then return step S105, otherwise V3 is except being less than 70% in V2, then enter step S107, master controller 1 drives loudspeaker 6 to send default alarm song by buzzing system 4.
In sum, namely realize mobile device and utilize the WIFI module of self to carry out antitheft, and extra burglary-resisting installation need not be added, reach good effect.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present invention; those of ordinary skill in the art, in the modification of the equivalence done according to spirit of the present invention and change, should be encompassed in scope that claim of the present invention protects.