Channel adjustment method and electronic device - Patents.com
By adjusting channel relationships between multiple antennas in electronic devices to enable parallel communication on different frequency bands, the device stabilizes speeds and reduces interference, improving user experience during simultaneous operations like Internet access and screen projection.
Patent Information
- Application Number
- JP2023506064
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-07-28
- Filing Date
- 2021-03-03
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-03-03
AI Technical Summary
Multi-antenna electronic devices experience fluctuations in speed and interference when performing simultaneous operations like Internet access and screen projection due to time-division-based switching by a shared Wi-Fi chip, leading to a poor user experience.
The electronic device adjusts channel relationships between multiple antennas to enable parallel communication on different frequency bands, using a Wi-Fi chip that supports DBDC mode, reducing interference and maintaining stable speeds for simultaneous operations.
This approach ensures low packet loss, reduced delay, and improved fluency in channel-related services, enhancing user experience by preventing frame freezing and maintaining consistent performance.
Smart Images

Figure 0007554905000018 
Figure 0007554905000007 
Figure 0007554905000013
Abstract
Description
[Technical field]
[0001] This disclosure claims priority to Chinese Patent Application No. 202010740592.6, entitled “Channel Adjustment Method and Electronic Device,” filed with the China National Intellectual Property Office on July 28, 2020, the entire contents of which are incorporated herein by reference.
[0002] The present disclosure relates to the field of terminal technology, and in particular to a channel adjustment method and an electronic device. [Background technology]
[0003] To perform Wi-Fi communication, an electronic device needs to be equipped with a Wi-Fi chip in addition to an antenna. In the case of a multi-antenna electronic device in which all of the multiple antennas are connected to the same Wi-Fi chip, when a user uses the multi-antenna electronic device to simultaneously perform two different operations related to wireless communication channels, such as Internet access and screen projection, the two channels of the multi-antenna electronic device, such as the Internet access channel and the screen projection channel, may form an in-band inter-channel relationship. In this case, the same connected Wi-Fi chip performs time-division-based switching between the multiple antennas in the multi-antenna electronic device to perform time-division-based switching between the channels. Thus, extra overhead is generated in the electronic device, and the speeds of the two different operations, such as the Internet access speed and the screen projection speed, are sometimes high and sometimes low, resulting in a relatively poor user experience. Summary of the Invention [Means for solving the problem]
[0004] In order to solve the aforementioned technical problems, the present disclosure provides a channel adjustment method and an electronic device, so that when a user uses an electronic device to simultaneously perform two different operations related to a channel, such as Internet access and screen projection, the speeds of the two different operations are stable and the two different operations are relatively fluent, thereby improving the user experience.
[0005] According to a first aspect, an electronic device is provided, 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 including a first antenna and a second antenna, N being a positive integer equal to or greater than 2, the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner over a first channel, and the second antenna wirelessly communicates with the Wi-Fi P2P manner over a second channel. and N antennas, the N antennas wirelessly communicating with a first wireless signal source in an AP manner, the N antennas enabling the Wi-Fi chip to simultaneously and independently transmit signals via different channels on two different frequency bands, and one or more computer programs stored in one or more memories, the one or more computer programs being executed by one or more processors to perform the following steps: detect that the first channel and the second channel are two different channels on the same frequency band, perform time division multiplexing on the first antenna and the second antenna, and after a second wireless signal source having a frequency band different from that of the first wireless signal source is detected within a preset duration, adjust the second channel, and determine that the adjusted second channel and the first channel are different channels on different frequency bands, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicating with the second wireless signal source in a Wi-Fi AP manner via the adjusted second channel. The second channel is adjusted while the first channel remains unchanged.In this way, the Wi-Fi chip does not need to switch, the communication on the first channel and the communication on the second channel are carried out in parallel, the quality of each channel is relatively good, the packet loss rate is relatively low, the delay is relatively low, the interference between the first channel and the second channel is greatly reduced, and the electronic device simultaneously performs the service associated with the first channel and the service associated with the second channel, for example, screen projection and Internet access are independently performed at the same time, and the two services have a relatively high fluency. Thus, the user experience is relatively good.
[0006] According to the first aspect, after it is detected that the first channel and the second channel are two different channels on the same frequency band, but a second wireless signal source having a different frequency band from that of the first wireless signal source is not detected within a preset duration, the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner through the first channel, and the second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP manner through the first channel. In this way, the electronic device supports the DBDC mode of the inter-band inter-channel mode, but a wireless signal source having a different frequency band from that of the frequency band to which the first channel belongs is not detected, and therefore the relationship between the first channel and the second channel is adjusted to that of the in-band co-channel mode.
[0007] According to the first aspect or any one of the embodiments of the first aspect, after it is detected that the first channel and the second channel are two different channels on the same frequency band, but a second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is not detected within a preset duration, and a wireless signal source having the same channel as the first channel is detected within another preset duration, the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner through the first channel, and the second antenna wirelessly communicates with the wireless signal source in a Wi-Fi AP manner through the first channel. In this way, the electronic device supports the DBDC mode of the inter-band inter-channel mode, but after a wireless signal source having a different frequency band from the frequency band to which the first channel belongs is not detected, and thus a wireless signal source providing the same channel as the first channel is detected, the relationship between the first channel and the second channel is adjusted to that of the in-band co-channel mode.
[0008] According to the first aspect or any one of the embodiments of the first aspect, the electronic device skips the process after it is detected that the first channel and the second channel are two different channels on the same frequency band, but a second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is not detected within a preset duration, and a wireless signal source having the same channel as the first channel is not detected within another preset duration. In this way, the electronic device supports the DBDC mode of the inter-band inter-channel mode, but a wireless signal source having a different frequency band from the frequency band to which the first channel belongs is not detected, and a wireless signal source providing the same channel as the first channel is not detected, so no process is performed and the current situation is maintained.
[0009] According to the first aspect or any one of the embodiments of the first aspect, after it is detected that the first channel and the second channel are the same channel on the same frequency band and a second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is detected within a preset duration, the second channel is adjusted so that the adjusted second channel and the first channel are different channels on different frequency bands, and the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner via the first channel and the second antenna wirelessly communicates with the second wireless signal source in a Wi-Fi AP manner via the adjusted second channel. In this way, the Wi-Fi chip does not need to switch, the communication on the first channel and the communication on the second channel are carried out in parallel, the quality of each channel is relatively good, the packet loss rate is relatively low, the delay is relatively low, the interference between the first channel and the second channel is greatly reduced, and the electronic device simultaneously performs the service associated with the first channel and the service associated with the second channel, for example, screen projection and Internet access are independently performed at the same time, and the two services have a relatively high fluency. Thus, the user experience is relatively good.
[0010] According to a second aspect, an electronic device is provided.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 including a first antenna and a second antenna, N being a positive integer equal to or greater than 2, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner over a first channel, and the second antenna wirelessly communicating with the Wi-Fi P2P manner over a second channel. a number of N antennas, which wirelessly communicate with a first wireless signal source in an AP manner, and a Wi-Fi chip, which enables the first antenna and the second antenna to simultaneously and independently transmit signals through different channels on two different frequency bands, respectively; and one or more computer programs, which are stored in a memory, and when the computer programs are executed by one or more processors, detect that the first channel and the second channel are two different channels on the same frequency band, and after time division multiplexing is performed on the first antenna and the second antenna, transmit a request message to another electronic device through the first channel, the request message includes a first channel to be obtained by coordination, and the first channel and the second channel to be obtained by coordination are different channels on different frequency bands, and the request message transmits a Wi-Fi signal through the first channel to be obtained by coordination. and one or more computer programs for performing the steps of: after an acknowledgment message is received from the other electronic device, adjusting the first channel to a first channel to be acquired by adjustment, the first antenna wirelessly communicating with the other electronic device in a Wi-Fi P2P manner via the adjusted first channel, and the second antenna wirelessly communicating with the first wireless signal source in a Wi-Fi AP manner via the second channel, wherein the acknowledgment message is used to indicate that the other electronic device agrees to wirelessly communicate with the electronic device in a Wi-Fi P2P manner via the first channel to be acquired by adjustment.The first channel is adjusted, but the second channel remains unchanged. In the process of adjusting the first channel, when an agreement is reached between the two electronic devices, the relationship between the second channel and the first channel is adjusted to a relationship of the DBDC mode of the inter-band inter-channel mode. In this way, the Wi-Fi chip does not need to switch, the communication on the first channel and the communication on the second channel are carried out in parallel, the quality of each channel is relatively good, the packet loss rate is relatively low, the delay is relatively low, the interference between the first channel and the second channel is greatly reduced, and the electronic device simultaneously performs the service associated with the first channel and the service associated with the second channel, for example, screen projection and Internet access are independently performed at the same time, and the two services have a relatively high fluency. Therefore, the user experience is relatively good.
[0011] According to a second aspect, after a negative response message is received from another electronic device and a second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is detected within a preset duration, the second channel is adjusted, the adjusted second channel and the first channel are different channels on different frequency bands, the first antenna wirelessly communicates with the other electronic device in a Wi-Fi P2P manner through the first channel, and the second antenna wirelessly communicates with the second wireless signal source in a Wi-Fi AP manner through the adjusted second channel, where the negative response message is used to indicate that the other electronic device does not agree to wirelessly communicate with the electronic device in a Wi-Fi P2P manner through the first channel to be obtained by the adjustment. In the process of adjusting the first channel, if an agreement cannot be reached between the two electronic devices, only the adjustment of the first channel can be abandoned in this case, and the second channel is adjusted, so that the relationship between the second channel and the first channel is adjusted to a relationship of the DBDC mode of the inter-band inter-channel mode. In this way, the Wi-Fi chip does not need to switch, the communication on the first channel and the communication on the second channel are carried out in parallel, the quality of each channel is relatively good, the packet loss rate is relatively low, the delay is relatively low, the interference between the first channel and the second channel is greatly reduced, and the electronic device simultaneously performs the service associated with the first channel and the service associated with the second channel, for example, screen projection and Internet access are independently performed at the same time, and the two services have a relatively high fluency. Thus, the user experience is relatively good.
[0012] According to the second aspect or any one of the embodiments of the second aspect, after a negative acknowledgement message is received from another electronic device and a second wireless signal source having a frequency band different from that of the first wireless signal source is not detected within a preset duration, the first antenna wirelessly communicates with the other electronic device through the first channel in a Wi-Fi P2P manner, and the second antenna wirelessly communicates with the first wireless signal source through the first channel in a Wi-Fi AP manner. In the process of adjusting the first channel, if an agreement cannot be reached between the two electronic devices and a wireless signal source having a frequency band different from that of the first channel is not detected when the second channel is adjusted, the relationship between the first channel and the second channel is adjusted to a relationship of an in-band co-channel mode.
[0013] According to the second aspect or any one of the embodiments of the second aspect, after a negative acknowledgement message is received from another electronic device, a second wireless signal source having a frequency band different from that of the first wireless signal source is not detected within a preset duration, and a wireless signal source having a channel the same as that of the first channel is detected within another preset duration, the first antenna wirelessly communicates with the other electronic device in a Wi-Fi P2P manner through the first channel, and the second antenna wirelessly communicates with the wireless signal source in a Wi-Fi AP manner through the first channel. In this way, if an agreement cannot be reached between the two electronic devices in the process of adjusting the first channel, and when the second channel is adjusted, a wireless signal source having a frequency band different from that of the first channel is not detected, but a wireless signal source having a channel the same as that of the first channel is detected, the relationship between the first channel and the second channel is adjusted to a relationship of an in-band co-channel mode.
[0014] According to the second aspect or any one of the embodiments of the second aspect, the electronic device further skips the process after a negative acknowledgement message is received from another electronic device and a second wireless signal source having a different frequency band from that of the first wireless signal source is not detected within a preset duration and a wireless signal source having the same channel as the first channel is not detected within another preset duration. In this way, if an agreement cannot be reached between the two electronic devices in the process of adjusting the first channel and a wireless signal source having a different frequency band from that of the first channel is not detected and a wireless signal source having the same channel as the first channel is not detected when the second channel is adjusted, the electronic device does not perform the process and maintains the current situation.
[0015] According to the second aspect or any one of the embodiments of the second aspect, the steps of: detecting that the first channel and the second channel are the same channel on the same frequency band, performing time division multiplexing on the first antenna and the second antenna, and detecting a second wireless signal source having a different frequency band from the frequency band of the first wireless signal source within a preset duration, adjusting the second channel, the adjusted second channel and the first channel being different channels on different frequency bands, and the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicating with the second wireless signal source in a Wi-Fi AP manner via the adjusted second channel are further performed. In this way, the Wi-Fi chip does not need to switch, the communication on the first channel and the communication on the second channel are carried out in parallel, the quality of each channel is relatively good, the packet loss rate is relatively low, the delay is relatively low, the interference between the first channel and the second channel is greatly reduced, and the electronic device simultaneously performs the service associated with the first channel and the service associated with the second channel, for example, screen projection and Internet access are independently performed at the same time, and the two services have a relatively high fluency. Thus, the user experience is relatively good.
[0016] According to a third aspect, an electronic device is provided, the electronic device includes one or more processors, one or more memories, a Wi-Fi chip, N antennas, all of the N antennas are connected to the Wi-Fi chip, the N antennas include a first antenna and a second antenna, N is a positive integer equal to or greater than 1, the first antenna is in an idle state, the second antenna wirelessly communicates with a first wireless signal source in a Wi-Fi AP manner over a second channel, the Wi-Fi chip enables the first antenna and the second antenna to simultaneously and independently transmit signals over different channels on two different frequency bands, respectively, and one or more computer programs, the one or more computer programs being stored in a memory, and when the computer programs are executed by the one or more processors, the one or more computer programs include a step of receiving an input, and a step of executing the one or more computer programs, in response to the input, the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner over the first channel, and the second antenna wirelessly communicates with the Wi-Fi P2P manner over the second channel. and one or more computer programs in which: a step of wirelessly communicating with a first wireless signal source in an AP manner, the first channel and the second channel being different channels on different frequency bands; or a step of a first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner through a second channel, and a second antenna wirelessly communicating with the first wireless signal source in a Wi-Fi AP manner through a second channel, the input being used to indicate to the electronic device to wirelessly communicate with the other electronic device in a Wi-Fi P2P manner. For example, the input may be a user input, or an input message or input command sent to the electronic device by the other electronic device or any other electronic device. When the electronic device has established a Wi-Fi wireless communication connection channel only with the other electronic device and needs to further establish a Wi-Fi wireless communication connection channel with the any other electronic device, the new channel to be established and the established channel form a relationship in a DBDC mode of an inter-band inter-channel mode.In this way, after a new channel is established, the Wi-Fi chip does not need to switch, and the communication on the first channel and the communication on the second channel are carried out in parallel, the quality of each channel is relatively good, the packet loss rate is relatively low, the delay is relatively low, the interference between the first channel and the second channel is greatly reduced, and the electronic device simultaneously performs the service associated with the first channel and the service associated with the second channel, for example, screen projection and Internet access are independently performed at the same time, and the two services have a relatively high fluency. Thus, the user experience is relatively good.
[0017] According to a fourth aspect, an electronic device is provided. The electronic device includes one or more processors, one or more memories, a Wi-Fi chip, N antennas, all of the N antennas connected to the Wi-Fi chip, the N antennas including a first antenna and a second antenna, N being a positive integer equal to or greater than two, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner via a first channel and the second antenna being in an idle state, the Wi-Fi chip enabling the first antenna and the second antenna to simultaneously and independently transmit signals via different channels on two different frequency bands, respectively, and one or more computer programs stored in the memory, the computer programs, when executed by the one or more processors, receive an input, and after a first wireless signal source having a frequency band different from the frequency band to which the first channel belongs is detected within a preset duration, the first antenna wirelessly communicating with the other electronic device in a Wi-Fi P2P manner via the first channel and the second antenna wirelessly communicating with the other electronic device in a Wi-Fi P2P manner via the second channel, the second antenna being in an idle state, the Wi-Fi chip enabling the first antenna and the second antenna to simultaneously and independently transmit signals via different channels on two different frequency bands, respectively, and one or more computer programs. and one or more computer programs for performing a step of wirelessly communicating with a first wireless signal source in an AP manner, where the first channel and the second channel are different channels on different frequency bands, and an input is used to indicate to the electronic device to wirelessly communicate with the wireless signal source in a Wi-Fi AP manner. For example, the input may be a user input, or an input message or input command sent to the electronic device by another electronic device or any other electronic device. When the electronic device has established a Wi-Fi wireless communication connection channel only with the other electronic device and needs to further establish a Wi-Fi wireless communication connection channel with the any other electronic device, the new channel to be established and the established channel form a relationship in a DBDC mode of an inter-band inter-channel mode.In this way, after a new channel is established, the Wi-Fi chip does not need to switch, and the communication on the first channel and the communication on the second channel are carried out in parallel, the quality of each channel is relatively good, the packet loss rate is relatively low, the delay is relatively low, the interference between the first channel and the second channel is greatly reduced, and the electronic device simultaneously performs the service associated with the first channel and the service associated with the second channel, for example, screen projection and Internet access are independently performed at the same time, and the two services have a relatively high fluency. Thus, the user experience is relatively good.
[0018] According to a fourth aspect, the step of: after an input is received and a first wireless signal source having a different frequency band from the frequency band to which the first channel belongs is not detected within a preset duration, but a second wireless signal source having a different frequency band from the frequency band to which the first channel belongs is detected within a preset duration, the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner through the first channel, and the second antenna wirelessly communicates with the second wireless signal source in a Wi-Fi AP manner through the first channel is further performed. For example, the input may be a user input, or an input message or input command sent to the electronic device by another electronic device or any other electronic device. In this way, the electronic device supports the DBDC mode of the inter-band inter-channel mode, but a wireless signal source having a different frequency band from the frequency band to which the first channel belongs is not detected, and thus the relationship between the first channel and the second channel is adjusted to that of the in-band co-channel mode.
[0019] According to a fifth aspect, an electronic device is provided, 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 including a first antenna and a second antenna, N being a positive integer equal to or greater than 1, the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner over a first channel, and the second antenna wirelessly communicates with the Wi-Fi P2P manner over a second channel. a number of N antennas, the N antennas wirelessly communicating with a first wireless signal source in an AP manner, the Wi-Fi chip enabling the first antenna and the second antenna to simultaneously and independently transmit signals via different channels on two different frequency bands, and one or more computer programs, the one or more computer programs being stored in one or more memories, the one or more computer programs being executed by one or more processors, the one or more computer programs being stored in one or more memories, the one or more computer programs being executed by one or more processors, the one or more computer programs being executed by one or more processors, the one or more computer programs being executed by one or more processors, the one or more computer programs being executed by one or more processors, and one or more computer programs for performing a step of wirelessly communicating with a first wireless signal source in an AP manner, or after detecting that the first channel and the second channel are two different channels on the same frequency band and time division multiplexing is performed between the first antenna and the second antenna, or after detecting that the first channel and the second channel are different channels on two different frequency bands, the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner via the second channel, and the second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP manner via the second channel. In some scenarios, the electronic device places more emphasis on high throughput.In this case, the relationship between the first channel and the second channel is adjusted to that of the in-band co-channel mode.
[0020] According to a sixth aspect, a channel adjustment method is provided. The method is applied to an electronic device. The electronic device includes one or more processors, one or more memories, one Wi-Fi chip, and N antennas. All the N antennas are connected to the Wi-Fi chip, and the N antennas include a first antenna and a second antenna, where N is a positive integer equal to or greater than 2. The first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner through a first channel. The second antenna wirelessly communicates with a first wireless signal source in a Wi-Fi access point AP manner through a second channel. The Wi-Fi chip enables the first antenna and the second antenna to simultaneously and independently transmit signals through different channels on two different frequency bands, respectively. The method includes the steps of detecting that the first channel and the second channel are two different channels on the same frequency band, performing time division multiplexing on the first antenna and the second antenna, and after detecting a second wireless signal source having a frequency band different from that of the first wireless signal source within a preset duration, adjusting the second channel so that the adjusted second channel and the first channel are different channels on different frequency bands, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicating with the second wireless signal source in a Wi-Fi AP manner via the adjusted second channel.
[0021] For any embodiment of the sixth aspect, please refer to any embodiment of the first aspect. For the technical effects corresponding to the sixth aspect and any one of the embodiments of the sixth aspect, please refer to the technical effects corresponding to the first aspect and any one of the embodiments of the first aspect. Details will not be described here.
[0022] According to a seventh aspect, a channel adjustment method is provided. The method is applied to an electronic device. The electronic device includes one or more processors, one or more memories, one Wi-Fi chip, and N antennas. All the N antennas are connected to the Wi-Fi chip, and the N antennas include a first antenna and a second antenna, where N is a positive integer equal to or greater than 2. The first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner through a first channel. The second antenna wirelessly communicates with a first wireless signal source in a Wi-Fi AP manner through a second channel. The Wi-Fi chip enables the first antenna and the second antenna to simultaneously and independently transmit signals through different channels on two different frequency bands, respectively. The method includes the steps of: after detecting that the first channel and the second channel are two different channels on the same frequency band and time division multiplexing is performed on the first antenna and the second antenna, the first antenna transmitting a request message to another electronic device via the first channel, the request message including the first channel to be acquired by coordination, the first channel to be acquired by coordination and the second channel to be acquired by coordination being different channels on different frequency bands, and the request message is used to request wireless communication with the other electronic device in a Wi-Fi P2P manner via the first channel to be acquired by coordination; after receiving an acknowledgment message from the other electronic device, the first channel is tuned to the first channel to be acquired by coordination, the first antenna wirelessly communicates with the other electronic device in a Wi-Fi P2P manner via the tuned first channel, and the second antenna wirelessly communicates with a first wireless signal source in a Wi-Fi AP manner via the second channel, the acknowledgment message being received from the other electronic device. and used to indicate consent to wirelessly communicate with the electronic device in a P2P manner.
[0023] For any embodiment of the seventh aspect, please refer to any embodiment of the second aspect. For the technical effects corresponding to the seventh aspect and any one of the embodiments of the seventh aspect, please refer to the technical effects corresponding to the second aspect and any one of the embodiments of the second aspect. Details will not be described here.
[0024] According to an eighth aspect, a channel adjustment method is provided. The method is applied to an electronic device. The electronic device includes one or more processors, one or more memories, one Wi-Fi chip, and N antennas. All the N antennas are connected to the Wi-Fi chip, and the N antennas include a first antenna and a second antenna, where N is a positive integer equal to or greater than 2. The first antenna is in an idle state. The second antenna wirelessly communicates with a first wireless signal source in a Wi-Fi AP manner via a second channel. The Wi-Fi chip enables the first antenna and the second antenna to simultaneously and independently transmit signals via different channels on two different frequency bands, respectively. The method includes the steps of receiving an input, and in response to the input, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner over a first channel and the second antenna wirelessly communicating with a first wireless signal source in a Wi-Fi AP manner over a second channel, where the first channel and the second channel are different channels on different frequency bands, or the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner over the second channel and the second antenna wirelessly communicating with the first wireless signal source in a Wi-Fi AP manner over the second channel, where the input is used to indicate to the electronic device to wirelessly communicate with the other electronic device in a Wi-Fi P2P manner.
[0025] For technical effects corresponding to the eighth aspect, please refer to the technical effects corresponding to the third aspect, and details will not be described here.
[0026] According to a ninth aspect, a channel adjustment method is provided. The method is applied to an electronic device. The electronic device includes one or more processors, one or more memories, a Wi-Fi chip, and N antennas. All the N antennas are connected to the Wi-Fi chip, and the N antennas include a first antenna and a second antenna, where N is a positive integer equal to or greater than 2. The first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner through a first channel. The second antenna is in an idle state. The Wi-Fi chip enables the first antenna and the second antenna to simultaneously and independently transmit signals through different channels on two different frequency bands, respectively. The method includes a step of receiving an input, and after a first wireless signal source having a frequency band different from the frequency band to which the first channel belongs is detected within a preset duration, a first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner via the first channel and a second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP manner via a second channel, where the first channel and the second channel are different channels on different frequency bands, and the input is used to indicate to the electronic device to wirelessly communicate with the wireless signal source in the Wi-Fi AP manner.
[0027] For any embodiment of the ninth aspect, please refer to any embodiment of the fourth aspect. For the technical effects corresponding to the ninth aspect and any one of the embodiments of the ninth aspect, please refer to the technical effects corresponding to the fourth aspect and any one of the embodiments of the fourth aspect. Details will not be described here.
[0028] According to a tenth aspect, there is provided a computer readable storage medium. The computer readable storage medium includes a computer program. When the computer program is executed on an electronic device, the electronic device is enabled to perform the method of the sixth aspect or any one of its possible implementations, the method of the seventh aspect or any one of its possible implementations, the method of the eighth aspect or any one of its possible implementations, or the method of the ninth aspect or any one of its possible implementations.
[0029] For any embodiment and corresponding technical effects of the tenth aspect, please refer to the embodiments and corresponding technical effects of the sixth, seventh, eighth and ninth aspects, and any embodiment and corresponding technical effects of the sixth, seventh, eighth and ninth aspects, which will not be described in detail here.
[0030] According to an eleventh aspect there is provided a computer program product which, when executed on a computer, enables the computer to perform the method of the sixth aspect or any one of its possible implementations, the method of the seventh aspect or any one of its possible implementations, the method of the eighth aspect or any one of its possible implementations, or the method of the ninth aspect or any one of its possible implementations.
[0031] For any embodiment and corresponding technical effects of the eleventh aspect, please refer to the embodiments and corresponding technical effects of the sixth aspect, the seventh aspect, the eighth aspect, and the ninth aspect, and any embodiment and corresponding technical effects of the sixth aspect, the seventh aspect, the eighth aspect, and the ninth aspect, which will not be described in detail here. [Brief description of the drawings]
[0032] [Figure 1] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure. [Diagram 2] 1 is a schematic flowchart of a Wi-Fi P2P connection according to an embodiment of the present disclosure. [Diagram 3] FIG. 1 is a schematic diagram of the principle of time-sharing scheduling that exists when a mobile device is in DBAC mode, according to one embodiment of the present disclosure. [Figure 4] FIG. 2 is a schematic diagram of a hardware structure of a mobile device according to one embodiment of the present disclosure. [Diagram 5] FIG. 2 is a schematic diagram of a software structure of a mobile device according to one embodiment of the present disclosure. [Figure 6A] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 6B] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 6C] 4 is a schematic flowchart of a channel adjustment method according to an embodiment of the present disclosure. [Figure 6D] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 6E(A)] 4 is a schematic flowchart of a channel adjustment method according to an embodiment of the present disclosure. [Figure 6E(B)] 4 is a schematic flowchart of a channel adjustment method according to an embodiment of the present disclosure. [Figure 7A] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 7B] 4 is a schematic flowchart of a channel adjustment method according to an embodiment of the present disclosure. [Figure 8A] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 8B] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 8C] 4 is a schematic flowchart of a channel adjustment method according to an embodiment of the present disclosure. [Figure 9A] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 9B] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 9C] FIG. 13 is a schematic diagram of a result comparison of a channel adjustment method according to an embodiment of the present disclosure. [Figure 10] FIG. 1 is a schematic diagram of the structure of an apparatus according to one embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] The following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure.
[0034] The terms used in the following embodiments are merely for describing certain embodiments and are not intended to limit the present disclosure. The singular forms "one", "a", "the", "the foregoing", "this" and "the one" are intended to include forms such as "one or more" unless otherwise specified in the context. In the embodiments of the present disclosure, "one or more" means one, two or more, and "and / or" describes the association relationship between the associated objects and is further understood to represent that three relationships may exist. For example, A and / or B may represent the following three cases: when only A is present, when both A and B are present, and when only B is present. A or B may be singular or plural. The character " / " usually indicates an "or" relationship between the associated objects.
[0035] References to "one embodiment," "some embodiments," and the like described herein mean that one or more embodiments of the disclosure include the particular features, structures, or characteristics described with respect to those embodiments. Thus, statements such as "in one embodiment," "in some embodiments," "in some other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily mean to refer to the same embodiment. Instead, these statements mean "one or more, but not all, embodiments," unless specifically emphasized otherwise. The terms "including," "having," and variations thereof all mean "including, but not limited to," unless specifically emphasized otherwise.
[0036] In the embodiments of the present disclosure, "plurality" means two or more. In describing the embodiments of the present disclosure, it should be noted that terms such as "first" and "second" are used merely for distinction and explanation, and should not be understood as indicating or implying relative importance, nor should they be understood as indicating or implying order.
[0037] To explain the technical solutions of the present disclosure more clearly, relevant concepts in the present disclosure are described below.
[0038] A channel is a channel through which a signal is transmitted in a communication system, and includes a transmission medium through which the signal is transmitted from a transmitting end to a receiving end. According to the IEEE802.11 protocol, the 2.4GHz Wi-Fi frequency band is divided into 13 overlapping channels, each with a width of 22MHz (in the IEEE802.11g and IEEE802.11n standards, the bandwidth of each channel is 20MHz, and in the IEEE802.10B standard, the bandwidth of each channel is 22MHz), and the 5GHz Wi-Fi frequency band is divided into 201 channels.
[0039] The in-band inter-channel mode is also called DBAC mode, which means that two channels using Wi-Fi connection communicate with external devices respectively, and the two channels are different channels but belong to the same frequency band. For example, a first channel is occupied to enable a mobile device to project a screen on an electronic device, and a second channel is occupied for interaction between a mobile device and a routing device, and the first channel and the second channel are different channels on the same frequency band (e.g., 5 GHz Wi-Fi frequency band). In the following description, for convenience, the 5 GHz Wi-Fi frequency band and the 2.4 GHz Wi-Fi frequency band are respectively referred to as the 5 GHz frequency band and the 2.4 GHz frequency band.
[0040] In-band co-channel mode means that two channels using Wi-Fi connection communicate with external devices respectively, and the two channels are the same channel and belong to the same frequency band. In the above example, the first channel and the second channel are the same channel on the same frequency band.
[0041] The inter-band inter-channel mode means that two channels using Wi-Fi connection communicate with an external device respectively, and the two channels are different channels and belong to different frequency bands. In the above example, the first channel and the second channel are different channels on different frequency bands. The inter-band inter-channel mode may be further divided into a dual band adaptive concurrent (DBAC) mode of the inter-band inter-channel mode and a dual band dual concurrent (DBDC) mode of the inter-band inter-channel mode. In the DBDC mode of the inter-band inter-channel mode, the Wi-Fi chip is integrated with two sets of MAC / PHY / RF that operate on the 2.4 GHz frequency band and the 5 GHz frequency band respectively, and therefore may operate on both the 2.4 GHz frequency band and the 5 GHz frequency band. In the DBAC mode of the inter-band inter-channel mode, the Wi-Fi chip is integrated with only one set of MAC / PHY / RF. The RF has two channels, one of which supports the 2.4GHz frequency band and the other of which supports the 5GHz frequency band. During use, the 2.4GHz frequency band and the 5GHz frequency band are dynamically switched to achieve the effect of carrying out communication by time division multiplexing on the two frequency bands.
[0042] It should be noted that a Wi-Fi connection includes a Wi-Fi peer to peer (P2P) connection and a Wi-Fi access point (AP) connection.
[0043] For ease of explanation, the following provides an explanation by using an example in which the two operations related to wireless communication channels are Internet access and screen projection, respectively. It should be understood that Internet access and screen projection are merely examples of two operations related to wireless communication channels, and do not constitute limitations on the present disclosure. Any other two operations related to wireless communication channels fall within the scope of the present disclosure.
[0044] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure. As shown in FIG. 1(a), the mobile device 100 includes at least two antennas, the electronic device 200 includes at least two antennas, and the routing device 300 includes at least one antenna. The mobile device 100 establishes a Wi-Fi P2P wireless connection to the electronic device 200, and projects a screen on the electronic device 200 by using the Wi-Fi P2P wireless connection. In addition, the mobile device 100 establishes a Wi-Fi AP wireless connection to the routing device 300, and performs Internet access or another network operation by using the Wi-Fi AP wireless connection. Optionally, the electronic device 200 may further establish a Wi-Fi AP wireless connection to the routing device 300, and performs Internet access or another network operation. Alternatively, the mobile device 100 may not be wirelessly connected to the routing device 300, but still project a screen on the electronic device 200 by using the Wi-Fi P2P wireless connection. The electronic device 200 further establishes a Wi-Fi AP wireless connection to the routing device 300 to access the Internet or perform another network operation. Alternatively, the routing device 300 may be replaced by two different routing devices. The mobile device 100 and the electronic device 200 respectively establish Wi-Fi AP wireless connections to two different routing devices and use the wireless connections to access the Internet or perform another network operation. In addition, the mobile device 100 establishes a Wi-Fi P2P wireless connection to the electronic device 200 and projects a screen on the electronic device 200 by using the Wi-Fi P2P wireless connection. A first channel of the Wi-Fi P2P wireless connection is used for wireless screen projection between the mobile device 100 and the electronic device 200, and a second channel of the Wi-Fi AP wireless connection is used for wireless communication between the mobile device 100 and the routing device 300.Optionally, a third channel of the Wi-Fi AP wireless connection is used for wireless communication between the electronic device 200 and the routing device 300. In one embodiment, both the Wi-Fi P2P connection and the Wi-Fi AP connection operate on the 2.4 GHz and 5 GHz frequency bands.
[0045] As shown in FIG. 1B, 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 the 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 routing 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 antenna 2 in the mobile device 100 wirelessly communicate with the antenna 3 and / or antenna 4 in the electronic device. It should be emphasized that both antenna 1 and antenna 2 in FIG. 1(b) are examples of the mobile device 100, and all mobile devices including antennas connected to a Wi-Fi chip, the number of which is greater than two, fall within the scope of protection of the present disclosure. Correspondingly, in the electronic device 200, all electronic devices including antennas connected to a Wi-Fi chip, the number of which is greater than two, fall within the scope of protection of the present disclosure. The frequency bands and channels on which antennas 1 to 4 operate are set optionally. In one embodiment, the frequency bands are limited to the 2.4 GHz frequency band and the 5 GHz frequency band.
[0046] The mobile device in this embodiment of the present disclosure includes, but is not limited to, a smartphone, a smart headset, a tablet computer, or a wearable electronic device with wireless communication capabilities (e.g., a smart watch, a smart band, a smart ring, or smart glasses). Exemplary embodiments of the mobile device include, but are not limited to, a portable electronic device with iOS, Android, Microsoft, Windows, Linux, or another operating system installed. The mobile device may alternatively be another portable electronic device, such as a laptop computer. In some other embodiments, the mobile device is not a portable electronic device, but a stationary electronic device such as a desktop computer.
[0047] For ease of explanation, the following description assumes that the mobile device 100 and / or the electronic device 200 have Internet access when the mobile device 100 establishes a Wi-Fi AP wireless connection to the routing device 300 and the electronic device 200 establishes a Wi-Fi AP wireless connection to the routing device 300.
[0048] As shown in FIG. 2, the process of the mobile device 100 establishing a Wi-Fi P2P connection to the electronic device 200 may include the following steps.
[0049] S201. The mobile device 100 sends a negotiation request message to the electronic device 200.
[0050] Specifically, in one embodiment, the negotiation request message may carry ID or address information of the mobile device 100, ID or address information of the electronic device 200, and 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 indication information indicating whether the mobile device 100 can establish a Wi-Fi P2P connection, and even the role of the mobile device 100, for example, a group owner (GO) role.
[0051] S202. The mobile device 100 receives a negotiation response message returned by the electronic device 200.
[0052] Specifically, in one embodiment, 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 indication information indicating whether the electronic device 200 can establish a Wi-Fi P2P connection, and even the role of the electronic device 200, for example, a group client (GC) role. In addition, the negotiation response message is further used to determine a channel to be used for the P2P connection.
[0053] S203. The mobile device 100 establishes a Wi-Fi P2P connection to the electronic device 200.
[0054] Specifically, in one embodiment, the mobile device 100 performs the following operations based on the Wi-Fi P2P connection capability information and role of the mobile device 100 and the Wi-Fi P2P connection capability information and role of the electronic device 200. After both the mobile device 100 and the electronic device 200 have Wi-Fi P2P connection capability, and the mobile device 100 and the electronic device 200 reach an agreement on roles, for example, the mobile device 100 is in the GO role, the electronic device 200 is in the GC role, and the mobile device 100 switches the mobile device 100 to AP mode, the electronic device 200 is in the GC role, and is connected to the mobile device 100. Thus, the mobile device 100 establishes a Wi-Fi P2P connection to the electronic device 200. Optionally, the mobile device 100 may alternatively be in the GC role, and the electronic device 200 may alternatively be in the GO role. The determination of the GC role and the GO role is a well-known technique in the art. It will not be described in detail here. To determine the GC role and the GO role, channel adjustment may preferably be subsequently performed by using the GC role as a reference, and channel adjustment may preferably be subsequently performed by using the GO role as a reference.
[0055] It should be noted that after a Wi-Fi P2P connection is established between a mobile device in a GO role and an electronic device in a GC role, the P2P connection can be a one-to-one connection or a many-to-one connection.
[0056] The operation principle of time division scheduling that exists when a mobile device is in DBAC mode will be described below with reference to FIG. 3. FIG. 3 is a schematic diagram of the principle of time division scheduling performed by a mobile device in DBAC mode by using an in-band inter-channel mode according to one embodiment of the present disclosure. As shown in FIG. 3(a), 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 by using a changeover switch 12.
[0057] As shown in FIG. 3B, when the mobile device 100 is in the DBAC mode, an example is used in which the channel used by the mobile device 100 to wirelessly project a screen onto the electronic device 200 (i.e., channel a in FIG. 3B) is channel 149 on the 5 GHz frequency band, and the channel used for wireless communication between the mobile device 100 and the routing device 300 (i.e., channel b in FIG. 3B) is channel 36 on the 5 GHz frequency band. In the time unit T1, the mobile device 100 can perform screen projection only via channel 149 on the 5 GHz frequency band, and the second radio frequency channel module 114 in the Wi-Fi chip is connected to the switch 12. In the time unit T3, the mobile device 100 can perform Internet access only via channel 36 on the 5 GHz frequency band, and the first radio frequency channel module 113 in the Wi-Fi chip is connected to the switch 12. Similarly, in the time unit T5, the mobile device 100 can perform screen projection only via channel 149 on the 5 GHz frequency band. In time unit T7, the mobile device 100 can only access the Internet via channel 36 on the 5 GHz frequency band. However, in time unit T2, time unit T4, and time unit T6, the mobile device 100 needs to switch between radio frequency channel modules and cannot use any channel. It can be seen that the overhead of the mobile device 100 caused by the time division scheduling and the channel switching caused by the time division scheduling further increases. Therefore, the mobile device 100 cannot use the first channel or the second channel in a relatively large number of time units. For example, the mobile device 100 cannot perform screen projection via the first channel in time units T2 to T4 and time units T6 and T7, and the mobile device 100 cannot access the Internet via the second channel in time units T1, T2, and time units T4 to T6.Therefore, the time utilization rate of the first channel and the second channel is relatively low. Therefore, the speed of screen projection and the speed of Internet access are sometimes relatively high and sometimes relatively low, and frame freeze occurs during screen projection and Internet access. In addition, the two channels operate in the same frequency band, and the channel frequencies are close to each other, so mutual interference is likely to occur. Therefore, the user experience during screen projection and Internet access is relatively low.
[0058] Similarly, the above problem occurs when the electronic device 200 is in DBAC mode, and will not be described in detail here.
[0059] After finding out the technical problem through long-term research, the inventor further conducts thorough research to summarize the respective characteristics of the DBDC mode of the inter-band inter-channel mode and the intra-band co-channel mode. The characteristics of the DBDC mode of the inter-band inter-channel mode are that the Wi-Fi chip does not switch between the multiple antennas used for Wi-Fi communication, and relatively good channel quality, relatively low packet loss rate, and relatively low delay are generated. The characteristics of the intra-band co-channel mode are that the Wi-Fi chip does not switch between the multiple antennas used for Wi-Fi communication, and the throughput rate of a single channel is relatively high.
[0060] After the aforementioned thorough and long-term research, in order to solve the technical problem, the embodiment of the present disclosure provides a channel adjustment method and an electronic device. When only the same Wi-Fi chip is used for multiple antennas, and a user uses a mobile device and / or electronic device for two different purposes by performing Wi-Fi communication, the transmission speed for the two different purposes remains stable, and a relatively continuous and fluent experience occurs for the two purposes, improving the user experience. Specifically, for a mobile device and / or electronic device supporting multiple antennas, when the relationship between the first channel and the second channel of the mobile device and / or electronic device is in DBAC mode, the relationship between the first channel and the second channel is adjusted from DBAC mode to DBDC mode of intra-band co-channel mode or inter-band inter-channel mode, so as to improve the time utilization rate of the first channel and the second channel to guarantee the speed of Internet access and the speed of screen projection, so that the Internet access and screen projection are continuous and fluent, avoiding frame freeze during Internet access and screen projection, so as to improve the user experience.
[0061] Before the embodiments of the present disclosure are described in detail, the hardware and software structures of mobile and electronic devices to which the embodiments of the present disclosure are applied will first be described.
[0062] 4 is a schematic diagram of the hardware structure of the mobile device 100. As shown in FIG. 4, the mobile device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) port 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, a subscriber identification module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
[0063] It will be understood that the structure shown in this embodiment of the disclosure does not constitute a particular limitation on the mobile device 100. In some other embodiments of the disclosure, the mobile device 100 may include more or fewer components than those shown in the figures, may combine some components, may split some components, or may have a different component arrangement. The components shown in the figures may be implemented using hardware, software, or a combination of software and hardware.
[0064] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be separate components or may be integrated into one or more processors.
[0065] The mobile device 100 may perform display functions via a GPU, a display 194, an application processor, etc. The GPU is a microprocessor for image processing and is connected to the display 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations and render images. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0066] The mobile device 100 can implement picture taking functions by using an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, and the like.
[0067] The SIM card interface 195 is configured to connect to a SIM card. The SIM card may be inserted into or removed from the SIM card interface 195 to effect contact with or separation from the mobile device 100. The mobile device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards may be inserted into the same SIM card interface 195 at the same time. The multiple cards may be of the same type or different types. The SIM card interface 195 is compatible with different types of SIM cards. The SIM card interface 195 is also compatible with an external storage card. The mobile device 100 interacts with a network through the SIM card to effect functions such as calling and data communication. In some embodiments, an eSIM, i.e., an embedded SIM card, is used in the mobile device 100.
[0068] The wireless communication function of the mobile device 100 may be implemented by using an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a modem processor, a baseband processor, etc. The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the mobile device 100 may be configured to cover one or more communication bands. Different antennas may be further multiplexed to improve antenna utilization. For example, the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antennas may be used in combination with a tuning switch.
[0069] The mobile communication module 150 may provide a solution for wireless communication such as 2G / 3G / 4G / 5G applied to the mobile device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves via the antenna 1, process the received electromagnetic waves such as filtering and amplifying, and send the electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 may further amplify the signal modulated by the modem processor and convert the signal to electromagnetic waves for emission via the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed in the same device as at least some modules of the processor 110.
[0070] The wireless communication module 160 may provide wireless communication solutions including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared radiation (IR) technology, etc., provided to the mobile device 100. The wireless communication module 160 may be one or more components integrating at least one communication processor module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 may further receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves for radiation via the antenna 2.
[0071] In some embodiments, antenna 1 and mobile communication module 150 in mobile device 100 are coupled, and antenna 2 and wireless communication module 160 in mobile device 100 are coupled, so that mobile device 100 can communicate with a network and other devices by using wireless communication technologies. Wireless communication technologies may include 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 technologies, etc.
[0072] For the structure of the electronic device 200, please refer to the structure of the mobile device 100 in FIG. 4. Details will not be described here. In some other embodiments of the present disclosure, the electronic device 200 may include more or less components than those shown in the figure, may combine some components, may divide some components, or may have a different component arrangement. The components shown in the figure may be implemented by using hardware, software, or a combination of software and hardware.
[0073] The software system of the mobile device 100 may use a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. FIG. 5 is a schematic diagram of the software structure of the mobile device 100 according to one embodiment of the present disclosure. In a layered architecture, the software is divided into several layers, each layer having a clear role and task. These layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, the application layer, the application framework layer (FWK), the Android runtime and system libraries, and the kernel layer, respectively.
[0074] The application layer may include a series of application packages. As shown in FIG. 5, the application layer may include camera, WeChat, QQ, gallery, calendar, phone, map, navigation, WLAN, Bluetooth, music, video, and messaging, etc.
[0075] The application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes several predetermined functions. As shown in FIG. 5, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like. The window manager is configured to manage window programs. The window manager may obtain the size of the display, determine whether there is a status bar, perform screen locking, and obtain screenshots. The content provider is configured to store and retrieve data and enable the data to be accessed by applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, address books, and the like. The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system may be configured to build applications. The display interface may include one or more views. The phone manager is configured to provide communication functions of the mobile device 100, such as management of call status (including answering or rejecting, and the like). The resource manager provides applications with various resources such as localized strings, icons, pictures, layout files, video files, etc. The notification manager allows applications to display notification information in the status bar and may be configured to convey notification type messages. The displayed notification information may disappear automatically after a short period without user interaction. The notification manager may alternatively be notifications that appear in the system's top status bar in the form of graphs and scrollbar text, for example notifications of applications running in the background, or notifications that appear on the screen in the form of dialog windows.For example, text information may appear in the status bar, an announcement may play, the electronic device may vibrate, or an indicator light may flash.
[0076] The Android runtime includes a kernel library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The kernel library includes two parts, namely, functions that need to be called in the java language and the Android kernel library. The application layer and the application framework layer run on the virtual machine. The virtual machine executes java files as binary files in the application layer and the application framework layer. The virtual machine is configured to perform functions such as object life cycle management, stack management, thread management, security and exception management, garbage collection, etc. The system library may include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (e.g., OpenGL ES), and a 2D graphics engine (e.g., SGL). The surface manager is configured to manage the display subsystem and provide 2D and 3D layer blending for multiple applications. The media library supports playback and recording of multiple commonly used audio and video formats, still image files, etc. The media library may support multiple audio and video encoding formats, e.g., MPEG4, H.264, MP3, AAC, AMR, JPG, PNG. The 3D graphics processing library is configured to perform 3D graphics drawing, image rendering, compositing, layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing. In addition, the system library may further include a relative angle detection module configured to detect a relative angle between another device and the mobile device 100. The relative angle may include an orientation of the other device relative to the mobile device 100, etc.
[0077] The kernel layer is a layer between the hardware and the software. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and a WLAN driver.
[0078] For the software system of electronic device 200, please refer to the software system shown in Figure 5, and will not be described in detail here. In some other embodiments of the present disclosure, electronic device 200 may include more or fewer components than those shown in the figure, may combine some components, may split some components, or may have a different component arrangement.
[0079] In order to more clearly describe the technical solutions provided in the present disclosure, the channel adjustment method provided in the present disclosure is described below by using several embodiments.
[0080] EMBODIMENT 1 The first embodiment of the present disclosure relates to Fig. 6A-6E(A) and Fig. 6E(B). As shown in Fig. 6A(a), after the mobile device 100 establishes a Wi-Fi P2P connection to the electronic device 200, the mobile device 100 wirelessly projects a screen onto the electronic device 200 through the first channel 410. After the mobile device 100 establishes a Wi-Fi AP connection to the routing device 300, the mobile device 100 wirelessly communicates with the routing device 300 through the second channel 420. In this case, the mobile device operates in a DBAC mode. For clearer explanation, the following provides an explanation by using an example in which the mobile device 100 performs Internet access with the routing device 300 through the second channel. For example, the first channel 410 is channel 149 on the 5 GHz frequency band, and the second channel is channel 36 on the 5 GHz frequency band. The relationship between the first channel and the second channel is that of the DBAC mode. It may be seen from the above analysis that when the first channel and the second channel of the mobile device 100 form a DBAC mode relationship, the time utilization rate of each of the first channel and the second channel is relatively low, and transmission cannot be performed on both channels for a relatively long duration, and sometimes transmission can be performed on the two channels, and sometimes transmission cannot be performed, so that frame freeze occurs during transmission on both the first channel and the second channel, and Internet access and / or screen projection are affected. In addition, the two channels are on the same frequency band, and mutual interference is likely to occur. Therefore, the user experience during Internet access and screen projection is relatively poor. To solve this problem, this embodiment of the present disclosure provides a channel adjustment method. The procedure of the channel adjustment method in embodiment 1 is described below with reference to FIG. 6C. As shown in FIG. 6C, the specific steps of the channel adjustment method are as follows:
[0081] Step 501: a first antenna in a mobile device wirelessly communicates with an electronic device in a Wi-Fi P2P connection manner via a first channel, a second antenna in the mobile device wirelessly communicates with a first wireless signal source in a Wi-Fi AP connection manner via a second channel, the mobile device determines that the first channel and the second channel are in an in-band inter-channel relationship, time division multiplexing is performed on the first antenna and the second antenna, and a Wi-Fi chip in the mobile device enables the first antenna in the mobile device and the second antenna in the mobile device to simultaneously and independently transmit signals via different channels on two different frequency bands, respectively.
[0082] Specifically, a first antenna in the mobile device 100 may first wirelessly communicate with the electronic device 200 in a Wi-Fi P2P connection manner via a first channel, and then, after the mobile device 100 receives a user operation, a second antenna in the mobile device 100 wirelessly communicates with a first wireless signal source of the routing device 300 in a Wi-Fi AP connection manner via a second channel.
[0083] Alternatively, the second antenna in the mobile device 100 may first wirelessly communicate with the first wireless signal source of the routing device 300 in a Wi-Fi AP connection manner over a second channel, and then, after a user operation is received, the first antenna in the mobile device 100 wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner over a first channel.
[0084] The user operation includes, but is not limited to, a touch operation or a voice input operation.
[0085] Optionally, before the mobile device 100 determines that the first channel and the second channel are in an in-band channel-to-channel relationship, the mobile device 100 obtains channel information of the first channel and channel information of the second channel. The channel information of the first channel includes the first channel and a frequency band to which the first channel belongs, for example, channel 149 on the 5 GHz frequency band. The channel information of the second channel includes the second channel and a frequency band to which the second channel belongs, for example, channel 36 on the 5 GHz frequency band.
[0086] For example, the first wireless signal source is the routing device 300 (where the routing device provides only one wireless signal source) or a wireless signal source provided by the routing device 300 (where the routing device may provide multiple wireless signal sources).
[0087] For example, the mobile device 100 may acquire channel information of the first channel in an interface function scheduling manner shown in Table 1, and may acquire channel information of the second channel in an interface function scheduling manner shown in Table 2.
[0088] [Table 1]
[0089] [Table 2]
[0090] Then, after determining that the first channel and the second channel form a DBAC mode relationship based on the acquired channel information of the first channel and the acquired channel information of the second channel, the mobile device 100 performs step 502.
[0091] Step 502: The mobile device determines whether the Wi-Fi chip in the mobile device supports the DBDC mode of the inter-band inter-channel mode.
[0092] In one embodiment, if the mobile device supports the DBDC mode of the inter-band inter-channel mode, step 503 is performed, or if the mobile device does not support the DBDC mode of the inter-band inter-channel mode, step 505 is performed.
[0093] In another embodiment, if the mobile device supports the DBDC mode of the inter-band inter-channel mode, step 503 is performed, or if the mobile device does not support the DBDC mode of the inter-band inter-channel mode, no processing is performed and the current status is maintained.
[0094] Step 503: Determine whether a second wireless signal source having a different frequency band from that of the first wireless signal source is detected within a preset duration.
[0095] Specifically, the mobile device determines whether the scanning detects a second wireless signal source having a different frequency band from that of the first wireless signal source within a preset duration. If the mobile device determines that the scanning detects a second wireless signal source having a different frequency band from that of the first wireless signal source within a preset duration, step 504 is performed. If the second wireless signal source having a different frequency band from that of the first wireless signal source is not detected within the preset duration, step 505 is performed.
[0096] A specific scanning method may be as follows: the mobile device 100 scans the surrounding wireless signal sources, and after a preset duration, determines whether there is a wireless signal source in the scanning result whose frequency band is different from that of the Wi-Fi AP network currently accessed by the mobile device 100, and the frequency band is a frequency band supported by the mobile device 100. Alternatively, the mobile device 100 first acquires a frequency band (e.g., 2.4 GHz frequency band) supported by the mobile device 100 that is different from the frequency band to which the first channel 410 belongs, and then the mobile device 100 scans the surrounding wireless signal sources, and after a preset duration, determines whether there is a wireless signal source in the scanning result whose frequency band is different from that of the Wi-Fi AP network currently accessed by the mobile device 100.
[0097] Step 504: The mobile device tunes a second channel, where the tuned second channel is a different channel on a different frequency band than the first channel, and a first antenna in the mobile device wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner via the first channel, and a second antenna in the mobile device wirelessly communicates with a second wireless signal source in a Wi-Fi AP connection manner via the tuned second channel.
[0098] For example, as shown in (a) of FIG. 6A, the second channel 420 is channel 36 on the 5 GHz frequency band, the frequency band to which the second channel 420 belongs is the 5 GHz frequency band, the Wi-Fi AP network currently accessed by the second channel 420 is a wireless network on the 5 GHz frequency band of the routing device 300, the first channel 410 is channel 149 on the 5 GHz frequency band, the frequency band to which the first channel 410 belongs is the 5 GHz frequency band, and the mobile device 100 projects a screen on the electronic device 200 through the first channel 410 of the Wi-Fi P2P connection. After step 504 is performed, as shown in (b) of FIG. 6A, the mobile device 100 tunes the second channel 420 from channel 36 on the 5 GHz frequency band to channel 6 on the 2.4 GHz frequency band. In this case, the first channel 410 and the second channel 420 of the mobile device 100 no longer form an intra-band inter-channel mode relationship, but form an inter-band inter-channel mode DBDC mode relationship. In this way, the speed of transmission on the first channel 410 and the speed of transmission on the second channel 420 are guaranteed, no time-division scheduling is performed, and no frame freeze due to channel reasons occurs during the user's screen projection and Internet access. In addition, the interference between the first channel 410 and the second channel 420 is reduced, thus improving the user experience.
[0099] Step 505: Determine whether a wireless signal source having a channel the same as the first channel is detected within another preset duration.
[0100] Specifically, the mobile device determines whether a wireless signal source having the same channel as the first channel is detected within another preset duration by scanning. If the mobile device determines that a wireless signal source having the same channel as the first channel is detected within another preset duration by scanning, step 506 is performed. If not, step 507 is performed.
[0101] A specific scanning method may be as follows: the mobile device 100 scans for surrounding wireless signal sources, and after another preset duration, determines whether there is a wireless signal source in the scanning result whose channel is the same as the first channel of the Wi-Fi AP network currently accessed by the mobile device 100.
[0102] The other preset duration of step 505 may be the same as or different from the preset duration of step 503 .
[0103] The wireless signal source of step 505 may be the second wireless signal source or a different wireless signal source.
[0104] Step 506: A first antenna in the mobile device wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner over a first channel, and a second antenna in the mobile device wirelessly communicates with a first wireless signal source in a Wi-Fi AP connection manner over the first channel.
[0105] As shown in FIG. 6B (a), the first channel 410 is a channel 149 on the 5 GHz frequency band, the frequency band to which the first channel 410 belongs is the 5 GHz frequency band, and the frequency band of the wireless signal source of the Wi-Fi AP network currently accessed by the second channel 420 is the 5 GHz frequency band. In the aforementioned scan, after the scan, the mobile device 100 does not detect a wireless signal source whose frequency band is a frequency band other than the 5 GHz frequency band within a preset duration. Therefore, although the mobile device 100 supports the DBDC mode of the inter-band inter-channel mode, the relationship between the second channel 420 and the first channel 410 cannot be adjusted to the inter-band inter-channel relationship, and instead, it is determined whether a wireless signal source whose channel is the same as the first channel is detected within another preset duration. If a wireless signal source whose channel is the same as the first channel is detected within another preset duration, the second channel 420 is adjusted from channel 36 on the 5 GHz frequency band to channel 149 on the 5 GHz frequency band, as shown in (b) of FIG. 6B. The first channel 410 and the second channel 420 form an in-band same channel mode relationship in this case. If a wireless signal source whose channel is the same as the first channel is not detected within another preset duration, no processing is performed and the current situation is maintained. In this way, the speed of transmission on the first channel 410 and the speed of transmission on the second channel 420 are guaranteed, no time-sharing scheduling is performed, and no frame freeze due to channel reasons occurs during the user's screen projection and Internet access. Therefore, the user experience is improved.
[0106] Step 507: No processing is performed and the current status is maintained.
[0107] In one embodiment, the method may not include step 505, and in the above procedure, step 506 may be performed directly at the location where step 505 is involved. For example, after the decision result of step 502 is "no", step 506 is performed directly and step 505 is no longer performed.
[0108] In this embodiment of the present disclosure, when the first channel and the second channel form a DBAC mode relationship, the relationship between the first channel and the second channel is preferably adjusted to a DBDC mode relationship of the inter-band inter-channel mode. If the relationship between the first channel and the second channel cannot be adjusted to a DBDC mode relationship of the inter-band inter-channel mode, the relationship between the first channel and the second channel is adjusted to an in-band co-channel mode relationship only if enabled. If not enabled, no processing is performed and the current status is maintained. Alternatively, if the relationship between the first channel and the second channel cannot be adjusted to a DBDC mode relationship of the inter-band inter-channel mode, no processing is performed and the current status is maintained.
[0109] In one possible embodiment, after step 501, step 502 is no longer performed, but step 505 is directly performed, and then step 506 or step 507 is performed based on the result of step 505. That is, a first antenna in the mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P connection manner through a first channel, a second antenna in the mobile device 100 wirelessly communicates with a first wireless signal source in a Wi-Fi AP connection manner through a second channel, the mobile device 100 determines that the first channel and the second channel are in an in-band inter-channel relationship, and a Wi-Fi chip in the mobile device 100 enables the first antenna in the mobile device 100 and the second antenna in the mobile device 100 to simultaneously and independently transmit signals through different channels on two different frequency bands, respectively. Then, after a wireless signal source whose channel is the same as the first channel is detected within another preset duration, the first antenna in the mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P connection manner through the first channel, and the second antenna in the mobile device 100 wirelessly communicates with the wireless signal source in a Wi-Fi AP connection manner through the first channel. After a wireless signal source whose channel is the same as the first channel is not detected within another preset duration, no processing is performed and the current situation is maintained.
[0110] Optionally, after step 501, the variation of step 505 may alternatively be performed directly, and the variation of step 506 or step 507 is performed based on the execution result of the variation of step 505. That is, a first antenna in the mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P connection manner through a first channel, a second antenna in the mobile device 100 wirelessly communicates with a first wireless signal source in a Wi-Fi AP connection manner through a second channel, the mobile device 100 determines that the first channel and the second channel are in an in-band inter-channel relationship, and a Wi-Fi chip in the mobile device 100 enables the first antenna in the mobile device 100 and the second antenna in the mobile device 100 to simultaneously and independently transmit signals through different channels on two different frequency bands, respectively. Then, after a wireless signal source whose channel is the same as the first channel is detected within another preset duration, the first antenna in the mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P connection manner through a second channel, and the second antenna in the mobile device 100 wirelessly communicates with the wireless signal source in a Wi-Fi AP connection manner through the second channel. After a wireless signal source whose channel is the same as the first channel is not detected within another preset duration, no processing is performed and the current situation is maintained.
[0111] It should be noted that in the above example of embodiment 1, 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 adjusted from an in-band inter-channel relationship to an inter-band inter-channel relationship or an in-band co-channel relationship.
[0112] However, in another embodiment, the second channel used for Internet access may remain unchanged, and the first channel used for screen projection may be adjusted. Similarly, the relationship between the second channel and the first channel may be adjusted from an in-band inter-channel relationship to an inter-band inter-channel relationship or an in-band co-channel relationship. This another embodiment relates to FIG. 6D, FIG. 6E(A), and FIG. 6E(B). FIG. 6D is a schematic diagram of a result comparison of the channel adjustment method according to this embodiment of the present disclosure. FIG. 6E(A) and FIG. 6E(B) are schematic flow charts of the channel adjustment method according to this embodiment of the present disclosure. In the following, a more detailed description is provided with reference to FIG. 6D, FIG. 6E(A), and FIG. 6E(B).
[0113] In another embodiment, step 501 and step 502 and step 505 to step 507 in FIG. 6E(A) and FIG. 6E(B) are the same as step 501 and step 502 and step 505 to step 507 in FIG. 6C, respectively. Details are not described here. In FIG. 6D, (a) is the same as (a) in FIG. 6A. Details are not described here. As shown in FIG. 6E(A) and FIG. 6E(B), after step 502, if the mobile device supports the DBDC mode of the inter-band inter-channel mode, step 503′ is performed.
[0114] Step 503': The mobile device sends a request message to the electronic device via a first channel, and receives a response message returned by the electronic device to the request message.
[0115] Specifically, the request message sent by the mobile device 100 to the electronic device 200 includes a first channel to be obtained by coordination, in other words, the first channel used for wireless communication between the mobile device 100 and the electronic device 200 in the Wi-Fi P2P manner will be adjusted to the first channel to be obtained by coordination. The first channel and the second channel to be obtained by coordination are different channels in different frequency bands. The request message is used to request wireless communication with the electronic device 200 in the Wi-Fi P2P manner through the first channel to be obtained by coordination.
[0116] Specifically, the request message may be transmitted in a broadcast manner.
[0117] A response message is in response to a request message and is used to indicate that the electronic device agrees or does not agree with the request message.
[0118] Step 504': The mobile device determines whether the response message is an acknowledgement message, and performs step 505' if the response message is an acknowledgement message, and performs step 503 if the response message is not an acknowledgement message.
[0119] The acknowledgement 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 over the first channel to be acquired by coordination.
[0120] In one embodiment, after step 504' is performed, if the result is no, then step 504' is performed again. After a predetermined number of decision iterations have been reached, step 503 is performed only if the result continues to be no.
[0121] Step 505': The mobile device tunes a first channel to a first channel to be acquired by tuning, the first antenna wirelessly communicates with the electronic device in a Wi-Fi P2P manner via the tuned first channel, and the second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP manner via the second channel.
[0122] Specifically, in response to the acknowledgment message, the mobile device 100 tunes the first channel to the first channel to be acquired by adjustment, the first antenna wirelessly communicates with the electronic device 200 in a Wi-Fi P2P manner via the adjusted first channel, and the second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP manner via the second channel.
[0123] For example, as shown in (b) of FIG. 6D, the mobile device 100 adjusts the first channel 410 from channel 149 on the 5 GHz frequency band to channel 6 on the 2.4 GHz frequency band. In this case, the first channel 410 and the second channel 420 of the mobile device 100 no longer form an intra-band inter-channel mode relationship, but form an inter-band inter-channel mode DBDC mode relationship. In this way, the speed of transmission on the first channel 410 and the speed of transmission on the second channel 420 are guaranteed, no time-division scheduling is performed, and no frame freeze due to channel reasons occurs during the user's screen projection and Internet access. In addition, the interference between the first channel 410 and the second channel 420 is reduced, thus improving the user experience.
[0124] Steps 503 to 505 in Figure 6E(A) and Figure 6E(B) are the same as steps 503 to 505 in Figure 6C, and will not be described in detail here.
[0125] Alternatively, step 505 may be replaced by determining whether a wireless signal source whose channel is the same as the second channel is detected within another preset duration. If a wireless signal source whose channel is the same as the second channel is detected within another preset duration, step 506 is performed. If a wireless signal source whose channel is the same as the second channel is not detected within another preset duration, step 507 is performed.
[0126] Thus, step 506 may be replaced with the first antenna wirelessly communicating with the electronic device in a Wi-Fi P2P manner over the second channel, and the second antenna wirelessly communicating with the wireless signal source in a Wi-Fi AP manner over the second channel.
[0127] Correspondingly, the wireless signal source of step 505 may be the first wireless signal source or another wireless signal source.
[0128] In another embodiment, when the first channel and the second channel form a DBAC mode relationship, the first channel is preferably adjusted, so that the relationship between the first channel and the second channel is adjusted to a DBDC mode relationship of the inter-band inter-channel mode. If the first channel cannot be adjusted, the second channel is preferably adjusted, so that the relationship between the first channel and the second channel is adjusted to a DBDC mode relationship of the inter-band inter-channel mode. If the relationship between the first channel and the second channel cannot be adjusted to a DBDC mode relationship of the inter-band inter-channel mode, the relationship between the first channel and the second channel is adjusted to an intra-band co-channel mode relationship if possible. If not possible, no processing is performed and the current situation is maintained. In this way, extra overhead caused by time division scheduling and channel switching for the mobile device can be avoided. Therefore, the problem of delays in data packet transmission and packet loss can be alleviated to a certain extent.
[0129] The reason why the priority of the inter-band inter-channel mode is higher than the priority of the in-band co-channel mode is that the network delay of the inter-band inter-channel mode is smaller than that of the in-band co-channel mode, and the throughput of the in-band co-channel mode on the high frequency band is larger than that of the inter-band inter-channel mode on the high frequency band. The mobile device needs to perform screen projection based on the current analysis of the mobile device's historical data stream within a specified duration, so the mobile device side has a relatively high requirement for network delay. Therefore, the relationship between the Internet access channel and the screen projection channel on the mobile device side is preferably adjusted to that of the inter-band inter-channel mode.
[0130] In one possible embodiment of the present disclosure, the manner of adjusting the Internet access channel may be determined with reference to the screen projection manner (e.g., homogeneous screen projection manner or heterogeneous screen projection manner). Specifically, if the screen projection type selected by the mobile device is homogeneous screen projection manner (homogeneous screen projection manner means that the picture on the mobile device and the picture on the electronic device are consistent), the screen projection has a relatively high requirement for delay, and the relationship between the second channel and the first channel may be preferably adjusted to the relationship of the inter-band inter-channel mode on the high frequency band. On the other hand, if the screen projection type selected by the mobile device is heterogeneous screen projection manner (heterogeneous screen projection manner means that the picture on the mobile device and the picture on the electronic device may not be consistent), there is a low requirement for delay and a relatively high requirement for throughput, and the relationship between the second channel and the first channel may be preferably adjusted to the relationship of the in-band co-channel mode on the high frequency band. Therefore, for different screen projection types, the mobile device may adjust the Internet access channel between the mobile device and the access point by using the corresponding policy.
[0131] In another possible embodiment of the present disclosure, the manner of adjusting the Internet access channel may be determined with reference to the service type of data transmitted between the mobile device and the access point in the screen projection process. For example, the transmitted data may be encoded data of a video service type, encoded data of a game service type, or encoded data of a text service type. Different service types have different effects on network transmission parameters. For example, the network transmission parameters may be delay, transmission quality, transmission speed, packet loss rate, etc. Therefore, the mobile device may adjust the Internet access channel in a corresponding manner. If the service type has a relatively high requirement for delay (e.g., combat orders in a game application), the relationship between the second channel and the first channel may be preferably adjusted to the relationship of an inter-band inter-channel mode. On the other hand, if the service type has a low requirement for delay (e.g., video data stream in a video application), the relationship between the second channel and the first channel may be preferably adjusted to the relationship of an in-band co-channel mode on a high frequency band, since there is a low requirement for delay and a relatively high requirement for throughput.
[0132] It should be noted that the mobile device and the electronic device in the first embodiment may be interchanged. Specifically, the electronic device and the mobile device in each step of the first embodiment may be interchanged.
[0133] EMBODIMENT 2 The second embodiment of the present disclosure relates to Fig. 7A and Fig. 7B. As shown in Fig. 7A (a), the mobile device 100 wirelessly projects a screen onto the electronic device 200 through a first channel 410, and the mobile device 100 wirelessly communicates with the routing device 300 through a second channel 420. In this case, the mobile device 100 operates in an in-band co-channel mode. For a clearer explanation, the following provides an explanation by using an example in which the mobile device 100 performs Internet access with the routing device 300 through a second channel. For example, the first channel 410 is channel 149 on the 5 GHz frequency band, and the second channel is channel 149 on the 5 GHz frequency band. The relationship between the first channel and the second channel is that of the in-band co-channel mode. With reference to the above-mentioned priority relationship, in this embodiment, the relationship between the first channel and the second channel can be adjusted from that of the in-band co-channel mode to that of the DBDC mode of the inter-band inter-channel mode.
[0134] The procedure of the channel adjustment method in embodiment 2 is described below with reference to Fig. 7B. As shown in Fig. 7B, the specific steps of the channel adjustment method are as follows:
[0135] Step 601: A first antenna in the mobile device 100 wirelessly communicates with an electronic device in a Wi-Fi P2P connection manner via a first channel, a second antenna in the mobile device 100 wirelessly communicates with a first wireless signal source of the routing device 300 in a Wi-Fi AP connection manner via a second channel, the mobile device 100 determines that the first channel and the second channel form an in-band co-channel relationship, and the mobile device 100 determines that the Wi-Fi chip enables the first antenna in the mobile device 100 and the second antenna in the mobile device 100 to simultaneously and independently transmit signals via different channels on two different frequency bands, respectively.
[0136] Specifically, a first antenna in the mobile device 100 may first wirelessly communicate with the electronic device 200 in a Wi-Fi P2P connection manner through a first channel, and then, after the mobile device 100 receives a user operation, a second antenna in the mobile device 100 wirelessly communicates with a first wireless signal source of the routing device 300 in a Wi-Fi AP connection manner through a second channel. The first channel and the second channel form an in-band co-channel relationship.
[0137] Alternatively, the second antenna in the mobile device 100 may first wirelessly communicate with the first wireless signal source of the routing device 300 in a Wi-Fi AP connection manner through the second channel, and then, after a user operation is received, the first antenna in the mobile device 100 wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner through the first channel. The first channel and the second channel form an in-band co-channel relationship.
[0138] The user operation includes, but is not limited to, a touch operation or a voice input operation.
[0139] Optionally, before the mobile device 100 determines that the first channel and the second channel are in an in-band co-channel relationship, how the mobile device 100 obtains the channel information of the first channel and the channel information of the second channel, see step 501, and will not be described in detail here.
[0140] Step 602: Determine whether the mobile device 100 supports the DBDC mode of the inter-band inter-channel mode.
[0141] If the mobile device supports the DBDC mode of the inter-band inter-channel mode, step 603 is performed. If the mobile device does not support the DBDC mode of the inter-band inter-channel mode, step 605 is performed.
[0142] For example, the mobile device 100 determines whether the Wi-Fi chip in the mobile device 100 supports the DBDC mode of the inter-band inter-channel mode. If the mobile device determines that the Wi-Fi chip in the mobile device 100 supports the DBDC mode of the inter-band inter-channel mode, step 603 is performed. If the mobile device determines that the Wi-Fi chip in the mobile device 100 does not support the DBDC mode of the inter-band inter-channel mode, step 605 is performed.
[0143] Step 603: The mobile device 100 determines whether a second wireless signal source having a different frequency band from that of the first wireless signal source is detected within a preset duration.
[0144] Specifically, the mobile device determines whether a second wireless signal source having a different frequency band from that of the first wireless signal source is detected within a preset duration by scanning. If the mobile device detects a second wireless signal source having a different frequency band from that of the first wireless signal source by scanning within the preset duration, step 604 is performed. If a second wireless signal source having a different frequency band from that of the first wireless signal source is not detected within the preset duration, step 605 is performed.
[0145] For specific scanning methods, please refer to step 503. Details will not be described here.
[0146] Step 604: The mobile device 100 tunes a second channel, where the tuned second channel is a different channel on a different frequency band than the first channel, and the second antenna in the mobile device 100 wirelessly communicates with the second wireless signal source in a Wi-Fi AP connection manner via the tuned second channel, and the first antenna in the mobile device 100 continues to wirelessly communicate with the electronic device 200 in a Wi-Fi P2P connection manner via the first channel.
[0147] For example, as shown in (b) of FIG. 7A, the mobile device 100 adjusts the second channel 420 from channel 149 on the 5 GHz frequency band to channel 6 on the 2.4 GHz frequency band. In this case, the first channel 410 and the second channel 420 of the mobile device 100 no longer form an intra-band inter-channel mode relationship, but form an inter-band inter-channel mode DBDC mode relationship. In this way, the speed of transmission on the first channel 410 and the speed of transmission on the second channel 420 are guaranteed, no time-division scheduling is performed, and no frame freeze due to channel reasons occurs during the user's screen projection and Internet access. In addition, the interference between the first channel 410 and the second channel 420 is reduced, thus improving the user experience.
[0148] Step 605: The mobile device 100 does not perform any processing on the first channel and the second channel, and maintains the current situation.
[0149] Optionally, the second channel used for communication between the mobile device and the first wireless signal source in the Wi-Fi AP manner may remain unchanged, and the first channel used for communication between the mobile device and the electronic device in the Wi-Fi P2P manner may be adjusted. For corresponding steps, please refer to step 503' to step 505', step 503, and step 504 in Figure 6E(A) and Figure 6E(B) and their corresponding implementations. Details will not be described here.
[0150] In one embodiment, the method may not include step 505, and in the above procedure, step 506 may be performed directly at the location where step 505 is involved. For example, after the decision result of step 502 is "no", step 506 is performed directly and step 505 is no longer performed.
[0151] In this embodiment of the present disclosure, when the first channel and the second channel form an in-band co-channel mode relationship, the relationship between the first channel and the second channel is preferably adjusted to an inter-band co-channel mode DBDC mode relationship. Compared with the in-band co-channel mode, the inter-band co-channel mode has a lower network delay. Therefore, the frame freeze problem that exists during the user's screen projection and Internet access can be effectively alleviated, and the user experience can be improved.
[0152] It should be noted that in some possible implementations, after the mobile device 100 detects that the first channel and the second channel are two different channels on the same frequency band, and time division multiplexing is performed between the first antenna and the second antenna, or detects that the first channel and the second channel are different channels on two different frequency bands, the first antenna wirelessly communicates with another electronic device in a Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicates with a second wireless signal source in a Wi-Fi AP manner via the first channel.
[0153] Alternatively, after the mobile device 100 detects that the first channel and the second channel are two different channels on the same frequency band, and time division multiplexing is performed between the first antenna and the second antenna, or after detecting that the first channel and the second channel are different channels on two different frequency bands, the first antenna wirelessly communicates with the electronic device in a Wi-Fi P2P manner via the second channel, and the second antenna wirelessly communicates with the second wireless signal source in a Wi-Fi AP manner via the second channel.
[0154] It should be noted that the mobile device and the electronic device in embodiment 2 may be interchanged. Specifically, the mobile device and the electronic device in steps 601 to 605 in embodiment 2 may be interchanged.
[0155] EMBODIMENT 3 The third embodiment of the present disclosure relates to Figs. 8A to 8C. The mobile device 100 wirelessly communicates with the routing device 300 in a Wi-Fi AP manner through a second channel. In this case, there is no wireless communication between the mobile device 100 and the electronic device 200. Then, when the mobile device 100 projects a screen on the electronic device 200, a wireless communication channel between the mobile device 100 and the electronic device 200 is determined based on the second channel.
[0156] For clearer explanation, the following provides an explanation by using an example in which the mobile device 100 accesses the Internet with the routing device 300 through a second channel. As shown in (a) of FIG. 8A, before the mobile device 100 projects a screen on the electronic device 200, the mobile device 100 wirelessly communicates with the routing device 300 (e.g., a routing device in a user's home or office) through a Wi-Fi AP manner through the second channel. Then, when the mobile device 100 establishes a Wi-Fi P2P connection to the electronic device 200, the mobile device 100 may determine the first channel to be used for the Wi-Fi P2P network connection between the mobile phone 100 and the electronic device 200 based on the second channel and information indicating whether the Wi-Fi chip in the mobile device 100 currently supports the DBDC mode. In FIG. 8B, (a) is the same as (a) of FIG. 8A. Details will not be described here.
[0157] The procedure of the channel adjustment method in the third embodiment is described below with reference to Fig. 8C. As shown in Fig. 8C, the specific steps of the channel adjustment method are as follows:
[0158] Step 801: The mobile device 100 establishes a Wi-Fi connection only to the routing device 300, which specifically means that a second antenna in the mobile device 100 wirelessly communicates with a first wireless signal source of the routing device 300 in a Wi-Fi AP connection manner via a second channel, and the mobile device 100 receives a user input, which is used to indicate to establish a Wi-Fi P2P wireless communication connection between the mobile device 100 and the electronic device 200.
[0159] In this case, the first antenna in the mobile device is in an idle state.
[0160] For example, the user input may be a screen projection operation performed by a user, which is used to indicate establishing a Wi-Fi P2P wireless communication connection between the mobile device 100 and the electronic device 200.
[0161] User input may be entered by touch, using voice, etc.
[0162] Step 802: Determine whether the mobile device 100 supports the DBDC mode of the inter-band inter-channel mode.
[0163] If the mobile device supports the DBDC mode of the inter-band inter-channel mode, step 803 is performed. If the mobile device does not support the DBDC mode of the inter-band inter-channel mode, step 804 is performed.
[0164] Step 803: The mobile device determines a first channel having a frequency band different from the frequency band to which the second channel belongs, and then the first antenna wirelessly communicates with the electronic device via the first channel in a Wi-Fi P2P manner, and the second antenna wirelessly communicates with the first wireless signal source via the second channel in a Wi-Fi AP manner.
[0165] For example, as shown in (b) of FIG. 8A, the mobile device 100 determines that the first channel 410 is the channel 149 on the 5 GHz frequency band. Then, the first channel 410 and the second channel 420 of the mobile device 100 no longer form an intra-band inter-channel mode relationship, but form an inter-band inter-channel mode DBDC mode relationship. In this way, the speed of transmission on the first channel 410 and the speed of transmission on the second channel 420 are guaranteed, no time-division scheduling is performed, and no frame freeze due to channel reasons occurs during the user's screen projection and Internet access. In addition, the interference between the first channel 410 and the second channel 420 is reduced, thus improving the user experience.
[0166] Step 804: The mobile device determines a first channel that is the same as a second channel, and a first antenna in the mobile device wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner via the first channel, and a second antenna continues to wirelessly communicate with the first wireless signal source in a Wi-Fi AP connection manner via the second channel.
[0167] After the mobile device determines the first channel to be the same as the second channel, the first channel is determined to be channel 6 on the 2.4 GHz frequency band, as shown in FIG. 8B(b), the first channel 410 and the second channel 420 form an in-band co-channel mode relationship in this case.
[0168] Alternatively, in some embodiments, step 804 may be replaced by the mobile device determining that the first channel and the second channel are different channels on the same frequency band, and a first antenna in the mobile device wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner over the first channel, and a second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP connection manner over the first channel.
[0169] In this embodiment of the present disclosure, if the second channel already exists and the first channel has not been established, the first channel may be preferably established as a channel in an inter-band inter-channel mode DBDC mode relationship with the second channel. If the first channel cannot be established as a channel in an inter-band inter-channel mode DBDC mode relationship with the second channel, the first channel is configured as a channel in an in-band co-channel mode relationship or an in-band inter-channel mode relationship with the second channel.
[0170] When a first channel is preferably constructed as a channel in an inter-band inter-channel mode DBDC mode relationship with a second channel, the second channel may be left unchanged and then the first channel may be constructed, the second channel may be modified and then the first channel may be constructed, or during construction, an attempt may be made first to leave the second channel unchanged and then the first channel may be constructed, and if a predetermined number of failures is reached, the second channel is modified and then the first channel is constructed.
[0171] It should be noted that in the third embodiment, the description is provided on the premise that the mobile device 100 has already wirelessly communicated with the routing device 300 via the second channel before the mobile device 100 projects the screen. In some other implementations, the electronic device 200 is wirelessly communicatively connected only to the routing device 300 before the screen is projected on the electronic device 200. For example, the electronic device 200 performs Internet access by using the routing device 300. Then, the mobile device 100 receives a user input. The user input is used to indicate to the mobile device 100 to establish a Wi-Fi P2P wireless communication connection to the electronic device 200. Then, the mobile device 100 transmits a Wi-Fi P2P wireless communication connection request to the electronic device 200. After the electronic device 200 receives the Wi-Fi P2P wireless communication connection request, the electronic device 200 may obtain channel information to be used for wireless communication between the electronic device 200 and the routing device 300 in a Wi-Fi AP manner, and then determine a channel to be used to establish a Wi-Fi P2P network connection between the electronic device 200 and the mobile device 100 in the same or similar manner as that of FIG. 8C and FIG. 8C, and feed back the channel to the mobile device 100. Thus, the first channel to be used for wireless communication between the mobile device 100 and the electronic device 200 in a Wi-Fi P2P manner is finally established. Details will not be described here.
[0172] EMBODIMENT 4 The fourth embodiment of the present disclosure relates to Figs. 9A to 9C. The mobile device 100 wirelessly communicates with the electronic device 200 in a Wi-Fi P2P manner through a first channel. In this case, there is no wireless communication connection between the mobile device 100 and the routing device 300. Then, when the mobile device 100 starts a wireless communication connection to the routing device 300, a wireless communication channel between the mobile device 100 and the routing device 300 is determined based on the first channel.
[0173] For clearer explanation, the following provides an explanation by using an example in which the mobile device 100 projects a screen on the electronic device 200 through a first channel. As shown in (a) of FIG. 9A, in the process of projecting a screen on the electronic device 200 by the mobile device 100, the mobile device 100 receives a user input. The user input is used to request to perform Internet access by using the routing device 300 (e.g., a routing device in a user's home or office). The mobile device 100 may determine a second channel to be used for Wi-Fi AP wireless communication between the mobile device 100 and the first wireless signal source of the routing device 300 based on information indicating whether the Wi-Fi chip in the mobile device 100 currently supports the DBDC mode and the first channel. In FIG. 9B, (a) is the same as (a) of FIG. 9A. Details will not be described here.
[0174] The procedure of the channel adjustment method in the fourth embodiment is described below with reference to Fig. 9C. As shown in Fig. 9C, the specific steps of the channel adjustment method are as follows:
[0175] Step 901: The mobile device establishes a Wi-Fi P2P connection only to the electronic device, which specifically means that a first antenna in the mobile device wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner via a first channel, and the mobile device receives a user input, which is used to indicate to establish a Wi-Fi AP wireless communication connection between the mobile device and a first wireless signal source of the routing device.
[0176] In one embodiment, in this case, the mobile device does not establish a Wi-Fi connection to any device other than the electronic device, and the second antenna in the mobile device is in an idle state.
[0177] For example, the user input may be an Internet access operation performed by a user, which is used to indicate establishing a Wi-Fi AP wireless communication connection between the mobile device 100 and the first wireless signal source of the routing device 300.
[0178] The input method of the Internet access operation performed by the user includes, but is not limited to, touch or voice input.
[0179] Step 902: Determine whether the mobile device supports the DBDC mode of the inter-band inter-channel mode.
[0180] If the mobile device 100 supports the DBDC mode of the inter-band inter-channel mode, step 903 is performed. If the mobile device does not support the DBDC mode of the inter-band inter-channel mode, step 904 is performed.
[0181] For example, the mobile device determines whether a Wi-Fi chip within the mobile device supports the DBDC mode of the inter-band inter-channel mode.
[0182] If the Wi-Fi chip in the mobile device 100 supports the DBDC mode of the inter-band inter-channel mode, step 903 is performed. If the Wi-Fi chip in the mobile device does not support the DBDC mode of the inter-band inter-channel mode, step 904 is performed.
[0183] Step 903: The mobile device determines a second channel having a different frequency band from the frequency band to which the first channel belongs, and then the first antenna continues to wirelessly communicate with the electronic device in a Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP manner via the second channel.
[0184] For example, as shown in (b) of FIG. 9A, the mobile device 100 determines that the second channel 420 is channel 6 on the 2.4 GHz frequency band. Then, the second channel 420 and the first channel 410 of the mobile device 100 no longer form an intra-band inter-channel mode relationship, but form an inter-band inter-channel mode DBDC mode relationship. In this way, the speed of transmission on the first channel 410 and the speed of transmission on the second channel 420 are guaranteed, no time-division scheduling is performed, and no frame freeze due to channel reasons occurs during the user's screen projection and Internet access. In addition, the interference between the first channel 410 and the second channel 420 is reduced, thus improving the user experience.
[0185] Step 904: The mobile device determines a second channel that is the same as the first channel, and a first antenna in the mobile device wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner via the first channel, and a second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP connection manner via the second channel.
[0186] After the mobile device determines the second channel to be the same as the first channel, the second channel is the same as the first channel. As shown in FIG. 9B(b), the mobile device 100 determines that the second channel 420 is the channel 149 on the 5 GHz frequency band, in other words, the second channel is the same as the first channel. The first channel 410 and the second channel 420 in this case form an in-band co-channel mode relationship.
[0187] Alternatively, in some embodiments, step 904 may be replaced by the mobile device determining that the second channel is a different channel on the same frequency band as the first channel, and a first antenna in the mobile device wirelessly communicates with the electronic device in a Wi-Fi P2P connection manner over the first channel, and a second antenna wirelessly communicates with the first wireless signal source in a Wi-Fi AP connection manner over the second channel.
[0188] In this embodiment of the present disclosure, if the first channel already exists and the second channel has not been established, the second channel may be preferably established as a channel in an inter-band inter-channel mode DBDC mode relationship with the first channel. If the second channel cannot be established as a channel in an inter-band inter-channel mode DBDC mode relationship with the first channel, the second channel is configured as a channel in an in-band co-channel mode relationship or an in-band inter-channel mode relationship with the first channel.
[0189] When the second channel is preferably constructed as a channel in an inter-band inter-channel mode DBDC mode relationship with the first channel, the first channel may remain unchanged and then the second channel may be constructed, or the first channel may be modified and then the second channel may be constructed, or during construction, an attempt may be made first to leave the first channel unchanged and then the second channel is constructed, and if that fails, the first channel is modified and then the second channel is constructed.
[0190] It should be noted that in the fourth embodiment, the description is provided on the premise that the mobile device 100 has already wirelessly communicated with the electronic device 200 through the first channel before the mobile device 100 has Internet access. In some possible implementations, a screen may be currently projected on the electronic device 200 by the mobile device 100 before the electronic device 200 has Internet access. In this case, the electronic device 200 obtains channel information used for wireless communication between the electronic device 200 and the mobile device 100 in the Wi-Fi P2P manner, and then the electronic device 200 determines a channel to be used for a Wi-Fi AP network connection between the electronic device 200 and the routing device 300 based on the channel information in the same or similar manner as the manner of FIG. 9C and the manner of FIG. 9C. Details will not be described here.
[0191] It should be noted that in embodiment 1 to embodiment 4, how the mobile device adjusts the first channel and / or the second channel or establishes the first channel or the second channel is described by using an example in which the mobile device 100 needs to adjust the first channel and / or the second channel or establish the first channel or the second channel. However, those skilled in the art should understand that these manners of adjusting the first channel and / or the second channel and establishing the first channel or the second channel are also applicable to the electronic device 200.
[0192] That is, when the electronic device 200 wirelessly communicates with the routing device 300 in a Wi-Fi AP manner through a certain channel and wirelessly communicates with the mobile device 100 in a Wi-Fi P2P manner through another channel, when the electronic device 200 wirelessly communicates only with the routing device 300 in a Wi-Fi AP manner through a certain channel and does not wirelessly communicate with the mobile device 100 in a Wi-Fi P2P manner through another channel, or when the electronic device 200 wirelessly communicates only with the mobile device 100 in a Wi-Fi P2P manner through a certain channel and does not wirelessly communicate with the routing device 300 in a Wi-Fi AP manner through another channel, the manner of adjusting the first channel and / or the second channel and the manner of establishing the first channel or the second channel included in the first to fourth embodiments are also applicable to the electronic device 200. Preferably, the electronic device selects to establish an in-band co-channel mode relationship between the channel and another channel. Of course, the electronic device may alternatively select to establish an inter-band inter-channel mode DBDC mode relationship or an in-band co-channel mode relationship between the channel and another channel.
[0193] 10 is a schematic diagram of the structure of a channel adjustment device according to an embodiment of the present disclosure. As shown in FIG. 10, the device includes: an acquisition module 1001, a determination module 1002 and an adjustment module 1003.
[0194] The acquiring module 1001 is configured to acquire channel information. Specifically, the acquiring module 1001 may acquire the channel information of a first channel and the channel information of a second channel before the channel is adjusted. For details of the channel information of the first channel and the channel information of the second channel, please refer to the above-mentioned embodiment.
[0195] The determination module 1002 is configured to determine whether the Wi-Fi chip enables the first antenna and the second antenna to simultaneously, respectively, independently transmit signals via different channels on two different frequency bands.
[0196] The adjustment module 1003 is configured to adjust the first channel or the second channel. Specifically, after the first channel and the second channel are detected as two different channels on the same frequency band, the first antenna and the second antenna are time-division multiplexed, and a second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is detected within a preset duration, the adjustment module 1003 may adjust the second channel. The adjusted second channel is a different channel on a different frequency band from the first channel. Of course, the adjustment module 1003 may adjust the first channel or the second channel in other cases. For other cases and specific adjustment manners, please refer to embodiment 1 to embodiment 4. Details will not be described here.
[0197] An embodiment of the present disclosure further provides a computer storage medium, which stores computer instructions, which when executed on an electronic device, enable the electronic device to perform associated method steps to implement the method of the aforementioned embodiment.
[0198] An embodiment of the present disclosure further provides a computer program product, which, when executed on a computer, enables the computer to perform the steps associated with implementing the method of the aforementioned embodiments.
[0199] In addition, an embodiment of the present disclosure further provides an apparatus. The apparatus may be specifically a chip system, a component, or a module. The apparatus may include a processor and a memory connected to each other. The memory is configured to store computer-executable instructions. When the apparatus operates, the processor may execute the computer-executable instructions stored in the memory, so that the apparatus performs one or more steps of the above-mentioned embodiments to implement the method of the above-mentioned embodiments.
[0200] In addition, an embodiment of the present disclosure further provides an apparatus. The apparatus may specifically be a chip system, a component, or a module. The apparatus may include a processor and a memory connected to each other. The memory is configured to store computer-executable instructions. When the apparatus operates, the processor may execute the computer-executable instructions stored in the memory, so that the apparatus performs the method of the above-mentioned method embodiment.
[0201] The electronic device, computer storage medium, computer program product, or chip provided in the embodiments of the present disclosure can be configured to perform the corresponding method provided above. Therefore, for the beneficial effects that can be achieved by the electronic device, computer storage medium, computer program product, or chip, please refer to the beneficial effects of the corresponding method provided above. Details will not be described here.
[0202] The above description of the embodiment allows those skilled in the art to clearly understand that the above-mentioned division of functional modules is used as an example for explanation for the purpose of convenient and concise description. In practical application, the above-mentioned functions can be allocated and implemented into different modules based on requirements, that is, the internal structure of the device is divided into different functional modules to implement all or part of the above-mentioned functions.
[0203] In some embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the described apparatus embodiments are merely examples. For example, the division into modules or units is merely a logical division of functions, and may be divided in other ways in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the mutual couplings or direct couplings or communication connections shown or discussed may be implemented through some interfaces. Indirect couplings or communication connections between apparatuses or units may be implemented in electrical, mechanical, or other forms.
[0204] The units described as separate parts may or may not be physically separated, and the parts shown as units may be one or more physical units, and may be located in one place or distributed in different places. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.
[0205] In addition, the functional units of the embodiments of the present disclosure may be integrated into one processing unit, each of the units may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or a software functional unit.
[0206] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be essentially implemented in the form of a software product, or the part that contributes to the prior art, or all or part of the technical solutions. The software product is stored in a storage medium and includes some instructions for instructing a device (which may be a single-chip microcomputer, chip, etc.) or a processor to perform all or part of the method steps of the embodiments of the present disclosure. The aforementioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0207] The above description is merely a specific embodiment of the present disclosure, and is not intended to limit the scope of protection of the present disclosure. Any variations or replacements that can be easily conceived by those skilled in the art within the technical scope disclosed in the present disclosure shall fall within the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims. [Explanation of symbols]
[0208] 11 Baseband Processing Module 12 Switch 13 Radio Frequency Module 100 Mobile Devices 110 Processor 111 Media Access Controller 112 Baseband Processor 113 First Radio Frequency Channel Module 114 Second Radio Frequency Channel Module 120 External Memory Interface 121 Internal Memory 130 USB interface 140 Charging Management Module 141 Power Management Module 142 Battery 150 Mobile communication module 2G / 3G / 4G / 5G 160 Wi-Fi chip 160 Wireless communication module BT / WLAN / GNSS / NFC / IR / FM 170 Audio Module 170A Speaker 170B Receiver 170C Microphone 170D Headset Jack 180 Sensor Module 180A PRESSURE SENSOR 180B Gyro sensor 180C Barometric Pressure Sensor 180D Magnetic Sensor 180E Acceleration Sensor 180F Distance Sensor 180G Optical Proximity Sensor 180H Fingerprint Sensor 180J Temperature Sensor 180K touch sensor 180L Ambient Light Sensor 180M Bone Conduction Sensor 190 Button 191 Motor 192 Indicator 193 Camera 1~N 194 Display 1~N 195 SIM card interface 1~N 200 Electronic Devices 210 Processor 260 Wi-Fi chip 300 Routing Devices 310 Processor 360 Wi-Fi Chip 410 First Channel 420 Second Channel 1001 Acquisition Module 1002 Decision Module 1003 Adjustment module
Claims
1. An electronic device, comprising: one or more processors; one or more memories; One Wi-Fi chip, N antennas, all of which are connected to the Wi-Fi chip, the N antennas including a first antenna and a second antenna, N being a positive integer equal to or greater than 2, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner through a first channel, the second antenna wirelessly communicating with a first wireless signal source in a Wi-Fi AP manner through a second channel, and the Wi-Fi chip enabling the first antenna and the second antenna to simultaneously and independently transmit signals through different channels on two different frequency bands, respectively; One or more computer programs, the one or more computer programs stored in the one or more memories and, when executed by the one or more processors, a step of detecting that the first channel and the second channel are two different channels on the same frequency band, performing time division multiplexing on the first antenna and the second antenna, and after detecting a second wireless signal source having a frequency band different from that of the first wireless signal source within a preset duration, adjusting the second channel, so that the adjusted second channel and the first channel are different channels on different frequency bands, and the first antenna wirelessly communicates with the other electronic device in the Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicates with the second wireless signal source in the Wi-Fi AP manner via the adjusted second channel; and one or more computer programs, An electronic device comprising:
2. after it is detected that the first channel and the second channel are two different channels on the same frequency band, but the second wireless signal source having a frequency band different from the frequency band of the first wireless signal source is not detected within the preset duration, the first antenna wirelessly communicates with the other electronic device in the Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicates with the first wireless signal source in the Wi-Fi AP manner via the first channel. The electronic device of claim 1 further comprising:
3. after it is detected that the first channel and the second channel are two different channels on the same frequency band, but the second wireless signal source having a frequency band different from the frequency band of the first wireless signal source is not detected within the preset duration, and a wireless signal source having the same channel as the first channel is detected within another preset duration, the first antenna wirelessly communicates with the other electronic device in the Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicates with the wireless signal source in the Wi-Fi AP manner via the first channel. The electronic device according to claim 1 or 2, further comprising:
4. skipping processing by the electronic device after it is detected that the first channel and the second channel are two different channels on the same frequency band, but the second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is not detected within the preset duration, and the wireless signal source having the same channel as the first channel is not detected within the other preset duration. The electronic device according to claim 1 , further comprising:
5. a step of detecting, within the preset duration, that the first channel and the second channel are the same channel on the same frequency band, and detecting, within the preset duration, that the second wireless signal source having a frequency band different from that of the first wireless signal source, adjusting the second channel so that the adjusted second channel and the first channel are different channels on different frequency bands, the first antenna wirelessly communicating with the other electronic device in the Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicating with the second wireless signal source in the Wi-Fi AP manner via the adjusted second channel; The electronic device according to claim 1 , further comprising:
6. An electronic device, comprising: one or more processors; one or more memories; One Wi-Fi chip, N antennas, all of which are connected to the Wi-Fi chip, the N antennas including a first antenna and a second antenna, N being a positive integer equal to or greater than 2, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner through a first channel, the second antenna wirelessly communicating with a first wireless signal source in a Wi-Fi AP manner through a second channel, and the Wi-Fi chip enabling the first antenna and the second antenna to simultaneously and independently transmit signals through different channels on two different frequency bands, respectively; One or more computer programs, when stored in the memory and executed by the one or more processors, detecting that the first channel and the second channel are two different channels on the same frequency band, and after time division multiplexing is performed on the first antenna and the second antenna, the first antenna transmits a request message to the other electronic device through the first channel, the request message includes a first channel to be acquired by coordination, the first channel to be acquired by coordination and the second channel to be acquired by coordination are different channels on 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 acquired by coordination; After receiving an acknowledgment message from the other electronic device, the first channel is adjusted to the first channel to be acquired by coordination, and the first antenna wirelessly communicates with the other electronic device in the Wi-Fi P2P manner through the adjusted first channel, and the second antenna wirelessly communicates with the first wireless signal source in the Wi-Fi AP manner through the second channel, wherein the acknowledgment message is used to indicate that the other electronic device agrees to wirelessly communicate with the electronic device in the Wi-Fi P2P manner through the first channel to be acquired by coordination; receiving a negative response message from the other electronic device, and after a second wireless signal source having a frequency band different from that of the first wireless signal source is detected within a preset duration, the second channel is adjusted, and the adjusted second channel and the first channel are different channels on different frequency bands, the first antenna wirelessly communicates with the other electronic device in a Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicates with the second wireless signal source in a Wi-Fi AP manner via the adjusted second channel, wherein the negative response message is used to indicate that the other electronic device does not agree to wirelessly communicate with the electronic device in a Wi-Fi P2P manner via the first channel to be acquired by adjustment; and one or more computer programs, An electronic device comprising:
7. after the negative acknowledgement message is received from the other electronic device and the second wireless signal source having a frequency band different from the frequency band of the first wireless signal source is not detected within the preset duration, the first antenna wirelessly communicates with the other electronic device in the Wi-Fi P2P manner via the first channel and the second antenna wirelessly communicates with the first wireless signal source in the Wi-Fi AP manner via the first channel. The electronic device of claim 6 , further comprising:
8. after the negative response message is received from the other electronic device, the second wireless signal source having a frequency band different from the frequency band of the first wireless signal source is not detected within the preset duration, and a wireless signal source having a channel the same as the first channel is detected within another preset duration, the first antenna wirelessly communicates with the other electronic device in the Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicates with the wireless signal source in the Wi-Fi AP manner via the first channel. The electronic device according to claim 6 or 7, further comprising:
9. skipping processing by the electronic device after the negative acknowledgement message is received from the other electronic device and the second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is not detected within the preset duration and the wireless signal source having the same channel as the first channel is not detected within the other preset duration. The electronic device according to claim 6 , further comprising:
10. a step of detecting that the first channel and the second channel are the same channel on the same frequency band, performing time division multiplexing on the first antenna and the second antenna, and after detecting the second wireless signal source having a frequency band different from the frequency band of the first wireless signal source within the preset duration, adjusting the second channel, so that the adjusted second channel and the first channel are different channels on different frequency bands, and the first antenna wirelessly communicates with the other electronic device in the Wi-Fi P2P manner via the first channel, and the second antenna wirelessly communicates with the second wireless signal source in the Wi-Fi AP manner via the adjusted second channel. The electronic device according to claim 6 , further comprising:
11. A channel adjustment method applied to an electronic device, the electronic device comprising: one or more processors; one or more memories; a Wi-Fi chip; and N antennas, all of the N antennas being connected to the Wi-Fi chip, the N antennas including a first antenna and a second antenna, N being a positive integer equal to or greater than 1, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner via a first channel, and the second antenna wirelessly communicating with a first wireless signal source in a Wi-Fi Access Point AP manner via a second channel, the Wi-Fi chip enabling the first antenna and the second antenna to simultaneously and independently transmit signals via different channels on two different frequency bands, respectively, the method comprising: a step of detecting that the first channel and the second channel are two different channels on the same frequency band, performing time division multiplexing on the first antenna and the second antenna, and detecting a second wireless signal source having a frequency band different from that of the first wireless signal source within a preset duration, adjusting the second channel, detecting that the adjusted second channel and the first channel are different channels on different frequency bands, wirelessly communicating with the other electronic device in the Wi-Fi P2P manner via the first channel by the first antenna, and wirelessly communicating with the second wireless signal source in the Wi-Fi AP manner via the adjusted second channel by the second antenna. A channel adjustment method comprising:
12. The method comprises: after it is detected that the first channel and the second channel are two different channels on the same frequency band, but the second wireless signal source having a frequency band different from the frequency band of the first wireless signal source is not detected within the preset duration, wirelessly communicating with the other electronic device in the Wi-Fi P2P manner via the first channel by the first antenna, and wirelessly communicating with the first wireless signal source in the Wi-Fi AP manner via the first channel by the second antenna.
12. The method of claim 11, further comprising:
13. The method comprises: after it is detected that the first channel and the second channel are two different channels on the same frequency band, but the second wireless signal source having a frequency band different from the frequency band of the first wireless signal source is not detected within the preset duration, and a wireless signal source having the same channel as the first channel is detected within another preset duration, wirelessly communicating with the other electronic device in the Wi-Fi P2P manner via the first channel by the first antenna, and wirelessly communicating with the wireless signal source in the Wi-Fi AP manner via the first channel by the second antenna.
13. The method of claim 11 or 12, further comprising:
14. The method comprises: skipping processing by the electronic device after the first channel and the second channel are detected to be two different channels on the same frequency band, but the second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is not detected within the preset duration, and the wireless signal source having the same channel as the first channel is not detected within the other preset duration.
14. The method of any one of claims 11 to 13, further comprising:
15. The method comprises: adjusting the second channel after detecting that the first channel and the second channel are the same channel on the same frequency band and detecting the second wireless signal source having a different frequency band from the frequency band of the first wireless signal source within the preset duration, and wirelessly communicating with the other electronic device via the first channel in the Wi-Fi P2P manner by the first antenna and wirelessly communicating with the second wireless signal source via the adjusted second channel in the Wi-Fi AP manner by the second antenna.
15. The method of any one of claims 11 to 14, further comprising:
16. A channel adjustment method applied to an electronic device, the electronic device comprising: one or more processors; one or more memories; a Wi-Fi chip; and N antennas, all of the N antennas being connected to the Wi-Fi chip, the N antennas including a first antenna and a second antenna, N being a positive integer equal to or greater than 1, the first antenna wirelessly communicating with another electronic device in a Wi-Fi P2P manner via a first channel, and the second antenna wirelessly communicating with a first wireless signal source in a Wi-Fi AP manner via a second channel, the Wi-Fi chip enabling the first antenna and the second antenna to simultaneously and independently transmit signals via different channels on two different frequency bands, respectively, the method comprising: a step of detecting that the first channel and the second channel are two different channels on the same frequency band, and after time division multiplexing is performed on the first antenna and the second antenna, transmitting a request message to the other electronic device through the first channel by the first antenna, wherein the request message includes a first channel to be acquired by coordination, the first channel to be acquired by coordination and the second channel to be acquired by coordination are different channels on 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 acquired by coordination; After receiving an acknowledgment message from the other electronic device, adjusting the first channel to the first channel to be acquired by coordination, wirelessly communicating with the other electronic device in the Wi-Fi P2P manner through the adjusted first channel by the first antenna, and wirelessly communicating with the first wireless signal source in the Wi-Fi AP manner through the second channel by the second antenna, wherein the acknowledgment message is used to indicate that the other electronic device agrees to wirelessly communicate with the electronic device in the Wi-Fi P2P manner through the first channel to be acquired by coordination; a step of adjusting the second channel, the adjusted second channel and the first channel being different channels on different frequency bands, by the first antenna to wirelessly communicate with the other electronic device in the Wi-Fi P2P manner through the first channel, and wirelessly communicating with the second wireless signal source in the Wi-Fi AP manner through the adjusted second channel by the second antenna, after a negative response message is received from the other electronic device and a second wireless signal source having a frequency band different from that of the first wireless signal source is detected within a preset duration, the negative response message being used to indicate that the other electronic device does not agree to wirelessly communicate with the electronic device in the Wi-Fi P2P manner through the first channel to be acquired by adjustment; A channel adjustment method comprising:
17. The method comprises: wirelessly communicating with the other electronic device in the Wi-Fi P2P manner via the first channel by the first antenna and wirelessly communicating with the first wireless signal source in the Wi-Fi AP manner via the second antenna over the first channel after the negative response message is received from the other electronic device and the second wireless signal source having a different frequency band from the frequency band of the first wireless signal source is not detected within the preset duration.
17. The method of claim 16, further comprising:
18. The method comprises: wirelessly communicating with the other electronic device in the Wi-Fi P2P manner through the first channel by the first antenna and wirelessly communicating with the wireless signal source in the Wi-Fi AP manner through the first channel by the second antenna after the negative response message is received from the other electronic device, the second wireless signal source having a frequency band different from the frequency band of the first wireless signal source is not detected within the preset duration, and a wireless signal source having a channel the same as the first channel is detected within another preset duration.
18. The method of claim 16 or 17, further comprising:
19. The method comprises: skipping, by the electronic device, processing after the negative acknowledgement message is received from the other electronic device and the second wireless signal source having a different frequency band than the frequency band of the first wireless signal source is not detected within the preset duration and the wireless signal source having the same channel as the first channel is not detected within the other preset duration.
19. The method of any one of claims 16 to 18, further comprising:
20. The method comprises: and after detecting that the first channel and the second channel are the same channel on the same frequency band, performing time division multiplexing on the first antenna and the second antenna, and detecting the second wireless signal source having a frequency band different from that of the first wireless signal source within the preset duration, adjusting the second channel, and determining that the adjusted second channel and the first channel are different channels on different frequency bands, wirelessly communicating with the other electronic device in the Wi-Fi P2P manner via the first channel by the first antenna, and wirelessly communicating with the second wireless signal source in the Wi-Fi AP manner via the adjusted second channel by the second antenna.
20. The method of any one of claims 16 to 19, further comprising:
21. 21. A computer readable storage medium comprising a computer program, which when executed on an electronic device enables the electronic device to perform the method according to any one of claims 11 to 20.
Citation Information
Patent Citations
Communication device, control method, and program
JP2020108121A
Communication device and control method therefor
JP2020108123A
Systems and methods for concurrent device discovery
US20140254422A1
Interface shaping for virtual interfaces
US20160360446A1
