CN107517132A - Switching method, storage medium and the router of router USB mode - Google Patents
Switching method, storage medium and the router of router USB mode Download PDFInfo
- Publication number
- CN107517132A CN107517132A CN201710778752.4A CN201710778752A CN107517132A CN 107517132 A CN107517132 A CN 107517132A CN 201710778752 A CN201710778752 A CN 201710778752A CN 107517132 A CN107517132 A CN 107517132A
- Authority
- CN
- China
- Prior art keywords
- router
- usb mode
- mode
- terminals
- usb
- 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention discloses a kind of switching method of router USB mode, including:The status information of the 2.4G terminals of couple in router is obtained, the status information includes quantity and flow uses data;Obtain the current USB mode of router;According to the status information of 2.4G terminals, judge whether current USB mode needs to switch over, if the current USB mode of switched router.In addition, a kind of router the invention also discloses storage medium and comprising the storage medium, storage medium is stored with a plurality of instruction, and a plurality of instruction is by one or more computing device in router, the step of to realize the switching method of router USB mode in the present invention.Service condition of the invention by monitoring router 2.4G wireless users, dynamically router USB mode is switched over.So as to reach the method for adjustment USB device mode of operation.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of switching method of router USB mode, storage medium and
Router.
Background technology
Double-frequency wireless router, refer to while be operated in the wireless router of 2.4GHz and 5.0GHz frequency ranges, compared to single-frequency
Section wireless router, it has higher wireless transmission rate, possesses stronger anti-interference, wireless signal is stronger, stability
It is higher, it is not easy to go offline.Double-frequency wireless router has become the mainstream development trend of wireless product.
Intelligent router is increasingly popularized, and intelligent router not only has the route and function of surfing the Net of conventional router, also
There is the service function of more intelligence, such as offline download, data sharing function.These functions are often required for external on router
USB storage mediums are realized that USB interface is divided into USB2.0 and USB3.0 interfaces, and USB3.0 is in transmission speed and performance
Higher than USB2.0.
USB3.0 when in use, can be caused to penetrate 2.4GHz ISM bands in 2.4G frequency ranges increase about 20dB noise
Frequency disturbs.This interference can reduce the sensitivity of wireless receiving, and then reduce visits, it is sufficient to influence interference 2.4G and wirelessly set
Standby normal use.
USB is operated in USB2.0 patterns under existing route device factory default, it is necessary to using USB3.0 transmission rate when,
It can be configured and be changed by the page, so causing can not be easily in the case of without using 2.4G wirelessly transmitting datas
Router is set to be switched to USB3.0 patterns.
The content of the invention
The present invention provides a kind of switching method, storage medium and the router of router USB mode, existing to solve
Have needs to carry out configuration modification on the router page in technology, it is impossible to the easily technology of switched router USB mode
Problem.
The invention discloses a kind of switching method of router USB mode, including step:
S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses
Data;
S200 obtains the current USB mode of the router;
S300 judges whether the current USB mode needs to be cut according to the status information of the 2.4G terminals
Change, if so, into next step;
S400 switches the current USB mode of the router.
Further, the step S100 includes:
S110 obtains the 2.4G terminal quantities of couple in router;
The flow that S120 obtains the 2.4G terminals uses data;
Wherein:The step S120 includes:
The flow that S121 obtains each 2.4G terminals of couple in router uses data;
And/or
Total flow that S122 obtains all 2.4G terminals of couple in router uses data.
Further, the step S300 includes:
S310 obtains the reference USB mode of the router according to the status informations of the 2.4G terminals;
Whether S320 judges the current USB mode of the router with described consistent with reference to USB mode, if
It is, into step S330, otherwise into step S340;
S330 judges that the current USB mode of the router without switching, keeps current USB mode constant;
S340 judges that the current USB mode of the router needs to switch;
Further, the step S310 includes:
S312 judges whether the quantity of the 2.4G terminals is less than default terminal threshold value, if so, into step S313, it is no
Then enter step S315;
S313 judges whether the flow of the 2.4G terminals is less than default flow threshold using data, if into step
S314, otherwise into step S315;
The reference USB mode that S314 chooses the router is USB3.0 mode of operations;
The reference USB mode that S315 chooses the router is USB2.0 mode of operations.
Further, also include after the step S300:S360 judges whether the router is currently passed using USB
Transmission of data, if so, return to step S360, otherwise, into step S400.
Further, also include before the step S312:S311 judges whether the terminal of current Access Router is complete
For 2.4G terminals, if so, into step S315, otherwise into step S312;
Further, in addition to:S500 starts timing, and stops timing when timing time reaches preset time, returns
Step S100.
Further, the step S400 includes:
When the current USB mode of the router is USB3.0 mode of operations, unloading USB3.0 has driven S410
Into switching;
When the current USB mode of the router is USB2.0 mode of operations, loading USB3.0 has driven S420
Into switching.
In addition, to achieve the above object, the invention also discloses a kind of storage medium, the storage medium is stored with a plurality of
Instruction, a plurality of instruction is by one or more computing device, to realize router USB mode as described above
Switching method the step of.
The invention also discloses a kind of router, including:Processor, for realizing each instruction;Storage medium, for storing
A plurality of instruction;Wherein:The processor is used for the instruction for performing the storage medium storage, to realize route as described above
The step of switching method of device USB mode.
By monitoring the service condition of router 2.4G wireless users, (2.4G user connects number, 2.4G wireless streams to the present invention
Amount), dynamically router USB mode is switched over.So as to reach the method for adjustment USB device mode of operation.With
Family is convenient and swift without going manual modification configuration to switch in the configuration of routers page.And the present invention can be according to access road
Optimal judgement is made by the wireless conditions of the terminal of device, judges whether that needs switch over.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings
His accompanying drawing.
Fig. 1 is the embodiment flow chart of the switching method of router USB mode of the present invention;
Fig. 2 is another embodiment flow chart of the switching method of router USB mode of the present invention;
Fig. 3 is another embodiment flow chart of the switching method of router USB mode of the present invention;
Fig. 4 is another embodiment flow chart of the switching method of router USB mode of the present invention;
Fig. 5 is another embodiment flow chart of the switching method of router USB mode of the present invention;
Fig. 6 switches USB mode schematic diagram for router in the present invention according to 2.4G wireless status;
Fig. 7 is another embodiment flow chart of the switching method of router USB mode of the present invention;
Fig. 8 is router embodiment structured flowchart of the present invention.
Drawing reference numeral explanation:
1001-- processors;1002-- network interfaces;1003-- memories;1004-- communication bus;
1005-- user interfaces.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into
One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
The invention discloses a kind of switching method of router USB mode, embodiment is as shown in figure 1, including step:
S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses
Data;
S200 obtains the current USB mode of the router;
S300 judges whether the current USB mode needs to be cut according to the status information of the 2.4G terminals
Change, if so, into next step;
S400 switches the current USB mode of the router.
The embodiment of the present invention, according to the status information of the 2.4G terminals of couple in router, i.e., the quantity of 2.4G terminals and
The data on flows that 2.4G terminals use, with reference to the current USB mode of router itself, automatically control the USB works of router
The switching of operation mode.In this way, user modifies configuration without the setting page that voluntarily arrive router, router can be according to reality
The situation of access 2.4G terminals voluntarily adjusts switching, and intelligence is convenient.
In above-described embodiment, the step S100 includes:Obtain the 2.4G terminal quantities of couple in router and the 2.4G
The flow of terminal uses data;Wherein:Obtain the flow of 2.4G terminals is included using data:S121 obtains the every of couple in router
The flow of individual 2.4G terminals uses data;And/or S122 obtains total flow use of all 2.4G terminals of couple in router
Data.Specifically, including three schemes:
1) if the 2.4G terminal quantities of couple in router are less than A, and all 2.4G terminals of couple in router is total
Flow be no more than X;The USB mode for so controlling router is USB3.0.Switching method of the present invention:Access is obtained first
The 2.4G terminal quantities a of the router, count the total data on flows x of these 2.4G terminals;The current USB of the router is obtained again
Mode of operation;Then judge whether a is less than A, and whether x is less than X, if it does, then thinking that the router works with reference to USB
Pattern is USB3.0;Then it is USB3.0 to judge current USB mode, if so avoids the need for switching, such as
No that words are judged as needs and switched over for fruit, and then the current USB mode of router is switched into USB3.0.This programme
In,
2) if the 2.4G terminal quantities of couple in router are less than B, and the stream of each 2.4G terminals of couple in router
The not super more Y of amount;The USB mode for so controlling router is USB3.0.Switching method of the present invention:Obtain first and access the road
By the 2.4G terminal quantities b of device, data on flows y1, y2 ... the yb of each 2.4G terminals of statistics;It is current that the router is obtained again
USB mode;Then judge whether b is less than B, and whether y1, y2 ... yb are respectively less than Y, if it does, then thinking this
Router is USB3.0 with reference to USB mode;Then it is USB3.0 to judge current USB mode, if
Words are avoided the need for switching, and needs are judged as if not and if are switched over, and then the current USB mode of router is cut
It is changed to USB3.0.This programme, relative to previous scheme, the actual use situation of each terminal is fully taken into account, is only being owned
In the case of 2.4G terminals (are similar to idle condition) in the case of using flow less, the USB of router can be just controlled to work
Pattern is USB3.0, because 2.4G terminal quantities are less than B (general B value is smaller), and it is smaller using flow, therefore,
Influence after switching to 2.4G terminals is smaller.These possible 2.4G terminals are in idle state, therefore, even if some are disturbed,
Also influence little.On the contrary, for the other-end of couple in router, USB3.0 mode of operation can then greatly increase data
Transmission rate, strengthen transmission performance.
3) if the 2.4G terminal quantities of couple in router are less than C, and the stream of each 2.4G terminals of couple in router
The not super more Y of amount, while the total flow for all 2.4G terminals for also needing to meet couple in router is no more than X;So control route
The USB mode of device is USB3.0.Switching method of the present invention:The 2.4G terminal quantities c for accessing the router, system are obtained first
Count data on flows y1, y2 ... the yc of each 2.4G terminals;And obtain the total flow of all 2.4G terminals and use data x;Obtain again
Take the current USB mode of the router;Then judge whether b is less than B, whether y1, y2 ... yc are respectively less than Y, and x whether
Less than X;If it does, then think that the router with reference to USB mode is USB3.0;Then current USB work is judged
Pattern is USB3.0, if so avoids the need for switching, and needs are judged as if not and if are switched over, and then will
The current USB mode of router switches to USB3.0.
In such scheme, the 2.4G wireless traffic datas that each 2.4G terminals of statistics use in preset time period can be used
(for example obtain the flows of each 2.4G terminals in 5 minutes and use data), or obtain each 2.4G terminals in real time and use 2.4G
Wireless traffic data;Certainly, equally, the 2.4G wireless flow numbers of all 2.4G terminals of statistics in preset time period can also be used
According to, or obtain 2.4G wireless flows in real time and use data.
Based on above method embodiment, embodiments of the invention additionally provide a kind of storage medium, and the storage medium includes
One group of instruction (a plurality of instruction), described one group (a plurality of instruction) are loaded and performed by processor:
S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses
Data;
S200 obtains the current USB mode of the router;
S300 judges whether the current USB mode needs to be cut according to the status information of the 2.4G terminals
Change, if so, into next step;
S400 switches the current USB mode of the router.
Likewise, embodiments of the invention also provide a kind of router, the router is including above-mentioned storage medium and extremely
A few processor, by the instruction in storage medium described at least one computing device, realize that router USB works
The intelligent switch step of pattern:
S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses
Data;
S200 obtains the current USB mode of the router;
S300 judges whether the current USB mode needs to be cut according to the status information of the 2.4G terminals
Change, if so, into next step;
S400 switches the current USB mode of the router.
Another embodiment of the inventive method, as shown in Fig. 2 including:
S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses
Data;
S200 obtains the current USB mode of the router;
S310 obtains the reference USB mode of the router according to the status informations of the 2.4G terminals;
Whether S320 judges the current USB mode of the router with described consistent with reference to USB mode, if
It is, into step S330, otherwise into step S340;
S330 judges that the current USB mode of the router without switching, keeps current USB mode constant;
S340 judges that the current USB mode of the router needs to switch, into step S401;
The current USB mode of the router is switched to and described refers to USB mode by S401.
Based on above method embodiment, embodiments of the invention additionally provide a kind of storage medium, and the storage medium includes
One group of instruction (a plurality of instruction), when executed, cause route described at least one computing device above-described embodiment
The switching method of device USB mode and the operation being applied on router.
Likewise, embodiments of the invention also provide a kind of router, the router is including above-mentioned storage medium and extremely
A few processor, by the instruction in storage medium described at least one computing device, realize that router USB works
The intelligence switching of pattern.
Another embodiment of the present invention, on the basis of above method embodiment, as shown in figure 3, including:
S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses
Data;
S200 obtains the current USB mode of the router;
S312 judges whether the quantity of the 2.4G terminals is less than default terminal threshold value, if so, into step S313, it is no
Then enter step S315;
S313 judges whether the flow of the 2.4G terminals is less than default flow threshold using data, if into step
S314, otherwise into step S315;
The reference USB mode that S314 chooses the router is USB3.0 mode of operations;
The reference USB mode that S315 chooses the router is USB2.0 mode of operations.
Whether S320 judges the current USB mode of the router with described consistent with reference to USB mode, if
It is, into step S330, otherwise into step S340;
S330 judges that the current USB mode of the router without switching, keeps current USB mode constant;
S340 judges that the current USB mode of the router needs to switch;
The current USB mode of the router is switched to and described refers to USB mode by S401.
In the present embodiment, only it is less than default terminal threshold value in the 2.4G terminal quantities of couple in router, and 2.4G is whole
When the flow at end is less than default flow threshold using data, ginseng of the USB3.0 mode of operations as the router is just chosen
Examine USB mode;Remaining situation chooses reference USB mode of the USB2.0 mode of operations as the router;Then compare
It is whether consistent with the reference USB mode of the router of selection compared with the current USB mode of the router, if unanimously
So just without switching, if inconsistent, it is necessary to switch over, the current USB mode of router is switched into reference
USB mode.
Another embodiment of the present invention, on the basis of any of the above-described embodiment, also include after the step S300:
S360 judges whether the router currently uses USB transmission data, if so, return to step S360, otherwise, into step S400
(or S401).In the present embodiment, when judging that router needs to carry out USB mode switching, then judge that router is worked as
Preceding whether to use USB transmission data, because during switching USB mode, router USB flash disk can be bound again, can be to reading
The operation write has an impact, and data transfer can interrupt.Therefore, need to carry out a judgment step before handover operation, judge road
Whether USB transmission data are currently used by device, if it does, then to be finished when data transfer, i.e., router does not have
Switch again when using USB transmission data.Certainly, if router is carried out data transmission currently without using USB, then
Just it is directly entered follow-up handover operation.
Based on above method embodiment, embodiments of the invention additionally provide a kind of storage medium, and the storage medium includes
One group of instruction (a plurality of instruction), when executed, cause route described at least one computing device above-described embodiment
The switching method of device USB mode and the operation being applied on router.
Likewise, embodiments of the invention also provide a kind of router, the router is including above-mentioned storage medium and extremely
A few processor, by the instruction in storage medium described at least one computing device, realize that router USB works
The intelligence switching of pattern.
The another method embodiment of the present invention, as shown in figure 4, including:
S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses
Data;
S200 obtains the current USB mode of the router;
S311 judges whether the terminal of current Access Router is all 2.4G terminals, if so, into step S315, otherwise enters
Enter step S312;
S312 judges whether the quantity of the 2.4G terminals is less than default terminal threshold value, if so, into step S313, it is no
Then enter step S315;
S313 judges whether the flow of the 2.4G terminals is less than default flow threshold using data, if into step
S314, otherwise into step S315;
The reference USB mode that S314 chooses the router is USB3.0 mode of operations;
The reference USB mode that S315 chooses the router is USB2.0 mode of operations.
Whether S320 judges the current USB mode of the router with described consistent with reference to USB mode, if
It is, into step S330, otherwise into step S340;
S330 judges that the current USB mode of the router without switching, keeps current USB mode constant;
S340 judges that the current USB mode of the router needs to switch;
The current USB mode of the router is switched to and described refers to USB mode by S401.
The present embodiment is more harsh as the condition with reference to USB mode to choosing USB3.0, that is, requires access route
The 2.4G terminal quantities of device are less than default terminal threshold value, the flow of 2.4G terminals is less than default flow threshold using data
(flow that each 2.4G terminals use is respectively less than default first flow threshold value;Or total stream that all 2.4G terminals use
Amount be less than default second flow threshold value) and couple in router all 2.4G terminals of terminal, in the absence of the situation of 5G terminals
Under, the reference USB mode that can choose router is USB3.0 mode of operations;Remaining situation then chooses USB2.0 Working moulds
Formula is with reference to USB mode, then again enters the current USB mode of router with the reference USB mode chosen
Row compares, inconsistent unanimously then without switching, then switches to the current USB mode of router with reference to USB Working moulds
Formula.The setting of the present embodiment, it is default in the terminal quantity ratio of the 2.4G terminals of couple in router relative to above-mentioned other embodiments
Terminal threshold value it is small, and in the case that its data on flows for using is smaller than default data on flows, further interpretation access route
It whether there is 5G terminals in the terminal of device, the necessity for just having pattern switching if any.If for example, 2.4G terminals set
Threshold value is 4, and the 2.4G flows of setting are 20KB/S using data;If only three terminals are integrated into current route now
Device, and these three terminals are 2.4G terminals, and the real-time traffic of these three terminals is 15KB/S, then in this case,
Due to all 2.4G terminals, in the absence of 5G terminals, therefore, USB2.0 mode of operations are only a kind of optimal Working mould of router
Formula.Therefore, by the method for the present embodiment, even if the 2.4G of couple in router terminal quantity is less than default terminal threshold value,
And in the case that 2.4G terminals flow uses data again smaller than default threshold value, if all 2.4G of the terminal of couple in router
Terminal, in the absence of 5G terminals, then it is reference work pattern still to choose USB2.0 mode of operations;And if couple in router
Terminal is not all 2.4G terminals, for example 5G terminals be present, then it is reference work pattern just to choose USB3.0 mode of operations.
Another embodiment of the present invention, on the basis of any of the above-described embodiment, after step S401 or step S400,
Increase step S500:Start timing, and stop timing when timing time reaches preset time, return to step S100.Add
After the step, need to wait the regular hour just to initially enter next circulation after router completes switching action, obtain again
The status information of the 2.4G terminals of couple in router, current USB mode are taken, and rejudges whether need to cut accordingly
Change.Keep constant by the preset time after the completion of switching, avoid frequent switching.This time waited can be 3 minutes,
5 minutes, 8 minutes etc., user can voluntarily pre-set according to actual conditions or be pre-set by switching system.
Based on above method embodiment, embodiments of the invention additionally provide a kind of storage medium, and the storage medium includes
One group of instruction (a plurality of instruction), when executed, cause route described at least one computing device above-described embodiment
The switching method of device USB mode and the operation being applied on router.
Likewise, embodiments of the invention also provide a kind of router, the router is including above-mentioned storage medium and extremely
A few processor, by the instruction in storage medium described at least one computing device, realize that router USB works
The intelligence switching of pattern.
In any of the above-described embodiment of the method, step S400 handover operation can be driven by load/unload USB3.0 come
Realize.Specifically, another embodiment of the present invention, as shown in figure 5, including:
S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses
Data;
S200 obtains the current USB mode of the router;
S300 judges whether the current USB mode needs to be cut according to the status information of the 2.4G terminals
Change, if so, being switched over into subsequent step;
When the current USB mode of the router is USB3.0 mode of operations, unloading USB3.0 has driven S410
Into switching;
When the current USB mode of the router is USB2.0 mode of operations, loading USB3.0 has driven S420
Into switching.
In above-described embodiment, loading USB3.0 drivings, then router USB interface is operated in USB3.0 mode of operations, unloading
USB3.0 drives, then router USB interface is operated in USB2.0 mode of operations.In such a mode, after USB3.0 driving unloadings, then
The USB mode of router can only be USB2.0 mode of operations, and load USB3.0 drivings, then cause the USB of router
Mode of operation is in USB2.0 mode of operations.
Certainly, also other switching methods, if USB2.0 drivings and USB3.0 drivings are completely self-contained, which selects
Driving will drive corresponding USB mode, so as to complete to switch.
Based on above method embodiment, embodiments of the invention additionally provide a kind of storage medium, and the storage medium includes
One group of instruction (a plurality of instruction), when executed, cause route described at least one computing device above-described embodiment
The switching method of device USB mode and the operation being applied on router.
Likewise, embodiments of the invention also provide a kind of router, the router is including above-mentioned storage medium and extremely
A few processor, by the instruction in storage medium described at least one computing device, realize that router USB works
The intelligence switching of pattern.
Another embodiment of the present invention, the phenomenon of switching at runtime USB mode is unable to for existing route device, proposes one
Kind is operated in the side of 3.0 patterns or 2.0 patterns according to the wireless service condition switching at runtime router USB of router 2.4G
Method.
Router monitors the access quantity of 2.4G wireless devices and the flow that 2.4G is wireless in real time, as 2.4G wireless users
When number and all smaller use flow, configuration USB is operated in USB3.0 patterns.When 2.4G numbers of users or larger flow,
Switched router USB mode is USB2.0 patterns.As far as possible do not influence user using 2.4G it is wireless in the case of improve road
By the performance of device USB interface.
The present embodiment mainly includes two parts:Monitor router 2.4G states, configuration router USB Working moulds
Formula.
As shown in fig. 6, router side monitors the access quantity of 2.4G wireless users and using flow in real time, when 2.4G is used
Router USB mode is switched into USB3.0 patterns when amount and smaller flow;When 2.4G numbers of users and flow compared with
Router USB mode is switched into USB2.0 patterns when big.
The workflow diagram of the present embodiment is as shown in Figure 7:
1. monitor router 2.4G states
Router removed the wireless connection numbers of users of 2.4G of inquiry and the wireless user's streams of current 2.4G every 5 minutes
Amount, when 2.4G wireless connections number of users is then attempted to switch to USB mode less than user's threshold value and flow less than flow threshold
USB3.O patterns, so as to improve USB performances;When 2.4G numbers of users are more than or equal to user's threshold value and flow is more than flow threshold
Router USB mode is switched into USB2.0 patterns, reduces USB3.0 to influence of the user using 2.4G when wireless.
User's threshold value is that any positive integer of number can be connected less than or equal to router, is defaulted as 2, is not only limited in practical operation
In 2.
Flow threshold is the Arbitrary Digit less than or equal to router maximum stream flow, is defaulted as 10KB/s, in practical operation not only
It is limited to 10KB/s.
2. configure router USB mode
When judging to need to switch USB mode according to the wireless service conditions of router 2.4G, the current USB of router is first determined whether
Whether whether state is operated in the pattern for needing to switch, and does not make an amendment if it is, make if not then reading router
With USB transmission data, do not make an amendment if it is (because router USB flash disk can be bound again during switch mode, can write to spending
Operation have an impact), by the pattern switching of router be desired mode of operation when conditions above is all unsatisfactory for.
Switching action realizes that loading USB3.0 drives then road by way of loading or unloading router USB3.0 drivings
USB3.0 patterns are operated in by device USB interface, then router USB interface is operated in USB2.0 patterns for unloading USB3.0 drivings.
In addition, to achieve the above object, the invention also discloses a kind of storage medium, the storage medium is stored with a plurality of
Instruction, a plurality of instruction is by one or more computing device, to realize the router USB as described in foregoing embodiments
The step of switching method of mode of operation.
The invention also discloses a kind of router, including:Processor, for realizing each instruction;Storage medium, for storing
A plurality of instruction;Wherein:The processor is used for the instruction for performing the storage medium storage, to realize route as described above
The step of switching method of device USB mode.
As shown in figure 8, the router can include:Processor 1001, such as CPU, network interface 1002, memory
1003, communication bus 1004, user interface 1005.Wherein, communication bus 1004 is used to realize that the connection between these components is led to
Letter.Network interface 1002 can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard.User interface
1005 include storing a plurality of instruction in USB2.0 interfaces, USB3.0 interfaces, memory 1003, for realizing the route of the present invention
Device USB mode switch step.Memory 1003 can be high-speed RAM memory or stable memory (non-
Volatile memory), such as magnetic disk storage.
It will be understood by those skilled in the art that the router topology shown in Fig. 8 does not form the restriction to router, can
With including than illustrating more or less parts, either combining some parts or different parts arrangement.
In the embodiment of the present invention, the switching method of the router, storage medium and router USB mode belongs to same
One design, on the router, by the instruction stored in storage medium described in computing device, can run corresponding institute
The method provided in the switching method embodiment of router USB mode is stated, its specific implementation process refers to router USB works
Operation mode switching method embodiment, here is omitted.
It should be noted that this area common test personnel are appreciated that to realize router USB described in the embodiment of the present invention
All or part of flow of the switching method of mode of operation, it is that the hardware of correlation can be controlled come complete by computer program
Into, the computer program can be stored in a computer read/write memory medium, be such as stored in the memory of router, and
By at least one computing device in the router, may include in the process of implementation such as the router USB mode
The flow of the embodiment of switching method.Wherein, described storage medium can be magnetic disc, CD, read-only storage (ROM, Read
Only Memory), random access memory (RAM, Random Access Memory) etc..
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (10)
- A kind of 1. switching method of router USB mode, it is characterised in that including:S100 obtains the status information of the 2.4G terminals of couple in router;The status information includes quantity and flow uses number According to;S200 obtains the current USB mode of the router;S300 judges whether the current USB mode needs to switch over according to the status informations of the 2.4G terminals, if It is, into next step;S400 switches the current USB mode of the router.
- A kind of 2. switching method of router USB mode according to claim 1, it is characterised in that the step S100 includes:S110 obtains the 2.4G terminal quantities of couple in router;The flow that S120 obtains the 2.4G terminals uses data;Wherein:The step S120 includes:The flow that S121 obtains each 2.4G terminals of couple in router uses data;And/orTotal flow that S122 obtains all 2.4G terminals of couple in router uses data.
- A kind of 3. switching method of router USB mode according to claim 1, it is characterised in that the step S300 includes:S310 obtains the reference USB mode of the router according to the status informations of the 2.4G terminals;Whether S320 judges the current USB mode of the router with described consistent with reference to USB mode, if so, entering Enter step S330, otherwise into step S340;S330 judges that the current USB mode of the router without switching, keeps current USB mode constant;S340 judges that the current USB mode of the router needs to switch.
- A kind of 4. switching method of router USB mode according to claim 3, it is characterised in that the step S310 includes:S312 judges whether the quantity of the 2.4G terminals is less than default terminal threshold value, if so, into step S313, otherwise enters Enter step S315;S313 judges whether the flow of the 2.4G terminals is less than default flow threshold using data, if into step S314, otherwise into step S315;The reference USB mode that S314 chooses the router is USB3.0 mode of operations;The reference USB mode that S315 chooses the router is USB2.0 mode of operations.
- 5. the switching method of a kind of router USB mode according to claim 1, it is characterised in that in the step Also include after rapid S300:S360 judges whether the router currently uses USB transmission data, if so, return to step S360, otherwise, into step S400。
- 6. the switching method of a kind of router USB mode according to claim 4, it is characterised in that in the step Also include before rapid S312:S311 judges whether the terminal of current Access Router is all 2.4G terminals, if so, into step S315, otherwise enters step Rapid S312.
- A kind of 7. switching method of router USB mode according to claim any one of 1-6, it is characterised in that Also include:S500 starts timing, and stops timing when timing time reaches preset time, return to step S100.
- A kind of 8. switching method of router USB mode according to claim any one of 1-6, it is characterised in that The step S400 includes:S410 when the current USB mode of the router is USB3.0 mode of operations, cut by unloading USB3.0 driving completions Change;S420 when the current USB mode of the router is USB2.0 mode of operations, cut by loading USB3.0 driving completions Change.
- A kind of 9. storage medium, it is characterised in that the storage medium is stored with a plurality of instruction, a plurality of instruction by one or The multiple computing devices of person, to realize the switching method of the router USB mode any one of claim 1-8 Step.
- A kind of 10. router, it is characterised in that including:Processor, for realizing each instruction;Storage medium, for storing a plurality of instruction;Wherein:The processor is used for the instruction for performing the storage medium storage, to realize described in claim any one of 1-8 Router USB mode switching method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710778752.4A CN107517132A (en) | 2017-09-01 | 2017-09-01 | Switching method, storage medium and the router of router USB mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710778752.4A CN107517132A (en) | 2017-09-01 | 2017-09-01 | Switching method, storage medium and the router of router USB mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107517132A true CN107517132A (en) | 2017-12-26 |
Family
ID=60724771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710778752.4A Withdrawn CN107517132A (en) | 2017-09-01 | 2017-09-01 | Switching method, storage medium and the router of router USB mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107517132A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108768706A (en) * | 2018-05-16 | 2018-11-06 | 四川斐讯信息技术有限公司 | The mode selecting method of storage device interface and selection system on a kind of router |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547932A (en) * | 2010-12-30 | 2012-07-04 | 西安龙飞软件有限公司 | Realization method for switching double operating modes of 3G (3rd Generation) router |
CN103716907A (en) * | 2013-12-23 | 2014-04-09 | 联想(北京)有限公司 | Electronic equipment control method and electronic equipment |
CN105812018A (en) * | 2016-03-11 | 2016-07-27 | 珠海市魅族科技有限公司 | Transmission mode switching method and mobile terminal |
US20160366361A1 (en) * | 2015-06-12 | 2016-12-15 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Acquiring and displaying information to improve selection and switching to an input interface of an electronic device |
CN107070727A (en) * | 2017-05-23 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | The USB mode switching method and system of a kind of router |
-
2017
- 2017-09-01 CN CN201710778752.4A patent/CN107517132A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547932A (en) * | 2010-12-30 | 2012-07-04 | 西安龙飞软件有限公司 | Realization method for switching double operating modes of 3G (3rd Generation) router |
CN103716907A (en) * | 2013-12-23 | 2014-04-09 | 联想(北京)有限公司 | Electronic equipment control method and electronic equipment |
US20160366361A1 (en) * | 2015-06-12 | 2016-12-15 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Acquiring and displaying information to improve selection and switching to an input interface of an electronic device |
CN105812018A (en) * | 2016-03-11 | 2016-07-27 | 珠海市魅族科技有限公司 | Transmission mode switching method and mobile terminal |
CN107070727A (en) * | 2017-05-23 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | The USB mode switching method and system of a kind of router |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108768706A (en) * | 2018-05-16 | 2018-11-06 | 四川斐讯信息技术有限公司 | The mode selecting method of storage device interface and selection system on a kind of router |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190250930A1 (en) | Method and apparatus for configuring a serial data link | |
US20160232122A1 (en) | Universal serial bus (usb) hub for switching downstream ports between host mode and slave mode | |
CN103428672A (en) | Method and device for transmitting data | |
CN106465135A (en) | Method and apparatus for reducing interference between WiFi and LTE | |
CN106162828A (en) | The method for network access of internet-of-things terminal and device | |
CN110764605B (en) | Multi-core processor control method and device, electronic equipment and storage medium | |
CN107426050A (en) | Data relay transmission system and its construction method and wireless relay apparatus | |
CN107517132A (en) | Switching method, storage medium and the router of router USB mode | |
CN109726605B (en) | eSIM intelligent card and working method thereof | |
CN105430726B (en) | The carrier aggregation function control method and communication terminal of a kind of communication terminal | |
CN107678788A (en) | Five application page display methods, device, computer installation and storage medium | |
CN107949071A (en) | terminal wireless data transmission method, device, terminal and storage medium | |
CN103024943B (en) | A kind of multimode terminal and the method for realizing multi-mode and multi-standby | |
CN101938297A (en) | Data transmission method of Bluetooth link and Bluetooth master device | |
CN201369044Y (en) | USB interface transmission device and USB interface transmission system | |
CN107872533A (en) | Information-pushing method, device, server and storage medium | |
CN103716907A (en) | Electronic equipment control method and electronic equipment | |
CN105406891B (en) | The carrier aggregation mode establishing method and communication terminal of a kind of communication terminal | |
CN105517175A (en) | Carrier aggregation mode setting method of communication terminal and communication terminal | |
CN105656520A (en) | Method and device for controlling bluetooth module of playing equipment and audio/video playing system | |
CN107426112A (en) | Operation method, device and the computer installation of working application based on WIFI network | |
CN214756745U (en) | Optical module circuit | |
CN106055509B (en) | Optical fiber communication system and configuration method of optical fiber communication | |
CN116488729A (en) | Antenna control method and device, storage medium and electronic device | |
US5594719A (en) | Method for controlling echo canceller circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201104 Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province Applicant after: Taizhou Jiji Intellectual Property Operation Co.,Ltd. Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Applicant before: Phicomm (Shanghai) Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171226 |
|
WW01 | Invention patent application withdrawn after publication |