WO2018032784A1 - 一种数据传输方法及终端 - Google Patents

一种数据传输方法及终端 Download PDF

Info

Publication number
WO2018032784A1
WO2018032784A1 PCT/CN2017/079849 CN2017079849W WO2018032784A1 WO 2018032784 A1 WO2018032784 A1 WO 2018032784A1 CN 2017079849 W CN2017079849 W CN 2017079849W WO 2018032784 A1 WO2018032784 A1 WO 2018032784A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
frequency band
mode
preset
list
Prior art date
Application number
PCT/CN2017/079849
Other languages
English (en)
French (fr)
Inventor
卢金金
李赛
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018032784A1 publication Critical patent/WO2018032784A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Definitions

  • the present invention relates to a universal serial bus (USB) anti-jamming technology in the field of communications, and in particular, to a data transmission method and a terminal.
  • USB universal serial bus
  • wireless network devices are more and more widely used in the home, and people also hope that wireless network devices can support multiple communication methods, so that people can choose freely in life.
  • Wi-Fi Wireless-Fidelity
  • 2.4 GHz gigahertz
  • 5 GHz 5150-5250 MHz, 5250-5350 MHz, 5470-5725 MHz, and 5725-
  • the working frequency band of the USB3.0 ultra-high-speed data transmission is mainly in the 2.4-2.5 frequency range.
  • USB 3.0 Because USB 3.0 generates a kind of broadband noise when transmitting ultra-high speed data, if the current terminal Wi-Fi is working in the 2.4 GHz band, it may interfere with the Wi-Fi signal and reduce the sensitivity of Wi-Fi signal reception. Reduce the communication range of Wi-Fi signals.
  • the embodiments of the present invention provide a data transmission method and a terminal, which can prevent the terminal USB module from interfering with Wi-Fi signals, improve the sensitivity of the Wi-Fi signal, and further improve the Wi-Fi signal. Communication quality.
  • the embodiment of the invention provides a data transmission method, including:
  • the working frequency band of the wireless access point (Wi-Fi AP, Wireless Access Point) accessed by the terminal is the first frequency band, determine whether the terminal is currently transmitting data through the first USB mode; the first USB mode is Interference mode of the first frequency band;
  • the method before the determining whether the terminal is currently performing data transmission by using the first USB mode, the method further includes:
  • the selected Wi-Fi AP is selected according to the working frequency band of each Wi-Fi AP in the preset Wi-Fi AP list, and the preset Wi-Fi AP list includes multiple Wi-Fi APs.
  • the method before the selecting the Wi-Fi AP in the working frequency band of each Wi-Fi AP in the preset Wi-Fi AP list, the method further includes:
  • the obtaining the working channel of each Wi-Fi AP in the preset Wi-Fi AP list includes:
  • the obtaining the working channel of each Wi-Fi AP in the preset Wi-Fi AP list includes:
  • the embodiment of the invention further provides a terminal, including:
  • a determining unit configured to determine, if the working frequency band of the Wi-Fi AP accessed by the terminal is the first frequency band, determining whether the terminal is currently transmitting data through the first USB mode; the first USB mode is interference of the first frequency band mode;
  • the switching unit is configured to switch to the second USB mode for data transmission if the terminal is currently performing data transmission through the first USB mode.
  • the terminal further includes:
  • the selecting unit is configured to select an accessed Wi-Fi AP according to a working frequency band of each Wi-Fi AP in the preset Wi-Fi AP list, where the preset Wi-Fi AP list includes multiple Wi-Fi APs.
  • the terminal further includes:
  • a first acquiring unit configured to acquire a working channel of each Wi-Fi AP in the preset Wi-Fi AP list
  • a second acquiring unit configured to acquire an operating frequency band of each Wi-Fi AP according to the working channel of each of the Wi-Fi APs.
  • the first acquiring unit is configured to:
  • the first acquiring unit is configured to:
  • the embodiment of the invention provides a data transmission method and a terminal, and the method includes: if the working frequency band of the Wi-Fi AP accessed by the terminal is the first frequency band, determining whether the terminal is currently transmitting data through the first USB mode; The first USB mode is an interference mode of the first frequency band; if the terminal is currently performing data transmission through the first USB mode, switching to a second USB mode for data transmission.
  • the USB working mode can be switched according to the working frequency band of the current Wi-Fi terminal and the working state of the USB, thereby avoiding interference of the USB module on the Wi-Fi signal and improving the sensitivity of the Wi-Fi signal. Improve the communication quality of Wi-Fi signals.
  • FIG. 1 is a schematic flowchart 1 of a data transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart 2 of a data transmission method according to an embodiment of the present invention.
  • Figure 3 is a schematic diagram 1 of a frame structure according to an embodiment of the present invention.
  • Figure 4 is a schematic diagram 2 of a frame structure according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram 1 of a terminal according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram 2 of a terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram 3 of a terminal according to an embodiment of the present invention.
  • the embodiment of the present invention provides a data transmission method, which is applied to a mobile phone, a tablet computer, a notebook computer, a router, and the like, and supports terminals of both USB 3.0 and Wi-Fi.
  • the data transmission method includes:
  • Step 101 If the working frequency band of the Wi-Fi AP accessed by the terminal is the first frequency band, determine whether the terminal is currently performing data transmission through the first USB mode; the first USB mode is an interference mode of the first frequency band.
  • the Wi-Fi module of the terminal usually supports the 2.4 GHz and/or 5 GHz frequency band by default, that is, the terminal can access the Wi-Fi AP supporting the 2.4 GHz and/or 5 GHz frequency band, and the Wi-Fi module functions as Wi. -Fi station (site) can work in the 2.4G or 5G band.
  • the 2.4 GHz band refers to the ch1-ch13 specified by the Wi-Fi Alliance, that is, the 2412 MHz-2472 MHz band.
  • the 5 GHz band refers to the 5150-5250 MHz, 5250-5350 MHz, 5470-5725 MHz, and 5725-5825 MHz specified by the Wi-Fi Alliance.
  • the first frequency band may be a 2.4 GHz frequency band.
  • the working frequency band of the currently accessed Wi-Fi AP is 2.4 GHz
  • the current Wi-Fi of the terminal may be interfered by the USB 3.0 mode, but if The terminal does not transmit data through the USB3.0 mode. Even if the current USB module of the terminal is set to the USB3.0 mode, it will not cause interference to the Wi-Fi signal. At this time, the switching of the USB module transmission mode is meaningless. Therefore, when the working frequency band of the currently accessed Wi-Fi AP is 2.4 G Hz, it can be determined whether the terminal USB module is transmitting ultra-high speed data through the USB 3.0 mode.
  • Step 102 If the terminal is currently performing data transmission through the first USB mode, switch to the second USB mode for data transmission.
  • the default communication mode of the terminal's USB module is USB3.0 mode.
  • the USB3.0 has the ease of use and plug-and-play function of the traditional USB technology, and the actual transmission rate is 3.2 Gbps on average (ie, 320 MB/s). ), and has a backward compatible standard, that is, compatible with USB1.1 mode and USB2.0 mode.
  • the first USB mode is a USB3.0 mode
  • the second USB mode is a USB2.0 mode or a USB1.1 mode.
  • USB3.0 mode interference in order to avoid interference, you can switch the USB communication mode from USB3.0 mode to USB2.0 mode. Because the USB 2.0 mode data transmission rate is small, it will not be Wi-Fi for 2.4GHz. Interference.
  • the USB working mode can be switched according to the current working frequency band of the terminal and the working state of the USB, and the USB module of the terminal is prevented from interfering with the Wi-Fi signal, thereby improving the sensitivity of the Wi-Fi signal, thereby improving the Wi. - The communication quality of the Fi signal.
  • the terminal may further select the accessed Wi-Fi according to the working frequency band of each Wi-Fi AP in the preset Wi-Fi AP list.
  • the AP, the preset Wi-Fi AP list includes multiple Wi-Fi APs.
  • the terminal may select an accessing Wi-Fi AP according to a working frequency band and a preset policy of each Wi-Fi AP in the preset Wi-Fi AP list, where the preset policy may be that the terminal preferentially accesses the 5G. Wi-Fi AP in the band. Specifically, if there are multiple Wi-Fi APs that can be connected in the 2.4G and 5G bands, the terminal preferentially connects to the Wi-Fi AP in the 5G band. If the Wi-Fi AP connection fails in all 5G bands, continue to connect to the 2.4G band. Wi-Fi AP; if the terminal only supports the 2.4G band and does not support the 5G band, connect the external 2.4G band Wi-Fi AP.
  • the terminal may also select an access Wi-Fi AP according to the Wi-Fi AP priority or the signal strength, and the description of the present invention is not described herein.
  • the terminal may also obtain each of the preset Wi-Fi AP lists.
  • the working channels of the Wi-Fi APs are then obtained according to the working channels of each of the Wi-Fi APs.
  • the terminal may obtain the working frequency band of the Wi-Fi AP by determining which frequency band the working channel of the current Wi-Fi AP belongs to. Specifically, if the working channel of the Wi-Fi AP belongs to the 2412 MHz-2472 MHz band, the working frequency band of the Wi-Fi AP is 2.4 GHz; if the working channel of the AP belongs to 5150-5250 MHz, 5250-5350 MHz, 5470-5725 MHz, or 5725-5825 MHz The working frequency band of the Wi-Fi AP is 5 GHz. If the working channel of the current external Wi-Fi AP belongs to other frequency bands, the working frequency band of the Wi-Fi AP is illegal and is not in the processing range of the present invention.
  • the preset when obtaining the working channel of each Wi-Fi AP in the preset Wi-Fi AP list, the preset may be obtained according to a Beacon message sent by each Wi-Fi AP.
  • the working channel of each Wi-Fi AP in the Wi-Fi AP list may be obtained according to a Beacon message sent by each Wi-Fi AP.
  • the terminal can scan the Wi-Fi AP and obtain the working channel by monitoring the Beacon packet sent by each Wi-Fi AP in the preset Wi-Fi AP list.
  • the Beacon packet carries the Wi-Fi packet.
  • the SSID of the AP and the working channel information of the Wi-Fi AP the terminal may obtain the working channel of the Wi-Fi AP according to the Beacon packet. If the Wi-Fi AP list is empty, the terminal can listen to the packets sent by all external Wi-Fi APs, and obtain the working channel of each Wi-Fi AP that can receive the message.
  • the probe response report sent by each Wi-Fi AP according to the probe request Probe request message may also be received. And obtaining, according to the probe response packet of each Wi-Fi AP, a working channel of each Wi-Fi AP in the preset Wi-Fi AP list.
  • the terminal may also actively scan the Wi-Fi AP by using a Probe request message of the 802.11 protocol.
  • the terminal sends a Probe request message, where the Probe request message carries the Wi-Fi AP.
  • the SSID, the Wi-Fi AP receives the Probe request message, and sends a Probe response message to the terminal, where the Probe response message carries the working channel information of the Wi-Fi AP, and the terminal can The probe response packet acquires a working channel of the Wi-Fi AP.
  • the embodiment of the present invention provides a data transmission method, where the method includes: if the working frequency band of the Wi-Fi AP accessed by the terminal is the first frequency band, determining whether the terminal is currently transmitting data through the first USB mode; The first USB mode is an interference mode of the first frequency band; if the terminal is currently performing data transmission through the first USB mode, switching to a second USB mode for data transmission.
  • the USB working mode can be switched according to the working frequency band of the current Wi-Fi terminal and the working state of the USB, thereby avoiding interference of the USB module on the Wi-Fi signal and improving the sensitivity of the Wi-Fi signal. Improve the communication quality of Wi-Fi signals.
  • the embodiment of the present invention provides a data transmission method, which is applied to a terminal that supports both USB 3.0 and Wi-Fi, such as a mobile phone, a tablet computer, a notebook computer, and a router.
  • the data transmission method includes:
  • Step 201 The terminal is powered on and the Wi-Fi module and the USB module are loaded, and step 202 is performed.
  • a Wi-Fi module of a terminal typically supports the 2.4 GHz and/or 5 GHz bands by default, and the Wi-Fi module can operate in the 2.4G or 5G band as a Wi-Fi station.
  • the 2.4 GHz band refers to the ch1-ch13 specified by the Wi-Fi Alliance, that is, the 2412 MHz-2472 MHz band.
  • the 5 GHz band refers to the 5150-5250 MHz, 5250-5350 MHz, 5470-5725 MHz, and 5725-5825 MHz specified by the Wi-Fi Alliance.
  • the default communication mode of the USB module of the terminal is USB3.0 mode, and the USB3.0 has the ease of use and plug-and-play function of the traditional USB technology, and the actual transmission rate is about 3.2 Gbps (ie, 320 MB/S). And has a backward compatibility standard, which is compatible with both USB1.1 mode and USB2.0 mode.
  • the USB 3.0 mode indicates that the terminal hardware and software support the USB 3.0 specification, and the maximum transmission bandwidth of the terminal in ultra-high speed (2.4G-2.5 GHz) transmission is as high as 5.0 Gbps (500 MB/s).
  • the USB2.0 mode indicates that the terminal hardware and software support the USB3.0 specification, but only the low-frequency transmission has a maximum transmission bandwidth of 480 Mbps (ie, 60 MB/s), so the USB 2.0 mode does not interfere with the Wi-Fi 2.4G band. Similarly, the USB 1.1 mode does not interfere with the Wi-Fi 2.4G band.
  • Step 202 The terminal scans each Wi-Fi AP in the Wi-Fi AP list to obtain a working channel of each Wi-Fi AP, and performs step 203.
  • the Wi-Fi AP list includes multiple Wi-Fi APs, and the multiple Wi-Fi APs may be preset Wi-Fi APs during initialization, or may be a history of terminal access Wi-Fi access. Multiple Wi-Fi APs in .
  • the terminal can scan the Wi-Fi AP and obtain a working channel by listening to the Beacon packet sent by each Wi-Fi AP in the Wi-Fi AP list.
  • the first Wi-Fi AP is any Wi-Fi AP in the Wi-Fi AP list.
  • the first Wi-Fi AP sends a Beacon packet to the device.
  • the Beacon packet carries the SSID of the first Wi-Fi AP and the working channel information of the first Wi-Fi AP.
  • the working channel of the first Wi-Fi AP may be obtained according to the Beacon packet. If the Wi-Fi AP list is empty, the terminal can listen to the packets sent by all external Wi-Fi APs, and obtain the working channel of each Wi-Fi AP that can receive the message.
  • the terminal may also actively scan the Wi-Fi AP by using a Probe request message of the 802.11 protocol.
  • the second Wi-Fi AP is any one searched by the terminal. Wi-Fi AP.
  • the device sends a Probe request packet, and the Probe request packet carries the SSID of the second Wi-Fi AP. If the other Wi-Fi AP receives the Probe Request packet, the packet is discarded.
  • the second Wi-Fi AP receives the Probe request packet, and sends a Probe response packet to the terminal, where the Probe response packet carries the working channel information of the second Wi-Fi AP, and the terminal The working channel of the second Wi-Fi AP may be obtained according to the probe response message.
  • the IEEE 802.11 protocol specifies that an 802.11 frame is divided into three parts: Mac header 301 (frame header), Frame body 302 (frame entity), FCS (Frame Check). Sequence, frame check sequence) field 303.
  • the frame header 301 includes five parts, namely Frame Control, Duration, Address 1, SA (Server Agent, Service Agent), and BSSID (Basic Service Set Identifier). Set identifier), Sequence Control. Among them, as shown in Figure 4.
  • the Frame Control includes a plurality of fields, respectively, Protocol Version 401, Type 402, Subtype 403, To DS (upstream frame) 404, From DS (downstream frame) 405, and More fragments. (Segmentation Flag) 406, Retry 407, Power Management 408, More Data 409, Protected Frame 410, Order 411.
  • the Type 402 and Subtype 403 fields are used to specify the type of frame to use.
  • 802.11 WLAN packets are classified into three types: management frames, control frames, and data frames.
  • the management frame is taken as an example.
  • the management frame includes multiple packets. As shown in Table 1, Table 1 lists all the packets related to the management frame.
  • the SSID and the working channel information of the second Wi-Fi AP are stored in the Beacon packet and the Probe request or the Probe response packet of the management frame, and the terminal obtains the second Wi-Fi AP by parsing the Beacon packet or the Probe response packet. SSID and working channel information.
  • Step 203 The terminal acquires the working frequency band of each Wi-Fi AP according to the working channel of each Wi-Fi AP, and performs step 204.
  • the terminal may obtain the working frequency band of the Wi-Fi AP by determining which frequency band the working channel of the current Wi-Fi AP belongs to. Specifically, if the working channel of the AP belongs to the 2412 MHz-2472 MHz band, the working frequency band of the Wi-Fi AP is 2.4 GHz; if the working channel of the AP belongs to 5150-5250 MHz, 5250-5350 MHz, 5470-5725 MHz, or 5725-5825 MHz, then Wi The working frequency band of the Fi-Fi AP is 5 GHz. If the working channel of the current external Wi-Fi AP belongs to other frequency bands, the working frequency band of the Wi-Fi AP is illegal and is not in the scope of the present invention.
  • Step 204 The terminal selects an access Wi-Fi AP according to the working frequency band of each Wi-Fi AP, and performs step 205.
  • the terminal may select an accessing Wi-Fi AP according to a working frequency band and a preset policy of each Wi-Fi AP, where the preset policy may be that the terminal preferentially accesses the Wi-Fi AP in the 5G frequency band. Specifically, if there are multiple Wi-Fi APs that can be connected in the 2.4G and 5G bands, the terminal preferentially connects to the Wi-Fi AP in the 5G band. If the Wi-Fi AP connection fails in all 5G bands, continue to connect to the 2.4G band. Wi-Fi AP; if the terminal only supports the 2.4G band and does not support the 5G band, connect the external 2.4G band Wi-Fi AP.
  • the terminal may also select an access Wi-Fi AP according to the Wi-Fi AP priority or the signal strength, and the description of the present invention is not described herein.
  • Step 205 If the working frequency band of the Wi-Fi AP accessed by the terminal is 2.4 GHz, determine whether the terminal is currently transmitting data through the USB3.0 mode; if the terminal is currently performing data transmission through the USB3.0 mode, step 206 is performed; If the terminal does not currently perform data transmission through the USB3.0 mode, step 207 is performed.
  • the working frequency band of the Wi-Fi AP accessed by the current terminal is 2.4G Hz
  • the current Wi-Fi of the terminal may be interfered by the USB3.0 mode, but if the terminal does not pass the USB3.0 mode at this time.
  • Data transmission even if the current USB module of the terminal is set to USB3.0 mode, it will not cause interference to the Wi-Fi signal.
  • the switching of the USB module transmission mode is meaningless. Therefore, when the working frequency band of the currently accessed Wi-Fi AP is 2.4 G Hz, it can be further determined whether the terminal USB module is transmitting ultra-high speed data through the USB 3.0 mode.
  • whether the external USB device supports the USB3.0 working mode and whether the external USB device performs data with the terminal USB module determines whether the current terminal USB module performs ultra-high speed data transmission.
  • Step 206 The terminal switches the USB communication mode to the USB2.0 mode, and the process ends.
  • the Wi-Fi signal will definitely be interfered by the USB 3.0 mode, in order to avoid interference.
  • the USB communication mode can be switched from USB3.0 mode to USB2.0 mode. Since the data transmission rate of the USB 2.0 mode is small, there is no interference to Wi-Fi.
  • the USB communication mode can be switched to the USB2.0 mode through a software control process, which makes the switching process convenient and fast, and takes up less resources.
  • Step 207 The terminal keeps the current USB communication mode unchanged.
  • the USB module of the terminal is currently in the USB 2.0 mode or the USB 3.0 mode.
  • the terminal can keep the current USB communication mode unchanged, avoiding meaningless switching, and causing waste of processing resources.
  • the terminal can always set the USB module to the USB3.0 mode.
  • the embodiment of the invention provides a data transmission method.
  • the USB working mode can be switched according to the current working frequency range of the Wi-Fi terminal and the working state of the USB, thereby avoiding the Wi-Fi signal generation by the terminal USB module. Interference increases the sensitivity of Wi-Fi signals, which in turn improves the communication quality of Wi-Fi signals.
  • the embodiment of the present invention provides a terminal 50.
  • the terminal 50 includes:
  • the determining unit 501 is configured to determine whether the terminal 50 is currently transmitting data through the first USB mode if the working frequency band of the Wi-Fi AP accessed by the terminal 50 is the first frequency band; the first USB mode is the first Interference mode of the band.
  • the switching unit 502 is configured to switch to the second USB mode for data transmission if the terminal 50 is currently performing data transmission through the first USB mode.
  • the USB working mode can be switched according to the current working frequency band of the terminal and the working state of the USB, and the USB module of the terminal is prevented from interfering with the Wi-Fi signal, thereby improving the sensitivity of the Wi-Fi signal, thereby improving the Wi. - The communication quality of the Fi signal.
  • the terminal 50 further includes:
  • the selecting unit 503 is configured to select an access Wi-Fi AP according to a working frequency band of each Wi-Fi AP in the preset Wi-Fi AP list, where the preset Wi-Fi AP list includes multiple Wi-Fi APs .
  • the terminal 50 further includes:
  • the first obtaining unit 504 is configured to acquire a working channel of each Wi-Fi AP in the preset Wi-Fi AP list, and the second obtaining unit 505 is configured to be configured according to the working channel of each Wi-Fi AP. Get the working frequency band of each Wi-Fi AP.
  • the first obtaining unit 504 is configured to:
  • the first obtaining unit 504 is configured to:
  • the determining unit 501, the switching unit 502, the selecting unit 503, the first obtaining unit 504, and the second obtaining unit 505 may each be a central processing unit (CPU) and a microprocessor located in the terminal 50 ( Micro Processor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the embodiment of the present invention provides a terminal, where the terminal includes: a determining unit, configured to: if the working frequency band of the Wi-Fi AP accessed by the terminal is the first frequency band, determine whether the terminal is currently transmitting data through the first USB mode;
  • the first USB mode is an interference mode of the first frequency band.
  • the switching unit is configured to switch to the second USB mode for data transmission if the terminal is currently performing data transmission through the first USB mode.
  • the USB working mode can be switched according to the working frequency band of the current Wi-Fi terminal and the working state of the USB, thereby avoiding interference of the USB module on the Wi-Fi signal and improving the sensitivity of the Wi-Fi signal. Improve the communication quality of Wi-Fi signals.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the present disclosure is applicable to the field of communications, in order to avoid interference of the terminal USB module to Wi-Fi signals, improve the sensitivity of the Wi-Fi signal, and thereby improve the communication quality of the Wi-Fi signal.

Landscapes

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

Abstract

本发明实施例公开了一种数据传输方法,包括:若终端接入的Wi-Fi AP的工作频段为第一频段,确定终端当前是否正在通过第一USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式;若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。进一步的,本发明实施例还公开了一种终端。

Description

一种数据传输方法及终端 技术领域
本发明涉及通信领域的通用串行总线(USB,Universal Serial Bus)抗干扰技术,尤其涉及一种数据传输方法及终端。
背景技术
近年来,随着通信技术的发展,无线网络设备在家庭中的应用越来越广泛,而且人们也希望无线网络设备能够支持多种通信方式,以便于人们在生活中随意选用。
现有技术中,为了满足用户需求,无线网络设备通常会同时兼容USB 3.0和无线保真(Wi-Fi,Wireless-Fidelity)。所述Wi-Fi的工作频段有两种,一种是2.4GHz(千兆赫兹),即2412MHz-2472MHz频段,另一种是5GHz,即5150-5250MHz,5250-5350MHz,5470-5725MHz以及5725-5825MHz频段,所述USB3.0超高速数据传输时的工作频段主要在2.4-2.5频段范围。
由于USB 3.0在进行超高速数据传输时会产生一种宽频噪音,如果当前终端Wi-Fi正工作在2.4GHz频段,可能会对Wi-Fi信号产生干扰,降低Wi-Fi信号接收的灵敏度,进而缩减Wi-Fi信号的通信范围。
发明内容
为解决现有存在的技术问题,本发明实施例提供一种数据传输方法及终端,能够避免终端USB模块对Wi-Fi信号产生干扰,提高Wi-Fi信号的灵敏度,进而提高Wi-Fi信号的通信质量。
为达到上述目的,本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种数据传输方法,包括:
若终端接入的无线访问接入点(Wi-Fi AP,Wireless Access Point)的工作频段为第一频段,确定终端当前是否正在通过第一USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式;
若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。
上述方案中,在所述确定终端当前是否正在通过第一USB模式进行数据传输之前,所述方法还包括:
根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP,所述预设Wi-Fi AP列表包括多个Wi-Fi AP。
上述方案中,在所述根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP之前,所述方法还包括:
获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道;
根据所述每个Wi-Fi AP的工作信道,获取每个Wi-Fi AP的工作频段。
上述方案中,所述获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道包括:
根据每个Wi-Fi AP发送的信标Beacon报文,获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
上述方案中,所述获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道包括:
接收每个Wi-Fi AP根据探测请求(Probe request)报文发送的探测响应(Probe response)报文;
根据每个Wi-Fi AP的所述Probe response报文,获取预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
本发明实施例还提供了一种终端,包括:
确定单元,设置为若终端接入的Wi-Fi AP的工作频段为第一频段,确定终端当前是否正在通过第一USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式;
切换单元,设置为若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。
上述方案中,所述终端还包括:
选择单元,设置为根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP,所述预设Wi-Fi AP列表包括多个Wi-Fi AP。
上述方案中,所述终端还包括:
第一获取单元,设置为获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道;
第二获取单元,设置为根据所述每个Wi-Fi AP的工作信道,获取每个Wi-Fi AP的工作频段。
上述方案中,所述第一获取单元设置为:
根据每个Wi-Fi AP发送的信标Beacon报文,获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
上述方案中,所述第一获取单元设置为:
接收每个Wi-Fi AP根据Probe request报文发送的Probe response报文;
根据每个Wi-Fi AP的所述Probe response报文,获取预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
本发明实施例提供了一种数据传输方法及终端,所述方法包括:若终端接入的Wi-Fi AP的工作频段为第一频段,确定终端当前是否正在通过第一USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式;若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。相较于现有技术,可以根据终端当前Wi-Fi的工作频段和USB的工作状态切换USB的工作模式,避免终端USB模块对Wi-Fi信号产生干扰,提高了Wi-Fi信号的灵敏度,进而提高了Wi-Fi信号的通信质量。
附图说明
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。
图1为本发明实施例提供的一种数据传输方法的流程示意图1;
图2为本发明实施例提供的一种数据传输方法的流程示意图2;
图3为本发明实施例提供的一种帧结构示意图1;
图4为本发明实施例提供的一种帧结构示意图2;
图5为本发明实施例提供的一种终端的结构示意图1;
图6为本发明实施例提供的一种终端的结构示意图2;
图7为本发明实施例提供的一种终端的结构示意图3。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
本发明实施例提供一种数据传输方法,应用于手机,平板电脑,笔记本电脑,路由器等同时支持USB3.0和Wi-Fi的终端,如图1所示,所述数据传输方法包括:
步骤101、若终端接入的Wi-Fi AP的工作频段为第一频段,确定终端当前是否正在通过第一USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式。
示例的,通常终端的Wi-Fi模块默认支持2.4GHz和/或5GHz频段,即终端可以接入支持2.4GHz和/或5GHz频段的Wi-Fi AP进行工作,且所述Wi-Fi模块作为Wi-Fi station(站点)可以工作在2.4G或5G频段。所述2.4GHz频段指的是Wi-Fi联盟规定的ch1-ch13,即2412MHz-2472MHz频段。所述5GHz频段指的是Wi-Fi联盟规定的5150-5250MHz,5250-5350MHz,5470-5725MHz以及5725-5825MHz。
所述第一频段可以为2.4GHz频段,当终端当前接入的Wi-Fi AP的工作频段为2.4GHz频段时,说明终端当前的Wi-Fi可能会被USB3.0模式干扰,但是如果此时终端并没有通过USB3.0模式进行数据传输,即便终端当前USB模块的设置为USB3.0模式,也不会对Wi-Fi信号造成干扰,此时对USB模块传输模式的切换是无意义的。因此在当前终端接入的Wi-Fi AP的工作频段为2.4G Hz时,可以确定终端USB模块是否正在通过USB3.0模式进行超高速数据传输。
步骤102、若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。
示例的,终端的USB模块默认的通信模式为USB3.0模式,所述USB3.0具有传统USB技术的易用性和即插即用功能,其实际传输速率平均是3.2Gbps(即320MB/S),且具有后向兼容标准,即同时兼容USB1.1模式和USB2.0模式。
可选的,所述第一USB模式为USB3.0模式,所述第二USB模式为USB2.0模式或USB1.1模式。若终端当前正在通过USB3.0模式进行数据传输,则2.4GHz的Wi-Fi信号肯定会受到 USB3.0模式的干扰,为了避免干扰,可以将USB的通讯模式从USB3.0模式切换至USB2.0模式,由于USB 2.0模式的数据传输速率较小,因此不会对2.4GHz的Wi-Fi产生干扰。
这样一来,可以根据终端当前Wi-Fi的工作频段和USB的工作状态切换USB的工作模式,避免终端USB模块对Wi-Fi信号产生干扰,提高了Wi-Fi信号的灵敏度,进而提高了Wi-Fi信号的通信质量。
进一步的,在所述确定终端当前是否正在通过第一USB模式进行数据传输之前,终端还可以根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP,所述预设Wi-Fi AP列表包括多个Wi-Fi AP。
可选的,终端可以根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段和预设策略,选择接入的Wi-Fi AP,所述预设策略可以为终端优先接入5G频段的Wi-Fi AP。具体的,如果当前存在2.4G和5G频段多个可连接的Wi-Fi AP,终端优先连接5G频段的Wi-Fi AP,如果所有5G频段的Wi-Fi AP连接失败,则继续连接2.4G频段的Wi-Fi AP;如果终端仅支持2.4G频段,不支持5G频段,则连接外部2.4G频段Wi-Fi AP。终端还可以根据Wi-Fi AP优先级或信号强度选择接入的Wi-Fi AP,本发明在此不做赘述。
进一步的,在所述根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP之前,终端还可以获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道,然后根据所述每个Wi-Fi AP的工作信道,获取每个Wi-Fi AP的工作频段。
示例的,终端可以通过判断当前Wi-Fi AP的工作信道属于哪个频段区间获取Wi-Fi AP的工作频段。具体地,如果Wi-Fi AP的工作信道属于2412MHz-2472MHz频段,则Wi-Fi AP的工作频段是2.4GHz;如果AP的工作信道属于5150-5250MHz、5250-5350MHz、5470-5725MHz或5725-5825MHz,则Wi-Fi AP的工作频段是5GHz;如果当前外部Wi-Fi AP的工作信道属于其他频段,则Wi-Fi AP的工作频段是非法的,不在本发明的处理范围。
可选的,在获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道时,可以根据每个Wi-Fi AP发送的Beacon(信标)报文,获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
示例的,终端可以通过监听预设Wi-Fi AP列表中每个Wi-Fi AP发送的Beacon报文,对Wi-Fi AP进行扫描并获取工作信道,所述Beacon报文中携带有Wi-Fi AP的SSID以及Wi-Fi AP的工作信道信息,终端可以根据所述Beacon报文获取所述Wi-Fi AP的工作信道。如果所述Wi-Fi AP列表为空,终端可以监听外部所有Wi-Fi AP发送的报文,并获取能够接收到报文的每个Wi-Fi AP的工作信道。
可选的,在获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道时,还可以接收每个Wi-Fi AP根据探测请求Probe request报文发送的探测响应Probe response报文,然后根据每个Wi-Fi AP的所述Probe response报文,获取预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
示例的,终端也可以通过802.11协议的Probe request(探测请求)报文主动扫描所述Wi-Fi AP。终端向外发送Probe request报文,所述Probe request报文携带有所述Wi-Fi AP 的SSID,Wi-Fi AP接收到该Probe request报文,会向终端发送Probe response(探测响应)报文,所述Probe response报文携带有所述Wi-Fi AP的工作信道信息,终端可以根据所述Probe response报文获取所述Wi-Fi AP的工作信道。
本发明实施例提供了一种数据传输方法,所述方法包括:若终端接入的Wi-Fi AP的工作频段为第一频段,确定终端当前是否正在通过第一USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式;若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。相较于现有技术,可以根据终端当前Wi-Fi的工作频段和USB的工作状态切换USB的工作模式,避免终端USB模块对Wi-Fi信号产生干扰,提高了Wi-Fi信号的灵敏度,进而提高了Wi-Fi信号的通信质量。
本发明实施例提供一种数据传输方法,应用于手机,平板电脑,笔记本电脑,路由器等同时支持USB3.0和Wi-Fi的终端,如图2所示,所述数据传输方法包括:
步骤201、终端开机并加载Wi-Fi模块和USB模块,执行步骤202。
示例的,通常终端的Wi-Fi模块默认支持2.4GHz和/或5GHz频段,且所述Wi-Fi模块作为Wi-Fi station(站点)可以工作在2.4G或5G频段。所述2.4GHz频段指的是Wi-Fi联盟规定的ch1-ch13,即2412MHz-2472MHz频段。所述5GHz频段指的是Wi-Fi联盟规定的5150-5250MHz,5250-5350MHz,5470-5725MHz以及5725-5825MHz。
所述终端的USB模块默认的通信模式为USB3.0模式,所述USB3.0具有传统USB技术的易用性和即插即用功能,其实际传输速率大约是3.2Gbps(即320MB/S),且具有后向兼容标准,即同时兼容USB1.1模式和USB2.0模式。
所述USB3.0模式表示终端硬件和软件支持USB3.0规范,终端在超高速(2.4G-2.5GHz)传输的最大传输带宽高达5.0Gbps(500MB/s)。USB2.0模式表示终端硬件和软件支持USB3.0规范,但仅采用低频传输最大传输带宽为480Mbps(即60MB/s),所以USB2.0模式不会对Wi-Fi的2.4G频段产生干扰。同理,USB1.1模式也不会对Wi-Fi的2.4G频段产生干扰。
步骤202、终端扫描Wi-Fi AP列表中的每个Wi-Fi AP,获取每个Wi-Fi AP的工作信道,执行步骤203。
示例的,所述Wi-Fi AP列表包括多个Wi-Fi AP,所述多个Wi-Fi AP可以是初始化时预设的Wi-Fi AP,也可以是终端接入Wi-Fi的历史记录中的多个Wi-Fi AP。
可选的,终端可以通过监听Wi-Fi AP列表中每个Wi-Fi AP发送的Beacon报文,对Wi-Fi AP进行扫描并获取工作信道。以第一Wi-Fi AP为例进行说明,所述第一Wi-Fi AP为Wi-Fi AP列表中任意一个Wi-Fi AP。第一Wi-Fi AP在工作的过程中,会定时向外发送Beacon报文,所述Beacon报文中携带有第一Wi-Fi AP的SSID以及第一Wi-Fi AP的工作信道信息,终端可以根据所述Beacon报文获取所述第一Wi-Fi AP的工作信道。如果所述Wi-Fi AP列表为空,终端可以监听外部所有Wi-Fi AP发送的报文,并获取能够接收到报文的每个Wi-Fi AP的工作信道。
可选的,终端也可以通过802.11协议的Probe request(探测请求)报文主动扫描所述Wi-Fi AP。以第二Wi-Fi AP为例进行说明,所述第二Wi-Fi AP为终端搜索到的任意一个 Wi-Fi AP。终端向外发送Probe request报文,所述Probe request报文携带有所述第二Wi-Fi AP的SSID,若是其他Wi-Fi AP接收到该Probe request报文,则丢弃该报文,若是所述第二Wi-Fi AP接收到该Probe request报文,会向终端发送Probe response(探测响应)报文,所述Probe response报文携带有所述第二Wi-Fi AP的工作信道信息,终端可以根据所述Probe response报文获取所述第二Wi-Fi AP的工作信道。
这里介绍一下IEEE 802.11协议中的报文格式,如图3所示,IEEE 802.11协议规定802.11帧分为三个部分:Mac header 301(帧头)、Frame body 302(帧实体)、FCS(Frame Check Sequence,帧校验序列)域303。
所述帧头301包括五个部分,分别为Frame Control(帧控制),Duration(持续时间),Address 1(地址),SA(Server Agent,服务代理商),BSSID(Basic Service Set Identifier,基本服务集标识符),Sequence Control(序列控制)。其中,如图4所示。所述Frame Control包括多个字段,分别为Protocol Version(协议版本)401、Type(类型)402、Subtype(子类型)403、To DS(上行帧)404、From DS(下行帧)405、More fragments(分段标志)406、Retry(重传)407、Power management(电源管理)408、More data(更多数据)409、Protected Frame(保护框架)410、Order(秩序)411。通常所述Type 402与Subtype 403字段用来指定使用的帧类型。
实际应用中,802.11无线局域网的报文分为三种:管理帧、控制帧和数据帧。以管理帧为例进行说明,所述管理帧包括多个报文,如表1所示,表1列举了所有涉及到管理帧的报文。
表1与管理帧相关的报文
Figure PCTCN2017079849-appb-000001
所述第二Wi-Fi AP的SSID和工作信道信息存储在管理帧的Beacon报文和Probe request或Probe response报文中,终端通过解析Beacon报文或Probe response报文获取第二Wi-Fi AP 的SSID和工作信道信息。
步骤203、终端根据每个Wi-Fi AP的工作信道,获取每个Wi-Fi AP的工作频段,执行步骤204。
示例的,终端可以通过判断当前Wi-Fi AP的工作信道属于哪个频段区间获取Wi-Fi AP的工作频段。具体地,如果AP的工作信道属于2412MHz-2472MHz频段,则Wi-Fi AP的工作频段是2.4GHz;如果AP的工作信道属于5150-5250MHz、5250-5350MHz、5470-5725MHz或5725-5825MHz,则Wi-Fi AP的工作频段是5GHz;如果当前外部Wi-Fi AP的工作信道属于其他频段,则Wi-Fi AP的工作频段是非法的,不在本发明的处理范围。
步骤204、终端根据每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP,执行步骤205。
可选的,终端可以根据每个Wi-Fi AP的工作频段和预设策略,选择接入的Wi-Fi AP,所述预设策略可以为终端优先接入5G频段的Wi-Fi AP。具体的,如果当前存在2.4G和5G频段多个可连接的Wi-Fi AP,终端优先连接5G频段的Wi-Fi AP,如果所有5G频段的Wi-Fi AP连接失败,则继续连接2.4G频段的Wi-Fi AP;如果终端仅支持2.4G频段,不支持5G频段,则连接外部2.4G频段Wi-Fi AP。终端还可以根据Wi-Fi AP优先级或信号强度选择接入的Wi-Fi AP,本发明在此不做赘述。
步骤205、若终端接入的Wi-Fi AP的工作频段为2.4GHz,确定终端当前是否正在通过USB3.0模式进行数据传输;若终端当前正在通过USB3.0模式进行数据传输,执行步骤206;若终端当前未通过USB3.0模式进行数据传输,执行步骤207。
示例的,如果当前终端接入的Wi-Fi AP的工作频段为2.4G Hz,说明终端当前的Wi-Fi可能会被USB3.0模式干扰,但是如果此时终端并没有通过USB3.0模式进行数据传输,即便终端当前USB模块的设置为USB3.0模式,也不会对Wi-Fi信号造成干扰,此时对USB模块传输模式的切换是无意义的。因此在当前终端接入的Wi-Fi AP的工作频段为2.4G Hz时,可以进一步判断终端USB模块是否正在通过USB3.0模式进行超高速数据传输。
可选的,可以通过判断外部USB设备是否支持USB3.0工作模式和外部USB设备是否与终端USB模块进行数据,判断当前终端USB模块是否进行超高速数据传输。
步骤206、终端将USB的通讯模式切换为USB2.0模式,本流程结束。
示例的,如果终端接入的Wi-Fi AP的工作频段为2.4GHz,且终端当前正在通过USB3.0模式进行数据传输,则Wi-Fi信号肯定会受到USB3.0模式的干扰,为了避免干扰,可以将USB的通讯模式从USB3.0模式切换为USB2.0模式,由于USB 2.0模式的数据传输速率较小,因此不会对Wi-Fi产生干扰。
较佳的,可以通过软件控制流程将USB的通讯模式切换为USB2.0模式,使得切换过程方便快捷,占用资源较少。
步骤207、终端保持当前USB的通讯模式不变。
示例的,如果终端接入的Wi-Fi AP的工作频段为2.4GHz,但终端当前并没有通过USB3.0模式进行数据传输,则无论终端的USB模块当前处于USB2.0模式还是USB3.0模式,终端均可以保持当前USB的通讯模式不变,避免做无意义的切换,造成处理资源的浪费。
具体的,如果当前终端Wi-Fi模块的工作频段为空或5G频段,则终端可以一直将USB模块设置为USB3.0模式。
需要说明的是,本发明实施例提供的数据传输方法步骤的先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本发明的保护范围之内,因此不再赘述。
本发明实施例提供了一种数据传输方法,相较于现有技术,可以根据终端当前Wi-Fi的工作频段和USB的工作状态切换USB的工作模式,避免终端USB模块对Wi-Fi信号产生干扰,提高了Wi-Fi信号的灵敏度,进而提高了Wi-Fi信号的通信质量。
本发明实施例提供一种终端50,如图5所示,终端50包括:
确定单元501,设置为若终端50接入的Wi-Fi AP的工作频段为第一频段,确定终端50当前是否正在通过第一USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式。
切换单元502,设置为若终端50当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。
这样一来,可以根据终端当前Wi-Fi的工作频段和USB的工作状态切换USB的工作模式,避免终端USB模块对Wi-Fi信号产生干扰,提高了Wi-Fi信号的灵敏度,进而提高了Wi-Fi信号的通信质量。
可选的,如图6所示,所述终端50还包括:
选择单元503,设置为根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP,所述预设Wi-Fi AP列表包括多个Wi-Fi AP。
可选的,如图7所示,所述终端50还包括:
第一获取单元504,设置为获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道;第二获取单元505,设置为根据所述每个Wi-Fi AP的工作信道,获取每个Wi-Fi AP的工作频段。
可选的,所述第一获取单元504设置为:
根据每个Wi-Fi AP发送的信标Beacon报文,获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
可选的,所述第一获取单元504设置为:
接收每个Wi-Fi AP根据探测请求Probe request报文发送的探测响应Probe response报文;根据每个Wi-Fi AP的所述Probe response报文,获取预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
需要说明的是,第一,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
第二,所述确定单元501、切换单元502、选择单元503、第一获取单元504和第二获取单元505均可由位于终端50中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro  Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
本发明实施例提供一种终端,终端包括:确定单元,设置为若终端接入的Wi-Fi AP的工作频段为第一频段,确定终端当前是否正在通过第一USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式。切换单元,设置为若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。相较于现有技术,可以根据终端当前Wi-Fi的工作频段和USB的工作状态切换USB的工作模式,避免终端USB模块对Wi-Fi信号产生干扰,提高了Wi-Fi信号的灵敏度,进而提高了Wi-Fi信号的通信质量。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本公开适用于通信领域,用以避免终端USB模块对Wi-Fi信号产生干扰,提高Wi-Fi信号的灵敏度,进而提高Wi-Fi信号的通信质量。

Claims (11)

  1. 一种数据传输方法,包括:
    若终端接入的无线访问接入点Wi-Fi AP的工作频段为第一频段,确定终端当前是否正在通过第一通用串行总线USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式;
    若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。
  2. 根据权利要求1所述的方法,其中,在所述确定终端当前是否正在通过第一USB模式进行数据传输之前,所述方法还包括:
    根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP,所述预设Wi-Fi AP列表包括多个Wi-Fi AP。
  3. 根据权利要求2所述的方法,其中,在所述根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP之前,所述方法还包括:
    获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道;
    根据所述每个Wi-Fi AP的工作信道,获取每个Wi-Fi AP的工作频段。
  4. 根据权利要求3所述的方法,其中,所述获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道包括:
    根据每个Wi-Fi AP发送的信标Beacon报文,获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
  5. 根据权利要求3所述的方法,其中,所述获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道包括:
    接收每个Wi-Fi AP根据探测请求报文发送的探测响应报文;
    根据每个Wi-Fi AP的所述探测响应报文,获取预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
  6. 一种终端,包括:
    确定单元,设置为若终端接入的无线访问接入点Wi-Fi AP的工作频段为第一频段,确定终端当前是否正在通过第一通用串行总线USB模式进行数据传输;所述第一USB模式为所述第一频段的干扰模式;
    切换单元,设置为若终端当前正在通过第一USB模式进行数据传输,切换至第二USB模式进行数据传输。
  7. 根据权利要求6所述的终端,还包括:
    选择单元,设置为根据预设Wi-Fi AP列表中每个Wi-Fi AP的工作频段,选择接入的Wi-Fi AP,所述预设Wi-Fi AP列表包括多个Wi-Fi AP。
  8. 根据权利要求7所述的终端,还包括:
    第一获取单元,设置为获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道;
    第二获取单元,设置为根据所述每个Wi-Fi AP的工作信道,获取每个Wi-Fi AP的工作频段。
  9. 根据权利要求8所述的终端,其中,所述第一获取单元设置为:
    根据每个Wi-Fi AP发送的信标报文,获取所述预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
  10. 根据权利要求8所述的终端,其中,所述第一获取单元设置为:
    接收每个Wi-Fi AP根据探测请求报文发送的探测响应报文;
    根据每个Wi-Fi AP的所述探测响应报文,获取预设Wi-Fi AP列表中每个Wi-Fi AP的工作信道。
  11. 一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行权利要求1至5中任一项所述的方法。
PCT/CN2017/079849 2016-08-15 2017-04-10 一种数据传输方法及终端 WO2018032784A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610672085.7A CN107770785A (zh) 2016-08-15 2016-08-15 一种数据传输方法及终端
CN201610672085.7 2016-08-15

Publications (1)

Publication Number Publication Date
WO2018032784A1 true WO2018032784A1 (zh) 2018-02-22

Family

ID=61196448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079849 WO2018032784A1 (zh) 2016-08-15 2017-04-10 一种数据传输方法及终端

Country Status (2)

Country Link
CN (1) CN107770785A (zh)
WO (1) WO2018032784A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7339735B2 (ja) * 2019-01-11 2023-09-06 キヤノン株式会社 通信装置及びその制御方法及びプログラム

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140289393A1 (en) * 2013-03-20 2014-09-25 Realtek Semiconductor Corporation Network apparatus and connection detecting method thereof
CN104079415A (zh) * 2013-03-27 2014-10-01 瑞昱半导体股份有限公司 网络装置及其联线检测方法
US20140297899A1 (en) * 2013-04-02 2014-10-02 Realtek Semiconductor Corporation Universal serial bus network interface controller and operation mode switching method
CN104102603A (zh) * 2013-04-09 2014-10-15 瑞昱半导体股份有限公司 通用串行总线网络接口控制器及其操作模式切换方法
CN105704725A (zh) * 2016-03-09 2016-06-22 青岛海信电器股份有限公司 一种防止wi-fi和蓝牙通信互扰的方法及装置
CN105812018A (zh) * 2016-03-11 2016-07-27 珠海市魅族科技有限公司 一种切换传输模式的方法及移动终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792290A (zh) * 2014-12-23 2016-07-20 乐视移动智能信息技术(北京)有限公司 智能终端进行无线漫游的控制方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140289393A1 (en) * 2013-03-20 2014-09-25 Realtek Semiconductor Corporation Network apparatus and connection detecting method thereof
CN104079415A (zh) * 2013-03-27 2014-10-01 瑞昱半导体股份有限公司 网络装置及其联线检测方法
US20140297899A1 (en) * 2013-04-02 2014-10-02 Realtek Semiconductor Corporation Universal serial bus network interface controller and operation mode switching method
CN104102603A (zh) * 2013-04-09 2014-10-15 瑞昱半导体股份有限公司 通用串行总线网络接口控制器及其操作模式切换方法
CN105704725A (zh) * 2016-03-09 2016-06-22 青岛海信电器股份有限公司 一种防止wi-fi和蓝牙通信互扰的方法及装置
CN105812018A (zh) * 2016-03-11 2016-07-27 珠海市魅族科技有限公司 一种切换传输模式的方法及移动终端

Also Published As

Publication number Publication date
CN107770785A (zh) 2018-03-06

Similar Documents

Publication Publication Date Title
KR101510508B1 (ko) 단일 라디오 핸드오버를 가지는 네트워크들의 인터워킹
TWI434586B (zh) 無線網路中與均勻安全控制平面動態服務協商之方法及裝置
US10129878B2 (en) Systems and methods for dynamic band switching
US11711711B2 (en) Method for configuring measurement gap, access network device and terminal
WO2020200034A1 (zh) 一种网络接入的方法和装置
US11489760B2 (en) Multicast group creation method, multicast group joining method, and apparatus
KR20090047515A (ko) 모바일 클라이언트 보안 세션 파라미터 갱신을 위한 장치, 시스템, 및 방법
US20160309481A1 (en) Reduction of channel access delay in wireless systems
RU2684474C1 (ru) Точка доступа, поддерживающая по меньшей мере две виртуальные сети, и способ, осуществляемый посредством точки доступа, для обмена данными с беспроводным устройством
US11310658B2 (en) Method and apparatus for determining status of terminal device, and device
CN111385828A (zh) 无线局域网收发数据的方法、终端和系统及网络接入设备
WO2015127771A1 (zh) 一种接入点、站点、信标帧的发送方法及系统
TWI461090B (zh) 用於建置具有動態頻道頻寬使用能力以提供傳統裝置所需支援及節省電力的網路之方法、裝置及電腦程式產品
US20220272577A1 (en) Communication method and communication apparatus
WO2021135413A1 (zh) 一种节能控制方法及相关设备
TWI650026B (zh) Data transmission method, first device and second device
WO2018032784A1 (zh) 一种数据传输方法及终端
TWI846025B (zh) 一種通信方法及通信裝置
WO2022057828A1 (zh) 测量方法、测量装置、终端及网络设备
KR100883109B1 (ko) 다중모드 휴대단말기의 셀 관리 방법 및 장치
CN109167851B (zh) 一种获取mac地址的方法及装置
WO2020048360A1 (zh) 业务标识显示控制方法及装置
JP6659042B2 (ja) 通信装置、通信システム、通信制御方法および通信制御プログラム
WO2020103050A1 (zh) 一种数据通道的建立方法及装置、网络设备
WO2023036245A1 (zh) 通信方法和多链路设备

Legal Events

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

Ref document number: 17840760

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17840760

Country of ref document: EP

Kind code of ref document: A1