Search

CN-122002399-A - Network switching method, electronic device, storage medium, and program product

CN122002399ACN 122002399 ACN122002399 ACN 122002399ACN-122002399-A

Abstract

The embodiment of the application provides a network switching method, electronic equipment, a storage medium and a program product. The method comprises the steps of determining the current network type of the terminal equipment, wherein the current network type comprises a 5G reduced performance network or a 4G network, determining the current communication state of the terminal equipment, wherein the current communication state comprises a connection state or an idle state, and executing network switching through a communication module according to the current network type and the current communication state every preset time length. According to the scheme, the current network type and the current communication state are integrated, and the terminal equipment in the connection state can be prevented from directly performing network switching, so that the influence on the communication quality in the network switching process is avoided.

Inventors

  • XIAN KE
  • KONG SHENGMIAO
  • DONG QINGMIN

Assignees

  • 成都鼎桥通信技术有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (13)

  1. 1.A network switching method, comprising: Determining a current network type of the terminal equipment, wherein the current network type comprises a 5G reduced performance network or a 4G network; determining a current communication state of the terminal equipment, wherein the current communication state comprises a connection state or an idle state; And executing network switching through a communication module at intervals of preset time according to the current network type and the current communication state.
  2. 2. The method of claim 1, wherein performing network handoff by a communication module according to the current network type and the current communication state comprises: If the current network type is a 5G reduced performance network, determining a first measurement interval and a first measurement frequency; Performing measurement according to the first measurement interval and the first measurement times to obtain a plurality of first signal quality parameters of network equipment connected with the terminal equipment; Determining whether each of the first signal quality parameters is less than a parameter threshold; If yes, network switching is executed through the communication module according to the current communication state.
  3. 3. The method of claim 2, wherein performing network handoff by the communication module based on the current communication state comprises: if the current communication state is an idle state, switching the network type into a 4G network through the communication module; and if the current communication state is a connection state, determining a first communication state of the terminal equipment until the first communication state is an idle state, determining a second signal quality parameter, and if the second information quality parameter is smaller than the parameter threshold, switching the network type into a 4G network through the communication module.
  4. 4. A method according to claim 3, wherein switching the network type to a 4G network by the communication module comprises: the network type is switched to the 4G network by disabling the 5G performance reduction capability of the communication module and triggering the communication module to search the network, or And setting the communication module to only use a 4G standard or a 4G frequency band, and triggering the communication module to search the network, so as to realize switching the network type into a 4G network.
  5. 5. The method of claim 4, wherein switching the network type to a 4G network via the communication module comprises: If the network equipment switches the network type to a 4G network, updating the state of the communication module to be a state of accessing the 4G network, and switching the network type to the 4G network through the communication module; And if the state of the communication module is the state of accessing the 5G reduced performance network, acquiring the state of the communication module again after a first time interval to be the state of accessing the 4G network, and switching the network type into the 4G network through the communication module.
  6. 6. The method of claim 1, wherein performing network handoff by a communication module according to the current network type and the current communication state comprises: If the current network type is a 4G network and the current communication state is an idle state, switching the network type into a 5G reduced performance network through the communication module; and if the current network type is a 4G network and the current communication state is a connection state, determining a second communication state of the terminal equipment until the second communication state is an idle state, and switching the network type into a 5G reduced performance network through the communication module.
  7. 7. The method of claim 6, wherein switching the network type to a 5G reduced performance network via the communication module comprises: The network type is switched to the 4G network by recovering the 5G performance reduction capability of the communication module, triggering the communication module to search the network, and controlling the communication module to search the 5G performance reduction network and then search the 4G network, or And setting the communication module to only use a 5G standard or a 5G frequency band, and triggering the communication module to search the network, so that the network type is switched to a 5G reduced performance network.
  8. 8. The method of claim 6, further comprising, after switching the network type to a 5G reduced performance network by the communication module: Determining a second measurement interval and a second measurement number; performing measurement according to the second measurement interval and the second measurement times to obtain a plurality of second signal quality parameters of the network equipment connected with the terminal equipment; Determining whether each second signal quality parameter is smaller than the sum of a parameter threshold and a preset offset; If yes, the network type is switched to a 4G network through the communication module.
  9. 9. The method according to any one of claims 1-8, further comprising, prior to performing the network handover by the communication module: if the current communication state is an idle state, determining the working state of the communication module, wherein the working state comprises an awake state or a dormant state; And if the working state of the communication module is a dormant state, sending a first instruction to the communication module so that the communication module keeps an awake state until the network switching is completed.
  10. 10. The method according to any one of claims 1-9, further comprising: And when the terminal equipment is started, a second instruction is sent to the communication module, so that the communication module switches the network type into a 5G reduced performance network or switches into a 4G network if the network type is not successfully switched into the 5G reduced performance network.
  11. 11. A network switching apparatus, comprising: a first determining module, configured to determine a current network type of a terminal device, where the current network type includes a 5G reduced performance network or a 4G network; the second determining module is further configured to determine a current communication state of the terminal device, where the current communication state includes a connection state or an idle state; and the switching module is used for executing network switching through the communication module according to the current network type and the current communication state every preset time length.
  12. 12. An electronic device comprising a processor and a memory communicatively coupled to the processor; The memory stores computer-executable instructions; The processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-10.
  13. 13. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-10.

Description

Network switching method, electronic device, storage medium, and program product Technical Field The present application relates to the field of communications technologies, and in particular, to a network switching method, an electronic device, a storage medium, and a program product. Background Through the advantages of high speed and low delay of the 5G communication technology, the communication experience of a user can be greatly improved. With the gradual expansion of application scenes of user communication, the 5G performance-reducing Redcap network in the 5G communication technology can meet the application scenes of low cost, small size and low energy consumption. However, the 5G reduced performance network itself is limited, and in some areas or in some environments, the communication quality of the 5G reduced performance network is inferior to that of the 4G network, so as to ensure that the user can normally communicate, and the 5G reduced performance network is dropped back to the 4G network according to the usage scenario. In the related art, network switching is performed according to the network type supported by the network device to which the terminal device is connected. However, communication quality is degraded in performing network handover by this method. Disclosure of Invention The embodiment of the application provides a network switching method, electronic equipment, a storage medium and a program product, which are used for avoiding influencing communication quality in a network switching process. In a first aspect, an embodiment of the present application provides a network switching method, which includes determining a current network type of a terminal device, where the current network type includes a 5G reduced performance network or a 4G network, determining a current communication state of the terminal device, where the current communication state includes a connection state or an idle state, and executing network switching through a communication module according to the current network type and the current communication state every preset time period. In a possible implementation manner, according to the current network type and the current communication state, performing network switching through a communication module, wherein the network switching includes determining a first measurement interval and a first measurement times if the current network type is a 5G reduced performance network, performing measurement according to the first measurement interval and the first measurement times to obtain a plurality of first signal quality parameters of network equipment connected with the terminal equipment, determining whether each first signal quality parameter is smaller than a parameter threshold, and if so, performing network switching through the communication module according to the current communication state. In a possible implementation manner, according to the current communication state, the network switching is performed through the communication module, including switching the network type into a 4G network through the communication module if the current communication state is an idle state, determining a first communication state of the terminal device until the first communication state is an idle state, determining a second signal quality parameter, and switching the network type into the 4G network through the communication module if the second information quality parameter is smaller than the parameter threshold. In one possible implementation manner, the communication module is used for switching the network type to the 4G network, which comprises the steps of disabling the 5G performance reduction capability of the communication module and triggering the communication module to search for the network, so that the network type is switched to the 4G network, or setting the communication module to only use a 4G standard or a 4G frequency band and triggering the communication module to search for the network, so that the network type is switched to the 4G network. In one possible implementation manner, the method further comprises the step of switching the network type to a 4G network through the communication module, wherein the step of updating the state of the communication module to be an access 4G network state and switching the network type to the 4G network through the communication module if the network device switches the network type to the 4G network, and the step of switching the network type to the 4G network through the communication module if the state of the communication module is an access 5G reduced performance network state, and the step of acquiring the state of the communication module again after a first time interval is an access 4G network state. In one possible implementation manner, according to the current network type and the current communication state, network switching is performed through a communication module, wherein the net