Network connection method and device, terminal equipment and computer program product

By acquiring and updating the random access parameters of the terminal device, and based on the network signal quality conditions of the target cell, the problem of inaccurate random access parameters was solved, thus improving the access success rate.

CN120980717APending Publication Date: 2025-11-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511404476.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-28
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

In cellular mobile communication, the random access parameters of terminal devices are configured by the network side, which leads to inaccurate parameters and a low success rate of random access.

Method used

The terminal device acquires the network signal parameters of the target cell and updates the random access parameters according to preset conditions, including the initial transmit power, initial ramp step size, and initial retry count, to match the current network signal quality.

Benefits of technology

This improved the accuracy of random access parameters and increased the success rate of terminal devices randomly accessing cells.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120980717A_ABST
    Figure CN120980717A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a network connection method and device, terminal equipment and a computer program product. Relates to the technical field of communication. The method is applied to terminal equipment and comprises the following steps: acquiring a random access parameter configured by a target cell; according to a preset parameter condition satisfied by a network signal parameter of the target cell, the random access parameter is updated, the network signal parameter is used for indicating the communication quality of the target cell, and the preset parameter condition comprises a condition whether the network signal parameter of the target cell satisfies the target communication quality; and carrying out random access by adopting the updated random access parameter. According to the scheme, the random access parameter adopted by the terminal equipment for random access can better conform to the condition of the network signal parameter of the current target cell, the accuracy of the random access parameter adopted by the terminal equipment for random access is improved, and the success rate of random access of the terminal equipment to the cell is increased.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of communication, and in particular, relate to a network connection method and apparatus, a terminal device, and a computer program product. BACKGROUND

[0002] With the development of science and technology, various terminal devices appear in people's daily life, and people can use terminal devices for entertainment, learning, etc.

[0003] At present, in cellular mobile communication, a terminal device usually needs to establish a communication connection with a base station to realize data transmission between the terminal device and a network side through the communication connection. The terminal device usually establishes a communication connection with a cell of a base station based on random access. In random access, the random access parameters used by the terminal device are mostly configured by the network side, and there are problems such as inaccurate parameter configuration and low success rate of random access. SUMMARY

[0004] To solve the problems in the related art and improve the accuracy of random access parameters used by a terminal device for random access and increase the success rate of random access of the terminal device to a cell, embodiments of the present application provide a network connection method and apparatus, a terminal device, and a computer program product. The technical solution is as follows.

[0005] In one aspect, the embodiments of the present application provide a network connection method applied to a terminal device, and the method comprises:

[0006] obtaining random access parameters configured by a target cell, wherein the random access parameters comprise one or more of initial transmission power, initial ramping step, and initial retry number of random access;

[0007] updating the random access parameters according to a preset parameter condition met by a network signal parameter of the target cell, wherein the network signal parameter is used to indicate the communication quality of the target cell, and the preset parameter condition comprises whether the network signal parameter of the target cell meets a target communication quality condition;

[0008] performing random access by using the updated random access parameters.

[0009] In another aspect, the embodiments of the present application provide a network connection apparatus applied to a terminal device, and the apparatus comprises:

[0010] a first obtaining module configured to obtain random access parameters configured by a target cell, wherein the random access parameters comprise one or more of initial transmission power, initial ramping step, and initial retry number of random access;

[0011] The first update module is used to update the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell. The network signal parameters are used to indicate the communication quality of the target cell, and the preset parameter conditions include whether the network signal parameters of the target cell meet the conditions for target communication quality.

[0012] The first access module is used to perform random access using the updated random access parameters.

[0013] In another aspect, this application provides a terminal device including a processor and a memory, the memory storing a computer program executable on the processor, wherein the processor executes the computer program to implement the network connection method as described in one aspect above.

[0014] In another aspect, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the network connection method as described in one aspect above.

[0015] On the other hand, embodiments of this application provide a computer program product, including a computer program that, when processed and executed, implements the network connection method as described in one aspect above.

[0016] On the other hand, embodiments of this application provide an application publishing platform for publishing computer program products, wherein when the computer program products are run on a computer, the computer executes to implement the network connection method as described in one aspect above.

[0017] The beneficial effects of the technical solutions provided in this application include at least the following:

[0018] By acquiring the random access parameters configured for the target cell, which include one or more of the initial transmit power, initial ramp step size, and initial retries, the random access parameters are updated based on preset parameter conditions satisfied by the network signal parameters of the target cell. These network signal parameters indicate the communication quality of the target cell, and the preset parameter conditions include whether the network signal parameters of the target cell meet the target communication quality requirements. The updated random access parameters are then used for random access. After acquiring the random access parameters configured for the target cell, the terminal device in this solution can update the random access parameters in a timely manner based on the preset parameter conditions satisfied by the network signal parameters, and use the updated random access parameters for random access. This optimizes the random access parameters, making them more consistent with the current network signal parameters of the target cell, improving the accuracy of the random access parameters used by the terminal device, and increasing the success rate of random access to the cell. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a schematic diagram of a random access procedure according to an exemplary embodiment of this application;

[0021] Figure 2 This is a schematic diagram of a scenario architecture for connecting a terminal device to a base station, according to an exemplary embodiment of this application.

[0022] Figure 3 A flowchart illustrating a network connection method provided in an exemplary embodiment of this application;

[0023] Figure 4 A flowchart illustrating a network connection method provided in an exemplary embodiment of this application;

[0024] Figure 5 This is a schematic diagram of a process for updating the initial number of retries according to an exemplary embodiment of this application;

[0025] Figure 6 This is a schematic diagram of a process for updating an initial adjustment value of an initial transmit power setting according to an exemplary embodiment of this application;

[0026] Figure 7This is a schematic diagram of a process for updating the initial adjustment value of the initial climbing step size setting according to an exemplary embodiment of this application;

[0027] Figure 8 This is a schematic diagram of a process for updating an initial adjustment value for an initial retry count, as described in an exemplary embodiment of this application.

[0028] Figure 9 This is a flowchart illustrating a method for updating initial transmit power according to an exemplary embodiment of this application;

[0029] Figure 10 This is a flowchart illustrating a method for updating an initial climbing step size according to an exemplary embodiment of this application;

[0030] Figure 11 Here is a flowchart illustrating a method for updating the initial number of retries according to an exemplary embodiment of this application;

[0031] Figure 12 A structural block diagram of a network connection device provided in an exemplary embodiment of this application;

[0032] Figure 13 A schematic diagram illustrating another example of the network connection device provided in the embodiments of this application;

[0033] Figure 14 This is a schematic diagram of the structure of a terminal device provided for an exemplary embodiment of this application. Detailed Implementation

[0034] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0035] In this article, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0036] It should be noted that the terms "first, second, third" used in the embodiments of this application are used to distinguish similar or different objects and do not represent a specific order of objects. It can be understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0037] The solution provided in this application can be used in real-world scenarios where people use terminal devices to randomly access communities in their daily lives. To facilitate understanding, some terms and application scenarios involved in the embodiments of this application will be briefly introduced below.

[0038] Random access: In related technologies, random access refers to the process in cellular mobile communication from the moment the terminal sends a random access preamble to attempt to connect to the base station until a basic signaling connection is established between the terminal and the base station after the terminal has synchronized with the base station / cell.

[0039] With the development of science and technology, various terminal devices have appeared in people's daily lives, allowing them to use them for entertainment, learning, and other purposes. For a terminal device to connect to the internet, it typically needs to establish a communication connection with a corresponding network device. In cellular mobile communication, the base station acts as a network device, and the terminal device needs to establish a communication connection with the base station / cell.

[0040] The process of establishing a communication connection between a terminal device and a base station / cell can be called random access. Before the random access process begins, the base station sends the configuration information for the random access process to the terminal device. The terminal device then performs the random access process based on the received configuration information. Random access processes are generally divided into contention-based random access processes and non-contention-based random access processes. The following example uses a contention-based random access process. Please refer to [link / reference]. Figure 1 This illustration shows a schematic diagram of a random access procedure according to an exemplary embodiment of this application. Figure 1 As shown, the random access process may include the following steps:

[0041] In step 110, the terminal device randomly selects a preamble sequence from the preamble sequence resource pool and sends it to the base station.

[0042] The preamble sequence is also called the preamble code. The message containing the preamble code sent by the terminal device is also called Message 1 (Msg1). The base station performs correlation detection on the received signal to identify the preamble sequence sent by the user.

[0043] In step 120, the base station sends a Random Access Response (RAR) and information such as the time and frequency resources allocated for the terminal device's next uplink transmission to the terminal device.

[0044] This RAR, also known as Message 2 (Msg2), contains a random access preamble sequence identifier, a timing advance instruction determined based on the delay estimate between the terminal device and the base station, and a Temporary Cell-Radio Network Temporary Identifier (TC-RNTI).

[0045] In step 130, the terminal device sends message 3 to the base station based on the information in the RAR.

[0046] Message 3 (Msg3) contains information such as the terminal device identifier and Radio Resource Control (RRC) link request. The terminal device identifier can be a unique identifier for the terminal device.

[0047] In step 140, the base station sends a conflict resolution identifier to the terminal device.

[0048] The conflict resolution identifier sent by the base station is also called Message 4 (Msg4). Msg4 contains the identifier of the terminal device that won the conflict resolution. After detecting its own identifier, the terminal device upgrades its TC-RNTI to a Cell-Radio Network Temporary Identifier (C-RNTI) and sends an Acknowledgement (ACK) signal to the base station, completing the random access process and waiting for the base station's scheduling.

[0049] The non-contention-based random access procedure consists of only two steps: step 110 is sending the preamble sequence; and step 120 is sending the random access response.

[0050] Please refer to Figure 2 This illustration shows a schematic diagram of a scenario architecture involving the connection between a terminal device and a base station, according to an exemplary embodiment of this application. Figure 2 As shown, it includes terminal equipment 210, several base stations 220 and network management equipment 230.

[0051] Terminal device 210 is a terminal device with cellular mobile communication capabilities. Terminal device 210 can communicate with one or more core networks via a Radio Access Network (RAN). Terminal device 210 can be a mobile terminal device, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal device, for example, a portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile device. Examples include a station (STA), subscriber unit, subscriber station, mobile station, mobile station, remote station, access point, remote terminal, access terminal, user terminal, user agent, user device, or user equipment (UE). Alternatively, terminal device 210 can also be equipment of an unmanned aerial vehicle (UAV).

[0052] Base station 220 can be a network-side device in a wireless communication system. This wireless communication system can be a fourth-generation mobile communication (4G) system, also known as Long Term Evolution (LTE); or it can be a 5G system, also known as a New Radio (NR) system; or it can be the next generation after 5G.

[0053] The base station 220 can be an evolved NB (eNB) used in a 4G system. Alternatively, the base station 220 can also be a gNB (gNB) using a centralized-distributed architecture in a 5G system. When the base station 220 adopts a centralized-distributed architecture, it typically includes a central unit (CU) and at least two distributed units (DUs). The central unit is equipped with a protocol stack of the Packet Data Convergence Protocol (PDCP) layer, the Radio Link Control (RLC) layer, and the Media Access Control (MAC) layer; the distributed units are equipped with a physical (PHY) layer protocol stack. The specific implementation of the base station 220 is not limited in this embodiment.

[0054] Optionally, several base stations 220 are also connected to network management device 230. The network management device 230 can be a core network device in a wireless communication system, such as a Mobility Management Entity (MME) in an EPC. Alternatively, it can be other core network devices, such as a Serving Gateway (SGW), a Public Data Network Gateway (PGW), a Policy and Charging Rules Function (PCRF), or a Home Subscriber Server (HSS). The implementation of the network management device 230 is not limited in this embodiment.

[0055] Optional, in Figure 2 In the scenario architecture shown, terminal device 210 can be accessed via the above... Figure 1 The random access procedure shown establishes a communication connection with the base station. Since the random access parameters used by the terminal device during random access are mostly configured by the network side—for example, the initial transmit power of the terminal device when initiating random access to the base station / cell—if the initial transmit power configured by the network side is too low, the terminal device is prone to connection failure, and the number of subsequent retries will increase accordingly, leading to a higher failure rate for random access. In other words, relying solely on the random access parameters configured by the network side is often inappropriate or inaccurate, resulting in a low success rate for random access by the terminal device.

[0056] To address the issues in related technologies and improve the accuracy of random access parameters used by terminal devices for random access, this application provides a network connection method that can update the configured random access parameters in a timely manner based on the network signal parameters of the cell, making the used random access parameters more consistent with the network signal parameters of the current target cell, thereby improving the success rate of random access to the cell by the terminal device.

[0057] Please refer to Figure 3 This illustration shows a flowchart of a network connection method provided in an exemplary embodiment of this application, which can be applied to a terminal device. Figure 3 As shown, the network connection method may include the following steps:

[0058] Step 301: Obtain the random access parameters configured for the target cell. The random access parameters include one or more of the following: initial transmit power, initial ramp step size, and initial retry count.

[0059] Optionally, in LTE / 5G, the terminal device is usually referred to as UE-User Equipment. Before initiating random access to a target cell, the UE usually receives a system message broadcast by the target cell. By decoding the system message, the UE obtains the configuration information of the target cell, which may carry the random access parameters configured by the target cell.

[0060] The initial transmit power is the transmit power used by the terminal device when it first initiates random access to the target cell. In the above... Figure 1 The initial ramp step size can refer to the transmit power used by the terminal device when it first sends Msg1 (i.e., when sending the preamble). It can also be called the power ramping step or power boost step, and it directly determines the magnitude by which the terminal device (UE) increases its transmit power for the next attempt if the first access attempt fails. In other words, the initial ramp step size defines the linear increase (in dB) in transmit power for each retransmission of the RACH preamble (Msg1) compared to the previous transmission. The initial retries refer to the maximum number of retransmissions allowed for the preamble, and can be called preambleTransMax.

[0061] Step 302: Update the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell. The network signal parameters are used to indicate the communication quality of the target cell. The preset parameter conditions include whether the network signal parameters of the target cell meet the conditions for target communication quality.

[0062] Optionally, in this application, after obtaining the random access parameters configured by the target cell, the terminal device can also continue to obtain the network signal parameters of the target cell, detect the preset parameter conditions currently met by the network signal parameters of the target cell, and update the obtained random access parameters.

[0063] Among them, the network signal parameters of the target cell can reflect the communication quality of the target cell. For example, network signal parameters may include, but are not limited to: the target cell's Reference Signal Received Power (RSRP), the target cell's Reference Signal Received Quality (RSRQ), the target cell's Signal to Interference plus Noise Ratio (SINR), the Uplink Block Error Rate (UL Bler), the Downlink Block Error Rate (DL Bler), and the target cell's Path Loss (PL).

[0064] The terminal device can acquire the above-mentioned network signal parameters, detect the network signal parameters, check the preset parameter conditions that the network signal parameters of the target cell meet, and thus update the new random access parameters to obtain the updated random access parameters.

[0065] Optionally, the preset parameter conditions include whether the network signal parameters of the target cell meet the conditions for the target communication quality. The target communication quality can be indicated by a corresponding target signal threshold. For example, by detecting the relationship between the network signal parameters of the target cell and the target signal threshold, it can be determined whether the network signal parameters of the target cell meet the conditions for the target communication quality, thus obtaining the preset parameter conditions that the network signal parameters of the target cell satisfy.

[0066] Optionally, the target signal threshold indicating the target communication quality can be preset by the developers or calculated in real time by the terminal device based on the network signal parameters of the target cell currently collected.

[0067] Step 303: Perform random access using the updated random access parameters.

[0068] Optionally, after obtaining the updated random access parameters, the terminal device can use the updated random access parameters for random access. Taking the initial transmit power as an example, through the process of this scheme, after obtaining the initial transmit power configured for the target cell, the terminal device can update the initial transmit power according to the preset parameter conditions satisfied by the network signal parameters of the target cell. In subsequent random access, during the first random access attempt to the target cell, the terminal device can use the updated initial transmit power to send Msg1.

[0069] Optionally, the same applies to other random access parameters, which will not be elaborated here.

[0070] In summary, by acquiring the random access parameters configured for the target cell, which include one or more of the initial transmit power, initial ramp step size, and initial retries, and updating the random access parameters based on preset parameter conditions satisfied by the network signal parameters of the target cell (the network signal parameters indicate the communication quality of the target cell, and the preset parameter conditions include whether the network signal parameters of the target cell meet the target communication quality conditions), the terminal device in this scheme can promptly update the random access parameters after acquiring the random access parameters configured for the target cell, and then use the updated random access parameters for random access. This optimizes the random access parameters, making the random access parameters used by the terminal device more consistent with the current network signal parameters of the target cell, improving the accuracy of the random access parameters used by the terminal device, and increasing the success rate of random access to the cell.

[0071] Below, taking the example of a terminal device containing initial adjustment values, when updating random access parameters, the initial adjustment values ​​are updated first, and then the updated random access parameters are obtained based on the random access parameters configured in the target cell and the updated initial adjustment values. This allows the system to adapt to the parameter conditions satisfied by each type of network signal parameter and improve the accuracy of optimizing random access parameters.

[0072] Please refer to Figure 4 This illustration shows a flowchart of a network connection method provided in an exemplary embodiment of this application, which can be applied to a terminal device. Figure 4 As shown, the network connection method may include the following steps:

[0073] Step 401: Obtain the random access parameters configured for the target cell. The random access parameters include one or more of the following: initial transmit power, initial ramp step size, and initial retry count.

[0074] Optionally, the method by which the terminal device obtains the random access parameters configured for the target cell can refer to the description in step 301 above, and will not be repeated here.

[0075] Step 402: Determine the preset parameter conditions that the network signal parameters of the target cell must meet based on the relationship between the network signal parameters of the target cell and the target signal threshold.

[0076] Optionally, after obtaining the random access parameters configured for the target cell, the terminal device can obtain the network signal parameters of the target cell and determine the preset parameter conditions that the network signal parameters of the target cell must satisfy based on the relationship between the network signal parameters of the target cell and the target signal threshold. The type of network signal parameters of the target cell can be referred to the description in step 302 above, and will not be repeated here.

[0077] For different types of network signal parameters, corresponding target signal thresholds must be used for detection. For example, if the network signal parameter is RSRP, the target signal threshold used is the RSRP threshold; if the network signal parameter is RSRQ, the target signal threshold used is the RSRQ threshold, and so on. That is, the same type of target signal threshold must be used to detect network signal parameters.

[0078] For example, taking the RSRP (Real-Side Parameter Ratio) of the network signal parameter obtained by the terminal device as an example, and the target signal threshold as the target RSRP, after obtaining the random access parameters configured for the target cell, the terminal device can continue to obtain the current RSRP of the target cell and detect its relationship with the target RSRP, thereby determining the preset parameter conditions that the network signal parameters of the target cell meet. For instance, if the current RSRP is greater than the target RSRP, it means that the preset parameter conditions met by the network signal parameters of the target cell satisfy the conditions for the target communication quality; if the current RSRP is not greater than the target RSRP, it means that the preset parameter conditions met by the network signal parameters of the target cell do not satisfy the conditions for the target communication quality.

[0079] Optionally, the target signal threshold indicating the target communication quality can be preset by the developers or calculated in real time by the terminal device based on the network signal parameters of the target cell currently collected.

[0080] In one possible implementation, when the random access parameters include initial transmit power and / or initial ramp step size, the target signal threshold is determined based on N consecutive sets of network signal parameters of the target cell collected by the terminal device within a preset time period, where N is an integer greater than or equal to 2. That is, for updates to the random access parameters, which are initial transmit power and / or initial ramp step size, the target signal threshold used in the judgment is determined by the terminal device based on N consecutive sets of network signal parameters of the target cell currently collected.

[0081] For example, the terminal device can determine the target signal threshold in the following way: The terminal device can collect network signal parameters of the target cell according to a preset period. For N sets of network signal parameters collected in N consecutive periods, the terminal device can use the first set of network signal parameters in these N sets as the target signal threshold; or, the terminal device can use the average value of these N sets of network signal parameters as the target signal threshold; alternatively, the terminal device can also use a filter to filter the N sets of network signal parameters to obtain filtered network signal parameters, and use the filtered network signal parameters as the target signal threshold. Optionally, the preset period for the terminal device to collect data can be preset by the developers. For example, it can be 1 second, 1.5 seconds, 500 milliseconds, etc.

[0082] In one possible implementation, the terminal device can determine at least two target signal thresholds based on N sets of network signal parameters. For example, in a method where the terminal device uses a filter to filter N consecutive sets of network signal parameters, both the filtered network signal parameters and the first set of network signal parameters from the N sets are used as target signal thresholds. During the judgment, the Nth set of network signal parameters is compared with these two target signal thresholds to determine the preset parameter conditions that the network signal parameters of the target cell must satisfy.

[0083] For example, the target signal threshold includes network signal parameters obtained after filtering N consecutive sets of network signals and the first set of network signal parameters in the N sets of network signal parameters. In this step, the process by which the terminal device determines the preset parameter conditions that the network signal parameters of the target cell satisfy based on the relationship between the network signal parameters of the target cell and the target signal threshold can be as follows: Based on the relationship between the last set of network signal parameters and the first set of network signal parameters, and the relationship between the last set of network signal parameters and the filtered network signal parameters, the preset parameter conditions that the network signal parameters of the target cell satisfy are determined.

[0084] Among them, the last group of network signal parameters in the N groups can be equivalent to the current network signal parameters of the target cell. Each value contained in the above target signal threshold is compared with the last group of network signal parameters to obtain the preset parameter conditions that the network signal parameters of the target cell satisfy.

[0085] Taking network signal parameters RSRP and SINR as an example, with a preset period of 1 second, the terminal device acquires the RSRP and SINR of the target cell once per second. For N consecutive sets of acquired network signal parameters, each set contains one RSRP and one SINR. A filter can be used to process these parameters, outputting a new set of network signal parameters (i.e., the filtered RSRP and SINR). The RSRP and SINR of the first set in the N consecutive sets, as well as the filtered RSRP and SINR, are used as the target signal threshold. During the judgment process, the RSRP and SINR of the last set are compared with the target signal threshold. Specifically, the relationship between the RSRP and the first set, the SINR and the first set, the RSRP and the filtered RSRP, and the SINR and the filtered SINR of the last set are detected to determine the preset parameter conditions that the network signal parameters of the target cell must meet.

[0086] If the RSRP of the last group is less than the RSRP of the first group, and the RSRP of the last group is less than the filtered RSRP, then the network signal parameters of the target cell meet the conditions for target communication quality; otherwise, they do not meet the conditions for target communication quality. Similarly, for the other network signal parameter, SINR, if the SINR of the last group is less than the SINR of the first group, and the SINR of the last group is less than the filtered SINR, then the network signal parameters of the target cell also meet the conditions for target communication quality; otherwise, they do not meet the conditions for target communication quality.

[0087] In one possible implementation, when the target signal threshold includes filtered network signal parameters, the terminal device, while detecting the relationship between the last set of network signal parameters and the filtered network signal parameters, can also detect the difference between the last set of network signal parameters and the filtered network signal parameters. For example, for RSRP, the filtered RSRP can be subtracted from the last set of RSRP, and the difference can be checked to see if it is greater than threshold one. If it is greater than threshold one, it means that the filtered RSRP is not only greater than the last set of RSRP, but also exceeds the preset threshold one. In this case, if the last set of RSRP is less than the first set of RSRP, and the value obtained by subtracting the last set of RSRP from the filtered RSRP is greater than threshold one, it can be said that the network signal parameters of the target cell meet the conditions for target communication quality; otherwise, they do not meet the conditions for target communication quality. Similar approaches apply to parameters such as SINR and ULBler, but the thresholds used can be different, which will not be elaborated here.

[0088] For example, regarding UL Bler, if the target signal threshold includes both the filtered UL Bler and the first group of UL Bler, the terminal device, while detecting the relationship between the last group of UL Bler and the filtered UL Bler, can also detect the difference between them. For instance, for UL Bler, the filtered RSRP can be subtracted from the last group of UL Bler, and the difference can be checked to see if it exceeds threshold two. If it does, it means the last group of UL Bler is not only greater than the filtered UL Bler but also exceeds the preset threshold two. In this case, if the last group of UL Bler is greater than the first group of UL Bler, and the value obtained by subtracting the filtered RSRP from the last group of UL Bler is greater than threshold two, it indicates that the network signal parameters of the target cell meet the target communication quality conditions; otherwise, they do not meet the target communication quality conditions.

[0089] In one possible implementation, when the random access parameters include the initial number of retries, the target signal threshold used during detection is preset. For example, during step 402, after the terminal device acquires the network signal parameters of the target cell, it compares them with the preset target signal threshold to determine the relationship between the currently acquired network signal parameters of the target cell and the preset target signal threshold, thereby determining the preset parameter conditions that the network signal parameters of the target cell satisfy. That is, the currently acquired network signal parameters of the target cell are either greater than the target signal threshold or less than or equal to the target signal threshold. Correspondingly, if the network signal parameters of the target cell are greater than the target signal threshold, the preset parameter conditions satisfied by the network signal parameters of the target cell meet the conditions for target communication quality; otherwise, the conditions for target communication quality are not met.

[0090] For example, taking RSRP as a network signal parameter, the terminal device can pre-set a target signal threshold—the RSRP threshold value. If the initial retrieval count needs to be updated, the terminal device will first compare the currently acquired RSRP value with the RSRP threshold value to determine the relationship between the two. If the current RSRP value is greater than the RSRP threshold value, then the preset parameter conditions met by the network signal parameters of the target cell satisfy the target communication quality conditions; if the current RSRP value is not greater than the RSRP threshold value, then the preset parameter conditions met by the network signal parameters of the target cell do not satisfy the target communication quality conditions. The same applies to other types of network signal parameters; preset threshold values ​​are used for comparison to determine the corresponding preset parameter conditions.

[0091] In one possible implementation, before performing the step of determining the preset parameter conditions satisfied by the network signal parameters of the target cell based on the relationship between the network signal parameters and the preset target signal threshold, the terminal device may also acquire historical connection data. The historical connection data includes at least the total number of random access attempts to the target cell in the past and the access success rate. The access success rate is used to indicate the success rate of the terminal device in accessing the target cell under the condition of random access with the total number of retries. If the access success rate is less than the preset success rate threshold and the initial number of retries is greater than the total number of retries, then the preset parameter conditions satisfied by the network signal parameters of the target cell are determined based on the relationship between the network signal parameters and the preset target signal threshold.

[0092] In other words, when the random access parameter is the initial number of retries, the terminal device can obtain historical connection data in addition to the current network signal parameters. By detecting the historical connection data, it can determine whether it is necessary to execute the preset parameter conditions that the network signal parameters of the target cell must meet based on the relationship between the network signal parameters and the preset target signal threshold.

[0093] Historical connection data includes the total number of random access attempts initiated by the terminal device to the target cell before the current random access attempt. The access success rate is the proportion of successful access attempts to the target cell out of the total number of retries. For example, if the total number of retries is Z1 and the number of successful access attempts to the target cell is Z2, then the access success rate = Z2 / Z1. The terminal device detects the relationship between the access success rate and a preset success rate threshold, as well as the relationship between the initial retries configured for the target cell and the total number of retries. If the access success rate is less than the preset success rate threshold and the initial retries are greater than the total number of retries, the device executes a step to determine the preset parameter conditions that the network signal parameters of the target cell must meet based on the relationship between the network signal parameters and the preset target signal threshold. If the access success rate is not less than the preset success rate threshold, or the initial retries are not greater than the total number of retries, the process of updating the initial retries ends, i.e., the current process ends directly. If the random access parameters are the initial retries, no further update process is required.

[0094] In one possible implementation, before executing the step of determining the preset parameter conditions satisfied by the network signal parameters of the target cell based on the relationship between the network signal parameters and the preset target signal threshold, the terminal device can also obtain the current moving speed of the terminal device. If the access success rate is less than the preset success rate threshold or the moving speed is greater than the preset speed threshold, and the initial retries are greater than the total retries, then the preset parameter conditions satisfied by the network signal parameters of the target cell are determined based on the relationship between the network signal parameters and the preset target signal threshold. That is, in addition to detecting historical connection data, the current moving speed of the terminal device can also be considered. During the detection process, it can be detected whether the moving speed of the terminal device exceeds the preset speed threshold. If the access success rate is less than the preset success rate threshold or the moving speed is greater than the preset speed threshold, and the initial retries are greater than the total retries, then the step of determining the preset parameter conditions satisfied by the network signal parameters of the target cell based on the relationship between the network signal parameters and the preset target signal threshold is executed. If the access success rate is not less than the preset success rate threshold or the moving speed is not greater than the preset speed threshold, or the initial retries are not greater than the total retries, then the process of updating the initial retries ends, that is, the current process ends directly.

[0095] Please refer to Figure 5 This illustration shows a schematic diagram of a process for updating the initial number of retries according to an exemplary embodiment of this application. Figure 5 As shown, when the random access parameters include the initial retry count, if the initial retry count needs to be updated, the terminal device can perform the following steps in sequence:

[0096] Step 501: Obtain historical connection data between the terminal device and the target cell.

[0097] Optionally, the terminal device can record the process of initiating random access to each cell, store the total number of retries for random access to the target cell and the access success rate. When the random access parameters include the initial number of retries, and it is necessary to update the initial number of retries, the terminal device can obtain the historical connection data of the target cell from its own recorded data.

[0098] Step 502: Obtain the current moving speed of the terminal device.

[0099] Optionally, the terminal device may include a speed sensor to obtain its current moving speed.

[0100] Step 503: Obtain the initial number of retries configured for the target cell.

[0101] Optionally, the terminal device can obtain the reason for randomly accessing the target cell and the duration of the relevant timer, thereby calculating the initial number of retries configured by the target cell.

[0102] The main reasons for RACH triggering by terminal devices include the following types: 1. Calling: When the UE initiates a call, a connection needs to be established via RACH. 2. Paging response: The UE responds to the network's paging request to the terminal (e.g., in a called scenario). 3. Location update: The terminal device updates its location information due to movement or periodic registration. 4. Emergency call: The terminal device needs to quickly establish a connection via RACH when it requires an emergency service request. 5. RRC state transition: This includes the initial access of the terminal device from the RRC_IDLE state to the RRC_CONNECTED state, and scenarios such as reconnection from the RRC_INACTIVE state. 6. Data arrival processing: This includes when uplink data arrives in the RRC_CONNECTED state and there are no PUCCH resources, or when SR fails, requiring a reconnection. 7. Beam failure recovery: In 5G NR, the terminal device needs to restore the connection via RACH due to beam failure.

[0103] Before a terminal device needs to randomly access a cell due to any of the above reasons, the terminal device can obtain the reason for the random access and, in conjunction with the duration of the relevant timer configured in the system message, calculate the initial number of retries configured by the target cell.

[0104] Step 504: If the access success rate is less than the preset success rate threshold or the mobile speed is greater than the preset speed threshold, and the initial number of retries is greater than the total number of retries, then the preset parameter conditions that the network signal parameters of the target cell must meet are determined according to the relationship between the network signal parameters and the preset target signal threshold.

[0105] Step 505: If the access success rate is not less than the preset success rate threshold, or the movement speed is not greater than the preset speed threshold, or the initial retries are not greater than the total retries, then the current process ends.

[0106] After obtaining the above parameters, historical connection data is analyzed. This involves examining the relationship between the access success rate and a preset success rate threshold, the relationship between the initial retries configured for the target cell and the total number of retries, and the relationship between the terminal device's current movement speed and a preset speed threshold. If the access success rate is less than the preset success rate threshold, or the movement speed is greater than the preset speed threshold, and the initial retries are greater than the total number of retries, then the preset parameter conditions that the target cell's network signal parameters must meet are determined based on the relationship between the network signal parameters and the preset target signal threshold. Conversely, if the access success rate is not less than the preset success rate threshold, or the movement speed is not greater than the preset speed threshold, or the initial retries are not greater than the total number of retries, then the current process ends.

[0107] Optionally, before updating the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell, the terminal device may also perform the following steps: obtain the current number of retries performed by the terminal device; if the number of retries is greater than a preset threshold, update the initial number of retries according to the preset parameter conditions satisfied by the network signal parameters of the target cell. That is, the update of the initial number of retries is performed after the number of retries has exceeded the preset threshold. For example, if the terminal device has performed 10 random access attempts, then the number of retries is 10. If the preset threshold is 8, and it is found that the number of retries is greater than the preset threshold, then the step of updating the initial number of retries according to the preset parameter conditions satisfied by the network signal parameters of the target cell can be performed.

[0108] Optionally, the process of detecting the number of retries compared to a preset threshold can also be performed as described above. Figure 5 The process shown above was executed beforehand. For example, the terminal device first checks the relationship between the number of retries and a preset threshold. If the number of retries is greater than the preset threshold, then the above process is executed. Figure 5 If the number of retries shown is no more than the preset threshold, the above process can be skipped. Figure 5 The process shown waits until the number of retries exceeds a preset threshold before executing the above steps. Figure 5 The process is shown below.

[0109] Step 403: Update the initial adjustment value according to the preset parameter conditions satisfied by the network signal parameters of the target cell.

[0110] Optionally, the initial adjustment value can be created by the terminal device. A corresponding initial adjustment value can be created for each random access parameter. Through step 402, the preset parameter conditions satisfied by the network signal parameters of the target cell can be determined. In this step, the terminal device can also update the initial adjustment value based on the preset parameter conditions satisfied by the network signal parameters of the target cell.

[0111] For example, the initial adjustment value for the initial transmit power can be represented by TXpadding. When updating the initial transmit power configured for the target cell, TXpadding can be set to 0 first, and then updated according to the preset conditions met by the network signal parameters of the target cell. Similarly, the initial adjustment value for the initial ramp step size can be represented by STEPpadding. When updating the initial ramp step size configured for the target cell, STEPpadding can be set to 0 first, and then updated according to the preset conditions met by the network signal parameters of the target cell. Finally, the initial adjustment value for the initial retry count can be represented by RETRYpadding. When updating the initial retry count configured for the target cell, RETRYpadding can be set to 0 first, and then updated according to the preset conditions met by the network signal parameters of the target cell.

[0112] In one possible implementation, the process by which the terminal device updates the initial adjustment value based on the preset parameter conditions satisfied by the network signal parameters of the target cell can be as follows: if the preset parameter conditions satisfied by the network signal parameters of the target cell meet the conditions for target communication quality, the initial adjustment value is increased by a preset magnitude; if the preset parameter conditions satisfied by the network signal parameters of the target cell do not meet the conditions for target communication quality, the initial adjustment value is decreased by a preset magnitude.

[0113] For example, the random access parameters are the initial transmit power and / or the initial ramp step size. In step 402 above, N consecutive sets of network signal parameters are obtained, and the corresponding target signal threshold is determined. Using the relationship between the last set of network signal parameters and the target small signal threshold, the preset parameter conditions that the network signal parameters of the target cell must satisfy are determined. Taking TXpadding = 0 and preset amplitude = 1 as an example, if the preset parameter conditions that the network signal parameters of the target cell satisfy are conditions that meet the target communication quality, TXpadding is incremented by 1; if the preset parameter conditions that the network signal parameters of the target cell satisfy are conditions that do not meet the target communication quality, TXpadding is decremented by 1, thus completing the update of the initial adjustment value.

[0114] In one possible implementation, since the network signal parameters of the target cell can include at least two types of parameters, in this step, when the terminal device updates the initial adjustment value according to the preset parameter conditions satisfied by the network signal parameters of the target cell, it can do so as follows: The initial adjustment value is updated sequentially according to the preset parameter conditions satisfied by each type of network signal parameter. That is, for cases where multiple types of network signal parameters are collected, the initial adjustment value can be updated separately according to the preset parameter conditions satisfied by each type of network signal parameter, thus taking into account multiple types of network signal parameters.

[0115] For example, the random access parameter is the initial transmit power. In step 402 above, the N sets of network signal parameters are obtained, including the types RSRP, SINR, UL Bler, DL Bler, and PL. The terminal device can obtain N sets of network signal parameters, from the first set to the Nth set: [RSRP1, SINR1, UL Bler1, DL Bler1, PL1], [RSRP2, SINR2, UL Bler2, DL Bler2, PL2]...[RSRPn, SINRn, UL Blern, DL Blern, PLn], where n = N. The terminal device can use a low-pass filter to filter N consecutive sets of network signal parameters to obtain the filtered network signal parameters [RSRP', SINR', UL Bler', DL Blern', PL']. As can be seen from the above, [RSRP', SINR', UL Bler', DL Blern', PL'] and [RSRP1, SINR1, UL Bler1, DL Bler1, PL1] can be used as target signal thresholds. In the process of detecting the relationship between the network signal parameters of the target cell and the target signal thresholds, the initial adjustment value is updated according to the preset parameter conditions satisfied by each type of network signal parameter, and the corresponding target signal threshold is detected for each type of network signal parameter.

[0116] Optionally, in the above method, taking TXpadding=0 and preset amplitude=1 as an example, the process of updating the initial adjustment value can be as follows: If the RSRPn of the last group is less than the RSRP1 of the first group, and the RSRPn of the last group is less than the filtered RSRP', then TXpadding is incremented by one; otherwise, TXpadding is decremented by one. If the SINRn of the last group is less than the SINR1 of the first group, and the SINRn of the last group is less than the filtered SINR', then TXpadding is incremented by one; otherwise, TXpadding is decremented by one. If the UL Blern of the last group is greater than the UL Bler1 of the first group, and the ULBlern of the last group is greater than the filtered UL Bler', then TXpadding is incremented by one; otherwise, TXpadding is decremented by one. If the DLBlern of the last group is greater than the DL Bler1 of the first group, and the DL Blern of the last group is greater than the filtered DL Bler', then TXpadding is incremented by one; otherwise, TXpadding is decremented by one. If the PLn of the last group is greater than the PL1 of the first group, and the PLn of the last group is greater than the filtered PL', then TXpadding is incremented by one; otherwise, TXpadding is decremented by one.

[0117] Please refer to Figure 6 This illustrates a flowchart of an exemplary embodiment of this application involving updating an initial adjustment value for an initial transmit power setting. Figure 6 As shown, the update process may include the following steps:

[0118] Step 601: The terminal device acquires the RSRP, SINR, UL Bler, DL Bler, and PL of the target cell every 1 second.

[0119] Optionally, in this embodiment, the terminal device acquires the network signal parameters RSRP, SINR, ULBler, DL Bler, and PL of the target cell at a preset period of 1 second and performs the subsequent update process.

[0120] Step 602: Obtain N sets of continuous network signal parameters, and use a low-pass filter to filter the N sets of network signal parameters to obtain the filtered network signal parameters.

[0121] For example, the network signal parameters from the first group to the Nth group are: [RSRP1, SINR1, UL Bler1, DLBler1, PL1], [RSRP2, SINR2, UL Bler2, DL Bler2, PL2]...[RSRPn, SINRn, UL Blern, DLBlern, PLn], where n=N, and the filtered network signal parameters are [RSRP', SINR', UL Bler', DLBlern', PL'].

[0122] Step 603: Detect whether RSRPn of the last group is less than RSRP1 of the first group, and detect whether RSRPn of the last group is less than the filtered RSRP'.

[0123] Optionally, in this embodiment, the target signal threshold includes the network signal parameters obtained after filtering N consecutive sets of network signal parameters and the first set of network signal parameters in the N sets of network signal parameters. The terminal device can perform detection according to the process of steps 603 to 615 to determine the preset parameter conditions satisfied by the network signal parameters of the target cell.

[0124] Step 604: Set the initial adjustment value TXpadding = TXpadding + 1.

[0125] Step 605: Set the initial adjustment value TXpadding = TXpadding - 1.

[0126] In step 603, if the RSRPn of the last group is less than the RSRP1 of the first group and the RSRPn of the last group is less than the filtered RSRP', then step 604 is executed; otherwise, step 605 is executed.

[0127] Step 606: Detect whether the SINRn of the last group is less than the SINR1 of the first group, and detect whether the SINRn of the last group is less than the filtered SINR'.

[0128] Step 607: Set the initial adjustment value TXpadding = TXpadding + 1.

[0129] Step 608: Set the initial adjustment value TXpadding = TXpadding - 1.

[0130] In step 606, if the SINRn of the last group is less than the SINR1 of the first group and the SINRn of the last group is less than the filtered SINR', then step 607 is executed; otherwise, step 608 is executed.

[0131] Step 609: Detect whether the UL Blern of the last group is greater than the UL Bler1 of the first group, and detect whether the UL Blern of the last group is greater than the filtered UL Bler'.

[0132] Step 610: Set the initial adjustment value TXpadding = TXpadding + 1.

[0133] Step 611: Set the initial adjustment value TXpadding = TXpadding - 1.

[0134] In step 609, if the UL Blern of the last group is greater than the UL Bler1 of the first group, and the UL Blern of the last group is greater than the filtered UL Bler', then step 610 is executed; otherwise, step 611 is executed.

[0135] Step 612: Detect whether the DL Blern of the last group is greater than the DL Bler1 of the first group, and detect whether the DL Blern of the last group is greater than the filtered DL Bler'.

[0136] Step 613: Set the initial adjustment value TXpadding = TXpadding + 1.

[0137] Step 614: Set the initial adjustment value TXpadding = TXpadding - 1.

[0138] In step 612, if the DL Blern of the last group is greater than the DL Bler1 of the first group, and the DL Blern of the last group is greater than the filtered DL Bler', then step 613 is executed; otherwise, step 614 is executed.

[0139] Step 615: Detect whether the PLn of the last group is greater than the PL1 of the first group, and detect whether the PLn of the last group is greater than the filtered PL'.

[0140] Step 616: Set the initial adjustment value TXpadding = TXpadding + 1.

[0141] Step 617: Set the initial adjustment value TXpadding = TXpadding - 1.

[0142] In step 615, if the PLn of the last group is greater than the PL1 of the first group, and the PLn of the last group is greater than the filtered PL', then step 616 is executed; otherwise, step 617 is executed.

[0143] It should be noted that the steps for detecting various types of network signal parameters described above can be interchanged. For example, the process of detecting PL in step 615 can be performed first, and the process of detecting RSRP in step 603 can be performed last. This embodiment does not limit the order of the detection steps.

[0144] The initial adjustment value TXpadding obtained in the final step 617 or step 616 is accumulated after the above detection processes. Therefore, when using the updated initial adjustment value to obtain the updated initial transmit power, the various network signal parameters are taken into account, making the optimized initial transmit power more accurate.

[0145] Optionally, if the random access parameter is the initial ramp step size, the initial adjustment value corresponding to the initial ramp step size can be updated according to the following procedure. Please refer to [reference needed]. Figure 7 This illustrates a flowchart illustrating an exemplary embodiment of this application regarding updating the initial adjustment value of an initial climbing step size setting. Figure 7 As shown, the update process may include the following steps:

[0146] Step 701: The terminal device acquires the RSRP, SINR, UL Bler, DL Bler, and PL of the target cell every second.

[0147] Optionally, in this embodiment, the terminal device acquires the network signal parameters RSRP, SINR, ULBler, DL Bler, and PL of the target cell at a preset period of 1 second and performs the subsequent update process.

[0148] Step 702: Obtain N sets of continuous network signal parameters, and use a low-pass filter to filter the N sets of network signal parameters to obtain the filtered network signal parameters.

[0149] For example, the network signal parameters from the first group to the Nth group are: [RSRP1, SINR1, UL Bler1, DLBler1, PL1], [RSRP2, SINR2, UL Bler2, DL Bler2, PL2]...[RSRPn, SINRn, UL Blern, DLBlern, PLn], where n=N, and the filtered network signal parameters are [RSRP', SINR', UL Bler', DLBlern', PL'].

[0150] Step 703: Detect whether the RSRPn of the last group is less than the RSRP1 of the first group, and detect whether the value of the filtered RSRP' minus the RSRPn of the last group is greater than 3.

[0151] Optionally, in this embodiment, the target signal threshold includes the network signal parameters obtained after filtering N consecutive sets of network signal parameters and the first set of network signal parameters in the N sets of network signal parameters. The terminal device can perform detection according to the process of steps 703 to 715 to determine the preset parameter conditions satisfied by the network signal parameters of the target cell.

[0152] Step 704: Set the initial adjustment value STEPpadding = STEPpadding + 1.

[0153] Step 705: Set the initial adjustment value STEPpadding = STEPpadding - 1.

[0154] In step 703, if the RSRPn of the last group is less than the RSRP1 of the first group, and the value of the filtered RSRP' minus the RSRPn of the last group is greater than 3, then step 704 is executed; otherwise, step 705 is executed.

[0155] Step 706: Detect whether the SINRn of the last group is less than the SINR1 of the first group, and detect whether the value of the filtered SINR' minus the SINRn of the last group is greater than 3.

[0156] Step 707: Set the initial adjustment value STEPpadding = STEPpadding + 1.

[0157] Step 708: Set the initial adjustment value STEPpadding = STEPpadding - 1.

[0158] In step 706, if the SINRn of the last group is less than the SINR1 of the first group, and the value of the filtered SINR' minus the SINRn of the last group is greater than 3, then step 707 is executed; otherwise, step 708 is executed.

[0159] Step 709: Detect whether the UL Blern of the last group is greater than the UL Bler1 of the first group, and detect whether the value of the UL Blern of the last group minus the filtered UL Bler' is greater than 10.

[0160] Step 710: Set the initial adjustment value STEPpadding = STEPpadding + 1.

[0161] Step 711: Set the initial adjustment value STEPpadding = STEPpadding - 1.

[0162] In step 709, if the UL Blern of the last group is greater than the UL Bler1 of the first group, and the value of the UL Blern of the last group minus the filtered UL Bler' is greater than 10, then step 710 is executed; otherwise, step 711 is executed.

[0163] Step 712: Check whether the DL Blern of the last group is greater than the DL Bler1 of the first group, and whether the value of the DL Blern of the last group minus the filtered DL Bler' is greater than 10.

[0164] Step 713: Set the initial adjustment value STEPpadding = STEPpadding + 1.

[0165] Step 714: Set the initial adjustment value STEPpadding = STEPpadding - 1.

[0166] In step 712, if the DL Blern of the last group is greater than the DL Bler1 of the first group, and the value of the DL Blern of the last group minus the filtered DL Bler' is greater than 10, then step 713 is executed; otherwise, step 714 is executed.

[0167] Step 715: Detect whether the PLn of the last group is greater than the PL1 of the first group, and whether the value of the PLn of the last group minus the filtered PL' is greater than 3.

[0168] Step 716: Set the initial adjustment value STEPpadding = STEPpadding + 1.

[0169] Step 717: Set the initial adjustment value STEPpadding = STEPpadding - 1.

[0170] In step 715, if the PLn of the last group is greater than the PL1 of the first group, and the value of the PLn of the last group minus the filtered PL' is greater than 3, then step 716 is executed; otherwise, step 717 is executed.

[0171] Similarly, the steps for detecting various types of network signal parameters described above can be interchanged. For example, the process of detecting PL in step 715 can be executed first, and the process of detecting RSRP in step 703 can be executed last. This embodiment does not limit the order of the detection steps.

[0172] The initial adjustment value STEPpadding obtained in the final step 716 or step 717 is accumulated after the above detection processes. Therefore, when using the updated initial adjustment value to obtain the updated initial ramp step size, the situation of various network signal parameters is taken into account, making the optimized initial ramp step size more accurate.

[0173] Optionally, in the above detection process, it is also an example to check whether the difference between the filtered network signal parameters and the last group of network signal parameters is greater than 3 or 10. In actual applications, developers can flexibly set it according to actual needs, and it is not limited here.

[0174] Optionally, if the random access parameter is the initial retry count, the initial adjustment value corresponding to the initial retry count can be updated according to the following procedure. Please refer to [reference needed]. Figure 8 This illustration shows a flowchart illustrating an exemplary embodiment of this application regarding updating an initial adjustment value for an initial retry count setting. Figure 8 As shown, the update process may include the following steps:

[0175] Step 801: Obtain a set of network signal parameters of the target cell, including RSRP, SINR, ULBler, DL Bler, and PL of the target cell.

[0176] For example, the network signal parameters from the first group to the Nth group are: [RSRP1, SINR1, UL Bler1, DLBler1, PL1], [RSRP2, SINR2, UL Bler2, DL Bler2, PL2]...[RSRPn, SINRn, UL Blern, DLBlern, PLn], where n=N, and the filtered network signal parameters are [RSRP', SINR', UL Bler', DLBlern', PL'].

[0177] Step 802: Detect whether the current RSRP is less than the preset RSRP threshold value.

[0178] Optionally, in this embodiment, the target signal threshold includes the case of pre-setting multiple network signal parameters. The terminal device uses the currently collected network signal parameters and each preset threshold value to perform detection according to the process of steps 802 to 814 to determine the preset parameter conditions that the network signal parameters of the target cell meet.

[0179] Step 803: Set the initial adjustment value RETRYpadding = RETRYpadding + 1.

[0180] Step 804: Set the initial adjustment value RETRYpadding = RETRYpadding - 1.

[0181] In step 802, if the current RSRP is less than the preset RSRP threshold, then step 803 is executed; otherwise, step 804 is executed.

[0182] Step 805: Detect whether the current SINR is less than the preset SINR threshold value.

[0183] Step 806: Set the initial adjustment value RETRYpadding = RETRYpadding + 1.

[0184] Step 807: Set the initial adjustment value RETRYpadding = RETRYpadding - 1.

[0185] In step 805, if the current SINR is less than the preset SINR threshold, then step 806 is executed; otherwise, step 807 is executed.

[0186] Step 808: Detect whether the current UL Bler is greater than the preset UL Bler threshold value.

[0187] Step 809: Set the initial adjustment value RETRYpadding = RETRYpadding + 1.

[0188] Step 810: Set the initial adjustment value RETRYpadding = RETRYpadding - 1.

[0189] In step 808, if the current UL Bler is greater than the preset UL Bler threshold, then step 809 is executed; otherwise, step 810 is executed.

[0190] Step 811: Detect whether the current DL Bler is greater than the preset DL Bler threshold value.

[0191] Step 812, set the initial adjustment value RETRYpadding = RETRYpadding + 1.

[0192] Step 813: Set the initial adjustment value RETRYpadding = RETRYpadding - 1.

[0193] In step 811, if the current DL Bler is greater than the preset DL Bler threshold, then step 812 is executed; otherwise, step 813 is executed.

[0194] Step 814: Detect whether the current PL is greater than the preset PL threshold value.

[0195] Step 815: Set the initial adjustment value RETRYpadding = RETRYpadding + 1.

[0196] Step 816: Set the initial adjustment value RETRYpadding = RETRYpadding - 1.

[0197] In step 814, if the current PL is greater than the preset PL threshold, then step 815 is executed; otherwise, step 816 is executed.

[0198] Similarly, the steps for detecting various types of network signal parameters described above can be interchanged. For example, the process of detecting PL in step 814 can be executed first, and the process of detecting RSRP in step 802 can be executed last. This embodiment does not limit the order of the detection steps.

[0199] The initial adjustment value RETRYpadding obtained in the final step 815 or step 816 is accumulated after the above detection processes. Therefore, when using the updated initial adjustment value to obtain the updated initial retry count, the situation of various network signal parameters is taken into account, making the optimized initial retry count more accurate.

[0200] It should be noted that the network signal parameters used above are exemplary. In practical applications, more types of network signal parameters can be used to calibrate or update the above random access parameters. This solution does not limit the types and number of network signal parameters used. Moreover, in addition to the three random access parameters shown above, other random access parameters can also be updated.

[0201] Optionally, for the initial adjustment value of the random access parameters in this scheme, in addition to increasing or decreasing the preset amplitude starting from 0 as described above, it can also be implemented by increasing or decreasing the preset ratio starting from 1. Essentially, the initial adjustment value obtained after the final update can represent either the amplitude that needs to be changed based on the original random access parameters, or the ratio that needs to be changed based on the original random access parameters.

[0202] Step 404: Obtain the updated random access parameters based on the random access parameters and the updated initial adjustment values.

[0203] Optionally, the terminal device can obtain the updated random access parameters according to the updated initial adjustment value obtained above and the original random access parameters configured by the target cell, according to a preset calculation method.

[0204] For example, regarding the initial transmit power, let TXnet represent the initial transmit power configured for the target cell, and TXself represent the updated initial transmit power. The terminal device uses the above... Figure 6 The process shown updates the initial adjustment value TXpadding corresponding to the initial transmit power to obtain a final TXpadding. The updated initial transmit power can be calculated in the form of TXself = TXnet + TXpadding.

[0205] For the initial ramp step size, let STEPnet represent the initial ramp step size configured for the target cell, and STEPself represent the updated initial ramp step size. The terminal device uses the above... Figure 7 The process shown updates the initial adjustment value STEPpadding corresponding to the initial climbing step size to obtain a final STEPpadding, which can be calculated as STEPself = STEPnet + STEPpadding.

[0206] For the initial retry count, let RETRYnet represent the initial retry count configured for the target cell, and RETRYself represent the updated initial retry count. The terminal device uses the above... Figure 8 The process shown updates the initial adjustment value RETRYpadding corresponding to the initial retry count to obtain a final RETRYpadding. The updated initial retry count can be calculated as RETRYself = RETRYnet * (100 + RETRYpadding * 10) / 100.

[0207] Optionally, the calculation method for the updated random access parameters for the three types of random access parameters described above can be preset in the terminal device by the developers.

[0208] Step 405: Perform random access using the updated random access parameters.

[0209] Optionally, after obtaining the updated random access parameters, the terminal device can use the updated random access parameters to initiate random access to the target cell.

[0210] In one possible implementation, the terminal device can also obtain the difference between the updated random access parameters and the previous random access parameters, and if the difference between the updated random access parameters and the previous random access parameters is greater than a preset difference, the updated random access parameters are used for random access.

[0211] For example, regarding the initial transmit power, the terminal device can pre-set a power difference threshold. After obtaining the updated initial transmit power, it can further check whether the difference between the updated random access parameters and the previous random access parameters is greater than the power difference threshold. If it is greater, the initial transmit power configured in the target cell is modified to the updated initial transmit power; if it is not greater, the original initial transmit power can be maintained. Similarly, regarding the initial ramp step size, the terminal device can pre-set a ramp difference threshold. After obtaining the updated initial ramp step size, it can further check whether the difference between the updated random access parameters and the previous random access parameters is greater than the ramp difference threshold. If it is greater, the initial ramp step size configured in the target cell is modified to the updated initial ramp step size; if it is not greater, the original initial ramp step size can be maintained.

[0212] In summary, by acquiring the random access parameters configured for the target cell, which include one or more of the initial transmit power, initial ramp step size, and initial retries, and updating the random access parameters based on preset parameter conditions satisfied by the network signal parameters of the target cell (the network signal parameters indicate the communication quality of the target cell, and the preset parameter conditions include whether the network signal parameters of the target cell meet the target communication quality conditions), the terminal device in this scheme can promptly update the random access parameters after acquiring the random access parameters configured for the target cell, and then use the updated random access parameters for random access. This optimizes the random access parameters, making the random access parameters used by the terminal device more consistent with the current network signal parameters of the target cell, improving the accuracy of the random access parameters used by the terminal device, and increasing the success rate of random access to the cell.

[0213] Furthermore, this solution allows for the flexible selection of different target signal thresholds for detection based on varying random access parameters, ensuring the accuracy of updates to these parameters. The update of the initial retry count also considers the terminal device's movement speed and historical connection data. By combining historical experience with the current movement speed, the process for updating the initial retry count is determined, ensuring flexible adjustments to the initial retry count across different scenarios. This shortens the retry duration of random access and improves its efficiency.

[0214] Below, taking a mobile phone as an example, the above will be implemented in the mobile phone. Figure 6 The logic shown above can be considered as Algorithm 1. Figure 7 The logic shown above can be considered as Algorithm 2. Figure 8The logic shown is considered Algorithm 3. In a mobile phone, different logic can be used to update the parameters for different random access parameters.

[0215] For example, if random access is required due to the aforementioned RACH issue, the corresponding logic can be used to update the random access parameters. Please refer to [reference needed]. Figure 9 The diagram illustrates a flowchart of a method for updating an initial transmit power according to an exemplary embodiment of this application.

[0216] like Figure 9 As shown, the update process may include the following steps:

[0217] Step 901: The mobile phone obtains the initial transmit power TXnet of the network configuration.

[0218] In this context, the network is essentially the target cell that the mobile phone wants to randomly access.

[0219] Step 902: Obtain the network signal parameters of the target cell within the current N seconds.

[0220] Step 903: Calculate the updated initial transmit power TXself using Algorithm 1.

[0221] Step 904: Detect whether TXself-TXnet is greater than the preset power threshold TXdelta.

[0222] Step 905: Modify the initial transmit power TXnet in the network configuration to the updated initial transmit power TXself.

[0223] Optionally, if TXself - TXnet is greater than the preset power threshold TXdelta, proceed to step 905. Of course, if TXself - TXnet is not greater than the preset power threshold TXdelta, the initial transmit power before the update or the updated initial transmit power can still be used, depending on the developer's design.

[0224] Steps 901 to 905 can be used to update the initial transmit power, which can then be used to initiate random access to the target cell.

[0225] Please refer to Figure 10 The diagram illustrates a flowchart of a method for updating an initial climbing step size according to an exemplary embodiment of this application.

[0226] like Figure 10 As shown, the update process may include the following steps:

[0227] Step 1001: The mobile phone obtains the initial ramp step size STEPnet for network configuration.

[0228] Step 1002: Obtain the network signal parameters of the target cell within the current N seconds.

[0229] Step 1003: Use Algorithm 2 to calculate the updated initial climbing step size STEPself.

[0230] Step 1004: Detect whether STEPself-STEPnet is greater than the preset step size threshold STEPdelta.

[0231] Step 1005: Modify the initial ramp step size STEPnet in the network configuration to the updated initial ramp step size STEPself.

[0232] Optionally, if STEPself - STEPnet is greater than the preset step size threshold STEPdelta, proceed to step 1005. Of course, if STEPself - STEPnet is not greater than the preset step size threshold STEPdelta, the initial ramp step size before the update or the updated initial ramp step size can still be used, depending on the developer's design.

[0233] Steps 1001 to 1005 can be used to update the initial ramp step size. In the event of a subsequent random access failure, the updated initial ramp step size can be used to increase the transmit power and re-initiate random access to the target cell.

[0234] Please refer to Figure 11 The diagram illustrates a flowchart of a method for updating the initial number of retries according to an exemplary embodiment of this application.

[0235] like Figure 11 As shown, the update process may include the following steps:

[0236] Step 1101: The mobile phone obtains the initial retry count for the network configuration (RETRYnet).

[0237] Step 1102: Obtain the current network signal parameters of the target cell.

[0238] Step 1103: Obtain the current movement speed.

[0239] Step 1104: Check if the current number of retries exceeds the preset threshold.

[0240] If the current number of retries exceeds the preset threshold, proceed to step 1105; otherwise, end the process.

[0241] Step 1105: Use Algorithm 3 to calculate the updated initial retry count RETRYself.

[0242] Step 1106: Check if the current number of retries is greater than RETRYself.

[0243] If the current number of retries is greater than RETRYself, proceed to step 1107. If the current number of retries is not greater than RETRYself, random access can continue to be initiated.

[0244] Step 1107: End this random access process.

[0245] Steps 1101 to 1107 can update the initial retry count. In the event of a subsequent random access failure, the updated initial retry count is used to check the current retry count, thereby shortening the time for the mobile phone to perform random access and improving the efficiency of random access.

[0246] In summary, mobile phones can flexibly update the three types of random access parameters based on the conditions met by the network signal parameters, and use the updated random access parameters for random access, thereby optimizing the random access parameters and making the random access parameters used by the mobile phone more consistent with the network signal parameters of the current target cell, thus improving the efficiency of random access.

[0247] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0248] Please refer to Figure 12 This illustrates a structural block diagram of a network connection device provided in an exemplary embodiment of this application. The network connection device 1200 can be used in a terminal device to perform all or part of the steps executed by the terminal device in the methods provided in the various embodiments shown above. The network connection device 1200 includes:

[0249] The first acquisition module 1201 is used to acquire random access parameters configured for the target cell. The random access parameters include one or more of the following: the initial transmit power, the initial ramp step size, and the initial number of retries for the terminal device to initiate random access to the target cell.

[0250] The first update module 1202 is used to update the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell. The network signal parameters are used to indicate the communication quality of the target cell. The preset parameter conditions include whether the network signal parameters of the target cell meet the conditions for target communication quality.

[0251] The first access module 1203 is used to perform random access using the updated random access parameters.

[0252] In summary, by acquiring the random access parameters configured for the target cell, which include one or more of the initial transmit power, initial ramp step size, and initial retries, and updating the random access parameters based on preset parameter conditions satisfied by the network signal parameters of the target cell (the network signal parameters indicate the communication quality of the target cell, and the preset parameter conditions include whether the network signal parameters of the target cell meet the target communication quality conditions), the terminal device in this scheme can promptly update the random access parameters after acquiring the random access parameters configured for the target cell, and then use the updated random access parameters for random access. This optimizes the random access parameters, making the random access parameters used by the terminal device more consistent with the current network signal parameters of the target cell, improving the accuracy of the random access parameters used by the terminal device, and increasing the success rate of random access to the cell.

[0253] Optionally, the first update module 1202 includes:

[0254] The first update unit is used to update the initial adjustment value according to the preset parameter conditions satisfied by the network signal parameters of the target cell;

[0255] The second update unit is used to obtain the updated random access parameters based on the random access parameters and the updated initial adjustment value.

[0256] Optionally, the first update unit is further configured to:

[0257] If the network signal parameters of the target cell meet the preset parameter conditions that satisfy the target communication quality conditions, the initial adjustment value is increased by a preset amplitude.

[0258] If the preset parameter conditions met by the network signal parameters of the target cell do not meet the conditions for the target communication quality, the preset amplitude of the initial adjustment value is reduced.

[0259] Optionally, the network signal parameters of the target cell include at least two types of parameters, and the first update unit is further configured to:

[0260] The initial adjustment values ​​are updated sequentially based on the preset parameter conditions satisfied by each type of network signal parameter.

[0261] Optionally, the device further includes:

[0262] The first determining module is used to determine the preset parameter conditions satisfied by the network signal parameters of the target cell based on the magnitude relationship between the network signal parameters of the target cell and the target signal threshold before updating the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell.

[0263] Optionally, when the random access parameters include the initial transmit power and / or the initial ramp step size, the target signal threshold is determined based on N consecutive sets of network signal parameters of the target cell collected by the terminal device within a preset time period, where N is an integer greater than or equal to 2.

[0264] Optionally, the target signal threshold includes network signal parameters obtained after filtering the N sets of network signals consecutively and the first set of network signal parameters among the N sets of network signal parameters;

[0265] The first determining module is further configured to: determine the preset parameter conditions satisfied by the network signal parameters of the target cell based on the magnitude relationship between the last group of network signal parameters and the first group of network signal parameters, and the magnitude relationship between the last group of network signal parameters and the filtered network signal parameters.

[0266] Optionally, if the random access parameters include the initial number of retries, the target signal threshold is preset.

[0267] Optionally, the device further includes:

[0268] The second acquisition module is used to acquire historical connection data before determining the preset parameter conditions satisfied by the network signal parameters of the target cell based on the relationship between the network signal parameters and the preset target signal threshold. The historical connection data includes at least the total number of random access attempts and the access success rate of the target cell in the past. The access success rate is used to indicate the success rate of the terminal device accessing the target cell when random access is performed with the total number of retries.

[0269] The first determining module is further configured to determine the preset parameter conditions satisfied by the network signal parameters of the target cell based on the relationship between the network signal parameters and the preset target signal threshold if the access success rate is less than the preset success rate threshold and the initial number of retries is greater than the total number of retries.

[0270] Optionally, the device further includes:

[0271] The third acquisition module is used to acquire the current moving speed of the terminal device;

[0272] The first determining module is further configured to determine the preset parameter conditions satisfied by the network signal parameters of the target cell based on the relationship between the network signal parameters and the preset target signal threshold if the access success rate is less than the preset success rate threshold or the mobile speed is greater than the preset speed threshold and the initial retries are greater than the total retries.

[0273] Optionally, the device further includes:

[0274] The fourth acquisition module is used to acquire the current number of retries of the terminal device before updating the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell.

[0275] The first update module is further configured to update the initial retry count according to the preset parameter conditions satisfied by the network signal parameters of the target cell if the number of retries exceeds a preset threshold.

[0276] Optionally, the first access module is further configured to:

[0277] If the difference between the updated random access parameters and the original random access parameters is greater than a preset difference, the updated random access parameters will be used for random access.

[0278] Please refer to Figure 13 This is a schematic diagram illustrating another example of the network connection device provided in this application embodiment. The network connection device 1300 can be a terminal device capable of implementing the functions of the method provided in this application embodiment. The network connection device 1300 can be a chip system. In this application embodiment, the chip system can be composed of chips or may include chips and other discrete components.

[0279] In terms of hardware implementation, the aforementioned communication module can be a transceiver, which is integrated into the network connection device 1300 to form a communication interface 1303.

[0280] The network connection device 1300 includes at least one processor 1301, used to implement or support the network connection device 1300 in implementing the functions of the terminal device in the method provided in the embodiments of this application. Exemplarily, the processor 1301 can execute the following steps: obtaining random access parameters configured for a target cell; updating the random access parameters according to preset parameter conditions satisfied by the network signal parameters of the target cell, where the network signal parameters are used to indicate the communication quality of the target cell, and the preset parameter conditions include whether the network signal parameters of the target cell meet the conditions for target communication quality; and performing random access using the updated random access parameters. For details, please refer to the detailed description in the method examples; further elaboration is not provided here.

[0281] The network connectivity device 1300 may further include at least one memory 1302 for storing program instructions and / or data. The memory 1302 is coupled to the processor 1301. The coupling in this embodiment is an indirect coupling or communication connection between devices, units, or modules, and may be electrical, mechanical, or other forms, for information exchange between devices, units, or modules. The processor 1301 may operate in conjunction with the memory 1302. The processor 1301 may execute program instructions stored in the memory 1302. At least one of the at least one memory may be included in the processor.

[0282] The network connectivity device 1300 may further include a communication interface 1303 for communicating with other devices via a transmission medium, thereby enabling devices in the network connectivity device 1300 to communicate with other devices. Exemplarily, this other device may be a network-side device. The processor 1301 may use the communication interface 1303 to send and receive data. Specifically, the communication interface 1303 may be a transceiver.

[0283] This application embodiment does not limit the specific connection medium between the communication interface 1303, processor 1301, and memory 1302. This application embodiment... Figure 13 The memory 1302, processor 1301, and communication interface 1303 are connected via a bus 1304. Figure 13 The connections between other components are shown in bold lines only and are not intended to be limiting. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, Figure 13 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0284] In the embodiments of this application, the processor 1301 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.

[0285] In this embodiment, the memory 1302 can be non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or it can be volatile memory, such as random-access memory (RAM). Memory is any other medium capable of carrying or storing desired program code in the form of instructions or data structures, and accessible by a computer, but is not limited thereto. The memory in this embodiment can also be a circuit or any other device capable of implementing storage functions, used to store program instructions and / or data.

[0286] Optionally, embodiments of this application also provide a terminal device, which includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements all or part of the steps performed by the terminal device in the network connection methods of the above embodiments.

[0287] Please refer to Figure 14 This illustrates a schematic diagram of the structure of a terminal device provided in an exemplary embodiment of this application. For example... Figure 14 The terminal device shown includes components such as processor 1410, memory 1420, transceiver 1430, sensor 1460, and power module 1480.

[0288] The processor 1410 is the control center of the terminal device. It connects various parts of the terminal device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1420, and by calling data stored in the memory 1420, it performs various functions of the terminal device and processes data, thereby providing overall monitoring of the terminal device. Optionally, the processor 1410 may include one or more processing units; optionally, the processor 1410 may integrate an application processor, which mainly handles operating devices, user interfaces, and applications, etc. Of course, it may also include other processors, which are not listed here.

[0289] The memory 1420 can be used to store software programs and modules. The processor 1410 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 1420. The memory 1420 may mainly include a program storage area and a data storage area. The program storage area may store the operating device and application programs required for at least one function (such as sound playback function, image playback function, etc.); the data storage area may store data created according to the use of the terminal device (such as audio data, phone book, etc.). In addition, the memory 1420 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0290] Transceiver 1430 can provide solutions for wireless communication applications on terminal devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. Transceiver 1430 can be one or more devices integrating at least one communication processing module; for example, it can integrate an antenna with a baseband processor, or it can integrate an antenna with a modem processor, etc., without limitation. The hardware for random access to the target cell in this application can be initiated through this transceiver 1430.

[0291] The terminal device may also include at least one sensor 1460, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an accelerometer sensor to detect the magnitude of acceleration in various directions. When stationary, it can detect the magnitude and direction of gravity and can be used for applications that identify the attitude of the terminal device, such as landscape / portrait switching, related games, magnetometer attitude calibration, etc. Other sensors that the terminal device may also be configured with, such as pressure gauges, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0292] The terminal device also includes a power module 1480 that supplies power to the various components. Optionally, the power module 1480 can be logically connected to the processor 1410 through a power management device, thereby enabling functions such as charging, discharging, and power consumption management through the power management device.

[0293] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device. In other embodiments of this application, the terminal device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0294] Optionally, the aforementioned terminal devices may include, but are not limited to, wearable devices (such as smart bracelets, smartwatches, smart glasses, etc.), mobile phones, tablets, laptops, smart glasses, smartwatches, MP4 (Moving Picture Experts Group Audio Layer IV) players, desktop computers, laptop computers, and other devices with displays.

[0295] Normally, the above Figure 14 The terminal device shown needs to be equipped with a corresponding operating system and runs on that operating system. For example, the operating system of the terminal device can be Android, iOS, Linux, etc.

[0296] Optionally, embodiments of this application also provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements all or part of the steps performed by the terminal device in the network connection methods of the various embodiments described above.

[0297] Optionally, embodiments of this application also provide a chip containing an executable computer program. When the chip executes the computer program, it implements all or part of the steps performed by the terminal device in the network connection methods of the above embodiments.

[0298] Optionally, embodiments of this application also provide a computer program product, including a computer program that, when processed and executed, implements the network connection methods of the various embodiments described above.

[0299] Optionally, embodiments of this application also provide an application publishing platform for publishing computer program products. When the computer program product is run on a computer, it causes the computer to execute all or part of the steps of the network connection methods described in the above embodiments, which are executed by the terminal device.

[0300] It should be noted that the device provided in the above embodiments is only illustrated by the division of the above functional modules when controlling the terminal device. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0301] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0302] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0303] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A network connection method, characterized in that, Applied to a terminal device, the method includes: Obtain the random access parameters configured for the target cell, wherein the random access parameters include one or more of the following: initial transmit power, initial ramp step size, and initial retry count; The random access parameters are updated according to the preset parameter conditions satisfied by the network signal parameters of the target cell. The network signal parameters are used to indicate the communication quality of the target cell. The preset parameter conditions include whether the network signal parameters of the target cell meet the conditions for target communication quality. Random access is performed using the updated random access parameters.

2. The method according to claim 1, characterized in that, The step of updating the random access parameters based on preset parameter conditions satisfied by the network signal parameters of the target cell includes: The initial adjustment value is updated based on the preset parameter conditions satisfied by the network signal parameters of the target cell; The updated random access parameters are obtained based on the random access parameters and the updated initial adjustment values.

3. The method according to claim 2, characterized in that, The step of updating the initial adjustment value based on the preset parameter conditions satisfied by the network signal parameters of the target cell includes: If the network signal parameters of the target cell meet the preset parameter conditions that satisfy the target communication quality conditions, the initial adjustment value is increased by a preset amplitude. If the preset parameter conditions met by the network signal parameters of the target cell do not meet the conditions for the target communication quality, the preset amplitude of the initial adjustment value is reduced.

4. The method according to claim 2, characterized in that, The network signal parameters of the target cell include at least two types of parameters. Updating the initial adjustment value based on preset parameter conditions satisfied by the network signal parameters of the target cell includes: The initial adjustment values ​​are updated sequentially based on the preset parameter conditions satisfied by each type of network signal parameter.

5. The method according to claim 1, characterized in that, Before updating the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell, the method further includes: Based on the relationship between the network signal parameters of the target cell and the target signal threshold, the preset parameter conditions that the network signal parameters of the target cell must satisfy are determined.

6. The method according to claim 5, characterized in that, When the random access parameters include the initial transmit power and / or the initial ramp step size, the target signal threshold is determined based on N consecutive sets of network signal parameters of the target cell collected by the terminal device within a preset time period, where N is an integer greater than or equal to 2.

7. The method according to claim 6, characterized in that, The target signal threshold includes network signal parameters obtained after filtering the N sets of network signals consecutively, and the first set of network signal parameters from the N sets of network signal parameters. The step of determining the preset parameter conditions that the network signal parameters of the target cell must satisfy based on the relationship between the network signal parameters of the target cell and the target signal threshold includes: Based on the relationship between the last set of network signal parameters and the first set of network signal parameters, and the relationship between the last set of network signal parameters and the filtered network signal parameters, the preset parameter conditions that the network signal parameters of the target cell must satisfy are determined.

8. The method according to claim 5, characterized in that, When the random access parameters include the initial number of retries, the target signal threshold is preset.

9. The method according to claim 8, characterized in that, Before determining the preset parameter conditions satisfied by the network signal parameters of the target cell based on the relationship between the network signal parameters and the preset target signal threshold, the method further includes: Obtain historical connection data, which includes at least the total number of random access attempts and the access success rate for historical access to the target cell. The access success rate is used to indicate the success rate of the terminal device accessing the target cell when random access is performed for the total number of retries. If the access success rate is less than the preset success rate threshold and the initial number of retries is greater than the total number of retries, then the preset parameter conditions that the network signal parameters of the target cell must satisfy are determined according to the relationship between the network signal parameters and the preset target signal threshold.

10. The method according to claim 9, characterized in that, The method further includes: Obtain the current moving speed of the terminal device; If the access success rate is less than the preset success rate threshold or the mobility speed is greater than the preset speed threshold, and the initial number of retries is greater than the total number of retries, then the preset parameter conditions that the network signal parameters of the target cell must satisfy are determined according to the relationship between the network signal parameters and the preset target signal threshold.

11. The method according to claim 8, characterized in that, Before updating the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell, the method further includes: Obtain the current number of retries for the terminal device; If the number of retries exceeds a preset threshold, the initial number of retries is updated based on preset parameter conditions satisfied by the network signal parameters of the target cell.

12. The method according to any one of claims 1 to 11, characterized in that, The step of using updated random access parameters for random access includes: If the difference between the updated random access parameters and the original random access parameters is greater than a preset difference, the updated random access parameters will be used for random access.

13. A network connection device, characterized in that, Applied to a terminal device, the device includes: The first acquisition module is used to acquire the random access parameters configured in the target cell. The random access parameters include one or more of the following: initial transmit power, initial ramp step size, and initial retry count. The first update module is used to update the random access parameters according to the preset parameter conditions satisfied by the network signal parameters of the target cell. The network signal parameters are used to indicate the communication quality of the target cell, and the preset parameter conditions include whether the network signal parameters of the target cell meet the conditions for target communication quality. The first access module is used to perform random access using the updated random access parameters.

14. A terminal device, characterized in that, The terminal device includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the network connection method according to any one of claims 1 to 12.

15. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the network connection method as described in any one of claims 1 to 12.