CN108702171B - USB connection establishing method and device - Google Patents

USB connection establishing method and device Download PDF

Info

Publication number
CN108702171B
CN108702171B CN201680080882.4A CN201680080882A CN108702171B CN 108702171 B CN108702171 B CN 108702171B CN 201680080882 A CN201680080882 A CN 201680080882A CN 108702171 B CN108702171 B CN 108702171B
Authority
CN
China
Prior art keywords
usb
module
frequency band
usb standard
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201680080882.4A
Other languages
Chinese (zh)
Other versions
CN108702171A (en
Inventor
许仲杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN108702171A publication Critical patent/CN108702171A/en
Application granted granted Critical
Publication of CN108702171B publication Critical patent/CN108702171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

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

Abstract

A method and a device for establishing USB connection comprise the following steps: after a terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when a Wi-Fi module of the terminal is in a working state, determining a second USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or determining the second USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy; and 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.

Description

USB connection establishing method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for establishing a Universal Serial Bus (USB) connection.
Background
At present, wireless devices using Wi-Fi (wireless fidelity) technology have two operating modes: single frequency and dual frequency. The single-frequency Wi-Fi works in a 2.4GHz frequency band; the dual-frequency Wi-Fi can work in two frequency bands of 2.4GHz and 5GHz, and can be flexibly selected according to actual conditions.
The wireless device may use a USB interface while using Wi-Fi. USB is a serial bus standard for supporting the connection between USB devices and external devices, and is also a technical specification of input/output interfaces, and is widely used in information communication products such as personal computers and mobile devices. The standards related to USB include USB 1.0, USB2.0 fs (full speed), USB 3.0, USB3.1 Generation (GEN)1, and USB3.1 GEN 2. The data transmission speed specified by each standard is different. For example, the USB 1.0 maximum data transfer speed is only 1.5 Mbps; the USB2.0 FS maximum data transfer speed is 12 Mbps.
With the improvement of the requirement on the transmission speed, at present, the maximum data transmission speed of the USB3.1 GEN1 can reach 5Gbps, and the maximum data transmission speed of the USB3.1 GEN2 can reach 10 Gbps. However, when data is transmitted through the USB3.1 GEN1 standard, the reference frequency of each data line is 2.5GHz, which may interfere with signals in the 2.4GHz band of Wi-Fi. Correspondingly, when data transmission is carried out through the USB3.1 GEN2 standard, the reference frequency of each data line is 5GHz, the frequency can generate interference on signals of a Wi-Fi 5GHz frequency band, and meanwhile, because the reference frequency is wide in bandwidth and can cover signals of a Wi-Fi 2.4GHz frequency band, the reference frequency can also generate interference on signals of the Wi-Fi 2.4GHz frequency band.
As can be seen from the foregoing description, when the wireless device uses Wi-Fi, if the wireless device uses USB3.1 GEN1 or USB3.1 GEN2 to transmit data at the same time, the USB3.1 GEN1 or USB3.1 GEN2 may interfere with the Wi-Fi signal, thereby affecting the user experience.
At present, no good solution exists for reducing the interference of the signal transmitted by the USB interface to the Wi-Fi signal.
Disclosure of Invention
The embodiment of the application provides a method and a device for establishing a USB connection, which are used for reducing interference of signals transmitted by a USB interface on Wi-Fi signals.
The embodiment of the application provides a method for establishing USB connection, which comprises the following steps:
after a terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when a Wi-Fi module of the terminal is in a working state, determining a second USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or determining the second USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy;
and 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.
According to the method provided by the embodiment of the 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 of the terminal is determined to be 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 strategy, or the second USB standard is determined according to the current working frequency band of the Wi-Fi module and the second preset configuration strategy, so that the second USB connection is established according to the second USB standard, and the interference of signals transmitted by a USB interface on Wi-Fi signals is reduced.
Optionally, the method further includes:
and when the Wi-Fi module of the terminal is determined to be in a closed state, accurately setting the USB standard with the highest transmission speed supported by the terminal as a second USB standard.
According to the method, when the terminal determines that the Wi-Fi module is in the closed state, the USB standard with the highest transmission speed supported by the terminal is accurately determined as the second USB standard, so that the USB module of the terminal works in the optimal state, and the resource utilization rate is improved.
Optionally, the first preset configuration policy is:
when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the terminal in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
According to the method, the working frequency band supported by the Wi-Fi module is matched with the USB standard adopted by the USB module of the terminal when the USB module works, so that the terminal can quickly determine the USB standard which does not interfere with the Wi-Fi signal of the Wi-Fi module, and the interference of the signal transmitted by the USB interface of the terminal on the Wi-Fi signal is avoided.
Optionally, the determining a second USB standard according to the working frequency band supported by the Wi-Fi module and a first preset configuration policy includes:
and the terminal accurately defines the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the first preset configuration strategy as a second USB standard according to the working frequency band supported by the Wi-Fi module.
In the method, the terminal accurately determines the USB standard with the highest transmission speed as the second USB standard from the first preset configuration strategy according to the working frequency band supported by the Wi-Fi module, so that the interference of the signal transmitted by the USB interface of the terminal on the Wi-Fi signal can be avoided, and the USB module of the terminal works in the optimal state.
Optionally, the terminal at least supports USB3.1 GEN 1;
the determining a second USB standard according to the working frequency band supported by the Wi-Fi module and a first preset configuration policy includes:
if the working frequency band supported by the Wi-Fi module of the terminal is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module of the terminal at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the method further includes:
if the current working frequency band of the Wi-Fi module of the terminal is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module of the terminal at least comprise a 5GHz frequency band, establishing a second USB connection according to the USB3.1 GEN1, and adjusting the working frequency band of the Wi-Fi module of the terminal to the 5GHz frequency band.
Optionally, the second preset configuration policy is:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
According to the method, the working frequency band of the Wi-Fi module is matched with the USB standard adopted by the USB module of the terminal when the terminal works, so that the terminal can quickly determine the USB standard which cannot interfere with the Wi-Fi signal of the working Wi-Fi module, and the interference of the signal transmitted by the USB interface of the terminal on the Wi-Fi signal is avoided.
Optionally, the determining a second USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration policy includes:
and the terminal accurately defines the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the second preset configuration strategy as the second USB standard according to the working frequency band supported by the Wi-Fi module.
Optionally, the terminal at least supports USB3.1 GEN 1;
the determining a second USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration policy includes:
if the current working frequency band of the Wi-Fi module of the terminal is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or
And if the current working frequency band of the Wi-Fi module of the terminal is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the first preset configuration policy or the second preset configuration policy is stored in a configuration file.
The embodiment of the application provides a method for establishing USB connection, which comprises the following steps:
after a terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when a Wi-Fi module of the terminal is in a working state and a working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
and 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.
According to the method provided by the embodiment of the 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 working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, the USB2.0 FS is determined as the second USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as the second USB standard, so that interference of signals transmitted by a USB interface of the terminal on Wi-Fi signals can be avoided.
The embodiment of the application provides a method for establishing USB connection, which comprises the following steps:
the method comprises the steps that after a terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when a Wi-Fi module of the terminal is in a working state and the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, the USB2.0 FS is determined as a second USB standard; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
and 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.
According to the method provided by the embodiment of the 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 working frequency band of the Wi-Fi module is the 2.4GHz frequency band, the USB2.0 FS is determined as the second USB standard; or when the working frequency band of the Wi-Fi module is 5GHz, determining the USB3.1 GEN1 as the second USB standard, so that interference of signals transmitted by a USB interface of the terminal on Wi-Fi signals can be avoided.
An embodiment of the present application provides a USB connection establishing apparatus, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a second USB standard according to a working frequency band supported by a Wi-Fi module and a first preset configuration strategy or determining the second USB standard according to the current working frequency band of the Wi-Fi module and the second preset configuration strategy after starting to establish a first USB connection according to a first universal serial bus USB standard or after establishing the first USB connection according to the first USB standard and when determining that the Wi-Fi module is in a working state;
and the processing unit is used for establishing second USB connection according to the second USB standard when the first USB standard is determined to be different from the second USB standard.
Optionally, the determining unit is further configured to:
and when the Wi-Fi module is determined to be in the off state, the USB standard with the highest transmission speed supported by the device is accurately determined as the second USB standard.
Optionally, the first preset configuration policy is:
when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the device when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the device in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the determining unit is specifically configured to:
and according to the working frequency band supported by the Wi-Fi module, accurately setting the USB standard with the highest transmission speed in the USB standards adopted by the USB module of the device in the first preset configuration strategy as a second USB standard.
Optionally, the apparatus supports at least USB3.1 GEN 1;
the determining unit is specifically configured to:
if the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the processing unit is specifically configured to:
and if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, establishing a second USB connection according to the USB3.1 GEN1, and adjusting the working frequency band of the Wi-Fi module to the 5GHz frequency band.
Optionally, the second preset configuration policy is:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the device when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the device when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the determining unit is specifically configured to:
and according to the working frequency band supported by the Wi-Fi module, accurately setting the USB standard with the highest transmission speed in the USB standards adopted by the USB module of the device in the second preset configuration strategy as the second USB standard.
Optionally, the apparatus supports at least USB3.1 GEN 1;
the determining unit is specifically configured to:
if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or
And if the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the first preset configuration policy or the second preset configuration policy is stored in a configuration file.
An embodiment of the present application provides a USB connection establishing apparatus, including:
the device comprises a determining unit and a judging unit, wherein the determining unit is used for determining a USB2.0 FS as a second USB standard when a Wi-Fi module of the device is determined to be in a working state and a working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band after the first USB connection is established according to a first USB standard or after the first USB connection is established according to the first USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
and the processing unit is used for establishing second USB connection according to the second USB standard when the first USB standard is determined to be different from the second USB standard.
An embodiment of the present application provides a USB connection establishing apparatus, including:
the device comprises a determining unit and a judging unit, wherein the determining unit is used for determining a USB2.0 FS as a second USB standard when a Wi-Fi module of the device is determined to be in a working state and the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band after the first USB connection is started and established according to a first USB standard or after the first USB connection is established according to the first USB standard; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
and the processing unit is used for establishing second USB connection according to the second USB standard when the first USB standard is determined to be different from the second USB standard.
An embodiment of the present application provides a terminal, including: the device comprises a processor, a memory, a Wi-Fi module and a USB module;
the memory is used for storing a computer program;
the processor runs the computer program and executes the following processes:
after a first USB connection is established according to a first USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module is determined to be in a working state, a second USB standard is determined according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or the second USB standard is determined according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy;
and when the first USB standard is determined to be different from the second USB standard, the USB module is instructed to establish a second USB connection according to the second USB standard.
Optionally, the processor is further configured to:
and when the Wi-Fi module is determined to be in the closed state, accurately setting the USB standard with the highest transmission speed supported by the terminal as a second USB standard.
Optionally, the first preset configuration policy is:
when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the terminal in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the processor is specifically configured to:
and according to the working frequency band supported by the Wi-Fi module, accurately setting the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the first preset configuration strategy as a second USB standard.
Optionally, the terminal at least supports USB3.1 GEN 1;
the processor is specifically configured to:
if the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the processor is specifically configured to:
and if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, establishing a second USB connection according to the USB3.1 GEN1, and adjusting the working frequency band of the Wi-Fi module to the 5GHz frequency band.
Optionally, the second preset configuration policy is:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the processor is specifically configured to:
and according to the working frequency band supported by the Wi-Fi module, accurately setting the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the second preset configuration strategy as the second USB standard.
Optionally, the terminal at least supports USB3.1 GEN 1;
the processor is specifically configured to:
if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or
And if the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the first preset configuration policy or the second preset configuration policy is stored in a configuration file.
An embodiment of the present application provides a terminal, including: the device comprises a processor, a memory, a Wi-Fi module and a USB module;
the memory is used for storing a computer program;
the processor runs the computer program and executes the following processes:
after a first USB connection is established according to a first USB standard, or after the first USB connection is established according to the first USB standard, when a Wi-Fi module of the terminal is in a working state and a working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
and when the first USB standard is determined to be different from the second USB standard, the USB module is instructed to establish a second USB connection according to the second USB standard.
An embodiment of the present application provides a terminal, including: the device comprises a processor, a memory, a Wi-Fi module and a USB module;
the memory is used for storing a computer program;
the processor runs the computer program and executes the following processes:
after a first USB connection is established according to a first USB standard, or after the first USB connection is established according to the first USB standard, when a Wi-Fi module of the terminal is in a working state, and when the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
and when the first USB standard is determined to be different from the second USB standard, the USB module is instructed to establish a second USB connection according to the second USB standard.
The embodiment of the application provides a method for establishing USB connection, which comprises the following steps:
when the terminal determines that a Wi-Fi module of the terminal is in a working state, determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or determining the USB standard according to a current working frequency band of the Wi-Fi module and a second preset configuration strategy;
and the terminal establishes USB connection according to the USB standard.
According to the method provided by the embodiment of the application, before the terminal establishes the USB connection, when the Wi-Fi module of the terminal is determined to be in the working state, the USB standard can be determined according to the working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or the USB standard can be determined according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy, so that the required USB standard can be rapidly determined, the USB connection can be established according to the determined USB standard, and the interference of signals transmitted by a USB interface on Wi-Fi signals can be reduced.
Optionally, the method further includes:
and when the Wi-Fi module of the terminal is determined to be in a closed state, determining the USB standard with the highest transmission speed supported by the terminal as the USB standard.
Optionally, the first preset configuration policy is:
when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the terminal in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the determining the USB standard according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy includes:
and the terminal determines the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the first preset configuration strategy as the USB standard according to the working frequency band supported by the Wi-Fi module.
Optionally, the terminal at least supports USB3.1 GEN 1;
the determining the USB standard according to the working frequency band supported by the Wi-Fi module and a first preset configuration strategy comprises:
if the working frequency band supported by the Wi-Fi module of the terminal is the 2.4GHz frequency band, determining the USB2.0 FS as the USB standard; or
And if the working frequency band supported by the Wi-Fi module of the terminal at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as the USB standard.
Optionally, the method further includes:
if the current working frequency band of the Wi-Fi module of the terminal is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module of the terminal at least comprise a 5GHz frequency band, establishing USB connection according to the USB3.1 GEN1, and adjusting the working frequency band of the Wi-Fi module of the terminal to the 5GHz frequency band.
Optionally, the second preset configuration policy is:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the determining the USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration policy includes:
and the terminal determines the USB standard with the highest transmission speed in the USB standards adopted by the terminal in the second preset configuration strategy when the USB module of the terminal works as the USB standard according to the working frequency band supported by the Wi-Fi module.
Optionally, the terminal at least supports USB3.1 GEN 1;
the determining the USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy comprises the following steps:
if the current working frequency band of the Wi-Fi module of the terminal is a 2.4GHz frequency band, determining a USB2.0 FS as the USB standard; or
And if the current working frequency band of the Wi-Fi module of the terminal is a 5GHz frequency band, determining the USB3.1 GEN1 as the USB standard.
Optionally, the first preset configuration policy or the second preset configuration policy is stored in a configuration file.
The embodiment of the application provides a method for establishing USB connection, which comprises the following steps:
when a terminal determines that a Wi-Fi module of the terminal is in a working state and a working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a USB standard;
and the terminal establishes USB connection according to the USB standard.
The embodiment of the application provides a method for establishing USB connection, which comprises the following steps:
when the terminal determines that a Wi-Fi module of the terminal is in a working state and the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a USB standard; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a USB standard;
and the terminal establishes USB connection according to the USB standard.
An embodiment of the present application provides a USB connection establishing apparatus, including:
the determining unit is used for determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy or determining the USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy when the Wi-Fi module is determined to be in a working state;
and the processing unit is used for establishing USB connection according to the USB standard.
Optionally, the determining unit is further configured to:
and when the Wi-Fi module is determined to be in the off state, determining the USB standard with the highest transmission speed supported by the device as the USB standard.
Optionally, the first preset configuration policy is:
when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the device when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the device in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the determining unit is specifically configured to:
and determining the USB standard with the highest transmission speed in the USB standards adopted by the USB module of the device in the first preset configuration strategy as the USB standard according to the working frequency band supported by the Wi-Fi module.
Optionally, the apparatus supports at least USB3.1 GEN 1;
the determining unit is specifically configured to:
if the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, determining a USB2.0 FS as the USB standard; or
And if the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as the USB standard.
Optionally, the processing unit is specifically configured to:
if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, establishing USB connection according to a USB3.1 GEN1, and adjusting the working frequency band of the Wi-Fi module to the 5GHz frequency band.
Optionally, the second preset configuration policy is:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the device when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the device when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the determining unit is specifically configured to:
and determining the USB standard with the highest transmission speed in the USB standards adopted by the USB module of the device in the second preset configuration strategy as the USB standard according to the working frequency band supported by the Wi-Fi module.
Optionally, the apparatus supports at least USB3.1 GEN 1;
the determining unit is specifically configured to:
if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as the USB standard; or
And if the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as the USB standard.
Optionally, the first preset configuration policy or the second preset configuration policy is stored in a configuration file.
An embodiment of the present application provides a USB connection establishing apparatus, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a USB2.0 FS as a USB standard when the Wi-Fi module is determined to be in a working state and a working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a USB standard;
and the processing unit is used for establishing USB connection according to the USB standard.
An embodiment of the present application provides a USB connection establishing apparatus, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a USB2.0 FS as a USB standard when the Wi-Fi module is determined to be in a working state and the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a USB standard;
and the processing unit is used for establishing USB connection according to the USB standard.
An embodiment of the present application provides a terminal, including: the device comprises a processor, a memory, a Wi-Fi module and a USB module;
the memory is used for storing a computer program;
the processor runs the computer program and executes the following processes:
when the Wi-Fi module is determined to be in a working state, determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or determining the USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy;
and indicating the USB module to establish USB connection according to the USB standard.
Optionally, the processor is further configured to:
and when the Wi-Fi module is determined to be in the closed state, determining the USB standard with the highest transmission speed supported by the terminal as the USB standard.
Optionally, the first preset configuration policy is:
when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the terminal in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the processor is specifically configured to:
and determining the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the first preset configuration strategy as the USB standard according to the working frequency band supported by the Wi-Fi module.
Optionally, the terminal at least supports USB3.1 GEN 1;
the processor is specifically configured to:
if the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the processor is specifically configured to:
if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, establishing USB connection according to a USB3.1 GEN1, and adjusting the working frequency band of the Wi-Fi module to the 5GHz frequency band.
Optionally, the second preset configuration policy is:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the processor is specifically configured to:
and determining the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the second preset configuration strategy as the USB standard according to the working frequency band supported by the Wi-Fi module.
Optionally, the terminal at least supports USB3.1 GEN 1;
the processor is specifically configured to:
if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as the USB standard; or
And if the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as the USB standard.
Optionally, the first preset configuration policy or the second preset configuration policy is stored in a configuration file.
An embodiment of the present application provides a terminal, including: the device comprises a processor, a memory, a Wi-Fi module and a USB module;
the memory is used for storing a computer program;
the processor runs the computer program and executes the following processes:
when the Wi-Fi module of the terminal is determined to be in a working state, and when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS to be a USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a USB standard;
and indicating the USB module to establish USB connection according to the USB standard.
An embodiment of the present application provides a terminal, including: the device comprises a processor, a memory, a Wi-Fi module and a USB module;
the memory is used for storing a computer program;
the processor runs the computer program and executes the following processes:
when the Wi-Fi module of the terminal is determined to be in a working state, and when the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a USB standard; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a USB standard;
and indicating the USB module to establish USB connection according to the USB standard.
Drawings
FIG. 1 is a system diagram of a typical WLAN deployment scenario;
FIG. 2 is a system diagram of another exemplary WLAN deployment scenario;
fig. 3 is a flowchart illustrating a method for establishing a USB connection according to an embodiment of the present application;
fig. 4 is a flowchart of a USB connection establishment method according to an embodiment of the present application;
fig. 5 is a flowchart of a USB connection establishment method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for establishing a USB connection according to a second embodiment of the present application;
fig. 7 is a flowchart illustrating a USB connection establishing method according to a third embodiment of the present application;
fig. 8 is a schematic flowchart of a USB connection establishment method according to a fourth embodiment of the present application;
fig. 9 is a schematic structural diagram of a USB connection establishing apparatus according to a fifth embodiment of the present application;
fig. 10 is a schematic structural diagram of a USB connection establishing apparatus according to a sixth embodiment of the present application;
fig. 11 is a schematic structural diagram of a USB connection establishing apparatus according to a seventh embodiment of the present application;
fig. 12 is a schematic structural diagram of a terminal according to an eighth embodiment of the present application;
fig. 13 is a schematic structural diagram of a terminal according to a ninth embodiment of the present application;
fig. 14 is a schematic structural diagram of a terminal according to a tenth embodiment of the present application;
fig. 15 is a schematic structural diagram of a terminal according to an eleventh embodiment of the present application.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the drawings attached hereto.
The embodiment of the application can be applied to a Wireless Local Area Network (WLAN), and the standard adopted by the current WLAN (Wireless Local Area Network) is the IEEE (Institute of Electrical and Electronics Engineers) 802.11 series. A WLAN may include one or more Basic Service Sets (BSSs), with network nodes in the BSS including APs and STAs. Each basic service set may include an AP and a plurality of STAs associated with the AP.
An AP, also known as an access point or hotspot, etc. The AP is an access point for a mobile subscriber to enter a wired network, and is mainly deployed in a home, a building, and a campus, and typically has a coverage radius of several tens of meters to hundreds of meters, and may be deployed outdoors. The AP acts as a bridge connecting the network and the wireless network, and mainly functions to connect the wireless network clients together and then to access the wireless network to the ethernet.
The STA may be a wireless communication chip, a wireless sensor, or a wireless communication terminal. For example: the mobile phone supporting the WiFi communication function, the tablet computer supporting the WiFi communication function, the set top box supporting the WiFi communication function, the smart television supporting the WiFi communication function, the smart wearable device supporting the WiFi communication function, the vehicle-mounted communication device supporting the WiFi communication function and the computer supporting the WiFi communication function.
Fig. 1 is a system diagram of a typical WLAN deployment scenario, where fig. 1 includes an AP and 3 STAs, and the AP communicates with STA1, STA2, and STA3, respectively, to form a BSS.
In a WLAN deployment scenario, there may also be a situation where multiple BSSs coexist. Fig. 2 is a system diagram of another typical WLAN deployment scenario. In the scenario shown in fig. 2, AP1, STA1, and STA5 are in the same BSS; AP2, STA2, STA3, STA4 are in the same BSS.
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 (PDA), a Mobile Internet Device (MID), a wearable device, an electronic book reader (e-book reader), and the like.
Based on the above discussion, as shown in fig. 3, a flow chart of a USB connection establishing method provided in an embodiment of the present application is schematically illustrated.
As shown in fig. 3, the method specifically includes the following steps:
step 301: after a terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when a Wi-Fi module of the terminal is in a working state, determining a second USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or determining the second USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy;
step 302: and 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.
In step 301, the first USB standard may be a USB standard preset by the terminal, that is, a USB standard preferentially selected by the terminal each time a USB connection is established. The first USB standard may be any one of USB standards supported by the terminal, and for example, may be USB2.0 FS or the like.
It should be noted that, in the embodiment of the present application, the highest USB standard supported by the terminal is at least USB3.1 GEN1, and of course, the terminal may also support USB standards such as USB3.1 GEN 2. Because the USB standard has the characteristic of downward compatibility, the terminal supporting USB3.1 GEN1 can also support USB standards of versions below USB3.1 GEN1, such as USB2.0 FS, USB 1.0; the terminal supports the USB3.1 GEN2, and can also support the USB standard of the version below the USB3.1 GEN 2. For example, the terminal supports USB3.1 GEN2, then according to the USB standard from high to low, the terminal also supports the USB standards: USB3.1 GEN1, USB2.0 FS, USB 1.0, where the higher the version of the USB standard, the higher the transfer rate of the USB.
In the embodiment of the application, the terminal may determine whether the Wi-Fi module is in the working state when the terminal starts to establish the first USB connection according to the first USB standard, or may determine whether the Wi-Fi module is in the working state after the terminal completes to establish the first USB connection according to the first USB standard. Whether the Wi-Fi module is in the working state or not can be judged by judging whether a switch of the Wi-Fi function is turned on or not, and whether the Wi-Fi module is in the working state or not can be judged by judging whether data are transmitted in a Wi-Fi mode or not.
If the terminal determines that the Wi-Fi module of the terminal is in a closed state, a USB standard can be randomly selected from the USB standards supported by the terminal as a second USB standard; the first USB standard may also be considered as the second USB standard, i.e. the USB standard is not re-determined. Optionally, if the terminal determines 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 may be accurately defined as the second USB standard. Of course, the above is only an example, and there may be other ways to determine the second USB standard, which will not be described herein again.
When the Wi-Fi module of the terminal is in a working state, the USB standard which does not conflict with the working frequency band of the current Wi-Fi module in the USB standard supported by the terminal and has the highest transmission rate can be accurately determined as the second USB standard. Certainly, the second USB standard may also be determined in other manners in this embodiment of the application, and in a first possible implementation manner, the second USB standard may be determined according to the working frequency band supported by the Wi-Fi module and the first preset configuration policy; in a second possible implementation manner, the second USB standard may be determined according to the current operating frequency band of the Wi-Fi module and a second preset configuration policy.
The first preset configuration policy or the second preset configuration policy may be stored in a configuration file, and when the terminal needs to determine the second USB standard, the terminal may read the first preset configuration policy or the second preset configuration policy through the configuration file, so as to quickly determine the first preset configuration policy or the second preset configuration policy.
In conjunction with the above description, how to determine the second USB standard when the Wi-Fi module is in the operating state is described in detail below. For convenience of description, in the following description, except for a scenario where the terminal at least supports USB3.1 GEN1, the terminal at least supports USB3.1 GEN2 is taken as an example for description, and the scenario where the terminal at least supports USB3.1 GEN2 may refer to the following description, and is not described herein again.
In a first possible implementation manner, the first preset configuration policy is:
when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the terminal in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
It should be noted that the working frequency bands supported by the Wi-Fi module at least include a 5GHz frequency band, which may mean: the working frequency band supported by the Wi-Fi module is a 5GHz frequency band, or the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band and a 5GHz frequency band.
And the terminal selects one USB standard as a second USB standard according to the working frequency band supported by the Wi-Fi module according to the first preset configuration strategy. Specifically, when determining that the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, the terminal may determine any one of USB standards of USB 2.0F and USB2.0 FS versions below as the second USB standard; when the terminal determines that the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, any one USB standard of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN1 can be accurately defined as a second USB standard.
Further, in this embodiment of the 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 USB standard with the highest transmission speed in the USB standards adopted by the USB module of the terminal in the first preset configuration policy may be accurately defined as the second USB standard according to the working frequency band supported by the Wi-Fi module. In combination with the foregoing description, when determining that the operating frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, the terminal determines the USB2.0 FS as the second USB standard. And when the terminal determines that the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
In order to avoid interference, in this embodiment of the present application, if the current working frequency band of the Wi-Fi module of the terminal is a 2.4GHz frequency band, and the working frequency band supported by the Wi-Fi module of the terminal at least includes a 5GHz frequency band, the terminal needs to adjust the working frequency band of the Wi-Fi module of the terminal to the 5GHz frequency band while establishing the second USB connection according to the USB3.1 GEN 1. Specifically, when the terminal determines the USB3.1 GEN1 as the second USB standard, the terminal determines whether the current working frequency band of the Wi-Fi module is the 2.4GHz frequency band, and if the current working frequency band of the Wi-Fi module is the 2.4GHz frequency band, the terminal closes the Wi-Fi connection of the current 2.4GHz frequency band and starts to establish the Wi-Fi connection of the 5GHz frequency band. It should be noted that the wireless local area network standard adopted by the terminal to establish the Wi-Fi connection in the 5GHz band may be determined according to an actual situation, and is not described herein again.
In the method, when the terminal determines the second USB standard, whether the current working frequency band of the Wi-Fi module is 2.4GHz or 5GHz, the terminal may need to adjust the current working frequency band of the Wi-Fi module after finally determining the second USB standard, so as to avoid the selected second USB standard from interfering with the current working frequency band of the Wi-Fi module.
In a second possible implementation manner, the second USB standard may be determined according to the current operating frequency band of the Wi-Fi module.
Specifically, in a second possible implementation manner, the second preset configuration policy may be:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or when the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the terminal when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
And the terminal selects one USB standard as a second USB standard according to the second preset configuration strategy and the working frequency band of the Wi-Fi module. Specifically, when the terminal determines that the working frequency band in which the Wi-Fi module works is the 2.4GHz frequency band, the terminal may determine any one of USB standards of USB 2.0F and USB2.0 FS versions below as the second USB standard; when the working frequency band of the Wi-Fi module is determined to be the 5GHz frequency band, the terminal can accurately calibrate any one USB standard of USB3.1 GEN1 and USB standards of versions below the USB3.1 GEN1 to be the second USB standard.
Further, in this embodiment of the application, the terminal may accurately specify, as the second USB standard, a USB standard with a highest transmission speed in the USB standards adopted 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. With reference to the foregoing description, if the current working frequency band of the Wi-Fi module of the terminal is the 2.4GHz frequency band, determining the USB2.0 FS as the second USB standard; and if the current working frequency band of the Wi-Fi module of the terminal is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Finally, in step 302, the terminal re-establishes the second USB connection according to the second USB standard after determining that the first USB standard is different from the second USB standard. Specifically, when the terminal is starting to establish a first USB connection, the terminal terminates the 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 USB connection, the terminal disconnects the first USB connection and reestablishes the second USB connection according to the second USB standard.
Correspondingly, if the terminal determines that the first USB standard is the same as the second USB standard, the terminal continues to work with the first USB connection as the standard.
The above method is described in detail below with reference to specific examples.
Fig. 4 is a flowchart of a USB connection establishment method according to an embodiment of the present application.
Step 401: after the terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, judging whether a Wi-Fi module of the terminal is in a working state, if not, namely the Wi-Fi module of the terminal is not in the working state, turning to step 402; if yes, that is, the Wi-Fi module of the terminal is in a working state, go to step 403.
Step 402: and accurately setting the USB standard with the highest transmission speed supported by the terminal as a second USB standard.
Step 403: judging whether the working frequency band supported by the Wi-Fi module of the terminal at least comprises a 5GHz frequency band, if so, turning to step 404; otherwise go to step 405.
Step 404: USB3.1 GEN1 is determined as the second USB standard.
Optionally, when the second USB standard is USB3.1 GEN1, the terminal determines whether the Wi-Fi module of the terminal operates at 2.4Ghz, if so, the current operating frequency band of the Wi-Fi module needs to be adjusted to a 5Ghz frequency band, otherwise, the Wi-Fi module continues to operate at the 5Ghz frequency band.
Step 405: the USB2.0 FS is determined as the second USB standard.
Namely, when the working frequency band supported by the Wi-Fi module of the terminal is only the 2.4GHz frequency band, the USB2.0 FS is determined as the second USB standard
Step 406: judging whether the first USB standard is the same as the second USB standard, if not, namely the first USB standard is different from the second USB standard, turning to step 407; otherwise, namely the first USB standard is the same as the second USB standard, the whole process is ended.
Step 407: and establishing a second USB connection according to the second USB standard.
Fig. 5 is a flowchart of a USB connection establishment method according to an embodiment of the present application.
Step 501: after the terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, whether a Wi-Fi module of the terminal is in a working state is judged, if not, namely the Wi-Fi module of the terminal is not in the working state, the process goes to step 502; otherwise, the Wi-Fi module of the terminal is in the working state, and go to step 503.
Step 502: and accurately setting the USB standard with the highest transmission speed supported by the terminal as a second USB standard.
Step 503: judging whether the current working frequency band of the terminal is a 5GHz frequency band, if so, turning to step 504; otherwise go to step 505.
Step 504: USB3.1 GEN1 is determined as the second USB standard.
Step 505: the USB2.0 FS is determined as the second USB standard.
Step 506: and judging whether the first USB standard is the same as the second USB standard, if not, turning to the step 507, otherwise, ending the whole process.
Step 507: and establishing a second USB connection according to the second USB standard.
Based on the above discussion, as shown in fig. 6, a flow chart of a USB connection establishing method provided in the second embodiment of the present application is schematically illustrated.
As shown in fig. 6, the method specifically includes the following steps:
step 601: after a terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when a Wi-Fi module of the terminal is in a working state and a working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
step 602: and 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.
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 accurately defined as the second USB standard.
In order to avoid interference, in this embodiment of the present application, if the current working frequency band of the Wi-Fi module of the terminal is a 2.4GHz frequency band, and the working frequency band supported by the Wi-Fi module of the terminal at least includes a 5GHz frequency band, the terminal needs to adjust the working frequency band of the Wi-Fi module of the terminal to the 5GHz frequency band while establishing the second USB connection according to the USB3.1 GEN 1.
For other contents in step 601, reference may be made to the description in step 301, and details are not repeated here.
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.
Correspondingly, when the terminal determines that the first USB standard is the same as the second USB standard, the terminal continues to work with the first USB connection as the standard.
Based on the above discussion, as shown in fig. 7, a flow chart of a USB connection establishment method provided in the third embodiment of the present application is schematically illustrated.
As shown in fig. 7, the method specifically includes the following steps:
step 701: the method comprises the steps that after a terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when a Wi-Fi module of the terminal is in a working state and the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, the USB2.0 FS is determined as a second USB standard; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
step 702: and 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.
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 accurately defined as the second USB standard.
For other contents in step 701, reference may be made to the description in step 301, and details are not repeated here.
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.
Correspondingly, if the terminal determines that the first USB standard is the same as the second USB standard, the terminal continues to work with the first USB connection as the standard.
In the embodiment of the application, after the terminal determines that the USB cable is accessed to the USB interface, before the USB is established, the terminal may also determine the working state of the Wi-Fi module. When the terminal determines that the Wi-Fi module is in the working state, the terminal can directly determine the USB standard adopted in the final working process, so that the switching of USB connection is avoided, and the efficiency is improved. As described in detail below.
Based on the above discussion, as shown in fig. 8, a flow chart of a USB connection establishing method provided in the fourth embodiment of the present application is schematically illustrated.
As shown in fig. 8, the method specifically includes the following steps:
step 801: when the terminal determines that a Wi-Fi module of the terminal is in a working state, determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or determining the USB standard according to a current working frequency band of the Wi-Fi module and a second preset configuration strategy;
step 802: and the terminal establishes USB connection according to the USB standard.
It should be noted that, other contents related to step 801 and step 802 may refer to the foregoing description, and are not described herein again.
According to the method provided by the embodiment of the application, before the terminal establishes the USB connection, when the Wi-Fi module of the terminal is determined to be in the working state, the USB standard can be determined according to the working frequency band supported by the Wi-Fi module and the first preset configuration strategy, or the USB standard can be determined according to the current working frequency band of the Wi-Fi module and the second preset configuration strategy, so that the required USB standard can be rapidly determined, and the USB connection can be established according to the determined USB standard. The determined USB standard is the USB standard which is not in conflict with the working frequency band of the Wi-Fi module according to the first preset configuration strategy and the second preset configuration strategy, so that interference of signals transmitted by the USB interface on Wi-Fi signals of the Wi-Fi module is reduced. Specifically, the method in the fourth embodiment may be executed when the terminal detects that the USB cable is inserted into the USB port, or further, determines that a USB cable connected to a peer device is inserted into the USB port of the terminal. Alternatively, the USB connection is suspended upon detection of insertion of a USB cable, and after the USB standard is determined, the USB connection is established according to the determined USB standard.
For the above method flow, a fifth embodiment of the present application further provides a USB connection establishing apparatus 900, and specific contents of the apparatus may be implemented by referring to the above method, which is not described herein again.
As shown in fig. 9, a fifth embodiment of the present application provides a structural schematic diagram of a USB connection establishing apparatus.
The apparatus may be configured to perform the method flow of the first embodiment.
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.
Referring to fig. 9, the apparatus 900 includes:
a determining unit 901, configured to determine a second USB standard according to a working frequency band supported by a Wi-Fi module and a first preset configuration policy, or determine a second USB standard according to a current working frequency band of the Wi-Fi module and a second preset configuration policy, when it is determined that the Wi-Fi module is in a working state after a first USB connection is established according to a first USB standard or after a first USB connection is established according to a first USB standard;
a processing unit 902, 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 901 is further configured to:
when the Wi-Fi module is determined to be 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:
when the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, the USB standard adopted by the USB module of the device 900 when working is any one of the USB2.0 FS and the USB standard of the version below the USB2.0 FS; or
When the working frequency band supported by the Wi-Fi module at least includes a 5GHz frequency band, the USB standard adopted by the USB module of the device 900 when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the determining unit 901 is specifically configured to:
and according to the working frequency band supported by the Wi-Fi module, accurately setting the USB standard with the highest transmission speed in the USB standards adopted by the USB module of the device 900 in the first preset configuration strategy as a second USB standard.
Optionally, the apparatus 900 supports at least USB3.1 GEN 1;
the determining unit 901 is specifically configured to:
if the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the processing unit 902 is specifically configured to:
and if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, establishing a second USB connection according to the USB3.1 GEN1, and adjusting the working frequency band of the Wi-Fi module to the 5GHz frequency band.
Optionally, the second preset configuration policy is:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the device 900 when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the device 900 when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the determining unit 901 is specifically configured to:
and according to the working frequency band supported by the Wi-Fi module, accurately setting the USB standard with the highest transmission speed in the USB standards adopted by the USB module of the device 900 in the second preset configuration policy as the second USB standard.
Optionally, the apparatus 900 supports at least USB3.1 GEN 1;
the determining unit 901 is specifically configured to:
if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or
And if the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the first preset configuration policy or the second preset configuration policy is stored in a configuration file.
As shown in fig. 10, a sixth embodiment of the present application provides a structural schematic diagram of a USB connection establishing apparatus.
The apparatus may be configured to perform the method flow of the second embodiment.
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, and the like.
Referring to fig. 10, the apparatus 1000 includes:
a determining unit 1001, configured to determine, when it is determined that a Wi-Fi module of the apparatus 1000 is in a working state and a working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, a USB2.0 FS as a second USB standard after starting to establish a first USB connection according to a first universal serial bus USB standard or after establishing the first USB connection according to the first USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a 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.
As shown in fig. 11, a seventh embodiment of the present application provides a structural schematic diagram of a USB connection establishing apparatus.
The apparatus may be configured to perform the method flow of the third embodiment.
It should be noted that, in the embodiment of the present application, the USB connection establishing apparatus 1100 may be a device such as a mobile phone, a computer, a tablet computer, a personal digital assistant, and the like.
Referring to fig. 11, the apparatus 1100 includes:
a determining unit 1101, configured to determine, when it is determined that a Wi-Fi module of the apparatus 1100 is in a working state and a current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, a USB2.0 FS as a second USB standard after a first USB connection is established according to a first USB standard or after the first USB connection is established according to the first USB standard; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a 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.
Based on the same concept, an eighth embodiment of the present application provides a terminal 1200, configured to execute the method flow of the first embodiment.
Referring to fig. 12, the terminal includes: a processor 1201, a memory 1202, a Wi-Fi module 1203, 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 used to store computer programs;
the processor 1201 runs the computer program, and executes the following processes:
after a first USB connection is established according to a first USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module is determined to be in a working state, a second USB standard is determined according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or the second USB standard is determined according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy; when it is determined that the first USB standard is different from the second USB standard, the USB module 1204 is instructed to establish a second USB connection according to the second USB standard.
Optionally, the processor 1201 is further configured to:
and when the Wi-Fi module is determined to be 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:
when the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, the USB standard adopted by the USB module of the terminal 1200 when working is any one of the USB2.0 FS and the USB standard of the version below the USB2.0 FS; or
When the working frequency band supported by the Wi-Fi module at least includes a 5GHz frequency band, the USB standard adopted by the USB module of the terminal 1200 when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the processor 1201 is specifically configured to:
and according to the working frequency band supported by the Wi-Fi module, accurately setting the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the first preset configuration strategy as a second USB standard.
Optionally, the terminal 1200 supports at least USB3.1 GEN 1;
the processor 1201 is specifically configured to:
if the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the processor 1201 is specifically configured to:
and if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, establishing a second USB connection according to the USB3.1 GEN1, and adjusting the working frequency band of the Wi-Fi module to the 5GHz frequency band.
Optionally, the second preset configuration policy is:
when the working frequency band of the Wi-Fi module is 2.4GHz, the USB standard adopted by the USB module of the terminal 1200 when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or
When the working frequency band of the Wi-Fi module is 5GHz, the USB standard adopted by the USB module of the terminal 1200 when working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1.
Optionally, the processor 1201 is specifically configured to:
and according to the working frequency band supported by the Wi-Fi module, accurately setting the USB standard with the highest transmission speed in the USB standards adopted by the terminal when the USB module of the terminal works in the second preset configuration strategy as the second USB standard.
Optionally, the terminal at least supports USB3.1 GEN 1;
the processor 1201 is specifically configured to:
if the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or
And if the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
Optionally, the first preset configuration policy or the second preset configuration policy is stored in a configuration file.
A bus interface may also be included in fig. 12, which may include any number of interconnected buses and bridges, with one or more processors represented by a processor and various circuits of memory represented by memory being linked together. The bus interface may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein.
Based on the same concept, a terminal 1300 is provided in a ninth embodiment of the present application, configured to execute the method flow of the second embodiment.
Referring to fig. 13, the terminal includes: a processor 1301, a memory 1302, a Wi-Fi module 1303, a USB module 1304;
the Wi-Fi module 1303 is used for establishing a Wi-Fi connection;
the USB module 1304 is configured to establish a USB connection;
the memory 1302 is used for storing computer programs;
the processor 1301, running the computer program, executes the following processes:
after a first USB connection is established according to a first USB standard, or after the first USB connection is established according to the first USB standard, when a Wi-Fi module of the terminal is in a working state and a working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
determining that the first USB standard is different from the second USB standard, then instructing the USB module 1304 to establish a second USB connection according to the second USB standard.
A bus interface may also be included in fig. 13, which may include any number of interconnected buses and bridges, with one or more processors represented by a processor and various circuits of memory represented by memory being linked together. The bus interface may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein.
Based on the same concept, a terminal 1400 is provided in the tenth embodiment of the present application, configured to execute the method flow of the third embodiment.
Referring to fig. 14, the terminal includes: a processor 1401, a memory 1402, a Wi-Fi module 1403, a USB module 1404;
the Wi-Fi module 1403 is used to establish a Wi-Fi connection;
the USB module 1404 is configured to establish a USB connection;
the memory 1402 is used to store computer programs;
the processor 1401 runs the computer program and executes the following processes:
after a first USB connection is established according to a first USB standard, or after the first USB connection is established according to the first USB standard, when a Wi-Fi module of the terminal is in a working state, and when the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band, determining a USB2.0 FS as a second USB standard; or when the current working frequency band of the Wi-Fi module is a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard;
when it is determined that the first USB standard is different from the second USB standard, the USB module 1404 is instructed to establish a second USB connection according to the second USB standard.
A bus interface may also be included in fig. 14, which may include any number of interconnected buses and bridges, with one or more processors represented by a processor and various circuits of memory represented by memory being linked together. The bus interface may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein.
Based on the same concept, a terminal 1500 is provided in the eleventh embodiment of the present application, configured to execute the method flow of the fourth embodiment.
Referring to fig. 15, the terminal includes: a processor 1501, a memory 1502, a Wi-Fi module 1503, a USB module 1504;
the Wi-Fi module 1503 is configured to establish a Wi-Fi connection;
the USB module 1504 is used for establishing USB connection;
the memory 1502 is used to store computer programs;
the processor 1501 runs the computer program and executes the following processes:
when the Wi-Fi module is determined to be in a working state, determining a USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy, or determining the USB standard according to the current working frequency band of the Wi-Fi module and a second preset configuration strategy;
instructing the USB module 1504 to establish a USB connection according to the USB standard.
It should be noted that, regarding 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.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product which is embodied on one or more computer-usable storage channels (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (12)

1. A method for establishing a USB connection, the method comprising:
after a terminal starts to establish a first USB connection according to a first USB standard, or after the terminal establishes the first USB connection according to the first USB standard, when a Wi-Fi module of the terminal is in a working state, determining a second USB standard according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy; the first preset configuration policy is: when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the terminal in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1; if the determined second USB standard is USB3.1 GEN1, adjusting the working frequency band of the Wi-Fi module of the terminal to a 5GHz frequency band when the current working frequency band of the Wi-Fi module of the terminal is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module of the terminal at least comprise a 5GHz frequency band;
and 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. The method of claim 1, further comprising:
and when the Wi-Fi module of the terminal is determined to be in a closed state, accurately setting the USB standard with the highest transmission speed supported by the terminal as a second USB standard.
3. The method according to claim 1, wherein the terminal supports at least USB3.1 GEN 1;
the determining a second USB standard according to the working frequency band supported by the Wi-Fi module and a first preset configuration policy includes:
if the working frequency band supported by the Wi-Fi module of the terminal is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module of the terminal at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
4. The method according to claim 1 or 2, wherein the first preset configuration policy is saved in a configuration file.
5. A USB connection establishment apparatus, comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a second USB standard according to a working frequency band supported by a Wi-Fi module and a first preset configuration strategy after starting to establish a first USB connection according to a first USB standard or after establishing the first USB connection according to the first USB standard and when determining that the Wi-Fi module is in a working state; the first preset configuration policy is: when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the device when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the device in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1; if the determined second USB standard is USB3.1 GEN1, when the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, adjusting the working frequency band of the Wi-Fi module to the 5GHz frequency band;
and the processing unit is used for establishing second USB connection according to the second USB standard when the first USB standard is determined to be different from the second USB standard.
6. The apparatus of claim 5, wherein the determining unit is further configured to:
and when the Wi-Fi module is determined to be in the off state, the USB standard with the highest transmission speed supported by the device is accurately determined as the second USB standard.
7. The apparatus of claim 5, wherein the apparatus supports at least USB3.1 GEN 1;
the determining unit is specifically configured to:
if the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
8. The apparatus according to claim 6 or 7, wherein the first preset configuration policy is stored in a configuration file.
9. A terminal, characterized in that the terminal comprises: the device comprises a processor, a memory, a Wi-Fi module and a USB module;
the memory is used for storing a computer program;
the processor runs the computer program and executes the following processes:
after a first USB connection is established according to a first USB standard, or after the first USB connection is established according to the first USB standard, when the Wi-Fi module is determined to be in a working state, a second USB standard is determined according to a working frequency band supported by the Wi-Fi module and a first preset configuration strategy; the first preset configuration policy is: when the working frequency band supported by the Wi-Fi module is a 2.4GHz frequency band, the USB standard adopted by the USB module of the terminal when working is any one of USB2.0 FS and USB standards of versions below USB2.0 FS; or when the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, the USB standard adopted by the USB module of the terminal in working is any one of USB3.1 GEN1 and USB standards of versions below USB3.1 GEN 1; if the determined second USB standard is USB3.1 GEN1, when the current working frequency band of the Wi-Fi module is a 2.4GHz frequency band and the working frequency bands supported by the Wi-Fi module at least comprise a 5GHz frequency band, adjusting the working frequency band of the Wi-Fi module to the 5GHz frequency band;
and when the first USB standard is determined to be different from the second USB standard, the USB module is instructed to establish a second USB connection according to the second USB standard.
10. The terminal of claim 9, wherein the processor is further configured to:
and when the Wi-Fi module is determined to be in the closed state, accurately setting the USB standard with the highest transmission speed supported by the terminal as a second USB standard.
11. The terminal of claim 9, wherein the terminal supports at least USB3.1 GEN 1;
the processor is specifically configured to:
if the working frequency band supported by the Wi-Fi module is the 2.4GHz frequency band, determining the USB2.0 FS as a second USB standard; or
And if the working frequency band supported by the Wi-Fi module at least comprises a 5GHz frequency band, determining the USB3.1 GEN1 as a second USB standard.
12. A terminal according to claim 9 or 10, characterised in that the first preset configuration policy is saved in a configuration file.
CN201680080882.4A 2016-04-29 2016-04-29 USB connection establishing method and device Active CN108702171B (en)

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 (2)

Publication Number Publication Date
CN108702171A CN108702171A (en) 2018-10-23
CN108702171B true CN108702171B (en) 2020-12-15

Family

ID=60160659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680080882.4A Active CN108702171B (en) 2016-04-29 2016-04-29 USB connection establishing method and device

Country Status (2)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731881A (en) * 2013-12-17 2014-04-16 福建伊时代信息科技股份有限公司 Control method, device and system for WiFi access point
CN105406896A (en) * 2015-10-19 2016-03-16 联想(北京)有限公司 Electronic equipment and control method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9107172B1 (en) * 2007-09-20 2015-08-11 Marvell International Ltd. Method and apparatus for managing coexistence interference
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
WO2013159312A1 (en) * 2012-04-26 2013-10-31 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
EP3090491A4 (en) * 2014-03-04 2017-09-06 MediaTek Inc. Integrated circuit and associated apparatus
US20160093960A1 (en) * 2014-09-26 2016-03-31 Intel Corporation Press-Fit Internal Cable

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731881A (en) * 2013-12-17 2014-04-16 福建伊时代信息科技股份有限公司 Control method, device and system for WiFi access point
CN105406896A (en) * 2015-10-19 2016-03-16 联想(北京)有限公司 Electronic equipment and control method

Also Published As

Publication number Publication date
CN108702171A (en) 2018-10-23
WO2017185343A1 (en) 2017-11-02

Similar Documents

Publication Publication Date Title
CN108494681B (en) Multilink data stream transmission method, wireless communication device and storage medium
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
EP3363255B1 (en) Access point supporting at least two virtual networks and method performed thereby for communicating with wireless device
KR20160125301A (en) Opportunistic secondary channel access
CN113141671B (en) Communication method and device of wifi device and computer readable storage medium
CN105554824A (en) Method and device for controlling radio frequency link
CN105515745A (en) Radio-frequency link control method and device
CN110167184B (en) Communication apparatus and communication method thereof
US11310794B2 (en) Data transmission method in internet of vehicles and terminal
CN108702171B (en) USB connection establishing method and device
US11012835B2 (en) Method and terminal for acquiring transmission resource in vehicle to everything
CN116437383B (en) Method and device for detecting request of multi-link communication
CN105357671A (en) System and method for connecting wireless access points with same SSID and different passwords
CN112911665B (en) Connection method of access point and electronic equipment
CN110972097B (en) Method and equipment for determining data transmission network
CN115250542A (en) Communication method and device
CN105429668A (en) Method and device for controlling radio-frequency link
CN110113143B (en) Parameter configuration method and device
WO2024093708A1 (en) Network connection method and apparatus
US10735565B2 (en) Electronic apparatus and recording medium suitable for connection with wireless LAN (local area network) and wired LAN
EP4344338A1 (en) Wireless communication apparatus, method for controlling wireless communication apparatus, and program
WO2021213320A1 (en) Wifi hotspot management method, electronic device, and storage medium
WO2021152695A1 (en) Wireless communication system, intermediate processing device, communication control method, and communication control program
CN115665887A (en) Connection establishing method, device, equipment and storage medium
CN114786198A (en) Data transmission method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant