WO2018214351A1 - 一种路由器的usb工作模式切换方法及系统 - Google Patents
一种路由器的usb工作模式切换方法及系统 Download PDFInfo
- Publication number
- WO2018214351A1 WO2018214351A1 PCT/CN2017/102729 CN2017102729W WO2018214351A1 WO 2018214351 A1 WO2018214351 A1 WO 2018214351A1 CN 2017102729 W CN2017102729 W CN 2017102729W WO 2018214351 A1 WO2018214351 A1 WO 2018214351A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- working mode
- mode
- module
- router
- usb
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000005540 biological transmission Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 1
- 230000036039 immunity Effects 0.000 description 1
Images
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/38—Universal adapter
- G06F2213/3852—Converter between protocols
Definitions
- the present invention relates to the field of communications, and in particular, to a USB working mode switching method and system for a router.
- USB Universal Serial Bus
- the USB working mode of the fixed router is USB3.0.
- the rate will be greatly affected when USB transmission is performed to the 5G wireless terminal and the router.
- the current USB working mode of the router wants to switch, it can only be set to support USB3.0 or USB2.0 through the page, and it is impossible to switch intelligently.
- the present invention provides a USB working mode switching method and system for a router, which solves the problem in the prior art that there is no USB working mode corresponding to the main switching according to the wireless mode of the wireless terminal.
- a USB working mode switching method for a router includes the following steps:
- S100 acquires a wireless mode of the wireless terminal accessing the router
- S200 acquiring, according to a wireless mode of the wireless terminal, a target USB working mode corresponding to the wireless terminal;
- step S300 obtains the current USB working mode of the router, determines whether the current USB working mode is consistent with the target USB working mode, and if not, proceeds to step S400;
- the S400 switches the current USB operating mode to the target USB operating mode.
- the present invention has the advantages of automatic switching, better balance of performance and anti-interference.
- the method further includes the steps of:
- S010 starts the router and configures the USB working mode of the router according to the preset configuration information of the USB working mode.
- step S200 includes the following steps:
- step S210 determines whether there is a first wireless mode in the obtained wireless mode, and if yes, proceeds to step S220, otherwise proceeds to step S230;
- S220 selecting a first USB working mode of the router as a target USB working mode
- S230 selects a second USB working mode of the router as a target USB working mode.
- step S210 includes the following steps:
- step S211 determines whether there is a first wireless mode in the obtained wireless mode, and if so, proceeds to step S212, otherwise proceeds to step S230;
- S212 collects the signal strength of the wireless terminal in the first wireless mode, determines whether the signal strength is greater than a preset reference signal strength, and if yes, proceeds to step S220, otherwise proceeds to step S230.
- the method further includes the steps of:
- S020 obtains the terminal type of the access router, determines whether the terminal of the access router is a wireless terminal, and if yes, proceeds to the next step.
- the invention also provides a USB working mode switching system of a router, comprising: an obtaining module, a searching module, a determining module and a switching module, wherein the obtaining module is respectively connected to the searching module and the determining module, and the determining module and the The switching module is connected, wherein: the obtaining module acquires a wireless mode of the wireless terminal accessing the router; and the searching module searches for a target USB working mode corresponding to the wireless terminal according to the wireless mode of the wireless terminal; The determining module obtains the current USB working mode of the router by using the acquiring module, and determines whether the current USB working mode is consistent with the target USB working mode. If not, the current USB working mode is switched by the switching module. The target USB working mode.
- the method further includes a startup module and a configuration module, where the configuration module is respectively connected to the startup module and the switching module, wherein: the startup module starts a router, and the configuration module is configured according to a preset USB working mode configuration information. Configure the USB working mode of the router.
- the method further includes: a selection module connected to the determining module; wherein: the determining module determines whether there is a first wireless mode in the wireless mode acquired by the acquiring module, and if yes, passes the selecting module The first USB working mode of the router is selected as the target USB working mode; otherwise, the second USB working mode of the router is selected by the selecting module to be the target USB working mode.
- the method further includes: an acquisition module connected to the determining module, wherein: the determining module determines whether there is a first wireless mode in the wireless mode acquired by the acquiring module; and when the determining module determines the When the first wireless mode is obtained by the acquiring module, the acquiring module collects a signal strength of the wireless terminal in the first wireless mode, and the determining module determines whether the signal strength is greater than a preset reference signal strength.
- the first USB working mode is selected as the target USB working mode by the selecting module, otherwise the second USB working mode is selected as the target USB working mode by the selecting module; when the determining module determines the When the first wireless mode is not included in the wireless mode acquired by the acquiring module, the selecting module selects the second USB working mode to be the target USB working mode.
- the first USB working mode is a USB2.0 working mode
- the second USB working mode is a USB3.0 working mode
- the first wireless mode is a 2.4G working frequency mode.
- the invention automatically switches the USB working mode of the router according to the wireless mode of the wireless terminal of the access router, so that the wireless terminal ensures that the USB working mode of the router is USB2.0 when using the 2.4G wireless mode, thereby avoiding the USB3.0.
- Interference according to the wireless mode of the wireless terminal, analyzes and obtains the target USB working mode of the router, and controls the USB working mode of the router to be the target USB working mode. This allows the current USB operating mode to achieve a better balance between performance and interference immunity.
- Embodiment 1 is a flowchart of Embodiment 1 of a USB working mode switching method of a router according to the present invention
- Embodiment 2 is a flowchart of Embodiment 2 of a USB working mode switching method of a router according to the present invention
- Embodiment 3 is a flowchart of Embodiment 3 of a method for switching a USB working mode of a router according to the present invention
- Embodiment 4 is a flowchart of Embodiment 4 of a method for switching a USB working mode of a router according to the present invention
- Embodiment 5 is a block diagram of Embodiment 5 of a USB working mode switching system of a router according to the present invention
- Embodiment 6 is a block diagram of Embodiment 6 of a USB working mode switching system of a router according to the present invention
- FIG. 7 is a block diagram of Embodiment 7 of a USB working mode switching system of a router according to the present invention.
- the USB working mode switching method of the router of the present invention is as shown in FIG. 1 and includes the following steps:
- S100 acquires a wireless mode of the wireless terminal accessing the router
- S200 acquiring, according to a wireless mode of the wireless terminal, a target USB working mode corresponding to the wireless terminal;
- step S300 obtains the current USB working mode of the router, determines whether the current USB working mode is consistent with the target USB working mode, and if so, remains unchanged, if not, proceeds to step S400;
- the S400 switches the current USB operating mode to the target USB operating mode.
- the wireless mode of the wireless terminal refers to the working frequency of the wireless terminal, such as the current
- the wireless mode includes 2.4G wireless mode and 5G wireless mode;
- the USB working mode of the router is in the case of USB3.0, and the working frequency of the interface is about 2.5G, which is very close to the working mode of the wireless mode 2.4G, and will work when the USB is working.
- the USB working mode is always in the case of USB2.0, the transmission rate of the wireless terminal whose wireless mode is 5G operating frequency is affected. Therefore, the present invention technically needs to control how to switch between USB 3.0 and 2.0.
- the embodiment of the present invention solves this problem by judging the mode of the wireless connection mode, so that the wireless terminal avoids the USB3 when using the 2.4G wireless mode. .0 interference. For example, if the wireless mode of the wireless terminal that accesses the access router is 5G, then according to the wireless mode of the 5G terminal, the USB working mode corresponding to the USB can be found as USB3.0, and then the current USB working mode of the router is seen. Is it USB3.0, if it is then it will remain unchanged, if not, then switch the router USB working mode to USB3.0.
- S010 starts the router and configures the USB working mode of the router according to the preset configuration information of the USB working mode.
- USB working mode After the router is started, the default USB working mode will be enabled. This working mode can be preset. For example, the more commonly used USB2.0 working mode is used as the default working mode of the router. Therefore, each time the router is started, it will be pre-configured. Set the configuration information of the USB2.0 working mode to configure, so that the router works in the USB2.0 working mode.
- a second embodiment of the present invention includes the steps of:
- S100 acquires a wireless mode of the wireless terminal accessing the router
- step S210 determines whether there is a first wireless mode in the obtained wireless mode, and if yes, proceeds to step S220, otherwise proceeds to step S230;
- S220 selecting a first USB working mode of the router as a target USB working mode
- step S300 obtains the current USB working mode of the router, determines whether the current USB working mode is consistent with the target USB working mode, and if not, proceeds to step S400;
- the S400 switches the current USB operating mode to the target USB operating mode.
- This embodiment makes the determination by making a radio mode according to the wireless terminals of all access routers.
- the wireless terminals of the current access router have A, B, and C, and the corresponding wireless modes are: 2.4G wireless mode (terminal A), 5G wireless mode ( Terminal B), 5G wireless mode (terminal C); obviously, there is a 2.4G wireless mode as the first wireless mode, so in order not to affect the transmission performance of all terminals, the USB 2.0 working mode is selected as the target USB working mode, because if If the USB3.0 working mode is selected, it will cause interference to the terminal A, which affects the transmission performance of the terminal A.
- the USB3.0 working mode is selected as the target USB working mode only when the wireless terminals of the access router are in the 5G wireless mode.
- a third embodiment of the present invention includes the steps of:
- S010 starts the router, and configures the USB working mode of the router according to the preset configuration information of the USB working mode
- S100 acquires a wireless mode of the wireless terminal accessing the router
- step S211 determines whether there is a first wireless mode in the obtained wireless mode, and if so, proceeds to step S212, otherwise proceeds to step S230;
- S212 collects the signal strength of the wireless terminal in the first wireless mode, determines whether the signal strength is greater than a preset reference signal strength, and if yes, proceeds to step S220, otherwise proceeds to step S230.
- S220 selecting a first USB working mode of the router as a target USB working mode
- S230 selects a second USB working mode of the router as a target USB working mode.
- step S300 obtains the current USB working mode of the router, determines whether the current USB working mode is consistent with the target USB working mode, and if not, proceeds to step S400;
- the S400 switches the current USB operating mode to the target USB operating mode.
- the solution is more optimized, and it is not determined that the first USB working mode is the target USB working mode as long as the wireless terminal of the first wireless mode is accessed. It is also necessary to collect and judge the signal strength of the wireless terminal of the first wireless mode to see whether the signal strengths of all the wireless terminals of the first wireless mode are greater than the preset reference signal strength, and if so, select the first USB working mode as the target.
- USB working mode otherwise, the wireless terminal of the first wireless mode whose signal strength is less than or equal to the preset reference signal strength is farther away from the wireless router or has more blocking, and the signal is relatively poor, whether it is USB2.0 or USB 3.0 has less impact on the difference caused by its weak signal strength.
- the transmission performance of the terminal which is equivalent to the terminal not accessing the wireless router.
- the signal strength of the wireless terminal for example, if the 2.4G wireless terminal is separated from the wireless router by a wall (the distance is not very far), then the signal strength of the signal sent by the wireless router to the 2.4G wireless terminal is approximately -35dBm, if the wall is separated by two walls, the signal strength will be reduced to -45dBm. If three walls are separated, the signal strength will drop to -55dBm; in general, when the signal drops to -55dBm, the signal is generally weak.
- the wireless terminals that are currently connected to the access router have terminal 1 (2.4G), terminal 2 (2.4G), and terminal 3 ( 5G); Then, the signal strengths of the terminal 1 and the terminal 2 are collected. If the signal strength of the acquisition terminal 1 is -35 dBm, the signal strength of the collected terminal 2 is -80 dBm, and the signal strength of the terminal 1 is obtained by comparison.
- the reference signal strength is therefore chosen for the router's first USB operating mode USB 2.0 for the target USB operating mode.
- the second USB working mode USB3.0 is selected as the target USB working mode.
- step S076 determines whether the traffic used by the highest wireless terminal is greater than the preset reference traffic value, and if yes, proceeds to step S080, otherwise remains unchanged. Or set to keep at least 1 minute after each switch, and so on.
- a fourth embodiment of the present invention further comprising the steps of:
- S020 obtains the terminal type of the access router, determines whether the terminal of the access router is a wireless terminal, and if yes, proceeds to a subsequent step.
- USB3.0 the default USB working mode after the routing device is started is USB3.0.
- the router After accessing the first terminal, first determine whether the terminal type is wired or wireless, and if it is a wired terminal, then the router The USB working mode keeps the default USB 3.0 unchanged. If it is a wireless terminal, then it is necessary to further determine the wireless mode of the wireless terminal to see whether it belongs to 2.4G or 5G. If it is a 2.4G wireless mode, switch the USB working mode of the router to USB2.0, if it is 5G. If it is, it will remain unchanged.
- the fifth embodiment of the present invention provides a USB working mode switching system of a router, which can implement the foregoing method embodiments.
- the switching system of the present invention includes: an obtaining module 10, a searching module 20, a determining module 30, and a switching module 40, wherein the obtaining module 10 is respectively connected to the searching module 20 and the determining module 30, and the determining module is
- the connection module 30 is connected to the switching module 40, wherein: the obtaining module 10 acquires a wireless mode of the wireless terminal accessing the router; and the searching module 20 searches for a target corresponding to the wireless terminal according to the wireless mode of the wireless terminal.
- the working mode of the USB is obtained by the obtaining module 10, and determining whether the current USB working mode is consistent with the target USB working mode, and if not, passing the switching module. 40 switches the current USB operating mode to the target USB operating mode.
- the startup module 50 and the configuration module 60 are further connected to the startup module 50 and the switching module 40, wherein the startup module 50 starts the router.
- the configuration module 60 configures the USB working mode of the router according to the configuration information of the preset USB working mode.
- the router USB working mode switching system further includes a selecting module 70 connected to the determining module 30, where the determining module 30 determines the location. Whether the first wireless mode is obtained in the wireless mode acquired by the obtaining module 70, and if yes, the first USB working mode of the router is selected as the target USB working mode by the selecting module 70; otherwise, the selecting module 70 is adopted. The second USB working mode of the router is selected as the target USB working mode.
- the router USB working mode switching system of Embodiment 7 of the present invention further includes The determining module 30 is connected to the collecting module 80, wherein the determining module 30 determines whether there is a first wireless mode in the wireless mode acquired by the acquiring module 10; when the determining module 30 determines that the obtaining module 10 obtains When the first wireless mode is in the wireless mode, the collecting module 80 collects the signal strength of the wireless terminal in the first wireless mode, and the determining module 30 determines whether the signal strength is greater than a preset reference signal strength, if The first USB working mode is selected as the target USB working mode by the selecting module 70, otherwise the second USB working mode is selected as the target USB working mode by the selecting module 70;
- the selecting module 70 selects the second USB working mode as the target USB working mode.
- the first USB working mode is a USB2.0 working mode
- the second USB working mode is a USB3.0 working mode
- the first wireless mode is a 2.4G working frequency. mode.
- the judging module in the system of the present invention can also be used to determine the type of the wireless terminal of the access router. Specifically, if the terminal type of the access router is wired, the router maintains the previous USB working mode unchanged if the router If the terminal type is wireless, the wireless mode of the subsequent wireless terminal is determined, and whether the USB working mode is switched is determined according to the wireless mode.
- the USB mode autonomous switching is performed according to the terminal type and the wireless mode, and the performance and anti-interference are optimized.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种路由器的USB工作模式切换方法,包括:S100获取接入路由器的无线终端的无线模式;S200根据无线终端的无线模式,获取与无线终端对应的目标USB工作模式;S300获取路由器当前的USB工作模式,判断当前的USB工作模式是否与目标USB工作模式一致,若否,则进入步骤S400;S400切换当前的USB工作模式为目标USB工作模式。本发明还公开了一种路由器的USB工作模式切换系统,包括:获取模块、查找模块、判断模块及切换模块,获取模块分别与查找模块、判断模块相连,判断模块与切换模块相连。本发明通过判断无线终端的连接模式来确定USB工作的模式,使得USB自动在3.0和2.0速率上的切换。
Description
本发明涉及通信领域,尤其涉及一种路由器的USB工作模式切换方法及系统。
目前许多路由器都是USB接口用于连接外部存储设备,但是由于USB3.0接口的工作频率在2.5G左右,和2.4G工作频率2412MHz~2472MHz十分接近,在固定路由器的USB工作模式为USB3.0时对2.4G的无线终端会有干扰,尤其是远距离会感觉十分明显。如果固定路由器的USB工作模式为USB2.0工作模式时,则会对5G的无线终端与路由器进行USB传输时,速率将会大大受到影响。而目前路由器的USB工作模式想要切换的话,只能通过页面去设置支持USB3.0或者USB2.0,无法智能切换。
发明内容
本发明提供一种路由器的USB工作模式切换方法及系统,用以解决现有技术中存在无法根据无线终端的无线模式来自主切换相对应的USB工作模式的问题。
本发明一种路由器的USB工作模式切换方法,包括步骤:
S100获取接入路由器的无线终端的无线模式;
S200根据所述无线终端的无线模式,获取与所述无线终端对应的目标USB工作模式;
S300获取路由器当前的USB工作模式,判断所述当前的USB工作模式是否与所述目标USB工作模式一致,若否,则进入步骤S400;
S400切换当前的USB工作模式为所述目标USB工作模式。
与现有最好技术相比,本发明的优点在于:自动切换,性能和抗干扰的平衡更好。
进一步地,还包括步骤:
S010启动路由器,根据预设的USB工作模式的配置信息,配置所述路由器的USB工作模式。
进一步地,所述步骤S200包括步骤:
S210判断获取的所述无线模式中是否有第一无线模式,若是,则进入步骤S220,否则进入步骤S230;
S220选取所述路由器的第一USB工作模式为目标USB工作模式;
S230选取所述路由器的第二USB工作模式为目标USB工作模式。
进一步地,所述步骤S210包括步骤:
S211判断获取的所述无线模式中是否有第一无线模式,若是,则进入步骤S212,否则进入步骤S230;
S212采集第一无线模式的无线终端的信号强度,判断所述信号强度是否大于预设的参考信号强度,若是,则进入步骤S220,否则进入步骤S230。
进一步地,还包括步骤:
S020获取接入路由器的终端类型,判断接入路由器的终端是否是无线终端,若是则进入下一步骤。
本发明还提供了一种路由器的USB工作模式切换系统,包括:获取模块、查找模块、判断模块及切换模块,所述获取模块分别与所述查找模块、判断模块相连,所述判断模块与所述切换模块相连,其中:所述获取模块获取接入路由器的无线终端的无线模式;所述查找模块根据所述无线终端的无线模式,查找与所述无线终端对应的目标USB工作模式;所述判断模块通过所述获取模块获取路由器当前的USB工作模式,判断所述当前的USB工作模式是否与所述目标USB工作模式一致,若否,则通过所述切换模块切换当前的USB工作模式为所述目标USB工作模式。
进一步地,还包括启动模块、配置模块,所述配置模块分别与所述启动模块、切换模块相连,其中:所述启动模块启动路由器,所述配置模块根据预设的USB工作模式的配置信息,配置所述路由器的USB工作模式。
进一步地,还包括还包括与所述判断模块相连的选取模块;其中:所述判断模块判断所述获取模块获取的所述无线模式中是否有第一无线模式,若是,则通过所述选取模块选取所述路由器的第一USB工作模式为目标USB工作模式;否则通过所述选取模块选取所述路由器的第二USB工作模式为目标USB工作模式。
进一步地,还包括还包括与所述判断模块相连的采集模块,其中:所述判断模块判断所述获取模块获取的所述无线模式中是否有第一无线模式;当所述判断模块判断所述获取模块获取的所述无线模式中有第一无线模式时,所述采集模块采集第一无线模式的无线终端的信号强度,所述判断模块判断所述信号强度是否大于预设的参考信号强度,若是,则通过所述选取模块选取所述第一USB工作模式为目标USB工作模式,否则通过所述选取模块选取所述第二USB工作模式为目标USB工作模式;当所述判断模块判断所述获取模块获取的所述无线模式中没有第一无线模式时,所述选取模块选取所述第二USB工作模式为目标USB工作模式。
进一步地,所述第一USB工作模式为USB2.0工作模式;所述第二USB工作模式为USB3.0工作模式;所述第一无线模式为2.4G工作频率模式。
本发明根据接入路由器的无线终端的无线模式来自动切换路由器的USB工作模式,做到无线终端在使用2.4G无线模式的时候保证路由器的USB工作模为USB2.0,从而避免USB3.0的干扰,根据无线终端的无线模式情况,分析获得路由器的目标USB工作模式,控制路由器的USB工作模式为目标USB工作模式。从而使得当前的USB工作模式在性能和抗干扰方面能获得更好的平衡。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明一种路由器的USB工作模式切换方法实施例一流程图;
图2为本发明一种路由器的USB工作模式切换方法实施例二流程图;
图3为本发明一种路由器的USB工作模式切换方法实施例三流程图;
图4为本发明一种路由器的USB工作模式切换方法实施例四流程图;
图5为本发明一种路由器的USB工作模式切换系统实施例五框图;
图6为本发明一种路由器的USB工作模式切换系统实施例六框图;
图7为本发明一种路由器的USB工作模式切换系统实施例七框图。
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明一种路由器的USB工作模式切换方法,实施例一如图1所示,包括步骤:
S100获取接入路由器的无线终端的无线模式;
S200根据所述无线终端的无线模式,获取与所述无线终端对应的目标USB工作模式;
S300获取路由器当前的USB工作模式,判断所述当前的USB工作模式是否与所述目标USB工作模式一致,若是则保持不变,若否,则进入步骤S400;
S400切换当前的USB工作模式为所述目标USB工作模式。
上述步骤S100中,无线终端的无线模式是指无线终端工作频率,比如目前
的无线模式包括2.4G无线模式、5G无线模式;路由器的USB工作模式处于USB3.0情况下,其接口的工作频率为2.5G左右,和无线模式2.4G工作频率十分接近,在USB工作时会对2.4G造成干扰。而如果USB工作模式一直处于USB2.0情况下,则对无线模式为5G工作频率的无线终端的传输速率造成影响。因此,本次发明技术上需要如何控制USB3.0和2.0之间的切换,本发明实施例通过判断无线连接模式的方式来解决这个问题,做到无线终端在使用2.4G无线模式的时候避免USB3.0的干扰。比如,我们获取到接入路由器的无线终端的无线模式是5G,那么根据这个5G这个终端无线模式,可以查找到与之对应的USB工作模式为USB3.0,然后看下路由器当前的USB工作模式是不是USB3.0,如果是的话那就保持不变,如果不是的话就要切换路由器USB的工作模式为USB3.0。
当然,我们在实施例一的中的步骤S100开始之前,还包括步骤:
S010启动路由器,根据预设的USB工作模式的配置信息,配置所述路由器的USB工作模式。
路由器启动后,便会启用默认的USB工作模式,这个工作模式可以进行预设,比如预设较为常用的USB2.0工作模式作为路由器的默认工作模式,于是,每次启动路由器后,都会按照预设的USB2.0工作模式的配置信息来进行配置,使得路由器工作在USB2.0工作模式下。
本发明的第二个实施例,如图2所示,包括步骤:
S100获取接入路由器的无线终端的无线模式;
S210判断获取的所述无线模式中是否有第一无线模式,若是,则进入步骤S220,否则进入步骤S230;
S220选取所述路由器的第一USB工作模式为目标USB工作模式;
S230选取所述路由器的第二USB工作模式为目标USB工作模式;
S300获取路由器当前的USB工作模式,判断所述当前的USB工作模式是否与所述目标USB工作模式一致,若否,则进入步骤S400;
S400切换当前的USB工作模式为所述目标USB工作模式。
由于接入路由器的无线终端可能不止一个,因此,考虑到接入路由器的多个无线终端各自最匹配的USB工作模式不一定一样,而路由器又不可能同时以两种工作模式工作,因此,这就需要一个权衡问题。本实施例就是通过根据所有接入路由器的无线终端的无线模式情况来做出判断。具体的,比如,假设第一无线模式为2.4G无线模式,当前接入路由器的无线终端有A、B、C,各自对应的无线模式为:2.4G无线模式(终端A)、5G无线模式(终端B)、5G无线模式(终端C);显然,存在作为第一无线模式的2.4G无线模式,因此为了不影响所有终端的传输性能,选取USB2.0工作模式为目标USB工作模式,因为如果选取USB3.0工作模式的话,则会对终端A产生干扰,影响到终端A的传输性能。只有当接入路由器的无线终端均是5G无线模式时,才会选取USB3.0工作模式作为目标USB工作模式。
本发明的第三个实施例,如图3所示,包括步骤:
S010启动路由器,根据预设的USB工作模式的配置信息,配置所述路由器的USB工作模式;
S100获取接入路由器的无线终端的无线模式;
S211判断获取的所述无线模式中是否有第一无线模式,若是,则进入步骤S212,否则进入步骤S230;
S212采集第一无线模式的无线终端的信号强度,判断所述信号强度是否大于预设的参考信号强度,若是,则进入步骤S220,否则进入步骤S230。
S220选取所述路由器的第一USB工作模式为目标USB工作模式;
S230选取所述路由器的第二USB工作模式为目标USB工作模式。
S300获取路由器当前的USB工作模式,判断所述当前的USB工作模式是否与所述目标USB工作模式一致,若否,则进入步骤S400;
S400切换当前的USB工作模式为所述目标USB工作模式。
本实施例相对于实施例二而言,方案更为优化,并不是只要有第一无线模式的无线终端接入了就判断选取第一USB工作模式为目标USB工作模式,而是
还要对第一无线模式的无线终端的信号强度进行采集判断,看所有第一无线模式的无线终端的信号强度是否均大于预设的参考信号强度,如果是则选取第一USB工作模式为目标USB工作模式,否则的话,则认为信号强度小于或等于预设的参考信号强度的第一无线模式的无线终端距离无线路由器的距离较远或者阻隔较多,信号比较差,不管是USB2.0还是USB3.0都由于其信号强度弱的而对其造成的差别影响较小。因此也就不需要考虑这个终端的传输性能了,相当于这个终端没有接入该无线路由器了。例如,关于无线终端的信号强度,比如2.4G无线终端如果与无线路由器隔了一堵墙(距离不是很远的情况下),那么无线路由器接收该2.4G无线终端发出的信号的信号强度大概为-35dBm,如果隔了两堵墙,信号强度大概降为-45dBm,如果隔了三堵墙,那么信号强度大概降为-55dBm;一般的,降到-55dBm的时候一般信号比较偏弱了,我们可以预设一个用来参考的信号强度,比如我们预设信号强度阈值为-58dBm,现获取到接入路由器的无线终端有终端1(2.4G)、终端2(2.4G)、终端3(5G);那么接下来,采集终端1和终端2各自的信号强度,假如采集终端1的信号强度为-35dBm,采集的终端2的信号强度为-80dBm,通过比较可得,终端1的信号强度-35dBm大于预设的参考信号强度-55dBm,而终端2的信号强度-80dBm小于预设的参考信号强度-55dBm,因此不需要考虑终端2,鉴于终端1的信号强度大于预设的参考信号强度,因此选择路由器的第一USB工作模式USB2.0为目标USB工作模式。当然,如果终端1和终端2的信号强度均低于预设的参考信号强度,那么就选取第二USB工作模式USB3.0为目标USB工作模式。
为了避免切换频繁,我们还可以多设置一个判定步骤:S076判断流量使用最高的无线终端使用的流量是否大于预设的参考流量值,如果是则进入步骤S080,否则保持不变。或者设定每次切换后至少要保持1分钟不变动等。
本发明的第四个实施例,在上述任一实施例的基础上,还包括步骤:
S020获取接入路由器的终端类型,判断接入路由器的终端是否是无线终端,若是则进入后续步骤。
具体的,如图4所示,假设路由设备启动后的默认USB工作模式为USB3.0,接入第一个终端后,首先判断该终端类型,是有线还是无线,如果是有线终端的话那么路由器的USB工作模式保持默认USB3.0不变。如果是无线终端的话,那么需要进一步判断该无线终端的无线模式,看是属于2.4G还是5G,如果是2.4G的无线模式的话,则将路由器的USB工作模式切换到USB2.0,如果是5G的话,则保持不变。
基于相同的技术构思,本发明实施例五提供一种路由器的USB工作模式切换系统,该系统可执行上述方法实施例。本发明切换系统如图5所示,包括:获取模块10、查找模块20、判断模块30及切换模块40,所述获取模块10分别与所述查找模块20、判断模块30相连,所述判断模块30与所述切换模块40相连,其中:所述获取模块10获取接入路由器的无线终端的无线模式;所述查找模块20根据所述无线终端的无线模式,查找与所述无线终端对应的目标USB工作模式;所述判断模块30通过所述获取模块10获取路由器当前的USB工作模式,判断所述当前的USB工作模式是否与所述目标USB工作模式一致,若否,则通过所述切换模块40切换当前的USB工作模式为所述目标USB工作模式。
较佳的,在上述实施例五的基础上,还包括启动模块50、配置模块60,所述配置模块60分别与所述启动模块50、切换模块40相连,其中:所述启动模块50启动路由器,所述配置模块60根据预设的USB工作模式的配置信息,配置所述路由器的USB工作模式。
如图6所示,本发明实施例六的路由器USB工作模式切换系统,在上述实施例的基础上,还包括与所述判断模块30相连的选取模块70;其中:所述判断模块30判断所述获取模块70获取的所述无线模式中是否有第一无线模式,若是,则通过所述选取模块70选取所述路由器的第一USB工作模式为目标USB工作模式;否则通过所述选取模块70选取所述路由器的第二USB工作模式为目标USB工作模式。
本发明实施例7的路由器USB工作模式切换系统,如图7所示,还包括与所
述判断模块30相连的采集模块80,其中:所述判断模块30判断所述获取模块10获取的所述无线模式中是否有第一无线模式;当所述判断模块30判断所述获取模块10获取的所述无线模式中有第一无线模式时,所述采集模块80采集第一无线模式的无线终端的信号强度,所述判断模块30判断所述信号强度是否大于预设的参考信号强度,若是,则通过所述选取模块70选取所述第一USB工作模式为目标USB工作模式,否则通过所述选取模块70选取所述第二USB工作模式为目标USB工作模式;
当所述判断模块30判断所述获取模块70获取的所述无线模式中没有第一无线模式时,所述选取模块70选取所述第二USB工作模式为目标USB工作模式。
较佳的,上述任一实施例中,所述第一USB工作模式为USB2.0工作模式;所述第二USB工作模式为USB3.0工作模式;所述第一无线模式为2.4G工作频率模式。
较佳的,本发明系统中的判断模块还可以用来判断接入路由器的无线终端类型,具体的,如果接入路由器的终端类型是有线的话则路由器保持之前的USB工作模式不变,如果路由器的终端类型是无线的话则进入后续无线终端的无线模式的判断,根据无线模式来决定是否切换USB工作模式。根据终端类型和无线模式情况进行USB模式的自主切换,保持性能和抗干扰最优化。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。
Claims (10)
- 一种路由器的USB工作模式切换方法,其特征在于,包括步骤:S100获取接入路由器的无线终端的无线模式;S200根据所述无线终端的无线模式,获取与所述无线终端对应的目标USB工作模式;S300获取路由器当前的USB工作模式,判断所述当前的USB工作模式是否与所述目标USB工作模式一致,若否,则进入步骤S400;S400切换当前的USB工作模式为所述目标USB工作模式。
- 根据权利要求1所述的一种路由器的USB工作模式切换的方法,其特征在于,还包括步骤:S010启动路由器,根据预设的USB工作模式的配置信息,配置所述路由器的USB工作模式。
- 根据权利要求1所述的一种路由器的USB工作模式切换方法,其特征在于,所述步骤S200包括步骤:S210判断获取的所述无线模式中是否有第一无线模式,若是,则进入步骤S220,否则进入步骤S230;S220选取所述路由器的第一USB工作模式为目标USB工作模式;S230选取所述路由器的第二USB工作模式为目标USB工作模式。
- 根据权利要求3所述的一种路由器的USB工作模式切换方法,其特征在于,所述步骤S210包括步骤:S211判断获取的所述无线模式中是否有第一无线模式,若是,则进入步骤S212,否则进入步骤S230;S212采集第一无线模式的无线终端的信号强度,判断所述信号强度是否大 于预设的参考信号强度,若是,则进入步骤S220,否则进入步骤S230。
- 根据权利要求1-4任一项所述的一种路由器的USB工作模式切换方法,其特征在于,还包括步骤:S020获取接入路由器的终端类型,判断接入路由器的终端是否是无线终端,若是则进入下一步骤。
- 一种路由器的USB工作模式切换系统,其特征在于,包括:获取模块、查找模块、判断模块及切换模块,其中:所述获取模块获取接入路由器的无线终端的无线模式;所述查找模块根据所述无线终端的无线模式,查找与所述无线终端对应的目标USB工作模式;所述判断模块通过所述获取模块获取路由器当前的USB工作模式,判断所述当前的USB工作模式是否与所述目标USB工作模式一致,若否,则通过所述切换模块切换当前的USB工作模式为所述目标USB工作模式。
- 根据权利要求6所述的一种路由器的USB工作模式切换系统,其特征在于,还包括启动模块、配置模块,所述配置模块分别与所述启动模块、切换模块相连,其中:所述启动模块启动路由器,所述配置模块根据预设的USB工作模式的配置信息,配置所述路由器的USB工作模式。
- 根据权利要求6所述的一种路由器的USB工作模式切换系统,其特征在于,还包括与所述判断模块相连的选取模块;其中:所述判断模块判断所述获取模块获取的所述无线模式中是否有第一无线模式,若是,则通过所述选取模块选取所述路由器的第一USB工作模式为目标USB工作模式;否则通过所述选取模块选取所述路由器的第二USB工作模式为 目标USB工作模式。
- 根据权利要求8所述的一种路由器的USB工作模式切换系统,其特征在于,还包括与所述判断模块相连的采集模块,其中:所述判断模块判断所述获取模块获取的所述无线模式中是否有第一无线模式;当所述判断模块判断所述获取模块获取的所述无线模式中有第一无线模式时,所述采集模块采集第一无线模式的无线终端的信号强度,所述判断模块判断所述信号强度是否大于预设的参考信号强度,若是,则通过所述选取模块选取所述第一USB工作模式为目标USB工作模式,否则通过所述选取模块选取所述第二USB工作模式为目标USB工作模式;当所述判断模块判断所述获取模块获取的所述无线模式中没有第一无线模式时,所述选取模块选取所述第二USB工作模式为目标USB工作模式。
- 根据权利要求8或9所述的一种路由器的USB工作模式切换系统,其特征在于,所述第一USB工作模式为USB2.0工作模式;所述第二USB工作模式为USB3.0工作模式;所述第一无线模式为2.4G工作频率模式。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710369994.8A CN107070727B (zh) | 2017-05-23 | 2017-05-23 | 一种路由器的usb工作模式切换方法及系统 |
CN201710369994.8 | 2017-05-23 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018214351A1 true WO2018214351A1 (zh) | 2018-11-29 |
Family
ID=59610501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/102729 WO2018214351A1 (zh) | 2017-05-23 | 2017-09-21 | 一种路由器的usb工作模式切换方法及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107070727B (zh) |
WO (1) | WO2018214351A1 (zh) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107070727B (zh) * | 2017-05-23 | 2020-09-25 | 上海斐讯数据通信技术有限公司 | 一种路由器的usb工作模式切换方法及系统 |
CN107517132A (zh) * | 2017-09-01 | 2017-12-26 | 上海斐讯数据通信技术有限公司 | 路由器usb工作模式的切换方法、存储介质及路由器 |
CN108768706A (zh) * | 2018-05-16 | 2018-11-06 | 四川斐讯信息技术有限公司 | 一种路由器上存储设备接口的模式选择方法和选择系统 |
CN110768732A (zh) * | 2018-07-26 | 2020-02-07 | 深圳金中熠科技有限公司 | 一种路由器降低无线2.4GHz信号和USB3.0信号相互干扰的方法 |
CN109743141B (zh) * | 2019-02-21 | 2021-10-22 | 维沃移动通信有限公司 | 一种数据传输的调整方法及终端设备 |
CN111823863B (zh) * | 2020-05-28 | 2021-11-16 | 惠州华阳通用电子有限公司 | 一种车载播放源切换方法、系统及设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201114586Y (zh) * | 2007-09-27 | 2008-09-10 | 深圳华为通信技术有限公司 | 一种无线路由网关设备 |
CN101388816A (zh) * | 2008-11-05 | 2009-03-18 | 深圳华为通信技术有限公司 | 一种网络端口模式切换方法及装置 |
CN103475592A (zh) * | 2013-08-27 | 2013-12-25 | 上海斐讯数据通信技术有限公司 | 一种3g上网卡热插拔支持系统及方法 |
CN103916323A (zh) * | 2013-01-03 | 2014-07-09 | 友讯科技股份有限公司 | 能自动检测连线模式执行连线设定的移动式路由器及方法 |
CN107070727A (zh) * | 2017-05-23 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | 一种路由器的usb工作模式切换方法及系统 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7237719B2 (en) * | 2003-09-03 | 2007-07-03 | Stmicroelectronics, Inc. | Method and apparatus for a USB and contactless smart card device |
-
2017
- 2017-05-23 CN CN201710369994.8A patent/CN107070727B/zh active Active
- 2017-09-21 WO PCT/CN2017/102729 patent/WO2018214351A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201114586Y (zh) * | 2007-09-27 | 2008-09-10 | 深圳华为通信技术有限公司 | 一种无线路由网关设备 |
CN101388816A (zh) * | 2008-11-05 | 2009-03-18 | 深圳华为通信技术有限公司 | 一种网络端口模式切换方法及装置 |
CN103916323A (zh) * | 2013-01-03 | 2014-07-09 | 友讯科技股份有限公司 | 能自动检测连线模式执行连线设定的移动式路由器及方法 |
CN103475592A (zh) * | 2013-08-27 | 2013-12-25 | 上海斐讯数据通信技术有限公司 | 一种3g上网卡热插拔支持系统及方法 |
CN107070727A (zh) * | 2017-05-23 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | 一种路由器的usb工作模式切换方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN107070727B (zh) | 2020-09-25 |
CN107070727A (zh) | 2017-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018214351A1 (zh) | 一种路由器的usb工作模式切换方法及系统 | |
US11095406B2 (en) | Methods, systems, and media for managing network connections | |
KR100735365B1 (ko) | 마스터 단말기와 슬레이브 장치 간에 자동 연결 방법 및 그시스템 | |
US11627507B2 (en) | Network handover method and apparatus | |
EP2785093A1 (en) | Access point selection in a wireless network | |
JP5842066B2 (ja) | 通信干渉処理方法及び無線ルータ | |
US9332559B2 (en) | Method and channel selector for selecting an operation channel, and wireless network connecting apparatus including the channel selector | |
CN107182069B (zh) | 无线路由器传输速率切换方法、控制方法及无线路由器 | |
CN108200615A (zh) | 无线路由器的控制方法、装置和led照明装置 | |
JP2001028778A (ja) | セルサーチ制御方法、移動局および移動通信システム | |
EP2941060A1 (en) | Network access method, device, and system | |
CN108541024A (zh) | 一种连接无线ap的频段控制方法、装置、设备及存储介质 | |
CN113541724B (zh) | 频段切换控制方法、控制设备及存储介质 | |
CN110602738B (zh) | 网络连接方法、装置及电子装置 | |
US11539826B2 (en) | 5G FWA device self-installation application | |
CN106576277B (zh) | 通信连接的控制方法和设备 | |
CN113132958B (zh) | 融合组网方法、设备、系统及计算机可读存储介质 | |
US11528184B2 (en) | Processing method, device and apparatus for mesh network, and storage medium | |
WO2019035292A1 (ja) | ネットワークアクセス方法及び通信システム | |
JP2018195981A (ja) | デバイス位置管理システム及びデバイス位置管理サーバ | |
CN105141457B (zh) | 光传送网业务接入方法、装置、综合网管以及系统 | |
CN107257266B (zh) | 一种传输速率的调整方法和装置 | |
KR101497021B1 (ko) | 스마트폰을 이용한 ip 카메라 네트워크 설정방법 | |
JP2018117247A (ja) | 無線通信装置、無線回線接続方法、及び無線回線接続プログラム | |
CN115250419A (zh) | 一种蓝牙配对连接方法、装置及终端 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17911078 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17911078 Country of ref document: EP Kind code of ref document: A1 |