WO2017185343A1 - Method and device for establishing usb connection - Google Patents

Method and device for establishing usb connection Download PDF

Info

Publication number
WO2017185343A1
WO2017185343A1 PCT/CN2016/080719 CN2016080719W WO2017185343A1 WO 2017185343 A1 WO2017185343 A1 WO 2017185343A1 CN 2016080719 W CN2016080719 W CN 2016080719W WO 2017185343 A1 WO2017185343 A1 WO 2017185343A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb
module
usb standard
standard
frequency band
Prior art date
Application number
PCT/CN2016/080719
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Priority to CN201680080882.4A priority Critical patent/CN108702171B/en
Priority to PCT/CN2016/080719 priority patent/WO2017185343A1/en
Publication of WO2017185343A1 publication Critical patent/WO2017185343A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/50Circuits using different frequencies for the two directions of communication

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a USB (Universal Serial Bus) connection establishing method and apparatus.
  • USB Universal Serial Bus
  • Wireless devices that currently use Wi-Fi have two modes of operation: single-frequency and dual-frequency.
  • Single-frequency Wi-Fi works in the 2.4GHz band;
  • dual-band Wi-Fi can work in both 2.4GHz and 5GHz bands, which can be flexibly selected according to actual conditions.
  • USB is a serial bus standard that supports USB devices and external devices. It is also a technical specification for input and output interfaces, and is widely used in information communication products such as personal computers and mobile devices.
  • USB-related standards include USB 1.0, USB 2.0 FS (full speed), USB 3.0, USB 3.1 generation (GEN) 1 and USB 3.1 GEN2.
  • the data transfer speeds specified by each standard are different. For example, USB 1.0 has a maximum data transfer speed of only 1.5 Mbps; USB 2.0 FS has a maximum data transfer speed of 12 Mbps.
  • USB 3.1 GEN1 With the increase in transmission speed requirements, the current maximum data transfer speed of USB 3.1 GEN1 can reach 5Gbps, and the maximum data transfer speed of USB3.1 GEN2 can reach 10Gbps.
  • the reference frequency of each data line is 2.5 GHz, which interferes with the Wi-Fi 2.4 GHz band signal.
  • the reference frequency of each data line is 5 GHz, which will interfere with the signal of the 5 GHz band of Wi-Fi, and will cover due to the wide bandwidth of the reference frequency. The signal to the Wi-Fi 2.4GHz band, so the reference frequency will also interfere with the Wi-Fi 2.4GHz band signal.
  • USB 3.1 GEN1 or USB3.1 GEN2 may Wi-Fi signals cause interference, which affects the user experience.
  • the embodiment of the present application provides a method and a device for establishing a USB connection, which are used to reduce interference of a signal transmitted by a USB interface to a Wi-Fi signal.
  • the embodiment of the present application provides a USB connection establishment method, including:
  • the terminal After the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, according to The working frequency band supported by the Wi-Fi module and the first preset configuration policy determine the second USB standard, or determine the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
  • the terminal determines the Wi of the terminal.
  • the second USB standard is determined according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, or according to the current working frequency band and the second preset of the Wi-Fi module.
  • the configuration policy determines the second USB standard to establish a second USB connection according to the second USB standard, thereby reducing interference of the signal transmitted by the USB interface to the Wi-Fi signal.
  • the method further includes:
  • the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
  • the terminal determines the USB standard that has the highest transmission speed supported by the terminal as the second USB standard, thereby making the terminal
  • the USB module works in an optimal state, improving resource utilization.
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the terminal can quickly determine that the Wi-Fi signal is not applied to the Wi-Fi module.
  • the USB standard that generates interference, thereby avoiding interference of the signal transmitted by the terminal's USB interface to the Wi-Fi signal.
  • the determining, according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, the second USB standard including:
  • the terminal determines, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy. Two USB standards.
  • the terminal determines, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed from the first preset configuration policy as the second USB standard, thereby avoiding the signal transmitted by the USB interface of the terminal to the Wi.
  • the interference generated by the -Fi signal causes the USB module of the terminal to operate in an optimal state.
  • the terminal supports at least USB 3.1 GEN 1;
  • Determining the second USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy including:
  • the USB 2.0 FS is determined as the second USB standard.
  • USB 3.1 GEN 1 is determined to be the second USB standard.
  • the method further includes:
  • the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz frequency band
  • the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band
  • the second preset configuration policy is:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the terminal can quickly determine that Wi will not work on the Wi-Fi module that is working.
  • the -Fi signal produces a disturbing USB standard, thereby avoiding interference from the signal transmitted by the terminal's USB interface to the Wi-Fi signal.
  • the determining, according to the current working frequency band of the Wi-Fi module and the second preset configuration policy, the second USB standard including:
  • the terminal determines, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the second preset configuration policy. Two USB standards.
  • the terminal supports at least USB 3.1 GEN 1;
  • Determining the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy including:
  • the USB 2.0 FS is determined to be the second USB standard
  • USB 3.1 GEN 1 is determined to be the second USB standard.
  • the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  • An embodiment of the present application provides a USB connection establishment method, where the method includes:
  • the Wi-Fi module of the terminal After the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, When the Wi-Fi module supports a working frequency band of 2.4 GHz, the USB 2.0 FS is determined to be the second USB standard; or, when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB is 3.1 GEN 1 is determined to be the second USB standard;
  • USB 2.0 FS is determined to be the second USB standard when the working frequency band is 2.4 GHz; or USB 3.1 GEN 1 is determined as the second USB standard when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band Therefore, the interference of the signal transmitted by the USB interface of the terminal on the Wi-Fi signal can be avoided.
  • An embodiment of the present application provides a USB connection establishment method, where the method includes:
  • the terminal After the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, When the current working frequency band of the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or when the current working frequency band of the Wi-Fi module is 5 GHz, the USB 3.1 GEN 1 Determined to be the second USB standard;
  • the terminal after the terminal starts to establish the first USB connection according to the first USB standard, or after the terminal establishes the first USB connection according to the first USB standard,
  • the USB 2.0 FS is determined to be the second USB standard; or, when the Wi-Fi module operates in the 5 GHz band, the USB 3.1 is used.
  • GEN 1 is determined to be the second USB standard, so that interference of signals transmitted by the USB interface of the terminal to Wi-Fi signals can be avoided.
  • An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
  • a determining unit configured to start after establishing a first USB connection according to the first universal serial bus USB standard, or after establishing a first USB connection according to the first USB standard, when determining that the Wi-Fi module is in an active state, according to the The working frequency band supported by the Wi-Fi module and the first preset configuration policy determine the second USB standard, or determine the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
  • the processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  • the determining unit is further configured to:
  • the USB standard with the highest transmission speed supported by the device is determined as the second USB standard.
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the determining unit is specifically configured to:
  • the device supports at least USB 3.1 GEN 1;
  • the determining unit is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • processing unit is specifically configured to:
  • the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
  • the second preset configuration policy is:
  • the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used for the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the determining unit is specifically configured to:
  • the device supports at least USB 3.1 GEN 1;
  • the determining unit is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • the first preset configuration policy or the second preset configuration policy is saved in the configuration. In the file.
  • An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
  • a determining unit configured to start after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device is in a working state
  • the USB 2.0 FS is determined to be the second USB standard; or, when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, Determine USB 3.1 GEN 1 as the second USB standard;
  • the processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  • An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
  • a determining unit configured to start after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device is in a working state USB 2.0 FS is determined to be the second USB standard when the current working frequency band of the Wi-Fi module is 2.4 GHz band; or USB 3.1 when the current working frequency band of the Wi-Fi module is 5 GHz band GEN 1 is determined to be the second USB standard;
  • the processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  • An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
  • the memory is for storing a computer program
  • the processor running the computer program, performs the following process:
  • the Wi-Fi module After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when it is determined that the Wi-Fi module is in the working state, according to the Wi-Fi module Supporting the working frequency band and the first preset configuration policy to determine the second USB standard, or determining the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
  • the module establishes a second USB connection in accordance with the second USB standard.
  • the processor is further configured to:
  • the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the processor is specifically configured to:
  • the terminal supports at least USB 3.1 GEN 1;
  • the processor is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • the processor is specifically configured to:
  • the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
  • the second preset configuration policy is:
  • USB module of the terminal The USB standard used in the process is either USB 2.0 FS or USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the processor is specifically configured to:
  • the terminal supports at least USB 3.1 GEN 1;
  • the processor is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  • An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
  • the memory is for storing a computer program
  • the processor running the computer program, performs the following process:
  • the USB 2.0 FS is determined as the second USB standard; or when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined.
  • the USB 2.0 FS is determined as the second USB standard; or when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined.
  • the module establishes a second USB connection in accordance with the second USB standard.
  • An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
  • the memory is for storing a computer program
  • the processor running the computer program, performs the following process:
  • the USB 2.0 FS is determined to be the second USB standard; or, when the current working band of the Wi-Fi module is in the 5 GHz band, the USB 3.1 GEN 1 is determined to be the second. USB standard;
  • the embodiment of the present application provides a USB connection establishment method, including:
  • the terminal determines that the Wi-Fi module of the terminal is in an active state, determining a USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, or according to the current work of the Wi-Fi module
  • the frequency band and the second preset configuration policy determine the USB standard
  • the terminal establishes a USB connection according to the USB standard.
  • the terminal before determining that the Wi-Fi module of the terminal is in the working state, the terminal may be configured according to the working frequency band supported by the Wi-Fi module and the first preset configuration.
  • the policy determines the USB standard, or determines the USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy, so that the required USB standard can be quickly determined, thereby establishing a USB connection according to the determined USB standard. Thereby reducing the interference of the signal transmitted by the USB interface on the Wi-Fi signal.
  • the method further includes:
  • the USB standard with the highest transmission speed supported by the terminal is determined as the USB standard.
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the determining, according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, the USB standard including:
  • the terminal determines, according to the working frequency band supported by the Wi-Fi module, that the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy is determined as The USB standard.
  • the terminal supports at least USB 3.1 GEN 1;
  • Determining the USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy including:
  • the USB 2.0 FS is determined as the USB standard
  • the USB 3.1 GEN 1 is determined as the USB standard.
  • it also includes:
  • the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz frequency band
  • the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band
  • the second preset configuration policy is:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • USB module of the terminal The USB standard used in the process is either USB 3.1 GEN 1 or USB standard of USB 3.1 GEN 1 or lower.
  • the determining, according to the current working frequency band of the Wi-Fi module and the second preset configuration policy, the USB standard including:
  • the terminal determines, according to the working frequency band supported by the Wi-Fi module, that the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the second preset configuration policy is determined as The USB standard.
  • the terminal supports at least USB 3.1 GEN 1;
  • Determining the USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy including:
  • the USB 2.0 FS is determined to be the USB standard
  • the USB 3.1 GEN 1 is determined as the USB standard.
  • the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  • An embodiment of the present application provides a USB connection establishment method, where the method includes:
  • the terminal determines that the Wi-Fi module of the terminal is in an active state, when the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined to be a USB standard; or, in the Wi- When the working frequency band supported by the Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined to be the USB standard;
  • the terminal establishes a USB connection according to the USB standard.
  • An embodiment of the present application provides a USB connection establishment method, where the method includes:
  • the terminal determines that the Wi-Fi module of the terminal is in an active state, when the current working frequency band of the Wi-Fi module is a 2.4 GHz band, the USB 2.0 FS is determined to be a USB standard; or, in the Wi-Fi module When the current working frequency band is 5 GHz, USB 3.1 GEN 1 is determined as the USB standard;
  • the terminal establishes a USB connection according to the USB standard.
  • An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
  • a determining unit configured to determine a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration policy, or according to a current working of the Wi-Fi module, when determining that the Wi-Fi module is in an active state
  • the frequency band and the second preset configuration policy determine the USB standard
  • a processing unit for establishing a USB connection according to the USB standard.
  • the determining unit is further configured to:
  • the USB standard with the highest transmission speed supported by the device is determined as the USB standard.
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the determining unit is specifically configured to:
  • the device supports at least USB 3.1 GEN 1;
  • the determining unit is specifically configured to:
  • the USB 2.0 FS is determined as the USB standard
  • the USB 3.1 GEN 1 is determined as the USB standard.
  • processing unit is specifically configured to:
  • the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a USB connection according to the USB 3.1 GEN 1, and the Wi-Fi The operating frequency band of the module is adjusted to the 5 GHz band.
  • the second preset configuration policy is:
  • the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used for the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the determining unit is specifically configured to:
  • the device supports at least USB 3.1 GEN 1;
  • the determining unit is specifically configured to:
  • the USB 2.0 FS is determined as the USB standard
  • the USB 3.1 GEN 1 is determined as the USB standard.
  • the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  • An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
  • a determining unit configured to determine the USB 2.0 FS as a USB standard when the working frequency band supported by the Wi-Fi module is 2.4 GHz when determining that the Wi-Fi module is in an active state; or, in the Wi- When the working frequency band supported by the Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined to be the USB standard;
  • a processing unit for establishing a USB connection according to the USB standard.
  • An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
  • a determining unit configured to determine a USB 2.0 FS as a USB standard when the current working frequency band of the Wi-Fi module is a 2.4 GHz band when determining that the Wi-Fi module is in an active state; or, in the Wi-Fi When the current working frequency band of the module is 5 GHz, USB 3.1 GEN 1 is determined as the USB standard;
  • a processing unit for establishing a USB connection according to the USB standard.
  • An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
  • the memory is for storing a computer program
  • the processor running the computer program, performs the following process:
  • the Wi-Fi module When it is determined that the Wi-Fi module is in an active state, determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration policy, or according to a current working frequency band of the Wi-Fi module and a second pre- Set the configuration strategy to determine the USB standard;
  • the processor is further configured to:
  • the USB standard with the highest transmission speed supported by the terminal is determined as the USB standard.
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the processor is specifically configured to:
  • the first preset configuration policy is The USB standard with the highest transmission speed in the USB standard used when the USB module of the terminal operates is determined as the USB standard.
  • the terminal supports at least USB 3.1 GEN 1;
  • the processor is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • the processor is specifically configured to:
  • the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a USB connection according to the USB 3.1 GEN 1, and the Wi-Fi The operating frequency band of the module is adjusted to the 5 GHz band.
  • the second preset configuration policy is:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the processor is specifically configured to:
  • the terminal supports at least USB 3.1 GEN 1;
  • the processor is specifically configured to:
  • the USB 2.0 FS is determined as the USB standard
  • the USB 3.1 GEN 1 is determined as the USB standard.
  • the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  • An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
  • the memory is for storing a computer program
  • the processor running the computer program, performs the following process:
  • the USB 2.0 FS is determined to be a USB standard when the working frequency band supported by the Wi-Fi module is 2.4 GHz; or, in the Wi-Fi When the working frequency band supported by the module includes at least the 5 GHz band, USB 3.1 GEN 1 is determined as the USB standard;
  • An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
  • the memory is for storing a computer program
  • the processor running the computer program, performs the following process:
  • the USB 2.0 FS is determined to be a USB standard when the current working frequency band of the Wi-Fi module is a 2.4 GHz band; or, in the Wi-Fi module When the current working frequency band is 5 GHz, USB 3.1 GEN 1 is determined as the USB standard;
  • FIG. 1 is a schematic diagram of a system of a typical WLAN deployment scenario
  • FIG. 2 is a schematic diagram of another typical WLAN deployment scenario
  • FIG. 3 is a schematic flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application;
  • FIG. 5 is a flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application
  • FIG. 6 is a schematic flowchart of a method for establishing a USB connection according to Embodiment 2 of the present application.
  • FIG. 7 is a schematic flowchart of a method for establishing a USB connection according to Embodiment 3 of the present application.
  • FIG. 8 is a schematic flowchart of a method for establishing a USB connection according to Embodiment 4 of the present application.
  • FIG. 9 is a schematic structural diagram of a device for establishing a USB connection according to Embodiment 5 of the present application.
  • FIG. 10 is a schematic structural diagram of a device for establishing a USB connection according to Embodiment 6 of the present application.
  • FIG. 11 is a schematic structural diagram of a USB connection establishing apparatus according to Embodiment 7 of the present application.
  • FIG. 12 is a schematic structural diagram of a terminal according to Embodiment 8 of the present application.
  • FIG. 13 is a schematic structural diagram of a terminal according to Embodiment 9 of the present application.
  • FIG. 14 is a schematic structural diagram of a terminal according to Embodiment 10 of the present application.
  • FIG. 15 is a schematic structural diagram of a terminal according to Embodiment 11 of the present application.
  • the embodiment of the present application can be applied to a wireless local area network.
  • the WLAN may include one or more Basic Service Sets (BSSs), and the network nodes in the basic service set include APs and STAs.
  • BSSs Basic Service Sets
  • Each basic service set may contain one AP and multiple STAs associated with the AP.
  • APs also known as access points or hotspots.
  • the AP is an access point for mobile users to enter the wired network. It is mainly deployed in the home, inside the building, and inside the campus. The typical coverage radius is tens of meters to hundreds of meters. Of course, it can also be deployed outdoors.
  • An AP is equivalent to a bridge connecting a wired network and a wireless network. Its main function is to connect the wireless network clients together and then connect the wireless network to the Ethernet.
  • the STA may be a wireless communication chip, a wireless sensor, or a wireless communication terminal.
  • a wireless communication terminal For example: mobile phones that support WiFi communication, tablets that support WiFi communication, set-top boxes that support WiFi communication, smart TVs that support WiFi communication, and smart phones that support WiFi communication.
  • Wear devices in-vehicle communication devices that support WiFi communication, and computers that support WiFi communication.
  • Figure 1 is a schematic diagram of a typical WLAN deployment scenario.
  • Figure 1 includes an AP and three STAs.
  • the AP communicates with STA1, STA2, and STA3 to form a BSS.
  • FIG. 2 it is a system diagram of another typical WLAN deployment scenario.
  • AP1, STA1, and STA5 are in the same BSS
  • AP2, STA2, STA3, and STA4 are in the same BSS.
  • the terminal may be a wireless terminal or a wired terminal, and may be, for example, a mobile phone, a computer, a tablet computer, a personal digital assistant (abbreviation: PDA), or a mobile internet device (English: mobile Internet device, abbreviation: MID), wearable device and e-book reader (English: e-book reader).
  • PDA personal digital assistant
  • MID mobile internet device
  • MID wearable device
  • e-book reader English: e-book reader
  • FIG. 3 a schematic flowchart of a USB connection establishment method according to Embodiment 1 of the present application is shown.
  • the method specifically includes the following steps:
  • Step 301 After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in a working state Determining a second USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, or determining the second USB according to the current working frequency band of the Wi-Fi module and the second preset configuration policy. standard;
  • Step 302 When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
  • the first USB standard may be a USB standard preset by the terminal, that is, a USB standard preferentially selected each time the terminal establishes a USB connection.
  • the first USB standard may be any one of the USB standards supported by the terminal, for example, USB 2.0 FS or the like.
  • the highest USB standard supported by the terminal is at least USB 3.1 GEN 1.
  • the terminal may also support a USB standard such as USB 3.1 GEN 2.
  • the terminal supporting USB 3.1 GEN 1 can also support USB standards of USB 3.1 GEN 1 or lower, such as USB2.0 FS, USB 1.0;
  • the terminal supporting USB 3.1 GEN 2 can also support the USB standard of USB 3.1 GEN 2 or lower.
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal supports USB 3.1 GEN 2
  • the terminal also supports the USB standard: USB
  • the terminal may determine whether the Wi-Fi module is in a working state when the first USB connection is initiated according to the first USB standard, and may determine the Wi after establishing the first USB connection according to the first USB standard.
  • the Fi module is working. It can be judged whether the Wi-Fi module is in the working state by judging whether the switch of the Wi-Fi function is turned on, or whether the Wi-Fi module is in the working state by judging whether or not data is transmitted through the Wi-Fi mode.
  • the USB standard can be randomly selected from the USB standard supported by the terminal as the second USB standard; and the first USB standard can be used as the second USB standard. , that is, the USB standard is no longer re-determined.
  • the terminal can determine the USB standard with the highest transmission speed supported by the terminal as the second USB standard.
  • the second USB standard may be determined in other ways, and details are not described herein again.
  • the USB standard supported by the terminal may be determined as the second USB standard that does not conflict with the working frequency band when the current Wi-Fi module operates and has the highest transmission rate.
  • USB standard may be determined by using other methods.
  • the second working area and the first preset configuration policy supported by the Wi-Fi module may be used to determine the second
  • the second USB standard may be determined according to the current working frequency band of the Wi-Fi module and the second preset configuration policy.
  • the first preset configuration policy or the second preset configuration policy may be saved in a configuration file.
  • the terminal may read the first preset configuration policy through the configuration file.
  • the second preset configuration policy so as to quickly determine the first preset configuration policy or the second preset configuration policy.
  • the terminal supports at least the USB 3.1 GEN 1 scenario
  • the terminal supports at least USB 3.1 GEN 2 as an example
  • the terminal supports at least USB 3.1 GEN 2
  • the terminal supports at least USB 3.1 GEN 2
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or, Wi
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the working frequency band supported by the Wi-Fi module includes at least the 5 GHz frequency band, which means that the working frequency band supported by the Wi-Fi module is the 5 GHz frequency band, or the working frequency band supported by the Wi-Fi module is 2.4 GHz and 5GHz band.
  • the terminal may select a USB standard as the second USB standard according to the working frequency band supported by the Wi-Fi module. Specifically, when determining that the working frequency band supported by the Wi-Fi module is 2.4 GHz, the terminal can determine any one of the USB standards of the USB 2.0 F and the USB 2.0 FS or lower USB standard as the second USB standard. The terminal may determine any one of the USB standards of the USB 3.1 GEN 1 and the USB 3.1 GEN 1 or lower USB standard as the second when determining that the working frequency band supported by the Wi-Fi module includes at least the 5 GHz frequency band. USB standard.
  • the terminal when the terminal determines the second USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, the terminal may be based on the working frequency band supported by the Wi-Fi module.
  • the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy is determined as the second USB standard.
  • the terminal determines the USB 2.0 FS as the second USB standard when determining that the working frequency band supported by the Wi-Fi module is the 2.4 GHz band.
  • the terminal determines the USB 3.1 GEN 1 as the second USB when determining that the working frequency band supported by the Wi-Fi module includes at least the 5 GHz frequency band. standard.
  • the terminal is When the second USB connection is established according to the USB 3.1 GEN 1, the working frequency band of the Wi-Fi module of the terminal needs to be adjusted to the 5 GHz band.
  • the terminal determines whether the current working frequency band of the Wi-Fi module is a 2.4 GHz frequency band, if the current working frequency band of the Wi-Fi module In the 2.4 GHz band, the terminal turns off the Wi-Fi connection of the current 2.4 GHz band and initiates the establishment of a Wi-Fi connection in the 5 GHz band.
  • the wireless local area network standard used by the terminal to establish a Wi-Fi connection in the 5 GHz band may be determined according to actual conditions, and details are not described herein again.
  • the terminal determines the second USB standard, regardless of whether the working frequency band of the current Wi-Fi module is 2.4 GHz or 5 GHz, after determining the second USB standard, the current working frequency band of the Wi-Fi module may also be required. The adjustment is made to avoid the interference of the selected second USB standard pair with the current working frequency band of the Wi-Fi module.
  • the second USB standard can be determined according to the current working frequency band of the Wi-Fi module.
  • the second preset configuration policy may be:
  • the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or Wi-
  • the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the terminal may select a USB standard as the second USB standard according to the working frequency band in which the Wi-Fi module works. Specifically, when determining that the working frequency band in which the Wi-Fi module works is 2.4 GHz, the terminal can determine any USB standard of USB 2.0 F and USB standards of the following versions of USB 2.0 FS as the second USB standard. The terminal can determine USB 3.1 when the working frequency band in which the Wi-Fi module operates is 5 GHz. The USB standard of any of the GEN 1 and USB 3.1 GEN 1 and below USB standards is determined as the second USB standard.
  • the terminal may use the USB standard used by the USB module of the terminal in the second preset configuration policy according to the working frequency band supported by the Wi-Fi module.
  • the USB standard with the highest transfer speed is determined as the second USB standard.
  • the USB 2.0 FS is determined as the second USB standard; if the current working frequency band of the Wi-Fi module of the terminal is 5 GHz In the frequency band, USB 3.1 GEN 1 is determined as the second USB standard.
  • step 302 after determining that the first USB standard is different from the second USB standard, the terminal re-establishes the second USB connection according to the second USB standard. Specifically, when the terminal is starting to establish a first USB connection, the terminal terminates establishment of the first USB connection, and establishes a second USB connection according to the second USB standard; when the terminal has established the first When the USB is connected, the terminal disconnects the first USB connection and re-establishes the second USB connection according to the second USB standard.
  • the terminal determines that the first USB standard is the same as the second USB standard, the terminal continues to work according to the first USB connection.
  • FIG. 4 is a flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application.
  • Step 401 After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or the terminal establishes the first USB connection according to the first USB standard, it is determined whether the Wi-Fi module of the terminal is working. If no, that is, the Wi-Fi module of the terminal is not in the working state, go to step 402; if yes, the Wi-Fi module of the terminal is in the working state, and go to step 403.
  • Step 402 Determine the USB standard with the highest transmission speed supported by the terminal as the second USB standard.
  • Step 403 Determine whether the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band, and if yes, go to step 404; otherwise, go to step 405.
  • Step 404 Determine USB 3.1 GEN 1 as the second USB standard.
  • the terminal determines whether the Wi-Fi module of the terminal works at 2.4 Ghz, and if so, further adjusts the current working frequency band of the Wi-Fi module to The 5GHz band, otherwise, the Wi-Fi module continues to operate in the 5GHz band.
  • Step 405 Determine the USB 2.0 FS as the second USB standard.
  • the USB 2.0 FS is determined as the second USB standard.
  • Step 406 Determine whether the first USB standard is the same as the second USB standard. If not, that is, the first USB standard is different from the second USB standard, then go to step 407; otherwise, the The first USB standard is the same as the second USB standard, and the entire process is ended.
  • Step 407 Establish a second USB connection according to the second USB standard.
  • FIG. 5 is a flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application.
  • Step 501 After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or the terminal establishes the first USB connection according to the first USB standard, it is determined whether the Wi-Fi module of the terminal is working. If no, that is, the Wi-Fi module of the terminal is not in the working state, go to step 502; otherwise, the Wi-Fi module of the terminal is in the working state, and go to step 503.
  • Step 502 Determine the USB standard with the highest transmission speed supported by the terminal as the second USB standard.
  • Step 503 Determine whether the current working frequency band of the terminal is a 5 GHz frequency band, and if yes, go to step 504; otherwise, go to step 505.
  • Step 504 Determine USB 3.1 GEN 1 as the second USB standard.
  • Step 505 Determine the USB 2.0 FS as the second USB standard.
  • Step 506 Determine whether the first USB standard is the same as the second USB standard. If no, go to step 507, otherwise end the entire process.
  • Step 507 Establish a second USB connection according to the second USB standard.
  • the method specifically includes the following steps:
  • Step 601 After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in a working state When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined to be the second USB standard; or when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band , determining USB 3.1 GEN 1 as the second USB standard;
  • Step 602 When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
  • step 601 when the terminal determines that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
  • the terminal is When the second USB connection is established according to the USB 3.1 GEN 1, the working frequency band of the Wi-Fi module of the terminal needs to be adjusted to the 5 GHz band.
  • step 601 For the other content in step 601, reference may be made to the description in step 301, and details are not described herein again.
  • step 602 after determining that the first USB standard is different from the second USB standard, the terminal re-establishes the second USB connection according to the second USB standard.
  • the terminal determines that the first USB standard is the same as the second USB standard, the operation continues on the first USB connection.
  • FIG. 7 a schematic flowchart of a method for establishing a USB connection according to Embodiment 3 of the present application is shown.
  • the method specifically includes the following steps:
  • Step 701 After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the terminal is When the Wi-Fi module is in working state, the USB 2.0 FS is determined to be the second USB standard when the current working frequency band of the Wi-Fi module is 2.4 GHz; or, in the current working frequency band of the Wi-Fi module When the 5 GHz band is used, the USB 3.1 GEN 1 is determined as the second USB standard;
  • Step 702 When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
  • step 701 when the terminal determines that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
  • step 701 For the other content in step 701, reference may be made to the description in step 301, and details are not described herein again.
  • step 702 after determining that the first USB standard is different from the second USB standard, the terminal re-establishes the second USB connection according to the second USB standard.
  • the terminal determines that the first USB standard is the same as the second USB standard, the terminal continues to work according to the first USB connection.
  • the terminal may also determine the working state of the Wi-Fi module before establishing the USB.
  • the terminal can directly determine the USB standard used in the final work, thereby avoiding switching of the USB connection and improving efficiency. The details are described below.
  • FIG. 8 a schematic flowchart of a method for establishing a USB connection provided in Embodiment 4 of the present application.
  • the method specifically includes the following steps:
  • Step 801 When the terminal determines that the Wi-Fi module of the terminal is in an active state, determine a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration policy, or according to the Wi-Fi module.
  • the current working frequency band and the second preset configuration policy determine the USB standard;
  • Step 802 The terminal establishes a USB connection according to the USB standard.
  • step 801 and step 802 reference may be made to the foregoing description, and details are not described herein again.
  • the terminal determines the When the Wi-Fi module of the terminal is in the working state, the USB standard may be determined according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, or according to the current working frequency band of the Wi-Fi module and the second
  • the default configuration strategy determines the USB standard so that the required USB standard can be quickly determined to establish a USB connection based on the determined USB standard.
  • the USB standard determined according to the first preset configuration policy and the second preset configuration policy is a USB standard that does not conflict with the working frequency band in which the Wi-Fi module works, thereby reducing the signal transmitted by the USB interface to Wi-Fi.
  • the interference generated by the module's Wi-Fi signal is generated by the module's Wi-Fi signal.
  • the method in Embodiment 4 may be performed when the terminal detects that the USB cable is inserted into the USB port, or further, when determining that the USB cable connected to the peer device is inserted into the USB port of the terminal.
  • the USB connection is suspended, and after the USB standard is determined, a USB connection is established in accordance with the determined USB standard.
  • the fifth embodiment of the present application further provides a USB connection establishing apparatus 900.
  • the specific content of the apparatus may be implemented by referring to the foregoing method, and details are not described herein again.
  • the fifth embodiment of the present application provides a schematic structural diagram of a USB connection establishing apparatus.
  • the device can be used to execute the method flow of the first embodiment.
  • the USB connection establishing apparatus 900 may be a mobile phone, a computer, a tablet computer, a personal digital assistant, or the like.
  • the apparatus 900 includes:
  • a determining unit 901 configured to start after establishing a first USB connection according to the first universal serial bus USB standard, or after establishing a first USB connection according to the first USB standard, and when determining that the Wi-Fi module is in a working state, according to the Determining a second USB standard by using a working frequency band supported by the Wi-Fi module and the first preset configuration policy, or determining a second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
  • the processing unit 902 is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  • the determining unit 901 is further configured to:
  • the USB standard with the highest transmission speed supported by the device 900 is determined as the second USB standard.
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the device 900 is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the device 900 is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the determining unit 901 is specifically configured to:
  • the device 900 supports at least USB 3.1 GEN 1;
  • the determining unit 901 is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • processing unit 902 is specifically configured to:
  • the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
  • the second preset configuration policy is:
  • the USB standard used in the USB module of the device 900 is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the device 900 is USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower. Any of the USB standards.
  • the determining unit 901 is specifically configured to:
  • the device 900 supports at least USB 3.1 GEN 1;
  • the determining unit 901 is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  • the sixth embodiment of the present application provides a schematic structural diagram of a USB connection establishing apparatus.
  • the device can be used to execute the method flow of the foregoing embodiment 2.
  • the USB connection establishing apparatus 1000 may be a mobile phone, a computer, a tablet computer, a personal digital assistant, or the like.
  • the apparatus 1000 includes:
  • the determining unit 1001 is configured to: after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device 1000 is working In the state, when the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or, the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band.
  • the USB 3.1 GEN 1 is determined as the second USB standard;
  • the processing unit 1002 is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  • the seventh embodiment of the present application provides a schematic structural diagram of a USB connection establishing apparatus.
  • the apparatus can be used to perform the method flow of the foregoing third embodiment.
  • the USB connection establishing apparatus 1100 may be a mobile phone, a computer, a tablet computer, a personal digital assistant, or the like.
  • the apparatus 1100 includes:
  • the determining unit 1101 is configured to start after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device 1100 is working In the state, when the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or, when the current working frequency band of the Wi-Fi module is the 5 GHz band, USB 3.1 GEN 1 is determined to be the second USB standard;
  • the processing unit 1102 is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  • a terminal 1200 is provided in Embodiment 8 of the present application for performing the method flow of the foregoing Embodiment 1.
  • the terminal includes: a processor 1201, a memory 1202, a Wi-Fi module 1203, and a USB module 1204.
  • the Wi-Fi module 1203 is configured to establish a Wi-Fi connection;
  • the USB module 1204 is configured to establish a USB connection;
  • the memory 1202 is configured to store a computer program
  • the processor 1201 runs the computer program and performs the following process:
  • the USB module 1204 is instructed to establish a second USB connection according to the second USB standard.
  • the processor 1201 is further configured to:
  • the USB standard with the highest transmission speed supported by the terminal 1200 is determined as the second USB standard.
  • the first preset configuration policy is:
  • the USB standard used by the USB module of the terminal 1200 is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal 1200 is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the processor 1201 is specifically configured to:
  • the terminal 1200 supports at least USB 3.1 GEN 1;
  • the processor 1201 is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • the processor 1201 is specifically configured to:
  • the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
  • the second preset configuration policy is:
  • the USB standard used by the USB module of the terminal 1200 is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
  • the USB standard used by the USB module of the terminal 1200 is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  • the processor 1201 is specifically configured to:
  • the terminal supports at least USB 3.1 GEN 1;
  • the processor 1201 is specifically configured to:
  • the USB 2.0 FS is determined to be the second USB standard
  • the USB 3.1 GEN 1 is determined as the second USB standard.
  • the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  • bus interface may also be included in FIG. 12, and the bus interface may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by the processor and various circuits of the memory represented by the memory.
  • the bus interface can also link various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
  • a terminal 1300 is provided in Embodiment 9 of the present application for performing the method flow of the foregoing Embodiment 2.
  • the terminal includes: a processor 1301, a memory 1302, a Wi-Fi module 1303, and a USB module 1304.
  • the Wi-Fi module 1303 is configured to establish a Wi-Fi connection
  • the USB module 1304 is configured to establish a USB connection
  • the memory 1302 is configured to store a computer program
  • the processor 1301 runs the computer program and performs the following process:
  • the USB 2.0 FS is determined as the second USB standard; or when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined.
  • the USB 2.0 FS is determined as the second USB standard; or when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined.
  • bus interface may also be included in FIG. 13, and the bus interface may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by the processor and various circuits of the memory represented by the memory.
  • the bus interface can also link various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
  • a terminal 1400 is provided in Embodiment 10 of the present application for performing the method flow of the foregoing Embodiment 3.
  • the terminal includes: a processor 1401, a memory 1402, a Wi-Fi module 1403, and a USB module 1404.
  • the Wi-Fi module 1403 is configured to establish a Wi-Fi connection
  • the USB module 1404 is configured to establish a USB connection
  • the memory 1402 is configured to store a computer program
  • the processor 1401 runs the computer program and performs the following process:
  • the USB 2.0 FS is determined to be the second USB standard; or, when the current working band of the Wi-Fi module is in the 5 GHz band, the USB 3.1 GEN 1 is determined to be the second. USB standard;
  • bus interface may also be included in FIG. 14, and the bus interface may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by the processor and various circuits of the memory represented by the memory.
  • the bus interface can also link various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
  • a terminal 1500 is provided in Embodiment 11 of the present application for performing the method flow of the foregoing Embodiment 4.
  • the terminal includes: a processor 1501, a memory 1502, a Wi-Fi module 1503, and a USB module 1504.
  • the Wi-Fi module 1503 is configured to establish a Wi-Fi connection
  • the USB module 1504 is configured to establish a USB connection
  • the memory 1502 is configured to store a computer program
  • the processor 1501 runs the computer program and performs the following process:
  • the Wi-Fi module When it is determined that the Wi-Fi module is in an active state, determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration policy, or according to a current working frequency band of the Wi-Fi module and a second pre- Set the configuration strategy to determine the USB standard;
  • the USB module 1504 is instructed to establish a USB connection in accordance with the USB standard.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer usable memory channels (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • the present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It should be understood that the flow chart can be implemented by computer program instructions And/or a combination of the processes and/or blocks in the block diagrams, and the flowcharts and/or blocks in the flowcharts.
  • the computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine instruction for generating instructions executed by a processor of a computer or other programmable data processing device Means for implementing the functions specified in one or more flows of the flowchart or in a block or blocks of the flowchart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Systems (AREA)

Abstract

A method and device for establishing a USB connection. The method comprises: after a terminal initiates, according to a first universal serial bus (USB) specification, establishment of a first USB connection, or after the terminal establishes, according to the first USB specification, the first USB connection, if a Wi-Fi module of the terminal is in an operating state, then determining, according to an operating frequency band supported by the Wi-Fi module and a first predetermined configuration policy, a second USB specification, or determining, according to a current operating frequency band of the Wi-Fi module and a second predetermined configuration policy, a second USB specification; and if the terminal determines that the first USB specification and the second USB specification are different, then establishing, according to the second USB specification, a second USB connection.

Description

一种USB连接建立方法及装置USB connection establishing method and device 技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种USB(Universal Serial Bus,通用串行总线)连接建立方法及装置。The present application relates to the field of computer technologies, and in particular, to a USB (Universal Serial Bus) connection establishing method and apparatus.
背景技术Background technique
目前采用Wi-Fi(WirelessFidelity,无线保真)技术的无线设备,有两种工作模式:单频和双频。单频Wi-Fi工作在2.4GHz频段;双频Wi-Fi可以工作在2.4GHz和5GHz两个频段,具体可以根据实际情况灵活选择。Wireless devices that currently use Wi-Fi (Wireless Fidelity) technology have two modes of operation: single-frequency and dual-frequency. Single-frequency Wi-Fi works in the 2.4GHz band; dual-band Wi-Fi can work in both 2.4GHz and 5GHz bands, which can be flexibly selected according to actual conditions.
无线设备在使用Wi-Fi的同时,还可能会使用USB接口。USB是支持USB的设备与外部设备连接的一种串口总线标准,也是一种输入输出接口的技术规范,被广泛地应用于个人电脑和移动设备等信息通讯产品。与USB相关的标准主要有USB 1.0、USB 2.0 FS(full speed)、USB 3.0、USB 3.1 generation(GEN)1以及USB 3.1 GEN2等标准。每一种标准所规定的数据传输速度是不同的。例如,USB 1.0最大数据传输速度只有1.5Mbps;USB 2.0 FS最大数据传输速度为12Mbps。Wireless devices may also use the USB interface while using Wi-Fi. USB is a serial bus standard that supports USB devices and external devices. It is also a technical specification for input and output interfaces, and is widely used in information communication products such as personal computers and mobile devices. USB-related standards include USB 1.0, USB 2.0 FS (full speed), USB 3.0, USB 3.1 generation (GEN) 1 and USB 3.1 GEN2. The data transfer speeds specified by each standard are different. For example, USB 1.0 has a maximum data transfer speed of only 1.5 Mbps; USB 2.0 FS has a maximum data transfer speed of 12 Mbps.
随着对传输速度要求的提高,目前,USB 3.1 GEN1最大数据传输速度可达5Gbps,USB3.1 GEN2最大数据传输速度可达10Gbps。然而,通过USB 3.1 GEN1标准进行数据传输时,每条数据线的基准频率是2.5GHz,这个频率会对Wi-Fi的2.4GHz频段的信号产生干扰。相应的,通过USB 3.1 GEN2标准进行数据传输时,每条数据线的基准频率是5GHz,这个频率会对Wi-Fi的5GHz频段的信号产生干扰,同时由于该基准频率的带宽较宽,会覆盖到Wi-Fi的2.4GHz频段的信号,因此该基准频率还会对Wi-Fi的2.4GHz频段的信号产生干扰。With the increase in transmission speed requirements, the current maximum data transfer speed of USB 3.1 GEN1 can reach 5Gbps, and the maximum data transfer speed of USB3.1 GEN2 can reach 10Gbps. However, when data is transmitted via the USB 3.1 GEN1 standard, the reference frequency of each data line is 2.5 GHz, which interferes with the Wi-Fi 2.4 GHz band signal. Correspondingly, when the data is transmitted through the USB 3.1 GEN2 standard, the reference frequency of each data line is 5 GHz, which will interfere with the signal of the 5 GHz band of Wi-Fi, and will cover due to the wide bandwidth of the reference frequency. The signal to the Wi-Fi 2.4GHz band, so the reference frequency will also interfere with the Wi-Fi 2.4GHz band signal.
由前面的描述可知,无线设备在使用Wi-Fi时,如果同时使用USB 3.1 GEN1或USB3.1 GEN2传输数据,USB 3.1 GEN1或USB3.1 GEN2可能会对 Wi-Fi信号产生干扰,从而影响用户体验。As can be seen from the foregoing description, if the wireless device uses Wi-Fi to transmit data using USB 3.1 GEN1 or USB3.1 GEN2, USB 3.1 GEN1 or USB3.1 GEN2 may Wi-Fi signals cause interference, which affects the user experience.
目前对于如何减少USB接口传输的信号对Wi-Fi信号的干扰,还没有一种很好的解决方法。At present, there is no good solution to how to reduce the interference of signals transmitted by the USB interface to Wi-Fi signals.
发明内容Summary of the invention
本申请实施例提供一种USB连接建立方法及装置,用以减少USB接口传输的信号对Wi-Fi信号产生的干扰。The embodiment of the present application provides a method and a device for establishing a USB connection, which are used to reduce interference of a signal transmitted by a USB interface to a Wi-Fi signal.
本申请实施例提供一种USB连接建立方法,包括:The embodiment of the present application provides a USB connection establishment method, including:
终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;After the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, according to The working frequency band supported by the Wi-Fi module and the first preset configuration policy determine the second USB standard, or determine the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
根据本申请实施例提供的方法,终端在根据第一通用串行总线USB标准启动建立第一USB连接后,或者终端根据第一USB标准建立了第一USB连接后,在确定所述终端的Wi-Fi模块处于工作状态时,根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准,从而根据第二USB标准建立第二USB连接,从而减少USB接口传输的信号对Wi-Fi信号产生的干扰。According to the method provided by the embodiment of the present application, after the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, the terminal determines the Wi of the terminal. When the Fi module is in the working state, the second USB standard is determined according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, or according to the current working frequency band and the second preset of the Wi-Fi module. The configuration policy determines the second USB standard to establish a second USB connection according to the second USB standard, thereby reducing interference of the signal transmitted by the USB interface to the Wi-Fi signal.
可选的,所述方法还包括:Optionally, the method further includes:
当确定所述终端的Wi-Fi模块处于关闭状态,则将所述终端所支持的传输速度最高的USB标准确定为第二USB标准。When it is determined that the Wi-Fi module of the terminal is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
根据上述方法,所述终端确定Wi-Fi模块处于关闭状态时,通过将所述终端所支持的传输速度最高的USB标准确定为第二USB标准,从而使得终端的 USB模块工作在最优状态,提高了资源利用率。According to the above method, when the terminal determines that the Wi-Fi module is in the off state, the terminal determines the USB standard that has the highest transmission speed supported by the terminal as the second USB standard, thereby making the terminal The USB module works in an optimal state, improving resource utilization.
可选的,所述第一预设配置策略为:Optionally, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
上述方法中,通过将Wi-Fi模块所支持的工作频段与终端的USB模块工作时所采用的USB标准进行匹配,可以使得终端能够快速的确定出不会对Wi-Fi模块的Wi-Fi信号产生干扰的USB标准,从而避免了终端的USB接口传输的信号对Wi-Fi信号产生的干扰。In the above method, by matching the working frequency band supported by the Wi-Fi module with the USB standard used when the USB module of the terminal works, the terminal can quickly determine that the Wi-Fi signal is not applied to the Wi-Fi module. The USB standard that generates interference, thereby avoiding interference of the signal transmitted by the terminal's USB interface to the Wi-Fi signal.
可选的,所述根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,包括:Optionally, the determining, according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, the second USB standard, including:
所述终端根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。The terminal determines, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy. Two USB standards.
上述方法中,终端根据Wi-Fi模块所支持的工作频段,从第一预设配置策略中将传输速度最高的USB标准确定为第二USB标准,从而可以避免终端的USB接口传输的信号对Wi-Fi信号产生的干扰的同时,使得终端的USB模块工作在最优状态。In the above method, the terminal determines, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed from the first preset configuration policy as the second USB standard, thereby avoiding the signal transmitted by the USB interface of the terminal to the Wi. The interference generated by the -Fi signal causes the USB module of the terminal to operate in an optimal state.
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,包括:Determining the second USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, including:
若所述终端的Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module of the terminal is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or
若所述终端的Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将 USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz band, USB 3.1 GEN 1 is determined to be the second USB standard.
可选的,所述方法还包括:Optionally, the method further includes:
若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段、且所述终端的Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立第二USB连接,并将所述终端的Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz frequency band, and the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band, establish a second USB connection according to the USB 3.1 GEN 1 and The working frequency band of the Wi-Fi module of the terminal is adjusted to the 5 GHz band.
可选的,所述第二预设配置策略为:Optionally, the second preset configuration policy is:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所工作的工作频段为5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the Wi-Fi module operates in the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
上述方法中,通过将Wi-Fi模块所工作的工作频段与终端的USB模块工作时所采用的USB标准进行匹配,可以使得终端能够快速的确定出不会对正在工作的Wi-Fi模块的Wi-Fi信号产生干扰的USB标准,从而避免了终端的USB接口传输的信号对Wi-Fi信号产生的干扰。In the above method, by matching the working frequency band in which the Wi-Fi module operates with the USB standard used when the USB module of the terminal works, the terminal can quickly determine that Wi will not work on the Wi-Fi module that is working. The -Fi signal produces a disturbing USB standard, thereby avoiding interference from the signal transmitted by the terminal's USB interface to the Wi-Fi signal.
可选的,所述根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准,包括:Optionally, the determining, according to the current working frequency band of the Wi-Fi module and the second preset configuration policy, the second USB standard, including:
所述终端根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。The terminal determines, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the second preset configuration policy. Two USB standards.
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准,包括:Determining the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy, including:
若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述终端的Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1  GEN 1确定为第二USB标准。If the current working frequency band of the Wi-Fi module of the terminal is 5 GHz band, then USB 3.1 GEN 1 is determined to be the second USB standard.
可选的,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。Optionally, the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
本申请实施例提供一种USB连接建立方法,该方法包括:An embodiment of the present application provides a USB connection establishment method, where the method includes:
终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, When the Wi-Fi module supports a working frequency band of 2.4 GHz, the USB 2.0 FS is determined to be the second USB standard; or, when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB is 3.1 GEN 1 is determined to be the second USB standard;
当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
根据本申请实施例提供的方法,终端根据第一USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准,从而可以避免终端的USB接口传输的信号对Wi-Fi信号产生的干扰。According to the method provided by the embodiment of the present application, after the terminal starts to establish the first USB connection according to the first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, the terminal supports the Wi-Fi module. USB 2.0 FS is determined to be the second USB standard when the working frequency band is 2.4 GHz; or USB 3.1 GEN 1 is determined as the second USB standard when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band Therefore, the interference of the signal transmitted by the USB interface of the terminal on the Wi-Fi signal can be avoided.
本申请实施例提供一种USB连接建立方法,该方法包括:An embodiment of the present application provides a USB connection establishment method, where the method includes:
终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, When the current working frequency band of the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or when the current working frequency band of the Wi-Fi module is 5 GHz, the USB 3.1 GEN 1 Determined to be the second USB standard;
当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
根据本申请实施例提供的方法,终端根据第一USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,在 所述Wi-Fi模块所工作的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所工作的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准,从而可以避免终端的USB接口传输的信号对Wi-Fi信号产生的干扰。According to the method provided by the embodiment of the present application, after the terminal starts to establish the first USB connection according to the first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, When the Wi-Fi module operates in the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or, when the Wi-Fi module operates in the 5 GHz band, the USB 3.1 is used. GEN 1 is determined to be the second USB standard, so that interference of signals transmitted by the USB interface of the terminal to Wi-Fi signals can be avoided.
本申请实施例提供一种USB连接建立装置,该装置包括:An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
确定单元,用于根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;a determining unit, configured to start after establishing a first USB connection according to the first universal serial bus USB standard, or after establishing a first USB connection according to the first USB standard, when determining that the Wi-Fi module is in an active state, according to the The working frequency band supported by the Wi-Fi module and the first preset configuration policy determine the second USB standard, or determine the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
处理单元,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
可选的,所述确定单元还用于括:Optionally, the determining unit is further configured to:
当确定所述Wi-Fi模块处于关闭状态,则将所述装置所支持的传输速度最高的USB标准确定为第二USB标准。When it is determined that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the device is determined as the second USB standard.
可选的,所述第一预设配置策略为:Optionally, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述确定单元具体用于:Optionally, the determining unit is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述装置的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the device in the first preset configuration policy as the second USB standard .
可选的,所述装置至少支持USB 3.1 GEN 1; Optionally, the device supports at least USB 3.1 GEN 1;
所述确定单元具体用于:The determining unit is specifically configured to:
若所述Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述处理单元具体用于:Optionally, the processing unit is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段、且所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立第二USB连接,并将所述Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
可选的,所述第二预设配置策略为:Optionally, the second preset configuration policy is:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所工作的工作频段为5GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band in which the Wi-Fi module operates is the 5 GHz band, the USB standard used for the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述确定单元具体用于:Optionally, the determining unit is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述装置的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the device in the second preset configuration policy as the second USB standard .
可选的,所述装置至少支持USB 3.1 GEN 1;Optionally, the device supports at least USB 3.1 GEN 1;
所述确定单元具体用于:The determining unit is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述第一预设配置策略或者所述第二预设配置策略保存在配置 文件中。Optionally, the first preset configuration policy or the second preset configuration policy is saved in the configuration. In the file.
本申请实施例提供一种USB连接建立装置,该装置包括:An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
确定单元,用于根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定所述装置的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;a determining unit, configured to start after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device is in a working state When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined to be the second USB standard; or, when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, Determine USB 3.1 GEN 1 as the second USB standard;
处理单元,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
本申请实施例提供一种USB连接建立装置,该装置包括:An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
确定单元,用于根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定所述装置的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;a determining unit, configured to start after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device is in a working state USB 2.0 FS is determined to be the second USB standard when the current working frequency band of the Wi-Fi module is 2.4 GHz band; or USB 3.1 when the current working frequency band of the Wi-Fi module is 5 GHz band GEN 1 is determined to be the second USB standard;
处理单元,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
本申请实施例提供一种终端,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
所述存储器用于存储计算机程序;The memory is for storing a computer program;
所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when it is determined that the Wi-Fi module is in the working state, according to the Wi-Fi module Supporting the working frequency band and the first preset configuration policy to determine the second USB standard, or determining the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
当确定所述第一USB标准与所述第二USB标准不同,则指示所述USB 模块根据所述第二USB标准建立第二USB连接。Determining the USB when it is determined that the first USB standard is different from the second USB standard The module establishes a second USB connection in accordance with the second USB standard.
可选的,所述处理器还用于:Optionally, the processor is further configured to:
当确定所述Wi-Fi模块处于关闭状态,则将所述终端所支持的传输速度最高的USB标准确定为第二USB标准。When it is determined that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
可选的,所述第一预设配置策略为:Optionally, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述处理器具体用于:Optionally, the processor is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy as the second USB standard .
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述处理器具体用于:The processor is specifically configured to:
若所述Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述处理器具体用于:Optionally, the processor is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段、且所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立第二USB连接,并将所述Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
可选的,所述第二预设配置策略为:Optionally, the second preset configuration policy is:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述终端的USB模块工 作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the Wi-Fi module works in the 2.4 GHz band, the USB module of the terminal The USB standard used in the process is either USB 2.0 FS or USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所工作的工作频段为5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the Wi-Fi module operates in the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述处理器具体用于:Optionally, the processor is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the second preset configuration policy as the second USB standard .
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述处理器具体用于:The processor is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。Optionally, the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
本申请实施例提供一种终端,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
所述存储器用于存储计算机程序;The memory is for storing a computer program;
所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, in the Wi- When the working frequency band supported by the Fi module is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined. For the second USB standard;
当确定所述第一USB标准与所述第二USB标准不同,则指示所述USB 模块根据所述第二USB标准建立第二USB连接。Determining the USB when it is determined that the first USB standard is different from the second USB standard The module establishes a second USB connection in accordance with the second USB standard.
本申请实施例提供一种终端,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
所述存储器用于存储计算机程序;The memory is for storing a computer program;
所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, in the Wi- When the Fi-module currently operates in the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or, when the current working band of the Wi-Fi module is in the 5 GHz band, the USB 3.1 GEN 1 is determined to be the second. USB standard;
当确定所述第一USB标准与所述第二USB标准不同,则指示所述USB模块根据所述第二USB标准建立第二USB连接。When it is determined that the first USB standard is different from the second USB standard, instructing the USB module to establish a second USB connection according to the second USB standard.
本申请实施例提供一种USB连接建立方法,包括:The embodiment of the present application provides a USB connection establishment method, including:
当终端确定所述终端的Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准;When the terminal determines that the Wi-Fi module of the terminal is in an active state, determining a USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, or according to the current work of the Wi-Fi module The frequency band and the second preset configuration policy determine the USB standard;
所述终端根据所述USB标准建立USB连接。The terminal establishes a USB connection according to the USB standard.
根据本申请实施例提供的方法,终端在建立USB连接之前,在确定所述终端的Wi-Fi模块处于工作状态时,可以根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准,从而可以快速的确定出所需要的USB标准,从而根据确定出的USB标准建立USB连接,从而减少USB接口传输的信号对Wi-Fi信号产生的干扰。According to the method provided by the embodiment of the present application, before determining that the Wi-Fi module of the terminal is in the working state, the terminal may be configured according to the working frequency band supported by the Wi-Fi module and the first preset configuration. The policy determines the USB standard, or determines the USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy, so that the required USB standard can be quickly determined, thereby establishing a USB connection according to the determined USB standard. Thereby reducing the interference of the signal transmitted by the USB interface on the Wi-Fi signal.
可选的,所述方法还包括:Optionally, the method further includes:
当确定所述终端的Wi-Fi模块处于关闭状态,则将所述终端所支持的传输速度最高的USB标准确定为所述USB标准。When it is determined that the Wi-Fi module of the terminal is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the USB standard.
可选的,所述第一预设配置策略为: Optionally, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,包括:Optionally, the determining, according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, the USB standard, including:
所述终端根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为所述USB标准。The terminal determines, according to the working frequency band supported by the Wi-Fi module, that the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy is determined as The USB standard.
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,包括:Determining the USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, including:
若所述终端的Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为所述USB标准;或者If the working frequency band supported by the Wi-Fi module of the terminal is the 2.4 GHz band, the USB 2.0 FS is determined as the USB standard; or
若所述终端的Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为所述USB标准。If the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the USB standard.
可选的,还包括:Optionally, it also includes:
若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段、且所述终端的Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立USB连接,并将所述终端的Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz frequency band, and the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band, establish a USB connection according to the USB 3.1 GEN 1 and The working frequency band of the Wi-Fi module of the terminal is adjusted to the 5 GHz band.
可选的,所述第二预设配置策略为:Optionally, the second preset configuration policy is:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所工作的工作频段为5GHz频段时,所述终端的USB模块工 作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the Wi-Fi module works in the 5 GHz band, the USB module of the terminal The USB standard used in the process is either USB 3.1 GEN 1 or USB standard of USB 3.1 GEN 1 or lower.
可选的,所述根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准,包括:Optionally, the determining, according to the current working frequency band of the Wi-Fi module and the second preset configuration policy, the USB standard, including:
所述终端根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为所述USB标准。The terminal determines, according to the working frequency band supported by the Wi-Fi module, that the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the second preset configuration policy is determined as The USB standard.
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准,包括:Determining the USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy, including:
若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为所述USB标准;或者If the current working frequency band of the Wi-Fi module of the terminal is a 2.4 GHz band, the USB 2.0 FS is determined to be the USB standard; or
若所述终端的Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为所述USB标准。If the current working frequency band of the Wi-Fi module of the terminal is the 5 GHz band, the USB 3.1 GEN 1 is determined as the USB standard.
可选的,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。Optionally, the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
本申请实施例提供一种USB连接建立方法,该方法包括:An embodiment of the present application provides a USB connection establishment method, where the method includes:
当终端确定所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为USB标准;When the terminal determines that the Wi-Fi module of the terminal is in an active state, when the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined to be a USB standard; or, in the Wi- When the working frequency band supported by the Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined to be the USB standard;
所述终端根据所述USB标准建立USB连接。The terminal establishes a USB connection according to the USB standard.
本申请实施例提供一种USB连接建立方法,该方法包括:An embodiment of the present application provides a USB connection establishment method, where the method includes:
当终端确定所述终端的Wi-Fi模块处于工作状态,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为USB标准; When the terminal determines that the Wi-Fi module of the terminal is in an active state, when the current working frequency band of the Wi-Fi module is a 2.4 GHz band, the USB 2.0 FS is determined to be a USB standard; or, in the Wi-Fi module When the current working frequency band is 5 GHz, USB 3.1 GEN 1 is determined as the USB standard;
所述终端根据所述USB标准建立USB连接。The terminal establishes a USB connection according to the USB standard.
本申请实施例提供一种USB连接建立装置,该装置包括:An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
确定单元,用于当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准;a determining unit, configured to determine a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration policy, or according to a current working of the Wi-Fi module, when determining that the Wi-Fi module is in an active state The frequency band and the second preset configuration policy determine the USB standard;
处理单元,用于根据所述USB标准建立USB连接。a processing unit for establishing a USB connection according to the USB standard.
可选的,所述确定单元还用于括:Optionally, the determining unit is further configured to:
当确定所述Wi-Fi模块处于关闭状态,则将所述装置所支持的传输速度最高的USB标准确定为所述USB标准。When it is determined that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the device is determined as the USB standard.
可选的,所述第一预设配置策略为:Optionally, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述确定单元具体用于:Optionally, the determining unit is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述装置的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为所述USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the device in the first preset configuration policy as the USB standard .
可选的,所述装置至少支持USB 3.1 GEN 1;Optionally, the device supports at least USB 3.1 GEN 1;
所述确定单元具体用于:The determining unit is specifically configured to:
若所述Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为所述USB标准;或者If the working frequency band supported by the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined as the USB standard; or
若所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为所述USB标准。If the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the USB standard.
可选的,所述处理单元具体用于: Optionally, the processing unit is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段、且所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立USB连接,并将所述Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a USB connection according to the USB 3.1 GEN 1, and the Wi-Fi The operating frequency band of the module is adjusted to the 5 GHz band.
可选的,所述第二预设配置策略为:Optionally, the second preset configuration policy is:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所工作的工作频段为5GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band in which the Wi-Fi module operates is the 5 GHz band, the USB standard used for the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述确定单元具体用于:Optionally, the determining unit is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述装置的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为所述USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, a USB standard with the highest transmission speed in the USB standard used by the USB module of the device in the second preset configuration policy as the USB standard .
可选的,所述装置至少支持USB 3.1 GEN 1;Optionally, the device supports at least USB 3.1 GEN 1;
所述确定单元具体用于:The determining unit is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为所述USB标准;或者If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined as the USB standard; or
若所述Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为所述USB标准。If the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined as the USB standard.
可选的,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。Optionally, the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
本申请实施例提供一种USB连接建立装置,该装置包括:An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
确定单元,用于当确定Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为USB标准; a determining unit, configured to determine the USB 2.0 FS as a USB standard when the working frequency band supported by the Wi-Fi module is 2.4 GHz when determining that the Wi-Fi module is in an active state; or, in the Wi- When the working frequency band supported by the Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined to be the USB standard;
处理单元,用于根据所述USB标准建立USB连接。a processing unit for establishing a USB connection according to the USB standard.
本申请实施例提供一种USB连接建立装置,该装置包括:An embodiment of the present application provides a USB connection establishing apparatus, where the apparatus includes:
确定单元,用于当确定Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为USB标准;a determining unit, configured to determine a USB 2.0 FS as a USB standard when the current working frequency band of the Wi-Fi module is a 2.4 GHz band when determining that the Wi-Fi module is in an active state; or, in the Wi-Fi When the current working frequency band of the module is 5 GHz, USB 3.1 GEN 1 is determined as the USB standard;
处理单元,用于根据所述USB标准建立USB连接。a processing unit for establishing a USB connection according to the USB standard.
本申请实施例提供一种终端,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
所述存储器用于存储计算机程序;The memory is for storing a computer program;
所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准;When it is determined that the Wi-Fi module is in an active state, determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration policy, or according to a current working frequency band of the Wi-Fi module and a second pre- Set the configuration strategy to determine the USB standard;
指示所述USB模块根据所述USB标准建立USB连接。Instructing the USB module to establish a USB connection in accordance with the USB standard.
可选的,所述处理器还用于:Optionally, the processor is further configured to:
当确定所述Wi-Fi模块处于关闭状态,则将所述终端所支持的传输速度最高的USB标准确定为所述USB标准。When it is determined that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the USB standard.
可选的,所述第一预设配置策略为:Optionally, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述处理器具体用于:Optionally, the processor is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所 述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为所述USB标准。According to the working frequency band supported by the Wi-Fi module, the first preset configuration policy is The USB standard with the highest transmission speed in the USB standard used when the USB module of the terminal operates is determined as the USB standard.
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述处理器具体用于:The processor is specifically configured to:
若所述Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述处理器具体用于:Optionally, the processor is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段、且所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立USB连接,并将所述Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a USB connection according to the USB 3.1 GEN 1, and the Wi-Fi The operating frequency band of the module is adjusted to the 5 GHz band.
可选的,所述第二预设配置策略为:Optionally, the second preset configuration policy is:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所工作的工作频段为5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the Wi-Fi module operates in the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述处理器具体用于:Optionally, the processor is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为所述USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the second preset configuration policy as the USB standard .
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述处理器具体用于:The processor is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为所述USB标准;或者 If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined as the USB standard; or
若所述Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为所述USB标准。If the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined as the USB standard.
可选的,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。Optionally, the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
本申请实施例提供一种终端,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
所述存储器用于存储计算机程序;The memory is for storing a computer program;
所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
当确定所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为USB标准;When it is determined that the Wi-Fi module of the terminal is in an active state, the USB 2.0 FS is determined to be a USB standard when the working frequency band supported by the Wi-Fi module is 2.4 GHz; or, in the Wi-Fi When the working frequency band supported by the module includes at least the 5 GHz band, USB 3.1 GEN 1 is determined as the USB standard;
指示所述USB模块根据所述USB标准建立USB连接。Instructing the USB module to establish a USB connection in accordance with the USB standard.
本申请实施例提供一种终端,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;An embodiment of the present application provides a terminal, where the terminal includes: a processor, a memory, a Wi-Fi module, and a USB module;
所述存储器用于存储计算机程序;The memory is for storing a computer program;
所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
当确定所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为USB标准;When it is determined that the Wi-Fi module of the terminal is in an active state, the USB 2.0 FS is determined to be a USB standard when the current working frequency band of the Wi-Fi module is a 2.4 GHz band; or, in the Wi-Fi module When the current working frequency band is 5 GHz, USB 3.1 GEN 1 is determined as the USB standard;
指示所述USB模块根据所述USB标准建立USB连接。Instructing the USB module to establish a USB connection in accordance with the USB standard.
附图说明DRAWINGS
图1为一个典型的WLAN部署场景的***示意图;FIG. 1 is a schematic diagram of a system of a typical WLAN deployment scenario;
图2为另一个典型的WLAN部署场景的***示意图;2 is a schematic diagram of another typical WLAN deployment scenario;
图3为本申请实施例一提供的一种USB连接建立方法流程示意图; FIG. 3 is a schematic flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application;
图4为本申请实施例一提供的一种USB连接建立方法流程图;4 is a flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application;
图5为本申请实施例一提供的一种USB连接建立方法流程图;FIG. 5 is a flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application;
图6为本申请实施例二提供的一种USB连接建立方法流程示意图;FIG. 6 is a schematic flowchart of a method for establishing a USB connection according to Embodiment 2 of the present application;
图7为本申请实施例三提供的一种USB连接建立方法流程示意图;FIG. 7 is a schematic flowchart of a method for establishing a USB connection according to Embodiment 3 of the present application;
图8为本申请实施例四提供的一种USB连接建立方法流程示意图;FIG. 8 is a schematic flowchart of a method for establishing a USB connection according to Embodiment 4 of the present application;
图9为本申请实施例五提供的一种USB连接建立装置结构示意图;FIG. 9 is a schematic structural diagram of a device for establishing a USB connection according to Embodiment 5 of the present application;
图10为本申请实施例六提供的一种USB连接建立装置结构示意图;FIG. 10 is a schematic structural diagram of a device for establishing a USB connection according to Embodiment 6 of the present application;
图11为本申请实施例七提供的一种USB连接建立装置结构示意图;FIG. 11 is a schematic structural diagram of a USB connection establishing apparatus according to Embodiment 7 of the present application;
图12为本申请实施例八提供的一种终端结构示意图;FIG. 12 is a schematic structural diagram of a terminal according to Embodiment 8 of the present application;
图13为本申请实施例九提供的一种终端结构示意图;FIG. 13 is a schematic structural diagram of a terminal according to Embodiment 9 of the present application; FIG.
图14为本申请实施例十提供的一种终端结构示意图;FIG. 14 is a schematic structural diagram of a terminal according to Embodiment 10 of the present application;
图15为本申请实施例十一提供的一种终端结构示意图。FIG. 15 is a schematic structural diagram of a terminal according to Embodiment 11 of the present application.
具体实施方式detailed description
下面结合说明书附图对本申请实施例做详细描述。The embodiments of the present application are described in detail below with reference to the accompanying drawings.
本申请实施例可以应用于无线局域网,目前WLAN(Wireless Local Area Network,无线局域网)采用的标准为IEEE(Institute of Electrical and Electronics Engineers,电气和电子工程师协会)802.11系列。WLAN可以包括一个或多个基本服务集(Basic Service Set,BSS),基本服务集中的网络节点包括AP和STA。每个基本服务集可以包含一个AP和多个关联于该AP的STA。The embodiment of the present application can be applied to a wireless local area network. Currently, the standard adopted by the WLAN (Wireless Local Area Network) is the IEEE (Institute of Electrical and Electronics Engineers) 802.11 series. The WLAN may include one or more Basic Service Sets (BSSs), and the network nodes in the basic service set include APs and STAs. Each basic service set may contain one AP and multiple STAs associated with the AP.
AP,也称之为接入点或热点等。AP是移动用户进入有线网络的接入点,主要部署于家庭、大楼内部以及园区内部,典型覆盖半径为几十米至上百米,当然,也可以部署于户外。AP相当于一个连接有线网和无线网的桥梁,其主要作用是将各个无线网络客户端连接到一起,然后将无线网络接入以太网。APs, also known as access points or hotspots. The AP is an access point for mobile users to enter the wired network. It is mainly deployed in the home, inside the building, and inside the campus. The typical coverage radius is tens of meters to hundreds of meters. Of course, it can also be deployed outdoors. An AP is equivalent to a bridge connecting a wired network and a wireless network. Its main function is to connect the wireless network clients together and then connect the wireless network to the Ethernet.
STA可以是无线通讯芯片、无线传感器或无线通信终端。例如:支持WiFi通讯功能的移动电话、支持WiFi通讯功能的平板电脑、支持WiFi通讯功能的机顶盒、支持WiFi通讯功能的智能电视、支持WiFi通讯功能的智能可穿 戴设备、支持WiFi通讯功能的车载通信设备和支持WiFi通讯功能的计算机。The STA may be a wireless communication chip, a wireless sensor, or a wireless communication terminal. For example: mobile phones that support WiFi communication, tablets that support WiFi communication, set-top boxes that support WiFi communication, smart TVs that support WiFi communication, and smart phones that support WiFi communication. Wear devices, in-vehicle communication devices that support WiFi communication, and computers that support WiFi communication.
图1为一个典型的WLAN部署场景的***示意图,图1中包括一个AP和3个STA,AP分别与STA1、STA2和STA3进行通信,构成一个BSS。Figure 1 is a schematic diagram of a typical WLAN deployment scenario. Figure 1 includes an AP and three STAs. The AP communicates with STA1, STA2, and STA3 to form a BSS.
WLAN部署场景中,还可能存在多个BSS共存的情况。如图2所示,为另一个典型的WLAN部署场景的***示意图。图2所示的场景中,AP1、STA1、STA5处于同一个BSS内;AP2、STA2、STA3、STA4处于同一个BSS内。In a WLAN deployment scenario, there may be cases where multiple BSSs coexist. As shown in Figure 2, it is a system diagram of another typical WLAN deployment scenario. In the scenario shown in Figure 2, AP1, STA1, and STA5 are in the same BSS; AP2, STA2, STA3, and STA4 are in the same BSS.
本申请实施例中,终端可以是无线终端也可以是有线终端,例如可以为移动电话、计算机、平板电脑、个人数码助理(英文:personal digital assistant,缩写:PDA)、移动互联网设备(英文:mobile Internet device,缩写:MID)、可穿戴设备和电子书阅读器(英文:e-book reader)等。In the embodiment of the present application, the terminal may be a wireless terminal or a wired terminal, and may be, for example, a mobile phone, a computer, a tablet computer, a personal digital assistant (abbreviation: PDA), or a mobile internet device (English: mobile Internet device, abbreviation: MID), wearable device and e-book reader (English: e-book reader).
基于上述论述,如图3所示,本申请实施例一提供的一种USB连接建立方法流程示意图。Based on the above discussion, as shown in FIG. 3, a schematic flowchart of a USB connection establishment method according to Embodiment 1 of the present application is shown.
如图3所示,该方法具体包括以下步骤:As shown in FIG. 3, the method specifically includes the following steps:
步骤301:终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;Step 301: After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in a working state Determining a second USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, or determining the second USB according to the current working frequency band of the Wi-Fi module and the second preset configuration policy. standard;
步骤302:当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。Step 302: When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
步骤301中,第一USB标准可以为终端预设的USB标准,即终端每次建立USB连接时优先选择的USB标准。第一USB标准可以为终端所支持的USB标准中任意一个USB标准,例如,可以为USB2.0 FS等。In step 301, the first USB standard may be a USB standard preset by the terminal, that is, a USB standard preferentially selected each time the terminal establishes a USB connection. The first USB standard may be any one of the USB standards supported by the terminal, for example, USB 2.0 FS or the like.
需要说明的是,本申请实施例中,所述终端支持的最高USB标准至少是USB 3.1 GEN 1,当然,所述终端也可以支持USB 3.1 GEN 2等USB标准。由于USB标准具有向下兼容的特性,因此支持了USB 3.1 GEN 1的终端,还可以支持USB 3.1 GEN 1以下版本的USB标准,例如USB2.0 FS,USB 1.0; 支持了USB 3.1 GEN 2的终端,还可以支持USB 3.1 GEN 2以下版本的USB标准。例如终端支持USB 3.1 GEN 2,那么按照USB标准从高到低,所述终端还支持的USB标准为:USB 3.1 GEN 1,USB2.0 FS,USB 1.0,其中USB标准的版本越高,USB的传输速率越高。It should be noted that, in the embodiment of the present application, the highest USB standard supported by the terminal is at least USB 3.1 GEN 1. Of course, the terminal may also support a USB standard such as USB 3.1 GEN 2. Due to the backward compatibility of the USB standard, the terminal supporting USB 3.1 GEN 1 can also support USB standards of USB 3.1 GEN 1 or lower, such as USB2.0 FS, USB 1.0; The terminal supporting USB 3.1 GEN 2 can also support the USB standard of USB 3.1 GEN 2 or lower. For example, the terminal supports USB 3.1 GEN 2, then according to the USB standard from high to low, the terminal also supports the USB standard: USB 3.1 GEN 1, USB2.0 FS, USB 1.0, wherein the higher the USB standard version, the USB The higher the transfer rate.
本申请实施例中,终端可以在根据第一USB标准启动建立第一USB连接时,判断Wi-Fi模块是否处于工作状态,也可以在根据第一USB标准完成建立第一USB连接后,判断Wi-Fi模块是否处于工作状态。可以通过判断Wi-Fi功能的开关是否打开来判断Wi-Fi模块是否处于工作状态,也可以通过判断是否有数据通过Wi-Fi方式传输来判断Wi-Fi模块是否处于工作状态。In the embodiment of the present application, the terminal may determine whether the Wi-Fi module is in a working state when the first USB connection is initiated according to the first USB standard, and may determine the Wi after establishing the first USB connection according to the first USB standard. - The Fi module is working. It can be judged whether the Wi-Fi module is in the working state by judging whether the switch of the Wi-Fi function is turned on, or whether the Wi-Fi module is in the working state by judging whether or not data is transmitted through the Wi-Fi mode.
终端若确定所述终端的Wi-Fi模块处于关闭状态,则可以从所述终端所支持的USB标准中随机选择一个USB标准作为第二USB标准;还可以将第一USB标准作为第二USB标准,即不再重新确定USB标准。可选的,终端若确定所述终端的Wi-Fi模块处于关闭状态,可以将所述终端所支持的传输速度最高的USB标准确定为第二USB标准。当然,以上只是示例,还可以有其他方式确定第二USB标准,在此不再赘述。If the terminal determines that the Wi-Fi module of the terminal is in the off state, the USB standard can be randomly selected from the USB standard supported by the terminal as the second USB standard; and the first USB standard can be used as the second USB standard. , that is, the USB standard is no longer re-determined. Optionally, if the terminal determines that the Wi-Fi module of the terminal is in the closed state, the terminal can determine the USB standard with the highest transmission speed supported by the terminal as the second USB standard. Of course, the above is only an example, and the second USB standard may be determined in other ways, and details are not described herein again.
当所述终端的Wi-Fi模块处于工作状态,则可以将所述终端所支持的USB标准中,与当前Wi-Fi模块工作时的工作频段不冲突且传输速率最高的USB标准确定为第二USB标准。当然,本申请实施例中还可以通过其他方式确定第二USB标准,第一种可能的实现方式中,可以根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准;第二种可能的实现方式中,可以根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准。When the Wi-Fi module of the terminal is in an active state, the USB standard supported by the terminal may be determined as the second USB standard that does not conflict with the working frequency band when the current Wi-Fi module operates and has the highest transmission rate. USB standard. Of course, in the embodiment of the present application, the second USB standard may be determined by using other methods. In the first possible implementation manner, the second working area and the first preset configuration policy supported by the Wi-Fi module may be used to determine the second In the second possible implementation manner, the second USB standard may be determined according to the current working frequency band of the Wi-Fi module and the second preset configuration policy.
其中,所述第一预设配置策略或者所述第二预设配置策略可以保存在配置文件中,终端在需要确定第二USB标准时,可以通过配置文件读取所述第一预设配置策略或者所述第二预设配置策略,从而实现快速的确定所述第一预设配置策略或者所述第二预设配置策略。The first preset configuration policy or the second preset configuration policy may be saved in a configuration file. When the terminal needs to determine the second USB standard, the terminal may read the first preset configuration policy through the configuration file. The second preset configuration policy, so as to quickly determine the first preset configuration policy or the second preset configuration policy.
结合上面的描述,下面分别详细描述在Wi-Fi模块处于工作状态下,如何 确定第二USB标准。为了描述方便,下面的描述中,除了明确所述终端至少支持USB 3.1 GEN 1的场景外,均以所述终端至少支持USB 3.1 GEN 2为例进行描述,所述终端至少支持USB 3.1 GEN 2的场景可以参考下面的描述,在此不再赘述。Combined with the above description, the following describes in detail how the Wi-Fi module is in operation, how to Determine the second USB standard. For the convenience of description, in the following description, except that it is clear that the terminal supports at least the USB 3.1 GEN 1 scenario, the terminal supports at least USB 3.1 GEN 2 as an example, and the terminal supports at least USB 3.1 GEN 2 For the scenario, refer to the following description, and details are not described here.
第一种可能的实现方式中,所述第一预设配置策略为:In a first possible implementation manner, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者,Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or, Wi When the working frequency band supported by the -Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
需要说明的是,Wi-Fi模块所支持的工作频段至少包括5GHz频段可以是指:Wi-Fi模块所支持的工作频段为5GHz频段,或者,Wi-Fi模块所支持的工作频段为2.4GHz以及5GHz频段。It should be noted that the working frequency band supported by the Wi-Fi module includes at least the 5 GHz frequency band, which means that the working frequency band supported by the Wi-Fi module is the 5 GHz frequency band, or the working frequency band supported by the Wi-Fi module is 2.4 GHz and 5GHz band.
终端根据所述第一预设配置策略,可以根据所述Wi-Fi模块所支持的工作频段选择一个USB标准作为第二USB标准。具体的,终端在确定所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,可以将USB 2.0 F以及USB 2.0 FS以下版本的USB标准中的任意一种USB标准确定为第二USB标准;所述终端在确定所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,可以将USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种USB标准确定为第二USB标准。According to the first preset configuration policy, the terminal may select a USB standard as the second USB standard according to the working frequency band supported by the Wi-Fi module. Specifically, when determining that the working frequency band supported by the Wi-Fi module is 2.4 GHz, the terminal can determine any one of the USB standards of the USB 2.0 F and the USB 2.0 FS or lower USB standard as the second USB standard. The terminal may determine any one of the USB standards of the USB 3.1 GEN 1 and the USB 3.1 GEN 1 or lower USB standard as the second when determining that the working frequency band supported by the Wi-Fi module includes at least the 5 GHz frequency band. USB standard.
进一步的,本申请实施例中,所述终端根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准时,可以根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。结合前面的描述,终端在确定所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准。所述终端在确定所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB 标准。Further, in the embodiment of the present application, when the terminal determines the second USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, the terminal may be based on the working frequency band supported by the Wi-Fi module. The USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy is determined as the second USB standard. In combination with the foregoing description, the terminal determines the USB 2.0 FS as the second USB standard when determining that the working frequency band supported by the Wi-Fi module is the 2.4 GHz band. The terminal determines the USB 3.1 GEN 1 as the second USB when determining that the working frequency band supported by the Wi-Fi module includes at least the 5 GHz frequency band. standard.
为了避免干扰,本申请实施例中,若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段、且所述终端的Wi-Fi模块所支持的工作频段至少包括5GHz频段,则终端在根据USB 3.1 GEN 1建立第二USB连接的同时,还需要将所述终端的Wi-Fi模块的工作频段调整至5GHz频段。具体的,当所述终端将USB 3.1 GEN 1确定为第二USB标准时,所述终端判断所述Wi-Fi模块当前的工作频段是否为2.4GHz频段,若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则所述终端关闭当前2.4GHz频段的Wi-Fi连接,并启动建立5GHz频段的Wi-Fi连接。需要说明的是,所述终端建立5GHz频段的Wi-Fi连接所采用的无线局域网标准,可以根据实际情况确定,在此不再赘述。In order to avoid interference, in the embodiment of the present application, if the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz frequency band, and the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band, the terminal is When the second USB connection is established according to the USB 3.1 GEN 1, the working frequency band of the Wi-Fi module of the terminal needs to be adjusted to the 5 GHz band. Specifically, when the terminal determines the USB 3.1 GEN 1 as the second USB standard, the terminal determines whether the current working frequency band of the Wi-Fi module is a 2.4 GHz frequency band, if the current working frequency band of the Wi-Fi module In the 2.4 GHz band, the terminal turns off the Wi-Fi connection of the current 2.4 GHz band and initiates the establishment of a Wi-Fi connection in the 5 GHz band. It should be noted that the wireless local area network standard used by the terminal to establish a Wi-Fi connection in the 5 GHz band may be determined according to actual conditions, and details are not described herein again.
上述方法中,终端在确定第二USB标准时,不管当前Wi-Fi模块所工作的工作频段为2.4GHz还是5GHz,最终确定出第二USB标准后,还可能需要对Wi-Fi模块当前的工作频段进行调整,从而避免选择出的第二USB标准对与Wi-Fi模块当前的工作频段产生干扰。In the above method, when the terminal determines the second USB standard, regardless of whether the working frequency band of the current Wi-Fi module is 2.4 GHz or 5 GHz, after determining the second USB standard, the current working frequency band of the Wi-Fi module may also be required. The adjustment is made to avoid the interference of the selected second USB standard pair with the current working frequency band of the Wi-Fi module.
第二种可能的实现方式中,可以根据Wi-Fi模块当前的工作频段确定第二USB标准。In a second possible implementation manner, the second USB standard can be determined according to the current working frequency band of the Wi-Fi module.
具体的,第二种可能的实现方式中,所述第二预设配置策略可以为:Specifically, in the second possible implementation manner, the second preset configuration policy may be:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者Wi-Fi模块所工作的工作频段为5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or Wi- When the Fi-module operates in the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
终端根据所述第二预设配置策略,可以根据所述Wi-Fi模块所工作的工作频段选择一个USB标准作为第二USB标准。具体的,终端在确定所述Wi-Fi模块所工作的工作频段为2.4GHz频段时,可以将USB 2.0 F以及USB 2.0 FS以下版本的USB标准中的任意一种USB标准确定为第二USB标准;所述终端在确定所述Wi-Fi模块所工作的工作频段为5GHz频段时,可以将USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种USB标准确定为第二USB标准。According to the second preset configuration policy, the terminal may select a USB standard as the second USB standard according to the working frequency band in which the Wi-Fi module works. Specifically, when determining that the working frequency band in which the Wi-Fi module works is 2.4 GHz, the terminal can determine any USB standard of USB 2.0 F and USB standards of the following versions of USB 2.0 FS as the second USB standard. The terminal can determine USB 3.1 when the working frequency band in which the Wi-Fi module operates is 5 GHz. The USB standard of any of the GEN 1 and USB 3.1 GEN 1 and below USB standards is determined as the second USB standard.
进一步的,本申请实施例中,所述终端可以根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。结合前面的描述,若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;若所述终端的Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。Further, in the embodiment of the present application, the terminal may use the USB standard used by the USB module of the terminal in the second preset configuration policy according to the working frequency band supported by the Wi-Fi module. The USB standard with the highest transfer speed is determined as the second USB standard. According to the foregoing description, if the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz frequency band, the USB 2.0 FS is determined as the second USB standard; if the current working frequency band of the Wi-Fi module of the terminal is 5 GHz In the frequency band, USB 3.1 GEN 1 is determined as the second USB standard.
最后,在步骤302中,终端在确定第一USB标准与第二USB标准不同后,重新根据第二USB标准建立第二USB连接。具体的,当所述终端正在启动建立第一USB连接时,所述终端终止第一USB连接的建立,并根据所述第二USB标准建立第二USB连接;当所述终端已经建立了第一USB连接时,所述终端断开第一USB连接,并根据所述第二USB标准重新建立第二USB连接。Finally, in step 302, after determining that the first USB standard is different from the second USB standard, the terminal re-establishes the second USB connection according to the second USB standard. Specifically, when the terminal is starting to establish a first USB connection, the terminal terminates establishment of the first USB connection, and establishes a second USB connection according to the second USB standard; when the terminal has established the first When the USB is connected, the terminal disconnects the first USB connection and re-establishes the second USB connection according to the second USB standard.
相应的,终端若确定第一USB标准与第二USB标准相同,则继续以第一USB连接为准进行工作。Correspondingly, if the terminal determines that the first USB standard is the same as the second USB standard, the terminal continues to work according to the first USB connection.
下面结合具体的实施例详细描述上面的方法。The above method will be described in detail below with reference to specific embodiments.
如图4所示,为本申请实施例一提供的一种USB连接建立方法流程图。FIG. 4 is a flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application.
步骤401:终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,判断所述终端的Wi-Fi模块是否处于工作状态,若否,即所述终端的Wi-Fi模块不处于工作状态,则转至步骤402;若是,即所述终端的Wi-Fi模块处于工作状态,转至步骤403。Step 401: After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or the terminal establishes the first USB connection according to the first USB standard, it is determined whether the Wi-Fi module of the terminal is working. If no, that is, the Wi-Fi module of the terminal is not in the working state, go to step 402; if yes, the Wi-Fi module of the terminal is in the working state, and go to step 403.
步骤402:将所述终端所支持的传输速度最高的USB标准确定为第二USB标准。Step 402: Determine the USB standard with the highest transmission speed supported by the terminal as the second USB standard.
步骤403:判断所述终端的Wi-Fi模块支持的工作频段是否至少包括5GHz频段,若是,则转至步骤404;否则转至步骤405。 Step 403: Determine whether the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band, and if yes, go to step 404; otherwise, go to step 405.
步骤404:将USB 3.1 GEN 1确定为第二USB标准。Step 404: Determine USB 3.1 GEN 1 as the second USB standard.
可选的,将第二USB标准为USB 3.1 GEN 1时,所述终端判断所述终端的Wi-Fi模块是否工作在2.4Ghz,若是,则还需要将Wi-Fi模块当前的工作频段调整为5GHz频段,否则,Wi-Fi模块继续工作在5GHz频段。Optionally, when the second USB standard is USB 3.1 GEN 1, the terminal determines whether the Wi-Fi module of the terminal works at 2.4 Ghz, and if so, further adjusts the current working frequency band of the Wi-Fi module to The 5GHz band, otherwise, the Wi-Fi module continues to operate in the 5GHz band.
步骤405:将USB 2.0 FS确定为第二USB标准。Step 405: Determine the USB 2.0 FS as the second USB standard.
即所述终端的Wi-Fi模块支持的工作频段只有2.4GHz频段时,将USB 2.0 FS确定为第二USB标准That is, when the working frequency band supported by the Wi-Fi module of the terminal is only 2.4 GHz, the USB 2.0 FS is determined as the second USB standard.
步骤406:判断所述第一USB标准与所述第二USB标准是否相同,若否,即所述第一USB标准与所述第二USB标准不同,则转至步骤407;否则,即所述第一USB标准与所述第二USB标准相同,则结束整个流程。Step 406: Determine whether the first USB standard is the same as the second USB standard. If not, that is, the first USB standard is different from the second USB standard, then go to step 407; otherwise, the The first USB standard is the same as the second USB standard, and the entire process is ended.
步骤407:根据所述第二USB标准建立第二USB连接。Step 407: Establish a second USB connection according to the second USB standard.
如图5所示,为本申请实施例一提供的一种USB连接建立方法流程图。FIG. 5 is a flowchart of a method for establishing a USB connection according to Embodiment 1 of the present application.
步骤501:终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,判断所述终端的Wi-Fi模块是否处于工作状态,若否,即所述终端的Wi-Fi模块不处于工作状态,则转至步骤502;否则,即所述终端的Wi-Fi模块处于工作状态,转至步骤503。Step 501: After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or the terminal establishes the first USB connection according to the first USB standard, it is determined whether the Wi-Fi module of the terminal is working. If no, that is, the Wi-Fi module of the terminal is not in the working state, go to step 502; otherwise, the Wi-Fi module of the terminal is in the working state, and go to step 503.
步骤502:将所述终端所支持的传输速度最高的USB标准确定为第二USB标准。Step 502: Determine the USB standard with the highest transmission speed supported by the terminal as the second USB standard.
步骤503:判断所述终端当前的工作频段是否为5GHz频段,若是,则转至步骤504;否则转至步骤505。Step 503: Determine whether the current working frequency band of the terminal is a 5 GHz frequency band, and if yes, go to step 504; otherwise, go to step 505.
步骤504:将USB 3.1 GEN 1确定为第二USB标准。Step 504: Determine USB 3.1 GEN 1 as the second USB standard.
步骤505:将USB 2.0 FS确定为第二USB标准。Step 505: Determine the USB 2.0 FS as the second USB standard.
步骤506:判断所述第一USB标准与所述第二USB标准是否相同,若否,则转至步骤507,否则结束整个流程。Step 506: Determine whether the first USB standard is the same as the second USB standard. If no, go to step 507, otherwise end the entire process.
步骤507:根据所述第二USB标准建立第二USB连接。Step 507: Establish a second USB connection according to the second USB standard.
基于上述论述,如图6所示,本申请实施例二提供的一种USB连接建立 方法流程示意图。Based on the above discussion, as shown in FIG. 6, a USB connection establishment provided in Embodiment 2 of the present application is provided. Method flow diagram.
如图6所示,该方法具体包括以下步骤:As shown in FIG. 6, the method specifically includes the following steps:
步骤601:终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;Step 601: After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in a working state When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined to be the second USB standard; or when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band , determining USB 3.1 GEN 1 as the second USB standard;
步骤602:当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。Step 602: When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
步骤601中,当所述终端确定Wi-Fi模块处于关闭状态,则将所述终端所支持的传输速度最高的USB标准确定为第二USB标准。In step 601, when the terminal determines that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
为了避免干扰,本申请实施例中,若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段、且所述终端的Wi-Fi模块所支持的工作频段至少包括5GHz频段,则终端在根据USB 3.1 GEN 1建立第二USB连接的同时,还需要将所述终端的Wi-Fi模块的工作频段调整至5GHz频段。In order to avoid interference, in the embodiment of the present application, if the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz frequency band, and the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band, the terminal is When the second USB connection is established according to the USB 3.1 GEN 1, the working frequency band of the Wi-Fi module of the terminal needs to be adjusted to the 5 GHz band.
关于步骤601中的其他内容,可以参考步骤301中的描述,在此不再赘述。For the other content in step 601, reference may be made to the description in step 301, and details are not described herein again.
步骤602中,终端在确定第一USB标准与第二USB标准不同后,重新根据第二USB标准建立第二USB连接。In step 602, after determining that the first USB standard is different from the second USB standard, the terminal re-establishes the second USB connection according to the second USB standard.
相应的,当终端确定第一USB标准与第二USB标准相同,则继续以第一USB连接为准进行工作。Correspondingly, when the terminal determines that the first USB standard is the same as the second USB standard, the operation continues on the first USB connection.
基于上述论述,如图7所示,本申请实施例三提供的一种USB连接建立方法流程示意图。Based on the above discussion, as shown in FIG. 7, a schematic flowchart of a method for establishing a USB connection according to Embodiment 3 of the present application is shown.
如图7所示,该方法具体包括以下步骤:As shown in FIG. 7, the method specifically includes the following steps:
步骤701:终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的 Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;Step 701: After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the terminal is When the Wi-Fi module is in working state, the USB 2.0 FS is determined to be the second USB standard when the current working frequency band of the Wi-Fi module is 2.4 GHz; or, in the current working frequency band of the Wi-Fi module When the 5 GHz band is used, the USB 3.1 GEN 1 is determined as the second USB standard;
步骤702:当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。Step 702: When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
步骤701中,当所述终端确定Wi-Fi模块处于关闭状态,则将所述终端所支持的传输速度最高的USB标准确定为第二USB标准。In step 701, when the terminal determines that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
关于步骤701中的其他内容,可以参考步骤301中的描述,在此不再赘述。For the other content in step 701, reference may be made to the description in step 301, and details are not described herein again.
步骤702中,终端在确定第一USB标准与第二USB标准不同后,重新根据第二USB标准建立第二USB连接。In step 702, after determining that the first USB standard is different from the second USB standard, the terminal re-establishes the second USB connection according to the second USB standard.
相应的,终端若确定第一USB标准与第二USB标准相同,则继续以第一USB连接为准进行工作。Correspondingly, if the terminal determines that the first USB standard is the same as the second USB standard, the terminal continues to work according to the first USB connection.
本申请实施例中,终端在确定USB线缆被接入USB接口后,在建立USB之前,还可以先确定Wi-Fi模块的工作状态。所述终端在确定Wi-Fi模块处于工作状态时,可以直接确定最终工作时所采用的USB标准,从而避免USB连接的切换,提高效率。下面详细描述。In the embodiment of the present application, after determining that the USB cable is connected to the USB interface, the terminal may also determine the working state of the Wi-Fi module before establishing the USB. When determining that the Wi-Fi module is in the working state, the terminal can directly determine the USB standard used in the final work, thereby avoiding switching of the USB connection and improving efficiency. The details are described below.
基于上述论述,如图8所示,本申请实施例四提供的一种USB连接建立方法流程示意图。Based on the above discussion, as shown in FIG. 8 , a schematic flowchart of a method for establishing a USB connection provided in Embodiment 4 of the present application.
如图8所示,该方法具体包括以下步骤:As shown in FIG. 8, the method specifically includes the following steps:
步骤801:当终端确定所述终端的Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准;Step 801: When the terminal determines that the Wi-Fi module of the terminal is in an active state, determine a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration policy, or according to the Wi-Fi module. The current working frequency band and the second preset configuration policy determine the USB standard;
步骤802:所述终端根据所述USB标准建立USB连接。Step 802: The terminal establishes a USB connection according to the USB standard.
需要说明的是,关于步骤801以及步骤802的其他内容可以参考前面的描述,在此不再赘述。It should be noted that, for other contents of step 801 and step 802, reference may be made to the foregoing description, and details are not described herein again.
根据本申请实施例提供的方法,终端在建立USB连接之前,在确定所述 终端的Wi-Fi模块处于工作状态时,可以根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准,从而可以快速的确定出所需要的USB标准,从而根据确定出的USB标准建立USB连接。由于根据第一预设配置策略以及第二预设配置策略,确定出的USB标准为与Wi-Fi模块所工作的工作频段不冲突的USB标准,从而减少了USB接口传输的信号对Wi-Fi模块的Wi-Fi信号产生的干扰。具体地,实施例四中的方法可以在终端检测到USB线缆***USB端口,或者进一步地,确定有对端设备相连的USB线缆***终端的USB端口时执行。可选地,在检测到USB线缆***时,暂停USB连接,等到USB标准确定后,在根据确定的USB标准建立USB连接。According to the method provided by the embodiment of the present application, the terminal determines the When the Wi-Fi module of the terminal is in the working state, the USB standard may be determined according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, or according to the current working frequency band of the Wi-Fi module and the second The default configuration strategy determines the USB standard so that the required USB standard can be quickly determined to establish a USB connection based on the determined USB standard. The USB standard determined according to the first preset configuration policy and the second preset configuration policy is a USB standard that does not conflict with the working frequency band in which the Wi-Fi module works, thereby reducing the signal transmitted by the USB interface to Wi-Fi. The interference generated by the module's Wi-Fi signal. Specifically, the method in Embodiment 4 may be performed when the terminal detects that the USB cable is inserted into the USB port, or further, when determining that the USB cable connected to the peer device is inserted into the USB port of the terminal. Optionally, when a USB cable insertion is detected, the USB connection is suspended, and after the USB standard is determined, a USB connection is established in accordance with the determined USB standard.
针对上述方法流程,本申请实施例五还提供一种USB连接建立装置900,该装置的具体内容可以参照上述方法实施,在此不再赘述。For the above method flow, the fifth embodiment of the present application further provides a USB connection establishing apparatus 900. The specific content of the apparatus may be implemented by referring to the foregoing method, and details are not described herein again.
如图9所示,本申请实施例五提供一种USB连接建立装置结构示意图。As shown in FIG. 9, the fifth embodiment of the present application provides a schematic structural diagram of a USB connection establishing apparatus.
该装置可以用于执行上述实施例一的方法流程。The device can be used to execute the method flow of the first embodiment.
需要说明的是,本申请实施例中,USB连接建立装置900可以为移动电话、计算机、平板电脑、个人数码助理等设备。It should be noted that, in the embodiment of the present application, the USB connection establishing apparatus 900 may be a mobile phone, a computer, a tablet computer, a personal digital assistant, or the like.
参见图9,该装置900包括:Referring to Figure 9, the apparatus 900 includes:
确定单元901,用于根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;a determining unit 901, configured to start after establishing a first USB connection according to the first universal serial bus USB standard, or after establishing a first USB connection according to the first USB standard, and when determining that the Wi-Fi module is in a working state, according to the Determining a second USB standard by using a working frequency band supported by the Wi-Fi module and the first preset configuration policy, or determining a second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
处理单元902,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit 902 is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
可选的,所述确定单元901还用于括:Optionally, the determining unit 901 is further configured to:
当确定所述Wi-Fi模块处于关闭状态,则将所述装置900所支持的传输速度最高的USB标准确定为第二USB标准。 When it is determined that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the device 900 is determined as the second USB standard.
可选的,所述第一预设配置策略为:Optionally, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述装置900的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the device 900 is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述装置900的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the device 900 is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述确定单元901具体用于:Optionally, the determining unit 901 is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述装置900的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the device 900 in the first preset configuration policy as the second USB standard.
可选的,所述装置900至少支持USB 3.1 GEN 1;Optionally, the device 900 supports at least USB 3.1 GEN 1;
所述确定单元901具体用于:The determining unit 901 is specifically configured to:
若所述Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述处理单元902具体用于:Optionally, the processing unit 902 is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段、且所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立第二USB连接,并将所述Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
可选的,所述第二预设配置策略为:Optionally, the second preset configuration policy is:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述装置900的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used in the USB module of the device 900 is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所工作的工作频段为5GHz频段时,所述装置900的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本 的USB标准中的任意一种。When the working frequency band in which the Wi-Fi module operates is the 5 GHz band, the USB standard used by the USB module of the device 900 is USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower. Any of the USB standards.
可选的,所述确定单元901具体用于:Optionally, the determining unit 901 is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述装置900的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the device 900 in the second preset configuration policy as the second USB standard.
可选的,所述装置900至少支持USB 3.1 GEN 1;Optionally, the device 900 supports at least USB 3.1 GEN 1;
所述确定单元901具体用于:The determining unit 901 is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。Optionally, the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
如图10所示,本申请实施例六提供一种USB连接建立装置结构示意图。As shown in FIG. 10, the sixth embodiment of the present application provides a schematic structural diagram of a USB connection establishing apparatus.
该装置可以用于执行上述实施例二的方法流程。The device can be used to execute the method flow of the foregoing embodiment 2.
需要说明的是,本申请实施例中,USB连接建立装置1000可以为移动电话、计算机、平板电脑、个人数码助理等设备。It should be noted that, in the embodiment of the present application, the USB connection establishing apparatus 1000 may be a mobile phone, a computer, a tablet computer, a personal digital assistant, or the like.
参见图10,该装置1000包括:Referring to Figure 10, the apparatus 1000 includes:
确定单元1001,用于根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定所述装置1000的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;The determining unit 1001 is configured to: after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device 1000 is working In the state, when the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or, the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band. When the USB 3.1 GEN 1 is determined as the second USB standard;
处理单元1002,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit 1002 is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
如图11所示,本申请实施例七提供一种USB连接建立装置结构示意图。 As shown in FIG. 11, the seventh embodiment of the present application provides a schematic structural diagram of a USB connection establishing apparatus.
该装置可以用于执行上述实施例三的方法流程。The apparatus can be used to perform the method flow of the foregoing third embodiment.
需要说明的是,本申请实施例中,USB连接建立装置1100可以为移动电话、计算机、平板电脑、个人数码助理等设备。It should be noted that, in the embodiment of the present application, the USB connection establishing apparatus 1100 may be a mobile phone, a computer, a tablet computer, a personal digital assistant, or the like.
参见图11,该装置1100包括:Referring to Figure 11, the apparatus 1100 includes:
确定单元1101,用于根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定所述装置1100的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;The determining unit 1101 is configured to start after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device 1100 is working In the state, when the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or, when the current working frequency band of the Wi-Fi module is the 5 GHz band, USB 3.1 GEN 1 is determined to be the second USB standard;
处理单元1102,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit 1102 is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
基于相同构思,本申请实施例八中提供一种终端1200,用于执行上述实施例一的方法流程。Based on the same concept, a terminal 1200 is provided in Embodiment 8 of the present application for performing the method flow of the foregoing Embodiment 1.
参见图12,该终端包括:处理器1201,存储器1202,Wi-Fi模块1203,USB模块1204;Referring to FIG. 12, the terminal includes: a processor 1201, a memory 1202, a Wi-Fi module 1203, and a USB module 1204.
所述Wi-Fi模块1203用于建立Wi-Fi连接;所述USB模块1204用于建立USB连接;The Wi-Fi module 1203 is configured to establish a Wi-Fi connection; the USB module 1204 is configured to establish a USB connection;
所述存储器1202用于存储计算机程序;The memory 1202 is configured to store a computer program;
所述处理器1201,运行所述计算机程序,执行下述流程:The processor 1201 runs the computer program and performs the following process:
根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;当确定所述第一USB标准与所述第二USB标准不同,则指示所述USB模块1204根据所述第二USB标准建立第二USB连接。After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when it is determined that the Wi-Fi module is in the working state, according to the Wi-Fi module Supporting the working frequency band and the first preset configuration policy to determine the second USB standard, or determining the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy; determining the first USB standard Different from the second USB standard, the USB module 1204 is instructed to establish a second USB connection according to the second USB standard.
可选的,所述处理器1201还用于: Optionally, the processor 1201 is further configured to:
当确定所述Wi-Fi模块处于关闭状态,则将所述终端1200所支持的传输速度最高的USB标准确定为第二USB标准。When it is determined that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the terminal 1200 is determined as the second USB standard.
可选的,所述第一预设配置策略为:Optionally, the first preset configuration policy is:
Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述终端1200的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the terminal 1200 is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述终端1200的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the terminal 1200 is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述处理器1201具体用于:Optionally, the processor 1201 is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy as the second USB standard .
可选的,所述终端1200至少支持USB 3.1 GEN 1;Optionally, the terminal 1200 supports at least USB 3.1 GEN 1;
所述处理器1201具体用于:The processor 1201 is specifically configured to:
若所述Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述处理器1201具体用于:Optionally, the processor 1201 is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段、且所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立第二USB连接,并将所述Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
可选的,所述第二预设配置策略为:Optionally, the second preset configuration policy is:
Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述终端1200的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者 When the working frequency band in which the Wi-Fi module operates is the 2.4 GHz band, the USB standard used by the USB module of the terminal 1200 is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
Wi-Fi模块所工作的工作频段为5GHz频段时,所述终端1200的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band in which the Wi-Fi module operates is the 5 GHz band, the USB standard used by the USB module of the terminal 1200 is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
可选的,所述处理器1201具体用于:Optionally, the processor 1201 is specifically configured to:
根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the second preset configuration policy as the second USB standard .
可选的,所述终端至少支持USB 3.1 GEN 1;Optionally, the terminal supports at least USB 3.1 GEN 1;
所述处理器1201具体用于:The processor 1201 is specifically configured to:
若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
若所述Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
可选的,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。Optionally, the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
其中,图12中还可以包括总线接口,总线接口可以包括任意数量的互联的总线和桥,具体由处理器代表的一个或多个处理器和存储器代表的存储器的各种电路链接在一起。总线接口还可以将诸如***设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。Wherein, the bus interface may also be included in FIG. 12, and the bus interface may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by the processor and various circuits of the memory represented by the memory. The bus interface can also link various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
基于相同构思,本申请实施例九中提供一种终端1300,用于执行上述实施例二的方法流程。Based on the same concept, a terminal 1300 is provided in Embodiment 9 of the present application for performing the method flow of the foregoing Embodiment 2.
参见图13,该终端包括:处理器1301,存储器1302,Wi-Fi模块1303,USB模块1304;Referring to FIG. 13, the terminal includes: a processor 1301, a memory 1302, a Wi-Fi module 1303, and a USB module 1304.
所述Wi-Fi模块1303用于建立Wi-Fi连接;The Wi-Fi module 1303 is configured to establish a Wi-Fi connection;
所述USB模块1304用于建立USB连接;The USB module 1304 is configured to establish a USB connection;
所述存储器1302用于存储计算机程序; The memory 1302 is configured to store a computer program;
所述处理器1301,运行所述计算机程序,执行下述流程:The processor 1301 runs the computer program and performs the following process:
根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, in the Wi- When the working frequency band supported by the Fi module is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined. For the second USB standard;
确定所述第一USB标准与所述第二USB标准不同,则指示所述USB模块1304根据所述第二USB标准建立第二USB连接。Determining that the first USB standard is different from the second USB standard, instructing the USB module 1304 to establish a second USB connection according to the second USB standard.
其中,图13中还可以包括总线接口,总线接口可以包括任意数量的互联的总线和桥,具体由处理器代表的一个或多个处理器和存储器代表的存储器的各种电路链接在一起。总线接口还可以将诸如***设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。Wherein, the bus interface may also be included in FIG. 13, and the bus interface may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by the processor and various circuits of the memory represented by the memory. The bus interface can also link various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
基于相同构思,本申请实施例十中提供一种终端1400,用于执行上述实施例三的方法流程。Based on the same concept, a terminal 1400 is provided in Embodiment 10 of the present application for performing the method flow of the foregoing Embodiment 3.
参见图14,该终端包括:处理器1401,存储器1402,Wi-Fi模块1403,USB模块1404;Referring to FIG. 14, the terminal includes: a processor 1401, a memory 1402, a Wi-Fi module 1403, and a USB module 1404.
所述Wi-Fi模块1403用于建立Wi-Fi连接;The Wi-Fi module 1403 is configured to establish a Wi-Fi connection;
所述USB模块1404用于建立USB连接;The USB module 1404 is configured to establish a USB connection;
所述存储器1402用于存储计算机程序;The memory 1402 is configured to store a computer program;
所述处理器1401,运行所述计算机程序,执行下述流程:The processor 1401 runs the computer program and performs the following process:
根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, in the Wi- When the Fi-module currently operates in the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or, when the current working band of the Wi-Fi module is in the 5 GHz band, the USB 3.1 GEN 1 is determined to be the second. USB standard;
当确定所述第一USB标准与所述第二USB标准不同,则指示所述USB 模块1404根据所述第二USB标准建立第二USB连接。Determining the USB when it is determined that the first USB standard is different from the second USB standard Module 1404 establishes a second USB connection in accordance with the second USB standard.
其中,图14中还可以包括总线接口,总线接口可以包括任意数量的互联的总线和桥,具体由处理器代表的一个或多个处理器和存储器代表的存储器的各种电路链接在一起。总线接口还可以将诸如***设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。Wherein, the bus interface may also be included in FIG. 14, and the bus interface may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by the processor and various circuits of the memory represented by the memory. The bus interface can also link various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
基于相同构思,本申请实施例十一中提供一种终端1500,用于执行上述实施例四的方法流程。Based on the same concept, a terminal 1500 is provided in Embodiment 11 of the present application for performing the method flow of the foregoing Embodiment 4.
参见图15,该终端包括:处理器1501,存储器1502,Wi-Fi模块1503,USB模块1504;Referring to FIG. 15, the terminal includes: a processor 1501, a memory 1502, a Wi-Fi module 1503, and a USB module 1504.
所述Wi-Fi模块1503用于建立Wi-Fi连接;The Wi-Fi module 1503 is configured to establish a Wi-Fi connection;
所述USB模块1504用于建立USB连接;The USB module 1504 is configured to establish a USB connection;
所述存储器1502用于存储计算机程序;The memory 1502 is configured to store a computer program;
所述处理器1501,运行所述计算机程序,执行下述流程:The processor 1501 runs the computer program and performs the following process:
当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定USB标准;When it is determined that the Wi-Fi module is in an active state, determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration policy, or according to a current working frequency band of the Wi-Fi module and a second pre- Set the configuration strategy to determine the USB standard;
指示所述USB模块1504根据所述USB标准建立USB连接。The USB module 1504 is instructed to establish a USB connection in accordance with the USB standard.
需要说明的是,关于本申请实施例十一中提供的终端的其他内容,可以参考前面的描述,在此不再赘述。It should be noted that, for other contents of the terminal provided in the eleventh embodiment of the present application, reference may be made to the foregoing description, and details are not described herein again.
本领域内的技术人员应明白,本申请的实施例可提供为方法、***、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储信道(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer usable memory channels (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
本申请是参照根据本申请实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图 和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器指令,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It should be understood that the flow chart can be implemented by computer program instructions And/or a combination of the processes and/or blocks in the block diagrams, and the flowcharts and/or blocks in the flowcharts. The computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine instruction for generating instructions executed by a processor of a computer or other programmable data processing device Means for implementing the functions specified in one or more flows of the flowchart or in a block or blocks of the flowchart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.

Claims (36)

  1. 一种USB连接建立方法,其特征在于,该方法包括:A USB connection establishing method, the method comprising:
    终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;After the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, according to The working frequency band supported by the Wi-Fi module and the first preset configuration policy determine the second USB standard, or determine the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
    当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当确定所述终端的Wi-Fi模块处于关闭状态,则将所述终端所支持的传输速度最高的USB标准确定为第二USB标准。When it is determined that the Wi-Fi module of the terminal is in the off state, the USB standard with the highest transmission speed supported by the terminal is determined as the second USB standard.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一预设配置策略为:The method according to claim 1 or 2, wherein the first preset configuration policy is:
    Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
    Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,包括:The method according to claim 3, wherein the determining the second USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy comprises:
    所述终端根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。The terminal determines, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the first preset configuration policy. Two USB standards.
  5. 根据权利要求3所述的方法,其特征在于,所述终端至少支持USB 3.1  GEN 1;The method of claim 3 wherein said terminal supports at least USB 3.1 GEN 1;
    所述根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,包括:Determining the second USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy, including:
    若所述终端的Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module of the terminal is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
    若所述终端的Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
  6. 根据权利要求4或5所述的方法,其特征在于,还包括:The method according to claim 4 or 5, further comprising:
    若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段、且所述终端的Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立第二USB连接,并将所述终端的Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz frequency band, and the working frequency band supported by the Wi-Fi module of the terminal includes at least the 5 GHz frequency band, establish a second USB connection according to the USB 3.1 GEN 1 and The working frequency band of the Wi-Fi module of the terminal is adjusted to the 5 GHz band.
  7. 根据权利要求1或2所述的方法,其特征在于,所述第二预设配置策略为:The method according to claim 1 or 2, wherein the second preset configuration policy is:
    Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used by the USB module of the terminal is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
    Wi-Fi模块所工作的工作频段为5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the Wi-Fi module operates in the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准,包括:The method according to claim 7, wherein the determining the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy comprises:
    所述终端根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述终端的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。The terminal determines, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the terminal in the second preset configuration policy. Two USB standards.
  9. 根据权利要求7所述的方法,其特征在于,所述终端至少支持USB 3.1 GEN1;The method according to claim 7, wherein said terminal supports at least USB 3.1 GEN1;
    所述根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第 二USB标准,包括:Determining according to the current working frequency band of the Wi-Fi module and the second preset configuration policy Two USB standards, including:
    若所述终端的Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the current working frequency band of the Wi-Fi module of the terminal is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
    若所述终端的Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the current working frequency band of the Wi-Fi module of the terminal is the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
  10. 根据权利要求1至9任一所述的方法,其特征在于,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。The method according to any one of claims 1 to 9, wherein the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  11. 一种USB连接建立方法,其特征在于,该方法包括:A USB connection establishing method, the method comprising:
    终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the terminal establishes the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, When the Wi-Fi module supports a working frequency band of 2.4 GHz, the USB 2.0 FS is determined to be the second USB standard; or, when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB is 3.1 GEN 1 is determined to be the second USB standard;
    当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
  12. 一种USB连接建立方法,其特征在于,该方法包括:A USB connection establishing method, the method comprising:
    终端根据第一通用串行总线USB标准启动建立第一USB连接后,或者所述终端根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the terminal starts to establish the first USB connection according to the first universal serial bus USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when the Wi-Fi module of the terminal is in a working state, When the current working frequency band of the Wi-Fi module is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or, when the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined. For the second USB standard;
    当所述终端确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。When the terminal determines that the first USB standard is different from the second USB standard, establishing a second USB connection according to the second USB standard.
  13. 一种USB连接建立装置,其特征在于,该装置包括:A USB connection establishing device, the device comprising:
    确定单元,用于根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确 定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;a determining unit, configured to start after establishing a first USB connection according to the first universal serial bus USB standard, or after establishing a first USB connection according to the first USB standard, when determining that the Wi-Fi module is in an active state, according to the The working frequency band supported by the Wi-Fi module and the first preset configuration policy are Determining a second USB standard, or determining a second USB standard according to a current working frequency band of the Wi-Fi module and a second preset configuration policy;
    处理单元,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  14. 根据权利要求13所述的装置,其特征在于,所述确定单元还用于括:The apparatus according to claim 13, wherein said determining unit is further configured to:
    当确定所述Wi-Fi模块处于关闭状态,则将所述装置所支持的传输速度最高的USB标准确定为第二USB标准。When it is determined that the Wi-Fi module is in the off state, the USB standard with the highest transmission speed supported by the device is determined as the second USB standard.
  15. 根据权利要求13或14所述的装置,其特征在于,所述第一预设配置策略为:The device according to claim 13 or 14, wherein the first preset configuration policy is:
    Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
    Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  16. 根据权利要求15所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 15, wherein the determining unit is specifically configured to:
    根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述装置的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the device in the first preset configuration policy as the second USB standard .
  17. 根据权利要求15所述的装置,其特征在于,所述装置至少支持USB 3.1 GEN 1;The device according to claim 15, wherein said device supports at least USB 3.1 GEN 1;
    所述确定单元具体用于:The determining unit is specifically configured to:
    若所述Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
    若所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
  18. 根据权利要求16或17所述的装置,其特征在于,所述处理单元具 体用于:Device according to claim 16 or 17, wherein said processing unit has Body for:
    若所述Wi-Fi模块当前的工作频段为2.4GHz频段、且所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立第二USB连接,并将所述Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
  19. 根据权利要求13或14所述的装置,其特征在于,所述第二预设配置策略为:The device according to claim 13 or 14, wherein the second preset configuration policy is:
    Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used by the USB module of the device is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
    Wi-Fi模块所工作的工作频段为5GHz频段时,所述装置的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band in which the Wi-Fi module operates is the 5 GHz band, the USB standard used for the USB module of the device is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  20. 根据权利要求19所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 19, wherein the determining unit is specifically configured to:
    根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述装置的USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。Determining, according to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module of the device in the second preset configuration policy as the second USB standard .
  21. 根据权利要求19所述的装置,其特征在于,所述装置至少支持USB 3.1 GEN 1;The device according to claim 19, wherein said device supports at least USB 3.1 GEN 1;
    所述确定单元具体用于:The determining unit is specifically configured to:
    若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
    若所述Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
  22. 根据权利要求13至21任一所述的装置,其特征在于,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。The device according to any one of claims 13 to 21, wherein the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  23. 一种USB连接建立装置,其特征在于,该装置包括:A USB connection establishing device, the device comprising:
    确定单元,用于根据第一通用串行总线USB标准启动建立第一USB连接 后,或者根据第一USB标准建立了第一USB连接后,当确定所述装置的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;Determining unit for establishing a first USB connection according to the first universal serial bus USB standard After the first USB connection is established according to the first USB standard, when it is determined that the Wi-Fi module of the device is in an active state, when the working frequency band supported by the Wi-Fi module is 2.4 GHz, USB 2.0 FS is determined to be the second USB standard; or, when the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, USB 3.1 GEN 1 is determined as the second USB standard;
    处理单元,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  24. 一种USB连接建立装置,其特征在于,该装置包括:A USB connection establishing device, the device comprising:
    确定单元,用于根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定所述装置的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;a determining unit, configured to start after establishing the first USB connection according to the first universal serial bus USB standard, or after establishing the first USB connection according to the first USB standard, when determining that the Wi-Fi module of the device is in a working state USB 2.0 FS is determined to be the second USB standard when the current working frequency band of the Wi-Fi module is 2.4 GHz band; or USB 3.1 when the current working frequency band of the Wi-Fi module is 5 GHz band GEN 1 is determined to be the second USB standard;
    处理单元,用于当确定所述第一USB标准与所述第二USB标准不同,则根据所述第二USB标准建立第二USB连接。The processing unit is configured to establish a second USB connection according to the second USB standard when it is determined that the first USB standard is different from the second USB standard.
  25. 一种终端,其特征在于,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;A terminal, comprising: a processor, a memory, a Wi-Fi module, and a USB module;
    所述存储器用于存储计算机程序;The memory is for storing a computer program;
    所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
    根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当确定Wi-Fi模块处于工作状态,则根据所述Wi-Fi模块所支持的工作频段以及第一预设配置策略确定第二USB标准,或者根据所述Wi-Fi模块当前的工作频段以及第二预设配置策略确定第二USB标准;After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when it is determined that the Wi-Fi module is in the working state, according to the Wi-Fi module Supporting the working frequency band and the first preset configuration policy to determine the second USB standard, or determining the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration policy;
    当确定所述第一USB标准与所述第二USB标准不同,则指示所述USB模块根据所述第二USB标准建立第二USB连接。When it is determined that the first USB standard is different from the second USB standard, instructing the USB module to establish a second USB connection according to the second USB standard.
  26. 根据权利要求25所述的终端,其特征在于,所述处理器还用于:The terminal according to claim 25, wherein the processor is further configured to:
    当确定所述Wi-Fi模块处于关闭状态,则将所述终端所支持的传输速度最 高的USB标准确定为第二USB标准。When it is determined that the Wi-Fi module is in a closed state, the transmission speed supported by the terminal is the most The high USB standard is determined to be the second USB standard.
  27. 根据权利要求25或26所述的终端,其特征在于,所述第一预设配置策略为:The terminal according to claim 25 or 26, wherein the first preset configuration policy is:
    Wi-Fi模块所支持的工作频段为2.4GHz频段时,所述USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band supported by the Wi-Fi module is 2.4 GHz, the USB standard used in the operation of the USB module is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
    Wi-Fi模块所支持的工作频段至少包括5GHz频段时,所述终端的USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB standard used by the USB module of the terminal is any one of USB 3.1 GEN 1 and USB 3.1 GEN 1 or lower USB standard.
  28. 根据权利要求27所述的终端,其特征在于,所述处理器具体用于:The terminal according to claim 27, wherein the processor is specifically configured to:
    根据所述Wi-Fi模块所支持的工作频段,将所述第一预设配置策略中,所述USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。According to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module in the first preset configuration policy is determined as the second USB standard.
  29. 根据权利要求27所述的终端,其特征在于,所述终端至少支持USB 3.1 GEN 1;The terminal according to claim 27, wherein said terminal supports at least USB 3.1 GEN 1;
    所述处理器具体用于:The processor is specifically configured to:
    若所述Wi-Fi模块所支持的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the working frequency band supported by the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
    若所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
  30. 根据权利要求28或29所述的终端,其特征在于,所述处理器具体用于:The terminal according to claim 28 or 29, wherein the processor is specifically configured to:
    若所述Wi-Fi模块当前的工作频段为2.4GHz频段、且所述Wi-Fi模块所支持的工作频段至少包括5GHz频段,则根据USB 3.1 GEN 1建立第二USB连接,并将所述Wi-Fi模块的工作频段调整至5GHz频段。If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, and the working frequency band supported by the Wi-Fi module includes at least the 5 GHz band, establish a second USB connection according to the USB 3.1 GEN 1, and set the Wi The working frequency band of the -Fi module is adjusted to the 5 GHz band.
  31. 根据权利要求25或26所述的终端,其特征在于,所述第二预设配置策略为: The terminal according to claim 25 or 26, wherein the second preset configuration policy is:
    Wi-Fi模块所工作的工作频段为2.4GHz频段时,所述USB模块工作时所采用的USB标准为USB 2.0 FS以及USB 2.0 FS以下版本的USB标准中的任意一种;或者When the working frequency band in which the Wi-Fi module operates is 2.4 GHz, the USB standard used in the operation of the USB module is any one of USB 2.0 FS and USB standard of USB 2.0 FS or lower; or
    Wi-Fi模块所工作的工作频段为5GHz频段时,所述USB模块工作时所采用的USB标准为USB 3.1 GEN 1以及USB 3.1 GEN 1以下版本的USB标准中的任意一种。When the working frequency band in which the Wi-Fi module operates is the 5 GHz band, the USB standard used in the operation of the USB module is any one of the USB 3.1 GEN 1 and the USB standard of the USB 3.1 GEN 1 or lower.
  32. 根据权利要求31所述的终端,其特征在于,所述处理器具体用于:The terminal according to claim 31, wherein the processor is specifically configured to:
    根据所述Wi-Fi模块所支持的工作频段,将所述第二预设配置策略中,所述USB模块工作时所采用的USB标准中传输速度最高的USB标准确定为第二USB标准。According to the working frequency band supported by the Wi-Fi module, the USB standard with the highest transmission speed in the USB standard used by the USB module in the second preset configuration policy is determined as the second USB standard.
  33. 根据权利要求31所述的终端,其特征在于,所述终端至少支持USB 3.1 GEN 1;The terminal according to claim 31, wherein said terminal supports at least USB 3.1 GEN 1;
    所述处理器具体用于:The processor is specifically configured to:
    若所述Wi-Fi模块当前的工作频段为2.4GHz频段,则将USB 2.0 FS确定为第二USB标准;或者If the current working frequency band of the Wi-Fi module is the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or
    若所述Wi-Fi模块当前的工作频段为5GHz频段,则将USB 3.1 GEN 1确定为第二USB标准。If the current working frequency band of the Wi-Fi module is the 5 GHz band, the USB 3.1 GEN 1 is determined as the second USB standard.
  34. 根据权利要求25至33任一所述的终端,其特征在于,所述第一预设配置策略或者所述第二预设配置策略保存在配置文件中。The terminal according to any one of claims 25 to 33, wherein the first preset configuration policy or the second preset configuration policy is saved in a configuration file.
  35. 一种终端,其特征在于,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;A terminal, comprising: a processor, a memory, a Wi-Fi module, and a USB module;
    所述存储器用于存储计算机程序;The memory is for storing a computer program;
    所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
    根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块所支持的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块所支持的工作频段至少包括5GHz 频段时,将USB 3.1 GEN 1确定为第二USB标准;After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, in the Wi- When the working frequency band supported by the Fi module is 2.4 GHz, the USB 2.0 FS is determined as the second USB standard; or, the working frequency band supported by the Wi-Fi module includes at least 5 GHz. In the frequency band, USB 3.1 GEN 1 is determined as the second USB standard;
    当确定所述第一USB标准与所述第二USB标准不同,则指示所述USB模块根据所述第二USB标准建立第二USB连接。When it is determined that the first USB standard is different from the second USB standard, instructing the USB module to establish a second USB connection according to the second USB standard.
  36. 一种终端,其特征在于,该终端包括:处理器,存储器,Wi-Fi模块,USB模块;A terminal, comprising: a processor, a memory, a Wi-Fi module, and a USB module;
    所述存储器用于存储计算机程序;The memory is for storing a computer program;
    所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
    根据第一通用串行总线USB标准启动建立第一USB连接后,或者根据第一USB标准建立了第一USB连接后,当所述终端的Wi-Fi模块处于工作状态时,在所述Wi-Fi模块当前的工作频段为2.4GHz频段时,将USB 2.0 FS确定为第二USB标准;或者,在所述Wi-Fi模块当前的工作频段为5GHz频段时,将USB 3.1 GEN 1确定为第二USB标准;After the first USB connection is established according to the first universal serial bus USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module of the terminal is in the working state, in the Wi- When the Fi-module currently operates in the 2.4 GHz band, the USB 2.0 FS is determined to be the second USB standard; or, when the current working band of the Wi-Fi module is in the 5 GHz band, the USB 3.1 GEN 1 is determined to be the second. USB standard;
    当确定所述第一USB标准与所述第二USB标准不同,则指示所述USB模块根据所述第二USB标准建立第二USB连接。 When it is determined that the first USB standard is different from the second USB standard, instructing the USB module to establish a second USB connection according to the second USB standard.
PCT/CN2016/080719 2016-04-29 2016-04-29 Method and device for establishing usb connection WO2017185343A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680080882.4A CN108702171B (en) 2016-04-29 2016-04-29 USB connection establishing method and device
PCT/CN2016/080719 WO2017185343A1 (en) 2016-04-29 2016-04-29 Method and device for establishing usb connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/080719 WO2017185343A1 (en) 2016-04-29 2016-04-29 Method and device for establishing usb connection

Publications (1)

Publication Number Publication Date
WO2017185343A1 true WO2017185343A1 (en) 2017-11-02

Family

ID=60160659

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080719 WO2017185343A1 (en) 2016-04-29 2016-04-29 Method and device for establishing usb connection

Country Status (2)

Country Link
CN (1) CN108702171B (en)
WO (1) WO2017185343A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8340580B1 (en) * 2007-09-20 2012-12-25 Marvell International Ltd. Method and apparatus for managing coexistence interference
CN105379132A (en) * 2014-03-04 2016-03-02 联发科技股份有限公司 Integrated circuit and associated apparatus
CN105406896A (en) * 2015-10-19 2016-03-16 联想(北京)有限公司 Electronic equipment and control method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201528090U (en) * 2009-08-12 2010-07-14 华为终端有限公司 Usb interface equipment and terminal equipment
CN102523634B (en) * 2011-12-14 2015-04-29 华为终端有限公司 Data card for wireless Internet access and method for improving wireless receiving sensitivity
US9729420B2 (en) * 2012-04-26 2017-08-08 Hewlett-Packard Development Company, L.P. Decreasing USB interference to adjacent wireless device
CN104079415B (en) * 2013-03-27 2018-04-10 瑞昱半导体股份有限公司 Network equipment and its on line detection method
CN104102603B (en) * 2013-04-09 2017-03-29 瑞昱半导体股份有限公司 Universal serial bus networks interface controller and its operation mode switching method
CN103731881A (en) * 2013-12-17 2014-04-16 福建伊时代信息科技股份有限公司 Control method, device and system for WiFi access point
US20160093960A1 (en) * 2014-09-26 2016-03-31 Intel Corporation Press-Fit Internal Cable

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8340580B1 (en) * 2007-09-20 2012-12-25 Marvell International Ltd. Method and apparatus for managing coexistence interference
CN105379132A (en) * 2014-03-04 2016-03-02 联发科技股份有限公司 Integrated circuit and associated apparatus
CN105406896A (en) * 2015-10-19 2016-03-16 联想(北京)有限公司 Electronic equipment and control method

Also Published As

Publication number Publication date
CN108702171B (en) 2020-12-15
CN108702171A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
US9088906B2 (en) WiFi establishing a protected medium duration for USB-like wireless operations
US20140269468A1 (en) Systems and methods for wireless band switching
WO2014069868A1 (en) Wi-fi direct service method using nfc and device therefor
JP6054554B2 (en) System and method for concurrent device discovery
US11252549B2 (en) Communication device configured to switch wireless networks based on information received from a terminal device and to establish a wireless connection with the terminal device and non-transitory computer-readable medium for a terminal device establishing a wireless connection with a communication device
US9312948B2 (en) Method and apparatus for enabling wireless dockees to find and dock with a wireless docking host being used by another dockee
WO2016167885A1 (en) Reduction of channel access delay in wireless systems
CN113141671B (en) Communication method and device of wifi device and computer readable storage medium
US20160142900A1 (en) Wireless serial bus service continuity
CN110167184B (en) Communication apparatus and communication method thereof
JP6261577B2 (en) Wireless communication apparatus, wireless communication method, and wireless communication control program
WO2018176424A1 (en) Data routing method and apparatus
WO2017185343A1 (en) Method and device for establishing usb connection
EP2950606A1 (en) Communication device, method for controlling communication device, and program
WO2019084847A1 (en) Internet of vehicles transmission resource acquisition method and terminal
WO2018032784A1 (en) Data transmission method and terminal
WO2024022183A1 (en) Gap configuration method and apparatus, and terminal and network-side device
CN110972097A (en) Method and equipment for determining data transmission network
WO2022206672A1 (en) Method for discovering and connecting electronic device, and electronic device
US10735565B2 (en) Electronic apparatus and recording medium suitable for connection with wireless LAN (local area network) and wired LAN
WO2022206341A1 (en) Processing method for measurement gap and related product
WO2023000941A1 (en) Radio frame sending method and apparatus, and radio frame receiving method and apparatus
WO2023011414A1 (en) Radio-frame sending method and apparatus, and radio-frame receiving method and apparatus
CN110213754B (en) Bluetooth sharing method based on mobile terminal, storage medium and mobile terminal
WO2022068667A1 (en) Physical downlink shared channel (pdsch) resource determination method and related product

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16899854

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16899854

Country of ref document: EP

Kind code of ref document: A1