WO2017161868A1 - Processing method and apparatus for operation mode of universal serial bus (usb) - Google Patents
Processing method and apparatus for operation mode of universal serial bus (usb) Download PDFInfo
- Publication number
- WO2017161868A1 WO2017161868A1 PCT/CN2016/102325 CN2016102325W WO2017161868A1 WO 2017161868 A1 WO2017161868 A1 WO 2017161868A1 CN 2016102325 W CN2016102325 W CN 2016102325W WO 2017161868 A1 WO2017161868 A1 WO 2017161868A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- frequency band
- usb
- working
- determining
- Prior art date
Links
Images
Classifications
-
- 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
-
- 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
-
- 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]
Definitions
- the present invention relates to the field of communications, and in particular to a method and apparatus for processing a working mode of a universal serial bus USB.
- USB 3.0 Promoter Group which consists of IT giants such as Intel, announced on November 18, 2008 that the next-generation USB 3.0 standard that the organization is responsible for has been officially completed and released.
- the new specification provides ten times the transfer speed of USB 2.0 and higher energy efficiency, and can be widely used in personal computers (Personal Computer, PC for short) peripheral terminals and consumer electronics.
- USB 3.0 will be referred to as "USB Super Speed" in actual terminal applications, conforming to previous USB1.1Full Speed and USB 2.0 High Speed.
- Commercial controllers supporting the new specification were launched in the second half of 2009, and consumer products were launched in 2010.
- USB 3.0 has a backward compatibility standard, is compatible with USB1.1 and USB2.0 standards, and has the ease of use and plug-and-play functionality of the traditional Universal Serial Bus (USB) technology.
- USB 3.0 technology is to launch products that are 10 times faster than USB 2.0, using the same architecture as wired USB.
- USB 3.0 ports and cables enable backward compatibility and support for future fiber transport.
- USB 3.0 features a 9-pin design with four pins and USB 2.0 in the same shape and definition, and the other five are specifically for USB 3.0.
- USB3.0 When used, USB3.0 will add about 20dB of noise in the 2.4G band, causing radio frequency interference in the 2.4GHz Industrial Scientific Medical (ISM) band. This kind of interference will reduce the sensitivity of wireless reception, and thus reduce the range of reception, which is enough to affect the normal use of interfering wireless terminals (wireless network cards, wireless mice, wireless headsets, etc.).
- ISM Industrial Scientific Medical
- the spread spectrum processing of USB 3.0 causes its spectrum to cover from 0 Hz to 5 GHz.
- the interference power decreases with frequency, which is about -60dBm in the 2.4G band and -90dBm in the 5G band.
- the RF receiver in this band is placed closer to the USB 3.0 device or connector, the interference situation becomes more apparent.
- USB 3.0 high-frequency communication Since the noise generated by USB 3.0 high-frequency communication is a kind of broadband noise, it cannot be eliminated by filtering, and it just falls within the commonly used 2.4-2.5 GHz frequency range.
- Intel's proposed solution is to shield the USB 3.0 connector and peripheral devices, and the more complete and effective the better.
- the antenna should be placed as far as possible from the USB 3.0 connector and device. Therefore, it can be known that the interference shielding method in the related art needs to shield the USB 3.0 connector and peripheral devices, that is, additional devices need to be added for interference shielding, and devices that perform interference shielding can only interfere with specific frequency bands. Therefore, the interference shielding cost is high, and the interference shielding device is low in availability.
- the invention provides a method and a device for processing a working mode of a universal serial bus USB, so as to at least solve the problem that the interference shielding cost existing in the related art is high and the availability of the interference shielding device is low.
- a method for processing a working mode of a universal serial bus USB includes: determining a working frequency band of a wireless fidelity Wi-Fi of a first terminal; and adjusting an operating frequency band according to the Wi-Fi The working mode of the USB of the first terminal is described.
- determining the working frequency band of the Wi-Fi of the first terminal includes: determining whether a second terminal accesses the first frequency band of the first terminal; determining that the second terminal accesses the Determining, in the first frequency band of the first terminal, that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining that the first frequency band of the first terminal is not enabled, or determining that the When the second terminal is not accessed in the first frequency band of the first terminal, determining that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band.
- adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi includes: adjusting the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB Working mode.
- adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB includes: when the working frequency band of the Wi-Fi of the first terminal is the first frequency band And the working state of the USB of the first terminal is to set the working mode of the USB to the first working mode when the data is transmitted through the USB and the third terminal; and/or, when the first terminal is in the Wi - The working frequency band of the Fi is not the first frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band and the working state of the USB of the first terminal is not the data transmission with the third terminal When the working mode of the USB is set to the second working mode.
- the method further includes: determining that the working frequency band of the Wi-Fi of the first terminal is switched to a non-first frequency band, or After the working state of the USB of the first terminal is switched to data transmission without the third terminal, the working mode of the USB is set to the second working mode.
- a working mode processing apparatus for a universal serial bus USB, comprising: a determining module configured to determine a working frequency band of a wireless fidelity Wi-Fi of the first terminal; and an adjustment module configured to Adjusting an operating mode of the USB of the first terminal according to the working frequency band of the Wi-Fi.
- the determining module includes: a determining unit, configured to determine whether the second terminal accesses the first frequency band of the first terminal; and the determining unit is configured to determine, in the determining unit, that the second When the terminal accesses the first frequency band of the first terminal, determining that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining that the first frequency band of the first terminal is not enabled, Or determining that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band when the determining unit determines that the second terminal does not access the first frequency band of the first terminal.
- the adjusting module includes: an adjusting unit, configured to adjust an operating mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB.
- the adjusting unit includes: a setting subunit, configured to: when the working frequency band of the Wi-Fi of the first terminal is a first frequency band, and the working state of the USB of the first terminal is to set the working mode of the USB to the first working mode when the data is transmitted through the USB and the third terminal; and/or, when the first The working frequency band of the Wi-Fi of the terminal is not the first frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band, and the working state of the USB of the first terminal is not the third terminal When data transmission is performed, the working mode of the USB is set to the second working mode.
- the device further includes: a setting module, configured to: after setting the working mode of the USB to the first working mode, and determining to switch the operating band of the Wi-Fi of the first terminal to a non-first After a frequency band, or the working state of the USB of the first terminal is switched to not perform data transmission with the third terminal, setting the working mode of the USB to the second working mode.
- a setting module configured to: after setting the working mode of the USB to the first working mode, and determining to switch the operating band of the Wi-Fi of the first terminal to a non-first After a frequency band, or the working state of the USB of the first terminal is switched to not perform data transmission with the third terminal, setting the working mode of the USB to the second working mode.
- Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
- a working frequency band for determining the wireless fidelity Wi-Fi of the first terminal is adopted; and an operating mode of the USB of the first terminal is adjusted according to the working frequency band of the Wi-Fi.
- the invention solves the problem that the interference shielding cost existing in the related technology is high, and the availability of the interference shielding device is low, thereby achieving the effect of reducing the interference shielding cost and improving the interference shielding availability.
- FIG. 1 is a flowchart of a working mode processing method of a USB according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for suppressing USB 3.0 radio frequency interference according to an embodiment of the present invention
- FIG. 3 is a block diagram showing the structure of an operating mode processing apparatus for a USB according to an embodiment of the present invention
- FIG. 4 is a block diagram showing the structure of the determining module 32 in the working mode processing apparatus of the USB according to an embodiment of the present invention
- FIG. 5 is a structural block diagram of an adjustment module 34 in a working mode processing apparatus of a USB according to an embodiment of the present invention
- FIG. 6 is a structural block diagram of an adjusting unit 52 in an operating mode processing apparatus of a USB according to an embodiment of the present invention
- FIG. 7 is a block diagram showing a preferred structure of a working mode processing apparatus for a USB according to an embodiment of the present invention.
- FIG. 8 is a structural block diagram of a terminal according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a working mode processing method of a USB according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
- Step S102 determining a working frequency band of the wireless fidelity Wi-Fi of the first terminal
- Step S104 adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi.
- the first terminal may be a terminal that supports both the USB function and the Wi-Fi function
- the working frequency band of the first terminal may be one or more, for example, when When a terminal simultaneously turns on the 2.4G band and the 5G band, and the other terminals are connected in the 2.4G band and the 5G band, the Wi-Fi working frequency band of the first terminal is 2.4G and 5G, and, for example, when the first When the terminal only turns on the 2.4G frequency band, and the other terminal accesses the 2.4G frequency band, the Wi-Fi working frequency band of the first terminal is 2.4G.
- the working mode of the USB of the first terminal can be adjusted according to the working frequency band of the Wi-Fi of the first terminal, so that the working mode of the USB of the first terminal can be adjusted to work that has no effect on the working frequency band of the Wi-Fi.
- Mode avoiding interference to Wi-Fi frequency band during USB high-frequency communication, high interference shielding efficiency, and no need to add additional interference shielding equipment, solving the problem of high interference shielding cost and low availability of interference shielding equipment in related technologies
- the effect of reducing interference shielding cost and improving the availability of interference shielding is achieved.
- determining the working frequency band of the Wi-Fi of the first terminal includes: determining whether a second terminal accesses the first frequency band of the first terminal; and determining that the second terminal accesses the foregoing Determining, in the first frequency band of the first terminal, that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining that the first frequency band of the first terminal is not enabled, or determining that the first terminal is When no second terminal is accessed in the first frequency band, it is determined that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band.
- the working frequency band of the Wi-Fi of the first terminal is that the first terminal is turned on and has a frequency band that is accessed by other terminals.
- the first frequency band may be a 2.4G frequency band or a 5G frequency band. It can also be other frequency bands that may appear in the future.
- the non-first frequency band includes a frequency band other than the first frequency band, and may also include an idle state, where the idle state is that the first terminal turns on the frequency band (for example, the 2.4G frequency band is turned on, and/or 5G is turned on). Band), but no other terminal (for example, the second terminal described above) accesses the state of the frequency band opened by the first terminal.
- adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi includes: adjusting the working of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB mode.
- the working frequency band of the Wi-Fi of the first terminal and the working state of the USB of the first terminal may be comprehensively considered (the working state includes performing a data transmission state) , no data transmission status).
- adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB includes: when the working frequency band of the Wi-Fi of the first terminal is the first frequency band, and The working state of the USB of a terminal is to set the working mode of the USB to the first working mode when transmitting data through the USB and the third terminal; and/or, when the working frequency band of the Wi-Fi of the first terminal is not the first The frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band and the working state of the USB of the first terminal is not data transmission with the third terminal, setting the working mode of the USB For the second mode of operation.
- the first frequency band in this embodiment may be a 2.4G frequency band, the first working mode is USB2.0, and the second working mode is USB3.0; or the first frequency band may be other frequency bands (for example, 5G frequency band)
- the first working mode is a USB working mode (for example, USB2.0) that does not affect the other frequency bands
- the second working mode is a USB working module (for example, USB 3.1) that affects the other frequency bands, thereby effectively avoiding Interference to the Wi-Fi band when data is transmitted over USB.
- the method further includes: determining that the working frequency band of the Wi-Fi of the first terminal is switched to a non-first frequency band, or After the working mode of the USB of the first terminal is switched to the data transmission without the third terminal, the working mode of the USB is set to the second working mode.
- the working mode of the USB of the first terminal after determining that the working frequency band of the Wi-Fi of the first terminal is switched to the non-first frequency band, or the working state of the USB of the first terminal is switched to not transmitting data with the third terminal, The operating mode of the USB of the first terminal can also be maintained as the first working mode.
- first frequency band being 2.4G
- non-first frequency band being 5G
- first working mode being USB2.0
- second working mode being USB3.0 as an example:
- the working mode of the current Wi-Fi of the first terminal and the working state of the current USB are switched, and the working mode of the USB is switched.
- the Wi-Fi frequency band of the first terminal can simultaneously support 2.4G and 5G, where Some of the same Wi-Fi parameters (mainly including SSID, country code, security mode, and key) can be set by default.
- the Wi-Fi 2.4G band of the first terminal is enabled and the terminal is connected in the 2.4G band
- the USB module is set to the USB2.0 mode.
- the Wi-Fi 2.4G band of the terminal is not enabled or the terminal is not connected in the 2.4G band.
- Time to enter. Set the USB module to work in USB3.0 mode. Therefore, the radio interference to the Wi-Fi 2.4G frequency band during the USB3.0 high-frequency data transmission during the first terminal operation is avoided, and the sensitivity of the first terminal Wi-Fi wireless reception is reduced, thereby interfering with the normal use of the terminal.
- FIG. 2 is a flowchart of a method for suppressing USB 3.0 radio frequency interference according to an embodiment of the present invention, the method includes:
- Step 202 After the terminal (corresponding to the first terminal described above) is powered on, the Wi-Fi module supports the 2.4G frequency band by default, or supports the 2.4G and 5G frequency bands by default. Optionally, when the 2.4G and 5G frequency bands are supported by default, Set Wi-Fi's 2.4G and 5G bands to the same SSID, country code, security mode and key.
- Step 204 The USB module works in USB3.0 mode by default.
- USB3.0 mode means that the terminal hardware and software support USB3.0 specification, and the maximum transmission bandwidth of the terminal in high frequency (2.4G-2.5GHz) transmission is up to 5.0Gbps (500MB/s).
- the USB2.0 mode indicates that the terminal hardware and software support the USB3.0 specification, but only the low-frequency transmission has a maximum transmission bandwidth of 480 Mbps (ie, 60 MB/s), so the USB 2.0 mode does not interfere with the Wi-Fi 2.4G band.
- Step 206 Determine whether the Wi-Fi 2.4G frequency band has client access. If not, keep the USB module default working mode. If yes, go to step 208.
- a client when a client (corresponding to the second terminal described above) attempts to access the terminal Wi-Fi, if the client simultaneously supports When the 2.4G and 5G bands are used, and the Wi-Fi module of the above terminal supports the 2.4G and 5G bands by default, the client can select the 5G band to access. If the client only supports the 2.4G band, the client uses the 2.4G band of the terminal Wi-Fi to access.
- Step 208 Determine whether the terminal USB module performs high frequency data transmission. If not, the default operation mode of the USB module is maintained. If yes, step 210 is performed.
- the U.S. USB module can determine whether the current terminal USB module performs high frequency data transmission by determining whether the external USB device supports the USB 3.0 working mode and whether the data is transmitted with the terminal USB module.
- Step 210 Set the terminal USB module to work in the USB 2.0 mode.
- the terminal USB module if the terminal USB module does not have high frequency data transmission, the terminal USB module is set to work in the USB3.0 mode.
- the terminal can only support the 2.4G frequency band and does not support the 5G frequency band. The following describes the manner in this embodiment. :
- Step 1 After the terminal is powered on, the Wi-Fi module loads the 2.4G band by default.
- Step 2 The USB module works in USB3.0 mode by default.
- Step 3 Determine whether the Wi-Fi 2.4G band has client access. If not, keep the default operation mode of the USB module. If yes, go to step 4.
- Step 4 Determine whether the terminal USB module performs high-frequency data transmission. If not, keep the default operation mode of the USB module. If yes, go to step 5.
- whether the current terminal USB module performs high frequency data transmission may be determined by determining whether the external USB device supports the USB 3.0 working mode and whether the data is performed with the terminal USB module.
- Step 5 Set the terminal USB module to work in USB2.0 mode.
- the terminal USB module if the terminal USB module does not have high frequency data transmission, the terminal USB module is set to work in the USB3.0 mode.
- the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- a working mode processing device for the USB is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
- the term “module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 3 is a block diagram showing the structure of an operating mode processing apparatus for a USB according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a determining module 32 and an adjusting module 34, which will be described below.
- the determining module 32 is configured to determine a working frequency band of the wireless fidelity Wi-Fi of the first terminal
- the adjusting module 34 is connected to the determining module 32, and is configured to adjust the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi .
- the determining module 32 includes a determining unit 42 and a determining unit 44, and the determining module 32 is performed below. Description.
- the determining unit 42 is configured to determine whether the second terminal accesses the first frequency band of the first terminal; the determining unit 44 is connected to the determining unit 42 and is configured to determine, in the determining unit 42, that the second terminal accesses the first terminal In the first frequency band, determining that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining that the first frequency band of the first terminal is not turned on, or determining unit 42 determines the first terminal When there is no second terminal access in a frequency band, it is determined that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band.
- FIG. 5 is a structural block diagram of an adjustment module 34 in a working mode processing apparatus for a USB according to an embodiment of the present invention. As shown in FIG. 5, the adjustment module 34 includes an adjustment unit 52, and the adjustment unit 52 is described below.
- the adjusting unit 52 is configured to adjust the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB.
- FIG. 6 is a block diagram showing the configuration of the adjusting unit 52 in the working mode processing apparatus of the USB according to the embodiment of the present invention.
- the adjusting unit 52 includes a setting subunit 62, which will be described below.
- the setting unit 62 is configured to set the working mode of the USB to be when the operating frequency band of the Wi-Fi of the first terminal is the first frequency band, and the working state of the USB of the first terminal is to transmit data through the USB and the third terminal. a first working mode; and/or when the working frequency band of the Wi-Fi of the first terminal is not the first frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band and the USB of the first terminal When the working state is that data transmission is not performed with the third terminal, the working mode of the USB is set to the second working mode.
- FIG. 7 is a block diagram showing a preferred structure of a working mode processing device for a USB according to an embodiment of the present invention. As shown in FIG. 7, the device includes a setting module 72 in addition to all the modules shown in FIG. Be explained.
- the setting module 72 is connected to the adjustment module 34, and is configured to: after setting the working mode of the USB to the first working mode, and determining to switch the working frequency band of the Wi-Fi of the first terminal to the non-first frequency band, or first After the working state of the USB of the terminal is switched to the data transmission without the third terminal, the working mode of the USB is set to the second working mode.
- FIG. 8 is a structural block diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 8, the terminal includes a control module 82, a WiFi module 84, and a USB module 86. Explain each module:
- the control module 82 (corresponding to the determining module 32 and the adjusting module 34 described above) is configured to acquire the working mode of the WiFi module 84 and the access state of the client, and set the working mode of the USB module 86.
- the WiFi module 84 is responsible for loading and parameter setting of the WiFi driver, and is responsible for accessing the external client, and feeding back the working mode of the current WiFi and the client access state to the control module 82;
- the USB module 86 is responsible for loading and data transmission of the USB driver, and sets the working mode according to the instruction of the control module 82.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
- ROM Read-Only Memory
- RAM Random Access Memory
- the processor performs the above steps according to the stored program code in the storage medium.
- the solution in the embodiment of the present invention can implement the working mode of the current Wi-Fi terminal and the working state of the current USB, and switch the working mode of the USB to avoid Wi-Fi 2.4G transmission when the terminal is running.
- the radio frequency interference of the frequency band (or other USB working mode to the radio frequency interference of other Wi-Fi working frequency bands) reduces the sensitivity of the terminal Wi-Fi wireless reception, thereby interfering with the normal use of the terminal.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the working mode processing method and apparatus for the universal serial bus USB provided by the embodiments of the present invention have the following beneficial effects: the interference shielding cost existing in the related art is high, and the flexibility of the interference shielding device adjustment is compared. The low problem further achieves the effect of reducing the interference shielding cost and improving the interference shielding efficiency.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Systems (AREA)
Abstract
Provided are a processing method and apparatus for an operation mode of a universal serial bus (USB). The method comprises: determining an operation frequency band of wireless fidelity (Wi-Fi) for a first terminal; and according to the operation frequency band of Wi-Fi, adjusting an operation mode of a USB for the first terminal. By means of the present invention, the problems in the related art of high interference shielding cost and relatively low flexibility of adjusting an interference shielding device are solved, thereby achieving the effects of reducing the interference shielding cost and increasing the interference shielding efficiency.
Description
本发明涉及通信领域,具体而言,涉及一种通用串行总线USB的工作模式处理方法及装置。The present invention relates to the field of communications, and in particular to a method and apparatus for processing a working mode of a universal serial bus USB.
由Intel等IT界巨头组成的USB 3.0Promoter Group在2008年11月18日宣布,该组织负责制定的新一代USB 3.0标准已经正式完成并公开发布。新规范提供了十倍于USB 2.0的传输速度和更高的节能效率,可广泛用于个人电脑(Personal Computer,简称为PC)外围终端和消费电子产品。USB 3.0在实际终端应用中将被称为“USB Super Speed”,顺应此前的USB1.1Full Speed和USB 2.0High Speed。支持新规范的商用控制器在2009年下半年面世,消费级产品则已在2010年上市。The USB 3.0 Promoter Group, which consists of IT giants such as Intel, announced on November 18, 2008 that the next-generation USB 3.0 standard that the organization is responsible for has been officially completed and released. The new specification provides ten times the transfer speed of USB 2.0 and higher energy efficiency, and can be widely used in personal computers (Personal Computer, PC for short) peripheral terminals and consumer electronics. USB 3.0 will be referred to as "USB Super Speed" in actual terminal applications, conforming to previous USB1.1Full Speed and USB 2.0 High Speed. Commercial controllers supporting the new specification were launched in the second half of 2009, and consumer products were launched in 2010.
目前,USB3.0的实际传输速率大约是3.2Gbps(即320MB/S)。理论上的最高速率是5.0Gbps(即500MB/S)。USB 3.0具有后向兼容标准,兼容USB1.1和USB2.0标准,具备传统通用串行总线(Universal Serial Bus,简称为USB)技术的易用性和即插即用功能。USB3.0技术的目标是推出比USB2.0快10倍以上的产品,采用与有线USB相同的架构。除对USB 3.0规格进行优化以实现更低的能耗和更高的协议效率之外,USB 3.0的端口和线缆能够实现向后兼容,以及支持未来的光纤传输。为了向下兼容2.0版,USB 3.0采用了9针脚设计,其中四个针脚和USB 2.0的形状、定义均完全相同,而另外5根是专门为USB 3.0准备的。Currently, the actual transfer rate of USB 3.0 is approximately 3.2 Gbps (ie, 320 MB/s). The theoretical maximum rate is 5.0 Gbps (ie 500 MB/s). USB 3.0 has a backward compatibility standard, is compatible with USB1.1 and USB2.0 standards, and has the ease of use and plug-and-play functionality of the traditional Universal Serial Bus (USB) technology. The goal of USB 3.0 technology is to launch products that are 10 times faster than USB 2.0, using the same architecture as wired USB. In addition to optimizing the USB 3.0 specification for lower power consumption and higher protocol efficiency, USB 3.0 ports and cables enable backward compatibility and support for future fiber transport. For backward compatibility with version 2.0, USB 3.0 features a 9-pin design with four pins and USB 2.0 in the same shape and definition, and the other five are specifically for USB 3.0.
USB3.0在使用时,会在2.4G频段增加约20dB的噪声,造成对2.4GHz工业科学医疗(Industrial Scientific Medical,简称为ISM)频段的射频干扰。这种干扰会降低无线接收的灵敏度,进而缩减收讯范围,足以影响干扰无线终端(无线网卡、无线鼠标及无线耳机等)的正常使用。实际上,USB3.0的扩频处理导致其频谱从0Hz一直盖到5GHz。经Intel测量,干扰功率随频率下降,在2.4G频段约有-60dBm,到5G频段只有-90dBm。当这频段的射频接收器放得愈靠近USB 3.0装置或连接器,干扰的状况就愈明显。When used, USB3.0 will add about 20dB of noise in the 2.4G band, causing radio frequency interference in the 2.4GHz Industrial Scientific Medical (ISM) band. This kind of interference will reduce the sensitivity of wireless reception, and thus reduce the range of reception, which is enough to affect the normal use of interfering wireless terminals (wireless network cards, wireless mice, wireless headsets, etc.). In fact, the spread spectrum processing of USB 3.0 causes its spectrum to cover from 0 Hz to 5 GHz. As measured by Intel, the interference power decreases with frequency, which is about -60dBm in the 2.4G band and -90dBm in the 5G band. When the RF receiver in this band is placed closer to the USB 3.0 device or connector, the interference situation becomes more apparent.
由于USB 3.0高频通讯所产生的噪讯是一种宽频噪讯,因此无法被过滤消除,而且刚好落在常用的2.4-2.5GHz的频段范围。Intel建议的解决方式是对USB 3.0连接器及周边装置进行遮蔽设计,做得愈彻底,效果愈好。此外,天线放得离USB 3.0连接器及装置也要越远越好。由此可知,采用相关技术中的干扰屏蔽方式需要对USB 3.0连接器及周边装置进行遮蔽设计,即,需要增加额外的设备进行干扰屏蔽,且进行干扰屏蔽的设备只能对特定的频段进行干扰,从而导致干扰屏蔽成本高,且干扰屏蔽设备可用性低的问题。Since the noise generated by USB 3.0 high-frequency communication is a kind of broadband noise, it cannot be eliminated by filtering, and it just falls within the commonly used 2.4-2.5 GHz frequency range. Intel's proposed solution is to shield the USB 3.0 connector and peripheral devices, and the more complete and effective the better. In addition, the antenna should be placed as far as possible from the USB 3.0 connector and device. Therefore, it can be known that the interference shielding method in the related art needs to shield the USB 3.0 connector and peripheral devices, that is, additional devices need to be added for interference shielding, and devices that perform interference shielding can only interfere with specific frequency bands. Therefore, the interference shielding cost is high, and the interference shielding device is low in availability.
针对上述问题,相关技术中并未提出有效的解决方案。
In view of the above problems, an effective solution has not been proposed in the related art.
发明内容Summary of the invention
本发明提供了一种通用串行总线USB的工作模式处理方法及装置,以至少解决相关技术中存在的干扰屏蔽成本高,且干扰屏蔽设备可用性低的问题。The invention provides a method and a device for processing a working mode of a universal serial bus USB, so as to at least solve the problem that the interference shielding cost existing in the related art is high and the availability of the interference shielding device is low.
根据本发明的一个方面,提供了一种通用串行总线USB的工作模式处理方法,包括:确定第一终端的无线保真Wi-Fi的工作频段;根据所述Wi-Fi的工作频段调整所述第一终端的USB的工作模式。According to an aspect of the present invention, a method for processing a working mode of a universal serial bus USB includes: determining a working frequency band of a wireless fidelity Wi-Fi of a first terminal; and adjusting an operating frequency band according to the Wi-Fi The working mode of the USB of the first terminal is described.
可选地,确定所述第一终端的Wi-Fi的工作频段包括:判断是否有第二终端接入所述第一终端的第一频段;在判断出有所述第二终端接入所述第一终端的第一频段时,确定所述第一终端的Wi-Fi的工作频段为第一频段;和/或,在确定所述第一终端的第一频段未开启,或者判断出所述第一终端的第一频段中无所述第二终端接入时,确定所述第一终端的Wi-Fi的工作频段为非第一频段。Optionally, determining the working frequency band of the Wi-Fi of the first terminal includes: determining whether a second terminal accesses the first frequency band of the first terminal; determining that the second terminal accesses the Determining, in the first frequency band of the first terminal, that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining that the first frequency band of the first terminal is not enabled, or determining that the When the second terminal is not accessed in the first frequency band of the first terminal, determining that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band.
可选地,根据所述Wi-Fi的工作频段调整所述第一终端的USB的工作模式包括:根据所述Wi-Fi的工作频段以及所述USB的工作状态调整所述第一终端的USB的工作模式。Optionally, adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi includes: adjusting the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB Working mode.
可选地,根据所述Wi-Fi的工作频段以及所述USB的工作状态调整所述第一终端的USB的工作模式包括:当所述第一终端的Wi-Fi的工作频段为第一频段,且所述第一终端的USB的工作状态为通过USB与第三终端进行传输数据时,将所述USB的工作模式设置为第一工作模式;和/或,当所述第一终端的Wi-Fi的工作频段为非第一频段,或者,当所述第一终端的Wi-Fi的工作频段为第一频段且所述第一终端的USB的工作状态为未与第三终端进行数据传输时,将所述USB的工作模式设置为第二工作模式。Optionally, adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB includes: when the working frequency band of the Wi-Fi of the first terminal is the first frequency band And the working state of the USB of the first terminal is to set the working mode of the USB to the first working mode when the data is transmitted through the USB and the third terminal; and/or, when the first terminal is in the Wi - The working frequency band of the Fi is not the first frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band and the working state of the USB of the first terminal is not the data transmission with the third terminal When the working mode of the USB is set to the second working mode.
可选地,在将所述USB的工作模式设置为第一工作模式后,所述方法还包括:在确定所述第一终端的Wi-Fi的工作频段切换成非第一频段,或者所述第一终端的USB的工作状态切换为未与所述第三终端进行数据传输后,将所述USB的工作模式设置为第二工作模式。Optionally, after the working mode of the USB is set to the first working mode, the method further includes: determining that the working frequency band of the Wi-Fi of the first terminal is switched to a non-first frequency band, or After the working state of the USB of the first terminal is switched to data transmission without the third terminal, the working mode of the USB is set to the second working mode.
根据本发明的另一方面,提供了一种通用串行总线USB的工作模式处理装置,包括:确定模块,设置为确定第一终端的无线保真Wi-Fi的工作频段;调整模块,设置为根据所述Wi-Fi的工作频段调整所述第一终端的USB的工作模式。According to another aspect of the present invention, there is provided a working mode processing apparatus for a universal serial bus USB, comprising: a determining module configured to determine a working frequency band of a wireless fidelity Wi-Fi of the first terminal; and an adjustment module configured to Adjusting an operating mode of the USB of the first terminal according to the working frequency band of the Wi-Fi.
可选地,所述确定模块包括:判断单元,设置为判断是否有第二终端接入所述第一终端的第一频段;确定单元,设置为在所述判断单元判断出有所述第二终端接入所述第一终端的第一频段时,确定所述第一终端的Wi-Fi的工作频段为第一频段;和/或,在确定所述第一终端的第一频段未开启,或者在所述判断单元判断出所述第一终端的第一频段中无所述第二终端接入时,确定所述第一终端的Wi-Fi的工作频段为非第一频段。Optionally, the determining module includes: a determining unit, configured to determine whether the second terminal accesses the first frequency band of the first terminal; and the determining unit is configured to determine, in the determining unit, that the second When the terminal accesses the first frequency band of the first terminal, determining that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining that the first frequency band of the first terminal is not enabled, Or determining that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band when the determining unit determines that the second terminal does not access the first frequency band of the first terminal.
可选地,所述调整模块包括:调整单元,设置为根据所述Wi-Fi的工作频段以及所述USB的工作状态调整所述第一终端的USB的工作模式。Optionally, the adjusting module includes: an adjusting unit, configured to adjust an operating mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB.
可选地,所述调整单元包括:设置子单元,设置为当所述第一终端的Wi-Fi的工作频段为
第一频段,且所述第一终端的USB的工作状态为通过USB与第三终端进行传输数据时,将所述USB的工作模式设置为第一工作模式;和/或,当所述第一终端的Wi-Fi的工作频段为非第一频段,或者,当所述第一终端的Wi-Fi的工作频段为第一频段且所述第一终端的USB的工作状态为未与第三终端进行数据传输时,将所述USB的工作模式设置为第二工作模式。Optionally, the adjusting unit includes: a setting subunit, configured to: when the working frequency band of the Wi-Fi of the first terminal is
a first frequency band, and the working state of the USB of the first terminal is to set the working mode of the USB to the first working mode when the data is transmitted through the USB and the third terminal; and/or, when the first The working frequency band of the Wi-Fi of the terminal is not the first frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band, and the working state of the USB of the first terminal is not the third terminal When data transmission is performed, the working mode of the USB is set to the second working mode.
可选地,所述装置还包括:设置模块,设置为在将所述USB的工作模式设置为第一工作模式后,且在确定所述第一终端的Wi-Fi的工作频段切换成非第一频段,或者所述第一终端的USB的工作状态切换为未与所述第三终端进行数据传输后,将所述USB的工作模式设置为第二工作模式。Optionally, the device further includes: a setting module, configured to: after setting the working mode of the USB to the first working mode, and determining to switch the operating band of the Wi-Fi of the first terminal to a non-first After a frequency band, or the working state of the USB of the first terminal is switched to not perform data transmission with the third terminal, setting the working mode of the USB to the second working mode.
本发明另一实施例提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述实施例中的方法。Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
通过本发明,采用确定第一终端的无线保真Wi-Fi的工作频段;根据所述Wi-Fi的工作频段调整所述第一终端的USB的工作模式。解决了相关技术中存在的干扰屏蔽成本高,且干扰屏蔽设备可用性低的问题,进而达到了降低干扰屏蔽成本,提高干扰屏蔽可用性的效果。Through the invention, a working frequency band for determining the wireless fidelity Wi-Fi of the first terminal is adopted; and an operating mode of the USB of the first terminal is adjusted according to the working frequency band of the Wi-Fi. The invention solves the problem that the interference shielding cost existing in the related technology is high, and the availability of the interference shielding device is low, thereby achieving the effect of reducing the interference shielding cost and improving the interference shielding availability.
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的USB的工作模式处理方法的流程图;1 is a flowchart of a working mode processing method of a USB according to an embodiment of the present invention;
图2是根据本发明实施例的抑制USB3.0射频干扰方法的流程图;2 is a flowchart of a method for suppressing USB 3.0 radio frequency interference according to an embodiment of the present invention;
图3是根据本发明实施例的USB的工作模式处理装置的结构框图;3 is a block diagram showing the structure of an operating mode processing apparatus for a USB according to an embodiment of the present invention;
图4是根据本发明实施例的USB的工作模式处理装置中确定模块32的结构框图;4 is a block diagram showing the structure of the determining module 32 in the working mode processing apparatus of the USB according to an embodiment of the present invention;
图5是根据本发明实施例的USB的工作模式处理装置中调整模块34的结构框图;FIG. 5 is a structural block diagram of an adjustment module 34 in a working mode processing apparatus of a USB according to an embodiment of the present invention;
图6是根据本发明实施例的USB的工作模式处理装置中调整单元52的结构框图;FIG. 6 is a structural block diagram of an adjusting unit 52 in an operating mode processing apparatus of a USB according to an embodiment of the present invention;
图7是根据本发明实施例的USB的工作模式处理装置的优选结构框图;7 is a block diagram showing a preferred structure of a working mode processing apparatus for a USB according to an embodiment of the present invention;
图8是根据本发明实施例的终端的结构框图。FIG. 8 is a structural block diagram of a terminal according to an embodiment of the present invention.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种USB的工作模式处理方法,图1是根据本发明实施例的USB的工作模式处理方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a working mode processing method of a USB is provided. FIG. 1 is a flowchart of a working mode processing method of a USB according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102,确定第一终端的无线保真Wi-Fi的工作频段;Step S102, determining a working frequency band of the wireless fidelity Wi-Fi of the first terminal;
步骤S104,根据上述Wi-Fi的工作频段调整第一终端的USB的工作模式。Step S104, adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi.
其中,执行上述步骤的可以是第一终端,该第一终端是同时支持USB功能和Wi-Fi功能的终端,并且,上述的第一终端的工作频段可以是一个或多个,比如,当第一终端同时开启2.4G频段和5G频段,且2.4G频段和5G频段上均有其他终端接入时,该第一终端的Wi-Fi的工作频段为2.4G和5G,再比如,当第一终端仅开启2.4G频段,且该2.4G频段上有其他终端接入时,该第一终端的Wi-Fi的工作频段为2.4G。The first terminal may be a terminal that supports both the USB function and the Wi-Fi function, and the working frequency band of the first terminal may be one or more, for example, when When a terminal simultaneously turns on the 2.4G band and the 5G band, and the other terminals are connected in the 2.4G band and the 5G band, the Wi-Fi working frequency band of the first terminal is 2.4G and 5G, and, for example, when the first When the terminal only turns on the 2.4G frequency band, and the other terminal accesses the 2.4G frequency band, the Wi-Fi working frequency band of the first terminal is 2.4G.
通过上述步骤,可以根据第一终端的Wi-Fi的工作频段调整第一终端的USB的工作模式,从而可以将第一终端的USB的工作模式调整为对Wi-Fi的工作频段没有影响的工作模式,避免USB高频通讯时对Wi-Fi频段的干扰,干扰屏蔽效率高,且无需增加额外的干扰屏蔽设备,解决了相关技术中存在的干扰屏蔽成本高,且干扰屏蔽设备可用性低的问题,进而达到了降低干扰屏蔽成本,提高干扰屏蔽可用性的效果。Through the above steps, the working mode of the USB of the first terminal can be adjusted according to the working frequency band of the Wi-Fi of the first terminal, so that the working mode of the USB of the first terminal can be adjusted to work that has no effect on the working frequency band of the Wi-Fi. Mode, avoiding interference to Wi-Fi frequency band during USB high-frequency communication, high interference shielding efficiency, and no need to add additional interference shielding equipment, solving the problem of high interference shielding cost and low availability of interference shielding equipment in related technologies In turn, the effect of reducing interference shielding cost and improving the availability of interference shielding is achieved.
在一个可选的实施例中,确定上述第一终端的Wi-Fi的工作频段包括:判断是否有第二终端接入上述第一终端的第一频段;在判断出有第二终端接入上述第一终端的第一频段时,确定上述第一终端的Wi-Fi的工作频段为第一频段;和/或,在确定上述第一终端的第一频段未开启,或者判断出第一终端的第一频段中无第二终端接入时,确定所述第一终端的Wi-Fi的工作频段为非第一频段。在该实施例中,第一终端的Wi-Fi的工作频段为第一终端开启并且有其他终端接入的频段,可选地,上述的第一频段可以是2.4G频段,也可以是5G频段,也可以是后续可能出现的其他频段。在该实施例中,在判断是否有第二终端接入第一终端的第一频段之前,还可以判断第一终端的第一频段是否开启。上述的非第一频段包括除第一频段之外的其他频段,还可以包括空闲状态,其中,该空闲状态是第一终端开启了频段(例如,开启了2.4G频段,和/或开启了5G频段),但是没有其他终端(例如,上述的第二终端)接入第一终端开启的频带的状态。In an optional embodiment, determining the working frequency band of the Wi-Fi of the first terminal includes: determining whether a second terminal accesses the first frequency band of the first terminal; and determining that the second terminal accesses the foregoing Determining, in the first frequency band of the first terminal, that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining that the first frequency band of the first terminal is not enabled, or determining that the first terminal is When no second terminal is accessed in the first frequency band, it is determined that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band. In this embodiment, the working frequency band of the Wi-Fi of the first terminal is that the first terminal is turned on and has a frequency band that is accessed by other terminals. Optionally, the first frequency band may be a 2.4G frequency band or a 5G frequency band. It can also be other frequency bands that may appear in the future. In this embodiment, before determining whether the second terminal accesses the first frequency band of the first terminal, it may further determine whether the first frequency band of the first terminal is enabled. The non-first frequency band includes a frequency band other than the first frequency band, and may also include an idle state, where the idle state is that the first terminal turns on the frequency band (for example, the 2.4G frequency band is turned on, and/or 5G is turned on). Band), but no other terminal (for example, the second terminal described above) accesses the state of the frequency band opened by the first terminal.
在一个可选的实施例中,根据上述Wi-Fi的工作频段调整所述第一终端的USB的工作模式包括:根据Wi-Fi的工作频段以及USB的工作状态调整第一终端的USB的工作模式。在本实施例中,在对第一终端的USB的工作模式进行调整时,可以综合考虑第一终端的Wi-Fi的工作频段以及第一终端的USB的工作状态(工作状态包括进行数据传输状态、未进行数据传输状态)。In an optional embodiment, adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi includes: adjusting the working of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB mode. In this embodiment, when the working mode of the USB of the first terminal is adjusted, the working frequency band of the Wi-Fi of the first terminal and the working state of the USB of the first terminal may be comprehensively considered (the working state includes performing a data transmission state) , no data transmission status).
在一个可选的实施例中,根据Wi-Fi的工作频段以及USB的工作状态调整第一终端的USB的工作模式包括:当第一终端的Wi-Fi的工作频段为第一频段,且第一终端的USB的工作状态为通过USB与第三终端进行传输数据时,将USB的工作模式设置为第一工作模式;和/或,当第一终端的Wi-Fi的工作频段为非第一频段,或者,当第一终端的Wi-Fi的工作频段为第一频段且第一终端的USB的工作状态为未与第三终端进行数据传输时,将USB的工作模式设置
为第二工作模式。可选地,本实施例中的第一频段可以为2.4G频段,第一工作模式为USB2.0,第二工作模式为USB3.0;或者,第一频段可以为其他频段(例如5G频段),第一工作模式为不会影响该其他频段的USB工作模式(例如,USB2.0),第二工作模式为会影响该其他频段的USB工作模块(例如,USB3.1),从而有效避免了通过USB进行数据传输时,对Wi-Fi频段的干扰。In an optional embodiment, adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB includes: when the working frequency band of the Wi-Fi of the first terminal is the first frequency band, and The working state of the USB of a terminal is to set the working mode of the USB to the first working mode when transmitting data through the USB and the third terminal; and/or, when the working frequency band of the Wi-Fi of the first terminal is not the first The frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band and the working state of the USB of the first terminal is not data transmission with the third terminal, setting the working mode of the USB
For the second mode of operation. Optionally, the first frequency band in this embodiment may be a 2.4G frequency band, the first working mode is USB2.0, and the second working mode is USB3.0; or the first frequency band may be other frequency bands (for example, 5G frequency band) The first working mode is a USB working mode (for example, USB2.0) that does not affect the other frequency bands, and the second working mode is a USB working module (for example, USB 3.1) that affects the other frequency bands, thereby effectively avoiding Interference to the Wi-Fi band when data is transmitted over USB.
在一个可选的实施例中,在将上述USB的工作模式设置为第一工作模式后,上述方法还包括:在确定第一终端的Wi-Fi的工作频段切换成非第一频段,或者上述第一终端的USB的工作模式切换为未与第三终端进行数据传输后,将USB的工作模式设置为第二工作模式。可选地,在本实施例中,在确定第一终端的Wi-Fi的工作频段切换成非第一频段,或者上述第一终端的USB的工作状态切换为未与第三终端进行数据传输后,可也以维持第一终端的USB的工作模式为第一工作模式。In an optional embodiment, after the operating mode of the USB is set to the first working mode, the method further includes: determining that the working frequency band of the Wi-Fi of the first terminal is switched to a non-first frequency band, or After the working mode of the USB of the first terminal is switched to the data transmission without the third terminal, the working mode of the USB is set to the second working mode. Optionally, in this embodiment, after determining that the working frequency band of the Wi-Fi of the first terminal is switched to the non-first frequency band, or the working state of the USB of the first terminal is switched to not transmitting data with the third terminal, The operating mode of the USB of the first terminal can also be maintained as the first working mode.
下面以上述第一频段为2.4G,非第一频段为5G、第一工作模式为USB2.0、第二工作模式为USB3.0为例,对本发明进行说明:The following description is made of the above first frequency band being 2.4G, the non-first frequency band being 5G, the first working mode being USB2.0, and the second working mode being USB3.0 as an example:
在本发明实施例中,可以根据第一终端当前Wi-Fi的工作频段和当前USB的工作状态,切换USB的工作模式,第一终端的Wi-Fi频段可以同时支持2.4G和5G,其中,可以默认设置部分相同的Wi-Fi参数(主要包括SSID,国家码,安全模式和密钥等)。当第一终端的Wi-Fi2.4G频段开启且2.4G频段有终端接入时,将设置USB模块为USB2.0模式,当终端的Wi-Fi2.4G频段未开启或2.4G频段无终端接入时。设置USB模块工作在USB3.0模式。从而避免第一终端运行时USB3.0高频数据传输时对Wi-Fi2.4G频段的射频干扰,降低第一终端Wi-Fi无线接收的灵敏度,从而干扰终端的正常使用的问题。In the embodiment of the present invention, the working mode of the current Wi-Fi of the first terminal and the working state of the current USB are switched, and the working mode of the USB is switched. The Wi-Fi frequency band of the first terminal can simultaneously support 2.4G and 5G, where Some of the same Wi-Fi parameters (mainly including SSID, country code, security mode, and key) can be set by default. When the Wi-Fi 2.4G band of the first terminal is enabled and the terminal is connected in the 2.4G band, the USB module is set to the USB2.0 mode. When the Wi-Fi 2.4G band of the terminal is not enabled or the terminal is not connected in the 2.4G band. Time to enter. Set the USB module to work in USB3.0 mode. Therefore, the radio interference to the Wi-Fi 2.4G frequency band during the USB3.0 high-frequency data transmission during the first terminal operation is avoided, and the sensitivity of the first terminal Wi-Fi wireless reception is reduced, thereby interfering with the normal use of the terminal.
下面结合具体实施例对本发明进行说明:The present invention will be described below in conjunction with specific embodiments:
图2是根据本发明实施例的抑制USB3.0射频干扰方法的流程图,该方法包括:FIG. 2 is a flowchart of a method for suppressing USB 3.0 radio frequency interference according to an embodiment of the present invention, the method includes:
步骤202:终端(对应于上述的第一终端)开机后,Wi-Fi模块默认支持2.4G频段,或者默认支持2.4G和5G频段,可选地,在默认支持2.4G和5G频段时,可以将Wi-Fi的2.4G和5G频段设置为相同的SSID,国家码,安全模式和密钥。Step 202: After the terminal (corresponding to the first terminal described above) is powered on, the Wi-Fi module supports the 2.4G frequency band by default, or supports the 2.4G and 5G frequency bands by default. Optionally, when the 2.4G and 5G frequency bands are supported by default, Set Wi-Fi's 2.4G and 5G bands to the same SSID, country code, security mode and key.
步骤204:USB模块默认工作在USB3.0模式。Step 204: The USB module works in USB3.0 mode by default.
其中,USB3.0模式表示终端硬件和软件支持USB3.0规范,终端在高频(2.4G-2.5GHz)传输的最大传输带宽高达5.0Gbps(500MB/s)。USB2.0模式表示终端硬件和软件支持USB3.0规范,但仅采用低频传输最大传输带宽为480Mbps(即60MB/s),所以USB2.0模式不会对Wi-Fi的2.4G频段产生干扰。Among them, USB3.0 mode means that the terminal hardware and software support USB3.0 specification, and the maximum transmission bandwidth of the terminal in high frequency (2.4G-2.5GHz) transmission is up to 5.0Gbps (500MB/s). The USB2.0 mode indicates that the terminal hardware and software support the USB3.0 specification, but only the low-frequency transmission has a maximum transmission bandwidth of 480 Mbps (ie, 60 MB/s), so the USB 2.0 mode does not interfere with the Wi-Fi 2.4G band.
步骤206:判断Wi-Fi 2.4G频段是否有客户端接入,如果没有,则保持USB模块默认工作方式,如果有,则执行步骤208。Step 206: Determine whether the Wi-Fi 2.4G frequency band has client access. If not, keep the USB module default working mode. If yes, go to step 208.
其中,当有客户端(对应于上述的第二终端)尝试接入终端Wi-Fi时,如果客户端同时支
持2.4G和5G频段,且上述终端的Wi-Fi模块默认支持2.4G和5G频段时,客户端可以选择5G频带接入。如果客户端仅支持2.4G频段,则客户端使用终端Wi-Fi的2.4G频段接入。Wherein, when a client (corresponding to the second terminal described above) attempts to access the terminal Wi-Fi, if the client simultaneously supports
When the 2.4G and 5G bands are used, and the Wi-Fi module of the above terminal supports the 2.4G and 5G bands by default, the client can select the 5G band to access. If the client only supports the 2.4G band, the client uses the 2.4G band of the terminal Wi-Fi to access.
步骤208:判断终端USB模块是否进行高频数据传输,如果不是,则保持USB模块默认工作方式,如果是,则执行步骤210。Step 208: Determine whether the terminal USB module performs high frequency data transmission. If not, the default operation mode of the USB module is maintained. If yes, step 210 is performed.
其中,可以通过判断外部USB设备是否支持USB3.0工作模式和是否与终端USB模块进行数据,判断当前终端USB模块是否进行高频数据传输。The U.S. USB module can determine whether the current terminal USB module performs high frequency data transmission by determining whether the external USB device supports the USB 3.0 working mode and whether the data is transmitted with the terminal USB module.
步骤210:设置终端USB模块工作USB2.0模式。Step 210: Set the terminal USB module to work in the USB 2.0 mode.
其中,如果终端USB模块没有高频数据传输,则设置终端USB模块工作USB3.0模式。Wherein, if the terminal USB module does not have high frequency data transmission, the terminal USB module is set to work in the USB3.0 mode.
在本发明具体实施例中,还提供了一种抑制USB3.0射频干扰方法,在本实施例中,可以假设终端仅支持2.4G频段,不支持5G频段,下面对本实施例中的方式进行说明:In the specific embodiment of the present invention, a method for suppressing the radio interference of the USB 3.0 is also provided. In this embodiment, the terminal can only support the 2.4G frequency band and does not support the 5G frequency band. The following describes the manner in this embodiment. :
步骤1:终端开机后,Wi-Fi模块默认加载2.4G频段。Step 1: After the terminal is powered on, the Wi-Fi module loads the 2.4G band by default.
步骤2:USB模块默认工作在USB3.0模式。Step 2: The USB module works in USB3.0 mode by default.
步骤3:判断Wi-Fi 2.4G频段是否有客户端接入,如果没有,则保持USB模块默认工作方式,如果有,则执行步骤4。Step 3: Determine whether the Wi-Fi 2.4G band has client access. If not, keep the default operation mode of the USB module. If yes, go to step 4.
步骤4:判断终端USB模块是否进行高频数据传输,如果不是,则保持USB模块默认工作方式,如果是,则执行步骤5。Step 4: Determine whether the terminal USB module performs high-frequency data transmission. If not, keep the default operation mode of the USB module. If yes, go to step 5.
可选地,可以通过判断外部USB设备是否支持USB3.0工作模式和是否与终端USB模块进行数据,判断当前终端USB模块是否进行高频数据传输。Optionally, whether the current terminal USB module performs high frequency data transmission may be determined by determining whether the external USB device supports the USB 3.0 working mode and whether the data is performed with the terminal USB module.
步骤5:设置终端USB模块工作在USB2.0模式。Step 5: Set the terminal USB module to work in USB2.0 mode.
其中,如果终端USB模块没有高频数据传输,则设置终端USB模块工作在USB3.0模式。Wherein, if the terminal USB module does not have high frequency data transmission, the terminal USB module is set to work in the USB3.0 mode.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种USB的工作模式处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
In the embodiment, a working mode processing device for the USB is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图3是根据本发明实施例的USB的工作模式处理装置的结构框图,如图3所示,该装置包括确定模块32和调整模块34,下面对该装置进行说明。3 is a block diagram showing the structure of an operating mode processing apparatus for a USB according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a determining module 32 and an adjusting module 34, which will be described below.
确定模块32,设置为确定第一终端的无线保真Wi-Fi的工作频段;调整模块34,连接至上述确定模块32,设置为根据Wi-Fi的工作频段调整第一终端的USB的工作模式。The determining module 32 is configured to determine a working frequency band of the wireless fidelity Wi-Fi of the first terminal, and the adjusting module 34 is connected to the determining module 32, and is configured to adjust the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi .
图4是根据本发明实施例的USB的工作模式处理装置中确定模块32的结构框图,如图4所示,该确定模块32包括判断单元42和确定单元44,下面对该确定模块32进行说明。4 is a block diagram showing the structure of the determining module 32 in the working mode processing apparatus of the USB according to the embodiment of the present invention. As shown in FIG. 4, the determining module 32 includes a determining unit 42 and a determining unit 44, and the determining module 32 is performed below. Description.
判断单元42,设置为判断是否有第二终端接入第一终端的第一频段;确定单元44,连接至上述判断单元42,设置为在判断单元42判断出有第二终端接入第一终端的第一频段时,确定上述第一终端的Wi-Fi的工作频段为第一频段;和/或,在确定第一终端的第一频段未开启,或者判断单元42判断出第一终端的第一频段中无第二终端接入时,确定上述第一终端的Wi-Fi的工作频段为非第一频段。The determining unit 42 is configured to determine whether the second terminal accesses the first frequency band of the first terminal; the determining unit 44 is connected to the determining unit 42 and is configured to determine, in the determining unit 42, that the second terminal accesses the first terminal In the first frequency band, determining that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining that the first frequency band of the first terminal is not turned on, or determining unit 42 determines the first terminal When there is no second terminal access in a frequency band, it is determined that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band.
图5是根据本发明实施例的USB的工作模式处理装置中调整模块34的结构框图,如图5所示,该调整模块34包括调整单元52,下面对该调整单元52进行说明。FIG. 5 is a structural block diagram of an adjustment module 34 in a working mode processing apparatus for a USB according to an embodiment of the present invention. As shown in FIG. 5, the adjustment module 34 includes an adjustment unit 52, and the adjustment unit 52 is described below.
调整单元52,设置为根据Wi-Fi的工作频段以及USB的工作状态调整第一终端的USB的工作模式。The adjusting unit 52 is configured to adjust the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB.
图6是根据本发明实施例的USB的工作模式处理装置中调整单元52的结构框图,如图6所示,该调整单元52包括设置子单元62,下面对该设置子单元62进行说明。FIG. 6 is a block diagram showing the configuration of the adjusting unit 52 in the working mode processing apparatus of the USB according to the embodiment of the present invention. As shown in FIG. 6, the adjusting unit 52 includes a setting subunit 62, which will be described below.
设置单元62,设置为当第一终端的Wi-Fi的工作频段为第一频段,且第一终端的USB的工作状态为通过USB与第三终端进行传输数据时,将USB的工作模式设置为第一工作模式;和/或,当第一终端的Wi-Fi的工作频段为非第一频段,或者,当第一终端的Wi-Fi的工作频段为第一频段且第一终端的USB的工作状态为未与第三终端进行数据传输时,将USB的工作模式设置为第二工作模式。The setting unit 62 is configured to set the working mode of the USB to be when the operating frequency band of the Wi-Fi of the first terminal is the first frequency band, and the working state of the USB of the first terminal is to transmit data through the USB and the third terminal. a first working mode; and/or when the working frequency band of the Wi-Fi of the first terminal is not the first frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band and the USB of the first terminal When the working state is that data transmission is not performed with the third terminal, the working mode of the USB is set to the second working mode.
图7是根据本发明实施例的USB的工作模式处理装置的优选结构框图,如图7所示,该装置除包括图6所示的所有模块外,还包括设置模块72,下面对该装置进行说明。7 is a block diagram showing a preferred structure of a working mode processing device for a USB according to an embodiment of the present invention. As shown in FIG. 7, the device includes a setting module 72 in addition to all the modules shown in FIG. Be explained.
设置模块72,连接至上述调整模块34,设置为在将USB的工作模式设置为第一工作模式后,且在确定第一终端的Wi-Fi的工作频段切换成非第一频段,或者第一终端的USB的工作状态切换为未与第三终端进行数据传输后,将USB的工作模式设置为第二工作模式。The setting module 72 is connected to the adjustment module 34, and is configured to: after setting the working mode of the USB to the first working mode, and determining to switch the working frequency band of the Wi-Fi of the first terminal to the non-first frequency band, or first After the working state of the USB of the terminal is switched to the data transmission without the third terminal, the working mode of the USB is set to the second working mode.
在本发明实施例中还提供了一种终端,图8是根据本发明实施例的终端的结构框图,如图8所示,该终端包括控制模块82,WiFi模块84和USB模块86,下面对各模块进行说明:A terminal is provided in the embodiment of the present invention. FIG. 8 is a structural block diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 8, the terminal includes a control module 82, a WiFi module 84, and a USB module 86. Explain each module:
控制模块82(对应于上述的确定模块32和调整模块34),设置为获取WiFi模块84的工作模式和客户端的接入状态,设置USB模块86工作模式。The control module 82 (corresponding to the determining module 32 and the adjusting module 34 described above) is configured to acquire the working mode of the WiFi module 84 and the access state of the client, and set the working mode of the USB module 86.
WiFi模块84,负责WiFi驱动的加载和参数设置,负责外部客户端的接入,将当前WiFi的工作模式和客户端接入状态反馈给控制模块82;
The WiFi module 84 is responsible for loading and parameter setting of the WiFi driver, and is responsible for accessing the external client, and feeding back the working mode of the current WiFi and the client access state to the control module 82;
USB模块86,负责USB驱动的加载和数据传输,根据控制模块82的指令设置工作模式。The USB module 86 is responsible for loading and data transmission of the USB driver, and sets the working mode according to the instruction of the control module 82.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,确定第一终端的无线保真Wi-Fi的工作频段;S1. Determine a working frequency band of the wireless fidelity Wi-Fi of the first terminal.
S2,根据上述Wi-Fi的工作频段调整第一终端的USB的工作模式。S2. Adjust the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述各步骤。Optionally, in the embodiment, the processor performs the above steps according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
通过本发明实施例中的方案可以实现根据终端当前Wi-Fi的工作频段和当前USB的工作状态,切换USB的工作模式,避免终端运行时USB3.0高频数据传输时对Wi-Fi2.4G频段的射频干扰(或者,其他的USB的工作模式对其他的Wi-Fi的工作频段的射频干扰),降低终端Wi-Fi无线接收的灵敏度,从而干扰终端的正常使用的问题。The solution in the embodiment of the present invention can implement the working mode of the current Wi-Fi terminal and the working state of the current USB, and switch the working mode of the USB to avoid Wi-Fi 2.4G transmission when the terminal is running. The radio frequency interference of the frequency band (or other USB working mode to the radio frequency interference of other Wi-Fi working frequency bands) reduces the sensitivity of the terminal Wi-Fi wireless reception, thereby interfering with the normal use of the terminal.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
如上所述,本发明实施例提供的一种通用串行总线USB的工作模式处理方法及装置具有以下有益效果:解决了相关技术中存在的干扰屏蔽成本高,且干扰屏蔽设备调整的灵活性比较低的问题,进而达到了降低干扰屏蔽成本,提高干扰屏蔽效率的效果。
As described above, the working mode processing method and apparatus for the universal serial bus USB provided by the embodiments of the present invention have the following beneficial effects: the interference shielding cost existing in the related art is high, and the flexibility of the interference shielding device adjustment is compared. The low problem further achieves the effect of reducing the interference shielding cost and improving the interference shielding efficiency.
Claims (10)
- 一种通用串行总线USB的工作模式处理方法,包括:A working mode processing method for a universal serial bus USB, comprising:确定第一终端的无线保真Wi-Fi的工作频段;Determining a working frequency band of the wireless fidelity Wi-Fi of the first terminal;根据所述Wi-Fi的工作频段调整所述第一终端的USB的工作模式。Adjusting an operating mode of the USB of the first terminal according to the working frequency band of the Wi-Fi.
- 根据权利要求1所述的方法,其中,确定所述第一终端的Wi-Fi的工作频段包括:The method of claim 1, wherein determining the working frequency band of the Wi-Fi of the first terminal comprises:判断是否有第二终端接入所述第一终端的第一频段;Determining whether a second terminal accesses the first frequency band of the first terminal;在判断出有所述第二终端接入所述第一终端的第一频段时,确定所述第一终端的Wi-Fi的工作频段为第一频段;和/或,在确定所述第一终端的第一频段未开启,或者判断出所述第一终端的第一频段中无所述第二终端接入时,确定所述第一终端的Wi-Fi的工作频段为非第一频段。When it is determined that the second terminal accesses the first frequency band of the first terminal, determining that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; and/or determining the first frequency band When the first frequency band of the terminal is not enabled, or when it is determined that the second terminal is not connected to the first frequency band of the first terminal, determining that the working frequency band of the Wi-Fi of the first terminal is not the first frequency band.
- 根据权利要求1或2所述的方法,其中,根据所述Wi-Fi的工作频段调整所述第一终端的USB的工作模式包括:The method according to claim 1 or 2, wherein adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi comprises:根据所述Wi-Fi的工作频段以及所述USB的工作状态调整所述第一终端的USB的工作模式。Adjusting an operating mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB.
- 根据权利要求3所述的方法,其中,根据所述Wi-Fi的工作频段以及所述USB的工作状态调整所述第一终端的USB的工作模式包括:The method according to claim 3, wherein adjusting the working mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB comprises:当所述第一终端的Wi-Fi的工作频段为第一频段,且所述第一终端的USB的工作状态为通过USB与第三终端进行传输数据时,将所述USB的工作模式设置为第一工作模式;和/或,When the working frequency band of the Wi-Fi of the first terminal is the first frequency band, and the working state of the USB of the first terminal is to transmit data through the USB and the third terminal, setting the working mode of the USB to First mode of operation; and/or,当所述第一终端的Wi-Fi的工作频段为非第一频段,或者,当所述第一终端的Wi-Fi的工作频段为第一频段且所述第一终端的USB的工作状态为未与第三终端进行数据传输时,将所述USB的工作模式设置为第二工作模式。When the working frequency band of the Wi-Fi of the first terminal is not the first frequency band, or when the working frequency band of the Wi-Fi of the first terminal is the first frequency band, and the working state of the USB of the first terminal is When the data transmission is not performed with the third terminal, the working mode of the USB is set to the second working mode.
- 根据权利要求4所述的方法,其中,在将所述USB的工作模式设置为第一工作模式后,所述方法还包括:The method of claim 4, wherein after setting the working mode of the USB to the first working mode, the method further comprises:在确定所述第一终端的Wi-Fi的工作频段切换成非第一频段,或者所述第一终端的USB的工作状态切换为未与所述第三终端进行数据传输后,将所述USB的工作模式设置为第二工作模式。After determining that the working frequency band of the Wi-Fi of the first terminal is switched to a non-first frequency band, or the working state of the USB of the first terminal is switched to not transmitting data with the third terminal, the USB is The working mode is set to the second working mode.
- 一种通用串行总线USB的工作模式处理装置,包括:A universal serial bus USB working mode processing device includes:确定模块,设置为确定第一终端的无线保真Wi-Fi的工作频段;Determining a module, configured to determine a working frequency band of the wireless fidelity Wi-Fi of the first terminal;调整模块,设置为根据所述Wi-Fi的工作频段调整所述第一终端的USB的工作模式。And an adjustment module, configured to adjust an operating mode of the USB of the first terminal according to the working frequency band of the Wi-Fi.
- 根据权利要求6所述的装置,其中,所述确定模块包括: The apparatus of claim 6 wherein said determining module comprises:判断单元,设置为判断是否有第二终端接入所述第一终端的第一频段;a determining unit, configured to determine whether a second terminal accesses the first frequency band of the first terminal;确定单元,设置为在所述判断单元判断出有所述第二终端接入所述第一终端的第一频段时,确定所述第一终端的Wi-Fi的工作频段为第一频段;和/或,在确定所述第一终端的第一频段未开启,或者在所述判断单元判断出所述第一终端的第一频段中无所述第二终端接入时,确定所述第一终端的Wi-Fi的工作频段为非第一频段。a determining unit, configured to determine, when the determining unit determines that the second terminal accesses the first frequency band of the first terminal, determining that the working frequency band of the Wi-Fi of the first terminal is the first frequency band; Or determining that the first frequency band of the first terminal is not enabled, or when the determining unit determines that the second terminal is not accessed in the first frequency band of the first terminal, determining the first The working frequency band of the terminal's Wi-Fi is not the first frequency band.
- 根据权利要求6或7所述的装置,其中,所述调整模块包括:The apparatus according to claim 6 or 7, wherein the adjustment module comprises:调整单元,设置为根据所述Wi-Fi的工作频段以及所述USB的工作状态调整所述第一终端的USB的工作模式。The adjusting unit is configured to adjust an operating mode of the USB of the first terminal according to the working frequency band of the Wi-Fi and the working state of the USB.
- 根据权利要求8所述的装置,其中,所述调整单元包括:The apparatus of claim 8 wherein said adjusting unit comprises:设置子单元,设置为当所述第一终端的Wi-Fi的工作频段为第一频段,且所述第一终端的USB的工作状态为通过USB与第三终端进行传输数据时,将所述USB的工作模式设置为第一工作模式;和/或,当所述第一终端的Wi-Fi的工作频段为非第一频段,或者,当所述第一终端的Wi-Fi的工作频段为第一频段且所述第一终端的USB的工作状态为未与第三终端进行数据传输时,将所述USB的工作模式设置为第二工作模式。Setting a subunit, configured to: when the working frequency band of the Wi-Fi of the first terminal is the first frequency band, and the working state of the USB of the first terminal is to transmit data through the USB and the third terminal, The operating mode of the USB is set to the first working mode; and/or, when the working frequency band of the Wi-Fi of the first terminal is not the first frequency band, or when the working frequency band of the Wi-Fi of the first terminal is When the working state of the USB of the first terminal and the USB of the first terminal is not data transmission with the third terminal, the working mode of the USB is set to the second working mode.
- 根据权利要求9所述的装置,其中,所述装置还包括:The apparatus of claim 9 wherein said apparatus further comprises:设置模块,设置为在将所述USB的工作模式设置为第一工作模式后,且在确定所述第一终端的Wi-Fi的工作频段切换成非第一频段,或者所述第一终端的USB的工作状态切换为未与所述第三终端进行数据传输后,将所述USB的工作模式设置为第二工作模式。 a setting module, configured to: after setting the working mode of the USB to the first working mode, and determining to switch the working frequency band of the Wi-Fi of the first terminal to a non-first frequency band, or the first terminal After the working state of the USB is switched to not perform data transmission with the third terminal, the working mode of the USB is set to the second working mode.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610177869.2A CN107229585A (en) | 2016-03-25 | 2016-03-25 | The mode of operation processing method and processing device of general-purpose serial bus USB |
CN201610177869.2 | 2016-03-25 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017161868A1 true WO2017161868A1 (en) | 2017-09-28 |
Family
ID=59899305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/102325 WO2017161868A1 (en) | 2016-03-25 | 2016-10-18 | Processing method and apparatus for operation mode of universal serial bus (usb) |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107229585A (en) |
WO (1) | WO2017161868A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111711460B (en) * | 2020-06-16 | 2022-03-22 | Oppo广东移动通信有限公司 | USB working mode processing method and device, storage medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104079415A (en) * | 2013-03-27 | 2014-10-01 | 瑞昱半导体股份有限公司 | Network device and connection detection method thereof |
CN104102603A (en) * | 2013-04-09 | 2014-10-15 | 瑞昱半导体股份有限公司 | USB (Universal Serial Bus) network interface controller and operation mode switching method thereof |
CN105379132A (en) * | 2014-03-04 | 2016-03-02 | 联发科技股份有限公司 | Integrated circuit and associated apparatus |
CN105812018A (en) * | 2016-03-11 | 2016-07-27 | 珠海市魅族科技有限公司 | Transmission mode switching method and mobile terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5263998B2 (en) * | 2011-06-24 | 2013-08-14 | Necインフロンティア株式会社 | Data communication terminal equipped with multiple antennas such as an antenna for MIMO communication |
CN103164355B (en) * | 2011-12-13 | 2015-09-23 | 联想(北京)有限公司 | A kind of changing method and electronic equipment |
CN103369711A (en) * | 2012-03-31 | 2013-10-23 | 华为终端有限公司 | Communication connection establishment method and terminal device |
CN105406896A (en) * | 2015-10-19 | 2016-03-16 | 联想(北京)有限公司 | Electronic equipment and control method |
-
2016
- 2016-03-25 CN CN201610177869.2A patent/CN107229585A/en active Pending
- 2016-10-18 WO PCT/CN2016/102325 patent/WO2017161868A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104079415A (en) * | 2013-03-27 | 2014-10-01 | 瑞昱半导体股份有限公司 | Network device and connection detection method thereof |
CN104102603A (en) * | 2013-04-09 | 2014-10-15 | 瑞昱半导体股份有限公司 | USB (Universal Serial Bus) network interface controller and operation mode switching method thereof |
CN105379132A (en) * | 2014-03-04 | 2016-03-02 | 联发科技股份有限公司 | Integrated circuit and associated apparatus |
CN105812018A (en) * | 2016-03-11 | 2016-07-27 | 珠海市魅族科技有限公司 | Transmission mode switching method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107229585A (en) | 2017-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11877348B2 (en) | Receive operation mode indication for power save | |
CN112740769B (en) | Granularity adjustment of antenna power in a multi-radio system | |
US20180103127A1 (en) | Method of Reducing Mutual Interference between Universal Serial Bus (USB) data transmission and wireless data transmission | |
US20240080780A1 (en) | LTE NR Power Control for EN-DC | |
CN106411381A (en) | Data transmission method and device | |
US20230124671A1 (en) | Electronic device performing communication using bandwidth part, network, and method for operating the same | |
KR20210011166A (en) | Electronic device and method for controlling data throughput based on overheat of the electronic device | |
WO2017161868A1 (en) | Processing method and apparatus for operation mode of universal serial bus (usb) | |
WO2019184735A1 (en) | Cascading ap communication method, wireless access point and storage medium | |
CN113765537A (en) | Multi-band radio frequency circuit, frequency band adjusting method and wireless equipment | |
TW202127937A (en) | Transmit power of wireless communication | |
US20110143665A1 (en) | Method and apparatus for multiple access for directional wireless networks | |
CN109565294A (en) | Radio module coexisting in an electronic | |
KR20210016679A (en) | Method and electronic device for controlling transmission power of wireless signal | |
US20230018858A1 (en) | Multiple coexisting personal area networks having different handshaking | |
WO2019013124A1 (en) | Information processing apparatus, electronic device, control method for information processing apparatus, and control program | |
CN111711460B (en) | USB working mode processing method and device, storage medium and electronic equipment | |
US10091725B2 (en) | Outage delay indication and exploitation | |
JP2020513184A (en) | Base station function deployment method and apparatus | |
US20040224708A1 (en) | Reducing interference from closely proximate wireless units | |
KR20210040706A (en) | Apparatus and method for boosting network data throughput in electronic device | |
WO2019078823A1 (en) | Wireless band selection based on wired bus operation | |
JP6773336B2 (en) | Wireless communication terminals, wireless communication systems, control methods, and programs | |
US11627638B2 (en) | Integrated system with an access point powered by a radio node | |
EP4443802A1 (en) | Emlsr secondary channel operation |
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: 16895215 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16895215 Country of ref document: EP Kind code of ref document: A1 |