WO2018214353A1 - 一种自动调节usb速率的方法及无线路由器 - Google Patents

一种自动调节usb速率的方法及无线路由器 Download PDF

Info

Publication number
WO2018214353A1
WO2018214353A1 PCT/CN2017/102732 CN2017102732W WO2018214353A1 WO 2018214353 A1 WO2018214353 A1 WO 2018214353A1 CN 2017102732 W CN2017102732 W CN 2017102732W WO 2018214353 A1 WO2018214353 A1 WO 2018214353A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless router
usb
noise
usb interface
noise value
Prior art date
Application number
PCT/CN2017/102732
Other languages
English (en)
French (fr)
Inventor
陈晶
Original Assignee
上海斐讯数据通信技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Publication of WO2018214353A1 publication Critical patent/WO2018214353A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Definitions

  • the invention belongs to the field of wireless technologies, and in particular relates to a method for automatically adjusting a USB speed and a wireless router.
  • USB interface uses the USB 2.0 standard.
  • USB 3.0 port shorts the transfer speed of USB 3.0 ports.
  • the maximum transfer speed of USB2.0 is 60MB/S
  • the maximum transfer speed of USB3.0 is 500MB/S. It can be said that transferring files using USB3.0 will save us a lot of time.
  • USB3.0 transmission frequency is 5GHz serial, but USB3.0 uses 4 data lines to form 2 groups. Each data line is responsible for one transmission direction, achieving full-duplex bidirectional 5GHz, and the reference frequency of each data line is 2.5. GHz. This is very close to the Wi-Fi operating frequency of 2412Mhz-2472Mhz, so when working in USB3.0, it will bring great noise to the 2.4GHz band, making the wireless signal very unstable, especially the wireless distance between the devices on the terminal. The farther the router is, the more obvious the interference.
  • the usage mode of the USB3.0 port of many wireless routers is limited to the USB2.0 working mode. If the USB interface of many wireless routers is fixed in the USB2.0 working mode, the transmission rate of the USB will be affected, and the USB interface will not be fully utilized. If the USB interface of many wireless routers is fixed in the USB3.0 working mode, If you switch to USB3.0, it will cause interference to the Wi-Fi signal.
  • an object of the present invention is to provide a method for automatically adjusting a USB speed, which is realized.
  • the working mode of the USB interface is automatically switched to maximize the utilization of the USB interface.
  • the present invention provides a method for automatically adjusting a USB rate, which is applied to a USB interface of a wireless router, and includes the following steps:
  • the method further comprises setting a waiting time in the system.
  • step S2 further comprises:
  • the USB interface of the wireless router switches to the USB 3.0 working mode.
  • step S3 further comprises:
  • the USB interface of the wireless router switches to the USB 2.0 working mode.
  • the step S4 further includes:
  • the noise value is equal to a predetermined noise threshold during the waiting time, and the working mode of the USB interface of the wireless router remains unchanged.
  • the preset noise threshold is set to -85 dbm.
  • the preset noise threshold is set to a threshold range of -80 dbm - 85 dbm.
  • the method further includes:
  • the USB interface of the wireless router is switched to the USB 3.0 working mode
  • the USB interface of the wireless router is switched to the USB 2.0 working mode
  • the noise value is in the range of -80 dbm - 85 dbm during the waiting time, the working mode of the wireless interface of the wireless router remains unchanged.
  • the present invention also provides a wireless router, characterized in that the wireless router comprises:
  • An obtaining module configured to obtain a noise value of a current time of the wireless router
  • a judging module configured to switch the USB interface of the wireless router to a USB3.0 working mode if the noise value is less than the noise threshold; and switch the USB interface of the wireless router if the noise value is greater than the noise threshold In the USB 2.0 mode of operation, the noise value is equal to the noise threshold, and the operating mode of the USB interface of the wireless router remains unchanged.
  • the wireless router further includes a timing module, where the timing module is configured to set a waiting time
  • the determining module is further configured to: if the noise value is less than the noise threshold in the waiting time, the USB interface of the wireless router is switched to the USB3.0 working mode; if the noise value is in the waiting time If the noise is greater than the noise threshold, the USB interface of the wireless router is switched to the USB2.0 working mode; if the noise value is equal to the noise threshold within the waiting time, the working mode of the USB interface of the wireless router is maintained. constant.
  • the method for automatically adjusting the USB speed and the wireless router provided by the present invention have the following beneficial effects: by comparing the current time noise value of the wireless router with a preset noise threshold, according to the comparison result, The USB interface working mode of the wireless router is switched, so when the noise interference of the wireless router is small, the USB interface is switched to the USB3.0 working mode.
  • the USB interface When the noise interference of the wireless router is large, the USB interface is switched to the USB2.0 working mode, thus The USB interface switches autonomously between the USB2.0 working mode and the USB3.0 working mode, thereby maximizing the utilization of the USB interface; causing interference problems caused by the work of the USB3.0 when working with Wi-Fi, and the USB interface
  • the work rate problem which achieves a balance between the two, improves the user experience.
  • FIG. 1 is a schematic flow chart of a method for automatically adjusting a USB rate according to the present invention
  • FIG. 2 is a schematic flow chart of another method for automatically adjusting a USB speed according to the present invention.
  • FIG. 3 is a schematic flow chart of still another method for automatically adjusting a USB rate according to the present invention.
  • FIG. 4 is a schematic diagram showing the structure of a wireless router of the present invention.
  • an embodiment of a method for automatically adjusting a USB rate according to the present invention, applied to a USB interface of a wireless router includes the following steps:
  • the noise value of the wireless router is obtained.
  • the noise value mainly acquires the noise parameter of the main function module of the wireless router, and then performs calculation according to a certain algorithm to obtain the noise value of the wireless router.
  • the noise value of the device is mainly from the Wi-Fi chip.
  • the Wi-Fi transmission power will be larger and the noise generated will be larger.
  • a wireless router includes Wi-Fi chip and CPU chip.
  • the Wi-Fi chip can calculate the noise value parameter according to the RF circuit connection around the chip, and the noise value parameter includes the signal signal to noise ratio, delay, etc., and the system can read the noise value parameter from the chip register.
  • the Wi-Fi chip and the CPU chip are connected by hardware.
  • a pin of the Wi-Fi chip is connected to the GPIO pin of the CPU, and the CPU can obtain corresponding parameters through the GPIO pin.
  • the CPU calculates the noise value of the wireless router according to an algorithm according to various factors such as a connection mode, a transmission distance, and a receiving sensitivity of the device.
  • the wireless router includes multiple Wi-Fi chips, and the CPU in the wireless router acquires parameters of the noise value of each Wi-Fi chip according to the connection mode, transmission distance, and receiving sensitivity of the device. A variety of factors are calculated in the noise value of the wireless router.
  • the noise value of the wireless router is obtained from a CPU chip in the wireless router device.
  • the system obtains the noise value of the current time of the wireless router and makes a judgment. If the noise value at the current moment is less than a preset noise threshold, the USB interface of the wireless router is switched to the USB3.0 working mode, and the noise interference at the current moment is relatively small, which has no effect on the work of the Wi-Fi, and the USB interface is Switching to the high-speed USB3.0 working mode makes the user use the USB interface faster and more efficient; if the current time noise value is greater than the preset noise threshold, the wireless router's USB interface is switched to the USB2.0 working mode. At present, the wireless router has large noise interference, which causes interference to the work of Wi-Fi, and is affected when the user uses Wi-Fi.
  • the USB interface is switched to the USB 2.0 working mode with low speed, and the USB is lowered.
  • the working mode of the interface reduces the interference to Wi-Fi, and achieves a certain balance between the two problems of interference and rate; if the noise value at the current time is equal to a preset noise threshold, the USB interface of the wireless router The mode remains unchanged. If the previous moment is USB2.0 working mode or USB2.0 working mode, if the last moment is USB3.0 working mode or USB3.0 working mode. By comparing the noise value described by the wireless router with a preset noise threshold, the USB interface working mode of the wireless router is switched, thereby causing the USB interface to automatically switch between the USB 2.0 working mode and the USB 3.0 working mode. The maximum efficiency of the USB interface is used, which brings great convenience to the user.
  • an automatic adjustment USB rate One embodiment of the method, applied to a USB interface of a wireless router, includes the following steps:
  • the noise value is equal to a preset noise threshold within the waiting time, the working mode of the wireless interface of the wireless router remains unchanged.
  • the noise value of the current time of the wireless router is compared with a preset noise threshold during the waiting time.
  • the comparison between the current time noise value and the noise threshold is kept stable, so as to prevent the current noise value of the wireless router from shaking at the critical point of the noise threshold, resulting in frequent switching of the USB mode, affecting the system. Stability.
  • the noise threshold is set to -85 dbm and the system setup wait time is 1 minute.
  • the system obtains the noise value of the current time of the wireless router, and the Wi-Fi chip in the wireless router calculates the parameter of the noise value such as the signal to noise ratio according to the RF circuit connection around the chip.
  • the CPU in the wireless router acquires the parameter of the noise value in the Wi-Fi chip, and calculates the noise value of the current time of the wireless router according to the algorithm according to various factors such as the connection mode, the transmission distance, and the receiving sensitivity of the device.
  • the system obtains the noise value of the current time of the wireless router and makes a judgment.
  • the USB interface of the wireless router is switched to the USB3.0 working mode, and within 1 minute, the current noise value of the wireless router and the comparison result of -85dbm remain unchanged.
  • the noise interference at the current moment is relatively small, which has no effect on the work of Wi-Fi. Switching the USB interface to the high-speed USB3.0 working mode makes the user use the USB interface faster and more efficient; if the noise value is 1 minute If the internal router is greater than -85dbm, the USB interface of the wireless router is switched to the USB2.0 working mode. In the 1 minute, the current noise value of the wireless router and the -85dbm comparison result remain unchanged, and the current wireless router has large noise interference.
  • the noise threshold is set to -80 dbm - 85 dbm and a waiting time is set.
  • the comparison noise threshold is set to the conversion interval to prevent the current noise value of the wireless router from being shaken frequently.
  • the comparison result is unstable, which leads to frequent switching of the working mode of the USB interface, so that the judgment result is more Stable, further improving the stability of the system.
  • an embodiment of a method for automatically adjusting a USB rate, applied to a USB interface of a wireless router includes the following steps:
  • the USB interface of the wireless router is switched to the USB3.0 working mode.
  • the USB interface of the wireless router is switched to the USB2.0 working mode.
  • the noise threshold is set to range from -80 dbm to 85 dbm, and the system setup wait time is 1 minute.
  • the system obtains the noise value of the current time of the wireless router and compares it with the set noise threshold. If the noise value of the current time is less than -80dbm in 1 minute, the USB interface of the wireless router is switched to the USB3.0 working mode; if the noise value of the current time is greater than -85dbm in 1 minute, the USB interface of the wireless router is switched to USB2. .0 working mode; if the current time noise value is equal to the value between -80dbm--85dbm in 1 minute, the mode of the USB interface of the wireless router does not change.
  • the determined noise threshold is set to an interval -80dbm- -85dbm prevents the wireless router from frequently jittering at the current moment, making the comparison result unstable and causing frequent switching of the USB interface, further improving the stability of the system and improving the user experience.
  • a wireless router characterized in that the wireless router comprises:
  • the obtaining module 40 is configured to obtain a noise value of a current time of the wireless router
  • a setting module 41 configured to set a noise threshold
  • the determining module 42 is configured to switch the USB interface of the wireless router to the USB3.0 working mode if the noise value is less than the noise threshold; and if the noise value is greater than the noise threshold, the USB interface of the wireless router Switching to the USB2.0 operating mode; if the noise value is equal to the noise threshold, the mode of the USB interface of the wireless router does not change.
  • the wireless router further includes a timing module, and the timing module is configured to set a waiting time
  • the determining module is further configured to: if the waiting time of the noise value is less than the noise threshold, the USB interface of the wireless router is switched to the USB3.0 working mode; if the noise value is longer than the waiting time
  • the noise threshold is that the USB interface of the wireless router is switched to the USB2.0 working mode; if the noise value is equal to the noise threshold, the mode of the wireless interface of the wireless router is unchanged.
  • a wireless router includes a Wi-Fi chip and a CPU chip, and the Wi-Fi chip can calculate a parameter of a noise value according to a radio frequency circuit connection around the chip, and the parameter of the noise value includes a signal noise of the signal.
  • the ratio, delay, etc., the system can read the parameters of the noise value from the chip's registers.
  • the Wi-Fi chip and the CPU chip are connected by hardware.
  • a pin of the Wi-Fi chip is connected to the GPIO pin of the CPU, and the CPU can obtain corresponding parameters through the GPIO pin.
  • the CPU calculates the noise value of the wireless router according to an algorithm according to various factors such as a connection mode, a transmission distance, and a receiving sensitivity of the device.
  • the wireless router includes multiple Wi-Fi chips, and the CPU in the wireless router acquires each Wi-Fi chip.
  • the noise value parameter calculates the noise value of the wireless router according to various factors such as the connection mode of the device, the transmission distance, and the receiving sensitivity.
  • the setting module 41 sets a noise threshold.
  • the timing module set a waiting time. Then, the wireless router compares the noise value of the wireless router at the current time with the set noise threshold in the waiting time set in the timing module. If the current time noise value is less than a preset noise threshold, the USB interface of the wireless router is switched to the USB3.0 working mode; if the current time noise value is greater than the preset noise threshold, the USB interface of the wireless router is switched. It is the USB2.0 working mode; if the current time noise value is equal to a preset noise threshold, the mode of the USB interface of the wireless router does not change. By comparing the current noise value of the wireless router with the preset noise threshold, the USB interface working mode of the wireless router is switched.
  • the USB interface works in the high-speed USB 3.0 working mode. To improve the user experience; when the wireless router's noise interference is large, the USB interface works in the USB2.0 working mode, reducing the interference to the Wi-Fi work, so that the interference to the Wi-Fi work and the USB speed are balanced.
  • the noise threshold is set to -85 dbm and the system setup wait time is 1 minute.
  • the noise value of the wireless router and the preset threshold are set for 1 minute waiting time, the frequent jitter of the noise is avoided, and the USB interface is frequently switched, thereby improving the stability of the system.
  • the noise threshold is set to range from -80 dbm to 85 dbm, and the system setup wait time is 1 minute.
  • the determined noise threshold is set to an interval of -80dbm--85dbm, which prevents the noise value of the wireless router from being frequently jittered at present, and the comparison result is unstable, resulting in frequent switching of the USB interface, further improving the stability of the system and improving the user.
  • the invention provides a method for automatically adjusting the USB speed and a wireless router.
  • the working mode of the USB interface of the wireless router can be Automatic switching enables the wireless router's USB interface to be used most efficiently, improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Transceivers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种自动调节USB速率的方法及无线路由器,通过设置一噪音阀值,获取无线路由器所述的噪音值,并将所述的噪音值与预设的噪音阀值进行比较,根据比较结果,切换无线路由器的USB接口工的作模式,实现了USB接口的工作模式自动切换,使USB接口得到最大的利用率。

Description

一种自动调节USB速率的方法及无线路由器 技术领域
本发明属于无线技术领域,特别涉及自动调节USB速率的方法及无线路由器。
背景技术
目前,大多数无线路由器都是采用USB接口和外部存储设备进行连接。在很多无线路由器设计中,USB接口标准采用USB2.0标准。使用USB3.0端口短裤的传输速度和使用USB2.0端口的传输速度有着很大的差别。根据数据显示,USB2.0最大的传输速度为60MB/S,USB3.0的最大传输速度是500MB/S。可以说,使用USB3.0进行传输文件将会为我们节省大量的时间。
那为什么大多数无线路由器设计中,USB接口标准采用USB2.0标准?这是因为USB3.0端口在工作时,会对无线路由器的信号产生严重的干扰。USB3.0的传输频率时5GHz串行,但是USB3.0使用4条数据线组成2组,每组数据线负责一个传输方向,实现全双工双向5GHz,而每条数据线的基准频率是2.5GHz。这和Wi-Fi的工作频率2412Mhz-2472Mhz十分接近,因此在USB3.0工作时,会对2.4GHz频段带来极大的噪音,使无线信号变得非常不稳定,尤其是终端上设备距离无线路由器越远,干扰越明显。因此,为了不影响无线信号,很多无线路由器的USB3.0端口的使用模式限制在USB2.0工作模式。如果将很多无线路由器的USB接口固定在USB2.0工作模式,这样的话,USB的传输速率就会受到影响,没有得到最发挥,如果将很多无线路由器的USB接口固定在USB3.0工作模式,这样的话,当切换为USB3.0时,会对Wi-Fi信号造成干扰。
因此,如何解决上述现有技术中的问题,使无线路由器中的USB端口使用效率最高,成为亟待解决的问题。
发明内容
鉴于此,本发明的目的在于提供一种自动调节USB速率的方法,实现了 USB接口的工作模式自动切换,使USB接口得到最大的利用率。
本发明提供了一种自动调节USB速率的方法,应用于无线路由器的USB接口,其特征在于,包括以下步骤:
S10,获取无线路由器当前时刻的噪音值;
S20,若所述噪音值小于一预设的噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;
S30,若所述噪音值大于所述预设的噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;
S40,若前噪音值等于所述预设的噪音阀值,则无线路由器的USB接口工作模式维持不变。
优选地,所述方法还包括,在系统中设置一等待时间。
优选地,所述步骤S2进一步包括:
若所述噪音值在所述等待时间内小于一预设的噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式。
优选地,所述步骤S3进一步包括:
若所述噪音值在所述等待时间内大于所述预设的噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式。
优选地,所述步骤S4进一步包括;
所述噪音值在所述等待时间内等于一预设的噪音阀值,则无线路由器的USB接口的工作模式维持不变。
优选地,所述预设的噪音阀值设置为-85dbm。
优选地,所述预设的噪音阀值设置为-80dbm--85dbm的阀值范围。
优选地,所述方法还包括:
获取无线路由器当前时刻的噪音值;
若所述噪音值在所述等待时间内小于-85dbm,则无线路由器的USB接口切换为USB3.0工作模式;
若所述噪音值在所述等待时间内大于-80dbm,则无线路由器的USB接口切换为USB2.0工作模式;
若所述噪音值在所述等待时间内在-80dbm--85dbm范围内,则无线路由器的USB接口的工作模式维持不变。
本发明还提供一种无线路由器,其特征在于,所述无线路由器包括:
获取模块,用于获取无线路由器当前时刻的噪音值;
设置模块,用于设置一噪音阀值;
判断模块,用于若所述噪音值小于所述噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;若所述噪音值大于所述噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式,所述噪音值等于所述噪音阀值,则无线路由器的USB接口的工作模式维持不变。
优选地,所述无线路由器还包括一定时模块,所述定时模块用于设置一等待时间;
所述判断模块,还用于若所述噪音值在所述等待时间内小于所述噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;若所述噪音值在所述等待时间内大于所述噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;若所述噪音值在所述等待时间内等于所述噪音阀值,则无线路由器的USB接口的工作模式维持不变。
与现有技术相比,本发明提供的自动调节USB速率的方法及无线路由器,具有以下有益效果:通过将无线路由器当前时刻的噪音值与预设的噪音阀值进行比较,根据比较结果,对无线路由器的USB接口工作模式进行切换,因此当无线路由器的噪音干扰小时,USB接口切换为USB3.0工作模式,当无线路由器的噪音干扰大时,USB接口切换为USB2.0工作模式,因而使USB接口在USB2.0工作模式和USB3.0工作模式之间自主切换,从而使USB接口得到最大的利用率;使USB3.0工作时对Wi-Fi的工作造成的干扰问题,与USB接口的工作速率问题,这二者之间达到一个平衡,提高了用户的体验。
附图说明
下面将以明确易懂的方式,结合附图说明优选实施方式,对一种自动调节USB速率的方法及无线路由器的上述特性、技术特征、优点及其实现方式予以 进一步说明。
图1是本发明一种自动调节USB速率方法的流程示意图;
图2是本发明另一种自动调节USB速率方法的流程示意图;
图3是本发明再一种自动调节USB速率方法的流程示意图;
图4是本发明一种无线路由器的组成结构示意图。
具体实施方式
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。
为使图面简洁,各图中只示意性地表示出了与本发明相关的部分,它们并不代表其作为产品的实际结构。另外,以使图面简洁便于理解,在有些图中具有相同结构或功能的部件,仅示意性地绘示了其中的一个,或仅标出了其中的一个。在本文中,“一个”不仅表示“仅此一个”,也可以表示“多于一个”的情形。
如图1所示,根据本发明一种自动调节USB速率方法的一个实施例,应用于无线路由器的USB接口,包括以下步骤:
S10,获取无线路由器当前时刻的噪音值;
S20,若所述噪音值小于一预设的噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;
S30,若所述噪音值大于所述预设的噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;
S40,若所述噪音值等于所述预设的噪音阀值,则无线路由器的USB接口工作模式维持不变。
具体的,获取无线路由器的所述的噪音值。所述噪音值主要获取无线路由器主要功能模块的噪音参数,然后按照一定的算法进行计算,获取无线路由器的噪音值。通常,在无线路由器中,设备的噪音值主要来自Wi-Fi芯片。当终端设备距离无线路由器距离越远时,Wi-Fi的发射功率就会越大,产生的噪音也就越大。本发明的一具体实施方式,无线路由器中包括 Wi-Fi芯片和CPU芯片。该Wi-Fi芯片可以根据芯片周围的射频电路连接,计算出噪音值的参数,噪音值的参数包括信号的信噪比、延迟等,系统可以从芯片的寄存器中读取噪音值的参数。Wi-Fi芯片和CPU芯片之间通过硬件连接,比如Wi-Fi芯片的一管脚连接至CPU的GPIO管脚,CPU可以通过GPIO管脚获取相应的参数。CPU根据设备的连接模式、传输距离和接收灵敏度等多种因素,根据算法计算出无线路由器的所述噪音值。本发明的再一具体实施方式,无线路由器中包括多个Wi-Fi芯片,无线路由器中的CPU获取每个Wi-Fi芯片的噪音值的参数,根据设备的连接模式、传输距离和接收灵敏度等多种因素,计算中无线路由器的所述噪音值。在该技术方案中,无线路由器的所述的噪音值从无线路由器设备中的CPU芯片获得。
系统获取无线路由器当前时刻的噪音值,并进行判断。若当前时刻的噪音值小于一预设的噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式,当前时刻的噪音干扰比较小,对Wi-Fi的工作没有造成影响,将USB接口切换为速率高的USB3.0工作模式,使用户使用USB接口更快更有效;若当前时刻的噪音值大于所述预设的噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式,当前时刻的无线路由器的噪音干扰大,对Wi-Fi的工作造成了干扰,使用户使用Wi-Fi时受到了影响,则将USB接口切换为速率低的USB2.0工作模式,通过降低USB接口的工作模式来降低对Wi-Fi的干扰,在干扰和速率的这两个问题上达到一定的平衡;若当前时刻的噪音值等于一预设的噪音阀值,则无线路由器的USB接口的模式维持不变,若上一时刻是USB2.0工作模式的还是USB2.0工作模式,若上一时刻是USB3.0工作模式的还是USB3.0工作模式。通过将无线路由器所述的噪音值与预设的噪音阀值进行比较,对无线路由器的USB接口工作模式进行切换,因而使USB接口在USB2.0工作模式和USB3.0工作模式之间自主切换,使USB接口的工作效率的最大使用,给用户带来极大的方便。
如图2所示,根据本发明的另一个实施例,一种自动调节USB速率 方法的一个实施例,应用于无线路由器的USB接口,包括以下步骤:
S10,获取无线路由器当前的噪音值;
S200,系统中设置一等待时间;
S201,若所述噪音值在所述等待时间内小于一预设的噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;
S202,若所述噪音值在所述等待时间内大于所述预设的噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;
S203,若所述噪音值在所述等待时间内等于一预设的噪音阀值,则无线路由器的USB接口的工作模式维持不变。
具体的,在系统设置一等待时间,当获取无线路由器当前的噪音值后,在所述等待时间内,将无线路由器当前时刻的噪音值与预设的噪音阀值进行比较。通过设置一等待时间,使当前时刻的噪音值与噪音阀值的比较结果维持稳定,以防止无线路由器当前时刻的噪音值在噪音阀值的临界点抖动,而导致USB模式的频繁切换,影响系统的稳定性。
本发明的一具体实施方式,设置噪音阀值为-85dbm,系统设置等待时间为1分钟。系统获取无线路由器当前时刻的噪音值,无线路由器中的Wi-Fi芯片根据芯片周围的射频电路连接,计算出信噪比等噪音值的参数。无线路由器中的CPU获取Wi-Fi芯片中的噪音值的参数,根据设备的连接模式、传输距离和接收灵敏度等多种因素,根据算法计算出无线路由器的当前时刻的噪音值。系统获取无线路由器的当前时刻的噪音值,并进行判断。若当前时刻的噪音值在1分钟内小于-85dbm,则无线路由器的USB接口切换为USB3.0工作模式,在该1分钟内,无线路由器当前的噪音值与-85dbm的比较结果维持不变,当前时刻的噪音干扰比较小,对Wi-Fi的工作没有造成影响,将USB接口切换为速率高的USB3.0工作模式,使用户使用USB接口更快更有效;若所述噪音值在1分钟内大于-85dbm,则无线路由器的USB接口切换为USB2.0工作模式,在该1分钟内,无线路由器当前的噪音值与-85dbm的比较结果维持不变,当前时刻的无线路由器的噪音干扰大,则将USB接口切换为速率低的USB2.0工作 模式,通过降低USB接口的速率来减少对Wi-Fi的干扰,在干扰和速率的这两个问题上达到一定的平衡;所述噪音值1分钟内等于-85dbm,则无线路由器的USB接口的模式维持不变。因此,设置1分钟的等待时间,使比较结果趋于稳定,防止当时时刻的噪音值在-85dbm附近抖动频繁,而导致频繁切换USB接口的工作模式,提高了系统的稳定性。
优选地,设置噪音阀值为-80dbm--85dbm,并设置一等待时间。将比较的噪音阀值设置为变换区间,防止无线路由器当前的噪音值抖动频繁,与噪音阀值进行比较的时候导致比较结果不稳定,而导致频繁切换USB接口的工作模式,使判断结果更趋于稳定,进一步提高了系统的稳定性。
如图3所示,根据本发明的另一个实施例,一种自动调节USB速率方法的一个实施例,应用于无线路由器的USB接口,包括以下步骤:
S10,获取无线路由器当前时刻的噪音值;
S300,系统中设置一等待时间;
S301,若所述噪音值在所述等待时间内小于-85dbm,则无线路由器的USB接口切换为USB3.0工作模式;
S302,若所述噪音值在所述等待时间内大于-80dbm,则无线路由器的USB接口切换为USB2.0工作模式;
S303,若所述噪音值在所述等待时间内在-80dbm--85dbm范围内,则无线路由器的USB接口的工作模式维持不变。
具体地一个实施例,设置噪音阀值范围为-80dbm--85dbm,系统设置等待时间为1分钟。系统获取无线路由器当前时刻的噪音值,并与设置的噪音阀值进行比较。若当前时刻的噪音值在1分钟内小于-80dbm,则无线路由器的USB接口切换为USB3.0工作模式;若当前时刻的噪音值在1分钟内大于-85dbm则无线路由器的USB接口切换为USB2.0工作模式;若当前时刻的噪音值1分钟内等于-80dbm--85dbm间的值,则无线路由器的USB接口的模式不变。通过设置噪音阀值范围为-80dbm--85dbm,并设定1分钟的等待时间,将判断的噪音阀值设置为一个区间-80dbm- -85dbm,防止无线路由器当前时刻的噪音值频繁抖动,使比较结果不稳定而导致USB接口频繁切换,进一步提高了系统的稳定性,提高了用户的体验。
如图4所示,根据本发明的一个实施例,一种无线路由器,其特征在于,所述无线路由器包括:
获取模块40,用于获取无线路由器当前时刻的噪音值;
设置模块41,用于设置一噪音阀值;
判断模块42,用于若所述噪音值小于所述噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;若所述噪音值大于所述噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;若所述噪音值等于所述噪音阀值,则无线路由器的USB接口的模式不变。
优选的,所述无线路由器还包括一定时模块,所述定时模块用于设置一等待时间;
所述判断模块,还用于若所述噪音值所述等待时间内小于所述噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;若所述噪音值所述等待时间内大于所述噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;若所述噪音值所述等待时间内等于所述噪音阀值,则无线路由器的USB接口的模式不变。
具体的,在获取模块40中,获取无线路由器主要功能模块的噪音参数,然后按照一定的算法进行计算,获取无线路由器的噪音值。本发明的一具体实施方式,无线路由器中包括Wi-Fi芯片和CPU芯片,该Wi-Fi芯片可以根据芯片周围的射频电路连接,计算出噪音值的参数,噪音值的参数包括信号的信噪比、延迟等,系统可以从芯片的寄存器中读取噪音值的参数。Wi-Fi芯片和CPU芯片之间通过硬件连接,比如Wi-Fi芯片的一管脚连接至CPU的GPIO管脚,CPU可以通过GPIO管脚获取相应的参数。CPU根据设备的连接模式、传输距离和接收灵敏度等多种因素,根据算法计算出无线路由器的所述噪音值。本发明的再一具体实施方式,无线路由器中包括多个Wi-Fi芯片,无线路由器中的CPU获取每个Wi-Fi芯片 的噪音值的参数,根据设备的连接模式、传输距离和接收灵敏度等多种因素,计算中无线路由器的所述噪音值。
设置模块41设置一噪音阀值。在定时模块中,设置一等待时间。然后无线路由器在定时模块中设置的等待时间内,在判断模块42中,将无线路由器当前时刻的噪音值与设置的噪音阀值进行比较。若当前时刻噪音值小于一预设的噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;若当前时刻噪音值大于所述预设的噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;若当前时刻噪音值等于一预设的噪音阀值,则无线路由器的USB接口的模式不变。通过将无线路由器当前时刻的噪音值与预设的噪音阀值进行比较,对无线路由器的USB接口工作模式进行切换,当无线路由器的噪音干扰小时,USB接口工作在高速率的USB3.0工作模式,提高用户体验;当无线路由器的噪音干扰大时,USB接口工作在USB2.0工作模式,减少对Wi-Fi工作的干扰,使对Wi-Fi工作的干扰和USB的速率达到一平衡。
本发明的一具体实施方式,将设置噪音阀值为-85dbm,系统设置等待时间为1分钟。在每次将无线路由器当前时刻的噪音值和预设的阀值设置1分钟的等待时间,避免噪音的频繁抖动而导致USB接口频繁切换,提高系统的稳定性。
本发明的另一具体实施方式,设置噪音阀值范围为-80dbm--85dbm,系统设置等待时间为1分钟。将判断的噪音阀值设置为一个区间-80dbm--85dbm,防止无线路由器当前时刻的噪音值频繁抖动,使比较结果不稳定而导致USB接口频繁切换,进一步提高了系统的稳定性,提高了用户的体验。
本发明一种自动调节USB速率的方法及无线路由器,通过设置一噪音阀值,并将无线路由器当前的噪音值与所设的噪音阀值进行比较,从而可以将无线路由器的USB接口的工作模式自动切换,使无线路由器的USB接口得到最大效率的使用,提高了用户的体验。
应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发 明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (10)

  1. 一种自动调节USB速率的方法,应用于无线路由器的USB接口,其特征在于,包括以下步骤:
    S10,获取无线路由器当前时刻的噪音值;
    S20,若所述噪音值小于一预设的噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;
    S30,若所述噪音值大于所述预设的噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;
    S40,若所述噪音值等于所述预设的噪音阀值,则无线路由器的USB接口工作模式维持不变。
  2. 如权利要求1所述的自动调节USB速率的方法,其特征在于,所述方法还包括,在系统中设置一等待时间。
  3. 如权利要求2所述的自动调节USB速率的方法,其特征在于,所述步骤S2进一步包括:
    若所述噪音值在所述等待时间内小于一预设的噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式。
  4. 如权利要求3所述的自动调节USB速率的方法,其特征在于,所述步骤S3进一步包括:
    若所述噪音值在所述等待时间内大于所述预设的噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式。
  5. 如权利要求4所述的自动调节USB速率的方法,其特征在于,所述步骤S4进一步包括;
    若所述噪音值在所述等待时间内等于一预设的噪音阀值,则无线路由器的USB接口的工作模式维持不变。
  6. 如权利要求5所述的自动调节USB速率的方法,其特征在于,包括,所述预设的噪音阀值设置为-85dbm。
  7. 如权利要求2所述的自动调节USB速率的方法,其特征在于,所述预设的噪音阀值设置为-80dbm--85dbm的阀值范围。
  8. 如权利要求7所述的自动调节USB速率的方法,其特征在于,所述方法还包括:
    获取无线路由器当前时刻的噪音值;
    若所述噪音值在所述等待时间内小于-85dbm,则无线路由器的USB接口切换为USB3.0工作模式;
    若所述噪音值在所述等待时间内大于-80dbm,则无线路由器的USB接口切换为USB2.0工作模式;
    若所述噪音值在所述等待时间内在-80dbm--85dbm范围内,则无线路由器的USB接口的工作模式维持不变。
  9. 一种无线路由器,其特征在于,所述无线路由器包括:
    获取模块,用于获取无线路由器当前时刻的噪音值;
    设置模块,用于设置一噪音阀值;
    判断模块,用于若所述噪音值小于所述噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;若所述噪音值大于所述噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式,若所述噪音值等于所述噪音阀值,则无线路由器的USB接口的工作模式维持不变。
  10. 如权利要求9所述的无线路由器,其特征在于,所述无线路由器还包括一定时模块,所述定时模块用于设置一等待时间;
    所述判断模块,还用于若所述噪音值在所述等待时间内小于所述噪音阀值,则无线路由器的USB接口切换为USB3.0工作模式;若所述噪 音值在所述等待时间内大于所述噪音阀值,则无线路由器的USB接口切换为USB2.0工作模式;若所述噪音值所述等待时间内等于所述噪音阀值,则无线路由器的USB接口的工作模式维持不变。
PCT/CN2017/102732 2017-05-23 2017-09-21 一种自动调节usb速率的方法及无线路由器 WO2018214353A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710369981.0 2017-05-23
CN201710369981.0A CN107026797A (zh) 2017-05-23 2017-05-23 一种自动调节usb速率的方法及无线路由器

Publications (1)

Publication Number Publication Date
WO2018214353A1 true WO2018214353A1 (zh) 2018-11-29

Family

ID=59528823

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102732 WO2018214353A1 (zh) 2017-05-23 2017-09-21 一种自动调节usb速率的方法及无线路由器

Country Status (2)

Country Link
CN (1) CN107026797A (zh)
WO (1) WO2018214353A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107026797A (zh) * 2017-05-23 2017-08-08 上海斐讯数据通信技术有限公司 一种自动调节usb速率的方法及无线路由器
CN109426644A (zh) * 2017-08-31 2019-03-05 西安中兴新软件有限责任公司 一种usb数据传输的速率调整方法及装置、设备
CN108092986B (zh) * 2017-12-27 2021-06-08 深圳市泰衡诺科技有限公司 移动终端的数据传输方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120011286A1 (en) * 2010-07-09 2012-01-12 Sae Magnetics (H.K.) Ltd. Optical communication module, universal serial bus cable with the same and processing method of data transfer thereof
CN104079415A (zh) * 2013-03-27 2014-10-01 瑞昱半导体股份有限公司 网络装置及其联线检测方法
CN104102603A (zh) * 2013-04-09 2014-10-15 瑞昱半导体股份有限公司 通用串行总线网络接口控制器及其操作模式切换方法
CN105812018A (zh) * 2016-03-11 2016-07-27 珠海市魅族科技有限公司 一种切换传输模式的方法及移动终端
CN105915731A (zh) * 2016-06-30 2016-08-31 珠海市魅族科技有限公司 一种数据传输的方法及移动终端
CN107026797A (zh) * 2017-05-23 2017-08-08 上海斐讯数据通信技术有限公司 一种自动调节usb速率的方法及无线路由器

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9729420B2 (en) * 2012-04-26 2017-08-08 Hewlett-Packard Development Company, L.P. Decreasing USB interference to adjacent wireless device
CN203378208U (zh) * 2013-08-12 2014-01-01 启碁科技股份有限公司 即插即用装置及电子设备
US20160044519A1 (en) * 2014-08-08 2016-02-11 GM Global Technology Operations LLC Method and apparatus for supporting mobile device screen replication in automotive environment using flexible network connectivity
CN105893311A (zh) * 2016-03-28 2016-08-24 青岛海信电器股份有限公司 通用串行总线接口驱动配置方法和装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120011286A1 (en) * 2010-07-09 2012-01-12 Sae Magnetics (H.K.) Ltd. Optical communication module, universal serial bus cable with the same and processing method of data transfer thereof
CN104079415A (zh) * 2013-03-27 2014-10-01 瑞昱半导体股份有限公司 网络装置及其联线检测方法
CN104102603A (zh) * 2013-04-09 2014-10-15 瑞昱半导体股份有限公司 通用串行总线网络接口控制器及其操作模式切换方法
CN105812018A (zh) * 2016-03-11 2016-07-27 珠海市魅族科技有限公司 一种切换传输模式的方法及移动终端
CN105915731A (zh) * 2016-06-30 2016-08-31 珠海市魅族科技有限公司 一种数据传输的方法及移动终端
CN107026797A (zh) * 2017-05-23 2017-08-08 上海斐讯数据通信技术有限公司 一种自动调节usb速率的方法及无线路由器

Also Published As

Publication number Publication date
CN107026797A (zh) 2017-08-08

Similar Documents

Publication Publication Date Title
WO2018214353A1 (zh) 一种自动调节usb速率的方法及无线路由器
WO2017166609A1 (zh) 一种基于无线设备的频段切换方法、无线设备和电子设备
US20090077401A1 (en) Buffering techniques for power management
CN101980577B (zh) 一种支持多种方式接入的带路由功能的移动终端及其实现方法
CN105430702B (zh) 一种网络切换方法、装置及通信终端
EP3072333B1 (en) Dynamically adjusting roaming parameters
TWI495276B (zh) 多模切換之無線收發裝置及其多模切換方法
US9877280B2 (en) Power saving method and apparatus for multimode terminal
WO2018214352A1 (zh) 无线路由器传输速率切换方法、控制方法及无线路由器
WO2011094962A1 (zh) 降低无线终端设备功耗的方法及无线终端设备
WO2020073807A1 (zh) 天线调谐方法、装置、移动终端及计算机可读存储介质
WO2020164351A1 (zh) 链路连接方法及相关装置
WO2021159982A1 (zh) 一种控制方法、装置和系统
US11695629B2 (en) Method and apparatus for configuring a network parameter
CN107992391B (zh) 一种多核处理器变频的方法和装置
WO2023071340A1 (zh) 业务切片的调整方法、电子设备和存储介质
JP2002259327A (ja) バス制御回路
CN111092739B (zh) 一种交换机功耗动态调整方法
WO2017113216A1 (zh) 通信信号收发组件、终端和信号收发方法
WO2016165141A1 (zh) 无线通信中调整功率的方法和无线接入点
CN107465442B (zh) 多天线装置的控制方法与模块
WO2018214354A1 (zh) 一种传输速率的调整方法和装置
JP2023548174A (ja) リソース測定の調整方法及び装置、端末並びに可読記憶媒体
JP2013515403A (ja) イーサネット・ポート速度制御方法および装置
CN114554560A (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: 17911066

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: 17911066

Country of ref document: EP

Kind code of ref document: A1