CN108990056A - Wireless router and its control method, device, readable storage medium storing program for executing - Google Patents

Wireless router and its control method, device, readable storage medium storing program for executing Download PDF

Info

Publication number
CN108990056A
CN108990056A CN201810832447.3A CN201810832447A CN108990056A CN 108990056 A CN108990056 A CN 108990056A CN 201810832447 A CN201810832447 A CN 201810832447A CN 108990056 A CN108990056 A CN 108990056A
Authority
CN
China
Prior art keywords
wireless router
hardware address
white list
duration
device hardware
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.)
Pending
Application number
CN201810832447.3A
Other languages
Chinese (zh)
Inventor
夏涛
杨强
陈志刚
梅林海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
iFlytek Co Ltd
Original Assignee
iFlytek Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN201810832447.3A priority Critical patent/CN108990056A/en
Publication of CN108990056A publication Critical patent/CN108990056A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0203Power saving arrangements in the radio access network or backbone network of wireless communication networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application discloses a kind of wireless router and its control methods, device, readable storage medium storing program for executing, the application gets the device hardware address of access wireless router, and the device hardware address that will acquire is matched with preset white list, the target device hardware address for allowing to access is contained in the white list, pass through matching, if it is determined that being mismatched in white list with any one device hardware address, then there is no the demands that legitimate user accesses wireless router for explanation, therefore can control wireless router enters dormant state, in the case where not influencing legitimate user's normal use, achieve the purpose that reduce wireless router power consumption, simultaneously, after wireless router enters dormant state, illegal user can not also connect wireless router, to prevent loiter network, the generation of the behaviors such as snooping, protect the personal secrets of wireless router owner.The automatic opening of router is also easily realized simultaneously.

Description

Wireless router and its control method, device, readable storage medium storing program for executing
Technical field
This application involves wireless router technical fields, more specifically to a kind of wireless router and its controlling party Method, device, readable storage medium storing program for executing.
Background technique
With the development of science and technology more and more families, office and Condom have used wireless router, so that raw Living, work and amusement are more convenient and comfortable.
The characteristics of wireless router is misclosure, when user does not use, still can send wireless communication to periphery Number, cause the continuous service of wireless device that power consumption is brought to be lost.Meanwhile for illegal user, in wireless router work its Wireless router can also be connected by cracking trajectory etc., generate the illegal acts such as loiter network, snooping, destroy wireless router machine Main information security.
Summary of the invention
In view of this, being used this application provides a kind of wireless router and its control method, device, readable storage medium storing program for executing Wireless router power consumption is reduced in realizing, protects the purpose of wireless router owner personal secrets.
To achieve the goals above, it is proposed that scheme it is as follows:
A kind of wireless router control method, comprising:
Obtain the device hardware address of access wireless router;
The device hardware address that will acquire is matched with preset white list, comprising allowing to connect in the white list The target device hardware address entered;
If it is determined that mismatching in the white list with any one of device hardware address, then the wireless routing is controlled Device enters dormant state.
Preferably, further includes:
If it is determined that then controlling the wireless router with any one of device hardware address matching in the white list It opens.
Preferably, the device hardware address for obtaining access wireless router, comprising:
The outlet message information of the access device of virtual bridged network interface card forwarding in wireless router is obtained, it is described virtual bridged Network interface card is used to for the outlet message information of access device being forwarded to the wide area network wan interface of wireless router;
The device hardware address of access is extracted in the message information.
Preferably, the device hardware address that will acquire is matched with preset white list, comprising:
Service history based on wireless router, adjustment scanning obtain the duration of device hardware address, and in scanning duration Interior, the device hardware address that will acquire is matched with preset white list.
Preferably, the service history based on wireless router, adjustment scanning obtain the duration of device hardware address, and In scanning duration, the device hardware address that will acquire is matched with preset white list, comprising:
In the first setting scanning duration, the device hardware address that will acquire is matched with preset white list;
If it is determined that mismatching in the white list with any one of device hardware address, then matching time is attempted by first Number increases setting incremental value;
Judge whether the first trial matching times are more than preset matching frequency threshold value;
If being more than, executes and control the operation that the wireless router enters dormant state;
If not exceeded, then setting scanning duration for described first extends setting multiple, and returns and set described in execution first Surely it scans in duration, the device hardware address and preset white list that will acquire carry out matched operation.
Preferably, further includes:
If it is determined that then described first is attempted to match with any one of device hardware address matching in the white list Number and the first setting scanning duration are reset;And
When apart from waiting time is set at current time, the institute that in the first setting scanning duration, will acquire is executed It states device hardware address and preset white list carries out matched operation.
Preferably,
The product of a length of initial setting scanning duration and first duration factor when the first setting scanning, when described first The long factor is directly proportional to the history average service duration of the wireless router;
It is described to set waiting time as the product of initial setting waiting time and the second duration factor, second duration because The sub history average service duration with the wireless router is inversely proportional.
Preferably, the control wireless router is opened, comprising:
The environment message information that listens to of network interface card is obtained, and with extracting in the environment message information hardware of source Location;
The hardware address of the source of extraction is matched with the white list;
If it is determined that being matched in the white list with the hardware address of any one of source, then controls the network interface card and exit Listening mode, and control the wireless router and open.
Preferably, the hardware address of the source by extraction is matched with the white list, comprising:
In the second setting scanning duration, the hardware address of the source of extraction is matched with the white list;
This method further include:
If it is determined that mismatching in the white list with the hardware address of any one of source, then second is attempted to match Number increases setting incremental value;
Judge whether the second trial matching times are more than preset matching frequency threshold value;
If being more than, controls the network interface card and enter dormant state, and be again introduced into monitoring when reaching and setting sleep time Mode;
If not exceeded, then setting scanning duration for described second extends setting multiple, and returns and set described in execution second Surely it scans in duration, the hardware address of the source of extraction and the white list is subjected to matched operation.
Preferably,
The sleep time that sets as the product of initial setting sleep time and the third duration factor, the third duration because The sub history average service duration with the wireless router is inversely proportional.
A kind of wireless router control device, comprising:
Hardware address acquiring unit, for obtaining the device hardware address of access wireless router;
First white list matching unit, the device hardware address and preset white list progress for will acquire Match, the target device hardware address in the white list comprising allowing to access;
Suspend mode control unit, be used for if it is determined that in the white list with any one of device hardware address mismatch, It then controls the wireless router and enters dormant state.
A kind of wireless router, including memory and processor;
The memory, for storing program;
The processor realizes each of the wireless router control method as described in aforementioned for executing described program Step.
A kind of readable storage medium storing program for executing is stored thereon with computer program, real when the computer program is executed by processor Now each step of the wireless router control method as described in aforementioned.
It can be seen from the above technical scheme that wireless router control method provided by the embodiments of the present application, gets The device hardware address of wireless router is accessed, and the device hardware address that will acquire is matched with preset white list, it should The target device hardware address for allowing to access is contained in white list, passes through matching, however, it is determined that set in white list with any one Standby hardware address mismatches, then there is no the demands that legitimate user accesses wireless router for explanation, therefore can control no route Dormant state is entered by device, in the case where not influencing legitimate user's normal use, reaches the mesh for reducing wireless router power consumption , meanwhile, after wireless router enters dormant state, illegal user can not also connect wireless router, to prevent loiter network, peep The generation of the behaviors such as spy, protects the personal secrets of wireless router owner.The automatic opening of router is also easily realized simultaneously.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of wireless router control method flow chart disclosed in the embodiment of the present application;
Fig. 2 is a kind of partial process view of wireless router control method disclosed in the embodiment of the present application;
Fig. 3 is the partial process view of another kind wireless router control method disclosed in the embodiment of the present application;
Fig. 4 is a kind of wireless router controling device structure diagram disclosed in the embodiment of the present application;
Fig. 5 is a kind of hardware block diagram of wireless router disclosed in the embodiment of the present application.
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 embodiments are only a part of embodiments of the present 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.
Inventor reduces wireless router energy consumption to realize, prevents the generation of the behaviors such as loiter network, snooping, carries out Further investigation:
The thinking of initial stage is, wireless router is given to set dormancy time section, such as 12 points of every night to morning next day 6 Point is dormancy time section.Wireless router is when reaching setting dormancy time section, automatically into dormancy time, to reach reduction The purpose of energy consumption, while other people loiter networks, snooping can be also prevented in the period.
But there are still problems for this setup, i.e., after dormancy time section is fixed, user may be in the dormancy time There are still networking requirements in section, and are unable to satisfy this demand of user according to above-mentioned set-up mode, affect user and normally network.
Further research process, in order to solve above-mentioned pain spot, inventor expect again can by the intelligent terminals such as mobile phone with When control wireless router working condition, as user determine do not need networking when can be issued by terminal to wireless router Dormancy instruction, control wireless router carry out dormant state.When there are can be by terminal to no route when networking requirements by user The instruction for exiting dormant state is issued by device, control wireless router works normally.
But there are still problems for this setup, that is, need user frequently to pass through terminal and issue to wireless router Instruction, has been significantly greatly increased the operation of user, bad using physical examination.
Inventor continues deeper into research, finally proposes a solution, has been solved perfectly in above-mentioned R&D process each A problem.Wireless router control program disclosed in the present application is introduced followed by following embodiments.
In wireless router control program provided by the present application, it can be realized based on the processor in wireless router, it should Processor can be the CPU of the self-contained carry out business processing of wireless router, be also possible in the application embedded to wireless road By the software processing module in device system.Specific implementation main body can be configured by those skilled in the art, next in conjunction with attached drawing 1 Wireless router control process is introduced, as shown in Figure 1, wireless router control method may include:
Step S100, the device hardware address of access wireless router is obtained.
Specifically, the equipment for having access to wireless router generally has equipment unique designation: MAC Address (Media Access Control, hardware address).
In this step, the device hardware address of access wireless router is obtained, that is, obtains the access device of wireless router Hardware address.Wherein, the access device of wireless router is that is, access the electronic equipment of wireless router.Electronic equipment accesses nothing After line router, network can be connected by wireless router, and then carry out upload, the downloading etc. of data.
Step S110, the device hardware address that will acquire is matched with preset white list.
In the present embodiment, white list can be configured in advance, the target device hardware in the white list comprising allowing to access Location.That is, the application will can allow to access in the hardware address typing white list of target device of wireless router in advance, The target device hardware address for including in white list can be regarded as the hardware address of VIP equipment.
Different according to the usage scenario of wireless router, the set-up mode of white list may also be different, and such as family is made It, can will be in the hardware address typing white list of the equipment of kinsfolk with scene;It, can be by meeting for meeting usage scenario In the hardware address typing white list of the equipment of associated member, etc..
For the typing mode of white list, it can be and white list is carried out by the white list administration page that wireless router provides Management, including it is newly-increased, delete hardware address etc..In addition to this it is possible to typing otherwise, such as in starting white list When management function, wireless router is by the hardware address typing for the equipment being successfully connected into white list.Here start white list Management function can be the function that the owner of wireless router opens, or in the white list entry time of setting etc..
It is understood that equipment corresponding for the hardware address being stored in white list, belongs to legitimate device, it is corresponding The use of user is illegal user, in addition to this other equipment are considered as illegality equipment, corresponding illegal user.
In this step, the device hardware address of the step S100 access wireless router got is carried out with white list Matching.The matching operation is considered as judging that each device hardware address whether there is in white list.
Be present in white list if there is at least one device hardware address, be then considered as successful match, i.e., white name Any one device hardware address matching of Dan Zhongyu.If be not present and any one device hardware address matching in white list Hardware address, then be considered as that it fails to match, i.e., mismatches in white list with any one device hardware address.
In the case where successful match, it is believed that have legitimate device that wireless router is used, what it fails to match In the case of, it is believed that wireless router is used in no legitimate device.
Step S120, if it is determined that mismatching in the white list with any one of device hardware address, then institute is controlled It states wireless router and enters dormant state.
It is understood that in the case where it fails to match, it is believed that wireless router is used in no legitimate device, because This in order to reduce power consumption, while being avoided illegality equipment loiter network, snooping, be can control wireless router and is entered dormant state.Into The wireless router of dormant state will be unable to access device, and equipment is not available the service of wireless router offer yet.Certainly may be used With understanding, the power consumption into the wireless router of dormant state will be lower than the function of the wireless router under normal operating conditions Consumption.
Wireless router control method provided by the embodiments of the present application is determining that there is no legitimate users to access wireless routing When the demand of device, it can control wireless router and enter dormant state, in the case where not influencing legitimate user's normal use, reach To the purpose for reducing wireless router power consumption, meanwhile, after wireless router enters dormant state, illegal user can not also connect nothing Line router protects the personal secrets of wireless router owner to prevent the generation of the behaviors such as loiter network, snooping.Simultaneously Easily realize the automatic opening of router.
Optionally, for above-mentioned steps S100, the process for obtaining the device hardware address of access wireless router is situated between It continues.
It will do it the operation such as upload, downloading of message data after equipment access wireless router.It can be in the present embodiment The message information for obtaining wireless router forwarding all includes generally device hardware address in the message information, therefore can be Extract equipment hardware address in message information.
Here, the present embodiment can only obtain the outlet message information namely uplink message information of wireless router forwarding. The present embodiment can also only obtain the entrance message information namely downlink message information of wireless router forwarding.It is, of course, also possible to The outlet message information and entrance message information of wireless router forwarding are obtained simultaneously.
It is understood that the data volume of uplink message information and downlink message information is big for different usage scenarios Small difference, the data volume of ordinary circumstance downlink message information are greater than the data volume of uplink message information, therefore in order to reduce report Literary information processing capacity, the present embodiment can choose the outlet message information for obtaining wireless router forwarding.Pass through outlet message letter Source MAC Address in breath, can be obtained the MAC Address of access device.
It should be noted that can create virtual bridged network interface card after wireless router starting, which is used for The forwarding of network message, all wireless outlet message informations of wireless router can be all forwarded to extensively by the virtual bridged network interface card Domain net wan interface, therefore the outlet message information of the access device of the available virtual bridged network interface card forwarding of the present embodiment.
Further optional, to abovementioned steps S110-S120, white list matches and controls when it fails to match wireless router The process of suspend mode is introduced.
The application is to be scanned in real time to the message of wireless router forwarding, therefrom to extract access device physically Location.In order to avoid at a time or in very short time accessing wireless router without target device, and mistakenly will be without route By device suspend mode, the problem of user normally surfs the Internet is influenced, scanning duration and matching times threshold value can be set in the application.Wherein, It scans duration and carries out the matched duration of white list for limiting, that is, in scanning duration, it is persistently hard to the equipment obtained in real time Part address carries out white list matching.
In the present embodiment, can based on the service history of wireless router, adjust scanning obtain device hardware address when It is long, and in scanning duration, the device hardware address that will acquire is matched with preset white list.
As shown in connection with fig. 2, the process that above-mentioned adjustment scanning duration and white list matched may include:
Step S200, in the first setting scanning duration, white list matching is carried out to the device hardware address of acquisition;
Step S210, successful match is judged whether according to matching result;
Specifically, however, it is determined that mismatched in the white list with any one of device hardware address, then show to match Failure, otherwise, successful match.When determining that it fails to match, step S220 is executed;
Step S220, matching times are attempted by first and increases setting incremental value.
Wherein, setting incremental value can be by user configuration, such as 1 or other numerical value.
Step S230, judge whether the first trial matching times are more than preset matching frequency threshold value.
The present embodiment limits matching times, can be set under normal circumstances 3 times by presetting matching times threshold value Or other numerical value.If it is determined that first attempts matching times more than preset matching frequency threshold value, S240 is thened follow the steps, otherwise, is held Row step S250;
Step S240, it controls the wireless router and enters dormant state.
It is understood that if the first trial matching times have been over preset matching times threshold value, then it is assumed that There is no target devices to access wireless router in a period of time, therefore can control wireless router and enter dormant state.
Step S250, the first setting scanning duration is extended into setting multiple, and returns to step S200.
It is understood that if the first trial matching times are less than preset matching times threshold value, in order to avoid Accidentally suspend mode wireless router, can return and continue to execute white list matching process.Here, in order to further ensure avoid accidentally suspend mode First setting scanning duration can be extended setting multiple by wireless router.
On the basis of the above, as shown in connection with fig. 3, step S300-S350 and abovementioned steps S200-S250 mono- are a pair of in Fig. 3 It answers, referring in detail to foregoing description, details are not described herein again.Embodiment corresponding compared to Fig. 2 is further increased in step in Fig. 3 Rapid S310 judges that processing logic when successful match can execute step that is, when determining successful match according to matching result S360 resets the first trial matching times and the first setting scanning duration;And it is set apart from current time When determining waiting time, execute the device hardware address that in the first setting scanning duration, will acquire with it is preset white List carries out matched operation.
Specifically, if successful match, representative has target device to access wireless router, it is therefore desirable to taste first Examination matching times and the first setting scanning duration are reset.Meanwhile matching operation is executed again after setting waiting time.
Above-mentioned first setting scanning duration and setting waiting time can be preset fixed value.In addition to this it is possible to The first duration factor and the second duration factor are determined according to the history average service duration of wireless router, and initial setting is swept The product of duration and the first duration factor is retouched as the first setting scanning duration.To initially set waiting time and the second duration because The product of son is as setting waiting time.
The first duration factor is directly proportional to the history average service duration of wireless router, the second duration factor and no route It is inversely proportional by the history average service duration of device.
Next the method for determination of a kind of first duration factor-beta 1 and the second duration factor-beta 1 is introduced.
It is positive and negative with the history average service duration of wireless router according to the first duration factor-beta 1, the second duration factor-beta 1 Than relationship, the first duration factor-beta 1 can be determined as to the inverse of the second duration factor-beta 1, it may be assumed that β 1=1/ β 2.
Based on this, the method for determination of the second duration factor-beta 2 is introduced, and then can be into one according to the relationship of above-mentioned β 1 and β 2 It walks and determines β 1.
Assuming that the time is divided into several periods according to T, each period is divided into N number of period.Defining β 2 is one The vector of 1*N indicates the average usage frequency of wireless router in each period in each period (when usage frequency and service Length is directly proportional).By taking T is day, N is 24 as an example, then β 2 is the vector of a 1*24, indicates each hour wireless router in one day Usage frequency.
By being counted to the usage frequency in each period in wireless router history each period, determine each Average usage frequency Feq of the period in each history cyclex, x indicate a cycle in x-th of period, x value range For 1-N.
Then the second duration factor-beta 2 corresponding with x-th of periodxDetermination formula it is as follows:
Wherein, θ and u is impact factor, is set by the user its value.
Show for example, work as u=2, when θ=0.5, it is assumed that Feq when x=11=3, then substituting into above-mentioned can be calculated β 21= 0.5+0.5/4=0.625.
For another example, it is assumed that Feq when x=11=1, then substituting into above-mentioned can be calculated β 21=0.5+0.5*4=2.5.
It can be seen that the second duration factor is increasing, corresponding as usage frequency average in a period is reduced Initial setting waiting time and the product of the second duration factor are also increasing, meet rule.
Further, the process that control wireless router enters dormant state in above-mentioned steps is illustrated.
Power consumption will be greatly reduced after wireless router enters dormant state.If wireless router has two or more Network interface card can then select one or more network interface cards from all network interface cards, and remaining network interface card controlled in addition to selected network interface card is equal Into dormant state.Certainly, under normal circumstances, selected network interface card has one.Other than network interface card, wireless router is also deposited In remaining function services module, such as authentication service module, wireless management middleware module, can also be controlled to reduce energy consumption These radio function service modules also enter dormant state.
Further, for selected network interface card, it can control it into listening mode.Specifically, if selected network interface card Listening mode is supported in driving, then system command can be used and control it into listening mode.If selected trawl performance does not prop up Listening mode is held, then can unload the driving and loads the trawl performance for supporting listening mode, and then is driven by the network interface card of load Dynamic setting network interface card enters listening mode.
Into the selected network interface card of listening mode, the message of receiving will not be forwarded, but directly abandoned by system.Choosing Fixed network interface card in the listen mode can monitor the message information in ambient enviroment.Based on this, in above-described embodiment introduction Control router enter on the basis of dormant state, the embodiment of the present application can also pass through certain policy control wireless router It opens, detailed process may include:
According to the device hardware address of acquisition and the matching result of white list, however, it is determined that in the white list with any one The device hardware address matching then controls the wireless router and opens.
The control wireless router open process can based on it is above-mentioned in listening mode network interface card realization, specifically, The environment message information that the available selected network interface card of the application listens to, and source is extracted in the environment message information Hardware address.Further, the hardware address of the source of extraction is matched with aforementioned white list.If it is determined that described white It is matched in list with the hardware address of any one of source, then controls the selected network interface card and exit listening mode, and control The wireless router is made to wake up.
Specifically, the environment message information that selected network interface card listens to carries 802.11 description informations, the description of this part Include source hardware address in information, therefore the hardware address of source can be extracted from this part description information, and with white name Singly matched.
Wireless router wakeup process may include: to wake up network interface card, channel is arranged, reinitializes authentication service etc..
The strategy that wireless router wakes up in the present embodiment is similar with aforementioned wireless router dormancy strategy, is specifically inciting somebody to action When the hardware address of the source of extraction is matched with white list, it can be in the second setting scanning duration, by the institute of extraction The hardware address for stating source is matched with the white list.Here the second setting scanning duration can be with aforementioned first setting It is identical to scan duration, or different.
Further, the present embodiment is according to the hardware address of the source of extraction and the matching result of the white list, If it is determined that mismatching in the white list with the hardware address of any one of source, then matching times can be attempted by second Increase setting incremental value.Further, judge whether the second trial matching times are more than preset matching frequency threshold value;If being more than, It controls the selected network interface card and enters dormant state, and be again introduced into listening mode when reaching and setting sleep time;If not surpassing It crosses, then the second setting scanning duration is extended into setting multiple, and return to execution in the second setting scanning duration, will extract The source hardware address and the white list carry out matched operation.
Above-mentioned second setting scanning duration can be preset fixed value, in addition to this it is possible to which scanning will initially be set The product of duration and the first duration factor of aforementioned determination is as the first setting scanning duration.
Further, above-mentioned sleep time can be preset fixed value, in addition to this it is possible to according to wireless router History average service duration determines third duration factor-beta 3, and the product that will initially set sleep time and third duration factor-beta 3 As setting sleep time.Wherein, third duration factor-beta 3 and the history average service duration of the wireless router are inversely proportional.
Optionally, third duration factor-beta 3 can be equal to the second duration factor-beta 2.The determination process of second duration factor-beta 2 It is referred to previous embodiment introduction, details are not described herein again.
Wireless router control device provided by the embodiments of the present application is described below, wireless routing described below Device control device can correspond to each other reference with above-described wireless router control method.
It is a kind of wireless router controling device structure diagram disclosed in the embodiment of the present application referring to Fig. 4, Fig. 4.Such as Fig. 4 It is shown, the apparatus may include:
Hardware address acquiring unit 11, for obtaining the device hardware address of access wireless router;
First white list matching unit 12, the device hardware address and preset white list progress for will acquire Match, the target device hardware address in the white list comprising allowing to access;
Suspend mode control unit 13 is used for if it is determined that in the white list not with any one of device hardware address Match, then controls the wireless router and enter dormant state.
Optionally, device disclosed in the embodiment of the present application can also include:
First open control unit, be used for if it is determined that in the white list with any one of device hardware address Match, then controls the wireless router and open.
Optionally, the hardware address acquiring unit obtains the process of the device hardware address of access wireless router, can To include:
Obtain the message information of wireless router forwarding;
The extract equipment hardware address in the message information.
Optionally, the hardware address acquiring unit obtains the process of the message information of wireless router forwarding, can wrap It includes:
The outlet message information of the access device of virtual bridged network interface card forwarding in wireless router is obtained, it is described virtual bridged Network interface card is used to for the outlet message information of access device being forwarded to the wide area network wan interface of wireless router.
Optionally, the first white list matching unit will acquire the device hardware address and preset white list into The matched process of row may include:
Service history based on wireless router, adjustment scanning obtain the duration of device hardware address, and in scanning duration Interior, the device hardware address that will acquire is matched with preset white list.
Optionally, the service history of the first white list matching unit based on wireless router, adjustment scanning, which obtains, to be set The duration of standby hardware address, and the device hardware address that will acquire in scanning duration and preset white list progress The process matched may include:
In the first setting scanning duration, the device hardware address that will acquire is matched with preset white list;
If it is determined that mismatching in the white list with any one of device hardware address, then matching time is attempted by first Number increases setting incremental value;
Judge whether the first trial matching times are more than preset matching frequency threshold value;
If being more than, executes and control the operation that the wireless router enters dormant state;
If not exceeded, then setting scanning duration for described first extends setting multiple, and returns and set described in execution first Surely it scans in duration, the device hardware address and preset white list that will acquire carry out matched operation.
Further, the device of the application can also include: parameter reset cell, be used for if it is determined that in the white list with Any one of device hardware address matching then attempts matching times for described first and the first setting scanning duration is equal Resetting;And when apart from waiting time is set at current time, jump to the first white list matching unit, it executes described the In one setting scanning duration, the device hardware address and preset white list that will acquire carry out matched operation.
Optionally, above-mentioned first setting scanning duration can be multiplying for initial setting scanning duration and the first duration factor Product, the first duration factor are directly proportional to the history average service duration of the wireless router.Above-mentioned setting waiting time It can be the product of initial setting waiting time and the second duration factor, the second duration factor and the wireless router History average service duration is inversely proportional.
Optionally, above-mentioned suspend mode control unit controls the process that the wireless router enters dormant state, may include:
It controls in more than two network interface cards of the wireless router, other network interface cards in addition to selected network interface card enter Dormant state, and, the radio function service module for controlling the wireless router enters dormant state;
It controls the selected network interface card and enters listening mode.
Further, above-mentioned first the process that control unit control wireless router is opened is opened, may include:
The environment message information that the selected network interface card listens to is obtained, and extracts source in the environment message information Hardware address;
The hardware address of the source of extraction is matched with the white list;
If it is determined that matching in the white list with the hardware address of any one of source, then the selected net is controlled Card exits listening mode, and controls the wireless router and open.
Optionally, above-mentioned first control unit is opened by the hardware address of the source of extraction and white list progress Matched process may include:
In the second setting scanning duration, the hardware address of the source of extraction is matched with the white list, Based on this, the device of the application can also include: the second unlatching control unit, be used for: if it is determined that in the white list and arbitrarily The hardware address of one source mismatches, then attempts matching times for second and increase setting incremental value;
Judge whether the second trial matching times are more than preset matching frequency threshold value;
If being more than, control the selected network interface card and enter dormant state, and reach set sleep time when again into Enter listening mode;
If not exceeded, the second setting scanning duration is then extended setting multiple, and it is single to jump to the first unlatching control Member, execution is described in the second setting scanning duration, by the hardware address of the source of extraction and white list progress The operation matched.
Optionally, above-mentioned setting sleep time can be the product of initial setting sleep time and the third duration factor, institute It states the third duration factor and the history average service duration of the wireless router is inversely proportional.
Wireless router control device provided by the embodiments of the present application can be applied to wireless router.Optionally, Fig. 5 is shown The hardware block diagram of wireless router, referring to Fig. 5, the hardware configuration of wireless router may include: at least one processing Device 1, at least one communication interface 2, at least one processor 3 and at least one communication bus 4;
In the embodiment of the present application, processor 1, communication interface 2, memory 3, communication bus 4 quantity be at least one, And processor 1, communication interface 2, memory 3 complete mutual communication by communication bus 4;
Processor 1 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road etc.;
Memory 3 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile Memory) etc., a for example, at least magnetic disk storage;
Wherein, memory is stored with program, the program that processor can call memory to store, and described program is used for:
Obtain the device hardware address of access wireless router;
The device hardware address that will acquire is matched with preset white list, comprising allowing to connect in the white list The target device hardware address entered;
If it is determined that mismatching in the white list with any one of device hardware address, then the wireless routing is controlled Device enters dormant state.
Optionally, the refinement function of described program and extension function can refer to above description.
The embodiment of the present application also provides a kind of readable storage medium storing program for executing, which can be stored with and hold suitable for processor Capable program, described program are used for:
Obtain the device hardware address of access wireless router;
The device hardware address that will acquire is matched with preset white list, comprising allowing to connect in the white list The target device hardware address entered;
If it is determined that mismatching in the white list with any one of device hardware address, then the wireless routing is controlled Device enters dormant state.
Optionally, the refinement function of described program and extension function can refer to above description.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (13)

1. a kind of wireless router control method characterized by comprising
Obtain the device hardware address of access wireless router;
The device hardware address that will acquire is matched with preset white list, comprising allowing access in the white list Target device hardware address;
If it is determined that in the white list with any one of device hardware address mismatch, then control the wireless router into Enter dormant state.
2. the method according to claim 1, wherein further include:
If it is determined that then controlling the wireless router with any one of device hardware address matching in the white list and opening It opens.
3. the method according to claim 1, wherein the acquisition is with accessing the device hardware of wireless router Location, comprising:
Obtain the outlet message information of the access device of virtual bridged network interface card forwarding in wireless router, the virtual bridged network interface card The wide area network wan interface of wireless router is forwarded to for the outlet message information by access device;
The device hardware address of access is extracted in the message information.
4. method according to claim 1 or 2, which is characterized in that the device hardware address that will acquire and pre- The white list set is matched, comprising:
Service history based on wireless router, adjustment scanning obtain the duration of device hardware address, and in scanning duration, will The device hardware address obtained is matched with preset white list.
5. according to the method described in claim 4, it is characterized in that, the service history based on wireless router, adjustment are swept Retouch the duration for obtaining device hardware address, and the device hardware address that will acquire in scanning duration and preset white name Singly matched, comprising:
In the first setting scanning duration, the device hardware address that will acquire is matched with preset white list;
If it is determined that being mismatched in the white list with any one of device hardware address, then matching times are attempted by first and increased It adds and determines incremental value;
Judge whether the first trial matching times are more than preset matching frequency threshold value;
If being more than, executes and control the operation that the wireless router enters dormant state;
If not exceeded, first setting, which is then scanned duration, extends setting multiple, and returns to described set first of execution and sweep It retouches in duration, the device hardware address that will acquire and preset white list carry out matched operation.
6. according to the method described in claim 5, it is characterized by further comprising:
If it is determined that then attempting matching times for described first with any one of device hardware address matching in the white list And the first setting scanning duration is reset;And
When apart from waiting time is set at current time, execute it is described in the first setting scanning duration, will acquire described set Standby hardware address and preset white list carry out matched operation.
7. according to the method described in claim 6, it is characterized in that,
It is described first setting scanning when it is a length of it is initial setting scanning duration and the first duration factor product, first duration because It is sub directly proportional to the history average service duration of the wireless router;
It is described to set waiting time as the product of initial setting waiting time and the second duration factor, the second duration factor and The history average service duration of the wireless router is inversely proportional.
8. according to the method described in claim 2, it is characterized in that, the control wireless router is opened, comprising:
The environment message information that network interface card listens to is obtained, and extracts the hardware address of source in the environment message information;
The hardware address of the source of extraction is matched with the white list;
If it is determined that being matched in the white list with the hardware address of any one of source, then controls the network interface card and exit monitoring Mode, and control the wireless router and open.
9. according to the method described in claim 8, it is characterized in that, the hardware address of the source by extraction with it is described White list is matched, comprising:
In the second setting scanning duration, the hardware address of the source of extraction is matched with the white list;
This method further include:
If it is determined that mismatching in the white list with the hardware address of any one of source, then matching times are attempted by second Increase setting incremental value;
Judge whether the second trial matching times are more than preset matching frequency threshold value;
If being more than, controls the network interface card and enter dormant state, and be again introduced into listening mode when reaching and setting sleep time;
If not exceeded, second setting, which is then scanned duration, extends setting multiple, and returns to described set second of execution and sweep It retouches in duration, the hardware address of the source of extraction and the white list is subjected to matched operation.
10. according to the method described in claim 9, it is characterized in that,
The sleep time that sets as the product of initial setting sleep time and the third duration factor, the third duration factor and The history average service duration of the wireless router is inversely proportional.
11. a kind of wireless router control device characterized by comprising
Hardware address acquiring unit, for obtaining the device hardware address of access wireless router;
First white list matching unit, the device hardware address for will acquire are matched with preset white list, institute State the target device hardware address in white list comprising allowing to access;
Suspend mode control unit is used for if it is determined that then controlling with any one of device hardware address mismatch in the white list It makes the wireless router and enters dormant state.
12. a kind of wireless router, which is characterized in that including memory and processor;
The memory, for storing program;
The processor realizes such as wireless router control of any of claims 1-10 for executing described program Each step of method processed.
13. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed When device executes, each step such as wireless router control method of any of claims 1-10 is realized.
CN201810832447.3A 2018-07-26 2018-07-26 Wireless router and its control method, device, readable storage medium storing program for executing Pending CN108990056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810832447.3A CN108990056A (en) 2018-07-26 2018-07-26 Wireless router and its control method, device, readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810832447.3A CN108990056A (en) 2018-07-26 2018-07-26 Wireless router and its control method, device, readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN108990056A true CN108990056A (en) 2018-12-11

Family

ID=64550947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810832447.3A Pending CN108990056A (en) 2018-07-26 2018-07-26 Wireless router and its control method, device, readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN108990056A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838216A (en) * 2019-11-27 2020-02-25 太仓市同维电子有限公司 Method for monitoring indoor invasion through wireless router
CN112153631A (en) * 2019-06-28 2020-12-29 北京奇虎科技有限公司 Method and device for identifying illegal intrusion and router
CN113038579A (en) * 2021-02-26 2021-06-25 联想(北京)有限公司 Processing method and device
CN114513792A (en) * 2022-04-13 2022-05-17 优游宝科技(深圳)有限公司 Remote network control method and device based on eSIM card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265702A (en) * 2011-05-30 2011-11-30 华为终端有限公司 Stand-by method for access point and access point
US8532116B2 (en) * 2009-07-21 2013-09-10 Cisco Technology, Inc. Extended subnets
CN104469915A (en) * 2014-12-24 2015-03-25 北京极科极客科技有限公司 Intelligent sleep method and device for wireless router
CN105246138A (en) * 2015-09-11 2016-01-13 小米科技有限责任公司 Control method and device of Internet-of-things device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8532116B2 (en) * 2009-07-21 2013-09-10 Cisco Technology, Inc. Extended subnets
CN102265702A (en) * 2011-05-30 2011-11-30 华为终端有限公司 Stand-by method for access point and access point
CN104469915A (en) * 2014-12-24 2015-03-25 北京极科极客科技有限公司 Intelligent sleep method and device for wireless router
CN105246138A (en) * 2015-09-11 2016-01-13 小米科技有限责任公司 Control method and device of Internet-of-things device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153631A (en) * 2019-06-28 2020-12-29 北京奇虎科技有限公司 Method and device for identifying illegal intrusion and router
CN110838216A (en) * 2019-11-27 2020-02-25 太仓市同维电子有限公司 Method for monitoring indoor invasion through wireless router
CN113038579A (en) * 2021-02-26 2021-06-25 联想(北京)有限公司 Processing method and device
CN114513792A (en) * 2022-04-13 2022-05-17 优游宝科技(深圳)有限公司 Remote network control method and device based on eSIM card

Similar Documents

Publication Publication Date Title
CN108990056A (en) Wireless router and its control method, device, readable storage medium storing program for executing
US9442555B2 (en) Method of control of an access point of a home gateway of a home network
CN102668510B (en) Effective service advertisement and discovery in Peer-To-Peer environment
Konorski A game-theoretic study of CSMA/CA under a backoff attack
US7636577B2 (en) Method and apparatus to implement efficient paging in a wireless network
CN101938810B (en) Permanent dedicated random access preambles for femtocell
DE112005003205B4 (en) Hibernation Management
EP1955560A1 (en) System and method for power conservation in a wireless device
CN109448178A (en) A kind of low power-consumption intelligent door-locking system and its control method
CN114067464B (en) Intelligent door lock, awakening method thereof, network equipment and electronic equipment
CN106412845A (en) Dormancy method and apparatus of wireless fidelity Wi-Fi device
CN101772140A (en) Self-adaption energy saving method and business system having self-adaption energy saving function
CN107181653A (en) Intelligent home device match somebody with somebody network method and intelligent domestic system
EP1835770A3 (en) Power management for subscriber identity module
CN103563438B (en) Communication means, device and system
CN109246809A (en) A kind of terminal power saving method and system
CN104063316B (en) The method of testing and device of a kind of application
CN107820298A (en) Wireless network management method, wireless network management device and intelligent terminal
CN106406499A (en) An aligned awakening method and device based on a terminal system
CN110022596A (en) A kind of configuration method of terminal standby state, device and management platform
CN107332740A (en) A kind of network detecting method, network detection means and intelligent terminal
CN111343705B (en) Intelligent energy-saving method for 5G communication network element
TWI342136B (en) Wi-fi power saving method
CN105848260B (en) Power saving method and power saving system based on data network control
CN107087299A (en) Wireless networking control method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211

RJ01 Rejection of invention patent application after publication