Summary of the invention
The application mainly provides a kind of router anti-lost method and system, computer readable storage medium, can be improved road
By the safety guarantee of device, user's property loss is reduced.
In order to solve the above technical problems, the technical solution that the application uses is: a kind of router anti-lost method is provided,
The described method includes: terminal is sent to router finds request;The router obtains current location information;The router is sentenced
Whether disconnected current location is more than preset range;If so, the router sends the current location information to the terminal.
Wherein, after the step of router sends the current location information to the terminal further include: the road
Network connecting function is closed by device.
Wherein, the step of router closing network connecting function includes: that the router receives network connecting request,
The network connecting request includes the identification information for connecting equipment;The router judges the identification information and default white list
Whether match;If mismatching, the router refuses the network connecting request.
Wherein, the step of router acquisition current location information includes: that the router obtains current scene image;
The router judges that the step of whether current location is more than preset range includes: that the router judges the current scene figure
As whether at least partly identical as default scene image.
Wherein, the router judges that the step of whether current location is more than preset range includes:
The router judges whether the current location matches with the historical position in historical record.
Wherein, after the step of router sends the current location information to the terminal further include: the road
Judge whether the current scene image includes facial image by device;If so, the router is to described in terminal transmission
Facial image.
Wherein, before the step of router sends the facial image to the terminal further include: the router
Judge whether the facial image matches with the pre-set image in facial image database;If mismatch, execute the router to
The terminal sends the step of facial image.
Wherein, after the step of router sends prompting message to terminal further include: router judges described current
Whether position is less than or equal to preset threshold at a distance from the preset range;If so, the router makes a sound prompt
And/or light prompt.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of anti-lost system of router
System, the system comprises terminal and router, the terminal is connect with the router communication;The terminal is used for the road
It is sent by device and finds request;The router is for obtaining current location information;The router is for judging that current location is
No is more than preset range;The router is used for when the current location is more than preset range, described in the transmission of Xiang Suoshu terminal
Current location information.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of computer-readable deposit
Storage media, is stored thereon with computer program, and the computer program is executed by processor to realize such as above-mentioned method.
The beneficial effect of the application is: being in contrast to the prior art, the application is sought by terminal to router transmission
Look for request;Router obtains current location information;Router judges whether current location is more than preset range;If so, routing
The method that device sends current location information to terminal, so that user according to the current location information searching router or can carry out it
He is handled, to improve the safety guarantee of router, reduces user's property loss.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiment of the application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Referring to Fig. 1, Fig. 1 is the flow diagram of router anti-lost method first embodiment provided by the present application, this reality
The router anti-lost method applied in example includes:
S110: terminal sends to router and finds request;
Specifically, terminal is connect with router communication, after user has found that router is lost, can by user terminal, than
Request is found as mobile phone is sent to router.
S120: router obtains current location information;
Specifically, in one embodiment, obtaining working as router by the method that router obtains current scene image
Front position information, in this embodiment, router are equipped with camera, and router shoots current scene by the camera
Image, the scene image can be scene picture, be also possible to scene video, certainly in other embodiments, can also lead to
The current location information that other methods obtain router is crossed, for example passes through GPS (Global Positioning System, the whole world
Positioning system) obtain router current location information.
S130: router judges whether current location is more than preset range;
Optionally, in one embodiment, the current scene image obtained in router judgment step S120 and default field
Whether the whether at least partly identical current location to judge router of scape image is more than preset range, if current scene image with
Default scene image is at least partly identical, illustrates to be not above preset range, then terminates, if entirely different, illustrates to be more than default
Range thens follow the steps S140.
It should be understood that router identifies the characteristics of image of current scene image by image recognition technology, worked as with judgement
Whether the characteristics of image of preceding scene image is at least partly identical as the characteristics of image of default scene image.
Wherein, characteristics of image refers to color characteristic, textural characteristics, shape feature and the spatial relation characteristics of image.
Optionally, in another embodiment, whether router judges the historical position in current location and historical record
Whether the current location for matching to judge router is more than preset range, if matching, illustrates to be not above preset range, then tie
Beam illustrates to be more than preset range, thens follow the steps S140 if mismatching.
Wherein, historical position can obtain automatically position in historical time by router and be stored in historical record.
It should be understood that above-mentioned preset range can be configured according to actually required, herein with no restrictions.
S140: router sends current location information to terminal.
Specifically, router sends present bit confidence to terminal when router judges that current location is more than preset range
Breath so that user according to the current location information searching router or can carry out other processing, such as when router is stolen into
Row alarm reduces user's property loss to improve the safety guarantee of router.
Wherein, which can be the scene image obtained in step S120, be also possible to GPS positioning letter
Breath.
Optionally, after router sends current location information to terminal, it can be sent out warning, issue the mode of warning
It can be and alarmed by cloud;Warning or light warning can also be made a sound, so that router is in alert status,
So that router cannot be used in normal state.
Router anti-lost method in the present embodiment, which is sent by terminal to router, finds request;Router obtains current
Location information;Router judges whether current location is more than preset range;If so, router sends present bit confidence to terminal
The method of breath, so that user according to the current location information searching router or can carry out other processing, to improve router
Safety guarantee, reduce user's property loss.
Referring to Fig. 2, Fig. 2 is the flow diagram of router anti-lost method second embodiment provided by the present application, this reality
Step S210~the S240 applied in example is identical as step S110~S140 in above-mentioned first embodiment respectively, no longer superfluous herein
It states, the router anti-lost method in the present embodiment further include:
S250: router closes network connecting function.
Specifically, network connecting function is closed after router judges that current location is more than preset range, so that routing
The current location of device is unable to normal use more than after preset range.
Referring to Fig. 3, Fig. 3 is the idiographic flow schematic diagram of mono- embodiment of step S250 in Fig. 2, in an embodiment
In, step S250 is specifically included:
S2501: router receives network connecting request;
Wherein, which includes the identification information for connecting equipment, namely when connection equipment is sent to router
When network connecting request with router to be connected to the network, router receives the identification information of connection equipment simultaneously.
S2502: router judges whether identification information matches with default white list;
Specifically, router judges to connect whether the identification information that prestores in the identification information and white list of equipment matches,
If matching, illustrate even if the current location of router beyond preset range, but the connection equipment still can be with router net
Network connection, then terminate, if mismatching, thens follow the steps S2503.
S2503: router refuses network connecting request.
Specifically, when the identification information prestored in the identification information and white list of router judgement connection equipment mismatches
When, router refuses the network connecting request, prevent connection equipment with router from being connected to the network.
The method that network connecting function is further closed by router in the present embodiment, so that the current location of router
After preset range, it is unable to normal use, so that even if router loss can not normal use.
Referring to Fig. 4, Fig. 4 is the flow diagram of router anti-lost method 3rd embodiment provided by the present application, this reality
Step S310~the S340 applied in example is identical as step S110~S140 in above-mentioned first embodiment respectively, no longer superfluous herein
It states, the router anti-lost method in the present embodiment further include:
S350: router judges whether current scene image includes facial image;
Specifically, router is sentenced by image recognition technology after router sends the current location information to terminal
Whether comprising facial image in the current scene image obtained in disconnected step S320, if being thened follow the steps comprising facial image
Otherwise S360 terminates.
S360: router sends facial image to terminal.
Specifically, the facial image is sent to terminal when router judges that current scene image includes facial image,
So that user can perform corresponding processing according to the facial image, for example the facial image is stranger, and user can report
Alert, for another example the facial image is known people, and user can inquire or not deal with.
It should be understood that the step S350 in this implementation can also be carried out before step S340, sentence when in step S350
When disconnected current scene image includes facial image, the step of router sends facial image to terminal in step S360, can be with step
S340 is carried out simultaneously.
Optionally, in other embodiments, before step S360 further include: router judges facial image and face figure
As whether the pre-set image in library matches.
Wherein, the pre-set image in facial image database is that router allows the facial image beyond preset range, if face
Image is matched with the pre-set image in facial image database, is illustrated even if the current location of router beyond preset range, but road
It is that router is moved to outside preset range by the people allowed by user by device, to illustrate that the present case of router is not to lose
The case where, it does not need to send facial image to user, then terminates, if the pre-set image in facial image and facial image database is not
Match, thens follow the steps S360.
Further judge whether current scene image includes facial image by router in the present embodiment;If so, routing
Device is further increased to the method that terminal sends facial image so that user can perform corresponding processing according to the facial image
The safety guarantee of router.
Referring to Fig. 5, Fig. 5 is the flow diagram of router anti-lost method fourth embodiment provided by the present application, this reality
Step S410~the S440 applied in example is identical as step S110~S140 in above-mentioned first embodiment respectively, no longer superfluous herein
It states, the router anti-lost method in the present embodiment further include:
S450: router judges whether current location is less than or equal to preset threshold at a distance from preset range;
Specifically, router judges current location and preset range after the current location of router exceeds preset range
Distance whether be less than or equal to preset threshold, if so, thening follow the steps S460, otherwise terminate.
Wherein, preset threshold can be configured according to actually required, herein with no restrictions.
S460: router makes a sound prompt and/or light prompt.
Specifically, when the current location of router is less than or equal to preset threshold at a distance from preset range, router
Prompt and/or light prompt are made a sound, so that user finds router according to the auditory tone cues and/or light prompt,
In a practical application scene, router is moved to another position from a position in user room, although router
Current location has exceeded preset range, but since the current location of router is smaller at a distance from preset range, at this point, routing
Device can make a sound prompt and/or light prompt namely above-mentioned preset threshold within a preset range can according to user
It enough hears sound and/or sees that the distance of light is configured.
Further judge whether current location is less than or equal at a distance from preset range by router in the present embodiment
Preset threshold, if so, the method that router makes a sound prompt and/or light prompt, so that user is according to the auditory tone cues
And/or light prompt finds router, improves the convenience that user finds.
It is the schematic block diagram of router anti-lose system embodiment provided by the present application refering to Fig. 6, Fig. 6, in the present embodiment
Router anti-lose system includes terminal 510 and router 520, and terminal 510 and router 520 communicate to connect;
Wherein, terminal 510, which is used to send to router 520, finds request;Router 520 is for obtaining present bit confidence
Breath;Router 520 is for judging whether current location is more than preset range;Router 520 is used in current location be more than default
When range, current location information is sent to terminal 510.
It should be understood that the concrete operating principle of terminal 510 and router 520 in the present embodiment see it is any of the above-described
Router anti-lost method in embodiment, details are not described herein.
It is the schematic block diagram of computer readable storage medium embodiment provided by the present application, the present embodiment refering to Fig. 7, Fig. 7
In computer-readable recording medium storage have computer program 610, which can be executed by processor with reality
Router anti-lost method in existing any of the above-described embodiment.
Optionally, which can be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The terminal devices such as the medium or computer of sequence code, server, mobile phone, plate.
Above is only an example of the present application, it is not intended to limit the scope of the patents of the application, it is all to utilize this Shen
Please equivalent structure or equivalent flow shift made by specification and accompanying drawing content, be applied directly or indirectly in other relevant skills
Art field similarly includes in the scope of patent protection of the application.