Method and apparatus for network connection
A method and an apparatus for network connection are provided. The method includes connecting to a detected Wi-Fi network for a target identity module of the terminal, and establishing an IP multimedia subsystem (IMS) network connection for the target identity module of the terminal based on the connected Wi-Fi network.
1. A method for operating a terminal, the method comprising:
identifying whether a wireless fidelity (Wi-Fi) network for a second identity module in the terminal is detected in a case that a call service is established by a first identity module in the terminal and the second identity module in the terminal is unable to access a mobile network;
in a case that the Wi-Fi network for the second identity module is detected,
connecting to the detected Wi-Fi network for the second identity module; and
establishing an internet protocol (IP) multimedia subsystem (IMS) network connection for the second identity module based on the connected Wi-Fi network while the established call service by the first identity module continues; and
in a case that the Wi-Fi network for the second identity module is not detected,
detecting a Wi-Fi hotspot of the first identity module;
connecting to the Wi-Fi network for the second identity module based on the detected Wi-Fi hotspot; and
establishing the IP IMS network connection for the second identity module based on the connected Wi-Fi network,
wherein the first identity module shares a data service with the second identity module while the established call service by the first identity module continues.
2. The method of claim 1 , further comprising:
detecting whether the second identity module in the terminal is in a radio resource control (RRC) connection state before the first identity module establishes a call; and
changing an RRC state of the second identity module in the terminal from the RRC connection state to an idle state, or synchronizing with a network side for an evolved packet system (EPS) context state of the second identity module in the terminal in the RRC connection state.
3. The method of claim 2 ,
wherein the changing of the RRC state of the second identity module of in the terminal comprises:
changing the RRC state of the second identity module in the terminal from the RRC connection state to the idle state before the first identity module establishes a call, and
wherein the synchronizing with the network side for the EPS context state of the second identity module in the terminal comprises:
synchronizing with the network side for the EPS context state of the second identity module in the terminal in the RRC connection state, after the first identity module ends the call.
4. The method of claim 3 ,
wherein the changing of the RRC state of the second identity module of in the terminal comprises initiating a tracking area update (TAU) process for the second identity module in the RRC connection state, and
wherein the network side releases an RRC connection of the second identity module in the terminal in the RRC connection state.
5. The method of claim 1 , further comprising:
detecting whether an identity module in the terminal is in a radio resource control (RRC) connection state, before any one of identity modules establishes a call; and
changing an RRC state of the identity module in the terminal from the RRC connection state to an idle state, or synchronizing with a network side for an evolved packet system (EPS) context state of the identity module in the terminal in the RRC connection state.
6. The method of claim 5 ,
wherein the changing of the RRC state of the identity module in the terminal comprises:
changing the RRC state of the identity module in the terminal from the RRC connection state to the idle state before the any one of identity modules establishes a call, and
wherein the synchronizing with the network side for the EPS context state of the identity module in the terminal in the RRC connection state, comprises:
synchronizing with the network side for the EPS context state of the identity module in the terminal in the RRC connection state after the any one of the identity modules ends the call.
7. The method of claim 6 ,
wherein the changing of the RRC state of the identity module in the terminal comprises initiating a tracking area update (TAU) process for the identity module in the terminal in the RRC connection state, and
wherein a network side releases an RRC connection of the identity module in the terminal in the RRC connection state.
8. A terminal comprising:
a transceiver;
a memory; and
at least one processor configured to:
identify whether a wireless fidelity (Wi-Fi) network for a second identity module in the terminal is detected in a case that a call service is established by a first identity module in the terminal and the second identity module in the terminal is unable to access a mobile network,
in a case that the Wi-Fi network for the second identity module is detected,
connect to the detected Wi-Fi network for the second identity module, and
establish an internet protocol (IP) multimedia subsystem (IMS) network connection for the second identity module based on the connected Wi-Fi network while the established call service by the first identity module continues, and
in a case that the Wi-Fi network for the second identity module is not detected,
detect a Wi-Fi hotspot of the first identity module,
connect to the Wi-Fi network for the second identity module based on the detected Wi-Fi hotspot, and
establish the IP IMS network connection for the second identity module based on the connected Wi-Fi network,
wherein the first identity module shares a data service with the second identity module while the established call service by the first identity module continues.
9. The terminal of claim 8 , wherein the at least one processor is further configured to:
detect whether the second identity module in the terminal is in a radio resource control (RRC) connection state before the first identity module establishes a call, and
change an RRC state of the second identity module in the terminal from the RRC connection state to an idle state, or synchronizing with a network side for an evolved packet system (EPS) context state of the second identity module in the terminal in the RRC connection state.
10. The terminal of claim 9 , wherein the at least one processor is further configured to:
change the RRC state of the second identity module in the terminal from the RRC connection state to the idle state before the first identity module establishes a call, and
synchronize with the network side for the EPS context state of the second identity module in the terminal in the RRC connection state, after the first identity module ends the call.
11. The terminal of claim 10 ,
wherein the at least one processor is further configured to initiate a tracking area update (TAU) process for the second identity module in the RRC connection state, and
wherein the network side releases an RRC connection of the second identity module in the terminal in the RRC connection state.
12. The terminal of claim 8 , wherein the at least one processor is further configured to:
detect whether an identity module in the terminal is in a radio resource control (RRC) connection state, before any one of identity modules establishes a call, and
change an RRC state of the identity module in the terminal from the RRC connection state to an idle state, or synchronize with a network side for an evolved packet system (EPS) context state of the identity module in the terminal in the RRC connection state.
13. The terminal of claim 12 , wherein the at least one processor is further configured to:
change the RRC state of the identity module in the terminal from the RRC connection state to the idle state before the any one of identity modules establishes a call, and
synchronize with the network side for the EPS context state of the identity module in the terminal in the RRC connection state after the any one of the identity modules ends the call.
14. The terminal of claim 13 ,
wherein the at least one processor is further configured to initiate a tracking area update (TAU) process for the identity module in the terminal in the RRC connection state, and
wherein a network side releases an RRC connection of the identity module in the terminal in the RRC connection state.