Network access method, device, terminal equipment and storage medium
By receiving the redirection message in the terminal device and trying to redirect to the second network, and initiating a recovery connection request to reconnect to the first network when it fails, the problem of network dropout is solved, the duration of network dropout is reduced, and the user experience is improved.
Patent Information
- Application Number
- CN202110856799.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-07-28
AI Technical Summary
When the terminal device receives the redirection message, it cannot be successfully redirected to the designated cell due to network configuration problems, causing the device to be disconnected from the base station, causing a 'network drop' situation, and the network disconnection time is too long, affecting the user experience.
A network access method is provided. After receiving the redirection message, it attempts to redirect to the second network. If it fails, a recovery connection request is initiated to reconnect to the first network, thereby reducing the duration of network disconnection. The method includes accessing a first network of non-independent networking, receiving a redirection message, trying to redirect to a second network of independent networking, and if failed, initiating a connection recovery request to reconnect to the first network.
After the redirection of the terminal device fails, immediately reconnect to the first network to restore the network connection, avoid continuous attempts to redirect, significantly reduce the duration of network disconnection, and improve user experience.
Smart Images

Figure CN113613294B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a network access method, apparatus, terminal equipment and storage medium. Background Art
[0002] At present, standard communication protocols (such as 3GPP protocols) stipulate that when a terminal device receives redirection information, it will redirect the cell according to the redirection message. However, due to network configuration issues, when the terminal device receives the redirection message, it cannot redirect to the specified cell according to the redirection message. At this time, the terminal device will try to redirect multiple times. During the time period of trying to redirect, the terminal device is disconnected from the base station. At this time, the terminal device cannot access the network and "disconnects from the network". If the network disconnection time is too long, it will affect the user experience. Summary of the invention
[0003] The embodiments of the present application provide a network access method, apparatus, terminal device, and storage medium to reduce the network disconnection duration of the terminal device.
[0004] In a first aspect, an embodiment of the present application provides a network access method, the method comprising:
[0005] Accessing a first network, where the first network is a non-independent network;
[0006] receiving a redirection message sent by the first network, where the redirection message is used to indicate redirection to a second network, where the second network is an independently networked network;
[0007] attempting to redirect to the second network based on the redirect message;
[0008] If redirection to the second network fails, a connection recovery request is initiated, where the connection recovery request is used to instruct re-access to the first network.
[0009] Optionally, the manner of determining that redirection to the second network fails includes at least one of the following:
[0010] The access parameters sent by the second network are not received within a preset time period;
[0011] Receive access denial information sent by the second network.
[0012] Optionally, the access parameter includes at least one of the following: frequency band, frequency point, physical address, area tracking code, cell identifier, and cell location area code.
[0013] Optionally, before accessing the first network, the network access method further includes:
[0014] searching for the second network that can be accessed, and accessing the second network;
[0015] If the second network that can be accessed is not found, the first network that can be accessed is searched.
[0016] Optionally, the searching for the second accessible network includes:
[0017] The accessible second network is searched according to a historical frequency point or a full frequency band, wherein the historical frequency point is a frequency point for successfully accessing the second network before.
[0018] Optionally, after initiating the request to restore the connection, the network access method includes:
[0019] Detecting whether the signal coverage area of the first network is exceeded;
[0020] If yes, search for currently accessible networks;
[0021] Select one from the currently accessible networks and access it.
[0022] In a second aspect, an embodiment of the present application provides a network access device, the device comprising:
[0023] An access module, used to access a first network, where the first network is a non-independent network;
[0024] a message receiving module, configured to receive a redirection message sent by the first network, wherein the redirection message is used to indicate redirection to a second network, where the second network is an independently networked network;
[0025] a redirection module, configured to attempt to redirect to the second network based on the redirection message;
[0026] A connection recovery module is used to initiate a connection recovery request if redirection to the second network fails, wherein the connection recovery request is used to instruct re-access to the first network.
[0027] Optionally, the device further comprises:
[0028] A first search module, configured to search for the second network that can be accessed, and access the second network;
[0029] The second search module is configured to search for the first accessible network if the second accessible network is not found.
[0030] In a third aspect, an embodiment of the present application provides a terminal device, including a memory and a processor, wherein the memory stores a computer program, and the processor is used to implement the steps of the above-mentioned network access method when executing the power consumption optimization program.
[0031] Fourthly, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned network access method are implemented.
[0032] After accessing the first network, the embodiment of the present application receives a redirection message sent by the first network, and attempts to redirect to the second network according to the redirection message. If the redirection fails, a request to restore the connection is initiated, so that the terminal device re-accesses the first network. It can be seen that after the redirection of the terminal device fails, the embodiment of the present application immediately re-accesses the first network to restore the network connection, without the need to continuously attempt redirection, thereby reducing the length of time the terminal device is disconnected from the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0034] Figure 1 This is a schematic diagram of an application environment of a network access method in an embodiment of the present application;
[0035] Figure 2 This is an interactive diagram of a network access method according to an embodiment of the present application.
[0036] Figure 3 is a flowchart of a network access method in an embodiment of the present application;
[0037] Figure 4 is a flowchart of a network access method in another embodiment of the present application;
[0038] Figure 5 is a flowchart of a network access method in another embodiment of the present application;
[0039] Figure 6 is a flowchart of a network access method in another embodiment of the present application;
[0040] Figure 7 is a schematic diagram of the structure of a network access device in an embodiment of the present application;
[0041] Figure 8 It is a structural diagram of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0043] In the description of this application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "disposed" and "connected" should be understood in a broad sense; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0044] Figure 1 Schematic diagram of the architecture of a communication system according to an embodiment of the present application. Figure 1 As shown, the communication system may include a terminal device 100 and base stations 210 and 220 , and the terminal device 100 may communicate with the base station 210 or the base station 220 .
[0045] The terminal device 100 refers to a module that can realize the communication function or a device including the module. The terminal device 100 can be a mobile terminal or a smart device, etc. The mobile terminal can specifically be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The smart device can include at least one of a portable wearable device, a smart home appliance, and a smart monitoring device, such as a smart watch, a smart refrigerator, a sweeping robot car recorder, a security camera device, etc.; the module can specifically be any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, an NB-IoT module, etc.
[0046] Base stations 210 and 220 are used for scheduling transmission of paging information, scheduling transmission of broadcast information, forwarding of data or signaling, etc. Base stations include but are not limited to: devices that provide base station functions in 2G networks, such as base transceiver stations (Base Transceiver Station, BTS) and base station controllers (Base Station Controller, BSC), devices that provide base station functions in 3G networks, such as node B (Node B) and radio network controller (Radio Network Controller, RNC), devices that provide base station functions in 4G networks, such as evolved node B (Evolved Node B, eNodeB) or devices that provide base station functions in WLAN (Wireless Local Area Network, wireless local area network) such as access points (Access Point, AP), wherein base station 210 provides a first network and base station 220 provides a second network.
[0047] The network access method provided in the embodiment of the present application can be applied in the following aspects: Figure 1 in the communication system. Figure 2 It is an interactive schematic diagram of a network access method according to an embodiment of the present application. Figure 3 is a flowchart of a network access method according to an embodiment of the present application, referring to Figure 2 and Figure 3 The execution subject of the network access method may be a terminal device, and at least includes the following steps S10 to S40:
[0048] S10: Accessing a first network, where the first network is a non-independent network.
[0049] The first network refers to a wireless network, and the networking mode of the first network is non-independent networking. It should be noted that the non-independent networking here is different from the SA (Standalone) network, and does not specifically refer to (Non-Standalone). The first network can be one of the LTE (Long Term Evolution) network, NSA network, 3G network, and 2G network.
[0050] The terminal device searches for the cell corresponding to the first network (hereinafter referred to as the first cell for convenience of description), then accesses the first cell, and finally accesses the first network. Taking the first network as an NSA network as an example, the terminal searches for LTE cells based on historical frequency points and full frequency bands, and selects an LTE cell for cell access. If NR measurement is configured on the LTE cell, the terminal device registers the NSA network.
[0051] In one implementation, after the terminal device accesses the first cell, it obtains access parameters of the first cell, where the access parameters of the first cell include but are not limited to at least one of the following: frequency band, frequency point, physical address, area tracking code, cell identifier, and cell location area code.
[0052] Frequency band refers to the frequency range of electromagnetic waves. For example, the operating frequency band of GSM900 is 890~960MHz; for another example, the current domestic LTE is divided into four frequency bands: A band, D band, E band and F band, and their frequency ranges are 2010 MHz~2025 MHz, 2570 MHz~2620 MHz and 2320 MHz~2370 MHz (2300 MHz~2400 MHz), 1880 MHz~1920 MHz respectively.
[0053] Frequency point is a number given to fixed frequencies. For example, the operating frequency band of GSM900 is 890~960MHz, and the frequency interval is 200KHz. According to the frequency interval of 200KHz, 890MHz, 890.2MHz, 890.4MHz, 890.6MHz, 890.8MHz, 891MHz ... ... 915MHz are divided into 125 wireless frequency bands, and each frequency band is numbered from 1, 2, 3, 4 ... ... 125, and the obtained frequency point is the frequency point. The frequency point can be used to identify the terminal device to select the appropriate cell,
[0054] The physical address refers to the physical cell ID (PCI). The PCI can distinguish the wireless signals of the cell. Therefore, the physical layer of the terminal device can distinguish different cells through the PCI.
[0055] The Tracking Area Code (TAC) is used for location management of terminal devices. The Cell Identity (CID) is used to identify the cell of the base station. The location area code of the cell.
[0056] S20: Receive a redirection message sent by the first network, where the redirection message is used to indicate redirection to a second network, where the second network is an independently networked network.
[0057] The redirection message may include an RRC (Radio Resource Control) CONNECTION RELEASE sent by the base station. The second network refers to the SA network, that is, the redirection message is used to indicate redirection to the SA network.
[0058] S30: Attempt to redirect to a second network based on the redirect message.
[0059] The terminal device searches for an accessible second network corresponding to a cell (hereinafter referred to as the second cell for ease of description) according to the redirection message. If an accessible second cell is found, the second cell is selected for access, and then the second network is accessed. At this time, the terminal device is redirected successfully.
[0060] If the terminal device redirects successfully, it accesses the second network; otherwise, step S50 is executed. It should be understood that during the period when the terminal device attempts to redirect, and after the redirection fails and before the network connection is restored, the terminal device and the base station are disconnected. At this time, the terminal device is not connected to the network and is disconnected.
[0061] S40: If the redirection fails, a connection recovery request is initiated, where the connection recovery request is used to instruct re-access to the first network.
[0062] The terminal device initiates a request to restore the connection to the base station of the first network, such as a service request; the base station feeds back a message agreeing to restore the connection, and the terminal device re-accesses the first network according to the message.
[0063] In one implementation, the terminal device may initiate a request to restore the connection to the first cell according to the access parameters of the first cell, access the first cell after the base station feeds back a message agreeing to restore the connection, and then access the first network.
[0064] After accessing the first network, the embodiment of the present application receives a redirection message sent by the first network, and attempts to redirect to the second network according to the redirection message. If the redirection fails, a request to restore the connection is initiated, so that the terminal device re-accesses the first network. It can be seen that after the redirection of the terminal device fails, the embodiment of the present application immediately re-accesses the first network to restore the network connection, without the need to continuously attempt redirection, thereby reducing the length of time the terminal device is disconnected from the network.
[0065] In one embodiment, if the terminal device does not receive the access parameters sent by the second network within a preset time period, the terminal device redirection fails. The access parameters refer to the access parameters of the second cell.
[0066] The access parameter includes at least one of the following: frequency band, frequency point, physical address, area tracking code, cell identification, and location area code of the cell. The detailed description of the access parameter can refer to the description of the aforementioned embodiment, and will not be repeated again. It should be understood that as long as the terminal device receives any one or more of the access parameters sent by the second network, it means that the terminal device is redirected successfully. On the contrary, if the terminal device does not receive any access parameter, it means that the terminal device redirection fails.
[0067] If the terminal device receives access rejection information sent by the second network, the terminal device redirection fails. The access rejection information indicates that the second network rejects the terminal device access, and the terminal device redirection fails.
[0068] Figure 4 and Figure 5 FIG. 4 is a flow chart of a network access method according to another embodiment of the present application. Figure 5 Before accessing the first network, the method further includes steps S11 to S13.
[0069] S11: Searching for an accessible second network.
[0070] The accessible second network refers to a second network that meets preset network conditions, where the preset conditions include but are not limited to signal strength, bandwidth, and latency.
[0071] If an accessible second network is found, S12 is executed.
[0072] S12: Access the second network.
[0073] The terminal device searches for an accessible second network based on historical frequency points or full frequency bands, preferentially searches for accessible second networks, and accesses the second network after searching for accessible second networks, wherein the historical frequency points are the frequency points at which the second network was successfully accessed before.
[0074] Exemplarily, after being turned on or entering a new environment, the terminal device preferentially searches for a second cell with a signal strength greater than a preset value, and when a second cell with a signal strength greater than the preset value is found, the terminal device accesses the second cell and then accesses the second network.
[0075] If the terminal device fails to find an accessible second network based on the historical frequency point and / or full-band search, it can be regarded that there is no accessible second network in the current environment, and the terminal device executes S13.
[0076] S13: Searching for an accessible first network.
[0077] The accessible first network refers to a first network that meets a preset network condition. When the terminal device searches for the accessible first network, step S10 is executed.
[0078] In the aforementioned Figure 3 On the basis of the described embodiment, this embodiment preferentially searches for an accessible second network, and accesses the second network after searching for the accessible second network. If the accessible second network is not searched, the accessible first network is searched and accessed. By setting the network search order of the terminal device, the terminal device can preferentially access the second network. Also because this network search order is set, it can be determined that there is no accessible second network in the current environment, so that the terminal device can immediately re-access the first network after the redirection fails.
[0079] In addition, Figure 4 In the illustrated embodiment, if an accessible second network is not searched, the current network environment information is recorded, and the network environment information is used to mark that there is no second network in the current environment. The network environment information can be stored in the terminal device. The above network environment information may include a location area code (LAC) and identification information for identifying that there is no second network in the current environment. The location area code refers to the location area code of the cell corresponding to the first network. By combining the location area code and the identification information, it can be determined that there is no second network in the area corresponding to the first network accessed by the terminal device.
[0080] When the terminal device performs a redirection operation according to the redirection message and the redirection fails, it queries whether the network environment information is stored in the terminal device. If the network environment information is stored, it means that there is no second network in the current network environment. A request to restore the connection is initiated to the base station corresponding to the first network, and a message agreeing to restore the connection is received from the base station corresponding to the first network, thereby re-accessing the first network.
[0081] During the redirection process, a cell switch will occur, that is, an attempt will be made to switch from the first cell to the second cell. After the redirection fails, if the location of the terminal device changes, so that the terminal device is beyond the coverage area of the first cell, it will cause the terminal device to be beyond the signal coverage area of the first network. At this time, the terminal device cannot re-access the first network and will be disconnected from the network. In view of this, the embodiment of the present application also provides a network access method. Please refer to Figure 6 After initiating the request to restore the connection, the method further includes S51 to S53.
[0082] S51: Detect whether it exceeds the signal coverage area of the first network.
[0083] The signal coverage area of the first network may specifically refer to the signal coverage area of the first cell originally accessed by the terminal device under the first network, or may generally refer to the signal coverage area of all first cells under the first network.
[0084] If the terminal device is beyond the signal coverage area of the first network, execute S52; if the terminal device is within the signal coverage area of the first network, execute S54.
[0085] S52: Searching for currently accessible networks.
[0086] The currently accessible network may be one of an LTE network, an NSA network, a 3G network, and a 2G network.
[0087] S53: Select one of the currently accessible networks and access it.
[0088] This embodiment can reduce the situation of network disconnection caused by the terminal device exceeding the signal coverage range of the first network by re-searching for an accessible network after the terminal device exceeds the signal coverage range of the first network.
[0089] S54: Re-access the first network.
[0090] Re-access the first network according to the connection restoration request.
[0091] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic. For example, in some scenarios, S20 may be executed first and then S10, but it should not constitute any limitation on the implementation process of the embodiments of the present application.
[0092] An embodiment of the present application proposes a cell redirection device, such as Figure 7 As shown, the device comprises:
[0093] An access module 10 is used to access a first network, where the first network is a non-independent network;
[0094] A message receiving module 20, configured to receive a redirection message sent by the first network, the redirection message being used to indicate redirection to a second network, the second network being an independently networked network;
[0095] A redirection module 30, configured to attempt to redirect to a second network based on the redirection message;
[0096] The connection recovery module 40 is used to initiate a connection recovery request if the redirection to the second network fails, and the connection recovery request is used to instruct to re-access the first network.
[0097] In one embodiment, the cell redirection device further includes:
[0098] A detection unit, used to detect whether the terminal device is beyond the signal coverage area of the first cell;
[0099] A searching unit, configured to, in response to the terminal device being beyond the signal coverage area of the first cell, cause the terminal device to search for a currently accessible cell;
[0100] The second access unit is used to select a cell to access from currently accessible cells.
[0101] For the specific definition of the cell redirection device, please refer to the definition of the network access method above, which will not be repeated here. Each module in the above cell redirection device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the terminal device in the form of hardware, or can be stored in the memory of the terminal device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0102] In one embodiment, a terminal device is provided, such as Figure 8 As shown, it includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned cell redirection steps are implemented.
[0103] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned network access method are implemented.
[0104] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0105] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0106] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A network access method, characterized in that: The method comprises: Searching for an accessible second network, where the second network is an independent network SA network; If an accessible second network is found, accessing the second network; If the second network that can be accessed is not found, the current network environment information is recorded, where the network environment information is used to mark that there is no second network in the current environment, and the first network that can be accessed is searched; Accessing a first network, where the first network is a non-independent network, and the first network is one of an LTE network, an NSA network, a 3G network, and a 2G network; When receiving a redirection message sent by the base station of the first network, attempt to redirect to the second network based on the redirection message, where the redirection message is used to indicate redirection to the second network; When the terminal device performs a redirection operation and the redirection to the second network fails, the terminal device is queried whether the network environment information is stored. If the network environment information is stored, it indicates that there is no second network in the current network environment, and a connection recovery request is initiated to the base station corresponding to the first network. The connection recovery request is used to indicate re-access to the first network.
2. The network access method according to claim 1, characterized in that: The manner of determining that redirection to the second network fails includes at least one of the following: The access parameters sent by the second network are not received within a preset time period; Receive access denial information sent by the second network.
3. The network access method according to claim 2, characterized in that: The access parameter includes at least one of the following: frequency band, frequency point, physical address, area tracking code, cell identification, and location area code of the cell.
4. The network access method according to claim 1, characterized in that: The searching for the second accessible network includes: The accessible second network is searched according to a historical frequency point or a full frequency band, wherein the historical frequency point is a frequency point for successfully accessing the second network before.
5. The network access method according to any one of claims 1 to 4, characterized in that: After initiating the request to restore the connection, the network access method includes: Detecting whether the signal coverage area of the first network is exceeded; If yes, search for currently accessible networks; Select one from the currently accessible networks and access it.
6. A network access device, characterized in that: The device comprises: A first search module is used to search for an accessible second network and access the second network, where the second network is an independent network SA network; A second search module, configured to record current network environment information if the second accessible network is not found, wherein the network environment information is used to mark that there is no second network in the current environment, and search for the first accessible network; An access module, used to access a first network, where the first network is a non-independent network, and the first network is one of an LTE network, an NSA network, a 3G network, and a 2G network; A message receiving module, used to receive a redirection message sent by the base station of the first network; a redirection module, configured to, when receiving a redirection message sent by a base station of the first network, attempt to redirect to the second network based on the redirection message, wherein the redirection message is used to indicate redirection to the second network; The connection recovery module is used to query whether the network environment information is stored in the terminal device when the terminal device performs a redirection operation and the redirection to the second network fails. If the network environment information is stored, it indicates that there is no second network in the current network environment, and initiate a connection recovery request to the base station corresponding to the first network. The connection recovery request is used to indicate re-access to the first network.
7. A terminal device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is used to execute the steps of the network access method according to any one of claims 1 to 5.
8. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the network access method according to any one of claims 1 to 5 are implemented.
