WO2022021878A1 - 一种信道调整方法及电子设备 - Google Patents

一种信道调整方法及电子设备 Download PDF

Info

Publication number
WO2022021878A1
WO2022021878A1 PCT/CN2021/078935 CN2021078935W WO2022021878A1 WO 2022021878 A1 WO2022021878 A1 WO 2022021878A1 CN 2021078935 W CN2021078935 W CN 2021078935W WO 2022021878 A1 WO2022021878 A1 WO 2022021878A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
antenna
electronic device
signal source
wireless signal
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.)
Ceased
Application number
PCT/CN2021/078935
Other languages
English (en)
French (fr)
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
Priority to US18/007,279 priority Critical patent/US12574905B2/en
Priority to JP2023506064A priority patent/JP7554905B2/ja
Priority to EP21850839.8A priority patent/EP4181602A4/en
Publication of WO2022021878A1 publication Critical patent/WO2022021878A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0453Resources in frequency domain, e.g. a carrier in FDMA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/40Resource management for direct mode communication, e.g. D2D or sidelink
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • H04W76/36Selective release of ongoing connections for reassigning the resources associated with the released connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a channel adjustment method and electronic device.
  • a Wi-Fi chip For electronic devices to perform Wi-Fi communication, in addition to the antenna, a Wi-Fi chip needs to be set.
  • a multi-antenna electronic device with multiple antennas connected to one Wi-Fi chip when a user performs two different operations involving wireless communication channels simultaneously through the multi-antenna electronic device, such as surfing the Internet and casting a screen, the multi-antenna Two channels of an electronic device, such as the Internet channel and the screen projection channel, may form a relationship of the same frequency and different channels.
  • multiple antennas of the multi-antenna electronic device are time-divisionally switched by the same Wi-Fi chip connected to realize time-division switching of channels. In this way, extra overhead will be added to the electronic device, and the speed of two different operations, such as the speed of Internet access and screen projection, will be fast and slow, resulting in poor user experience.
  • the present application provides a channel adjustment method and an electronic device, so that when a user performs two different operations involving a channel at the same time through the electronic device, such as when surfing the Internet and casting a screen, the speed of the two different operations Both remain stable, and the two different operations are relatively smooth, improving the user experience.
  • an electronic device in a first aspect, includes: one or more processors; one or more memories; a Wi-Fi chip; N antennas, the N antennas are all connected to the Wi-Fi chip, and the N antennas include a A first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through a first channel, and the second antenna communicates with another electronic device through a second The channel communicates wirelessly with the first wireless signal source in the form of Wi-Fi AP; the Wi-Fi chip enables the first antenna and the second antenna to transmit independently through different channels in two different frequency bands at the same time.
  • the electronic device performs the following steps: when it is detected that the first channel and the second channel are two different channels in the same frequency band, the first antenna and the second antenna are time-division multiplexed, and when a preset After detecting a second wireless signal source with a frequency band different from that of the first wireless signal source within the time period, adjust the second channel, and the adjusted second channel and the first channel are different channels in different frequency bands, so The first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, while the second antenna communicates with the second wireless signal source through the adjusted second channel in a Wi-Fi P2P manner.
  • the second channel is adjusted. In this way, there is no need for Wi-Fi chip switching, and the communication between the first channel and the second channel is performed in parallel.
  • Each channel has better quality, lower packet loss rate, and lower latency.
  • the interference between the two channels is greatly reduced, and the electronic device concurrently executes the first-channel related services and the second-channel related services, such as screen projection and Internet access concurrently independently, and the two services have high fluency and better user experience.
  • the electronic device further performs the following step: after detecting that the first channel and the second channel are two different channels in the same frequency band, but no frequency band is detected within the preset time period
  • the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel
  • the second The antenna communicates wirelessly with the first wireless signal source in a Wi-Fi AP manner through the first channel.
  • the electronic device further performs the following steps: upon detecting that the first channel and the second channel are two different channels in the same frequency band, However, the second wireless signal source with a frequency band different from that of the first wireless signal source is not detected within the preset time period, and a wireless signal source with the same channel as the first channel is detected within another preset time period Afterwards, the first antenna communicates with another electronic device in a Wi-Fi P2P manner through the first channel, while the second antenna communicates with the wireless signal source through the first channel in a Wi-Fi P2P manner.
  • the electronic device supports the DBDC mode of different frequency and different channels, since no wireless signal source with a frequency band different from that of the first channel is detected, after detecting that the channel provided by the wireless signal source is the same as the first channel, the The relationship between the first channel and the second channel is adjusted to the relationship of the co-channel co-channel mode.
  • the electronic device further performs the following steps: upon detecting that the first channel and the second channel are two different channels in the same frequency band, However, the second wireless signal source whose frequency band is different from that of the first wireless signal source is not detected within the preset time period, and the wireless signal with the same channel as the first channel is not detected within another preset time period After the source, the electronic device is not processed.
  • the electronic device supports the DBDC mode of different frequency and different channels, since no wireless signal source with a frequency band different from that to which the first channel belongs, and no wireless signal source with the same channel as the first channel is detected, No action is taken and the status quo is maintained.
  • the electronic device further performs the following steps: after detecting that the first channel and the second channel are the same channel in the same frequency band, and After a second wireless signal source with a frequency band different from that of the first wireless signal source is detected within the preset time period, the second channel is adjusted, and the adjusted second channel and the first channel are in a different frequency band.
  • the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, while the second antenna communicates with the second wireless signal source through the adjusted second channel Wireless communication via Wi-Fi AP. In this way, there is no need for Wi-Fi chip switching, and the communication between the first channel and the second channel is performed in parallel.
  • Each channel has better quality, lower packet loss rate, and lower latency.
  • the interference between the two channels is greatly reduced, and the electronic device concurrently executes the first-channel related services and the second-channel related services, such as screen projection and Internet access concurrently independently, and the two services have high fluency and better user experience.
  • an electronic device in a second aspect, includes: one or more processors; one or more memories; a Wi-Fi chip; N antennas, the N antennas are all connected to the Wi-Fi chip, and the N antennas include A first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, and the second antenna communicates with another electronic device through the first channel.
  • the second channel communicates wirelessly with the first wireless signal source in the form of Wi-Fi AP; the Wi-Fi chip enables the first antenna and the second antenna to pass through different channels in two different frequency bands at the same time independently.
  • the first antenna Send a request message to the other electronic device through the first channel, where the request message includes the first channel to be adjusted, and the first channel to be adjusted and the second channel are different channels in different frequency bands , the request message is used to request wireless communication with the other electronic device in a Wi-Fi P2P manner through the first channel to be adjusted; after receiving a positive response message from the other electronic device , adjust the first channel to be the first channel to be adjusted, the first antenna communicates wirelessly with the other electronic device in a Wi-Fi P2P manner through the adjusted first channel, and the The second antenna communicates wirelessly with the first wireless signal source in the form of a Wi-Fi AP through the second channel
  • the first channel is adjusted on the basis that the second channel remains unchanged.
  • the relationship between the second channel and the first channel is adjusted to the relationship in the DBDC mode of different frequencies and different channels. In this way, there is no need for Wi-Fi chip switching, and the communication between the first channel and the second channel is performed in parallel.
  • Each channel has better quality, lower packet loss rate, and lower latency.
  • the interference between the two channels is greatly reduced, and the electronic device concurrently executes the first-channel related services and the second-channel related services, such as screen projection and Internet access concurrently independently, and the two services have high fluency and better user experience.
  • the electronic device further performs the following steps: after receiving a negative response message from the other electronic device and detecting a second frequency band with a frequency band different from that of the first wireless signal source within a preset time period After the wireless signal source, adjust the second channel, the adjusted second channel and the first channel are different channels in different frequency bands, and the first antenna communicates with another electronic device through the first channel with Wi-Fi.
  • the negative response message is used to indicate that the The other electronic device does not agree to wirelessly communicate with the electronic device in a Wi-Fi P2P manner through the to-be-adjusted first channel.
  • the adjustment of the first channel can only be abandoned at this time, and the second channel can be adjusted instead, so that the difference between the second channel and the first channel is changed.
  • the relationship is adjusted to the relationship between the DBDC modes of different frequencies and different channels.
  • the communication between the first channel and the second channel is performed in parallel.
  • Each channel has better quality, lower packet loss rate, and lower latency.
  • the interference between the two channels is greatly reduced, and the electronic device concurrently executes the first-channel related services and the second-channel related services, such as screen projection and Internet access concurrently independently, and the two services have high fluency and better user experience.
  • the electronic device further performs the following step: after receiving a negative response message from the other electronic device and not detecting the negative response message within a preset time period
  • the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, while the second antenna Wirelessly communicate with the first wireless signal source in a Wi-Fi AP manner through the first channel.
  • the first channel when the two electronic devices cannot reach an agreement through negotiation, when the second channel is adjusted instead, if no wireless signal source with a frequency band different from that of the first channel is detected, the first channel The relationship with the second channel is adjusted to the relationship of the co-channel and co-channel mode.
  • the electronic device further performs the following step: after receiving a negative response message from the other electronic device and not detecting the negative response message within a preset time period A second wireless signal source with a frequency band different from that of the first wireless signal source, and after detecting a wireless signal source with the same channel as the first channel within another preset time period, the first antenna passes through the first wireless signal source.
  • a channel wirelessly communicates with another electronic device in a Wi-Fi P2P manner, while the second antenna communicates wirelessly with the wireless signal source in a Wi-Fi AP manner through the first channel.
  • the two electronic devices cannot reach an agreement, and when the second channel is adjusted instead, if no wireless signal source with a frequency band different from that of the first channel is detected, but the After reaching the wireless signal source with the same channel as the first channel, the relationship between the first channel and the second channel is adjusted to the relationship of the same frequency and same channel mode.
  • the electronic device further performs the following step: after receiving a negative response message from the other electronic device and not detecting the negative response message within a preset time period The electronic device does not process the second wireless signal source whose frequency band is different from that of the first wireless signal source, and after the wireless signal source with the same channel as the first channel is not detected within another preset time period. In this way, in the process of adjusting the first channel, if the two electronic devices cannot reach an agreement, when the second channel is adjusted instead, if no wireless signal source with a frequency band different from that to which the first channel belongs, and no wireless signal source is detected. After detecting the wireless signal source with the same channel as the first channel, the electronic device does not process and maintains the status quo.
  • the electronic device further performs the following step: after detecting that the first channel and the second channel are the same channel in the same frequency band, the The first antenna and the second antenna are time-division multiplexed, and after a second wireless signal source with a frequency band different from that of the first wireless signal source is detected within a preset time period, the second channel is adjusted, and the adjusted The second channel and the first channel are different channels in different frequency bands.
  • the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel.
  • the adjusted second channel communicates wirelessly with the second wireless signal source in the form of a Wi-Fi AP.
  • the communication between the first channel and the second channel is performed in parallel.
  • Each channel has better quality, lower packet loss rate, and lower latency.
  • the interference between the two channels is greatly reduced, and the electronic device concurrently executes the first-channel related services and the second-channel related services, such as screen projection and Internet access concurrently independently, and the two services have high fluency and better user experience.
  • an electronic device in a third aspect, includes: one or more processors; one or more memories; a Wi-Fi chip; N antennas, the N antennas are all connected to the Wi-Fi chip, and the N antennas include A first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna is in an idle state, and the second antenna communicates with the first wireless signal source through the second channel in the form of a Wi-Fi AP Wireless communication; the Wi-Fi chip enables the first antenna and the second antenna to simultaneously independently transmit signals through different channels in two different frequency bands; and one or more computer programs, wherein the one or more computer programs stored on the memory that, when executed by the one or more processors, cause the electronic device to perform the steps of: receiving an input; responsive to the input, the The first antenna communicates wirelessly with another electronic device in the form of Wi-Fi P2P through the first channel, while the second antenna communicates wirelessly with the first wireless signal source through the second channel in the form of Wi-Fi AP ; the
  • the input may be user input, or may be an input message or an input instruction sent to the electronic device by another electronic device or other electronic devices.
  • the electronic device only establishes a Wi-Fi wireless communication connection channel with another electronic device, and wants to establish a Wi-Fi wireless communication connection channel with other electronic devices, the channel of the new channel and the channel of the established channel are formed.
  • the relationship between the DBDC modes of different frequencies and different channels. In this way, after the channel is newly created, the first channel and the second channel are communicated in parallel without Wi-Fi chip switching. The quality of each channel is better, the packet loss rate is lower, and the delay is lower.
  • the interference with the second channel is greatly reduced, and the electronic device concurrently executes the first channel related services and the second channel related services, such as screen projection and Internet access independently and concurrently, and the fluency of the two services is relatively high. User experience is better.
  • an electronic device in a fourth aspect, includes: one or more processors; one or more memories; a Wi-Fi chip; N antennas, the N antennas are all connected to the Wi-Fi chip, and the N antennas include A first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through a first channel, and the second antenna is idle state; the Wi-Fi chip can enable the first antenna and the second antenna to transmit signals independently through different channels in two different frequency bands at the same time; and one or more computer programs, wherein the one or A plurality of computer programs are stored on the memory, and when executed by the one or more processors, the computer programs cause the electronic device to perform the following steps: upon receiving an input, and detecting within a preset time period After reaching the first wireless signal source whose frequency band is different from that to which the first channel belongs, the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the
  • the second channel and the first wireless signal source communicate wirelessly in the form of Wi-Fi AP; the first channel and the second channel are different channels in different frequency bands; wherein, the input is used to instruct the electronic device Communicate wirelessly with the wireless signal source in the form of Wi-Fi AP.
  • the input may be user input, or may be an input message or an input instruction sent to the electronic device by another electronic device or other electronic devices.
  • the electronic device only establishes a Wi-Fi wireless communication connection channel with another electronic device, and wants to establish a Wi-Fi wireless communication connection channel with other electronic devices, the channel of the new channel and the channel of the established channel are formed. The relationship between the DBDC modes of different frequencies and different channels.
  • the first channel and the second channel are communicated in parallel without Wi-Fi chip switching.
  • the quality of each channel is better, the packet loss rate is lower, and the delay is lower.
  • the interference with the second channel is greatly reduced, and the electronic device concurrently executes the first channel related services and the second channel related services, such as screen projection and Internet access independently and concurrently, and the fluency of the two services is relatively high. User experience is better.
  • the electronic device further performs the following steps: after receiving an input and not detecting a first wireless signal source with a frequency band different from that to which the first channel belongs within a preset time period, but within a preset time period After detecting a second wireless signal source whose frequency band is different from the frequency band to which the first channel belongs, the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, and the second antenna Wirelessly communicate with the second wireless signal source in a Wi-Fi AP manner through the first channel.
  • the input may be user input, or may be an input message or an input instruction sent to the electronic device by another electronic device or other electronic devices. In this way, although the electronic device supports the DBDC mode of different frequency and different channels, since no wireless signal source with a frequency band different from that of the first channel is detected, the relationship between the first channel and the second channel is adjusted to the same frequency and same channel mode relationship.
  • an electronic device in a fifth aspect, includes: one or more processors; one or more memories; a Wi-Fi chip; N antennas, the N antennas are all connected to the Wi-Fi chip, and the N antennas include A first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, and the second antenna communicates with another electronic device through the first channel.
  • the second channel communicates wirelessly with the first wireless signal source in the form of Wi-Fi AP; the Wi-Fi chip enables the first antenna and the second antenna to pass through different channels in two different frequency bands at the same time independently.
  • the electronic device performs the following steps: after detecting that the first channel and the second channel are two different channels in the same frequency band, and the first antenna and the second antenna are time-division multiplexed, or After detecting that the first channel and the second channel are different channels in two different frequency bands, the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel , while the second antenna communicates wirelessly with the first wireless signal source through the first channel in the form of a Wi-Fi AP; or, when it is detected that the first channel and the second channel are two Different channels under the same frequency band, and the first antenna and the second antenna are time-division multiplexed, or after it is detected that the first channel and the second channel are different channels under two different frequency bands , the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P
  • a channel adjustment method is provided.
  • the method is applied to an electronic device, and the electronic device includes: one or more processors; one or more memories; a Wi-Fi chip; and N antennas, all of which are connected to the Wi-Fi chip,
  • the N antennas include a first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, so
  • the second antenna communicates wirelessly with the first wireless signal source in the form of a Wi-Fi access point AP through the second channel; the Wi-Fi chip enables the first antenna and the second antenna to pass through two channels simultaneously.
  • Different channels in different frequency bands send signals independently; the method includes: after detecting that the first channel and the second channel are two different channels in the same frequency band, the first antenna and the Two-antenna time-division multiplexing, and after detecting a second wireless signal source with a frequency band different from that of the first wireless signal source within a preset time period, adjust the second channel, and the adjusted second channel is the same as the first wireless signal source.
  • a channel is a different channel in different frequency bands
  • the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel
  • the second antenna communicates with another electronic device through the adjusted second channel.
  • the second wireless signal source communicates wirelessly in the form of a Wi-Fi AP.
  • a channel adjustment method is provided.
  • the method is applied to an electronic device, and the electronic device includes: one or more processors; one or more memories; a Wi-Fi chip; and N antennas, all of which are connected to the Wi-Fi chip,
  • the N antennas include a first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, so The second antenna communicates wirelessly with the first wireless signal source in the form of Wi-Fi AP through the second channel; the Wi-Fi chip enables the first antenna and the second antenna to pass through two different frequency bands at the same time.
  • the different channels in the same frequency band send signals independently; the method includes: when it is detected that the first channel and the second channel are two different channels in the same frequency band, and the first antenna and the second antenna After time-division multiplexing, the first antenna sends a request message to the other electronic device through the first channel, where the request message includes the first channel to be adjusted, the first channel to be adjusted is the same as the first channel to be adjusted.
  • the second channel is a different channel under different frequency bands, and the request message is used to request wireless communication with the other electronic device in a Wi-Fi P2P manner through the first channel to be adjusted;
  • the first channel is adjusted to the first channel to be adjusted, and the first antenna communicates with the other electronic device via the adjusted first channel in Wi-Fi connection.
  • -Fi P2P wireless communication while the second antenna communicates wirelessly with the first wireless signal source in a Wi-Fi AP manner through the second channel; wherein, the positive response message is used to indicate the The other electronic device agrees to wirelessly communicate with the electronic device in a Wi-Fi P2P manner through the to-be-adjusted first channel.
  • any implementation manner in the seventh aspect reference may be made to any implementation manner in the second aspect.
  • the technical effects corresponding to the seventh aspect and any implementation manner of the seventh aspect reference may be made to the technical effects corresponding to the second aspect and any implementation manner of the second aspect, which will not be repeated here.
  • a channel adjustment method is provided.
  • the method is applied to an electronic device, and the electronic device includes: one or more processors; one or more memories; a Wi-Fi chip; and N antennas, all of which are connected to the Wi-Fi chip,
  • the N antennas include a first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna is in an idle state, and the second antenna communicates with the first wireless signal source through the second channel.
  • Wireless communication in the form of Wi-Fi AP the Wi-Fi chip enables the first antenna and the second antenna to transmit signals independently through different channels in two different frequency bands at the same time; the method includes: receiving to an input; in response to the input, the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through a first channel, while the second antenna communicates with the first wireless device through a second channel
  • the signal source communicates wirelessly in the form of Wi-Fi AP; the first channel and the second channel are different channels in different frequency bands; or, the first antenna communicates with another electronic device through the second channel to Wi-Fi P2P wireless communication, while the second antenna communicates with the first wireless signal source wirelessly in Wi-Fi AP through the second channel; wherein, the input is used to instruct the electronic The device communicates wirelessly with another electronic device in a Wi-Fi P2P manner.
  • a channel adjustment method is provided.
  • the method is applied to an electronic device, and the electronic device includes: one or more processors; one or more memories; a Wi-Fi chip; and N antennas, all of which are connected to the Wi-Fi chip,
  • the N antennas include a first antenna and a second antenna; N is a positive integer greater than or equal to 2; the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, so the second antenna is in an idle state; the Wi-Fi chip can enable the first antenna and the second antenna to transmit signals independently through different channels in two different frequency bands at the same time; the method includes: when receiving After receiving an input, and detecting a first wireless signal source with a frequency band different from that of the first channel within a preset time period, the first antenna communicates with another electronic device in a Wi-Fi P2P manner through the first channel.
  • the second antenna communicates wirelessly with the first wireless signal source in the form of Wi-Fi AP through the second channel; the first channel and the second channel are different channels in different frequency bands; wherein , the input is used to instruct the electronic device to communicate wirelessly with the wireless signal source in the form of a Wi-Fi AP.
  • a computer-readable storage medium includes a computer program that, when the computer program is run on an electronic device, causes the electronic device to perform the sixth aspect and any one of the implementations of the sixth aspect, the seventh aspect and the seventh aspect Any one of the implementation manners of the eighth aspect and any one of the implementation manners of the eighth aspect, or the ninth aspect and any one of the implementation manners of the ninth aspect.
  • any implementation manner and corresponding technical effect of the tenth aspect please refer to the implementation manner and corresponding technical effect of the sixth aspect, seventh aspect, eighth aspect, and ninth aspect, as well as the sixth aspect, seventh aspect, and third aspect. Any one of the implementation manners and corresponding technical effects of the eighth aspect and the ninth aspect will not be repeated here.
  • a computer program product When it runs on a computer, the computer is made to execute the sixth aspect and any one of the implementation manners of the sixth aspect, the seventh aspect and any one of the implementation manners of the seventh aspect, and any one of the eighth aspect and the eighth aspect An implementation manner, or the ninth aspect and the method in any implementation manner of the ninth aspect.
  • any one of the implementation manners and corresponding technical effects in the eleventh aspect can refer to the implementation manners and corresponding technical effects of the sixth aspect, seventh aspect, eighth aspect, and ninth aspect, as well as the sixth aspect, seventh aspect, Any one of the implementation manners and corresponding technical effects of the eighth aspect and the ninth aspect will not be repeated here.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a Wi-Fi P2P connection provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of the principle of time-sharing scheduling of a mobile device in a DBAC mode according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of a hardware structure of a mobile device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a software structure of a mobile device provided by an embodiment of the present application.
  • FIG. 6A and FIG. 6B are schematic diagrams comparing results of a channel adjustment method provided by an embodiment of the present application.
  • 6C is a schematic flowchart of a channel adjustment method provided by an embodiment of the present application.
  • FIG. 6D is a schematic diagram of a result comparison of a channel adjustment method provided by an embodiment of the present application.
  • 6E is a schematic flowchart of a channel adjustment method provided by an embodiment of the present application.
  • FIG. 7A is a schematic diagram of a result comparison of a channel adjustment method provided by an embodiment of the present application.
  • FIG. 7B is a schematic flowchart of a channel adjustment method provided by an embodiment of the present application.
  • FIG. 8A and FIG. 8B are schematic diagrams comparing results of a channel adjustment method provided by an embodiment of the present application.
  • 8C is a schematic flowchart of a channel adjustment method provided by an embodiment of the present application.
  • FIG. 9A and FIG. 9B are schematic diagrams comparing results of a channel adjustment method provided by an embodiment of the present application.
  • FIG. 9C is a schematic diagram of a result comparison of a channel adjustment method provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an apparatus provided by an embodiment of the present application.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their conjugations all mean “including but not limited to” unless specifically emphasized otherwise.
  • the channel is the channel through which the signal is transmitted in the communication system, and is composed of the transmission medium through which the signal is transmitted from the transmitting end to the receiving end.
  • the 2.4GHz Wi-Fi frequency band is divided into 13 overlapping channels, each with a width of 22MHz (the IEEE 802.11g and IEEE 802.11n standards have a width of 20MHz for each channel, and IEEE 802.10B The bandwidth of each channel in the standard is 22MHz); the 5GHz Wi-Fi band is divided into 201 channels.
  • the same-frequency and different-channel mode also known as DBAC mode, refers to the use of two channels connected by Wi-Fi to communicate with external devices respectively.
  • the two channels are different but belong to the same frequency band.
  • the mobile device occupies the first channel by casting the screen to the electronic device; the interaction between the mobile device and the routing device occupies the second channel; the first channel and the second channel are different channels in the same frequency band (for example, the 5GHz Wi-Fi frequency band).
  • the 5GHz Wi-Fi frequency band and the 2.4GHz Wi-Fi frequency band are referred to as the 5GHz frequency band and the 2.4GHz frequency band, respectively.
  • Co-channel co-channel mode means that two channels connected by Wi-Fi are used to communicate with external devices respectively.
  • the two channels are the same and belong to the same frequency band.
  • the first channel and the second channel are the same channel in the same frequency band.
  • the inter-frequency and inter-channel mode refers to the use of two channels connected by Wi-Fi to communicate with external devices respectively.
  • the two channels are different and belong to different frequency bands.
  • the first channel and the second channel are different channels in different frequency bands.
  • the inter-frequency and inter-channel mode can be further divided into a dual-band adaptive concurrent (DBAC) mode of inter-frequency and inter-channel and a dual-band dual concurrent (DBDC) mode of inter-frequency and inter-channel.
  • DBAC dual-band adaptive concurrent
  • DBDC dual concurrent
  • the Wi-Fi chip integrates two sets of MAC/PHY/RF, which work at 2.4GHz and 5GHz respectively, and can work in the 2.4GHz and 5GHz frequency bands at the same time.
  • the Wi-Fi chip In the DBAC mode of different frequency and different channels, the Wi-Fi chip only integrates one set of MAC/PHY/RF, of which the RF has two sets of channels, one channel supports 2.4GHz, and the other channel supports 5GHz.
  • the 2.4GHz frequency band and the 5GHz frequency band are dynamically switched back and forth to achieve the effect of time-division multiplexing communication between the two frequency bands.
  • the Wi-Fi connection includes a Wi-Fi peer to peer (P2P) connection and a Wi-Fi access point (access point, AP) connection.
  • P2P Wi-Fi peer to peer
  • AP Wi-Fi access point
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the mobile device 100 has at least two antennas.
  • the electronic device 200 has at least two antennas.
  • Routing device 300 has at least one antenna.
  • the mobile device 100 establishes a Wi-Fi P2P wireless connection with the electronic device 200, and casts a screen to the electronic device 200 through the Wi-Fi P2P wireless connection; at the same time, the mobile device 100 establishes a Wi-Fi AP wireless connection with the routing device 300 , and access the Internet or other network operations through the wireless connection of the Wi-Fi AP.
  • the electronic device 200 can also establish a Wi-Fi AP wireless connection with the routing device 300 to perform Internet access or other network operations.
  • the mobile device 100 may not wirelessly connect to the routing device 300, but still cast a screen to the electronic device 200 through the Wi-Fi P2P wireless connection; and the electronic device 200 also establishes a Wi-Fi AP wireless connection with the routing device 300, and Internet access or other network operations.
  • the above-mentioned routing device 300 can be replaced by two different routing devices, and the mobile device 100 and the electronic device 200 respectively establish a Wi-Fi AP wireless connection with the two different routing devices, and use the wireless Connect to the Internet or perform other network operations; at the same time, the mobile device 100 establishes a Wi-Fi P2P wireless connection with the electronic device 200, and projects a screen to the electronic device 200 through the Wi-Fi P2P wireless connection.
  • the wireless screen projection between the mobile device 100 and the electronic device 200 adopts the first channel of the Wi-Fi P2P wireless connection
  • the wireless communication between the mobile device 100 and the routing device 300 adopts the second channel of the Wi-Fi AP wireless connection.
  • the wireless communication between the electronic device 200 and the routing device 300 adopts the third channel of the Wi-Fi AP wireless connection.
  • the working frequency bands of the Wi-Fi P2P connection and the Wi-Fi AP connection are both the 2.4GHz frequency band and the 5GHz frequency band.
  • the mobile device 100 includes a processor 110, a Wi-Fi chip 160, an antenna 1 and an antenna 2; the Wi-Fi chip 160 is connected to the processor 110, and both the antenna 1 and the antenna 2 are connected to Wi-Fi chip 160.
  • the electronic device 200 includes a processor 210 , a Wi-Fi chip 260 , an antenna 3 and an antenna 4 ; the Wi-Fi chip 260 is connected to the processor 210 , and both the antenna 3 and the antenna 4 are connected to the Wi-Fi chip 260 .
  • the electronic device 300 includes a processor 310 , a Wi-Fi chip 360 , an antenna 5 and an antenna 6 ; the Wi-Fi chip 360 is connected to the processor 310 , and both the antenna 5 and the antenna 6 are connected to the Wi-Fi chip 360 .
  • the antenna 1 and/or the antenna 2 of the mobile device 100 wirelessly communicate with the antenna 3 and/or the antenna 4 of the electronic device. It should be emphasized that the antenna 1 and the antenna 2 in FIG. 1(b) are both schematic examples of the mobile device 100.
  • the frequency band and channel of Antenna 1-Antenna 4 can be set optionally.
  • the frequency bands are limited to the 2.4GHz frequency band and the 5GHz frequency band.
  • Mobile devices in the embodiments of the present application include, but are not limited to, smart phones, smart earphones, tablet computers, wearable electronic devices with wireless communication functions (such as smart watches, smart bracelets, smart rings, smart glasses), and the like.
  • Exemplary embodiments of mobile devices include, but are not limited to, piggybacks Portable electronic devices with Windows, Linux, or other operating systems.
  • the above-mentioned mobile device may also be other portable electronic devices, such as a laptop computer (Laptop) or the like. It should also be understood that, in some other embodiments, the above-mentioned mobile device may not be a portable electronic device, but a stationary electronic device such as a desktop computer.
  • both the mobile device 100 and the routing device 300 are set to /or the electronic device 200 accesses the Internet.
  • the process of establishing a Wi-Fi P2P connection between the mobile device 100 and the electronic device 200 may include the following steps:
  • the mobile device 100 sends a negotiation request message to the electronic device 200 .
  • the negotiation request message may carry the ID information or address information of the mobile device 100, the ID information or address information of the electronic device 200, and the Wi-Fi P2P connection capability information of the mobile device 100.
  • the Wi-Fi P2P connection capability information of the mobile device 100 may include information indicating whether the mobile device 100 can establish a Wi-Fi P2P connection, and even the role of the mobile device 100, such as a group owner (GO) role and the like.
  • the mobile device 100 receives the negotiation response message returned by the electronic device 200 .
  • the negotiation response message may include ID information or address information of the mobile device 100, ID information or address information of the electronic device 200, and Wi-Fi P2P connection capability information of the electronic device 200.
  • the Wi-Fi P2P connection capability information of the electronic device 200 may include information indicating whether the electronic device 200 can establish a Wi-Fi P2P connection, and even the role of the electronic device 200, such as a group client (group client, GC) role and the like.
  • the negotiation response message is also used to determine the channel used by the P2P connection.
  • the mobile device 100 establishes a Wi-Fi P2P connection with the electronic device 200.
  • the mobile device 100 has Wi-Fi connection capability information and role of the mobile device 100 according to the Wi-Fi P2P connection capability information and role of the electronic device 200 and Wi-Fi P2P connection capability information and role of the electronic device 200
  • the mobile device 100 switches itself to the AP mode, and the electronic device 200 acts as the GC role and connects to the mobile device 100.
  • the mobile device 100 and the electronic device 200 establish a Wi-Fi P2P connection.
  • the mobile device 100 can also be in the GC role, and the electronic device 200 can also be in the GO role.
  • channel adjustment can be prioritized based on the GC role in the follow-up, or channel adjustment can be prioritized based on the GO role in the follow-up.
  • the P2P connection can be a one-to-one connection or a many-to-one connection.
  • FIG. 3 is a schematic schematic diagram of the principle of time-division scheduling by a mobile device in a DBAC mode through the same frequency and different channels according to an embodiment of the present application.
  • the Wi-Fi chip in this embodiment may include: a baseband processing module 11 , a switch 12 , and a radio frequency (ratio frequency, RF) module 13 .
  • the baseband processing module may include a media access controller 111 and a baseband processor 112 .
  • the RF module 13 may include: a first radio frequency channel module 113 and a second radio frequency channel module 114 .
  • the first radio frequency channel module 113 and the second radio frequency channel module 114 share the baseband processing module 11 , and the two radio frequency channel modules are connected to the baseband processor 11 through the switch 12 .
  • the channel used for the wireless screen projection of the mobile device 100 to the electronic device 200 is 5GHz
  • the channel used for the wireless communication between the mobile device 100 and the routing device 300 is the 36 channels of the 5GHz frequency band.
  • the mobile device 100 In the T1 time unit, the mobile device 100 only The 149 channels of the 5GHz frequency band can be used for screen projection, and the second radio frequency channel module 114 of the Wi-Fi chip is connected to the switch 12; in the T3 time unit, the mobile device 100 can only use the 36 channels of the 5GHz frequency band to access the Internet, and the Wi-Fi The first RF channel module 114 of the Fi chip is connected to the switch 12; similarly, in the T5 time unit, the mobile device 100 can only use the 149 channels of the 5GHz frequency band for screen projection; in the T7 time unit, the mobile device 100 can only use The 36 channels of the 5GHz frequency band are used for Internet access; however, in the T2 time unit, the T4 time unit and the T6 time unit, the mobile device 100 needs to switch the radio frequency channel module and cannot use any channel.
  • the time-sharing scheduling and the channel switching caused by it will additionally increase the overhead of the mobile device 100, so that the mobile device 100 cannot use the first channel or the second channel in more time units.
  • the mobile device 100 cannot use the first channel for screencasting in the T2-T4 time unit and the T6-T7 time unit, and the mobile device 100 cannot use the second channel in both the T1-T2 time unit and the T4-T6 time unit.
  • the time utilization rate of the first channel and the second channel is low, resulting in the screen projection speed and the Internet access speed sometimes being faster and slower, causing the screen projection and Internet access to be stuck; in addition, the two channels work in the same
  • the frequency of the frequency band and the channel are close to each other, and it is easy to interfere with each other; the above makes the user's screen projection experience and Internet experience poor.
  • the inventor found the above-mentioned technical problems, and further in-depth research, summed up the respective characteristics of the DBDC mode of different frequency and different channels and the same frequency and co-channel mode.
  • the characteristics of the DBDC mode of different frequency and different channels are: multiple antennas used for Wi-Fi communication do not need Wi-Fi chip switching, the channel quality is better, the packet loss rate is lower, and the delay is lower; the same frequency and the same channel
  • the characteristics of the mode are: multiple antennas used for Wi-Fi communication do not need Wi-Fi chip switching, and the throughput rate of a single channel is large.
  • the embodiments of the present application provide a channel adjustment method and electronic device.
  • the transmission speed in the two different purposes remains stable, and the experience for both purposes is relatively continuous and smooth, improving user experience.
  • the relationship between the first channel and the second channel of the mobile device and/or the electronic device is in the DBAC mode, the relationship between the two is determined by the DBAC mode.
  • the mode is adjusted to the same-frequency and same-channel mode or the DBDC mode of different frequency and different channels, thereby improving the time utilization of the first channel and the second channel, thereby ensuring the speed of Internet access and screen projection, making the Internet access and screen projection continuous and smooth, avoiding Internet access And the projection screen appears to be stuck, improving the user experience.
  • FIG. 4 is a schematic diagram of the hardware structure of the mobile device 100 .
  • the mobile device 100 may include a processor 110 , an external memory interface 120 , an internal memory 121 , a universal serial bus (USB) interface 130 , a charging management module 140 , a power management module 141 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile device 100 .
  • the mobile device 100 may include more or less components than shown, or some components may be combined, or some components may be split, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the mobile device 100 realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the mobile device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the mobile device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the mobile device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the mobile device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the mobile device 100 employs an eSIM, ie: an embedded SIM card.
  • the wireless communication function of the mobile device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in mobile device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the wireless communication module 160 can provide applications on the mobile device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (infrared radiation, IR) technology.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared radiation
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the mobile device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the electronic device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the software system of the mobile device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • FIG. 5 is a schematic diagram of a software structure of a mobile device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer (framework, FWK), an Android runtime (Android runtime) and system libraries, and a kernel layer.
  • the application layer can include a series of application packages. As shown in FIG. 5, the application layer may include camera, WeChat, QQ, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer.
  • the application framework layer can include some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • a window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock screen, screen capture, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, and the like.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the telephony manager is used to provide the communication functions of the mobile device 100 . For example, the management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, prompt text information in the status bar, sound a prompt, electronic equipment vibrates, indicator lights flash, etc.
  • the Android runtime includes core libraries and a virtual machine.
  • Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (media library), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the system library may further include a relative angle detection module for detecting the relative angle between other devices and the mobile device 100 , where the relative angle may include the orientation of the other device relative to the mobile device 100 and the like.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, sensor driver and WLAN driver.
  • the electronic device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the first embodiment of the present application relates to FIGS. 6A to 6E .
  • the mobile device 100 wirelessly projects a screen to the electronic device 200 through the first channel 410 .
  • the mobile device 100 wirelessly communicates with the routing device 300 through the second channel 420.
  • the mobile device works in DBAC mode.
  • the following is an example of the mobile device 100 surfing the Internet with the routing device 300 through the second channel.
  • the first channel 410 is 149 channels in the 5GHz frequency band
  • the second channel is 36 channels in the 5GHz frequency band.
  • the relationship between the first channel and the second channel is that of the DBAC mode. It can be seen from the above analysis that when the first channel and the second channel of the mobile device 100 form a relationship in the DBAC mode, since the time utilization ratio of the first channel and the second channel are both low, and in a long period of time, both Both channels cannot be transmitted, resulting in two channels that can be transmitted for a while and cannot be transmitted for a while, so that the transmission of the first channel and the second channel is stuck, and the Internet access and/or screen projection are affected; in addition, the two channels are located.
  • an embodiment of the present application provides a channel adjustment method.
  • the following describes the flow of the channel adjustment method in the first embodiment with reference to FIG. 6C .
  • the specific steps of the channel adjustment method are as follows:
  • Step 501 the first antenna of the mobile device communicates wirelessly with the electronic device in the form of Wi-Fi P2P connection through the first channel; the second antenna of the mobile device is connected to the first wireless signal source by Wi-Fi AP through the second channel. mode of wireless communication; the mobile device determines that the first channel and the second channel are the same frequency and different channels, and the first antenna and the second antenna are time-division multiplexed; wherein, the Wi-Fi chip of the mobile device can make the first channel of the mobile device
  • the first antenna and the second antenna of the mobile device transmit signals independently through different channels in two different frequency bands at the same time.
  • the first antenna of the mobile device 100 can firstly communicate wirelessly with the electronic device 200 in the manner of Wi-Fi P2P connection through the first channel, and after the mobile device 100 receives the user's operation, the second antenna of the mobile device 100 passes The second channel communicates wirelessly with the first wireless signal source of the routing device 300 in a manner of Wi-Fi AP connection.
  • the second antenna of the mobile device 100 may firstly communicate wirelessly with the first wireless signal source of the routing device 300 through the second channel in the form of Wi-Fi AP connection, and after receiving the user's operation, the mobile device 100 The first antenna of the device communicates wirelessly with the electronic device in the form of Wi-Fi P2P connection through the first channel.
  • the above-mentioned user operations include, but are not limited to, touch operations, voice input operations, and the like.
  • the mobile device 100 obtains the channel information of the first channel and the channel information of the second channel, and the channel information of the first channel includes the first channel.
  • One channel and the frequency band to which it belongs such as channel 149 in the 5GHz frequency band
  • the channel information of the second channel includes the second channel and the frequency band to which it belongs, such as channel 36 in the 5GHz frequency band.
  • the first wireless signal source is the routing device 300 (the routing device only provides one wireless signal source) or one wireless signal source provided by the routing device 300 (the routing device can provide multiple wireless signal sources).
  • the mobile device 100 may acquire the channel information of the first channel through the interface function scheduling method shown in Table 1.
  • the channel information of the second channel may be acquired through the interface function scheduling manner shown in Table 2.
  • the mobile device 100 performs step 502 after determining, according to the acquired channel information of the first channel and the second channel, that the first channel and the second channel form a DBAC mode.
  • Step 502 the mobile device determines whether the Wi-Fi chip of the mobile device supports the DBDC mode of different frequency and different channels.
  • step 503 if the mobile device supports the DBDC mode of different frequency and different channels, then step 503 is executed; if the mobile device does not support the DBDC mode of different frequency and different channels, then step 505 is executed.
  • step 503 if the mobile device supports the DBDC mode of inter-frequency and inter-channel, step 503 is performed; if the mobile device does not support the DBDC mode of inter-frequency and inter-channel, no processing is performed and the status quo is maintained.
  • Step 503 whether a second wireless signal source with a frequency band different from that of the first wireless signal source is detected within a preset time period.
  • the mobile device determines whether a second wireless signal source with a frequency band different from that of the first wireless signal source is detected within a preset time period. If, after scanning, the mobile device determines that a second wireless signal source with a frequency band different from that of the first wireless signal source is detected within the preset time period, step 504 is performed; if the frequency band and the first wireless signal source are not detected within the preset time period If the frequency band of the second wireless signal source is different, step 505 is performed.
  • the specific manner of scanning may be as follows: the mobile device 100 scans the surrounding wireless signal sources, and after a preset period of time, it is determined from the scanning result whether there is a frequency band different from that of the Wi-Fi AP network currently accessed by the mobile device 100 and the frequency band is
  • the mobile device 100 supports wireless signal sources of frequency bands.
  • the mobile device 100 first obtains a frequency band (such as a 2.4 GHz frequency band) supported by the mobile device 100 and different from the frequency band to which the first channel 410 belongs, and then the mobile device 100 scans the surrounding wireless signal sources. Determine whether there is a wireless signal source that is different from the frequency band of the Wi-Fi AP network currently accessed by the mobile device 100.
  • Step 504 the mobile device adjusts the second channel, the adjusted second channel and the first channel are different channels in different frequency bands, and the first antenna of the mobile device is wirelessly connected to the electronic device by Wi-Fi P2P through the first channel
  • the second antenna of the mobile device communicates wirelessly with the second wireless signal source in the form of Wi-Fi AP connection through the adjusted second channel.
  • the second channel 420 is 36 channels in the 5GHz frequency band, the frequency band to which the second channel 420 belongs is the 5GHz frequency band, and the Wi-Fi AP network currently accessed by the second channel 420 is a routing device 300 wireless network in the 5GHz frequency band;
  • the first channel 410 is the 149 channel of the 5GHz frequency band, the frequency band to which the first channel 410 belongs is the 5GHz frequency band, and the mobile device 100 projects the screen to the electronic device 200 through the first channel 410 of the Wi-Fi P2P connection .
  • the mobile device 100 adjusts the second channel 420 from 36 channels in the 5GHz frequency band to 6 channels in the 2.4GHz frequency band.
  • the relationship between the first channel 410 and the second channel 420 of the mobile device 100 is no longer in the same frequency and different channel modes, but in the DBDC mode relationship between the different frequency and different channels.
  • the transmission speeds of the first channel 410 and the second channel 420 are guaranteed, there will be no time-sharing scheduling situation, and users will not be stuck in screencasting and surfing the Internet due to the channel;
  • the interference between the two channels 420 is also reduced, and the user experience is improved.
  • Step 505 whether a wireless signal source with the same channel as the first channel is detected within another preset time period.
  • the mobile device determines whether a wireless signal source with the same channel as the first channel is detected within another preset time period. If, after scanning, the mobile device determines that a wireless signal source with the same channel as the first channel is detected within another preset time period, step 506 is performed; otherwise, step 507 is performed.
  • the specific manner of scanning may be as follows: the mobile device 100 scans the surrounding wireless signal sources, and after another preset period of time, it is determined from the scanning result whether there is a channel corresponding to the first channel of the Wi-Fi AP network currently accessed by the mobile device 100. the same wireless signal source.
  • another preset duration in step 505 may be the same as or different from the preset duration in step 503 .
  • the wireless signal source in step 505 may be the second wireless signal source or other wireless signal sources.
  • Step 506 the first antenna of the mobile device communicates wirelessly with the electronic device in a Wi-Fi P2P manner through the first channel, while the second antenna of the mobile device is connected to the first wireless signal source through the first channel by Wi-Fi AP way of wireless communication.
  • the first channel 410 is the 149 channel of the 5GHz frequency band
  • the frequency band to which the first channel 410 belongs is the 5GHz frequency band
  • the second channel 420 is currently connected to the wireless signal source of the Wi-Fi AP network.
  • the frequency band is the 5GHz frequency band; in the above scanning, the mobile device 100 does not detect a wireless signal source with a frequency band other than the 5GHz frequency band within a preset period of time after scanning; therefore, although the mobile device 100 supports the DBDC mode of different frequencies and different channels , but it is also impossible to adjust the relationship between the second channel 420 and the first channel 410 to a relationship between different frequencies and different channels; the next step is to detect whether the wireless channel with the same channel as the first channel is detected within another preset time period. Signal source; if yes, as shown in (b) of FIG. 6B , the second channel 420 is adjusted from 36 channels in the 5GHz frequency band to 149 channels in the 5GHz frequency band.
  • the first channel 410 and the second channel 420 at this time form a relationship in a co-frequency co-channel mode. If not, no action will be taken and the status quo will be maintained. In this way, the transmission speed of the first channel 410 and the second channel 420 can be guaranteed, there will be no time-sharing scheduling situation, the user's screen projection and Internet access will not be stuck due to the channel, and the user experience will be improved.
  • Step 507 no processing is performed, and the status quo is maintained.
  • the method may not include step 505; where step 505 is involved in the above process, step 506 can be directly executed. For example, after the judgment result of step 502 is no, step 506 is directly executed, and step 505 is not executed.
  • the relationship between the first channel and the second channel is preferentially adjusted to a DBDC mode relationship of different frequencies and different channels;
  • the relationship between the two channels is adjusted to the DBDC mode relationship of different frequencies and different channels, the relationship between the first channel and the second channel is adjusted to the relationship between the same frequency and the same channel mode under the premise of allowing, and it will not be processed under the premise that it is not allowed. , maintain the status quo; or, when the relationship between the first channel and the second channel cannot be adjusted to a DBDC mode relationship of different frequencies and different channels, no processing is performed and the status quo is maintained.
  • step 502 is not executed, but step 505 is directly executed, and then according to the result of step 505, step 506 or step 507 is executed. That is to say, the first antenna of the mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P manner through the first channel; the second antenna of the mobile device 100 communicates with the first wireless signal source through the second channel in a Wi-Fi P2P manner; Wireless communication by means of Fi AP connection; the mobile device 100 determines that the first channel and the second channel are the same frequency and different channels; the Wi-Fi chip of the mobile device 100 can make the first antenna of the mobile device 100 and the The two antennas transmit signals independently through different channels in two different frequency bands at the same time.
  • the first antenna of the mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P manner through the first channel
  • the second antenna of the mobile device 100 wirelessly communicates with the wireless signal source in the manner of Wi-Fi AP connection through the first channel.
  • the modification of step 505 may also be directly executed, and according to the execution result of the modification of step 505, the modification of step 506 or step 507 is executed. That is to say, the first antenna of the mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P manner through the first channel; the second antenna of the mobile device 100 communicates with the first wireless signal source through the second channel in a Wi-Fi P2P manner; Wireless communication by means of Fi AP connection; the mobile device 100 determines that the first channel and the second channel are the same frequency and different channels; the Wi-Fi chip of the mobile device 100 can make the first antenna of the mobile device 100 and the The two antennas simultaneously transmit signals independently through different channels in two different frequency bands.
  • the second channel communicates wirelessly with the electronic device 200 in a manner of Wi-Fi P2P connection, while the second antenna of the mobile device 100 communicates wirelessly with the wireless signal source in a manner of Wi-Fi AP connection through the second channel.
  • the wireless signal source with the same channel as the first channel is not detected within another preset time period, no processing is performed, and the status quo is maintained.
  • the first channel used for screen projection remains unchanged, and the second channel used for Internet access is adjusted, so that the relationship between the second channel and the first channel is changed from the relationship between the same frequency and different channels. Adjust to the relationship between different frequencies and different channels or the relationship between the same frequency and the same channel.
  • FIG. 6D is a schematic diagram of a result comparison of a channel adjustment method provided by an embodiment of the present application
  • FIG. 6E is a schematic flowchart of a channel adjustment method provided by an embodiment of the present application. Further description will be given below in conjunction with FIG. 6D-FIG. 6E.
  • steps 501 to 502 and steps 505 to 507 of FIG. 6E are respectively the same as steps 501 to 502 and 505 to 507 of FIG. 6C , which will not be repeated here.
  • (a) of FIG. 6D is the same as (a) of FIG. 6A and will not be repeated here.
  • step 503' executes step 503';
  • Step 503' the mobile device sends a request message to the electronic device through the first channel, and receives a response message for the request message returned from the electronic device;
  • the request message sent by the mobile device 100 to the electronic device 200 includes the first channel to be adjusted, that is, the first channel to be adjusted in the Wi-Fi P2P wireless communication between the mobile device 100 and the electronic device 200 is the first channel to be adjusted, the first channel to be adjusted and the second channel are different channels in different frequency bands, and the request message is used to request that the first channel to be adjusted and The electronic device 200 communicates wirelessly in a Wi-Fi P2P manner.
  • the request message may be sent in a broadcast manner.
  • the response message is responsive to the request message and used to indicate whether the electronic device agrees or disagrees with the request message.
  • Step 504' the mobile device judges whether the response message is a positive response message; if so, executes step 505'; otherwise, executes step 503;
  • the positive response message is used to indicate that the electronic device 200 agrees to wirelessly communicate with the mobile device 100 in a Wi-Fi P2P manner through the first channel to be adjusted.
  • step 504' if the result is no, then return to continue to execute step 504', and after the number of repeated judgments reaches a predetermined number of times, if the result continues to be no, step 503 is executed.
  • Step 505' adjust the first channel to be the first channel to be adjusted, the first antenna communicates wirelessly with the electronic device in a Wi-Fi P2P manner through the adjusted first channel, and the second antenna communicates with the first channel through the second channel.
  • a wireless signal source communicates wirelessly in the form of Wi-Fi AP;
  • the mobile device 100 adjusts the first channel to the first channel to be adjusted, and the first antenna communicates wirelessly with the electronic device 200 in a Wi-Fi P2P manner through the adjusted first channel , while the second antenna communicates wirelessly with the first wireless signal source in the form of a Wi-Fi AP through the second channel.
  • the mobile device 100 adjusts the first channel 420 from 149 channels in the 5 GHz frequency band to 6 channels in the 2.4 GHz frequency band.
  • the relationship between the first channel 410 and the second channel 420 of the mobile device 100 is no longer in the same frequency and different channel modes, but in the DBDC mode relationship between the different frequency and different channels.
  • the transmission speeds of the first channel 410 and the second channel 420 are guaranteed, there will be no time-sharing scheduling situation, and users will not be stuck in screencasting and surfing the Internet due to the channel;
  • the interference between the two channels 420 is also reduced, and the user experience is improved.
  • Steps 503 to 505 in FIG. 6E are the same as steps 503 to 505 in FIG. 6C , and details are not repeated here.
  • step 505 can also be replaced with: whether a wireless signal source with the same channel as the second channel is detected within another preset time period; if so, go to step 506; if not, go to step 507;
  • step 506 can be replaced as: the first antenna communicates wirelessly with the electronic device in the form of Wi-Fi P2P through the second channel, while the second antenna communicates wirelessly with the wireless signal source in the form of Wi-Fi AP through the second channel communication.
  • the wireless signal source in step 505 may be the first wireless signal source or other wireless signal sources.
  • the first channel and the second channel form a DBAC mode relationship
  • the first channel is preferentially adjusted, so that the relationship between the first channel and the second channel is adjusted to a DBDC mode relationship of different frequencies and different channels
  • the second channel is preferentially adjusted, so that the relationship between the first channel and the second channel is adjusted to the DBDC mode relationship of different frequencies and different channels
  • the relationship between the first channel and the second channel cannot be adjusted as When the DBDC mode relationship between different frequencies and different channels is allowed, the relationship between the first channel and the second channel is adjusted to the relationship between the same frequency and the same channel mode; if not allowed, no processing is performed and the status quo is maintained.
  • the mobile device can avoid the extra overhead caused by time-sharing scheduling and channel switching, so the problems of data packet transmission delay and packet loss can be improved to a certain extent.
  • the reason why the priority of different frequency and different channels is higher than that of the same frequency and same channel is that the network delay of different frequency and different channels is smaller than that of the same frequency and same channel, and the same frequency and same channel of high frequency band is higher than that of different frequency and different channels. High throughput.
  • the mobile device needs to perform screen projection, so the mobile device side has higher requirements for network delay, so the mobile device side is given priority.
  • the Internet channel and the projection channel are adjusted to the relationship between different frequency and different channels.
  • the present application may also determine the adjustment method of the Internet access channel by considering the method of screen projection (for example, the same-source screen projection method or the heterogeneous screen projection method). Specifically, if the screen projection type selected by the mobile device is the same-source screen projection method (the so-called same-source screen projection method, that is, the images between the mobile device and the electronic device are kept the same), then the screen projection has a higher requirement on the delay. , the second channel and the first channel may be preferentially adjusted to a high-frequency inter-frequency inter-channel relationship.
  • the method of screen projection for example, the same-source screen projection method or the heterogeneous screen projection method.
  • the screen projection type selected by the mobile device is a heterogeneous screen projection method (the so-called heterogeneous screen projection method, that is, the pictures between the mobile device and the electronic device may be inconsistent), the requirements for the delay are not high, and the throughput is not high. If the quantity requirement is relatively high, the second channel and the first channel can be preferentially adjusted to the relationship of the same frequency and the same channel in the high frequency band. Therefore, for different screen projection types, the mobile device can adjust the Internet channel between the mobile device and the access point by adopting a corresponding strategy.
  • the present application can also determine the adjustment method of the Internet channel by considering the service type of the data transmitted between the mobile device and the access point during the screen projection process.
  • the transmitted data can be the encoding of the video service type.
  • Different service types have different effects on network transmission parameters.
  • network transmission parameters can be delay, transmission quality, transmission rate, packet loss rate, etc., so the mobile device can adjust the Internet access channel in a corresponding way. If the service type has a higher requirement on the delay (such as a battle command in a game application), the second channel and the first channel may be preferentially adjusted to a relationship of different frequencies and different channels.
  • the second channel and the first The channel is adjusted to the relationship of the same frequency and the same channel of the high frequency band.
  • the mobile device and the electronic device in the first embodiment are interchangeable. Specifically, the electronic device and the mobile device in each step in the first embodiment can be replaced with each other.
  • the second embodiment of the present application relates to FIGS. 7A to 7B .
  • the mobile device 100 wirelessly projects the screen to the electronic device 200 through the first channel 410 ; the mobile device 100 wirelessly communicates with the routing device 300 through the second channel 420 .
  • the mobile device 100 works in a co-channel co-channel mode.
  • the following is an example of the mobile device 100 surfing the Internet with the routing device 300 through the second channel.
  • the first channel 410 is channel 149 in the 5GHz frequency band
  • the second channel is channel 149 in the 5GHz frequency band.
  • the relationship between the first channel and the second channel is a relationship in a co-frequency co-channel mode.
  • the relationship between the first channel and the second channel can be adjusted from the relationship in the same-frequency and same-channel mode to the relationship in the DBDC mode of different frequencies and different channels.
  • Step 601 The first antenna of the mobile device 100 wirelessly communicates with the electronic device in a Wi-Fi P2P manner through the first channel; the second antenna of the mobile device 100 communicates with the first wireless signal source of the routing device 300 through the second channel. Wireless communication is performed by means of Wi-Fi AP connection; the mobile device 100 determines that the first channel and the second channel form a co-channel and co-channel relationship. The mobile device 100 determines that the Wi-Fi chip can enable the first antenna of the mobile device 100 and the second antenna of the mobile device 100 to simultaneously independently transmit signals through different channels in two different frequency bands.
  • the first antenna of the mobile device 100 can firstly communicate wirelessly with the electronic device 200 in the manner of Wi-Fi P2P connection through the first channel, and after the mobile device 100 receives the user's operation, the second antenna of the mobile device 100 passes The second channel communicates wirelessly with the first wireless signal source of the routing device 300 in a manner of Wi-Fi AP connection.
  • the first channel and the second channel form a relationship of the same frequency and the same channel.
  • the second antenna of the mobile device 100 may firstly communicate wirelessly with the first wireless signal source of the routing device 300 through the second channel in the form of Wi-Fi AP connection, and after receiving the user's operation, the mobile device 100 The first antenna of the device communicates wirelessly with the electronic device in the form of Wi-Fi P2P connection through the first channel.
  • the first channel and the second channel form a relationship of the same frequency and the same channel.
  • the above-mentioned user operations include, but are not limited to, touch operations, voice input operations, and the like.
  • the manner in which the mobile device 100 obtains the channel information of the first channel and the channel information of the second channel may refer to the above step 501, in It will not be repeated here.
  • Step 602 Whether the mobile device 100 supports the DBDC mode of inter-frequency and inter-channel.
  • step 603 is executed; if the mobile device does not support the DBDC mode of different frequencies and different channels, then step 605 is executed.
  • the mobile device 100 determines whether the Wi-Fi chip of the mobile device 100 supports the DBDC mode of inter-frequency and inter-channel. If the mobile device determines that the Wi-Fi chip of the mobile device 100 supports the DBDC mode of different frequency and different channels, then execute step 603; if the mobile device determines that the Wi-Fi chip of the mobile device 100 does not support the DBDC mode of different frequency and different channels, execute step 603 Step 605.
  • Step 603 The mobile device 100 determines whether a second wireless signal source with a frequency band different from that of the first wireless signal source is detected within a preset time period.
  • the mobile device determines whether a second wireless signal source with a frequency band different from that of the first wireless signal source is detected within a preset time period. If, after scanning, the mobile device detects a second non-signal source whose frequency band is different from that of the first wireless signal source within the preset time period, then go to step 604; the frequency band and the first wireless signal source are not detected within the preset time period If the second wireless signal source has a different frequency band, step 605 is executed.
  • Step 604 The mobile device 100 adjusts the second channel, the adjusted second channel and the first channel are different channels in different frequency bands, and the second antenna of the mobile device 100 communicates with the second wireless signal source through the adjusted second channel.
  • the first antenna of the mobile device 100 still communicates wirelessly with the electronic device 200 in the form of Wi-Fi P2P connection through the first channel.
  • the mobile device 100 adjusts the second channel 420 from 149 channels in the 5 GHz frequency band to 6 channels in the 2.4 GHz frequency band.
  • the relationship between the first channel 410 and the second channel 420 of the mobile device 100 is no longer in the same frequency and different channel modes, but in the DBDC mode relationship between the different frequency and different channels.
  • the transmission speeds of the first channel 410 and the second channel 420 are guaranteed, there will be no time-sharing scheduling situation, and users will not be stuck in screencasting and surfing the Internet due to the channel;
  • the interference between the two channels 420 is also reduced, and the user experience is improved.
  • Step 605 The mobile device 100 does not process the first channel and the second channel, and maintains the status quo.
  • the second channel of the Wi-Fi AP communication between the mobile device and the first wireless signal source can also be fixed, and the first channel of the Wi-Fi P2P communication between the mobile device and the electronic device can be adjusted, and the corresponding
  • the method may not include step 505; where step 505 is involved in the above process, step 506 can be directly executed. For example, after the judgment result of step 502 is no, step 506 is directly executed, and step 505 is not executed.
  • the relationship between the first channel and the second channel is preferentially adjusted to a DBDC mode relationship of different frequencies and different channels, and the relationship between different frequencies and different channels is preferably adjusted.
  • the network delay is smaller, which can effectively improve the user's screencasting and Internet access problems, and improve the user experience.
  • the mobile device 100 when the mobile device 100 detects that the first channel and the second channel are two different channels in the same frequency band and the first antenna and the second antenna are time-division multiplexed, or two After different channels in different frequency bands, the first antenna communicates wirelessly with another electronic device in a Wi-Fi P2P manner through the first channel, while the second antenna communicates with the second wireless signal source through the first channel as a Wi-Fi AP means of wireless communication;
  • the first antenna passes the channel.
  • the second channel communicates wirelessly with the electronic device in the form of Wi-Fi P2P, while the second antenna communicates wirelessly with the second wireless signal source in the form of Wi-Fi AP through the second channel.
  • the mobile device and the electronic device in the second embodiment are interchangeable. Specifically, the mobile device and the electronic device in steps 601-605 in the second embodiment can be replaced with each other.
  • the third embodiment of the present application relates to FIGS. 8A to 8C .
  • the mobile device 100 and the routing device 300 communicate wirelessly through the second channel in the form of a Wi-Fi AP. At this time, there is no wireless communication between the mobile device 100 and the electronic device 200. After that, when the mobile device 100 projects a screen to the electronic device 200, the wireless communication channel between the mobile device 100 and the electronic device 200 is determined according to the second channel.
  • the mobile device 100 surfing the Internet with the routing device 300 through the second channel.
  • the mobile device 100 and the routing device 300 use the Wi-Fi AP through the second channel Wireless communication.
  • the mobile device 100 can determine the relationship between the mobile device 100 and the electronic device 200 according to the second channel and whether the current Wi-Fi chip of the mobile device 100 supports the DBDC mode.
  • the first channel used by the Wi-Fi P2P network connection between. (a) of FIG. 8B is the same as (a) of FIG. 8A and will not be repeated here.
  • Step 801 the mobile device 100 only has a Wi-Fi connection with the routing device 300, specifically: the second antenna of the mobile device 100 is wirelessly connected to the first wireless signal source of the routing device 300 through the second channel in the form of a Wi-Fi AP connection Communication; the mobile device 100 receives a user input for instructing to establish a Wi-Fi P2P wireless communication connection between the mobile device 100 and the electronic device 200.
  • the first antenna of the mobile device is in an idle state.
  • the user input may be a user screen projection operation; the screen projection operation is used to instruct to establish a Wi-Fi P2P wireless communication connection between the mobile device 100 and the electronic device 200.
  • the above-mentioned user input may be input by means of touch, voice, or the like.
  • Step 802 Whether the mobile device 100 supports the DBDC mode of inter-frequency and inter-channel.
  • step 803 if the mobile device supports the DBDC mode of different frequencies and different channels, then step 803 is executed; if the mobile device does not support the DBDC mode of different frequencies and different channels, then step 804 is executed.
  • Step 803 The mobile device determines a first channel whose frequency band is different from the frequency band to which the second channel belongs. After that, the first antenna communicates wirelessly with the electronic device in a Wi-Fi P2P manner through the first channel, while the second antenna communicates with the electronic device through the second channel.
  • the first wireless signal source communicates wirelessly in the form of a Wi-Fi AP.
  • the mobile device 100 determines the first channel 410 as channel 149 of the 5GHz frequency band, and after that, the first channel 410 and the second channel 420 of the mobile device 100 no longer constitute the same The relationship between the frequency and channel modes, but the DBDC mode relationship that constitutes the different frequency and different channels. In this way, the transmission speeds of the first channel 410 and the second channel 420 are guaranteed, there will be no time-sharing scheduling situation, and users will not be stuck in screencasting and surfing the Internet due to the channel; The interference between the two channels 420 is also reduced, and the user experience is improved.
  • Step 804 the mobile device determines the first channel with the same channel as the second channel, and the first antenna of the mobile device communicates wirelessly with the electronic device in the form of Wi-Fi P2P connection through the first channel; at the same time, the second antenna still passes through the second channel Wirelessly communicate with the first wireless signal source in the form of Wi-Fi AP connection.
  • the first channel is the same as the second channel.
  • the first channel 410 is determined as 6 channels in the 2.4 GHz frequency band.
  • the first channel 410 and the second channel 420 at this time form a relationship in a co-frequency co-channel mode.
  • step 804 can be replaced by: the mobile device determines that the first channel and the second channel are different channels in the same frequency band, and the first antenna of the mobile device communicates with the electronic device through the first channel in a Wi-Fi connection. - Wireless communication by means of Fi P2P connection; the second antenna also communicates wirelessly with the first wireless signal source by means of Wi-Fi AP connection through the first channel.
  • the first channel when the second channel already exists and the first channel has not yet been established, can be preferentially constructed as a channel in a DBDC mode relationship with the second channel in an inter-frequency inter-channel relationship; when the first channel cannot be established
  • the first channel is constructed as a channel in a same-frequency co-channel mode or a same-frequency co-channel mode relationship with the second channel.
  • the second channel may be fixed, and then the first channel may be constructed; or the second channel may be changed, and then the first channel may be constructed ; It is also possible to first try to fix the second channel during the construction, and then construct the first channel. If the failure reaches a predetermined number of times, then change the second channel, and then construct the first channel.
  • the mobile device 100 and the routing device 300 have already performed wireless communication through the second channel before the mobile device 100 casts the screen.
  • the electronic device 200 is only connected to the routing device 300 for wireless communication, for example, the electronic device 200 accesses the Internet through the routing device 300 .
  • the mobile device 100 receives a user input, the user input is used to instruct the mobile device 100 to establish a Wi-Fi P2P wireless communication connection with the electronic device 200; then, the mobile device 100 sends the Wi-Fi P2P wireless communication connection to the electronic device 200 request; after the electronic device 200 receives the Wi-Fi P2P wireless communication connection request, the electronic device 200 can obtain the channel information used for wireless communication between the electronic device 200 and the routing device 300 in the form of Wi-Fi AP, and then , determine the channel used by the electronic device 200 to establish a Wi-Fi P2P network connection with the mobile device 100 in the same or similar manner as the above-mentioned manner in FIG. 8C and the manner in the above-mentioned manner other than FIG. 100 feedback, so that the first channel for wireless communication in the Wi-Fi P2P manner is finally established between the mobile device 100 and the electronic device 200 . It will not be repeated here.
  • the fourth embodiment of the present application relates to FIGS. 9A to 9C .
  • the mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P manner through the first channel, and at this time, the mobile device 100 and the routing device 300 are not yet connected for wireless communication. Afterwards, when the mobile device 100 initiates a wireless communication connection to the routing device 300, the wireless communication channel between the mobile device 100 and the routing device 300 is determined according to the first channel.
  • the mobile device 100 performing screen projection with the electronic device 200 through the first channel as an example for description.
  • the mobile device 100 receives a user input, and the user input is used to request a route through the routing device 300 (eg, the user's home or office). device) to access the Internet.
  • the mobile device 100 can determine the first channel used for the Wi-Fi AP wireless communication between the mobile device 100 and the first wireless signal source of the routing device 300 according to whether the current Wi-Fi chip of the mobile device 100 supports the DBDC mode and the first channel.
  • Two channels. (a) in FIG. 9B is the same as (a) in FIG. 9A and will not be repeated here.
  • Step 901 the mobile device only has a Wi-Fi P2P connection with the electronic device, specifically the first antenna of the mobile device communicates wirelessly with the electronic device in a Wi-Fi P2P connection through the first channel; the mobile device receives a user input, The user input is used to instruct the establishment of a Wi-Fi AP wireless communication connection between the mobile device and the first wireless signal source of the routing device.
  • the mobile device does not have a Wi-Fi connection with any device other than the electronic device at this time.
  • the second antenna of the mobile device is in an idle state.
  • the user input may be a user surfing operation; the user surfing operation is used to instruct to establish a Wi-Fi AP wireless communication connection between the mobile device 100 and the first wireless signal source of the routing device 300.
  • the above-mentioned input methods of the user's surfing the Internet include, but are not limited to, touch, voice input, and the like.
  • Step 902 Whether the mobile device supports the DBDC mode of inter-frequency and inter-channel.
  • step 903 is executed; if the mobile device does not support the DBDC mode with different frequencies and different channels, then step 904 is executed.
  • the mobile device determines whether the Wi-Fi chip of the mobile device supports the DBDC mode of inter-frequency inter-channel.
  • step 903 is executed; if the Wi-Fi chip of the mobile device does not support the DBDC mode of different frequencies and different channels, then step 904 is executed.
  • Step 903 The mobile device determines a second channel whose frequency band is different from that to which the first channel belongs. After that, the first antenna still communicates wirelessly with the electronic device in a Wi-Fi P2P manner through the first channel, while the second antenna communicates with the electronic device through the second channel. Wirelessly communicate with the first wireless signal source in the form of a Wi-Fi AP.
  • the mobile device 100 determines the second channel 420 as 6 channels in the 2.4GHz frequency band, and after that, the second channel 420 of the mobile device 100 and the first channel 410 no longer constitute the same frequency
  • the relationship between the different channel modes is the DBDC mode relationship that constitutes the different frequency and different channels. In this way, the transmission speeds of the first channel 410 and the second channel 420 are guaranteed, there will be no time-sharing scheduling situation, and users will not be stuck in screencasting and surfing the Internet due to the channel; The interference between the two channels 420 is also reduced, and the user experience is improved.
  • Step 904 the mobile device determines the second channel with the same channel as the first channel, the first antenna of the mobile device communicates wirelessly with the electronic device in the form of Wi-Fi P2P connection through the first channel, while the second antenna communicates with the electronic device through the second channel.
  • the first wireless signal source communicates wirelessly in the manner of Wi-Fi AP connection.
  • the mobile device 100 determines the second channel 420 as channel 149 of the 5GHz frequency band, that is, the second channel is the same as the first channel.
  • the first channel 410 and the second channel 420 at this time form a relationship in a co-frequency co-channel mode.
  • step 904 may be replaced by: the mobile device determines that the second channel is a channel with a different channel relationship in the same frequency band as the first channel, and the first antenna of the mobile device communicates with the electronic device through the first channel.
  • the device communicates wirelessly in the form of Wi-Fi P2P connection; the second antenna communicates wirelessly with the first wireless signal source in the form of Wi-Fi AP connection through the second channel.
  • the second channel when the first channel already exists and the second channel has not yet been established, can be preferentially constructed as a channel in a DBDC mode relationship with the first channel in an inter-frequency inter-channel relationship; when the second channel cannot be established
  • the second channel when constructing a channel in a DBDC mode relationship with the first channel in an inter-frequency and inter-channel mode, the second channel is constructed as a channel in a same-frequency co-channel mode or a same-frequency co-channel mode relationship with the first channel.
  • the first channel in which the second channel is preferentially constructed as a DBDC mode relationship with the first channel, the first channel can be fixed, and then the second channel can be constructed; the first channel can also be changed, and then the second channel can be constructed ; You can also try to fix the first channel first, and then build the second channel during the construction. If it fails, change the first channel, and then build the second channel.
  • the mobile device 100 and the electronic device 200 have already performed wireless communication through the first channel before the mobile device 100 accesses the Internet.
  • the electronic device 200 before the electronic device 200 surfs the Internet, the electronic device 200 is being screened by the mobile device 100.
  • the electronic device 200 obtains the Wi-Fi P2P connection between the electronic device 200 and the mobile device 100.
  • channel information used for wireless communication and then, based on the channel information, and in the same or similar manner as the manner described above in FIG. 9C and in the manner other than that in FIG.
  • the channel used by the device 300 to establish the Wi-Fi AP network connection It will not be repeated here.
  • Embodiments 1 to 4 all use the mobile device 100 to adjust the first channel and/or the second channel, or establish the first channel or the second channel as an example, to illustrate how the mobile device adjusts the first channel and/or the second channel, or how to establish the first channel or the second channel, but those skilled in the art should understand that the above-mentioned adjustment of the first channel and/or the second channel, and establishment of the first channel or the second channel The method is also applicable to the electronic device 200 .
  • the electronic device 200 wirelessly communicates with the routing device 300 in a Wi-Fi AP manner through one channel, and wirelessly communicates with the mobile device 100 in a Wi-Fi P2P manner through another channel; or, when the electronic device 200 only When the wireless communication with the routing device 300 is in the Wi-Fi AP mode through one channel, and there is no Wi-Fi P2P wireless communication with the mobile device 100; or, when the electronic device 200 only communicates with the mobile device 100 in the Wi-Fi P2P mode through one channel When there is no wireless communication with the routing device 300 in the Wi-Fi AP mode; the adjustment of the first channel and/or the second channel included in the above-mentioned Embodiments 1 to 4, and the establishment of the first channel or the second channel.
  • the electronic device 200 chooses to construct the relationship between the above-mentioned one channel and the other channel as a co-frequency co-channel mode.
  • the electronic device can also choose to construct the above-mentioned one channel and the other channel into a DBDC mode relationship of different frequencies and different channels, or a relationship of the same frequency and same channel mode.
  • FIG. 10 is a schematic structural diagram of a channel adjustment apparatus provided by an embodiment of the present application. As shown in Figure 10, the device includes:
  • the acquiring module 1001 is used for acquiring channel information. Specifically, the acquiring module 1001 may acquire the channel information of the first channel and the second channel before adjusting the channel. For details of the channel information of the first channel and the second channel, reference may be made to the foregoing embodiments.
  • a determination module 1002 is configured to determine whether the Wi-Fi chip can enable the first antenna and the second antenna to transmit signals independently through different channels in two different frequency bands at the same time.
  • the adjustment module 1003 is used to adjust the first channel or the second channel. Specifically, the adjustment module 1003 can detect that the first channel and the second channel are two different channels in the same frequency band, the first antenna and the second antenna are time-division multiplexed, and detect within a preset time period After reaching the second wireless signal source whose frequency band is different from that of the first wireless signal source, the second channel is adjusted, and the adjusted second channel and the first channel are different channels in different frequency bands. Of course, the adjustment module 1003 may also adjust the first channel or the second channel in other situations. Wherein, for other situations and specific adjustment methods, reference may be made to the above-mentioned Embodiments 1 to 4, which will not be repeated here.
  • Embodiments of the present application further provide a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned relevant method steps to implement the methods in the above-mentioned embodiments.
  • Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to implement the methods in the above-mentioned embodiments.
  • the embodiments of the present application also provide an apparatus, which may specifically be a chip system, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, when the apparatus is running , the processor can execute the computer-executable instructions stored in the memory, so that the apparatus executes one or more steps in the above-described embodiments, so as to implement the methods in the above-described embodiments.
  • the embodiments of the present application also provide an apparatus, which may specifically be a chip system, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, when the apparatus is running , the processor can execute the computer execution instructions stored in the memory, so that the chip executes the methods in the foregoing method embodiments.
  • the electronic devices, computer storage media, computer program products or chips provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the corresponding methods provided above. The beneficial effects of the method are not repeated here.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or It may be integrated into another device, or some features may be discarded, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium.
  • a readable storage medium including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

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

Abstract

本申请涉及一种信道调整方法及电子设备,包括一个Wi-Fi芯片,连接于Wi-Fi芯片的一条第一天线和一条第二天线;第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;在检测到第一信道与第二信道为两个同一频段下的不同信道,第一天线和第二天线分时复用,及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整第二信道使其与第一信道为不同频段下的不同信道,使得第二天线通过调整后的第二信道与第二无线信号源以Wi-Fi AP的方式无线通信。该电子设备可改善Wi-Fi芯片及两条天线在投屏和上网中的用户体验。

Description

一种信道调整方法及电子设备
相关申请的交叉引用
本申请要求在2020年07月28日提交中国专利局、申请号为202010740592.6、申请名称为“一种信道调整方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种信道调整方法及电子设备。
背景技术
电子设备要进行Wi-Fi通信,除了天线之外还需要设置Wi-Fi芯片。对于多条天线都连接至一个Wi-Fi芯片的多天线电子设备来说,在用户通过多天线电子设备同时执行涉及无线通信信道的两个不同操作时,比如既上网又投屏时,多天线电子设备的两个信道,比如上网信道和投屏信道,可能形成同频异信道的关系。此时该多天线电子设备的多条天线被所连接的同一Wi-Fi芯片分时切换,来实现对信道的分时切换。这样,会导致电子设备增加额外开销,两个不同操作的速度,比如上网和投屏的速度,都会时快时慢,导致用户体验较差。
发明内容
为了解决上述技术问题,本申请提供了一种信道调整方法及电子设备,使得在用户通过电子设备同时执行涉及信道的两个不同操作时,比如既上网又投屏时,两个不同操作的速度都保持稳定,两个不同操作都较为流畅,提高用户体验。
第一方面,提供一种电子设备。该电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述一个或多个存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,所述第一天线和所述第二天线分时复用,以及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。以第一信道不变为基础,调整第二信道。这样,就无需Wi-Fi芯片切换,并行地进行第一信道和第二信道的通信,每个信道质量都较好,丢包率较低,时延较低,第一信道和第二信道之间的 干扰大为减小,电子设备并发执行第一信道相关业务和第二信道相关业务,比如各自独立地并发执行投屏和上网,且两项业务的流畅度较高,用户体验较好。
根据第一方面,所述电子设备还执行以下步骤:在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。这样,虽然电子设备支持异频异信道的DBDC模式,但由于没有检测到频段与第一信道所属频段不同的无线信号源,将第一信道和第二信道之间的关系调整为同频同信道模式的关系。
根据第一方面,或者以上第一方面的任意一种实现方式,所述电子设备还执行以下步骤:在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源,以及在另一预设时长内检测到信道与第一信道相同的无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述无线信号源以Wi-Fi AP的方式无线通信。这样,虽然电子设备支持异频异信道的DBDC模式,但由于没有检测到频段与第一信道所属频段不同的无线信号源,在检测到有无线信号源提供的信道与第一信道相同后,将第一信道和第二信道之间的关系调整为同频同信道模式的关系。
根据第一方面,或者以上第一方面的任意一种实现方式,所述电子设备还执行以下步骤:在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源,以及在另一预设时长内未检测到信道与第一信道相同的无线信号源之后,所述电子设备不作处理。这样,虽然电子设备支持异频异信道的DBDC模式,但由于没有检测到频段与第一信道所属频段不同的无线信号源,也未检测到有无线信号源提供的信道与第一信道相同后,不作处理,维持现状。
根据第一方面,或者以上第一方面的任意一种实现方式,所述电子设备还执行以下步骤:在检测到所述第一信道与所述第二信道为同一频段下的同一信道,且在所述预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。这样,就无需Wi-Fi芯片切换,并行地进行第一信道和第二信道的通信,每个信道质量都较好,丢包率较低,时延较低,第一信道和第二信道之间的干扰大为减小,电子设备并发执行第一信道相关业务和第二信道相关业务,比如各自独立地并发执行投屏和上网,且两项业务的流畅度较高,用户体验较好。
第二方面,提供一种电子设备。所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第 二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,所述第一天线通过第一信道向所述另一电子设备发送请求消息,所述请求消息包含拟调整后的第一信道,所述拟调整后的第一信道与所述第二信道为不同频段下的不同信道,所述请求消息用于请求通过所述拟调整后的第一信道与所述另一电子设备以Wi-Fi P2P的方式无线通信;在接收到来自所述另一电子设备的肯定响应消息之后,调整所述第一信道为所述拟调整后的第一信道,所述第一天线通过调整后的第一信道与所述另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;其中,所述肯定响应消息用于指示所述另一电子设备同意通过所述拟调整后的第一信道与所述电子设备以Wi-Fi P2P的方式无线通信。以第二信道不变为基础,调整第一信道。在调整第一信道的过程中,遇到两个电子设备之间协商一致时,使得第二信道与第一信道之间的关系调整为异频异信道的DBDC模式的关系。这样,就无需Wi-Fi芯片切换,并行地进行第一信道和第二信道的通信,每个信道质量都较好,丢包率较低,时延较低,第一信道和第二信道之间的干扰大为减小,电子设备并发执行第一信道相关业务和第二信道相关业务,比如各自独立地并发执行投屏和上网,且两项业务的流畅度较高,用户体验较好。
根据第二方面,所述电子设备还执行以下步骤:在接收到来自所述另一电子设备的否定响应消息,且在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信;其中,所述否定响应消息用于指示所述另一电子设备不同意通过所述拟调整后的第一信道与所述电子设备以Wi-Fi P2P的方式无线通信。在调整第一信道的过程中,遇到两个电子设备之间无法协商一致时,此时只能放弃调整第一信道,转而调整第二信道,使得第二信道与第一信道之间的关系调整为异频异信道的DBDC模式的关系。这样,就无需Wi-Fi芯片切换,并行地进行第一信道和第二信道的通信,每个信道质量都较好,丢包率较低,时延较低,第一信道和第二信道之间的干扰大为减小,电子设备并发执行第一信道相关业务和第二信道相关业务,比如各自独立地并发执行投屏和上网,且两项业务的流畅度较高,用户体验较好。
根据第二方面,或者以上第二方面的任意一种实现方式,所述电子设备还执行以下步骤:在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。在调整第一信道的过程中,遇到两个电子设备之间无法协商一致,转而调整第二信道时,若没有检测到频段与第一信道所属频段不同的无线信号源,将第一信道和第二信道之间的关系调整为同频同信道模式的关系。
根据第二方面,或者以上第二方面的任意一种实现方式,所述电子设备还执行以下步骤:在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第 一无线信号源的频段不同的第二无线信号源,以及在另一预设时长内检测到信道与所述第一信道相同的无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述无线信号源以Wi-Fi AP的方式无线通信。这样,在调整第一信道的过程中,遇到两个电子设备之间无法协商一致,转而调整第二信道时,若没有检测到频段与第一信道所属频段不同的无线信号源,但检测到信道与所述第一信道相同的无线信号源后,将第一信道和第二信道之间的关系调整为同频同信道模式的关系。
根据第二方面,或者以上第二方面的任意一种实现方式,所述电子设备还执行以下步骤:在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源,以及在另一预设时长内未检测到信道与所述第一信道相同的无线信号源之后,所述电子设备不作处理。这样,在调整第一信道的过程中,遇到两个电子设备之间无法协商一致,转而调整第二信道时,若没有检测到频段与第一信道所属频段不同的无线信号源,且未检测到信道与所述第一信道相同的无线信号源后,电子设备不作处理,维持现状。
根据第二方面,或者以上第二方面的任意一种实现方式,所述电子设备还执行以下步骤:在检测到所述第一信道与所述第二信道为同一频段下的同一信道,所述第一天线和所述第二天线分时复用,以及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。这样,就无需Wi-Fi芯片切换,并行地进行第一信道和第二信道的通信,每个信道质量都较好,丢包率较低,时延较低,第一信道和第二信道之间的干扰大为减小,电子设备并发执行第一信道相关业务和第二信道相关业务,比如各自独立地并发执行投屏和上网,且两项业务的流畅度较高,用户体验较好。
第三方面,提供一种电子设备。所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线处于空闲状态,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:接收到一个输入;响应于所述输入,所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;所述第一信道与所述第二信道为不同频段下的不同信道;或者,所述第一天线通过所述第二信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;其中,所述输入用于指示所述电子设备与另一电子设备以Wi-Fi P2P的方式无线通信。示例性地,所述输入可以为用户输入,也可以为另一电子设备或其他电子设备发送给所述电子设备的输入消息或输入指令。在电子设备只与另一电子设备建立一条Wi-Fi无线通信连接通道,要再与其他的电子设备建立一条Wi-Fi无线通信连接通道时,使得要新建通道的信 道与已建通道的信道构成异频异信道的DBDC模式的关系。这样,就使得通道新建之后,无需Wi-Fi芯片切换,并行地进行第一信道和第二信道的通信,每个信道质量都较好,丢包率较低,时延较低,第一信道和第二信道之间的干扰大为减小,电子设备并发执行第一信道相关业务和第二信道相关业务,比如各自独立地并发执行投屏和上网,且两项业务的流畅度较高,用户体验较好。
第四方面,提供一种电子设备。所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线处于空闲状态;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在接收到一个输入,且在预设时长内检测到频段与第一信道所属频段不同的第一无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述第一信道与所述第二信道为不同频段下的不同信道;其中,所述输入用于指示所述电子设备与无线信号源以Wi-Fi AP的方式无线通信。示例性地,所述输入可以为用户输入,也可以为另一电子设备或其他电子设备发送给所述电子设备的输入消息或输入指令。在电子设备只与另一电子设备建立一条Wi-Fi无线通信连接通道,要再与其他的电子设备建立一条Wi-Fi无线通信连接通道时,使得要新建通道的信道与已建通道的信道构成异频异信道的DBDC模式的关系。这样,就使得通道新建之后,无需Wi-Fi芯片切换,并行地进行第一信道和第二信道的通信,每个信道质量都较好,丢包率较低,时延较低,第一信道和第二信道之间的干扰大为减小,电子设备并发执行第一信道相关业务和第二信道相关业务,比如各自独立地并发执行投屏和上网,且两项业务的流畅度较高,用户体验较好。
根据第四方面,所述电子设备还执行以下步骤:在接收到一个输入,且在预设时长内未检测到频段与第一信道所属频段不同的第一无线信号源,但在预设时长内检测到频段与第一信道所属频段不同的第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。示例性地,所述输入可以为用户输入,也可以为另一电子设备或其他电子设备发送给所述电子设备的输入消息或输入指令。这样,虽然电子设备支持异频异信道的DBDC模式,但由于没有检测到频段与第一信道所属频段不同的无线信号源,将第一信道和第二信道之间的关系调整为同频同信道模式的关系。
第五方面,提供一种电子设备。所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述一个或多个存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在检测到所述第 一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,或者在检测到所述第一信道与所述第二信道为两个不同频段下的不同信道之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;或者,在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,或者在检测到所述第一信道与所述第二信道为两个不同频段下的不同信道之后,所述第一天线通过所述第二信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。在有些场景下,电子设备更侧重于吞吐量大,这时就会将第一信道和第二信道之间的关系调整为同频同信道模式的关系。
第六方面,提供一种信道调整方法。该方法应用于电子设备,该电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi接入点AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,所述第一天线和所述第二天线分时复用,以及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
第六方面中的任意一种实现方式可参见第一方面中的任意一种实现方式。第六方面以及第六方面中任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第七方面,提供一种信道调整方法。该方法应用于电子设备,该电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,所述第一天线通过第一信道向所述另一电子设备发送请求消息,所述请求消息包含拟调整后的第一信道,所述拟调整后的第一信道与所述第二信道为不同频段下的不同信道,所述请求消息用于请求通过所述拟调整后的第一信道与所述另一电子设备以Wi-Fi P2P的方式无线通信;在接收到来自所述另一电子设备的肯定响应消息之后,调整所述第一信道为所述拟调整后的第一信道,所述第一天线通过调整后的第一信道与所述另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;其中,所述肯定响应消息用于指示所述另一电子设备同意通过所述拟调整后的第一信道与所述电 子设备以Wi-Fi P2P的方式无线通信。
第七方面中的任意一种实现方式可参见第二方面中的任意一种实现方式。第七方面以及第七方面中任意一种实现方式所对应的技术效果可参见上述第二方面以及第二方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第八方面,提供一种信道调整方法。该方法应用于电子设备,该电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线处于空闲状态,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:接收到一个输入;响应于所述输入,所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;所述第一信道与所述第二信道为不同频段下的不同信道;或者,所述第一天线通过所述第二信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;其中,所述输入用于指示所述电子设备与另一电子设备以Wi-Fi P2P的方式无线通信。
第八方面所对应的技术效果可参见上述第三方面所对应的技术效果,此处不再赘述。
第九方面,提供一种信道调整方法。该方法应用于电子设备,该电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线处于空闲状态;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:在接收到一个输入,且在预设时长内检测到频段与第一信道所属频段不同的第一无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述第一信道与所述第二信道为不同频段下的不同信道;其中,所述输入用于指示所述电子设备与无线信号源以Wi-Fi AP的方式无线通信。
第九方面中的任意一种实现方式可参见第四方面中的任意一种实现方式。第九方面以及第九方面中任意一种实现方式所对应的技术效果可参见上述第四方面以及第四方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第十方面,提供一种计算机可读存储介质。该计算机可读存储介质包括计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如第六方面以及第六方面中任意一种实现方式,第七方面以及第七方面中任意一种实现方式,第八方面以及第八方面中任意一种实现方式,或者第九方面以及第九方面中任意一种实现方式中的方法。
第十方面中任意一种实现方式和对应的技术效果可参见上述第六方面、第七方面、第八方面、第九方面的实现方式和对应的技术效果以及第六方面、第七方面、第八方面、第九方面中任意一种实现方式和对应的技术效果,此处不再赘述。
第十一方面,提供一种计算机程序产品。当其在计算机上运行时,使得计算机执行如第六方面以及第六方面中任意一种实现方式,第七方面以及第七方面中任意一种实现方式, 第八方面以及第八方面中任意一种实现方式,或者第九方面以及第九方面中任意一种实现方式中的方法。
第十一方面中任意一种实现方式和对应的技术效果可参见上述第六方面、第七方面、第八方面、第九方面的实现方式和对应的技术效果以及第六方面、第七方面、第八方面、第九方面中任意一种实现方式和对应的技术效果,此处不再赘述。
附图说明
图1为本申请实施例提供的应用场景的示意图;
图2为本申请实施例提供的Wi-Fi P2P连接的流程示意图;
图3为本申请实施例提供的移动设备在DBAC模式下分时调度的原理示意图;
图4为本申请实施例提供的移动设备的硬件结构示意图;
图5为本申请实施例提供的移动设备的软件结构示意图;
图6A和图6B为本申请实施例提供的一种信道调整方法的结果对比示意图;
图6C为本申请实施例提供的一种信道调整方法的流程示意图;
图6D为本申请实施例提供的一种信道调整方法的结果对比示意图;
图6E为本申请实施例提供的一种信道调整方法的流程示意图;
图7A为本申请实施例提供的一种信道调整方法的结果对比示意图;
图7B为本申请实施例提供的一种信道调整方法的流程示意图;
图8A和图8B为本申请实施例提供的一种信道调整方法的结果对比示意图;
图8C为本申请实施例提供的一种信道调整方法的流程示意图;
图9A和图9B为本申请实施例提供的一种信道调整方法的结果对比示意图;
图9C为本申请实施例提供的一种信道调整方法的结果对比示意图;
图10为本申请实施例提供的一种装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意 味着“包括但不限于”,除非是以其他方式另外特别强调。
本申请实施例涉及的多个,是指大于或等于两个。需要说明的是,在本申请实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
为了更清楚地阐明本申请技术方案,下面对本申请涉及的相关概念进行解释。
信道,是信号在通信系统中传输的通道,由信号从发射端传输到接收端所经过的传输媒质所构成。根据IEEE 802.11协议,2.4GHz Wi-Fi频段被划分为13个交叠的信道,每个信道的宽度是22MHz(IEEE 802.11g标准和IEEE 802.11n标准中每个信道频宽是20MHz,IEEE 802.10B标准中每个信道频宽是22MHz);5GHz Wi-Fi频段被划分了201个信道。
同频异信道模式,又称DBAC模式,是指采用Wi-Fi连接的两个信道分别与外部设备进行通信,两个信道不同,但所属的频段相同。例如,移动设备通过到电子设备的投屏占用第一信道;移动设备与路由设备的交互占用第二信道;第一信道和第二信道为同一频段(例如5GHz Wi-Fi频段)中的不同信道。下文中,为了方便起见,5GHz Wi-Fi频段、2.4GHz Wi-Fi频段分别称为5GHz频段、2.4GHz频段。
同频同信道模式,是指采用Wi-Fi连接的两个信道分别与外部设备进行通信,两个信道相同,且所属频段相同。按照上述例子,第一信道和第二信道为同一频段下的同一信道。
异频异信道模式,是指采用Wi-Fi连接的两个信道分别与外部设备进行通信,两个信道不同,且所属的频段不同。按照上述例子,第一信道和第二信道为不同频段下的不同信道。异频异信道模式可进一步划分为异频异信道的双频自适应并发(dual band adaptive concurrent,DBAC)模式和异频异信道的双频双发(dual band dual concurrent,DBDC)模式。在异频异信道的DBDC模式下,Wi-Fi芯片集成了2套MAC/PHY/RF,分别工作在2.4GHz和5GHz,可同时在2.4GHz和5GHz频段工作。在异频异信道的DBAC模式下,Wi-Fi芯片只集成了1套MAC/PHY/RF,其中RF有两套通路,一套通路支持2.4GHz,另一套通路支持5GHz,在使用时在2.4GHz频段和5GHz频段动态地来回切换,达到在两个频段时分复用通信的效果。
需要说明的是,Wi-Fi连接包括Wi-Fi端到端(peer to peer,P2P)连接和Wi-Fi接入点(access point,AP)连接。
为了方便说明,以下以涉及无线通信信道的两个操作分别为上网和投屏为例,进行阐述。应当理解的是,上网和投屏仅是两个涉及无线通信信道的操作的示意性举例,并不构成对本申请的限制,其他涉及无线通信信道的两个操作均在本申请的范围之内。
图1为本申请实施例提供的应用场景的示意图。如图1的(a)所示,移动设备100至少具有两条天线。电子设备200至少具有两条天线。路由设备300至少具有一条天线。移动设备100与电子设备200建立Wi-Fi P2P的无线连接,并通过该Wi-Fi P2P的无线连接向电子设备200投屏;同时,移动设备100与路由设备300建立Wi-Fi AP的无线连接,并通过该Wi-Fi AP的无线连接进行上网或其他网络操作。可选地,电子设备200还可与路由设备300建立Wi-Fi AP的无线连接,进行上网或其他网络操作。可替代地,移动设备100可不无线连接路由设备300,但仍通过Wi-Fi P2P的无线连接向电子设备200投屏;而电子设备200还与路由设备300建立Wi-Fi AP的无线连接,并进行上网或其他网络操作。可替代地,上述的路由设备300可被替换为两个不同的路由设备,移动设备100和电子设备200分别与所述两个不同的路由设备建立Wi-Fi AP的无线连接,并通过该无线连接上网或进行 其他网络操作;同时,移动设备100与电子设备200建立Wi-Fi P2P的无线连接,并通过该Wi-Fi P2P的无线连接向电子设备200投屏。移动设备100与电子设备200的无线投屏采用Wi-Fi P2P无线连接的第一信道,移动设备100与路由设备300的无线通信采用Wi-Fi AP无线连接的第二信道。可选地,电子设备200与路由设备300的无线通信采用Wi-Fi AP无线连接的第三信道。在一种实施方式中,Wi-Fi P2P连接和Wi-Fi AP连接的工作频段均为2.4GHz频段和5GHz频段。
如图1的(b)所示,移动设备100包括处理器110、Wi-Fi芯片160、天线1和天线2;Wi-Fi芯片160连接处理器110,天线1和天线2均连接Wi-Fi芯片160。电子设备200包括处理器210、Wi-Fi芯片260、天线3和天线4;Wi-Fi芯片260连接处理器210,天线3和天线4均连接Wi-Fi芯片260。电子设备300包括处理器310、Wi-Fi芯片360、天线5和天线6;Wi-Fi芯片360连接处理器310,天线5和天线6均连接Wi-Fi芯片360。移动设备100的天线1和/或天线2,与电子设备的天线3和/或天线4无线通信。需要强调的是,图1的(b)中天线1、天线2均为对移动设备100的示意性举例,只要与Wi-Fi芯片连接的天线数量大于2的移动设备均在本申请的保护范围之内;相应地,对于电子设备200而言,只要与Wi-Fi芯片连接的天线数量大于2的电子设备均在本申请的保护范围之内。天线1-天线4工作的频段和信道可选择设置。在一种实施方式中,频段限于2.4GHz频段和5GHz频段。
本申请实施例的移动设备包括但不限于智能手机、智能耳机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表、智能手环、智能戒指、智能眼镜)等。移动设备的示例性实施例包括但不限于搭载
Figure PCTCN2021078935-appb-000001
Windows、Linux或者其它操作系统的便携式电子设备。上述移动设备也可为其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述移动设备也可以不是便携式电子设备,而是诸如台式计算机的固定式电子设备。
为了描述方便,以下在涉及到移动设备100与路由设备300建立Wi-Fi AP的无线连接时,以及电子设备200与路由设备300建立Wi-Fi AP的无线连接时,均设定移动设备100和/或电子设备200进行上网。
如图2所示,移动设备100与电子设备200建立Wi-Fi P2P连接的过程可包含如下步骤:
S201,移动设备100向电子设备200发送协商请求消息。
具体地,在一种实施方式中,协商请求消息可携带有移动设备100的ID信息或地址信息、电子设备200的ID信息或地址信息、移动设备100的Wi-Fi P2P连接能力信息。移动设备100的Wi-Fi P2P连接能力信息可包括移动设备100能否建立Wi-Fi P2P连接的指示信息,甚至移动设备100的角色,如组所有者(group owner,GO)角色等。
S202、移动设备100接收电子设备200返回的协商响应消息。
具体地,在一种实施方式中,协商响应消息可包括移动设备100的ID信息或地址信息、电子设备200的ID信息或地址信息、电子设备200的Wi-Fi P2P连接能力信息。电子设备200的Wi-Fi P2P连接能力信息可包括电子设备200能否建立Wi-Fi P2P连接的指示信息,甚至电子设备200的角色,如组客户端(group client,GC)角色等。除此之外,该协商响应消息还用于确定P2P连接所使用的信道。
S203、移动设备100与电子设备200建立Wi-Fi P2P连接。
具体地,在一种实施方式中,移动设备100根据移动设备100的Wi-Fi P2P连接能力信息和角色、电子设备200的Wi-Fi P2P连接能力信息和角色,在两者都具有Wi-Fi P2P连接能力且两者协商好角色后,比如移动设备100为GO角色,电子设备200为GC角色,则移动设备100将自身切换为AP模式,而电子设备200作为GC角色,连接移动设备100,从而移动设备100与电子设备200建立Wi-Fi P2P连接。可选地,移动设备100也可为GC角色,电子设备200也可为GO角色。有关GC角色和GO角色的确定为本领域的公知技术,此处不再赘述。GC角色和GO角色的确定,可在后续中以GC角色为基准优先进行信道调整,也可在后续中以GO角色为基准优先进行信道调整。
需要说明的是,GO角色的电子设备和GC角色的电子设备建立Wi-Fi P2P连接后,P2P连接可以为一对一的连接,或为多对一的连接。
下面,结合图3,阐述移动设备在处于DBAC模式下分时调度的工作原理。图3为本申请实施例提供的移动设备在DBAC模式下通过同频异信道分时调度的原理示意图。如图3中的(a)所示,本实施例的Wi-Fi芯片可以包括:基带处理模块11、开关12、射频(ratio frequency,RF)模块13。其中基带处理模块可以包括媒体访问控制器111和基带处理器112。该RF模块13可以包括:第一射频通路模块113和第二射频通路模块114。第一射频通路模块113和第二射频通路模块114共用基带处理模块11,两个射频通路模块通过切换开关12与基带处理器11连接。
如图3中的(b)所示,在移动设备100处于DBAC模式下,以移动设备100向电子设备200的无线投屏采用的信道(即图3中(b)中的a信道)为5GHz频段的149信道,移动设备100与路由设备300的无线通信采用的信道(即图3中(b)中的b信道)为5GHz频段的36信道为例;在T1时间单元内,移动设备100只能使用5GHz频段的149信道进行投屏,Wi-Fi芯片的第二射频通路模块114与开关12接通;在T3时间单元内,移动设备100只能使用5GHz频段的36信道进行上网,Wi-Fi芯片的第一射频通路模块114与开关12接通;同理,在T5时间单元内,移动设备100只能使用5GHz频段的149信道进行投屏;在T7时间单元内,移动设备100只能使用5GHz频段的36信道进行上网;而在T2时间单元内、T4时间单元内和T6时间单元内,移动设备100要进行射频通路模块的切换,不能使用任何信道。可见,分时调度及其引发的信道切换会额外增加移动设备100的开销,使得移动设备100在较多的时间单元上无法使用第一信道或第二信道。比如,移动设备100在T2-T4时间单元和T6-T7时间单元上均无法使用第一信道进行投屏,移动设备100在T1-T2时间单元和T4-T6时间单元上均无法使用第二信道进行上网;因此第一信道和第二信道的时间利用率较低,导致投屏速度和上网速度时而较快时而较慢,造成投屏和上网都出现卡顿;另外,两个信道工作在同一频段,信道的频率接近,容易互相干扰;以上使得用户的投屏体验和上网体验均较差。
相类似地,电子设备200在DBAC模式下,也存在上述问题,此处不再赘述。
在发明人经过长期的研究,发现上述技术问题后,进一步深入研究,归纳总结出异频异信道的DBDC模式和同频同信道模式各自的特点。其中,异频异信道的DBDC模式的特点为:用于Wi-Fi通信的多条天线无需Wi-Fi芯片切换,信道质量较好,丢包率较低,时延较低;同频同信道模式的特点为:用于Wi-Fi通信的多条天线无需Wi-Fi芯片切换,单个信道的吞吐率较大。
在经过上述的深入和长期研究后,为了解决上述技术问题,本申请实施例提供了一种 信道调整方法及电子设备,在多条天线仅使用同一Wi-Fi芯片的前提下,使得在用户通过移动设备和/或电子设备通过Wi-Fi通信用于两种不同用途时,两种不同用途下的传输速度都保持稳定,两种用途体验都较为连续流畅,提高用户体验。具体来说,对于支持多天线的移动设备和/或电子设备,在移动设备和/或电子设备的第一信道和第二信道之间的关系为DBAC模式时,通过将两者的关系由DBAC模式调整为同频同信道模式或异频异信道的DBDC模式,从而提高第一信道和第二信道的时间利用率,进而保证上网速度和投屏速度,使得上网和投屏连续流畅,避免上网和投屏出现卡顿,提高用户体验。
在具体阐述本申请实施例之前,首先阐明本申请实施例应用的移动设备和电子设备的硬件结构和软件结构。
图4为移动设备100的硬件结构示意图。如图4所示,移动设备100可包括处理器110、外部存储器接口120、内部存储器121、通用串行总线(universal serial bus,USB)接口130、充电管理模块140、电源管理模块141,电池142、天线1、天线2、移动通信模块150、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、按键190、马达191、指示器192、摄像头193、显示屏194、以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L、骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对移动设备100的具体限定。在本申请另一些实施例中,移动设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
移动设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
移动设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和移动设备100的接触和分离。移动设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡、Micro SIM卡、SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。移动设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,移动设备100采用eSIM,即:嵌入式SIM卡。
移动设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。移动设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在移动设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在移动设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外线(infrared radiation,IR)技术等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,移动设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得移动设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址接入(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、时分码分多址(time-division code division multiple access,TD-SCDMA)、长期演进(long term evolution,LTE)、BT、GNSS、WLAN、NFC、FM、和/或IR技术等。
电子设备200的结构也可参见图4移动设备100的结构,此处不再赘述。在本申请另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
移动设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。图5为本申请实施例的移动设备100的软件结构示意图。分层架构将软件分成若干层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。如图5所示,应用程序层可以包括相机、微信、QQ、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息等。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming  interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数。如图5所示,应用程序框架层可以包括窗口管理器、内容提供器、视图系统、电话管理器、资源管理器、通知管理器等。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏、锁定屏幕、截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频、图像、音频、拨打和接听的电话,浏览历史和书签、电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。电话管理器用于提供移动设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串、图标、图片、布局文件、视频文件等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息、发出提示音、电子设备振动、指示灯闪烁等。
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。系统库可包括多个功能模块。例如:表面管理器(surface manager)、媒体库(media libraries)、三维图形处理库(例如:OpenGL ES)、2D图形引擎(例如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。此外,系统库还可以包括相对角度检测模块,用于检测其它设备与移动设备100之间的相对角度,其中,相对角度可以包括其它设备相对于移动设备100的方位等。
内核层是硬件和软件之间的层。内核层至少包含显示驱动、摄像头驱动、音频驱动、传感器驱动和WLAN驱动。
电子设备200的软件系统也可参见图5所示的软件系统,此处不再赘述。在本申请另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
为了更清楚地展示本申请提供的技术方案,下面分多个实施例对本申请提供的信道调整方法进行说明。
实施例一
本申请实施例一涉及图6A至图6E。如图6A中(a)所示,在移动设备100与电子设备200建立Wi-Fi P2P连接后,移动设备100通过第一信道410向电子设备200无线投屏。在移动设备100与路由设备300建立Wi-Fi AP连接后,移动设备100通过第二信道420与路由设备300无线通信。此时,移动设备工作于DBAC模式下。为了更清楚地阐述,下面 以移动设备100通过第二信道与路由设备300进行上网为例说明。示例性地,第一信道410为5GHz频段的149信道,第二信道为5GHz频段的36信道。第一信道与第二信道之间的关系为DBAC模式的关系。由上文分析可知,在移动设备100的第一信道与第二信道构成DBAC模式的关系时,由于第一信道和第二信道的时间利用率都较低,且在较长的时长内两者都无法传输,导致两个信道一会可传输,一会不能传输,使得第一信道和第二信道的传输都出现卡顿,上网和/或投屏都受到影响;另外,两者的信道所在频段相同,容易相互干扰;以上导致用户的上网体验和投屏体验都较差。为了解决这一问题,本申请实施例提供一种信道调整方法。下面结合图6C,对本实施例一的信道调整方法的流程进行说明。如图6C所示,信道调整方法的具体步骤如下:
步骤501、移动设备的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信;移动设备的第二天线通过第二信道与第一无线信号源以Wi-Fi AP连接的方式无线通信;移动设备确定第一信道与第二信道为同频异信道的关系,且第一天线和第二天线分时复用;其中,移动设备的Wi-Fi芯片能够使得移动设备的第一天线和移动设备的第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号。
具体地,移动设备100的第一天线可以先通过第一信道与电子设备200以Wi-Fi P2P连接的方式无线通信,之后移动设备100接收到用户的操作后,移动设备100的第二天线通过第二信道与路由设备300的第一无线信号源以Wi-Fi AP连接的方式无线通信。
可替代地,移动设备100的第二天线也可以先通过第二信道与路由设备300的第一无线信号源以Wi-Fi AP连接的方式无线通信,之后接收到用户的操作后,移动设备100的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信。
其中,上述的用户的操作包括但不限于触摸操作、语音输入操作等。
可选地,移动设备100确定第一信道与第二信道为同频异信道的关系之前,移动设备100获取第一信道的信道信息和第二信道的信道信息,第一信道的信道信息包括第一信道及其所属的频段,比如5GHz频段的149信道;第二信道的信道信息包括第二信道及其所属的频段,比如5GHz频段的36信道。
示例性地,第一无线信号源为路由设备300(路由设备仅提供一个无线信号源)或路由设备300提供的一个无线信号源(路由设备可提供多个无线信号源)。
示例性地,移动设备100可以通过表1所示的接口函数调度方式获取第一信道的信道信息。另外,可以通过表2所示的接口函数调度方式获取第二信道的信道信息。
表1
Figure PCTCN2021078935-appb-000002
Figure PCTCN2021078935-appb-000003
表2
Figure PCTCN2021078935-appb-000004
之后,移动设备100在根据获取的第一信道和第二信道的信道信息,确定第一信道和第二信道构成DBAC模式的关系后,执行步骤502。
步骤502,移动设备确定移动设备的Wi-Fi芯片是否支持异频异信道的DBDC模式。
在一种实施方式中,若移动设备支持异频异信道的DBDC模式,则执行步骤503;若移动设备不支持异频异信道的DBDC模式,则执行步骤505。
在另一种实施方式中,若移动设备支持异频异信道的DBDC模式,则执行步骤503;若移动设备不支持异频异信道的DBDC模式,则不作处理,维持现状。
步骤503,预设时长内是否检测到频段与第一无线信号源的频段不同的第二无线信号源。
具体地,移动设备经过扫描,确定预设时长内是否检测到频段与第一无线信号源的频段不同的第二无线信号源。若移动设备经过扫描,确定预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源,则执行步骤504;若预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源,则执行步骤505。
有关扫描的具体方式可为:移动设备100扫描周围的无线信号源,经过预设时长后,从扫描结果中确定是否存在与移动设备100当前接入的Wi-Fi AP网络的频段不同且频段为移动设备100支持频段的无线信号源。或者,移动设备100先获取移动设备100支持的且与第一信道410所属频段不同的频段(比如2.4GHz频段),之后移动设备100扫描周围的无线信号源,经过预设时长后,从扫描结果中确定是否存在与移动设备100当前接入的Wi-Fi AP网络的频段不同的无线信号源。
步骤504,移动设备调整第二信道,调整后的第二信道与第一信道为不同频段下的不同信道,移动设备的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信,移动设备的第二天线通过调整后的第二信道与第二无线信号源以Wi-Fi AP连接的方式无线通信。
比如,如图6A的(a)所示,第二信道420为5GHz频段的36信道,第二信道420所属的频段为5GHz频段,第二信道420当前接入的Wi-Fi AP网络为路由设备300的5GHz频段的无线网络;第一信道410为5GHz频段的149信道,第一信道410所属的频段为5GHz频段,移动设备100通过Wi-Fi P2P连接的第一信道410向电子设备200投屏。在经过步骤504后,如图6A的(b)所示,移动设备100将第二信道420由5GHz频段的36信道调整为2.4GHz频段的6信道。此时,移动设备100的第一信道410与第二信道420之间不再构成同频异信道模式的关系,而是构成异频异信道的DBDC模式的关系。这样,第一 信道410与第二信道420的传输速度都得以保证,不会出现分时调度的情形,用户投屏和上网不会因为信道的原因出现卡顿;此外,第一信道410和第二信道420之间的干扰也减小,用户体验得以提高。
步骤505,另一预设时长内是否检测到信道与第一信道相同的无线信号源。
具体地,移动设备经过扫描,确定另一预设时长内是否检测到信道与第一信道相同的无线信号源。若移动设备经过扫描,确定另一预设时长内检测到信道与第一信道相同的无线信号源,则执行步骤506;否则,执行步骤507。
有关扫描的具体方式可为:移动设备100扫描周围的无线信号源,经过另一预设时长后,从扫描结果中确定是否存在信道与移动设备100当前接入的Wi-Fi AP网络的第一信道相同的无线信号源。
其中,步骤505中的另一预设时长可与步骤503中的预设时长相同或不同。
其中,步骤505中的无线信号源可为第二无线信号源或者其他的无线信号源。
步骤506,移动设备的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信,同时移动设备的第二天线通过第一信道与第一无线信号源以Wi-Fi AP连接的方式无线通信。
如图6B的(a)所示,第一信道410为5GHz频段的149信道,第一信道410所属的频段为5GHz频段,第二信道420当前接入的Wi-Fi AP网络的无线信号源的频段为5GHz频段;在上述扫描中,移动设备100经扫描后,在预设时长内未检测到频段为5GHz频段以外频段的无线信号源;因此,移动设备100虽然支持异频异信道的DBDC模式,但也无法将第二信道420与第一信道410之间的关系调整为异频异信道的关系;退而求其次,在另一预设时长内是否检测到信道与第一信道相同的无线信号源;若是,则如图6B的(b)所示,将第二信道420由5GHz频段的36信道调整为5GHz频段的149信道。第一信道410就与此时的第二信道420构成了同频同信道模式的关系。若否,则不作处理,维持现状。这样,第一信道410与第二信道420的传输速度都得以保证,不会出现分时调度的情形,用户投屏和上网不会因为信道的原因出现卡顿;用户体验得以提高。
步骤507,不作处理,维持现状。
在一种实施方式中,该方法可以不包括步骤505;上述流程中涉及到步骤505的地方,均可直接执行步骤506。比如,在步骤502的判断结果为否后,直接执行步骤506,而不再执行步骤505。
本申请实施例中,在第一信道与第二信道构成DBAC模式关系时,优先将第一信道和第二信道的关系调整为异频异信道的DBDC模式关系;当无法将第一信道和第二信道的关系调整为异频异信道的DBDC模式关系时,才在允许的前提下将第一信道和第二信道的关系调整为同频同信道模式的关系,在不允许的前提下不作处理,维持现状;或者,当无法将第一信道和第二信道的关系调整为异频异信道的DBDC模式关系时,不作处理,维持现状。
在一种可能的实施方式中,在步骤501之后,不再执行步骤502,而是直接执行步骤505,继而根据步骤505的结果,执行步骤506或步骤507。也就是说,移动设备100的第一天线通过第一信道与电子设备200以Wi-Fi P2P连接的方式无线通信;移动设备100的第二天线通过第二信道与第一无线信号源以Wi-Fi AP连接的方式无线通信;移动设备100确定第一信道与第二信道为同频异信道的关系;移动设备100的Wi-Fi芯片能够使得移动 设备100的第一天线和移动设备100的第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号。接下来,在另一预设时长内检测到信道与第一信道相同的无线信号源之后,移动设备100的第一天线通过第一信道与电子设备200以Wi-Fi P2P连接的方式无线通信,同时移动设备100的第二天线通过第一信道与无线信号源以Wi-Fi AP连接的方式无线通信。在另一预设时长内未检测到信道与第一信道相同的无线信号源之后,不作处理,维持现状。
可选地,在步骤501之后,也可直接执行步骤505的变形,并根据步骤505的变形的执行结果,执行步骤506的变形或步骤507。也就是说,移动设备100的第一天线通过第一信道与电子设备200以Wi-Fi P2P连接的方式无线通信;移动设备100的第二天线通过第二信道与第一无线信号源以Wi-Fi AP连接的方式无线通信;移动设备100确定第一信道与第二信道为同频异信道的关系;移动设备100的Wi-Fi芯片能够使得移动设备100的第一天线和移动设备100的第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;接下来,在另一预设时长内检测到信道与第二信道相同的无线信号源之后,移动设备100的第一天线通过第二信道与电子设备200以Wi-Fi P2P连接的方式无线通信,同时移动设备100的第二天线通过第二信道与无线信号源以Wi-Fi AP连接的方式无线通信。在另一预设时长内未检测到信道与第一信道相同的无线信号源之后,不作处理,维持现状。
需要说明的是,实施例一的上述举例以用于投屏的第一信道不变,来调整用于上网的第二信道,使得第二信道与第一信道的关系由同频异信道的关系调整为异频异信道的关系或同频同信道的关系。
然而,在另外的实施方式中,也可以保持用于上网的第二信道不变,来调整用于投屏的第一信道;同样也可使得第二信道与第一信道的关系由同频异信道的关系调整为异频异信道的关系或同频同信道的关系。另外的实施方式涉及图6D和图6E。图6D为本申请实施例提供的一种信道调整方法的结果对比示意图;图6E为本申请实施例提供的一种信道调整方法的流程示意图。以下结合图6D-图6E来进一步说明。
在另外的实施方式中,图6E的步骤501-步骤502、步骤505-步骤507分别与图6C的步骤501-步骤502、步骤505-步骤507相同,此处不再赘述。图6D的(a)与图6A的(a)相同,此处也不再赘述。如图6E所示,在步骤502之后,若移动设备支持异频异信道的DBDC模式,则执行步骤503’;
步骤503’,移动设备通过第一信道向电子设备发送请求消息,并接收到来自电子设备返回的针对该请求消息的响应消息;
具体来说,移动设备100向电子设备200发送的请求消息包含拟调整后的第一信道,即准备将移动设备100与电子设备200之间的以Wi-Fi P2P方式无线通信的第一信道调整为拟调整后的第一信道,所述拟调整后的第一信道与所述第二信道为不同频段下的不同信道,所述请求消息用于请求通过所述拟调整后的第一信道与所述电子设备200以Wi-Fi P2P的方式无线通信。
具体地,所述请求消息可以以广播的方式发送。
所述响应消息响应于所述请求消息,用于表明电子设备针对所述请求消息是同意或不同意。
步骤504’,移动设备判断响应消息是否为肯定响应消息;若是,则执行步骤505’;否则,执行步骤503;
其中,肯定响应消息用于指示电子设备200同意通过拟调整后的第一信道与移动设备100以Wi-Fi P2P的方式无线通信。
在一种实施方式中,步骤504’执行完后,若结果为否,则返回继续执行步骤504’,在重复判断次数达到预定次数后,若结果继续为否,才执行步骤503。
步骤505’,调整第一信道为拟调整后的第一信道,第一天线通过调整后的第一信道与电子设备以Wi-Fi P2P的方式无线通信,同时第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;
具体来说,响应于肯定响应消息,移动设备100将第一信道调整为拟调整后的第一信道,第一天线通过调整后的第一信道与电子设备200以Wi-Fi P2P的方式无线通信,同时第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信。
比如,如图6D的(b)所示,移动设备100将第一信道420由5GHz频段的149信道调整为2.4GHz频段的6信道。此时,移动设备100的第一信道410与第二信道420之间不再构成同频异信道模式的关系,而是构成异频异信道的DBDC模式关系。这样,第一信道410与第二信道420的传输速度都得以保证,不会出现分时调度的情形,用户投屏和上网不会因为信道的原因出现卡顿;此外,第一信道410和第二信道420之间的干扰也减小,用户体验得以提高。
图6E的步骤503-步骤505与图6C的步骤503-步骤505相同,此处不再赘述。
可替代地,步骤505中也可被替换为:另一预设时长内是否检测到信道与第二信道相同的无线信号源;若是,执行步骤506;若否,执行步骤507;
相应地,步骤506可被替换为:第一天线通过第二信道与电子设备以Wi-Fi P2P的方式无线通信,同时第二天线通过第二信道与无线信号源以Wi-Fi AP的方式无线通信。
相应地,步骤505中的无线信号源可为第一无线信号源或者其他的无线信号源。
在上述另外的实施方式中,在第一信道与第二信道构成DBAC模式关系时,优先调整第一信道,从而将第一信道和第二信道的关系调整为异频异信道的DBDC模式关系;在无法调整第一信道时,优先调整第二信道,从而将第一信道和第二信道的关系调整为异频异信道的DBDC模式关系;当无法将第一信道和第二信道的关系调整为异频异信道的DBDC模式关系时,在允许的前提下,将第一信道和第二信道的关系调整为同频同信道模式的关系;在不允许的前提下,不作处理,维持现状。这样,移动设备可以避免因分时调度和信道切换带来的额外开销,故一定程度上可以改善数据包传递延迟和丢包问题。
之所以异频异信道的优先级比同频同信道的优先级高,是异频异信道比同频同信道的网络时延较小,而高频段的同频同信道比异频异信道的吞吐量高,基于目前对移动设备设定时长的历史数据流的分析,移动设备因需要进行投屏,所以移动设备这一侧对网络时延的要求较高,所以优先将移动设备这一侧的上网信道和投屏信道调整为异频异信道的关系。
在一种可能的实施例中,本申请还可以结合考虑投屏的方式(例如同源投屏方式或异源投屏方式)确定上网信道的调整方式。具体地,如果移动设备选择的投屏类型为同源投屏方式(所谓同源投屏方式,即移动设备和电子设备之间的画面保持一致),这时投屏对时延的要求较高,则可以优先将第二信道和第一信道调整为高频段的异频异信道的关系。相反地,如果移动设备选择的投屏类型为异源投屏方式(所谓异源投屏方式,即移动设备和电子设备之间的画面可以不一致),则对时延的要求不高,对吞吐量要求较高,则可以优先将第二信道和第一信道调整为高频段的同频同信道的关系。所以针对不同的投屏类型, 移动设备可以采用对应地策略调整与接入点之间上网信道。
在其它可能的实施例中,本申请还可以结合考虑在投屏过程中移动设备与接入点之间传输的数据的业务类型确定上网信道的调整方式,例如传输的数据可以是视频业务类型的编码数据、或者是游戏业务类型的编码数据、或者是文本业务类型的编码数据等。因不同的业务类型,对网络传输参数的影响不同,例如网络传输参数可以是时延、传输质量、传输速率、丢包率等,所以移动设备可以采用对应地方式调整上网信道。如果业务类型对时延的要求较高(如游戏应用中的对战指令),则可以优先将第二信道和第一信道调整为异频异信道的关系。相反地,如果业务类型对时延的要求不高(如视频应用中的视频数据流),因对时延的要求不高,对吞吐量要求较高,则可以优先将第二信道和第一信道调整为高频段的同频同信道的关系。
需要说明的是,实施例一中的移动设备与电子设备可互换。具体地说,实施例一中各步骤的电子设备与移动设备可互相替换。
实施例二
本申请实施例二涉及图7A至图7B。如图7A中(a)所示,移动设备100通过第一信道410向电子设备200无线投屏;移动设备100通过第二信道420与路由设备300无线通信。此时,移动设备100工作于同频同信道模式下。为了更清楚地阐述,下面以移动设备100通过第二信道与路由设备300进行上网为例说明。示例性地,第一信道410为5GHz频段的149信道,第二信道为5GHz频段的149信道。第一信道与第二信道之间的关系为同频同信道模式的关系。结合上文的优先级关系,本实施例可以将第一信道与第二信道之间的关系由同频同信道模式的关系调整为异频异信道的DBDC模式关系。
下面结合图7B,对上述实施例二的信道调整方法的流程进行说明。如图7B所示,信道调整方法的具体步骤如下:
步骤601、移动设备100的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信;移动设备100的第二天线通过第二信道与路由设备300的第一无线信号源以Wi-Fi AP连接的方式无线通信;移动设备100确定第一信道与第二信道构成同频同信道的关系。移动设备100确定Wi-Fi芯片能够使得移动设备100的第一天线和移动设备100的第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号。
具体地,移动设备100的第一天线可以先通过第一信道与电子设备200以Wi-Fi P2P连接的方式无线通信,之后移动设备100接收到用户的操作后,移动设备100的第二天线通过第二信道与路由设备300的第一无线信号源以Wi-Fi AP连接的方式无线通信。第一信道与第二信道构成同频同信道的关系。
可替代地,移动设备100的第二天线也可以先通过第二信道与路由设备300的第一无线信号源以Wi-Fi AP连接的方式无线通信,之后接收到用户的操作后,移动设备100的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信。第一信道与第二信道构成同频同信道的关系。
其中,上述的用户的操作包括但不限于触摸操作、语音输入操作等。
可选地,移动设备100确定第一信道与第二信道为同频同信道的关系之前,移动设备100获取第一信道的信道信息和第二信道的信道信息的方式可以参见上述步骤501,在此不再重复赘述。
步骤602、移动设备100是否支持异频异信道的DBDC模式。
若移动设备支持异频异信道的DBDC模式,则执行步骤603;若移动设备不支持异频异信道的DBDC模式,则执行步骤605。
示例性地,移动设备100确定移动设备100的Wi-Fi芯片是否支持异频异信道的DBDC模式。若移动设备确定移动设备100的Wi-Fi芯片支持异频异信道的DBDC模式,则执行步骤603;若移动设备确定移动设备100的Wi-Fi芯片不支持异频异信道的DBDC模式,则执行步骤605。
步骤603、移动设备100确定预设时长内是否检测到频段与第一无线信号源的频段不同的第二无线信号源。
具体地,移动设备经过扫描,确定预设时长内是否检测到频段与第一无线信号源的频段不同的第二无线信号源。若移动设备经过扫描,在预设时长内检测到频段与第一无线信号源的频段不同的第二无信号源,则执行步骤604;在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源,则执行步骤605。
其中,有关扫描的具体方式可以参见上述步骤503,在此不再重复赘述。
步骤604、移动设备100调整第二信道,调整后的第二信道与第一信道为不同频段下的不同信道,移动设备100的第二天线通过调整后的第二信道与第二无线信号源以Wi-Fi AP连接的方式无线通信,移动设备100的第一天线仍通过第一信道与电子设备200以Wi-Fi P2P连接的方式无线通信。
比如,如图7A的(b)所示,移动设备100将第二信道420由5GHz频段的149信道调整为2.4GHz频段的6信道。此时,移动设备100的第一信道410与第二信道420之间不再构成同频异信道模式的关系,而是构成异频异信道的DBDC模式关系。这样,第一信道410与第二信道420的传输速度都得以保证,不会出现分时调度的情形,用户投屏和上网不会因为信道的原因出现卡顿;此外,第一信道410和第二信道420之间的干扰也减小,用户体验得以提高。
步骤605、移动设备100对第一信道和第二信道不作处理,维持现状。
可选地,还可以将移动设备与第一无线信号源之间Wi-Fi AP通信的第二信道固定不变,调整移动设备与电子设备之间Wi-Fi P2P通信的第一信道,相应的步骤可参见图6E及其对应实施方式中的步骤503’-步骤505’,以及步骤503和步骤504,此处不再赘述。
在一种实施方式中,该方法可以不包括步骤505;上述流程中涉及到步骤505的地方,均可直接执行步骤506。比如,在步骤502的判断结果为否后,直接执行步骤506,而不再执行步骤505。
本申请实施例中,在第一信道与第二信道构成同频同信道模式关系时,优先将第一信道和第二信道的关系调整为异频异信道的DBDC模式关系,异频异信道相比同频同信道,网络时延较小,可以有效改善用户投屏和上网的卡顿问题,用户体验得以提高。
需要说明的是,在一些可能的实现方式中,移动设备100在检测到第一信道与第二信道为两个同一频段下的不同信道以及第一天线和第二天线分时复用,或者两个不同频段下的不同信道之后,第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时第二天线通过第一信道与第二无线信号源以Wi-Fi AP的方式无线通信;
或者,
移动设备100在检测到第一信道与第二信道为两个同一频段下的不同信道以及第一天 线和第二天线分时复用,或者两个不同频段下的不同信道之后,第一天线通过第二信道与电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
需要说明的是,实施例二中的移动设备与电子设备可互换。具体地说,实施例二中步骤601-605中的移动设备与电子设备可互相替换。
实施例三
本申请实施例三涉及图8A至图8C。移动设备100与路由设备300通过第二信道以Wi-Fi AP的方式无线通信,此时移动设备100与电子设备200之间尚未无线通信。之后,在移动设备100向电子设备200投屏时,移动设备100与电子设备200的无线通信信道,根据第二信道来确定。
为了更清楚地阐述,下面以移动设备100通过第二信道与路由设备300进行上网为例说明。如图8A中(a)所示,在移动设备100向电子设备200投屏之前,移动设备100与路由设备300(例如用户家或办公室的路由设备)通过第二信道以Wi-Fi AP的方式无线通信。之后,当移动设备100与电子设备200建立Wi-Fi P2P连接时,移动设备100可根据第二信道、当前移动设备100的Wi-Fi芯片是否支持DBDC模式,确定移动设备100与电子设备200之间的Wi-Fi P2P网络连接所使用的第一信道。图8B的(a)与图8A的(a)相同,此处不再赘述。
下面结合图8C,对本实施例三的信道调整方法的流程进行说明。如图8C所示,信道调整方法的具体步骤如下:
步骤801、移动设备100仅与路由设备300存在Wi-Fi连接,具体为:移动设备100的第二天线通过第二信道与路由设备300的第一无线信号源以Wi-Fi AP连接的方式无线通信;移动设备100接收到一个用户输入,该用户输入用于指示建立移动设备100与电子设备200之间的Wi-Fi P2P无线通信连接。
此时,移动设备的第一天线处于空闲状态。
示例性地,该用户输入可以为用户投屏操作;该投屏操作用于指示建立移动设备100与电子设备200之间的Wi-Fi P2P无线通信连接。
其中,上述用户输入可以通过触摸、语音等方式输入。
步骤802、移动设备100是否支持异频异信道的DBDC模式。
其中,若移动设备支持异频异信道的DBDC模式,则执行步骤803;若移动设备不支持异频异信道的DBDC模式,则执行步骤804。
步骤803、移动设备确定频段与第二信道所属频段不同的第一信道,之后,第一天线通过第一信道与电子设备以Wi-Fi P2P的方式无线通信,同时第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信。
比如,如图8A中的(b)所示,移动设备100将第一信道410确定为5GHz频段的149信道,之后,移动设备100的第一信道410与第二信道420之间不再构成同频异信道模式的关系,而是构成异频异信道的DBDC模式关系。这样,第一信道410与第二信道420的传输速度都得以保证,不会出现分时调度的情形,用户投屏和上网不会因为信道的原因出现卡顿;此外,第一信道410和第二信道420之间的干扰也减小,用户体验得以提高。
步骤804,移动设备确定信道与第二信道相同的第一信道,移动设备的第一天线通过 第一信道与电子设备以Wi-Fi P2P连接的方式无线通信;同时第二天线仍通过第二信道与第一无线信号源以Wi-Fi AP连接的方式无线通信。
在移动设备确定信道与第二信道相同的第一信道后,第一信道即与第二信道相同。如图8B的(b)所示,将第一信道410确定为2.4GHz频段的6信道。第一信道410就与此时的第二信道420构成了同频同信道模式的关系。
可替代地,在一些实施方式中,步骤804可被替换为:移动设备确定第一信道与第二信道为同一频段下的不同信道,移动设备的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信;第二天线也通过第一信道与第一无线信号源以Wi-Fi AP连接的方式无线通信。
本申请实施例中,在第二信道已经存在,尚未建立第一信道时,可将第一信道优先构建为与第二信道呈异频异信道的DBDC模式关系的信道;当无法将第一信道构建为与第二信道呈异频异信道的DBDC模式关系的信道时,将第一信道构建为与第二信道呈同频同信道模式或同频异信道模式的关系的信道。
在上述将第一信道优先构建为与第二信道呈异频异信道的DBDC模式关系的信道中,可以固定第二信道,然后构建第一信道;也可以变动第二信道,然后构建第一信道;还可以在构建中,先尝试固定第二信道,然后构建第一信道,若失败达到预定次数后,再变动第二信道,然后构建第一信道。
需要说明的是,上述实施例三中是以移动设备100在投屏之前,移动设备100与路由设备300已经通过第二信道进行无线通信说明的。在另外一些实施方式下,电子设备200在被投屏之前,电子设备200仅与路由设备300无线通信连接,比如电子设备200通过路由设备300上网。之后,移动设备100接收到一个用户输入,该用户输入用于指示移动设备100与电子设备200建立Wi-Fi P2P无线通信连接;然后,移动设备100向电子设备200发送Wi-Fi P2P无线通信连接请求;电子设备200在接收到该Wi-Fi P2P无线通信连接请求后,电子设备200可获取电子设备200与路由设备300之间的以Wi-Fi AP的方式无线通信所使用的信道信息,之后,按照与上述图8C所述方式以及上文所述的图8C以外方式相同或相类似的方式,确定电子设备200与移动设备100建立Wi-Fi P2P网络连接所使用的信道,并向移动设备100反馈,从而移动设备100与电子设备200之间最终建立以Wi-Fi P2P方式无线通信的第一信道。此处不再赘述。
实施例四
本申请实施例四涉及图9A至图9C。移动设备100通过第一信道与电子设备200以Wi-Fi P2P方式无线通信,此时移动设备100与路由设备300尚未无线通信连接。之后,在移动设备100向路由设备300发起无线通信连接时,移动设备100与路由设备300的无线通信信道,根据第一信道来确定。
为了更清楚地阐述,下面以移动设备100通过第一信道与电子设备200进行投屏为例说明。如图9A中(a)所示,在移动设备100向电子设备200投屏过程中,移动设备100接收到一个用户输入,该用户输入用于请求通过路由设备300(例如用户家或办公室的路由设备)上网。移动设备100可根据当前移动设备100的Wi-Fi芯片是否支持DBDC模式,第一信道,确定移动设备100与路由设备300的第一无线信号源之间的Wi-Fi AP无线通信所使用的第二信道。图9B中(a)与图9A中(a)相同,此处不再赘述。
下面结合图9C,对本实施例四的信道调整方法的流程进行说明。如图9C所示,信道调整方法的具体步骤如下:
步骤901、移动设备仅与电子设备存在Wi-Fi P2P连接,具体为移动设备的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信;移动设备接收到一个用户输入,该用户输入用于指示建立移动设备与路由设备的第一无线信号源之间的Wi-Fi AP无线通信连接。
在一种实施方式中,此时除了电子设备之外,移动设备未与任何设备存在Wi-Fi连接。此时,移动设备的第二天线处于空闲状态。
示例性地,该用户输入可以为用户上网操作;该用户上网操作用于指示建立移动设备100与路由设备300的第一无线信号源之间的Wi-Fi AP无线通信连接。
其中,上述用户上网操作的输入方式包括但不限于触摸、语音输入等。
步骤902、移动设备是否支持异频异信道的DBDC模式。
若移动设备100支持异频异信道的DBDC模式,则执行步骤903;若移动设备不支持异频异信道的DBDC模式,则执行步骤904。
示例性地,移动设备确定移动设备的Wi-Fi芯片是否支持异频异信道的DBDC模式。
其中,若移动设备100的Wi-Fi芯片支持异频异信道的DBDC模式,则执行步骤903;若移动设备的Wi-Fi芯片不支持异频异信道的DBDC模式,则执行步骤904。
步骤903、移动设备确定频段与第一信道所属频段不同的第二信道,之后,第一天线仍通过第一信道与电子设备以Wi-Fi P2P的方式无线通信,同时第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信。
比如,如图9A中的(b)所示,移动设备100将第二信道420确定为2.4GHz频段的6信道,之后,移动设备100的第二信道420与第一信道410不再构成同频异信道模式的关系,而是构成异频异信道的DBDC模式关系。这样,第一信道410与第二信道420的传输速度都得以保证,不会出现分时调度的情形,用户投屏和上网不会因为信道的原因出现卡顿;此外,第一信道410和第二信道420之间的干扰也减小,用户体验得以提高。
步骤904,移动设备确定信道与第一信道相同的第二信道,移动设备的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信,同时第二天线通过第二信道与第一无线信号源以Wi-Fi AP连接的方式无线通信。
在移动设备确定信道与第一信道相同的第二信道之后,第二信道与第一信道相同。如图9B的(b)所示,移动设备100将第二信道420确定为5GHz频段的149信道,即第二信道与第一信道相同。第一信道410就与此时的第二信道420构成了同频同信道模式的关系。
可替代地,在一些实施方式中,步骤904可被替换为:移动设备确定第二信道为与第一信道呈同一频段下不同信道关系的信道,移动设备的第一天线通过第一信道与电子设备以Wi-Fi P2P连接的方式无线通信;第二天线通过第二信道与第一无线信号源以Wi-Fi AP连接的方式无线通信。
本申请实施例中,在第一信道已经存在,尚未建立第二信道时,可将第二信道优先构建为与第一信道呈异频异信道的DBDC模式关系的信道;当无法将第二信道构建为与第一信道呈异频异信道的DBDC模式关系的信道时,将第二信道构建为与第一信道呈同频同信道模式或同频异信道模式的关系的信道。
在上述将第二信道优先构建为与第一信道呈异频异信道的DBDC模式关系的信道中,可以固定第一信道,然后构建第二信道;也可以变动第一信道,然后构建第二信道;还可以在构建中,先尝试固定第一信道,然后构建第二信道,若失败后,再变动第一信道,然后构建第二信道。
需要说明的是,上述实施例四中是以移动设备100在上网之前,移动设备100与电子设备200已经通过第一信道进行无线通信说明的。在一些可能的实施方式,也可以是电子设备200在上网之前,电子设备200正在被移动设备100投屏,此时电子设备200获取电子设备200与移动设备100之间的以Wi-Fi P2P的方式无线通信所使用的信道信息,之后,根据该信道信息,并按照与上述图9C所述方式以及上文所述图9C以外方式相同或相类似的方式,电子设备200确定电子设备200与路由设备300建立Wi-Fi AP网络连接所使用的信道。此处不再赘述。
需要说明的是,虽然上述实施例一至实施例四均以移动设备100要调整第一信道和/或第二信道,或者建立第一信道或第二信道为例,阐述移动设备如何调整第一信道和/或第二信道,或者如何建立第一信道或第二信道,但本领域技术人员应当理解的是,上述的调整第一信道和/或第二信道,以及建立第一信道或第二信道的方式,也适用于电子设备200。
也就是说,在电子设备200通过一个信道与路由设备300以Wi-Fi AP方式无线通信,以及通过另一个信道与移动设备100以Wi-Fi P2P方式无线通信时;或者,在电子设备200仅通过一个信道与路由设备300以Wi-Fi AP方式无线通信,没有与移动设备100以Wi-Fi P2P方式无线通信时;或者,在电子设备200仅通过一个信道与移动设备100以Wi-Fi P2P方式无线通信,没有与路由设备300以Wi-Fi AP方式无线通信时;上述实施例一至实施例四所包含的调整第一信道和/或第二信道,以及建立第一信道或第二信道的方式,同样适用于电子设备200。优选地,电子设备选择将上述一个信道和另一个信道构建为同频同信道模式的关系。当然,电子设备也可选择将上述一个信道和另一个信道构建为异频异信道的DBDC模式关系,或同频同信道模式的关系。
图10为本申请实施例提供的信道调整装置的结构示意图。如图10所示,该装置包括:
获取模块1001,用于获取信道信息。具体地,获取模块1001可以在调整信道之前,获取上述第一信道和第二信道的信道信息。其中,第一信道和第二信道的信道信息具体情况可以参见上述实施例。
确定模块1002,用于确定Wi-Fi芯片是否能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号。
调整模块1003,用于调整第一信道或第二信道。具体地,调整模块1003可以在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,第一天线和第二天线分时复用,以及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道。当然,调整模块1003也可以在其他情形下,调整第一信道或第二信道。其中,其他情形以及具体地调整方式可以参见上述实施例一至实施例四,此处不再赘述。
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的方法。
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片系统,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使装置执行上述所示的实施例中的一个或多个步骤,以实现上述实施例中的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片系统,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的方法。
其中,本申请实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以丢弃,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其他的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (31)

  1. 一种电子设备,其特征在于,所述电子设备包括:
    一个或多个处理器;
    一个或多个存储器;
    一个Wi-Fi芯片;
    N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述一个或多个存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,所述第一天线和所述第二天线分时复用,以及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
  2. 根据权利要求1所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。
  3. 根据权利要求1或2所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源,以及在另一预设时长内检测到信道与第一信道相同的无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述无线信号源以Wi-Fi AP的方式无线通信。
  4. 根据权利要求1-3中任意一项所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源,以及在另一预设时长内未检测到信道与第一信道相同的无线信号源之后,所述电子设备不作处理。
  5. 根据权利要求1-4中任意一项所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在检测到所述第一信道与所述第二信道为同一频段下的同一信道,且在所述预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道, 调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
  6. 一种电子设备,其特征在于,所述电子设备包括:
    一个或多个处理器;
    一个或多个存储器;
    一个Wi-Fi芯片;
    N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,所述第一天线通过第一信道向所述另一电子设备发送请求消息,所述请求消息包含拟调整后的第一信道,所述拟调整后的第一信道与所述第二信道为不同频段下的不同信道,所述请求消息用于请求通过所述拟调整后的第一信道与所述另一电子设备以Wi-Fi P2P的方式无线通信;
    在接收到来自所述另一电子设备的肯定响应消息之后,调整所述第一信道为所述拟调整后的第一信道,所述第一天线通过调整后的第一信道与所述另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;其中,所述肯定响应消息用于指示所述另一电子设备同意通过所述拟调整后的第一信道与所述电子设备以Wi-Fi P2P的方式无线通信。
  7. 根据权利要求6所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在接收到来自所述另一电子设备的否定响应消息,且在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信;其中,所述否定响应消息用于指示所述另一电子设备不同意通过所述拟调整后的第一信道与所述电子设备以Wi-Fi P2P的方式无线通信。
  8. 根据权利要求7所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。
  9. 根据权利要求7或8所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源,以及在另一预设时长内检测到信道与所述第一信道相同的无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi  P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述无线信号源以Wi-Fi AP的方式无线通信。
  10. 根据权利要求7-9中任意一项所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源,以及在另一预设时长内未检测到信道与所述第一信道相同的无线信号源之后,所述电子设备不作处理。
  11. 根据权利要求7-10中任意一项所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在检测到所述第一信道与所述第二信道为同一频段下的同一信道,所述第一天线和所述第二天线分时复用,以及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
  12. 一种电子设备,其特征在于,所述电子设备包括:
    一个或多个处理器;
    一个或多个存储器;
    一个Wi-Fi芯片;
    N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线处于空闲状态,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    接收到一个输入;
    响应于所述输入,
    所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;所述第一信道与所述第二信道为不同频段下的不同信道;
    或者,
    所述第一天线通过所述第二信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;
    其中,所述输入用于指示所述电子设备与另一电子设备以Wi-Fi P2P的方式无线通信。
  13. 一种电子设备,其特征在于,所述电子设备包括:
    一个或多个处理器;
    一个或多个存储器;
    一个Wi-Fi芯片;
    N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备 以Wi-Fi P2P的方式无线通信,所述第二天线处于空闲状态;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    在接收到一个输入,且在预设时长内检测到频段与第一信道所属频段不同的第一无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述第一信道与所述第二信道为不同频段下的不同信道;其中,所述输入用于指示所述电子设备与无线信号源以Wi-Fi AP的方式无线通信。
  14. 根据权利要求13所述的电子设备,其特征在于,所述电子设备还执行以下步骤:
    在接收到一个输入,且在预设时长内未检测到频段与第一信道所属频段不同的第一无线信号源,但在预设时长内检测到频段与第一信道所属频段不同的第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
  15. 一种电子设备,其特征在于,所述电子设备包括:
    一个或多个处理器;
    一个或多个存储器;
    一个Wi-Fi芯片;
    N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述一个或多个存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,或者在检测到所述第一信道与所述第二信道为两个不同频段下的不同信道之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;或者,
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,或者在检测到所述第一信道与所述第二信道为两个不同频段下的不同信道之后,所述第一天线通过所述第二信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。
  16. 一种信道调整方法,应用于电子设备,其特征在于,所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线 通过第二信道与第一无线信号源以Wi-Fi接入点AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,所述第一天线和所述第二天线分时复用,以及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
  17. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。
  18. 根据权利要求16或17所述的方法,其特征在于,所述方法还包括:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源,以及在另一预设时长内检测到信道与第一信道相同的无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述无线信号源以Wi-Fi AP的方式无线通信。
  19. 根据权利要求16-18中任意一项所述的方法,其特征在于,所述方法还包括:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,但在所述预设时长内未检测到频段与第一无线信号源的频段不同的所述第二无线信号源,以及在另一预设时长内未检测到信道与第一信道相同的无线信号源之后,所述电子设备不作处理。
  20. 根据权利要求16-19中任意一项所述的方法,其特征在于,所述方法还包括:
    在检测到所述第一信道与所述第二信道为同一频段下的同一信道,且在所述预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
  21. 一种信道调整方法,应用于电子设备,其特征在于,所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,所述第一天线通过第一信道向所述另一电子设备发送请求消息,所述请求消息包含拟调整后的第一信道,所述拟调整后的第一信道与所述第二信 道为不同频段下的不同信道,所述请求消息用于请求通过所述拟调整后的第一信道与所述另一电子设备以Wi-Fi P2P的方式无线通信;
    在接收到来自所述另一电子设备的肯定响应消息之后,调整所述第一信道为所述拟调整后的第一信道,所述第一天线通过调整后的第一信道与所述另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;其中,所述肯定响应消息用于指示所述另一电子设备同意通过所述拟调整后的第一信道与所述电子设备以Wi-Fi P2P的方式无线通信。
  22. 根据权利要求21所述的方法,其特征在于,所述方法还包括:
    在接收到来自所述另一电子设备的否定响应消息,且在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信;其中,所述否定响应消息用于指示所述另一电子设备不同意通过所述拟调整后的第一信道与所述电子设备以Wi-Fi P2P的方式无线通信。
  23. 根据权利要求22所述的方法,其特征在于,所述方法还包括:
    在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。
  24. 根据权利要求22或23所述的方法,其特征在于,所述方法还包括:
    在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源,以及在另一预设时长内检测到信道与所述第一信道相同的无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述无线信号源以Wi-Fi AP的方式无线通信。
  25. 根据权利要求22-24中任意一项所述的方法,其特征在于,所述方法还包括:
    在接收到来自所述另一电子设备的否定响应消息,且在预设时长内未检测到频段与第一无线信号源的频段不同的第二无线信号源,以及在另一预设时长内未检测到信道与所述第一信道相同的无线信号源之后,所述电子设备不作处理。
  26. 根据权利要求22-25中任意一项所述的方法,其特征在于,所述方法还包括:
    在检测到所述第一信道与所述第二信道为同一频段下的同一信道,所述第一天线和所述第二天线分时复用,以及在预设时长内检测到频段与第一无线信号源的频段不同的第二无线信号源之后,调整所述第二信道,调整后的第二信道与所述第一信道为不同频段下的不同信道,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过调整后的第二信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
  27. 一种信道调整方法,应用于电子设备,其特征在于,所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线处于空闲状态,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的 方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:
    接收到一个输入;
    响应于所述输入,
    所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;所述第一信道与所述第二信道为不同频段下的不同信道;
    或者,
    所述第一天线通过所述第二信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;
    其中,所述输入用于指示所述电子设备与另一电子设备以Wi-Fi P2P的方式无线通信。
  28. 一种信道调整方法,应用于电子设备,其特征在于,所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线处于空闲状态;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:
    在接收到一个输入,且在预设时长内检测到频段与第一信道所属频段不同的第一无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述第一信道与所述第二信道为不同频段下的不同信道;其中,所述输入用于指示所述电子设备与无线信号源以Wi-Fi AP的方式无线通信。
  29. 根据权利要求28所述的方法,其特征在于,所述方法还包括:
    在接收到一个输入,且在预设时长内未检测到频段与第一信道所属频段不同的第一无线信号源,但在预设时长内检测到频段与第一信道所属频段不同的第二无线信号源之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第二无线信号源以Wi-Fi AP的方式无线通信。
  30. 一种信道调整方法,应用于电子设备,其特征在于,所述电子设备包括:一个或多个处理器;一个或多个存储器;一个Wi-Fi芯片;N条天线,所述N条天线都连接于所述Wi-Fi芯片,所述N条天线包括一条第一天线和一条第二天线;N为大于等于2的正整数;所述第一天线通过第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,所述第二天线通过第二信道与第一无线信号源以Wi-Fi AP的方式无线通信;所述Wi-Fi芯片能够使得所述第一天线和所述第二天线同时分别通过两个不同频段下的不同信道各自独立发送信号;所述方法包括:
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天线和所述第二天线分时复用之后,或者在检测到所述第一信道与所述第二信道为两个不同频段下的不同信道之后,所述第一天线通过所述第一信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第一信道与所述第一无线信号源以Wi-Fi AP的方式无线通信;或者,
    在检测到所述第一信道与所述第二信道为两个同一频段下的不同信道,且所述第一天 线和所述第二天线分时复用之后,或者在检测到所述第一信道与所述第二信道为两个不同频段下的不同信道之后,所述第一天线通过所述第二信道与另一电子设备以Wi-Fi P2P的方式无线通信,同时所述第二天线通过所述第二信道与所述第一无线信号源以Wi-Fi AP的方式无线通信。
  31. 一种计算机可读存储介质,包括计算机程序,其特征在于,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求16-30中任意一项所述的方法。
PCT/CN2021/078935 2020-07-28 2021-03-03 一种信道调整方法及电子设备 Ceased WO2022021878A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US18/007,279 US12574905B2 (en) 2020-07-28 2021-03-03 Channel adjustment method and electronic device
JP2023506064A JP7554905B2 (ja) 2020-07-28 2021-03-03 チャネル調整方法および電子デバイス
EP21850839.8A EP4181602A4 (en) 2020-07-28 2021-03-03 Channel adjustment method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010740592.6 2020-07-28
CN202010740592.6A CN114007267A (zh) 2020-07-28 2020-07-28 一种信道调整方法及电子设备

Publications (1)

Publication Number Publication Date
WO2022021878A1 true WO2022021878A1 (zh) 2022-02-03

Family

ID=76176825

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/078935 Ceased WO2022021878A1 (zh) 2020-07-28 2021-03-03 一种信道调整方法及电子设备

Country Status (5)

Country Link
US (1) US12574905B2 (zh)
EP (1) EP4181602A4 (zh)
JP (1) JP7554905B2 (zh)
CN (2) CN114007267A (zh)
WO (1) WO2022021878A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115696277A (zh) * 2022-09-28 2023-02-03 海信视像科技股份有限公司 显示设备和投屏连接方法
WO2024120069A1 (zh) * 2022-12-06 2024-06-13 华为技术有限公司 P2p业务数据传输的方法和电子设备

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4297282A4 (en) 2021-08-27 2024-10-30 Samsung Electronics Co., Ltd. ELECTRONIC DEVICE FOR REALIZING WIRELESS COMMUNICATION AND ITS OPERATING METHOD
CN115882877A (zh) * 2021-09-28 2023-03-31 华为技术有限公司 通信方法和设备
CN115988643B (zh) * 2021-10-14 2025-12-12 荣耀终端股份有限公司 WiFi P2P连接方法、电子设备和介质
CN116647728A (zh) * 2022-02-16 2023-08-25 北京小米移动软件有限公司 终端投屏控制方法、装置、终端及存储介质
CN114615544B (zh) * 2022-03-17 2024-06-04 深圳创维-Rgb电子有限公司 投屏信道优化方法、装置、设备及计算机可读存储介质
CN116938950A (zh) * 2022-04-08 2023-10-24 华为技术有限公司 一种数据传输的方法、电子设备和存储介质
JP2023173888A (ja) * 2022-05-26 2023-12-07 キヤノン株式会社 通信装置、制御方法、及びプログラム
JP2023173889A (ja) 2022-05-26 2023-12-07 キヤノン株式会社 通信装置、制御方法、及びプログラム
CN117255434A (zh) * 2022-06-11 2023-12-19 荣耀终端有限公司 数据传输管理方法、电子设备及存储介质
CN115226126B (zh) * 2022-06-13 2026-03-27 北京小米移动软件有限公司 信道占用方法、装置及存储介质
CN114980235B (zh) * 2022-07-29 2022-12-09 荣耀终端有限公司 一种通信方法、电子设备和存储介质
CN115348630B (zh) * 2022-10-14 2023-04-07 荣耀终端有限公司 多设备协同方法及相关装置
CN118283713A (zh) * 2022-12-30 2024-07-02 华为技术有限公司 信道确定方法及相关装置
CN116709577B (zh) * 2022-12-30 2024-06-11 荣耀终端有限公司 一种通信方法和电子设备
CN118433811A (zh) * 2023-01-31 2024-08-02 荣耀终端有限公司 通信方法和通信装置
CN116916452A (zh) * 2023-06-25 2023-10-20 恒玄科技(北京)有限公司 一种通信方法、装置、设备及存储介质
CN119854893B (zh) * 2023-10-11 2026-01-30 荣耀终端股份有限公司 数据传输控制方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468675A (zh) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 数据处理方法和设备
CN104717684A (zh) * 2015-03-30 2015-06-17 福州瑞芯微电子有限公司 一种wifi模式虚拟共存的方法和装置
CN109640310A (zh) * 2019-02-12 2019-04-16 Oppo广东移动通信有限公司 数据传输控制方法及相关产品
US20200120453A1 (en) * 2018-10-12 2020-04-16 Samsung Electronics Co., Ltd. Electronic device for determining p2p operating channel and method thereof

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2624981C (en) * 2005-10-06 2017-06-13 C-Sam, Inc. Three-dimensional transaction authentication
KR20130134193A (ko) * 2012-05-30 2013-12-10 삼성전자주식회사 컨커런트 서비스를 제공하기 위한 전자 장치 및 방법
US9072033B2 (en) * 2013-03-08 2015-06-30 Qualcomm Incorporated Systems and methods for concurrent device discovery
KR102162360B1 (ko) * 2014-03-05 2020-10-20 삼성전자주식회사 사용자 단말장치, 사용자 단말장치의 구동방법 및 컴퓨터 판독가능 기록매체
KR101920132B1 (ko) * 2014-03-27 2019-02-08 인텔 아이피 코포레이션 무선 통신 채널을 선택하는 장치, 시스템 및 방법
CN104657099B (zh) * 2015-01-15 2019-04-12 小米科技有限责任公司 屏幕投射方法、装置及系统
US10064097B2 (en) * 2015-06-05 2018-08-28 Apple Inc. Interface shaping for virtual interfaces
KR102655626B1 (ko) * 2017-02-28 2024-04-08 삼성전자주식회사 디스플레이 장치 및 디스플레이 장치의 동작 채널 설정방법
CN109729567B (zh) * 2017-10-27 2020-10-27 华为技术有限公司 一种消息处理方法和接入点设备以及消息处理设备
JP6770570B2 (ja) 2018-12-28 2020-10-14 キヤノン株式会社 通信装置、通信装置の制御方法
JP7389550B2 (ja) 2018-12-28 2023-11-30 キヤノン株式会社 通信装置、制御方法、プログラム、及び記憶媒体
CN110266360B (zh) * 2019-06-25 2022-05-17 Oppo广东移动通信有限公司 电磁干扰调整方法及相关产品

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468675A (zh) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 数据处理方法和设备
CN104717684A (zh) * 2015-03-30 2015-06-17 福州瑞芯微电子有限公司 一种wifi模式虚拟共存的方法和装置
US20200120453A1 (en) * 2018-10-12 2020-04-16 Samsung Electronics Co., Ltd. Electronic device for determining p2p operating channel and method thereof
CN109640310A (zh) * 2019-02-12 2019-04-16 Oppo广东移动通信有限公司 数据传输控制方法及相关产品

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4181602A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115696277A (zh) * 2022-09-28 2023-02-03 海信视像科技股份有限公司 显示设备和投屏连接方法
WO2024120069A1 (zh) * 2022-12-06 2024-06-13 华为技术有限公司 P2p业务数据传输的方法和电子设备

Also Published As

Publication number Publication date
EP4181602A1 (en) 2023-05-17
CN112929972A (zh) 2021-06-08
JP7554905B2 (ja) 2024-09-20
US12574905B2 (en) 2026-03-10
CN112929972B (zh) 2022-03-11
JP2023535966A (ja) 2023-08-22
EP4181602A4 (en) 2024-01-17
US20230269707A1 (en) 2023-08-24
CN114007267A (zh) 2022-02-01

Similar Documents

Publication Publication Date Title
CN112929972B (zh) 一种信道调整方法及电子设备
CN113676269B (zh) 电子设备的数据传输方法及其介质和电子设备
WO2021051986A1 (zh) 设备之间建立连接的方法及电子设备
EP2670209A2 (en) Method and apparatus for providing concurrent service
CN113645693A (zh) WiFi P2P连接方法、电子设备、程序产品和介质
WO2021218864A1 (zh) 一种Wi-Fi点对点业务的实现方法以及相关设备
CN107396386A (zh) 信道检测方法及信道检测设备
CN108271187A (zh) 执行飞行时间(ToF)测量的装置、系统和方法
CN110401938A (zh) 无线高保真Wi-Fi连接控制方法及相关产品
WO2022233237A1 (zh) 一种音频播放方法、装置和设备
WO2023284862A1 (zh) 一种无线信道资源的管理方法、设备以及系统
WO2025077397A1 (zh) 一种数据传输方法及电子设备
WO2022228190A1 (zh) 一种WiFi连接方法及装置
WO2024140122A1 (zh) 一种电子设备的连接管理方法、装置及系统
US20230028091A1 (en) Apparatus, system, and method of communication over a millimeterwave (mmwave) channel assisted by communication over a sub 10 gigahertz (ghz) (sub-10ghz) channel
CN113556805B (zh) 减少功耗的方法及终端
CN116471707B (zh) 一种路由器的连接方法、装置及系统
CN113746517B (zh) 一种波束训练的方法、终端设备及计算机可读存储介质
WO2025180218A1 (zh) 通信方法及相关装置
WO2025025600A1 (zh) WiFi扫描方法、设备及存储介质
CN121908359A (zh) 一种通信方法、终端设备及接入网设备
WO2025067109A1 (zh) 网络共存方法、电子设备和计算机存储介质
WO2025161782A1 (zh) 一种数据传输方法及电子设备
WO2026066220A1 (zh) 一种数据传输方法、装置、电子设备及存储介质
WO2025167377A1 (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: 21850839

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2023506064

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2021850839

Country of ref document: EP

Effective date: 20230210

NENP Non-entry into the national phase

Ref country code: DE

WWG Wipo information: grant in national office

Ref document number: 18007279

Country of ref document: US