CN107508693A - Router control method, device and power supply adaptor, router - Google Patents
Router control method, device and power supply adaptor, router Download PDFInfo
- Publication number
- CN107508693A CN107508693A CN201610416538.XA CN201610416538A CN107508693A CN 107508693 A CN107508693 A CN 107508693A CN 201610416538 A CN201610416538 A CN 201610416538A CN 107508693 A CN107508693 A CN 107508693A
- Authority
- CN
- China
- Prior art keywords
- router
- network
- wireless network
- access parameter
- power supply
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/14—Routing performance; Theoretical aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/56—Routing software
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of router control method, device and power supply adaptor, router, the wireless network provided according to the network parameter couple in router of router, the running status of monitoring wireless network, when monitoring that Network Abnormal occurs in wireless network, control router is restarted.The direct restarter in Network Abnormal can be realized by the implementation of this method, it is manually operated without user, there is good Consumer's Experience.
Description
Technical field
The present invention relates to field of network communication, more particularly to a kind of router control method, device and power supply to fit
Orchestration, router.
Background technology
Router and popularized in office space and family;Present most of router and departing from having
The state of line router, most router can all have wifi (Wireless-Fidelity, Wireless Fidelity) hairs
Emitter, the public network of router can be used in the form of wireless network for the equipment of various support wireless networks,
Including notebook computer, mobile phone, tablet personal computer or other equipment for carrying wireless network card.Present is most
Number router is after installing, and power-on would not be in power-off shutdown, and what can be continued works always, but
It is that working long hours for current router can all have the problem of stability, has certain router to devise and guard the gate
Dog, if system in case of system halt can restart automatically, more routers do not have house dog then, can only hand if crashed
Dynamic restarting equipment.
There is no the router of house dog to restart manually after going wrong;Even there is the route of house dog
Device, nor all problems all can restarter, can just restart only in the case of system in case of system halt and set
Standby, when non-deadlock, for example some software module is abnormal, and wifi chip is abnormal, at this time house dog
Will not restarting equipment, can only after user pinpoints the problems manual restarting equipment, Consumer's Experience it is very poor.
The content of the invention
The embodiments of the invention provide a kind of router control method, device and power supply adaptor, router,
Solve the problems, such as automatically not restarting when Network Abnormal occurs in router in the prior art.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of router control method, including:
The wireless network provided according to the access parameter of router, couple in router;
Monitor the running status of the wireless network;
When monitoring that Network Abnormal occurs in the wireless network, the router is controlled to restart.
In addition, the embodiment of the present invention additionally provides a kind of router control device, including:
Network monitoring module, the wireless network provided for the access parameter according to router, couple in router,
And monitor the running status of the wireless network;
Energy supply control module, for when monitoring that Network Abnormal occurs in the wireless network, controlling the road
Opened by thinking highly of.
In addition, the embodiment of the present invention additionally provides a kind of power supply adaptor, including wireless chip, controller,
The wireless chip is used for the access parameter according to router, the wireless network that couple in router provides, and supervises
Survey the running status of the wireless network;The controller is used to monitor that Network Abnormal occurs in wireless network
When, control the router to restart.
In addition, the embodiment of the present invention additionally provides a kind of router, including router body and processor;Institute
Processor is stated for the access parameter according to the router body, the wireless network of couple in router body offer
Network, the network operation state of the wireless network is monitored, and monitoring that it is different that network occurs in the wireless network
Chang Shi, the router is controlled to restart.
In addition, the embodiment of the present invention additionally provides a kind of computer-readable storage medium, deposited in computer-readable storage medium
Computer executable instructions are contained, computer executable instructions are used to perform above-mentioned router control method.
Beneficial effects of the present invention:
The invention provides a kind of router control method, device and power supply adaptor, router, according to road
The wireless network provided by the access parameter couple in router of device, the running status of monitoring wireless network, works as prison
When measuring Network Abnormal, control router is restarted;So can in Network Abnormal direct restarter,
It is manually operated without user, there is good Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of flow chart for router control method that first embodiment of the invention provides;
Fig. 2 is a kind of router control device schematic diagram that second embodiment of the invention provides;
Fig. 3 is a kind of router topology schematic diagram that third embodiment of the invention provides;
Fig. 4 is that fourth embodiment of the invention provides a kind of structural representation of power supply adaptor;
Fig. 5 is a kind of router topology schematic diagram that fifth embodiment of the invention provides;
Fig. 6 is a kind of router control method signal flow diagram that sixth embodiment of the invention provides.
Embodiment
Inventive conception is that:The wireless network provided by the access parameter couple in router of router,
If Network Abnormal occurs in wireless network, i.e. network is obstructed, then controls router to restart, without user's hand
Dynamic to restart, fault verification scope is big, there is good Consumer's Experience.
The specific implementation to the present invention is described further below in conjunction with the accompanying drawings.
First embodiment
A kind of router control method is present embodiments provided, refer to Fig. 1, including:
S101, the access parameter according to router, the wireless network that couple in router provides;
S102, the monitoring wireless network running status;
S103, when monitoring that Network Abnormal occurs in the wireless network, control the router to restart.
Router distributes to outer net multiple terminals in the LAN of router formation, and these terminals can lead to
The LAN optimization public network that router is provided is crossed, so as to realize interacting between public network.Router with
The SSID (Service Set Identifier, service set) and PASSWORD of router can be included when putting
(password);Wherein, popular to say, the SSID of router may be considered the network that router is provided
Title;Equipment in the LAN that router is formed can access public network by SSID and PASSWORD,
That is, the SSID and PASSWORD of router are the access parameters of router.It is worth noting that,
It is not that each router can set PASSWORD, some common routers, is typically to be not provided with
PASSWORD's, but this nor affects on the access of network, i.e. the access parameter of router comprises at least
SSID, PASSWORD can also be included in some cases.
Router its internal wireless chip by network by wireless network by way of be shared with other equipment;
Within the specific limits, other equipment can pass through the wireless chip institute of the access parameter couple in router of router
The network of offer, so as to access internet.As for the outer net of router, its access form does not limit, can
By be by cable network in a manner of the wireless network that accesses or access, router can't be influenceed
The other equipment outer net being shared with the LAN of router.
After router startup, the wireless network that is provided by the access parameter couple in router of router,
The running status of monitoring wireless network;It should be noted that the wireless network that couple in router provides needs
In the wireless network coverage of router;The way of the running status of monitoring wireless network is typically that timing is visited
Some server on internet, such as Google or Baidu are asked, if server has response, is illustrated
Network is normal, does not do any operation, if accessing server failure, illustrates Network Abnormal.
After the wireless network provided according to access parameter couple in router, under normal circumstances, it is possible to public affairs
Net communicate;Proper communication includes up-link normally and downlink is normal;In practical communication process
In, up-link is determined according to the working condition of the equipment of user side, and downlink is then by server
What the working condition of the equipment of side determined;The working condition of the equipment of user side mainly includes the work of router
The connection of LAN between situation, and router and terminal;The working condition of the equipment of network side
The working condition of base station, and the working condition of server in station may then be included.
That is, after accessing network according to access parameter, Network Abnormal is probably by uplink network failure
And/or caused by downlink network failure.As long as and monitor Network Abnormal, just control router restart.Can
Choosing, the operation opened is thought highly of to route, the power supply of control router can be included, that is, disconnects the electricity of router
Source, then switch on power, it is possible to realization is restarted to router.
Network Abnormal, including network connection disconnection or network connection time-out;Network connection disconnects expression can not
Connect network, it may be possible to the problem of router side, it is also possible to the problem of server end;Network connection time-out,
Then refer to not obtain the response of server within the stand-by period of program acquiescence, there is network the reason for its is possible
Obstruction;Unstable networks;System available resources are too low;Equipment connection is unstable;System is numerous during network registry
It is busy, it can not respond;Network is excessively slow;Malware, computer virus, computer wooden horse etc. are infected.
Router in the course of the work, may cause internal memory to exhaust due to deadlock, program exception, internal memory spilling
Network Abnormal is caused Deng a variety of causes;When router goes wrong, restart often can and solve big portion
The problems such as wireless chip failure, software fault in point problem, including router, system in case of system halt;If
There is failure in downlink, for example failure, or base station fault, i.e. network occurs in server in station
Abnormal is not that router causes in itself, it is clear that restarter can not solve the problem, then,
When monitoring that Network Abnormal occurs in wireless network, whether the time interval that judging distance last time restarts is less than in advance
If the time, if so, not restarting then, prevent that router is ceaselessly restarted under abnormal conditions, user can not satisfy the need
Configured by device and fault location.Certainly, if it is not, then normal restarter.
In addition, the access parameter of router is not unalterable;And change it in router access parameter
Afterwards, used by the running status of monitoring wireless network the access parameter of router also should with its change and
Change, therefore, the router control method in the present embodiment also includes:Router is obtained according to preset rules
Access parameter.Wherein, preset rules can have a variety of, first, can be including timing, periodic
Obtain the access parameter of router;Second, when the access parameter that can be included in router changes, obtain
Take the access parameter after router change;Third, can be the combination of above two scheme, i.e., periodically
Acquisition router access parameter outside, can also router access parameter change when obtain change in time
Access parameter after change.Timely update monitoring wireless network running status used by router access
Parameter, avoid because router access parameter and monitoring wireless network running status access parameter not
Network Abnormal caused by consistent, and then cause to restart the unnecessary of router.
A kind of router control method is present embodiments provided, according to the access parameter couple in router of router
The wireless network of offer, the running status of monitoring wireless network, monitoring that Network Abnormal occurs in wireless network
When, control router is restarted, manual without user so as to the direct restarter in Network Abnormal
Operation, there is good Consumer's Experience.
Second embodiment
A kind of router control device is present embodiments provided, refer to Fig. 2, including:
Network monitoring module 201, the wireless network provided for the access parameter according to router, couple in router
Network, and the running status of monitoring wireless network;
Energy supply control module 202, for when monitoring that Network Abnormal occurs in wireless network, control route to be thought highly of
Open.
Router distributes to outer net multiple terminals in the LAN of router formation, and these terminals can lead to
The LAN optimization public network that router is provided is crossed, so as to realize interacting between public network.Router with
When putting, its access parameter comprises at least SSID, can also include PASSWORD in some cases.
Router its internal wireless chip by network by wireless network by way of be shared with other equipment;
Within the specific limits, other equipment can pass through the wireless chip institute of the access parameter couple in router of router
The network of offer, so as to access internet.As for the outer net of router, its access form does not limit, can
By be by cable network in a manner of the wireless network that accesses or access, router can't be influenceed
The other equipment outer net being shared with the LAN of router.
After router startup, access parameter couple in router that network monitoring module 201 passes through router
The wireless network of offer, the running status of monitoring wireless network;The way of the running status of monitoring wireless network
Some server typically on timer access internet, for example, Google either Baidu or other it is any
The server that can be accessed under normal circumstances, if server has response, illustrate that network is normal, do not appoint
What is operated, if accessing server failure, illustrates Network Abnormal.
After accessing network according to access parameter, under normal circumstances, it is possible to public network communicate;Just
Normal open letter includes up-link normally and downlink is normal;During practical communication, up-link is root
Determined according to the working condition of the equipment of user side, downlink is then the work feelings by the equipment of server side
What condition determined;The working condition of the equipment of user side mainly includes the working condition of router, and router
The connection of LAN between terminal;The working condition of the equipment of network side may then include base station
Working condition, and the working condition of server in station.
That is, after network monitoring module 201 accesses network according to access parameter, Network Abnormal may
It is caused by uplink network failure and/or downlink network failure.As long as and monitor Network Abnormal, power supply
Control module 202 just controls router to restart.Optionally, to the reboot operation of router, control can be included
The power supply of router processed, that is, disconnect the power supply of router, then switches on power, it is possible to realizes to router
Restart.
Network Abnormal, including network connection disconnection or network connection time-out;Network connection disconnects expression can not
Connect network, it may be possible to the problem of router side, it is also possible to the problem of server end;Network connection time-out,
Then refer to not obtain the response of server within the stand-by period of program acquiescence, there is network the reason for its is possible
Obstruction;Unstable networks;System available resources are too low;Equipment connection is unstable;System is numerous during network registry
It is busy, it can not respond;Network is excessively slow;Malware, computer virus, computer wooden horse etc. are infected.
Router in the course of the work, may cause internal memory to exhaust due to deadlock, program exception, internal memory spilling
Network Abnormal caused by Deng a variety of causes;When router goes wrong, restart often can and solve greatly
The problems such as wireless chip failure, software fault in subproblem, including router, system in case of system halt;If
It is that downlink failure occurs, for example failure, or base station fault, i.e. net occurs in server in station
Network is not extremely that router causes in itself, it is clear that restarter can not solve the problem, then,
When monitoring that Network Abnormal occurs in wireless network, whether the time interval that judging distance last time restarts is less than in advance
If the time, if so, not restarting then, prevent that router is ceaselessly restarted under abnormal conditions, user can not satisfy the need
Configured by device and fault location.Certainly, if it is not, then normal restarter.
In addition, the access parameter of router is not unalterable;And the access parameter in router changes
Afterwards, the access parameter of router also should be with its change used by the running status of monitoring wireless network
And change, therefore, the router control device in the present embodiment also includes parameter synchronization module 203, for by
The access parameter of router is synchronized to network monitoring module 201 according to preset rules.Wherein, preset rules can be with
Have it is a variety of, first, can include timing, periodically obtain router access parameter;Second, can
When being changed to be included in the access parameter of router, the access parameter after router change is obtained;Third,
It can be the combination of above two scheme, i.e., periodically obtain outside the access parameter of router, may be used also
To obtain the access parameter after change in time when the access parameter of router changes.Timely renewal monitoring nothing
Access parameter used by the running status of gauze network, avoid because the access parameter of router and monitoring are wireless
Network Abnormal caused by the access parameter of the running status of network is inconsistent, and then cause to router
Unnecessary restarts.The synchronization of router access parameter is same except being provided with parameter on router control device
Walk outside module 203, on the router can also arrange parameter synchronization module 203, the parameter on router is same
The access parameter of router is sent to the parameter synchronization module on router control device by step module 203 in real time
203, and then make the parameter synchronization module 203 on router control device that the access parameter of router is same in real time
Walk to network monitoring module 201;The access parameter of router is sent to router control device from router,
UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiving-transmitting biography can be passed through
Defeated device) communication can be further Transistor-Transistor Logic level (transistor transistor logic, transistor-crystal
Pipe logic level) UART interface.
A kind of router control device, including network monitoring module and energy supply control module are present embodiments provided,
The wireless network that network monitoring module provides according to the access parameter couple in router of router, and monitor wireless
The running status of network, energy supply control module monitor that Network Abnormal occurs in wireless network in network monitoring module
When, control router is restarted, manual without user so as to the direct restarter in Network Abnormal
Operation, there is good Consumer's Experience.
3rd embodiment
A kind of router is present embodiments provided, refer to Fig. 3, including:
Router body 10 and processor 30;Processor 30 is used for the access parameter according to router body 10,
The wireless network that couple in router body 10 provides, the running status of monitoring wireless network, and detecting nothing
When Network Abnormal occurs in gauze network, router body 10 is performed and restarted.
Router body 10 distributes to outer net multiple terminals in the LAN that router body 10 formed,
The LAN optimization public network that these terminals can be provided by router body 10, so as to realize with public network it
Between interaction.Router body 10 can include the SSID and PASSWORD of router body 10 in configuration;
Wherein, the SSID of router body 10 may be considered the title for the network that router body 10 is provided;
Equipment in the LAN that router body 10 is formed can access public network by SSID and PASSWORD,
That is, the SSID and PASSWORD of router body 10 are the access parameters of router body 10.
It is worth noting that, being not that each router can set PASSWORD, some common routers, lead to
PASSWORD is often not provided with, but this nor affects on the access of network, i.e. router body 10
Access parameter comprise at least SSID, PASSWORD can also be included in some cases.
Router body 10 its internal wireless chip by network by wireless network by way of be shared with it
His equipment;Within the specific limits, other equipment can access route by the access parameter of router body 10
The network that the wireless chip of device body 10 is provided, so as to access internet.As for router body 10
Outer net, its access form do not limit, and can access or access by way of cable network
Wireless network, the local that the outer net is shared with router body 10 by router body 10 can't be influenceed
Other equipment in net.Processor 30 provides according to the access parameter couple in router of router body 10
Wireless network, and the running status of monitoring wireless network;The way of the running status of monitoring wireless network is usual
It is some server on timer access internet, such as Google or Baidu, if server has response,
Then illustrate that network is normal, do not do any operation;If accessing server failure, illustrate Network Abnormal.
After the wireless network that processor 30 is provided according to access parameter couple in router body 10, positive reason
Under condition, it is possible to internet communicate;Proper communication include that up-link is normal and downlink just
Often;During practical communication, up-link is determined according to the working condition of the equipment of user side, under
Line link is determined by the working condition of the equipment of server side;The working condition master of the equipment of user side
To include the working condition of router body 10, and the connection between router body 10 and processor 30
Situation;The working condition of the equipment of network side may then include the working condition of base station, and server in station
Working condition.
That is, after accessing network according to access parameter, Network Abnormal is probably by uplink network failure
And/or caused by downlink network failure.As long as and monitor Network Abnormal, just control the weight of router body 10
Open.Optionally, to the reboot operation of router body 10, the electricity for controlling router body 10 can be included
Source, that is, disconnect the power supply of router body 10, then switches on power, it is possible to realizes to router body 10
Restart.
Network Abnormal, including network connection disconnection or network connection time-out;Network connection disconnects expression can not
Connect network, it may be possible to the problem of router side, it is also possible to the problem of server end;Network connection time-out,
Then refer to not obtain the response of server within the stand-by period of program acquiescence, there is network the reason for its is possible
Obstruction;Unstable networks;System available resources are too low;Equipment connection is unstable;System is numerous during network registry
It is busy, it can not respond;Network is excessively slow;Malware, computer virus, computer wooden horse etc. are infected.
Router body 10 in the course of the work, may be overflowed in causing due to deadlock, program exception, internal memory
Deposit and a variety of causes such as exhaust and cause Network Abnormal;When router goes wrong, often can solution is restarted
Certainly most of problem, including the problems such as wireless chip failure in router, software fault, system in case of system halt;
If failure occurs in downlink, for example there is failure, or base station fault in server in station,
Caused by i.e. Network Abnormal is not router body 10, it is clear that restarter body 10 is that to solve
The problem, then, when monitoring that Network Abnormal occurs in wireless network, judging distance last time restart when
Between be spaced whether be less than preset time, if so, not restarting then, prevent that router body 10 is not under abnormal conditions
That stops restarts, and router body 10 can not be configured by user and fault location.Certainly, if it is not, then just
Normal restarter.
In addition, the access parameter of router body 10 is not unalterable;And in router body 10
After access parameter change, the access ginseng of router body 10 used by the running status of monitoring wireless network
Number should also change with its change, and therefore, the router body 10 in the present embodiment is additionally operable to according to pre-
If the access parameter of router body is synchronized to processor 30 by rule;Wherein, preset rules can have a variety of,
First, can be including timing, the periodic access parameter for obtaining router body 10;Second, can be with
When being included in the access parameter of router body 10 and changing, connecing after router body 10 changes is obtained
Enter parameter;Third, can be the combination of above two scheme, i.e., periodically obtaining router body 10
Access parameter outside, can also router body 10 access parameter change when in time obtain change after
Access parameter.Timely update monitoring wireless network running status used by router body 10 access
Parameter, avoid the access because of the access parameter of router body 10 and the running status of monitoring wireless network
Network Abnormal caused by parameter is inconsistent, and then cause to restart the unnecessary of router body 10.Connect
Enter can synchronously being communicated by UART for parameter, can be further that the UART interface of Transistor-Transistor Logic level is come
Realize, a UART interface is set in router body 10, one is also provided with processor 30
UART interface, by the access parameter of the two interface real-time Transmission router bodies 10 to processor 30.
It processor in the present embodiment, can be arranged in router body, router sheet can also be arranged on
Outside body, it is used cooperatively as a single equipment with router.
A kind of router, including router body and processor are present embodiments provided, processor is used for basis
The wireless network that the access parameter couple in router body of router body provides, and the fortune of monitoring wireless network
Row state, when monitoring that Network Abnormal occurs in wireless network, control router is restarted, it is achieved thereby that
Direct restarter, manually operated without user during Network Abnormal, there is good Consumer's Experience.
Fourth embodiment
A kind of power supply adaptor is present embodiments provided, refer to Fig. 4, including:Wireless chip 403, control
Device 404;The wireless network that wireless chip 403 provides for the access parameter according to router, couple in router,
And the running status of monitoring wireless network;Controller 404 is used to monitor that Network Abnormal occurs in wireless network
When, control router is restarted.
Certainly, power supply 401 is also included in power supply adaptor 40, is powered for router;In general, route
DC voltage of the operating voltage of device between 9V to 15V, and the AC power 401 of family expenses is 220V,
Therefore, transformer is generally comprised in power supply adaptor 40, rectifier, for by the 220V alternating currents of family expenses
Pressure, be converted to 9V-15V DC voltage, there is provided use to router.
Router distributes to outer net multiple terminals in the LAN of router formation, and these terminals can lead to
The LAN optimization public network that router is provided is crossed, so as to realize interacting between public network.Router with
When putting, its access parameter comprises at least SSID, can also include PASSWORD in some cases.Its
In, these terminals can include the power supply adaptor 40 of router.
Power supply adaptor 40 is the device to router power supply.In power supply adaptor 40, no core is set
Piece 403 and controller 404, then, it is possible to by the access parameter of router, and wireless chip 403,
The wireless network that couple in router provides, so as to access internet.
After router startup, wireless chip 403 is provided by the access parameter couple in router of router
Wireless network, the running status of monitoring wireless network;The way of the running status of monitoring wireless network is usual
It is some server on timer access internet, such as Google either Baidu or other any positive reasons
The server that can be accessed under condition, if server has response, illustrate that network is normal, do not do any operation,
If accessing server failure, illustrate Network Abnormal.
After accessing network according to access parameter, under normal circumstances, it is possible to public network communicate;Just
Normal open letter includes up-link normally and downlink is normal, and during practical communication, up-link is root
Determined according to the working condition of the equipment of user side, downlink is then the work feelings by the equipment of server side
What condition determined;The working condition of the equipment of user side mainly includes the working condition of router, and router
With the connection of the LAN among power supply adaptor 40;The working condition of the equipment of network side then may bag
Include the working condition of base station, and the working condition of server in station.
That is, wireless chip 403 according to access parameter access network after, Network Abnormal be probably by
Caused by uplink network failure and/or downlink network failure.As long as and monitor Network Abnormal, controller 404
Control router is restarted.Optionally, to the reboot operation of router, the electricity for controlling router can be included
Source 401, disconnects the power supply 401 of router, then switches on power 401, it is possible to which realization is restarted to router.
Network Abnormal, including network connection disconnection or network connection time-out;Network connection disconnects expression can not
Connect network, it may be possible to the problem of router side, it is also possible to the problem of server end;Network connection time-out,
Then refer to not obtain the response of server within the stand-by period of program acquiescence, there is network the reason for its is possible
Obstruction;Unstable networks;System available resources are too low;Equipment connection is unstable;System is numerous during network registry
It is busy, it can not respond;Network is excessively slow;Malware, computer virus, computer wooden horse etc. are infected.
Optionally, when monitoring that Network Abnormal occurs in wireless network, between the time that judging distance last time restarts
Every whether being less than preset time, if so, not restarting then, prevent that router is ceaselessly restarted under abnormal conditions,
Router can not be configured by user and fault location.Certainly, if it is not, then normal restarter.
In addition, the access parameter of router is not unalterable;Change it in the access parameter of router
Afterwards, the access parameter of router should also change with its change used by wireless chip 403, therefore,
Power supply adaptor 40 in the present embodiment also includes the second sync cap 52, for that will be route according to preset rules
The access parameter of device is synchronized to wireless chip 403.Wherein, preset rules can have a variety of, first, can wrap
Include timing, periodically obtain router access parameter;Second, the access of router can be included in
When parameter changes, the access parameter after router change is obtained;Third, can be above two scheme
Combination, i.e., periodically obtain router access parameter outside, can also router access join
The access parameter after change is obtained during number change in time.Timely update the running status institute of monitoring wireless network
The access parameter of the router of use, avoid because the operation of the access parameter and monitoring wireless network of router
Network Abnormal caused by the access parameter of state is inconsistent, and then cause the unnecessary weight to router
Open.The acquisition of access parameter can be communicated by UART, i.e. the second sync cap 52 can be TTL electricity
Flat UART interface is realized, sets first sync cap, namely UART interface on the router,
By the access parameter of the two interface real-time Transmission routers to the wireless chip 403 in power supply adaptor 40.
A kind of power supply adaptor is present embodiments provided, including wireless chip and controller, wireless chip are used for
The wireless network provided according to the access parameter of router, couple in router, and the operation of monitoring wireless network
State;When monitoring that Network Abnormal occurs in wireless network, controller control router is restarted, so as to real
Now be hungry the direct restarter in Network Abnormal, manually operated without user, there is good Consumer's Experience.
5th embodiment
A kind of router is present embodiments provided, refer to Fig. 5, including router body 10 and power adaptation
Device 40, power supply adaptor 40 include power supply 401, and power supply 401 is used to power to router body 10;Place
Reason device 30 is arranged in power supply adaptor 40;Wherein, processor 30 and the processor 30 in above example
It is similar, repeat no more here.Power supply 401 is that the power supply of router body 10 includes:Power supply 401 and router
Power interface 4011 in body 10 is connected, and is powered for router body 10.
Router body 10 distributes to outer net multiple terminals in the LAN that router body 10 formed,
The LAN optimization public network that these terminals can be provided by router body 10, so as to realize with public network it
Between interaction.Router body 10 can include the SSID and PASSWORD of router body 10 in configuration;
Wherein, the SSID of router body 10 may be considered the title for the network that router body 10 is provided;
Equipment in the LAN that router body 10 is formed can access public network by SSID and PASSWORD,
That is, the SSID and PASSWORD of router body 10 are the access parameters of router body 10.
It is worth noting that, being not that each router can set PASSWORD, some common routers, lead to
PASSWORD is often not provided with, but this nor affects on the access of network, i.e. router body 10
Access parameter comprise at least SSID, PASSWORD can also be included in some cases.
Router body 10 includes route wireless chip 102, path control deivce 101, memory 103;Route
Device body 10 route wireless chip 102 by network by wireless network by way of be shared with other equipment,
Within the specific limits, other equipment can pass through the access parameter couple in router body 10 of router body 10
The network that is provided of route wireless chip 102, so as to access internet.Route in router body 10
Controller 101 is then used to control each software and hardware in router body 10, realizes router body 10
Normal work;Memory 103 is then used for the various parameters for storing router body 10, and storage router
Body 10 works the contents such as required instruction.More than route wireless chip 102, path control deivce 101,
Memory 103 belongs to the universal architecture of router, repeats no more here.
As for the outer net of router body 10, its access form does not limit, and can be by cable network
The wireless network that mode is accessed or accessed, router body 10 can't be influenceed and share the outer net
To the other equipment in the LAN of router body 10.
Power supply adaptor 40 also includes wireless chip 403 and controller 404;Processor controls wireless chip 403
The wireless network provided according to the access parameter couple in router body 10 of router body 10, and monitor nothing
The running status of gauze network.In the wireless network coverage of router body 10, wireless chip 403 is logical
The network that the wireless chip 403 of the access parameter couple in router body 10 of router body 10 is provided is crossed,
So as to access internet.And detect network condition, it is common practice to some clothes on timer access internet
Be engaged in device, such as Google or Baidu, if server has response, illustrates that network is normal, does not do any
Operation;If accessing server failure, illustrate Network Abnormal.
Network Abnormal is probably caused by uplink network failure and/or downlink network failure, as long as and monitoring
To Network Abnormal, controller 404 just controls router body 10 to restart.Optionally, in addition to on-off circuit
402, for realizing the control to the power supply 401 of router body 10, i.e. controller 404 controls control to open
The disconnection on powered-down road 402 and closure, it is possible to achieve the disconnection of power supply 401 and closure, it is achieved thereby that satisfying the need
By restarting for device body 10.
Router body 10 in the course of the work, may be overflowed in causing due to deadlock, program exception, internal memory
Deposit and a variety of causes such as exhaust and cause Network Abnormal;When router goes wrong, often can solution is restarted
Certainly most of problem, including the failure of wireless chip 403 in router, software fault, system in case of system halt etc. are asked
Topic;If failure occurs in downlink, for example there is failure, or base station event in server in station
Caused by barrier, i.e. Network Abnormal are not router body 10, it is clear that restarter body 10 is can not
Solve the problem, then, when monitoring that Network Abnormal occurs in wireless network, judging distance last time restarts
Time interval whether be more than preset time, if so, then restarting, if it is not, not restarting then, prevent abnormal feelings
Router body 10 is ceaselessly restarted under condition, and router body 10 can not be configured by user and failure is determined
Position.
In addition, the access parameter of router body 10 is not unalterable;And in router body 10
After access parameter change, the access ginseng of router body 10 used by the running status of monitoring wireless network
Number should also change with its change, and therefore, it is same that the router body 10 in the present embodiment also includes first
Interface 51 is walked, accordingly, power supply adaptor 40 also includes the second sync cap 52, the He of router body 10
Pass through the first sync cap 51 and the second sync cap 52 connecing router in real time between power supply adaptor 40
Enter the wireless chip 403 in parameter synchronization to processor 30;It is in the access parameter change of router body 10,
Timely access parameter used by the wireless chip 403 more in new processor 30, avoid because router sheet
Network caused by the access parameter of the outer parameter of body 10 and the running status of monitoring wireless network is inconsistent
It is abnormal, and then cause to restart the unnecessary of router body 10.First sync cap 51 and second is same
Step interface 52 can be realized by UART interface, can be further the UART interface of Transistor-Transistor Logic level,
One UART interface is set i.e. in router body 10, one is also provided with power supply adaptor 40
UART interface, by the access parameter of the two interface real-time Transmission router bodies 10 to processor 30
In wireless chip 403.It is of course also possible to it is that other can realize the interface of data transfer, in the present embodiment
It can use, not do strict restriction.Optionally, power supply adaptor 40 and router body 10 it
Between there are two groups of cables to need to connect, one group be router body 10 power supply line, another group be TTL electricity
Flat UART interface line.Wherein, power line can be one group two, be positive-negative power line respectively, TTL
The UART interface line of level is also two respectively, TX (Transmit, transmission) and RX (Receive,
Receive);It is easy to use for user, this two groups of four lines are integrated, by a 4PIN (pin)
Plug realize connection, and the concrete form of plug is not limited.
Present embodiments provide a kind of router, including router body and power supply adaptor, power supply adaptor
Including the power supply for being powered to router, processor is arranged in power supply adaptor, and processor passes through access
The wireless network that parameter couple in router body provides, and network condition is monitored, when monitoring Network Abnormal,
Control router body restart, it is achieved thereby that in Network Abnormal can direct restarter, without use
Family is manually operated, there is good Consumer's Experience.
Sixth embodiment
A kind of router administration method is present embodiments provided, refer to Fig. 6, router includes router body
10 and power supply adaptor 40, methods described includes:
It is electric on S601, router body;
Router body is powered by power supply adaptor;In router body after electricity, router body can be entered
One step establishes wireless network, and outer net is shared with into router wireless network covering model by way of wireless network
Enclose interior other equipment.
S602, router body send access parameter to the wireless chip in the processor in power supply adaptor;
Router body includes the first sync cap, and power supply adaptor includes the second sync cap, router sheet
Access parameter is sent to the second sync cap in power supply adaptor, Ran Hou by the first sync cap by body
The access parameter received is supplied to wireless chip by two sync caps, allows wireless chip according to the access
The wireless network that parameter couple in router body provides;Router body can also real-time synchronization access parameter to electricity
The wireless chip in processor in source adapter, i.e. router body can be after access parameter changes timely
The second sync cap being sent to the access parameter after change by the first sync cap in power supply adaptor,
The access parameter is supplied to wireless chip by the second sync cap again.
The wireless network that S603, wireless chip provide according to access parameter couple in router body;
Processor is provided with power supply adaptor, processor includes wireless chip, and wireless chip can be according to road
The wireless network provided by the access parameter couple in router body of device body, and then public network can be accessed, with
Public network is communicated.
S604, monitoring wireless network running status, judge whether wireless network Network Abnormal occurs;If
It is then to go to S605, if it is not, then continuing S604;
, can be with timer access internet after the wireless network that wireless chip couple in router body provides
Some server, such as Google or Baidu if server has response, illustrate that network is normal;
If accessing server failure, illustrate Network Abnormal, go to S605.
S605, restarter body.
The power supply in controller control power supply adaptor in processor in power supply adaptor, makes power supply first break
Open, then switch on power, router body is restarted so as to realize.
Obviously, those skilled in the art should be understood that each module of the invention described above or each step can be used
General computing device realizes that they can be concentrated on single computing device, or be distributed in multiple
On the network that computing device is formed, alternatively, they can with computing device can perform program code come
Realize, it is thus possible to be stored in storage medium (ROM/RAM, magnetic disc, CD) by calculating
Device performs, and in some cases, can be with shown or described by being performed different from order herein
The step of, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them
Or step is fabricated to single integrated circuit module to realize.So the present invention be not restricted to it is any specific hard
Part and software combine.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to is recognized
The specific implementation of the fixed present invention is confined to these explanations.For the ordinary skill of the technical field of the invention
For personnel, without departing from the inventive concept of the premise, some simple deduction or replace can also be made,
Protection scope of the present invention should be all considered as belonging to.
Claims (15)
1. a kind of router control method, including:
The wireless network provided according to the access parameter of router, couple in router;
Monitor the running status of the wireless network;
When monitoring that Network Abnormal occurs in the wireless network, the router is controlled to restart.
2. router control method as claimed in claim 1, it is characterised in that methods described also includes:
The access parameter of the router is obtained according to preset rules.
3. router control method as claimed in claim 1, it is characterised in that control the router
Restart including:The power supply of the router is disconnected, then connects the power supply.
4. router control method as claimed in claim 1, it is characterised in that the Network Abnormal bag
Include network connection disconnection or network connection time-out.
5. the router control method as described in claim any one of 1-4, it is characterised in that the control
Making the router and restarting also includes:When monitoring that Network Abnormal occurs in the wireless network, judging distance
Whether the time interval that last time restarts is less than preset time, if so, not restarting then.
A kind of 6. router control device, it is characterised in that including:
Network monitoring module, the wireless network provided for the access parameter according to router, couple in router,
And monitor the running status of the wireless network;
Energy supply control module, for when monitoring that Network Abnormal occurs in the wireless network, controlling the road
Opened by thinking highly of.
7. router control device as claimed in claim 6, it is characterised in that also including parameter synchronization
Module, for the access parameter of the router to be synchronized into the network monitoring module according to preset rules.
8. router control device as claimed in claim 6, it is characterised in that the control router
Restart including:The power supply of the router is disconnected, then connects the power supply.
9. the router control device as described in claim any one of 6-8, it is characterised in that power supply control
Molding block is additionally operable to:When monitoring that Network Abnormal occurs in the wireless network, judging distance last time restarts
Whether time interval is less than preset time, if so, not restarting then.
A kind of 10. power supply adaptor, it is characterised in that including wireless chip, controller, the no core
Piece is used for the access parameter according to router, the wireless network that couple in router provides, and monitors described wireless
The running status of network;The controller is used for when monitoring that Network Abnormal occurs in wireless network, controls institute
Router is stated to restart.
11. power supply adaptor as claimed in claim 10, it is characterised in that also synchronously connect including second
Mouthful, for the access parameter of router to be synchronized into the wireless chip according to preset rules.
12. the power supply adaptor as described in claim 10 or 11, it is characterised in that the controller is also
For when monitoring that Network Abnormal occurs in the wireless network, the time interval that judging distance last time restarts is
It is no to be less than preset time, if so, not restarting then.
13. a kind of router, it is characterised in that including router body and processor;The processor is used
In the wireless network that the access parameter according to the router body, couple in router body provide, institute is monitored
The running status of wireless network is stated, and when monitoring that Network Abnormal occurs in the wireless network, described in control
Router is restarted.
14. router as claimed in claim 13, it is characterised in that the router body is used to press
The access parameter of router body is synchronized to the processor according to preset rules.
15. the router as described in claim 13 or 14, it is characterised in that the processor is additionally operable to
When monitoring that Network Abnormal occurs in the wireless network, whether the time interval that judging distance last time restarts is small
In preset time, if so, not restarting then.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610416538.XA CN107508693A (en) | 2016-06-14 | 2016-06-14 | Router control method, device and power supply adaptor, router |
PCT/CN2017/071532 WO2017215268A1 (en) | 2016-06-14 | 2017-01-18 | Method and device for router control, power adapter, and router |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610416538.XA CN107508693A (en) | 2016-06-14 | 2016-06-14 | Router control method, device and power supply adaptor, router |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107508693A true CN107508693A (en) | 2017-12-22 |
Family
ID=60662979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610416538.XA Withdrawn CN107508693A (en) | 2016-06-14 | 2016-06-14 | Router control method, device and power supply adaptor, router |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107508693A (en) |
WO (1) | WO2017215268A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108990093A (en) * | 2018-09-28 | 2018-12-11 | 中电海康集团有限公司 | A kind of Backhaul network equipment failure self-test method for restarting |
CN109168087A (en) * | 2018-10-29 | 2019-01-08 | 四川长虹电器股份有限公司 | Intelligent television system, method and the power supply control apparatus that network is automatically repaired |
CN110224877A (en) * | 2019-06-28 | 2019-09-10 | 贵阳研卓电子科技有限公司 | PDU management system based on Ethernet |
CN110265888A (en) * | 2019-06-28 | 2019-09-20 | 贵阳研卓电子科技有限公司 | PDU power control system |
CN110266502A (en) * | 2019-06-28 | 2019-09-20 | 贵阳研卓电子科技有限公司 | Enhanced network intelligence PDU power supply |
CN113067769A (en) * | 2021-03-31 | 2021-07-02 | 百度在线网络技术(北京)有限公司 | Router restarting method, device, equipment and storage medium |
CN113206752A (en) * | 2021-03-25 | 2021-08-03 | 厦门才茂通信科技有限公司 | Router network communication double-path backup method |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651299A (en) * | 2020-05-27 | 2020-09-11 | 惠州Tcl移动通信有限公司 | Wireless chip reset control method and device, storage medium and mobile terminal |
CN113992528B (en) * | 2021-09-09 | 2023-06-13 | 江西台德智慧科技有限公司 | Self-adaptive network intelligent interaction system and self-adaptive adjustment method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201878332U (en) * | 2010-12-07 | 2011-06-22 | 上海永大电梯设备有限公司 | Automatic sensing device of wireless router |
CN103326868B (en) * | 2012-03-23 | 2016-12-14 | 苏州新宏博智能科技股份有限公司 | Wireless base station intelligent power device |
CN102611589A (en) * | 2012-04-12 | 2012-07-25 | 南京物联传感技术有限公司 | Automatic detection device of disconnection of router and working method thereof |
CN104202653B (en) * | 2014-08-27 | 2017-11-10 | 四川长虹电器股份有限公司 | The method that intelligent television optimizes wireless network |
CN204480169U (en) * | 2015-01-14 | 2015-07-15 | 北京星达天下技术有限公司 | A kind of network state Intellectual reset circuit |
-
2016
- 2016-06-14 CN CN201610416538.XA patent/CN107508693A/en not_active Withdrawn
-
2017
- 2017-01-18 WO PCT/CN2017/071532 patent/WO2017215268A1/en active Application Filing
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108990093A (en) * | 2018-09-28 | 2018-12-11 | 中电海康集团有限公司 | A kind of Backhaul network equipment failure self-test method for restarting |
CN109168087A (en) * | 2018-10-29 | 2019-01-08 | 四川长虹电器股份有限公司 | Intelligent television system, method and the power supply control apparatus that network is automatically repaired |
CN109168087B (en) * | 2018-10-29 | 2021-03-16 | 四川长虹电器股份有限公司 | Intelligent television system and method for automatically repairing network and power supply control device |
CN110224877A (en) * | 2019-06-28 | 2019-09-10 | 贵阳研卓电子科技有限公司 | PDU management system based on Ethernet |
CN110265888A (en) * | 2019-06-28 | 2019-09-20 | 贵阳研卓电子科技有限公司 | PDU power control system |
CN110266502A (en) * | 2019-06-28 | 2019-09-20 | 贵阳研卓电子科技有限公司 | Enhanced network intelligence PDU power supply |
CN113206752A (en) * | 2021-03-25 | 2021-08-03 | 厦门才茂通信科技有限公司 | Router network communication double-path backup method |
CN113067769A (en) * | 2021-03-31 | 2021-07-02 | 百度在线网络技术(北京)有限公司 | Router restarting method, device, equipment and storage medium |
CN113067769B (en) * | 2021-03-31 | 2023-03-10 | 百度在线网络技术(北京)有限公司 | Router restarting method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017215268A1 (en) | 2017-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107508693A (en) | Router control method, device and power supply adaptor, router | |
US10285125B2 (en) | Method of operating a communication device operable in an active mode and in an idle mode, a computer program product for executing the method, and the communication device operable in an active mode and in an idle mode | |
US10271231B2 (en) | Method and device for handling cell outage | |
JP5301032B2 (en) | Method, apparatus and system for controlling access point | |
TWI484789B (en) | Master device, slave device, and methods thereof | |
US10104614B2 (en) | Method for waking up access point device, device, and system | |
JP6130081B2 (en) | Signal transmission control method, apparatus, electronic device, program, and recording medium | |
CN101867468B (en) | Hot reboot processing method for power over Ethernet switch and power over Ethernet switch | |
CN105763338A (en) | Wake-on-link | |
CN106341468B (en) | Remote awakening method, device and system of intelligent equipment | |
WO2018233642A1 (en) | Train network node, and train network node monitoring method based on canopen protocol | |
CN102164044A (en) | Networking method and system | |
US20130145191A1 (en) | Universal serial bus device and method for power management | |
CN104185196B (en) | wireless controller disaster recovery method and system | |
CN105450422A (en) | Wireless access point fault remote automatic recovery system based on access controller and POE switch | |
CN103777726A (en) | Electronic device and starting method thereof | |
CN106506046A (en) | A kind of electricity saving method of bandwidth carrier communication system terminal node | |
CN109194744A (en) | A kind of data transmission method, device, storage medium and monitoring device | |
CN103514133A (en) | Method for PCIE high-speed link management | |
JP2006261827A (en) | Network apparatus, management apparatus thereof, network connection method, and network connection management method thereof | |
CN102064956A (en) | Method for regulating aging time, system and modulator-demodulator | |
CN104467195A (en) | Integrated transformer substation power supply monitoring system and method | |
CN106658683B (en) | Distributed wireless equipment awakening management method and system | |
CN107846312A (en) | A kind of network service ensuring equipment | |
CN107465477A (en) | A kind of multilevel monitor method for synchronizing network time and system |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171222 |