Summary of the invention
The application mainly provides a kind of router and its anti-lost method, computer readable storage medium, can reduce even
A possibility that router is lost is eliminated, the safety of router is improved.
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: router obtains current location information;The router judges whether current location is more than preset range;If
It is that then the router sends prompting message to user terminal, and the prompting message includes the current location information.
Wherein, after the step of router sends prompting message to user terminal further include: the router is closed
Network connecting function.
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 judgement
Whether the current location matches with the historical position in historical record.
Wherein, before the step of router sends prompting message to user terminal further include: if the current location
More than preset range, the router judges whether the current scene image includes facial image;If so, the router
Judge whether the facial image matches with the pre-set image in facial image database;If mismatch, execute the router to
User terminal sends the step of prompting message.
Wherein, the prompting message includes the facial image.
Wherein, after the step of router sends prompting message to user terminal further include: described in router judgement
Whether current location 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 router, the road
It include processor and memory by device, the processor couples the memory, and the processor executes instruction at work
To realize such as above-mentioned method.
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 obtains current location by router
Information;Router judges whether current location is more than preset range;If so, router sends prompting message to user terminal
Method, reminding the current location of customer router is more than preset range, reminds the user that router is possible to lose, and then is dropped
It is low even to be eliminated a possibility that router is lost, improve the safety of router.
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: 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.
S120: router judges whether current location is more than preset range;
Optionally, in one embodiment, the current scene image obtained in router judgment step S110 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 S130.
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 S130 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.
S130: router sends prompting message to user terminal.
Specifically, router sends to user terminal and reminds letter when router judges that current location is more than preset range
Breath is more than preset range to remind the current location of customer router, reminds the user that router is possible to lose, and then drops
It is low even to be eliminated a possibility that router is lost.
Wherein, which includes the current location information of router, and user can be according to the current location information searching
Router carries out other processing, for example when router is stolen alarms.
Optionally, after router sends prompting message to user 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 obtains current location information by router;Router judges present bit
Whether set is more than preset range;If so, the method that router sends prompting message to user terminal, reminds customer router
Current location is more than preset range, reminds the user that router is possible to lose, and then reduction even has been eliminated router and has lost
A possibility that mistake, improves the safety of router.
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 S230 applied in example is identical as S110~S130 in above-mentioned first embodiment respectively, and details are not described herein, this
Router anti-lost method in embodiment further include:
S240: 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 S240 in Fig. 2, in an embodiment
In, step S240 is specifically included:
S2401: 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.
S2402: 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 S2403.
S2403: 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
It applies step S310, S320 in example and S350 is identical as step S110~S130 in above-mentioned first embodiment respectively, herein not
It repeats again, the router anti-lost method in the present embodiment further include:
S330: router judges whether current scene image includes facial image;
Specifically, router is judged by image recognition technology when current location is more than preset range in step S320
It whether include facial image in the current scene image obtained in step S310, if thening follow the steps S340 comprising facial image,
Otherwise, step S350 is executed.
S340: router judges whether facial image matches with the pre-set image in facial image database;
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, then terminate, if the pre-set image in facial image and facial image database mismatches, thens follow the steps the routing in S350
Device sends prompting message to user terminal.
Wherein, the prompting message in step S350 can also include above-mentioned facial image.
Further judge whether current scene image includes facial image by router in the present embodiment;If so, routing
Device judges whether facial image matches with the pre-set image in facial image database, and when mismatching, router is just to user terminal
The method for sending prompting message, improves the judgment accuracy of loss situation, prevents router from not losing and sending prompting message
The case where occur.
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 S430 applied in example is identical as step S110~S130 in above-mentioned first embodiment respectively, no longer superfluous herein
It states, the router anti-lost method in the present embodiment further include:
S440: 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 S450, otherwise terminate.
Wherein, preset threshold can be configured according to actually required, herein with no restrictions.
S450: 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 embodiment provided by the present application refering to Fig. 6, Fig. 6, the router packet in the present embodiment
Processor 510 and memory 520 are included, processor 510 is coupled with memory 520, and processor 510 is executed instruction at work with reality
Router anti-lost method in existing any of the above-described embodiment.
Wherein, processor 510 can also be known as CPU (Central Processing Unit, central processing unit).Place
Managing device 510 may be a kind of IC chip, the processing capacity with signal.Processor 510 can also be general processor,
Digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable patrol
Collect device, discrete gate or transistor logic, discrete hardware components.General processor can be microprocessor or this at
Reason device is also possible to any conventional processor, but is not limited only to this.
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.