IP Library › Granted Patent US 12,615,676
Granted Patent B2
US 12,615,676 · App. 18/039,044 · Granted Apr 28, 2026

Wi-Fi P2P connection method, electronic device, program product, and medium

Inventor: Shenghui Yan (Shenzhen, CN)
Assignee: HONOR DEVICE CO., LTD.
H04W76/14H04W84/12
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,615,676
App. No.
18/039,044
Granted
Apr 28, 2026
Kind
B2
Abstract

This application provides a Wi-Fi P2P connection method, an electronic device, a program product, and a readable storage medium. A first device and a second device access a network by using different channels in a same band. The first device determines a device with a weaker switching capability by using Wi-Fi module intra-band inter-channel switching capability values of the first device and the second device, and establishes a P2P connection by using a STA channel through which the device with the weaker switching capability accesses the network.

Claims (60)

1 . A Wireless Fidelity (Wi-Fi) Peer-To-Peer (P2P) connection method, applied to a first device, wherein the first device and a second device access a network by using different channels in a same band, and the Wi-Fi P2P connection method comprises:

obtaining, by the first device, a first Wi-Fi module intra-band inter-channel switching capability of the first device, and establishing a connection channel with the second device;

receiving, by the first device, a second Wi-Fi module intra-band inter-channel switching capability of the second device and a station (STA) channel through which the second device accesses the network that are sent by the second device through the connection channel established with the first device;

determining, by the first device, which of the first device and the second device has a weaker switching capability according to the first Wi-Fi module intra-band inter-channel switching capability and the second Wi-Fi module intra-band inter-channel switching capability; and

establishing, by the first device, a Wi-Fi P2P connection with the second device according to the STA channel through which the second device accesses the network when it is determined that the second device has the weaker switching capability than the first device.

2 . The Wi-Fi P2P connection method according to claim 1 , wherein the first Wi-Fi module intra-band inter-channel switching capability comprises three values: a P2P channel working duration of the first device, a STA channel working duration of the first device, and a switching-consumed time of the first device; and

wherein the second Wi-Fi module intra-band inter-channel switching capability comprises three values: a P2P channel working duration of the second device, a STA channel working duration of the second device, and a switching-consumed time of the second device.

3 . The Wi-Fi P2P connection method according to claim 1 , wherein the first Wi-Fi module intra-band inter-channel switching capability comprises a first value, and the first value represents the Wi-Fi module intra-band inter-channel switching capability of the first device; and

wherein the second Wi-Fi module intra-band inter-channel switching capability comprises a second value, and the second value represents the Wi-Fi module intra-band inter-channel switching capability of the second device; and

wherein determining, by the first device, which of the first device and the second device has the weaker switching capability according to the first Wi-Fi module intra-band inter-channel switching capability and the second Wi-Fi module intra-band inter-channel switching capability comprises:

comparing, by the first device, the first value with the second value, and determining which of the first device and the second device has the weaker switching capability according to which of the first value and the second value is smaller.

4 . The Wi-Fi P2P connection method according to claim 2 , wherein determining, by the first device, which of the first device and the second device has the weaker switching capability according to the first Wi-Fi module intra-band inter-channel switching capability and the second Wi-Fi module intra-band inter-channel switching capability comprises:

separately comparing, by the first device, the P2P channel working duration of the first device with the P2P channel working duration of the second device, the STA channel working duration of the first device with the STA channel working duration of the second device, and the switching-consumed time of the first device with the switching-consumed time of the second device, to obtain three comparison results; and

determining, by the first device, which of the first device and the second device has the weaker switching capability according to the three comparison results.

5 . The Wi-Fi P2P connection method according to claim 1 , wherein receiving, by the first device, the second Wi-Fi module intra-band inter-channel switching capability of the second device and the STA channel through which the second device accesses the network that are sent by the second device through the connection channel established with the first device, comprises:

receiving, by the first device through a Bluetooth connection channel or a P2P connection channel, the second Wi-Fi module intra-band inter-channel switching capability of the second device and the STA channel through which the second device accesses the network that are sent by the second device, wherein the P2P connection channel is obtained by the first device and the second device by establishing a P2P connection through a common channel.

6 . The Wi-Fi P2P connection method according to claim 1 , further comprising:

when the first device determines that the second device has the weaker switching capability than the first device, and the STA channel through which the second device accesses the network is not supported by the first device, establishing, by the first device, a P2P connection between the first device and the second device by using a STA channel through which the first device accesses the network; or

when the first device determines that the first device has the weaker switching capability than the second device and the STA channel through which the first device accesses the network is not supported by the second device, establishing, by the first device, a P2P connection between the first device and the second device by using a STA channel through which the second device accesses the network.

7 . The Wi-Fi P2P connection method according to claim 6 , further comprising:

before establishing, by the first device, the P2P connection between the first device and the second device by using the STA channel through which the first device accesses the network, determining, by the first device, that the STA channel through which the first device accesses the network is a channel supported by the second device; or

before establishing, by the first device, the P2P connection between the first device and the second device by using the STA channel through which the second device accesses the network, determining, by the first device, that the STA channel through which the second device accesses the network is a channel supported by the first device.

8 . The Wi-Fi P2P connection method according to claim 7 , further comprising:

when the first device determines that the STA channel through which the first device accesses the network is not a channel supported by the second device, establishing, by the first device, a P2P connection between the first device and the second device by using a channel supported by both the first device and the second device; or

when the first device determines that the STA channel through which the second device accesses the network is not a channel supported by the first device, establishing, by the first device, a P2P connection between the first device and the second device by using a channel supported by both the first device and the second device.

9 . The Wi-Fi P2P connection method according to claim 1 , the method further comprising:

after establishing, by the first device, the P2P connection between the first device and the second device by using the STA channel through which the second device accesses the network when it is determined that the second device has the weaker switching capability than the first device, when the first device determines that the P2P connection between the first device and the second device is not successfully established, establishing, by the first device, a P2P connection between the first device and the second device by an STA channel through which the first device accesses the network.

10 . The Wi-Fi P2P connection method according to claim 9 , wherein after establishing, by the first device, the P2P connection between the first device and the second device by using the STA channel through which the first device accesses the network, the method further comprises:

when the first device determines that the P2P connection between the first device and the second device is not successfully established, establishing, by the first device, a P2P connection between the first device and the second device by using a channel supported by both the first device and the second device.

11 . An electronic device, configured to act as a first device, and the electronic device comprising:

one or more processors, a memory, and a wireless communications interface, wherein

the memory and the wireless communications interface are coupled to the one or more processors, the memory is configured to stores computer program code, the computer program code comprises computer instructions, and when the one or more processors execute the computer instructions, the electronic device performs the following:

obtaining a first Wireless Fidelity (Wi-Fi) module intra-band inter-channel switching capability of the first device, and establishing a connection channel with a second device;

receiving a second Wi-Fi module intra-band inter-channel switching capability of the second device and a station (STA) channel through which the second device accesses a network that are sent by the second device through the connection channel established with the first device;

determining which of the first device and the second device has a weaker switching capability according to the first Wi-Fi module intra-band inter-channel switching capability and the second Wi-Fi module intra-band inter-channel switching capability; and

establishing a Wi-Fi Peer-To-Peer (P2P) connection with the second device according to the STA channel through which the second device accesses the network when it is determined that the second device is the device has the weaker switching capability than the first device.

12 . The electronic device according to claim 11 , wherein the first Wi-Fi module intra-band inter-channel switching capability comprises three values: a P2P channel working duration of the first device, a STA channel working duration of the first device, and a switching-consumed time of the first device; and

wherein the second Wi-Fi module intra-band inter-channel switching capability comprises three values: a P2P channel working duration of the second device, STA channel working duration of the second device, and switching-consumed time of the second device.

13 . The electronic device according to claim 11 , wherein the first Wi-Fi module intra-band inter-channel switching capability comprises a first value, and the first value represents the Wi-Fi module intra-band inter-channel switching capability of the first device;

wherein the second Wi-Fi module intra-band inter-channel switching capability comprises a second value, and the second value represents the Wi-Fi module intra-band inter-channel switching capability of the second device; and

wherein determining which of the first device and the second device has the weaker switching capability by using the first Wi-Fi module intra-band inter-channel switching capability and the second Wi-Fi module intra-band inter-channel switching capability comprises:

comparing the first value with the second value, and determining which of the first device and the second device has the weaker switching capability according to which of the first value and the second value is smaller.

14 . The electronic device according to claim 12 , wherein determining, by the first device, the weaker switching capability which of the first device and the second device has the weaker switching capability according to the first Wi-Fi module intra-band inter-channel switching capability and the second Wi-Fi module intra-band inter-channel switching capability comprises:

separately comparing the P2P channel working duration of the first device with the P2P channel working duration of the second device, the STA channel working duration of the first device with the STA channel working duration of the second device, and the switching-consumed time of the first device with the switching-consumed time of the second device, to obtain three comparison results; and

determining which of the first device and the second device has the weaker switching capability according to the three comparison results.

15 . The electronic device according to claim 11 , wherein receiving the second Wi-Fi module intra-band inter-channel switching capability of the second device and the STA channel through which the second device accesses the network that are sent by the second device comprises:

receiving, through a Bluetooth connection channel or a peer to peer (P2P) connection channel, the second Wi-Fi module intra-band inter-channel switching capability of the second device and the STA channel through which the second device accesses the network that are sent by the second device, wherein the P2P connection channel is obtained by the first device and the second device by establishing a P2P connection through a common channel.

16 . The electronic device according to claim 15 , wherein when the one or more processors execute the computer instructions, the electronic device performs the following:

when the first device determines that the second device has the weaker switching capability than the first device, and the STA channel through which the second device accesses the network is not supported by the first device, establishing a P2P connection between the first device and the second device by using a STA channel through which the first device accesses the network; or

when the first device determines that the first device has the weaker switching capability than the second device and the STA channel through which the first device accesses the network is not supported by the second device, establishing a P2P connection between the first device and the second device by using a STA channel through which the second device accesses the network.

17 . The electronic device according to claim 16 , wherein when the one or more processors execute the computer instructions, the electronic device performs the following:

before establishing the P2P connection between the first device and the second device by using the STA channel through which the first device accesses the network, determining that the STA channel through which the first device accesses the network is a channel supported by the second device; or

before establishing the P2P connection between the first device and the second device by using the STA channel through which the second device accesses the network, determining that the STA channel through which the second device accesses the network is a channel supported by the first device.

18 . The electronic device according to claim 17 , wherein when the one or more processors execute the computer instructions, the electronic device performs the following:

when the first device determines that the STA channel through which the first device accesses the network is not a channel supported by the second device, establishing a P2P connection between the first device and the second device by using a channel supported by both the first device and the second device; or

when the first device determines that the STA channel through which the second device accesses the network is not a channel supported by the first device, establishing a P2P connection between the first device and the second device by using a channel supported by both the first device and the second device.

19 . The electronic device according to claim 11 , wherein when the one or more processors execute the computer instructions, the electronic device performs the following:

after establishing the P2P connection between the first device and the second device by using the STA channel through which the second device accesses the network when it is determined that the second device has the weaker switching capability than the first device, when the first device determines that the P2P connection between the first device and the second device is not successfully established, establishing a P2P connection between the first device and the second device by using an STA channel through which the first device accesses the network.

20 . The electronic device according to claim 19 , wherein when the one or more processors execute the computer instructions, the electronic device performs the following:

after establishing the P2P connection between the first device and the second device by using the STA channel through which the first device accesses the network when the first device determines that the P2P connection between the first device and the second device is not successfully established, establishing the P2P connection between the first device and the second device by using a channel supported by both the first device and the second device.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 6, 2023
From: YAN, SHENGHUI
To: HONOR DEVICE CO., LTD.
Reel/Frame 063865/0616 →
Priority Claims (1)
CN 202111197472.7 · Oct 14, 2021 · national
Continuity (1)
Related Publication 20240098816A1 · Mar 21, 2024
References Cited (28)
US 9048984B2 · Yao et al. · 2015 [cited by applicant]
US 9913253B2 · Hareuveni et al. · 2018 [cited by applicant]
US 10298673B2 · Hegde et al. · 2019 [cited by applicant]
US 10602514B2 · Kim et al. · 2020 [cited by applicant]
US 11438944B2 · Mullati et al. · 2022 [cited by applicant]
US 11728831B2 · Wheelock · 2023 [cited by examiner]
US 20120166671A1 · Qi et al. · 2012 [cited by applicant]
US 20150245285A1 · Kwon · 2015 [cited by examiner]
US 20160037504A1 · Tamura · 2016 [cited by examiner]
US 20160374053A1 · Hareuveni · 2016 [cited by examiner]
US 20170290029A1 · Park et al. · 2017 [cited by applicant]
US 20190357214A1 · Kurian · 2019 [cited by examiner]
US 20200120453A1 · Kim et al. · 2020 [cited by applicant]
US 20230069398A1 · Yi et al. · 2023 [cited by applicant]
US 20230269707A1 · Zhu et al. · 2023 [cited by applicant]
US 20230370920A1 · Zhou · 2023 [cited by examiner]
CN 101502156A · 2009 [cited by applicant]
CN 103582053A · 2014 [cited by applicant]
CN 106063345A · 2016 [cited by applicant]
CN 108605374A · 2018 [cited by applicant]
CN 109565893A · 2019 [cited by applicant]
CN 111641979A · 2020 [cited by applicant]
CN 112702803A · 2021 [cited by examiner]
CN 112929972A · 2021 [cited by applicant]
CN 113645693A · 2021 [cited by applicant]
WO WO2019009059A1 · 2019 [cited by examiner]
WO 2021118644A1 · 2021 [cited by applicant]
IEEE 100 The Authoritative Dictionary of IEEE Standards Terms, Published 2000, pp. 767-768 (Year: 2000). [cited by examiner]