Multi-connection method and device based on target wake time
An example electronic device may include a processor and a memory configured to store instructions. The processor may be configured to execute the instructions to: determine a first Target Wake Time (TWT) schedule by performing TWT negotiation with a first access point (AP); determine a second TWT schedule by performing TWT negotiation with a second AP; and communicate with the second AP based on the second TWT schedule while communicating with the first AP based on the first TWT schedule.
1 . An electronic device for communicating with an access point (AP) based on a target wake time (TWT), the electronic device comprising:
memory configured to store instructions,
at least one processor comprising processing circuitry configured to execute the instructions and to control the electronic device to:
determine a first TWT schedule by performing TWT negotiation with a first AP;
determine a second TWT schedule different from the first TWT schedule by performing TWT negotiation with a second AP, wherein the second TWT schedule is determined so that a first service period according to the first TWT schedule does not overlap a second service period according to the second TWT schedule; and
communicate in a multi-connected state with the second AP based on the second TWT schedule and with the first AP based on the first TWT schedule.
2 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to control the electronic device to perform the TWT negotiation with the second AP based on the first TWT schedule.
3 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to control the electronic device to determine the second TWT schedule so that a time interval equal to or longer than a specified time is set between the first service period and the second service period.
4 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to control the electronic device to, when the electronic device is in a single-connected state of being connected to the first AP, attempt to establish a multi-connection with another AP when a received signal strength indication for the first AP is low according to a specified criterion.
5 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to, when the electronic device is in a single-connected state of being connected to the first AP and a received signal strength indication (RSSI) for the first AP is lower than a first specified criterion, control the electronic device to search for an AP having an RSSI higher than a second specified criterion, wherein the second AP is an AP found during the search.
6 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to, when the electronic device is in the multi-connected state and a received signal strength indication (RSSI) for any one or more of multi-connected APs is higher than a specified criterion, switch to a single-connected state of being single-connected to the AP whose RSSI is highest among the any one or more of the multi-connected APs.
7 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to, when the electronic device is in the multi-connected state and a received signal strength indication (RSSI) for any one of multi-connected APs is lower than a specified criterion, release connection to the any one of the multi-connected APs.
8 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to control the electronic device to:
when performing communication based on the first TWT schedule, perform operations of a medium access control (MAC) layer and a physical layer according to the first AP; and
when performing communication based on the second TWT schedule, perform operations of the MAC layer and the physical layer according to the second AP.
9 . The electronic device of claim 8 , wherein, when communication is performed based on the first TWT schedule, an operation of an upper layer is performed in a same manner as when communication is performed based on the second TWT schedule.
10 . The electronic device of claim 9 , wherein at least one processor comprising processing circuitry is configured to control the electronic device to:
after connecting to the second AP in a state of being connected to the first AP, transmit an address resolution protocol (ARP) request to the second AP using an IP address of a gateway of the first AP;
determine whether a MAC address of a response to the ARP request is identical to a MAC address of the gateway; and
release the connection to the second AP when the MAC address of the response is different from the MAC address of the gateway.
11 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to control the electronic device to adjust at least one of the first TWT schedule and the second TWT schedule by performing TWT negotiation with at least one of the first AP and the second AP, based on a channel state for the first AP and a channel state for the second AP.
12 . The electronic device of claim 11 , wherein at least one processor comprising processing circuitry is configured to control the electronic device to perform adjustment so that a wake duration of an AP having a better channel state among the first AP and the second AP is longer than a wake duration of an AP having a worse channel state among the first AP and the second AP.
13 . The electronic device of claim 1 , wherein at least one processor comprising processing circuitry is configured to control the electronic device to display, on a screen, a connection state with the first AP and a connection state with the second AP.
14 . An operating method of an electronic device for communicating with an access point (AP) based on a target wake time (TWT), the operating method comprising:
determining a first TWT schedule by performing TWT negotiation with a first AP;
determining a second TWT schedule different from the first TWT schedule by performing TWT negotiation with a second AP, wherein the second TWT schedule is determined so that a first service period according to the first TWT schedule does not overlap a second service period according to the second TWT schedule; and
communicating in a multi-connected state with the second AP based on the second TWT schedule and with the first AP based on the first TWT schedule.
15 . The method of claim 14 , further comprising:
performing the TWT negotiation with the second AP based on the first TWT schedule.
16 . The method of claim 15 , further comprising:
adjusting at least one of the first TWT schedule and the second TWT schedule by performing TWT negotiation with at least one of the first AP and the second AP, based on a channel state for the first AP and a channel state for the second AP.
17 . A non-transitory computer-readable storage medium storing instructions that, when executed by at least one processor, cause an electronic device for communicating with an access point (AP) based on a target wake time (TWT) to:
determine a first TWT schedule by performing TWT negotiation with a first AP;
determine a second TWT schedule different from the first TWT schedule by performing TWT negotiation with a second AP, wherein the second TWT schedule is determined so that a first service period according to the first TWT schedule does not overlap a second service period according to the second TWT schedule; and
communicate in a multi-connected state with the second AP based on the second TWT schedule and with the first AP based on the first TWT schedule.