| CPC H04L 61/5014 (2022.05) [H04L 67/104 (2013.01); G06F 13/4282 (2013.01); G06F 2213/0042 (2013.01)] | 20 Claims |

|
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.
|