US 12,261,820 B2
Method for connection between devices, electronic device, and computer-readable storage medium
Yong Liang, Shenzhen (CN); and Yufeng Mao, Beijing (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Appl. No. 18/249,466
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
PCT Filed Oct. 15, 2021, PCT No. PCT/CN2021/124006
§ 371(c)(1), (2) Date Apr. 18, 2023,
PCT Pub. No. WO2022/083507, PCT Pub. Date Apr. 28, 2022.
Claims priority of application No. 202011124452.2 (CN), filed on Oct. 20, 2020.
Prior Publication US 2023/0370420 A1, Nov. 16, 2023
Int. Cl. H04L 61/5014 (2022.01); H04L 67/104 (2022.01); G06F 13/42 (2006.01)
CPC H04L 61/5014 (2022.05) [H04L 67/104 (2013.01); G06F 13/4282 (2013.01); G06F 2213/0042 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method implemented by a first electronic device and comprising:
establishing a connection with a second electronic device through a Universal Serial Bus (USB) cable;
enabling a first connection mode to perform Internet Protocol (IP) layer connection between the first electronic device and the second electronic device;
allocating IP addresses to the first electronic device and the second electronic device while in the first connection mode;
receiving, by a USB system of the first electronic device, data from the second electronic device while in the first connection mode; and
disabling transmission of the data to a mobile communications system of the first electronic device while in the first connection mode;
receiving a first request for enabling a second connection mode, wherein the second connection mode is configured to share a mobile network of the first electronic device with the second electronic device; and
enabling the data to be transmitted to the mobile communications system while in the second connection mode.