Network connection method and device and storage medium
By obtaining the target service status and channel quality in the 5G network, ignoring the redirection instructions and releasing connection resources, the problem of terminal error redirecting to low-quality networks is solved, and users' Internet access speed and experience are improved.
Patent Information
- Application Number
- CN202410175936.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-07
- Publication Date
- 2025-08-08
AI Technical Summary
There are abnormal cells in the existing 5G network that cause terminals to be redirected incorrectly to networks with worse network quality, affecting users' Internet access speed.
When receiving the redirection instruction, the target service status is obtained and the channel quality is determined. The redirection instruction is ignored only when the channel quality meets the condition and the connection resources are released after the data transmission is completed, avoiding connecting to a designated network with poorer network quality.
Improve users' Internet speed and experience, and ensure the continuity and quality of data services by avoiding incorrect redirection connections.
Smart Images

Figure CN120456162A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technologies, and in particular to a network connection method, device, and storage medium. Background Art
[0002] The NSA (Non-Standalone) or SA (Standalone) 5G networks in the related technologies may have abnormal cells. When the terminal accesses these abnormal cells, when the terminal performs data services, a redirection instruction may be mistakenly sent to the terminal, causing the terminal to be redirected to a network with worse network quality, such as a 2G or 3G network, thereby affecting the user's Internet access speed. Summary of the Invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a network connection method, device and storage medium. When a redirection instruction for the network is received, the target service status is first obtained, and when the target service status is a data status and the data link is normal, the channel quality is determined. Then, when the channel quality meets the quality conditions, the redirection instruction is ignored, and after the data transmission is completed, the connection resources of the terminal are released to avoid connecting to a designated network with worse network quality after receiving an erroneous redirection instruction, so as to improve the user's Internet access speed and thus improve the user's Internet access experience.
[0004] According to a first aspect of an embodiment of the present disclosure, a network connection method is provided, including:
[0005] When connected to a target network, in response to receiving a redirection instruction for a network, obtaining a target service state, the redirection instruction being used to instruct the terminal to change from the target network to a designated network, the network quality of the target network being better than the network quality of the designated network;
[0006] When the target service state is a data state and the data link is normal, determining the channel quality;
[0007] In a case where the channel quality meets the quality condition, the redirection instruction is ignored, and after the data transmission is completed, the connection resources of the terminal are released.
[0008] Optionally, the method further includes:
[0009] In a case where the channel quality does not meet the quality condition, the system responds to the redirection instruction to change from the connected target network to the designated network.
[0010] Optionally, the channel quality includes signal strength and signal-to-noise ratio;
[0011] When the channel quality satisfies the quality condition, before ignoring the redirection instruction, the method further includes:
[0012] When the signal strength is greater than a preset strength threshold and the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold, it is determined that the channel quality meets a quality condition.
[0013] Optionally, before obtaining the target service status in response to receiving the redirection instruction for the network, the method further includes:
[0014] updating the service status of the terminal at least once based on historical service data;
[0015] The service state obtained by the latest update is determined as the target service state.
[0016] Optionally, the historical service data includes network connection data;
[0017] The updating of the service status of the terminal at least once according to the historical service data includes:
[0018] The service state of the terminal is initially updated according to the network connection factors in the network connection data to obtain the initial service state of the terminal, where the service state of the terminal is one of a data state, a call state and a pending state.
[0019] Optionally, the historical business data also includes state transition data;
[0020] After initially updating the service state of the terminal according to the network connection factor in the network connection data to obtain the initial service state of the terminal, the method further includes:
[0021] The initial service state is updated at least once according to the state transition data.
[0022] Optionally, updating the initial business state at least once according to the state transition data includes:
[0023] For any business state update, determine the basic business state and target migration data corresponding to the business state update, where the basic business state is the initial business state or the business state obtained after the last business state update, and the target migration data is the state migration data under the basic business state;
[0024] The basic business status is updated according to the target migration data.
[0025] Optionally, the target migration data includes call service data;
[0026] The updating of the basic business status according to the target migration data includes:
[0027] When the basic service state is a data state or a pending state and there is call service data, the basic service state is updated to the call state.
[0028] Optionally, the target migration data includes call service data and data transmission status;
[0029] The updating of the basic business status according to the target migration data includes:
[0030] When the basic service state is the data state, the data transmission state is the transmission completion state, and there is no call service data, the basic service state is updated to the pending state.
[0031] Optionally, the target migration data includes data service data;
[0032] The updating of the basic business status according to the target migration data includes:
[0033] When the basic service state is in a pending state and there is data service data, the basic service state is updated to the data state.
[0034] Optionally, the target migration data includes data service data and call status;
[0035] The updating of the basic business status according to the target migration data includes:
[0036] When the basic service state is a call state, the call state is call completion, and the data service data exists, updating the basic service state to the data state; or,
[0037] When the basic service state is a call state, the call state is call completion, and the data service data does not exist, the basic service state is updated to the pending state.
[0038] According to a second aspect of an embodiment of the present disclosure, there is provided a network connection device, including:
[0039] an acquisition module configured to, when connected to a target network, acquire a target service status in response to receiving a redirection instruction for a network, the redirection instruction being used to instruct the terminal to change from the target network to a designated network, the network quality of the target network being better than the network quality of the designated network;
[0040] A first determining module is configured to determine the channel quality when the target service state is a data state and the data link is normal;
[0041] The first ignoring module is configured to ignore the redirection instruction if the channel quality meets the quality condition, and release the connection resources of the terminal after the data transmission is completed.
[0042] According to a third aspect of an embodiment of the present disclosure, there is provided a network connection device, including:
[0043] processor;
[0044] a memory for storing processor-executable instructions;
[0045] The processor is configured to implement the steps of the network connection method provided in the first aspect of the present disclosure when executing.
[0046] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the network connection method provided in the first aspect of the present disclosure are implemented.
[0047] According to a fifth aspect of an embodiment of the present disclosure, a chip is provided, comprising a processor and an interface; the processor is configured to read instructions to execute the network connection method provided in the first aspect of the present disclosure.
[0048] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:
[0049] When a redirection instruction for the network is received, the target service status is first obtained, and when the target service status is the data status and the data link is normal, the channel quality is determined. Then, when the channel quality meets the quality conditions, the redirection instruction is ignored, and after the data transmission is completed, the connection resources of the terminal are released to avoid connecting to a designated network with worse network quality after receiving an erroneous redirection instruction, so as to improve the user's Internet speed and thus improve the user's Internet experience.
[0050] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0052] Figure 1 The figure is a schematic diagram of an application scenario of a network connection method according to an exemplary embodiment.
[0053] Figure 2 The figure is a flowchart of a network connection method according to an exemplary embodiment.
[0054] Figure 3 The figure is a flowchart showing a method for determining a target service status according to an exemplary embodiment.
[0055] Figure 4 The figure is a schematic diagram showing the transition between service states according to an exemplary embodiment.
[0056] Figure 5 The figure is a block diagram showing a network connection device according to an exemplary embodiment.
[0057] Figure 6 The present invention is a block diagram showing a device for network connection according to an exemplary embodiment. DETAILED DESCRIPTION
[0058] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0059] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the corresponding data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.
[0060] In related technologies, NSA or SA 5G networks may contain abnormal cells. When a terminal accesses these abnormal cells and performs data services, the base station may mistakenly send a redirection instruction to the terminal, redirecting the terminal to a network with lower quality, such as a 2G or 3G network, thereby affecting the user's Internet speed.
[0061] In response to the above technical problems, the present disclosure provides a network connection method, device, and storage medium. When a redirection instruction for a network is received, the method first obtains the target service state, and when the target service state is a data state and the data link is normal, determines the channel quality. Then, when the channel quality meets the quality conditions, the method ignores the redirection instruction, and releases the terminal's connection resources after the data transmission is completed. This avoids connecting to a designated network with worse network quality after receiving an erroneous redirection instruction, thereby improving the user's Internet access speed and thus improving the user's Internet experience. The network quality can be determined by the data transmission speed, that is, the network quality of a network with a higher data transmission speed is better than the network quality of a network with a lower data transmission speed, that is, the data transmission speed of the target network is higher than the data transmission speed of the designated network.
[0062] Figure 1 FIG. 1 is a schematic diagram showing an application scenario of a network connection method according to an exemplary embodiment. Figure 1 As shown, the network connection method can be applied to a terminal, which can be Figure 1 The mobile phone in the terminal achieves network connection by communicating with the base station.
[0063] Figure 2 is a flow chart showing a network connection method according to an exemplary embodiment. Figure 2 As shown, the method can be used in a terminal and may include the following steps.
[0064] In step S201, when connected to a target network, in response to receiving a redirection instruction for the network, a target service state is obtained, where the redirection instruction is used to instruct the terminal to change from the target network to a designated network, where the network quality of the target network is better than that of the designated network.
[0065] In this embodiment, a terminal can connect to a target network via a connection request. For example, the terminal can enter a connected state via an RRCConnectionRequest to connect to the target network. The target network can be an NSA or SA 5G network. When the terminal is connected to the target network, if a redirection instruction is received for the network, the terminal can obtain the target service state of the terminal. The target service state can be the terminal's latest service state. Service states can be categorized as call state, data state, and pending state. The call state is when the terminal is performing a call service, for example, when the terminal is making or receiving a call. The data state is when the terminal is performing a data service, for example, when the terminal is transmitting network data. This network data transmission may include transmitting or receiving network data. A voice call conducted via network data transmission is considered a data service. The pending state is when the terminal is not performing either a call or data service. For example, when the terminal is not making or receiving a call or transmitting network data. The pending state is when the terminal is not performing either a call or data service. The redirection instruction instructs the terminal to change from the target network to a designated network, where the target network's network quality is better than that of the designated network. For example, the designated network can be a 2G or 3G network.
[0066] In step S202, when the target service state is the data state and the data link is normal, the channel quality is determined.
[0067] In this embodiment, the data state indicates that the terminal is performing a data service. When the target service state is the data state and the data link is normal, the channel quality of the communication channel can be further obtained. A normal data link means that the data transmission resources allocated to the terminal by the target network are greater than or equal to the data transmission resources required for the data to be transmitted. The resources to be transmitted can be data in the data buffer. For example, if the data buffer contains 3M data and the target network allocates 3M data transmission resources to the terminal, the data link is determined to be normal.
[0068] In step S203, when the channel quality meets the quality condition, the redirection instruction is ignored, and after the data transmission is completed, the connection resources of the terminal are released.
[0069] In this embodiment, if the channel quality meets the quality requirements and connecting to the current target network does not affect the user's data services, the redirection instruction can be ignored. That is, the redirection instruction is not executed, and the connection to the target network remains, rather than connecting to the designated network. After the data transmission is completed, the terminal's connection resources are released, and the terminal's connection resources are used to successfully connect to the target resources, so that the terminal can disconnect from the target network and reconnect to the network next time. This method can avoid connecting to a designated network with worse network quality after receiving an erroneous redirection instruction, thereby improving the user's Internet access speed and thus enhancing the user's Internet experience.
[0070] In one possible implementation, after releasing the terminal's connection resources, the terminal may proactively release the connection resources and disconnect, and the base station may be unaware of the terminal's disconnection. The terminal may then send location information to the base station to prevent the base station from sending messages to locate the terminal. Specifically, after a preset time period (e.g., 5 seconds) after the terminal releases the connection resources, the terminal may proactively send a location update request to the base station, causing the terminal to send its location information to the base station.
[0071] In a possible implementation, after determining the channel quality, if the channel quality does not meet the quality condition, a redirection instruction is responded to so as to change from the connected target network to the designated network.
[0072] In this embodiment, when the channel quality does not meet the quality conditions, it is determined that the terminal cannot meet the user's data service needs by connecting to the target network, and can respond to the redirection instruction to connect to the designated network, thereby completing the data service through the connected designated network.
[0073] In one possible implementation, the channel quality includes signal strength and signal-to-noise ratio; when the channel quality meets the quality condition, before ignoring the redirection instruction, the method further includes: when the signal strength is greater than a preset strength threshold and the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold, determining that the channel quality meets the quality condition.
[0074] In this embodiment, whether the channel quality meets the quality condition can be determined based on the signal strength and signal-to-noise ratio. For example, if the channel quality includes signal strength, the channel quality can be determined to meet the quality condition if the signal strength is greater than a preset strength threshold. Alternatively, if the channel quality includes signal strength and signal-to-noise ratio, the channel quality can be determined to meet the quality condition if the signal strength is greater than a preset strength threshold and the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold. The preset strength threshold and the preset signal-to-noise ratio threshold can be set according to actual conditions. For example, the preset strength threshold can be -120 dBm, and the preset signal-to-noise ratio threshold can be 5.
[0075] In one possible implementation, when the signal strength is less than or equal to a preset strength threshold, or the signal-to-noise ratio is less than or equal to a preset signal-to-noise ratio threshold, it is determined that the channel quality does not meet the quality condition. For example, when the channel quality includes signal strength, it can be determined that the channel quality does not meet the quality condition when the signal strength is less than or equal to the preset strength threshold. Alternatively, when the channel quality includes signal strength and signal-to-noise ratio, it can be determined that the channel quality does not meet the quality condition when the signal strength is less than or equal to the preset strength threshold, or the signal-to-noise ratio is less than or equal to the preset signal-to-noise ratio threshold. When the channel quality does not meet the quality condition, a redirection instruction can be responded to change from the connected target network to the specified network.
[0076] In a possible implementation, after obtaining the latest target service status of the terminal, if the target service status is in a pending state, the redirection instruction is ignored and the connection resources of the terminal are released.
[0077] In this embodiment, if the target service status is pending, that is, at this time, the terminal is connected to the target network but is not performing call or data services, the redirection instruction can be ignored and the terminal's connection resources can be released, thereby avoiding connecting to the specified network. This prevents the network connection icon from changing from a network icon with higher network quality to a network icon with lower network quality, which may affect the user experience. For example, this can prevent the network connection icon displayed on the terminal from changing from 5G to 3G.
[0078] In one possible implementation, after obtaining the terminal's latest target service state, if the target service state is a call state, the terminal can respond to the redirect instruction and change from the target network to the designated network, since the call service is not affected regardless of the network being connected. That is, the terminal first disconnects from the target network and then reconnects to the designated network.
[0079] Figure 3 FIG. 1 is a flow chart showing a method for determining a target service state according to an exemplary embodiment. Figure 3 As shown, in a possible implementation, before obtaining the target service status in response to receiving a redirection instruction for the network, the latest target service status of the terminal may be determined. The method may include the following steps:
[0080] In step S301, the service status of the terminal is updated at least once according to historical service data.
[0081] In this embodiment, historical service data refers to service data acquired before receiving a network redirection instruction. This service data may include network connection data and state transition data. Network connection data refers to data collected during the terminal's connection to the target network, while state transition data refers to data collected during service transitions after the terminal's connection to the target network. The terminal's service status can be updated at least once using the historical service data to obtain an updated service status.
[0082] In step S302, the service state obtained by the latest update is determined as the target service state.
[0083] In this embodiment, after performing at least one service status update, the updated service status obtained by the last service status update is determined as the target service status, that is, the latest service status of the terminal.
[0084] Figure 4 FIG. 1 is a schematic diagram showing a migration between service states according to an exemplary embodiment. Figure 4 As shown, in one possible implementation, the historical service data includes network connection data. Based on the historical service data, the service status of the terminal is updated at least once, including: initially updating the service status of the terminal based on the network connection factors in the network connection data to obtain an initial service status of the terminal, where the service status of the terminal is one of a data status, a call status, and a pending status.
[0085] In this embodiment, the service status can be initially updated based on the network connection data to obtain the initial service status after connecting to the target network. The network connection data can be a connection request, such as RRCConnectionRequest. The connection request may include a value representing a network connection factor, such as an establishmentCause value. Based on the value representing the network connection factor, the specific network connection factor in the network connection data can be determined, thereby performing an initial update on the service status of the terminal to obtain the initial service status of the terminal. Different service states can correspond to different status identifiers, and different service states can be represented by different status identifiers. For example, a status identifier value of 1 represents a call status; a status identifier value of 2 represents a data status; and a status identifier value of 3 represents a pending status.
[0086] For example, if the value of establishmentCause is mo-VoiceCall, it indicates that the terminal has initiated a call service, and the status flag serviceflag=1 can be set; if the value of establishmentCause is mo-Data, it indicates that the terminal has initiated a data service, and the status flag serviceflag=2 can be set.
[0087] If the value of establishmentCause is mt-Access, it indicates that the target network has a service request and the terminal has not received any incoming call information. For example, if an IMS SIP INVITE message is received, it indicates that the target network has a data service request, and the status flag serviceflag = 2 can be set. If the terminal receives an IMS SIP INVITE message, that is, receives an incoming call information, the status flag serviceflag = 1 can be set.
[0088] For a terminal in a connected state, that is, when the terminal is connected to a target network, if there is no data service or call service at this time, the state flag serviceflag=3 may be set.
[0089] Through the above method, the initial update of the service state of the terminal can be completed according to the network connection data, and the initial service state of the terminal can be obtained.
[0090] In a possible implementation, the historical business data may also include state migration data. After the business state of the terminal is initially updated based on the network connection factors in the network connection data to obtain the initial business state of the terminal, the method further includes: updating the initial business state at least once based on the state migration data.
[0091] In this embodiment, if stateful migration data is further obtained, the business state can be continuously updated for the initial business state through the state migration data. Specifically, the business state is updated sequentially according to the order of the obtained state migration data.
[0092] In a possible implementation, performing at least one service state update on the initial service state according to the state transition data may include the following steps:
[0093] For any business status update, determine the basic business status and target migration data corresponding to the business status update. The basic business status is the initial business status or the business status obtained after the last business status update, and the target migration data is the state migration data under the basic business status; according to the target migration data, update the basic business status.
[0094] In this embodiment, for any business status update in the process of performing at least one business status update on the initial business status, the basic business status and target migration data corresponding to the business status update are first determined. The basic business status is the initial business status or the business status obtained after the last business status update, that is, the business status corresponding to the implementation of this business status update. If only one initial update is performed before this business status update, the basic business status is the initial business status after the initial update. If at least one business status update is performed after the initial update, the basic business status is the business status obtained after the last business status update of this business status update. The target migration data is the state migration data corresponding to the basic business status. Therefore, the basic business status can be updated according to the target migration data corresponding to the basic business status.
[0095] In one possible implementation, the target migration data includes call service data; updating the basic service status according to the target migration data may include: when the basic service status is a data status or a pending status and there is call service data, updating the basic service status to a call status.
[0096] In this embodiment, when the basic service status is in the data state or pending state, if there is call service data, the call task needs to be executed immediately. In this case, the basic service status can be updated from the data state or pending state to the call state. For example, when the terminal is connected to the target network, if serviceflag = 2 or 3, once the terminal detects an incoming call or called voice call, that is, the presence of call service data, the status flag value can be changed to serviceflag = 1.
[0097] In one possible implementation, the target migration data includes call service data and data transmission status; updating the basic service status according to the target migration data may include: when the basic service status is a data status, and the data transmission status is a transmission completed, and there is no call service data, updating the basic service status to a pending status.
[0098] In this embodiment, when the basic service status is the data status, the data transmission status can be determined. The data transmission status indicates whether the current data to be transmitted has been transmitted. The data transmission status can be either transmission completed or transmission incomplete. When the data transmission status is transmission completed, if there is no call service data, the basic service status can be updated to a pending state. For example, when the terminal is connected to the target network, if serviceflag = 2, data transmission is complete, and there is no call service, that is, there is no calling or called party on the terminal, the value of the status identifier can be modified to serviceflag = 3.
[0099] In a possible implementation, the target migration data includes data business data; updating the basic business status according to the target migration data may include: when the basic business status is pending and there is data business data, updating the basic business status to a data status.
[0100] In this embodiment, when the basic service state is in the pending state, if there is data service data, that is, there is data to be transmitted, the basic service state can be updated from the pending state to the data state. For example, when the terminal is connected to the target network, if serviceflag = 3, if data service is detected, the value of the status indicator can be changed to serviceflag = 2.
[0101] In one possible implementation, the target migration data includes data service data and call status; updating the basic service status according to the target migration data may include: when the basic service status is a call status, the call status is call completed, and there is data service data, updating the basic service status to a data status.
[0102] In this embodiment, when the basic service status is the call status, the call status can be determined. The call status indicates whether the call is completed. The call status can be call completed or call incomplete. When the call status is call completed, if data service data exists, the basic service status can be updated from the call status to the data status. For example, when the terminal is connected to the target network, if serviceflag = 1, when the call is completed, it is determined whether there is data service at this time. If there is data service, it is determined that there is data service data, and the value of the status indicator can be changed to serviceflag = 2.
[0103] In one possible implementation, the target migration data includes data service data and call status; and the basic service status is updated according to the target migration data, including: when the basic service status is a call status, and the call status is call completed, and there is no data service data, the basic service status is updated to a pending status.
[0104] In this embodiment, when the basic service status is a call status, the call status can be determined. When the call status is call completed, if there is no data service data, that is, no data to be transmitted, the basic service status can be updated from the call status to the pending status. For example, when the terminal is connected to the target network, if serviceflag = 1, when the call is completed, it is determined whether there is data service at this time. If there is no data service, it is determined that there is no data service data, and the value of the status identifier can be changed to serviceflag = 3.
[0105] Through the above method, the migration between business states can be completed to obtain the latest target business state.
[0106] Figure 5 FIG. 1 is a block diagram of a network connection device according to an exemplary embodiment. Figure 5 The network connection device 500 includes an acquisition module 501 , a first determination module 502 and a first ignoring module 503 .
[0107] The acquisition module 501 is configured to, in the case of being connected to a target network, acquire a target service status in response to receiving a redirection instruction for a network, wherein the redirection instruction is used to instruct the terminal to change from the target network to a designated network, and the network quality of the target network is better than the network quality of the designated network;
[0108] The first determining module 502 is configured to determine the channel quality when the target service state is a data state and the data link is normal;
[0109] The first ignoring module 503 is configured to ignore the redirection instruction if the channel quality meets the quality condition, and release the connection resources of the terminal after the data transmission is completed.
[0110] Optionally, the network connection device 500 further includes:
[0111] The first response module is configured to respond to the redirection instruction to change from the connected target network to the designated network if the channel quality does not meet the quality condition.
[0112] Optionally, the channel quality includes at least one of signal strength and signal-to-noise ratio; and the network connection device 500 further includes:
[0113] The second determining module is configured to determine that the channel quality meets the quality condition when the signal strength is greater than a preset strength threshold and / or the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold.
[0114] Optionally, the network connection device 500 further includes:
[0115] The second ignoring module is configured to ignore the redirection instruction and release the connection resources of the terminal when the target service status is a pending state.
[0116] Optionally, the network connection device 500 further includes:
[0117] The second response module is configured to respond to the redirection instruction to change from the connected target network to the designated network when the target service state is a call state.
[0118] Optionally, the network connection device 500 further includes:
[0119] A first updating module is configured to update the service status of the terminal at least once based on historical service data;
[0120] The third determining module is configured to determine the service state obtained by the last update as the target service state.
[0121] Optionally, the historical service data includes network connection data;
[0122] The first update module includes:
[0123] The first update submodule is configured to initially update the service status of the terminal according to the network connection factors in the network connection data to obtain the initial service status of the terminal, where the service status of the terminal is one of a data status, a call status and a pending status.
[0124] Optionally, the historical service data further includes state transition data; and the network connection device 500 further includes:
[0125] The second updating module is configured to update the initial business state at least once according to the state migration data.
[0126] Optionally, the second update module includes:
[0127] a determination submodule configured to determine, for any business state update, a basic business state and target migration data corresponding to the business state update, wherein the basic business state is the initial business state or the business state obtained after the last business state update, and the target migration data is the state migration data under the basic business state;
[0128] The second updating submodule is configured to update the basic business status according to the target migration data.
[0129] Optionally, the target migration data includes call service data;
[0130] The second updating submodule includes:
[0131] The first updating subunit is configured to update the basic service state to the call state when the basic service state is a data state or a pending state and there is call service data.
[0132] Optionally, the target migration data includes call service data and data transmission status;
[0133] The second updating submodule includes:
[0134] The second updating subunit is configured to update the basic service state to the pending state when the basic service state is the data state, the data transmission state is the transmission completion state, and there is no call service data.
[0135] Optionally, the target migration data includes data service data;
[0136] The second updating submodule includes:
[0137] The third updating subunit is configured to update the basic service state to the data state when the basic service state is in a pending state and there is data service data.
[0138] Optionally, the target migration data includes data service data and call status;
[0139] The second updating submodule includes:
[0140] The fourth updating subunit is configured to update the basic service state to the data state when the basic service state is the call state, the call state is call completed, and the data service data exists.
[0141] Optionally, the target migration data includes data service data and call status;
[0142] The second updating submodule includes:
[0143] The fifth updating subunit is configured to update the basic service status to the pending status when the basic service status is a call status, the call status is call completed, and the data service data does not exist.
[0144] Regarding the network connection device 500 in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0145] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon. When the program instructions are executed by a processor, the steps of the network connection method provided by the present disclosure are implemented.
[0146] Figure 6 6 is a block diagram of an apparatus for network connection according to an exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a digital broadcast terminal, a messaging device, a tablet device, etc.
[0147] Reference Figure 6 , the apparatus 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output interface 612 , a sensor component 614 , and a communication component 616 .
[0148] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the network connection method described above. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
[0149] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0150] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 600.
[0151] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0152] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), which is configured to receive external audio signals when the device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0153] The input / output interface 612 provides an interface between the processing component 602 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0154] The sensor assembly 614 includes one or more sensors for providing various aspects of the status assessment of the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600. The sensor assembly 614 can also detect changes in the position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and temperature changes of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0155] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0156] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described network connection method.
[0157] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions. The instructions can be executed by the processor 620 of the device 600 to perform the above-mentioned network connection method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0158] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit, graphics processor), CPU (Central Processing Unit, central processing unit), FPGA (Field Programmable Gate Array, programmable logic array), DSP (Digital Signal Processor, digital signal processor), ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), SOC (System on Chip, SoC, system on chip or system-level chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned network connection method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned network connection method is implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned network connection method.
[0159] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned network connection method when executed by the programmable device.
[0160] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the present disclosure. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0161] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A network connection method, characterized in that: include: When connected to a target network, in response to receiving a redirection instruction for a network, obtaining a target service state, the redirection instruction being used to instruct the terminal to change from the target network to a designated network, the network quality of the target network being better than the network quality of the designated network; When the target service state is a data state and the data link is normal, determining the channel quality; In a case where the channel quality meets the quality condition, the redirection instruction is ignored, and after the data transmission is completed, the connection resources of the terminal are released.
2. The network connection method according to claim 1, wherein: The method further comprises: In a case where the channel quality does not meet the quality condition, the system responds to the redirection instruction to change from the connected target network to the designated network.
3. The network connection method according to claim 1, wherein: The channel quality includes signal strength and signal-to-noise ratio; When the channel quality satisfies the quality condition, before ignoring the redirection instruction, the method further includes: When the signal strength is greater than a preset strength threshold and the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold, it is determined that the channel quality meets a quality condition.
4. The network connection method according to any one of claims 1 to 3, characterized in that: Before obtaining the target service status in response to receiving the redirection instruction for the network, the method further includes: updating the service status of the terminal at least once based on historical service data; The service state obtained by the latest update is determined as the target service state.
5. The network connection method according to claim 4, characterized in that: The historical business data includes network connection data; The updating of the service status of the terminal at least once according to the historical service data includes: The service state of the terminal is initially updated according to the network connection factors in the network connection data to obtain the initial service state of the terminal, where the service state of the terminal is one of a data state, a call state and a pending state.
6. The network connection method according to claim 5, wherein: The historical business data also includes state transition data; After initially updating the service state of the terminal according to the network connection factor in the network connection data to obtain the initial service state of the terminal, the method further includes: The initial service state is updated at least once according to the state transition data.
7. The network connection method according to claim 6, wherein: The updating of the initial business state at least once according to the state transition data includes: For any business state update, determine the basic business state and target migration data corresponding to the business state update, where the basic business state is the initial business state or the business state obtained after the last business state update, and the target migration data is the state migration data under the basic business state; The basic business status is updated according to the target migration data.
8. The network connection method according to claim 6, wherein: The target migration data includes call service data; The updating of the basic business status according to the target migration data includes: When the basic service state is a data state or a pending state and there is call service data, the basic service state is updated to the call state.
9. The network connection method according to claim 6, wherein: The target migration data includes call service data and data transmission status; The updating of the basic business status according to the target migration data includes: When the basic service state is the data state, the data transmission state is the transmission completion state, and there is no call service data, the basic service state is updated to the pending state.
10. The network connection method according to claim 6, wherein: The target migration data includes data service data; The updating of the basic business status according to the target migration data includes: When the basic service state is in a pending state and there is data service data, the basic service state is updated to the data state.
11. The network connection method according to claim 6, wherein: The target migration data includes data service data and call status; The updating of the basic business status according to the target migration data includes: When the basic service state is a call state, the call state is call completion, and the data service data exists, updating the basic service state to the data state; or, When the basic service state is a call state, the call state is call completion, and the data service data does not exist, the basic service state is updated to the pending state.
12. A network connection device, characterized in that: include: an acquisition module configured to, when connected to a target network, acquire a target service status in response to receiving a redirection instruction for a network, the redirection instruction being used to instruct the terminal to change from the target network to a designated network, the network quality of the target network being better than the network quality of the designated network; A first determining module is configured to determine the channel quality when the target service state is a data state and the data link is normal; The first ignoring module is configured to ignore the redirection instruction if the channel quality meets the quality condition, and release the connection resources of the terminal after the data transmission is completed.
13. A network connection device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the network connection method according to any one of claims 1 to 11 when executing.
14. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the network connection method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Redirection method, device and system
CN106465208A
Service processing method and device
CN107333302A
Wireless communication method and device, user equipment and storage medium
CN114363968A