Network connection method based on multiple user identification cards, electronic equipment and storage medium
By obtaining and determining the network configuration parameters of the target identification card in the multi-user identification card device and establishing multiple network sessions, the problem of unstable network connections in the device is solved, and a more stable and reliable network connection is achieved.
Patent Information
- Application Number
- CN202510089572.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2045-01-20
AI Technical Summary
In devices that use multi-user identification cards, the network connection is unstable, resulting in users needing to manually switch the identification cards or network parameters. The process is complicated and error-prone, and network interruption may occur.
By obtaining the preset network configuration parameters of each user identification card, determining the target identification card, and establishing at least two network connection information as the to-be-connected information based on its network configuration parameters, obtaining network sessions, and achieving simultaneous establishment and automatic switching of multiple network sessions.
It simplifies the steps to establish network sessions, reduces the possibility of errors during network connection, improves the stability and reliability of network connections, and avoids network interruptions.
Smart Images

Figure CN119789241A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things, and in particular to a network connection method, electronic device and storage medium based on a multi-user identification card. Background Art
[0002] With the development of the fifth generation of mobile communication technology, the fifth generation of communication technology with lower cost and light weight has become an important foundation for realizing the interconnection of people, machines and things, and is an important solution for network connection in the field of Internet of Things. In the fifth generation of lightweight communication technology, for application scenarios with high requirements for network connection, in order to ensure the stable connection of IoT devices, dual-user identification card or multi-user identification card technology is usually used for network connection, allowing IoT devices to use the services of two or more network operators at the same time.
[0003] Currently, when a network connection is made on a device that uses dual-user identification cards or multiple-user identification cards, if an unstable connection problem occurs and the user identification cards or network parameters need to be switched, it is usually necessary to manually select and switch the user identification cards, or manually configure the network parameters. This process is complicated and prone to errors, and may also cause network interruptions during the switching process.
[0004] Therefore, how to maintain a stable network connection of a multi-user identity card device has become a problem that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide a network connection method based on a multi-user identity card, an electronic device, and a storage medium, so as to achieve the effect of stabilizing the network connection of a multi-user identity card device.
[0006] In a first aspect, an embodiment of the present application provides a network connection method based on a multi-user identification card, the method is applied to an electronic device, the electronic device is provided with at least two card slots, the card slots are loaded with user identification cards, and includes:
[0007] For each user identification card, obtaining preset network configuration parameters; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used to connect the user identification card to the base station;
[0008] Determine a target identification card from a plurality of user identification cards, and determine the preset network configuration parameters of the target identification card as target network parameters;
[0009] At least two network connection information are determined from the target network parameters as the information to be connected, and a network session is obtained based on the information to be connected; wherein the network connection information corresponds to the network session one-to-one, and the network session is used for the electronic device to communicate with the base station through the target identification card.
[0010] In a possible implementation manner, at least two network connection information are determined from the target network parameters as the information to be connected, including:
[0011] According to a preset arrangement order of the network connection information in the target network parameters, at least two pieces of network connection information are determined from the target network parameters as the information to be connected.
[0012] In a possible implementation, according to a preset arrangement order of the network connection information in the target network parameters, at least two pieces of network connection information are determined from the target network parameters as the information to be connected, including:
[0013] According to a preset arrangement order of the network connection information in the target network parameters, determining the first network connection information from the target network parameters as the first parameter information;
[0014] If the first parameter information establishes a network session between the target identification card and the base station, then according to the preset arrangement order of the network connection information in the target network parameters, the next network connection information is determined from the target network parameters as the second parameter information;
[0015] If the second parameter information establishes a network session between the target identification card and the base station, the first parameter information and the second parameter information are determined as information to be connected.
[0016] In a possible implementation, it further includes:
[0017] If the first parameter information does not establish a network session between the target identification card and the base station, the next network connection information is determined from the target network parameters according to the preset arrangement order of the network connection information in the target network parameters, which is the new first parameter information, until the new first parameter information establishes a network session between the target identification card and the base station.
[0018] In a possible implementation, it further includes:
[0019] If the second parameter information does not establish a network session between the target identification card and the base station, continue to determine the next network connection information from the target network parameters according to the preset arrangement order of the network connection information in the target network parameters, which is the new second parameter information, until the new second parameter information establishes a network session between the target identification card and the base station.
[0020] In a possible implementation, determining a target identification card from a plurality of user identification cards includes:
[0021] According to a preset card slot sequence, a target card slot is determined from a plurality of card slots, and a user identification card in the target card slot is determined as a target identification card.
[0022] In a possible implementation, it further includes:
[0023] If the first parameter information or the second parameter information does not exist in the target network parameters, a new target card slot is determined from the multiple card slots according to a preset card slot sequence, and the user identification card in the new target card slot is determined as a new target identification card;
[0024] Continue to determine the preset network configuration parameters of the new target identification card as new target network parameters, determine at least two network connection information from the new target network parameters as new information to be connected, and obtain a network session according to the new information to be connected.
[0025] In a possible implementation, it further includes:
[0026] Acquire service monitoring data of a network session within a preset first monitoring period; wherein the service monitoring data represents a monitoring result of communication data in the network session;
[0027] If it is determined that abnormal data exists in the business monitoring data within the preset first monitoring period, determining a first maintenance time of the abnormal data;
[0028] If the first maintenance time exceeds a preset first time threshold, the information to be switched is determined from the target network parameters, and a new network session is obtained according to the information to be switched; wherein the information to be switched is network connection information other than the information to be connected.
[0029] In a possible implementation, if the first maintenance time exceeds a preset first time threshold, determining the to-be-switched information from the target network parameter, and obtaining a new network session according to the to-be-switched information, including:
[0030] If the first maintenance time exceeds a preset first time threshold, obtaining service monitoring data of the network session within a preset second monitoring period;
[0031] If it is determined that abnormal data exists in the business monitoring data within the preset second monitoring period, determining a second maintenance time of the abnormal data;
[0032] If the second maintenance time exceeds the preset first time threshold, the information to be switched is determined from the target network parameters, and a new network session is obtained according to the information to be switched.
[0033] In a possible implementation, it further includes:
[0034] Acquire network signal monitoring data of the target identification card within a preset third monitoring period; wherein the network signal monitoring data represents the quality of the network signal;
[0035] If there is preset quality data in the network signal monitoring data within the preset third monitoring period, determining a third maintenance time of the preset quality data; wherein the preset quality data indicates that the quality of the network signal is less than a preset quality threshold;
[0036] If the third maintenance time exceeds a preset second time threshold, an identification card to be switched is determined from a plurality of user identification cards; wherein the identification card to be switched represents a user identification card other than the target identification card.
[0037] In a possible implementation manner, if the third maintenance time exceeds a preset second time threshold, determining an identification card to be switched from a plurality of user identification cards includes:
[0038] If the third maintenance time exceeds the preset second time threshold, obtaining the network signal monitoring data of the target identification card within a preset fourth monitoring period;
[0039] If there is preset quality data in the network signal monitoring data within the preset fourth monitoring period, determining a fourth maintenance time of the preset quality data;
[0040] If the fourth maintaining time exceeds the preset second time threshold, an identification card to be switched is determined from a plurality of user identification cards.
[0041] In a second aspect, an embodiment of the present application provides a network connection device based on a multi-user identification card, comprising:
[0042] An acquisition unit, used for acquiring preset network configuration parameters for each user identification card; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used for connecting the user identification card to the base station;
[0043] A determination unit, used to determine a target identification card from a plurality of user identification cards, and determine the preset network configuration parameters of the target identification card as target network parameters;
[0044] The connection unit is used to determine at least two network connection information from the target network parameters, which are the information to be connected, and obtain a network session based on the information to be connected; wherein the network connection information corresponds to the network session one by one, and the network session is used for the electronic device to communicate with the base station through the target identification card.
[0045] In a third aspect, an embodiment of the present application provides a network connection device based on a multi-user identification card, including: a memory, a processor;
[0046] The memory stores computer-executable instructions;
[0047] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0049] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0050] The network connection method, electronic device and storage medium based on multi-user identification cards provided by the embodiments of the present application obtain network configuration parameters corresponding to each identification card for each user identification card in an electronic device with multiple card slots, and determine a target identification card from multiple identification cards, determine the network configuration parameters of the target identification card as target network parameters, and determine at least two network connection information as information to be connected from the target network parameters, and perform network connection through the information to be connected to obtain a network session corresponding to each information to be connected, thereby achieving the effect of establishing multiple network sessions at the same time. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information subsequently. By establishing a network session based on the target identification card and the target network parameters, the steps of establishing a network session are simplified, and the possibility of errors in the network connection process is reduced. 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 application and, together with the description, serve to explain the principles of the present application.
[0052] Figure 1 A flowchart of a network connection method based on a multi-user identification card provided in this application;
[0053] Figure 2 A flowchart of a network connection method based on a multi-user identification card provided in this application;
[0054] Figure 3 A flowchart of a network connection method based on a multi-user identification card provided in this application;
[0055] Figure 4 A flowchart of a network connection method based on a multi-user identification card provided in this application;
[0056] Figure 5 A structural block diagram of a network connection device based on a multi-user identification card provided in an embodiment of the present disclosure;
[0057] Figure 6 A structural block diagram of a network connection device based on a multi-user identification card provided in an embodiment of the present disclosure;
[0058] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present disclosure;
[0059] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment.
[0060] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0062] First, the terms involved in this application are explained:
[0063] 5G: 5G (5th Generation Mobile Communication Technology) is a new generation of broadband mobile communication technology with the characteristics of high speed, low latency and large connection.
[0064] 5G RedCap: 5G RedCap (Reduced Capability), also known as 5G lightweight technology, is an important foundation for 5G to realize the interconnection of people, machines and things. It aims to reduce the complexity, cost and power consumption of 5G equipment by reducing bandwidth, the number of transmitting and receiving antennas, and the modulation order, so as to better adapt to various application scenarios of the Internet of Things.
[0065] SIM card: SIM (Subscriber Identity Module) card is an identification card held by mobile users of the global mobile communication system, called "subscriber identification card". The global mobile communication system uses SIM cards to identify users.
[0066] DNN: DNN (Data Network Name) consists of a network ID and an operator ID. The network ID indicates that this is an external network, and the operator ID indicates which operator the network belongs to.
[0067] APN: APN (Access Point Name) is a parameter that users must configure when surfing the Internet through their mobile phones. It determines the access method used by the user's mobile phone to access the mobile network. Among them, DNN and APN have the same function. In the 5G network, DNN is equivalent to APN in the 4G network. They are both used to identify an external data network and help users connect to the corresponding network resources and services.
[0068] uci: uci format is a configuration file format, mainly used to store and manage various configuration information, such as network settings, wireless configuration, software package management, etc.
[0069] Base station release: Base station release means that in a mobile communication network, the base station controller releases the wireless resources allocated to a user, including radio spectrum and channel resources. This process usually occurs when the communication between the user equipment and the base station ends, and the base station controller will reallocate these resources to other users to improve the utilization of network resources.
[0070] ICMP: ICMP (Internet Control Message Protocol) is an Internet control message protocol, a sub-protocol of the TCP / IP protocol family, mainly used to transmit control information and error messages between IP hosts and routers. ICMP messages are divided into error report messages and query messages: Error report messages: including target unreachable, timeout, source suppression, etc., used to report errors in the transmission process. Query messages: such as echo request (Echo Request) and echo reply (Echo Reply), used to test the reachability of the target host.
[0071] TCP heartbeat packet: TCP heartbeat packet refers to a special data packet sent regularly between the client and the server in a TCP connection to maintain the validity of the connection. This data packet usually does not contain actual data content and is only used to confirm that the other party is still online and the connection is still active.
[0072] RSRP: RSRP (Reference Signal Receiving Power) is one of the key parameters used to represent the strength of wireless signals in the network. The RSRP value range is usually -44 to -140dBm, and the larger the value, the better the signal strength.
[0073] RSRQ: RSRQ (Reference Signal Receiving Quality) indicates reference signal receiving quality, which is the ratio of signal power to interference and noise power density. Its range is -19.5dB to -3dB. The smaller the absolute value, the better.
[0074] SINR: SINR (Signal to Interference plus Noise Ratio) reflects the purity of the signal and is measured in dB. The standard range is -20dB to 30dB.
[0075] With the development and application of 5G technology, 5G lightweight technology has become an important foundation for 5G to realize the interconnection of people, machines and things, and is an important solution for realizing network connection in the field of Internet of Things. 5G lightweight technology is suitable for Internet of Things devices with high network requirements, such as industrial Internet of Things devices. In the application of 5G lightweight technology, in order to cope with complex application environments and to maintain stable and reliable network connections, at least two SIM cards of different network operators are usually used for network connection and communication to cope with emergencies, or the phenomenon of poor signal quality of a single network operator in a certain area, to ensure the stability of network connection.
[0076] At present, when IoT devices with multiple SIM cards face unstable network connections, they need to switch the SIM card, or the DNN or APN of the SIM card. Usually, users are required to manually switch SIM cards or configure DNN parameters. This operation is complicated and prone to errors. In addition, when only DNN switching is performed, network interruptions will still occur, affecting the operation of IoT devices.
[0077] The network connection method, electronic device and storage medium based on a multi-user identification card provided in the present application are intended to solve the above technical problems in the prior art.
[0078] The application scenario of the present application is an IoT device with multiple SIM cards that uses 5G lightweight technology. It is specifically used to select a target SIM card from multiple SIM cards, and establish at least two network sessions based on the network configuration parameters of the target SIM card, so that the SIM card can simultaneously make at least two independent network connections, thereby increasing the stability of the network connection of the IoT device, and can realize automatic switching of SIM cards and network configuration parameters, making the network connection of the IoT device more reliable.
[0079] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0080] Figure 1 A flow chart of a network connection method based on a multi-user identification card provided in the present application is provided. The method is applied to an electronic device, on which at least two card slots are deployed, and the card slots are loaded with user identification cards. The method can be executed by a network connection device based on a multi-user identification card.
[0081] like Figure 1 As shown, the method comprises the following steps:
[0082] S101. For each user identification card, obtain preset network configuration parameters; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used to connect the user identification card to a base station.
[0083] Exemplarily, at least two card slots are deployed in the electronic device, and the card slots are used to load user identification cards. Among them, the user identification card is a SIM card. The network configuration parameters of each SIM card are pre-set, and the network configuration parameters include multiple network connection information. The network connection information is used to connect the user identification card to the base station so that the electronic device can communicate through the SIM card. The network configuration parameters may include multiple network connection information, and the network connection information may be the configuration information of DNN or APN. For example, if the network connection information is DNN information, the network configuration parameters may include multiple DNN information, and each network connection information may include DNN name, user name, password and other content. For any SIM card, the preset network configuration parameters corresponding to the SIM card may include up to 10 network connection information.
[0084] Detecting the SIM card in the electronic device, for example, identifying the number of card slots in the electronic device and detecting whether there is a SIM card in each card slot. If there are at least two SIM cards in the electronic device, for each SIM card, obtaining the preset network configuration parameters of the SIM card.
[0085] In one example, a visual configuration interface for network configuration parameters is also included, in which the user can configure the network configuration parameters corresponding to the SIM card, that is, set the network connection information in the configuration interface, and after the setting is completed, store the network configuration parameters. The network configuration parameters are stored as a configuration file in uci format for easy reading.
[0086] In one example, when the network connection information is pre-set, the network connection information will be verified to verify whether the network connection information can access the base station. If the connection between the network connection information and the base station is abnormal, the network connection information with abnormal connection will be deleted to ensure the timeliness of the network connection information. For example, if the network connection information is DNN information, a network access request is initiated to the base station according to the DNN name, user name, password and other contents in the network connection information. After receiving the request, the base station authenticates the network connection information. If the authentication is successful, the network connection is normal; if the authentication fails, the network connection is abnormal, and the network connection information with abnormal connection is deleted. Among them, the authentication process can be that after receiving the network access request, the base station obtains the network connection information of the electronic device, verifies the network connection information, compares the network connection information with the user information of the same user name stored in the preset authentication database, and if the comparison results are consistent, the authentication is successful and the network connection is allowed to be established; if the comparison results are inconsistent, the authentication fails and the network connection is rejected. Among them, the user information includes a user name and a password, and the user information is stored in a preset authentication database. The user information is used to verify the network connection information.
[0087] S102: Determine a target identification card from a plurality of user identification cards, and determine preset network configuration parameters of the target identification card as target network parameters.
[0088] Exemplarily, one or more user identification cards are determined from a plurality of user identification cards as target identification cards. For example, in an electronic device, there is a sequential relationship between the card slots of the SIM cards, the number of the card slot is the sorting position of the card slot in the sequence, and the number of the SIM card in the card slot is the number of the card slot. For example, there are two card slots in the electronic device, which are card slot 1 and card slot 2 in sequence, and the SIM card in card slot 1 is SIM card 1. According to the number of the SIM card slot in the electronic device, the user identification card with the card slot number 1 can be determined as the target identification card, that is, SIM card 1 is determined as the target SIM card.
[0089] The network configuration parameters of the target SIM card are determined as target network parameters.
[0090] S103. Determine at least two network connection information from the target network parameters as the information to be connected, and obtain a network session based on the information to be connected; wherein the network connection information corresponds to the network session one-to-one, and the network session is used for the electronic device to communicate with the base station through the target identification card.
[0091] Exemplarily, for any target identification card, at least two network connection information can be determined from the target network parameters of the target identification card as the information to be connected. For example, the number of network sessions is preset, that is, the number of network sessions that need to be established simultaneously. The size of the number of network sessions is at least 2, and the maximum value of the number of network sessions can be 10. For example, the number of network sessions can be 2 or 3. If the preset number of network sessions is 2, the first two network connection information can be determined as the information to be connected according to the default order of the network connection information in the target network parameters. Each piece of information to be connected can be the configuration information of DNN or APN.
[0092] For any information to be connected, a network connection is performed according to the information to be connected, and an IP address corresponding to the connection is configured for the information to be connected, so as to obtain a network session corresponding to the information to be connected, that is, to obtain a network session corresponding to the network connection information. The network session is used for the electronic device to communicate with the base station through the target SIM card, that is, the network session is a channel for data transmission in the network connection. The IP address can be configured by automatically obtaining an IP address for the corresponding network session, that is, using a dynamic IP address.
[0093] In one example, for each pending connection information that successfully establishes a network session, the pending connection information is backed up to facilitate quick switching of the pending connection information when it is needed later. For example, if the pending connection information is DNN information, and a network session is successfully established based on the pending connection information, the pending connection information that can successfully establish a network session can be backed up and stored, which can be stored in a preset database. If the electronic device switches the network connection information during use, and the backed-up stored pending connection information needs to be used, the pending connection information can be read from the preset database to facilitate quick switching.
[0094] In one example, the target network parameters can be obtained by reading a network parameter configuration file in uci format from a target SIM card.
[0095] The network connection method, electronic device and storage medium based on multi-user identification cards provided by the embodiments of the present application obtain network configuration parameters corresponding to each identification card for each user identification card in an electronic device with multiple card slots, and determine a target identification card from multiple identification cards, determine the network configuration parameters of the target identification card as target network parameters, and determine at least two network connection information as information to be connected from the target network parameters, and perform network connection through the information to be connected to obtain a network session corresponding to each information to be connected, thereby achieving the effect of establishing multiple network sessions at the same time. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information subsequently. By establishing a network session based on the target identification card and the target network parameters, the steps of establishing a network session are simplified, and the possibility of errors in the network connection process is reduced.
[0096] Figure 2 A flowchart of a network connection method based on a multi-user identification card is provided in an embodiment of the present disclosure.
[0097] In this embodiment, determining at least two network connection information from the target network parameters as the information to be connected includes: determining at least two network connection information from the target network parameters as the information to be connected according to a preset arrangement order of the network connection information in the target network parameters.
[0098] like Figure 2 As shown, the method comprises the following steps:
[0099] S201. For each user identification card, obtain preset network configuration parameters; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used to connect the user identification card to a base station.
[0100] Exemplarily, this step may refer to the above-mentioned step S101 and will not be described in detail.
[0101] S202: Determine a target identification card from a plurality of user identification cards, and determine preset network configuration parameters of the target identification card as target network parameters.
[0102] Exemplarily, this step may refer to the above-mentioned step S102 and will not be described in detail.
[0103] S203: According to a preset arrangement order of the network connection information in the target network parameters, determine at least two pieces of network connection information from the target network parameters as the information to be connected.
[0104] Exemplarily, the network connection information in the network configuration parameters has a preset arrangement order, and the preset arrangement order may be the order of setting time when the network connection information in the network configuration parameters is preset.
[0105] After the preset network configuration parameters of the target SIM card are determined as the target network parameters, at least two network connection information are determined from the target network parameters according to the arrangement order of the network connection information in the target network parameters as the information to be connected. For example, if the preset arrangement order is in the order of the setting time of the network connection information, then the two network connection information with the most recent setting time in the preset arrangement order can be selected as the information to be connected.
[0106] The beneficial effect of such a setting is that there is a preset arrangement order between the network connection information, which is convenient for subsequent selection and switching according to the order, making the network connection information easier to process and save. From the network connection information, at least two network connection information are selected as the information to be connected, which is convenient for the subsequent establishment of at least two network sessions, making the network connection more stable.
[0107] In this embodiment, according to the preset arrangement order of the network connection information in the target network parameters, at least two network connection information are determined from the target network parameters as information to be connected, including: according to the preset arrangement order of the network connection information in the target network parameters, the first network connection information is determined from the target network parameters as the first parameter information; if the first parameter information constructs a network session between the target identification card and the base station, then according to the preset arrangement order of the network connection information in the target network parameters, the next network connection information is determined from the target network parameters as the second parameter information; if the second parameter information constructs a network session between the target identification card and the base station, the first parameter information and the second parameter information are determined as information to be connected.
[0108] Specifically, according to the preset arrangement order of the target network connection information, the first network connection information is determined from the target network parameters as the first parameter information. For example, the network connection information ranked first in the target network parameters may be determined as the first parameter information. The parameters such as the IP address of the first parameter information are configured, and the first network session is established according to the first parameter information. The first parameter information may also be backed up and stored as needed.
[0109] If the network session between the target SIM card and the base station is successfully established according to the first parameter information, the next network connection information is determined from the target network parameters according to the preset arrangement order of the network connection information in the target network parameters, which is the second parameter information. For example, if the first parameter information is the first network connection information in the target network parameters, and the network session is successfully established according to the first parameter information, the second-ranked network connection information can be determined from the target network parameters according to the preset arrangement order as the second parameter information. Configure the parameters such as the IP address of the second parameter information, and establish the second network session according to the second parameter information. If necessary, the second parameter information can also be backed up and stored.
[0110] If the second parameter information successfully establishes a network session between the target SIM card and the base station, the first parameter information and the second parameter information are determined as information to be connected, wherein the information to be connected represents network connection information used to establish a network session.
[0111] In one example, more information to be connected can be determined, that is, more network sessions can be established at the same time.
[0112] The beneficial effect of such a setting is that, for any target SIM card, a network session is first established from the target network parameters of the SIM card in a preset arrangement order, and after the first network session is established, a second network session is established, so that the target SIM card can simultaneously connect to at least two network sessions, thereby improving the stability of the network connection.
[0113] In this embodiment, it also includes: if the first parameter information does not establish a network session between the target identification card and the base station, then according to the preset arrangement order of the network connection information in the target network parameters, the next network connection information is determined from the target network parameters as the new first parameter information, until the new first parameter information establishes a network session between the target identification card and the base station.
[0114] Specifically, if the first parameter information does not establish a network session between the target SIM card and the base station, that is, an abnormality occurs when performing network connection according to the first parameter information, then according to the preset arrangement order of the network connection information in the target network parameter, the next network connection information is determined from the target network parameter as new first parameter information, and the network session is established according to the new first parameter information. If the new first parameter information still cannot successfully establish a network session, the new first parameter information is determined again until the new first parameter information establishes a network session between the target identification card and the base station. For example, if the network connection information at the first position of the target network parameter does not establish a network session, then according to the preset arrangement order, the next position of the network connection information, that is, the second position of the network connection information, is determined as the new first parameter information, and the network connection is re-established to establish the network session. If it still fails to be established, the next position of the network connection information, that is, the third position of the network connection information, is continued to be selected, and the connection information is determined as the new first parameter information until the new first parameter information successfully establishes a network connection and successfully establishes a network session between the target SIM card and the base station.
[0115] If all the network connection information in the target network parameters cannot successfully establish a network connection, that is, cannot build a network session between the target SIM card and the base station, then the first parameter information does not exist.
[0116] In one example, the process of connecting to the network according to the first parameter information is monitored. If there are problems such as abnormal network signal, base station release, and unreachable link, it can be determined that the first parameter information does not establish a network session between the target SIM card and the base station, that is, the network connection according to the first parameter information is abnormal. The network signal abnormality refers to the abnormal network signal received by the electronic device; the unreachable link refers to the inability to connect to the base station.
[0117] The beneficial effect of such a setting is that although the network connection information therein will be verified when the network configuration parameters are preset, due to various factors such as changes in the usage location and application scenarios during the use of the electronic device, the network connection information in the network configuration parameters may not conform to all application scenarios. The network connection of the first parameter information is verified to be successful, and the reliability of the network connection information is checked. If the first parameter information is not successfully established, the first parameter information is quickly reselected in sequence to ensure that the network session is established.
[0118] In this embodiment, it also includes: if the second parameter information fails to establish a network session between the target identification card and the base station, then continue to determine the next network connection information from the target network parameters according to the preset arrangement order of the network connection information in the target network parameters, which is the new second parameter information, until the new second parameter information establishes a network session between the target identification card and the base station.
[0119] Specifically, if the first parameter information can successfully establish a network session, but the second parameter does not establish a network session between the target SIM card and the base station, then based on the preset arrangement order of the network connection information in the target network parameter, the next network connection information is determined from the target network parameter as the new second parameter information, and the network session is re-established according to the new second parameter information. If the network session still cannot be established, the new second parameter information is determined again until the new second parameter information establishes the network session between the target identification card and the base station. For example, if the first parameter information is the network connection information at the first position in the target network parameter, and the network session is successfully established, and the second parameter is the network connection information at the second position in the target network parameter, and the network session fails to be established, then the network connection information at the third position can be selected according to the preset arrangement order, and the network connection information is determined as the new second parameter information, and the network connection is performed. If the establishment is still unsuccessful, the next position of the network connection information, that is, the fourth position of the network connection information, is selected, and the connection information is determined as the new second parameter information, until the new second parameter information successfully performs the network connection and successfully establishes the network session between the target SIM card and the base station.
[0120] If the remaining network connection information except the network connection information of the first parameter information cannot establish a network session, the second parameter does not exist, and only the first parameter information is used as the information to be connected.
[0121] The beneficial effect of such a setting is that a second parameter that can successfully establish a network session is determined from the network connection information of the target network parameter, so that at least two network sessions can be established simultaneously through the parameters to be connected, thereby improving the stability and reliability of the network connection.
[0122] S204: Obtain a network session according to the information to be connected.
[0123] Exemplarily, this step may refer to the above-mentioned step S103 and will not be described in detail.
[0124] The network connection method, electronic device and storage medium based on multi-user identification cards provided by the embodiments of the present application obtain network configuration parameters corresponding to each identification card for each user identification card in an electronic device with multiple card slots, and determine a target identification card from multiple identification cards, determine the network configuration parameters of the target identification card as target network parameters, and determine at least two network connection information as information to be connected from the target network parameters, and perform network connection through the information to be connected to obtain a network session corresponding to each information to be connected, thereby achieving the effect of establishing multiple network sessions at the same time. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information subsequently. By establishing a network session based on the target identification card and the target network parameters, the steps of establishing a network session are simplified, and the possibility of errors in the network connection process is reduced.
[0125] Figure 3 A schematic flow chart of a network connection method based on a multi-user identification card provided in an embodiment of the present disclosure.
[0126] In this embodiment, determining a target identification card from a plurality of user identification cards includes: determining a target card slot from a plurality of card slots according to a preset card slot sequence, and determining the user identification card in the target card slot as the target identification card.
[0127] like Figure 3 As shown, the method comprises the following steps:
[0128] S301. For each user identification card, obtain preset network configuration parameters; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used to connect the user identification card to a base station.
[0129] Exemplarily, this step may refer to the above-mentioned step S101 and will not be described in detail.
[0130] S302: Determine a target card slot from a plurality of card slots according to a preset card slot sequence, and determine the subscriber identification card in the target card slot as the target identification card.
[0131] Specifically, there is a pre-set card slot sequence between the card slots in the electronic device, a target card slot is determined from multiple card slots, and the subscriber identification card in the target card slot is determined as the target identification card, that is, the SIM card in the target card slot is determined as the target SIM card. For example, according to the pre-set card slot sequence, the SIM card in the card slot that is located first in the sequence may be determined as the target SIM card.
[0132] The beneficial effect of such a setting is that the target SIM card can be determined according to the preset order of the card slots, so that the SIM cards can be effectively and quickly distinguished and the target SIM card can be quickly determined.
[0133] In this embodiment, it also includes: if the first parameter information or the second parameter information does not exist in the target network parameters, a new target card slot is determined from multiple card slots according to a preset card slot order, and the user identification card in the new target card slot is determined as a new target identification card; the preset network configuration parameters of the new target identification card are continued to be determined as new target network parameters, at least two network connection information are determined from the new target network parameters as new information to be connected, and a network session is obtained according to the new information to be connected.
[0134] Specifically, if the target network parameters do not contain the first parameter information or the second parameter information, that is, there is only one network connection information that can establish a network session in the target network parameters, or there is no network connection information that can establish a network session in the target network parameters, then a new target card slot is determined from multiple card slots according to the preset card slot sequence, and the SIM card in the new target card slot is determined as the new target SIM card. For example, if the network configuration parameters of SIM card 1 located in card slot 1 do not contain the first parameter information or the second parameter information, that is, the network connection information in the network configuration parameters can only establish a network session at most, then according to the preset card slot sequence, the next card slot of card slot 1 is selected as the new target card slot, that is, card slot 2 is used as the new target card slot, and the SIM card in card slot 2 is used as the new target SIM card.
[0135] The preset network configuration parameters of the new target SIM card are determined as new target network parameters, and at least two network connection information are re-determined from the new target parameters, and the at least two network connection information are determined as new information to be connected, and at least two network sessions are obtained according to the new information to be connected. The at least two network connection information re-determined need to be able to establish at least two network sessions at the same time.
[0136] If at least two network sessions cannot be established simultaneously in the new target network parameters of the new target SIM card, a new target card slot is determined again according to the preset card slot order, and a new target SIM card and new target network parameters are determined until at least two network sessions can be established simultaneously with the new target SIM card according to the new network connection information.
[0137] If the network connection information in the preset network configuration parameters of all SIM cards cannot establish at least two network sessions at the same time, an alarm message is generated, wherein the alarm message is used to instruct the user to repair the electronic device.
[0138] The beneficial effect of such a setting is that when the selected SIM card cannot establish two network sessions at the same time, the SIM cards can be switched according to the card slot order, the next SIM card can be selected, and the network connection can be re-established and the network session can be established according to the network configuration parameters of the next SIM card, thereby ensuring the quality and stability of the electronic device connection.
[0139] S303: Determine the preset network configuration parameters of the target identification card as the target network parameters.
[0140] Exemplarily, this step may refer to the above-mentioned step S102 and will not be described in detail.
[0141] S304. Determine at least two network connection information from the target network parameters as the information to be connected, and obtain a network session based on the information to be connected; wherein the network connection information corresponds to the network session one-to-one, and the network session is used for the electronic device to communicate with the base station through the target identification card.
[0142] Exemplarily, this step may refer to the above-mentioned step S103 and will not be described in detail.
[0143] The network connection method, electronic device and storage medium based on multi-user identification cards provided by the embodiments of the present application obtain network configuration parameters corresponding to each identification card for each user identification card in an electronic device with multiple card slots, and determine a target identification card from multiple identification cards, determine the network configuration parameters of the target identification card as target network parameters, and determine at least two network connection information as information to be connected from the target network parameters, and perform network connection through the information to be connected to obtain a network session corresponding to each information to be connected, thereby achieving the effect of establishing multiple network sessions at the same time. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information subsequently. By establishing a network session based on the target identification card and the target network parameters, the steps of establishing a network session are simplified, and the possibility of errors in the network connection process is reduced.
[0144] Figure 4 A schematic flow chart of a network connection method based on a multi-user identification card provided in an embodiment of the present disclosure.
[0145] In this embodiment, it also includes: obtaining business monitoring data of the network session within a preset first monitoring period; wherein the business monitoring data represents the monitoring results of the communication data in the network session; if it is determined that there is abnormal data in the business monitoring data within the preset first monitoring period, then determining a first maintenance time of the abnormal data; if the first maintenance time exceeds a preset first time threshold, determining the information to be switched from the target network parameters, and obtaining a new network session based on the information to be switched; wherein the information to be switched is the network connection information other than the information to be connected.
[0146] like Figure 4 As shown, the method comprises the following steps:
[0147] S401. For each user identification card, obtain preset network configuration parameters; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used to connect the user identification card to a base station.
[0148] Exemplarily, this step may refer to the above-mentioned step S101 and will not be described in detail.
[0149] S402: Determine a target identification card from a plurality of user identification cards, and determine preset network configuration parameters of the target identification card as target network parameters.
[0150] Exemplarily, this step may refer to the above-mentioned step S102 and will not be described in detail.
[0151] S403, determining at least two network connection information from the target network parameters as the information to be connected, and obtaining a network session according to the information to be connected; wherein the network connection information corresponds to the network session one-to-one, and the network session is used for the electronic device to communicate with the base station through the target identification card.
[0152] Exemplarily, this step may refer to the above-mentioned step S103 and will not be described in detail.
[0153] S404: Acquire service monitoring data of the network session within a preset first monitoring period; wherein the service monitoring data represents a monitoring result of communication data in the network session.
[0154] Exemplarily, a first monitoring period is preset, and the first monitoring period is a period for monitoring communication data in a network session. The preset first monitoring period can be adjusted according to the importance of different usage scenarios. The preset first monitoring period can be, for example, 1 minute.
[0155] For any network session, obtain the service monitoring data of the network session within the preset first monitoring period, and the service monitoring data represents the monitoring result of the communication data generated in the network session. The communication data may be the data packets generated in the network session, and the service monitoring data may be the analysis result of the data packets, for example, the flow of the network session may be obtained by analyzing the number of data packets; by analyzing the data packets, monitor whether the data in the current network session is used for the core business; by analyzing the sending time and receiving time of the data packets, monitor the delay time of the data in the current network session; the monitoring data may also be the ICMP and TCP heartbeat packets generated in the network session.
[0156] The beneficial effect of such a setting is that, for an established network session, the business monitoring data of the network session is periodically obtained, and the operating status of the network session can be obtained in real time, which facilitates timely processing of network sessions with abnormal status and ensures the stability and reliability of the network connection of electronic devices.
[0157] S405: If it is determined that abnormal data exists in the business monitoring data within the preset first monitoring period, determine a first maintenance time of the abnormal data.
[0158] Exemplarily, the business monitoring data is detected to detect whether there is abnormal data in the business monitoring data. The abnormal data represents the communication data that may affect the normal operation of the electronic device. The abnormal data may be, for example, data packet delay exceeding a preset delay threshold; the number of data packets is lower than a preset data packet number threshold; the data packet is not used for the core business of the electronic device, and other abnormal data.
[0159] If it is determined that there is abnormal data in the business monitoring data within the preset first monitoring period, the duration of the abnormal data within the preset first monitoring period is determined as the first maintenance time. For example, the duration of a state in which the number of data packets in the business monitoring data is lower than a preset data packet number threshold may be determined as the first maintenance time.
[0160] The beneficial effect of such a setting is that the duration of various abnormal data in the network session is determined in real time, and the working state of the network session is determined according to the duration, so as to facilitate rapid response and switch of network connection information.
[0161] S406: If the first maintenance time exceeds a preset first time threshold, determine the information to be switched from the target network parameters, and obtain a new network session according to the information to be switched; wherein the information to be switched is the network connection information other than the information to be connected.
[0162] Exemplarily, if the first maintenance time of any network session exceeds the preset first time threshold, the working state of the network session is abnormal, and the information to be switched is determined from the target network parameters according to the preset arrangement order from the network connection information other than the information to be connected. For example, if there are currently two network sessions, the network connection information corresponding to network session 1 is the network connection information ranked first in the target network parameters, and the network connection information corresponding to network session 2 is the network connection information ranked second in the target network parameters, and the first maintenance time of network session 1 exceeds the preset first time threshold, that is, the duration of the abnormal data in network session 1 exceeds the preset first time threshold, then the network connection information ranked third in the target network parameters can be determined as the information to be switched.
[0163] According to the information to be switched, a network connection is made to establish a network session between the target identification card and the base station. If the information to be switched cannot establish a network session between the target identification card and the base station, the next network connection information is determined from the target network parameters according to the preset arrangement order of the network connection information in the target network parameters, and is the new information to be switched, until the new information to be switched establishes a network session between the target identification card and the base station.
[0164] If the network connection information other than the to-be-connected information cannot establish a network session between the target identification card and the base station, that is, two network sessions cannot be established simultaneously, the target SIM card and target network parameters can be re-determined to re-establish the network session.
[0165] The beneficial effect of such a setting is that by switching the network connection information of the network session whose working status does not meet the requirements, the electronic device can be kept in the best working state, and because at least two network sessions are used to connect simultaneously, the network connection can still be maintained uninterrupted when switching, thus solving the network disconnection phenomenon caused by switching network connection information.
[0166] In this embodiment, if the maintenance time exceeds a preset first time threshold, at least two network connection information are determined from the target network parameters as information to be switched, and a network session is obtained based on the information to be switched, including: if the first maintenance time exceeds the preset first time threshold, the business monitoring data of the network session within a preset second monitoring period is obtained; if it is determined that there is abnormal data in the business monitoring data within the preset second monitoring period, the second maintenance time of the abnormal data is determined; if the second maintenance time exceeds the preset first time threshold, the information to be switched is determined from the target network parameters, and a new network session is obtained based on the information to be switched.
[0167] Specifically, a second monitoring period is preset, and the second monitoring period is preset. The second monitoring period is a period for monitoring the communication data in the network session. The second monitoring period can be, for example, 1 minute. If the first maintenance time of the abnormal data exceeds the preset first time threshold, the service monitoring data of the network session in the preset second monitoring period is obtained, and the service monitoring data in the preset second monitoring period is detected to detect whether there is abnormal data therein. If it is determined that there is still abnormal data in the service monitoring data in the preset second monitoring period, the duration of the abnormal data in the second monitoring period is determined to be the second maintenance time. If the second maintenance time still exceeds the preset first time threshold, the information to be switched is determined from the target network parameters, and a new network session is obtained based on the information to be switched.
[0168] The beneficial effect of such a setting is that the monitoring results of the working status of the network session are de-jittered. When it is monitored that the first maintenance time exceeds the preset first time threshold, the business monitoring data in the second monitoring period is obtained for re-verification. If the duration of abnormal data in the business monitoring data in the first monitoring period and the second monitoring period exceeds the first time threshold, the information to be switched is determined, the network connection information is switched, and a new network session is established, which makes the judgment more rigorous, avoids the jitter of the business monitoring data caused by network fluctuations, and reduces the possibility of misjudgment.
[0169] In this embodiment, it also includes: obtaining network signal monitoring data of the target identification card within a preset third monitoring period; wherein the network signal monitoring data represents the quality of the network signal; if there is preset quality data in the network signal monitoring data within the preset third monitoring period, determining a third maintenance time of the preset quality data; wherein the preset quality data represents that the quality of the network signal is less than a preset quality threshold; if the third maintenance time exceeds a preset second time threshold, determining an identification card to be switched from multiple user identification cards; wherein the identification card to be switched represents a user identification card other than the target identification card.
[0170] Specifically, a third monitoring period is preset, and the third monitoring period is a time period for monitoring the network signal of the SIM card. The third monitoring period may be, for example, 1 minute. The monitoring data of the network signal of the target SIM card within the preset third monitoring period is obtained. The monitoring data of the network signal represents the quality of the network signal, and the network signal monitoring data may be, for example, parameters such as RSRP, RSRQ, and SINR.
[0171] The quality threshold of each parameter in the network signal monitoring data is set in advance. The quality threshold is the threshold of the network signal monitoring data value to ensure the normal operation of the SIM card. It is used to determine whether the network signal monitoring data is normal. If any parameter in the network signal monitoring data is not within the preset quality threshold for normal operation, the data is preset quality data, that is, network signal monitoring data with low network signal quality.
[0172] Determine the duration of the preset quality data within the preset third monitoring period as the third maintenance time, and if the third maintenance time exceeds the preset second time threshold, determine the identification card to be switched from the multiple user identification cards. For example, if the current target SIM card is the SIM card in the card slot 1, and the duration of the preset quality data of the current target SIM card, that is, the third maintenance time, exceeds the preset second time threshold, then from the SIM cards in other card slots except the SIM card in the card slot 1, according to the order of the card slots, select the SIM card in the card slot 2 as the SIM card to be switched, and re-establish the network session.
[0173] The beneficial effect of such a setting is that the signal quality of the SIM card is monitored, and when the signal quality is lower than a preset quality threshold, the SIM card is switched in time, thereby realizing the automation of SIM card switching and making the network connection of the electronic device more stable.
[0174] In this embodiment, if the third maintenance time exceeds the preset second time threshold, the identification card to be switched is determined from multiple user identification cards, including: if the third maintenance time exceeds the preset second time threshold, obtaining the network signal monitoring data of the target identification card within the preset fourth monitoring period; if there is preset quality data in the network signal monitoring data within the preset fourth monitoring period, determining the fourth maintenance time of the preset quality data; if the fourth maintenance time exceeds the preset second time threshold, determining the identification card to be switched from multiple user identification cards.
[0175] Specifically, a fourth monitoring period is preset, and the fourth monitoring period is a time period for monitoring the network signal of the SIM card. The fourth monitoring period can be, for example, 1 minute. The network signal monitoring data of the target SIM card within the preset fourth monitoring period is obtained, and according to the preset quality threshold, it is determined whether there is preset quality data in the network signal monitoring data within the preset fourth monitoring period. If there is preset quality data, the duration of the preset quality data within the preset fourth monitoring period is determined as the fourth maintenance time. If the fourth maintenance time exceeds the preset second time threshold, the identification card to be switched is determined from multiple user identification cards, and the network session is re-established.
[0176] The beneficial effect of such a setting is that when it is monitored that the duration of the preset quality data in the third monitoring cycle exceeds the second time threshold, the network signal monitoring data in the fourth monitoring cycle is obtained again and the judgment is made again. If the duration of the preset quality data in the two monitoring cycles is lower than the second time threshold, it is judged that the signal quality is poor, and the SIM card is switched, making the switching more accurate and reducing the possibility of misjudgment.
[0177] The network connection method, electronic device and storage medium based on multi-user identification cards provided by the embodiments of the present application obtain network configuration parameters corresponding to each identification card for each user identification card in an electronic device with multiple card slots, and determine a target identification card from multiple identification cards, determine the network configuration parameters of the target identification card as target network parameters, and determine at least two network connection information as information to be connected from the target network parameters, and perform network connection through the information to be connected to obtain a network session corresponding to each information to be connected, thereby achieving the effect of establishing multiple network sessions at the same time. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information subsequently. By establishing a network session based on the target identification card and the target network parameters, the steps of establishing a network session are simplified, and the possibility of errors in the network connection process is reduced.
[0178] Figure 5 A structural block diagram of a network connection device based on a multi-user identification card provided in an embodiment of the present disclosure.
[0179] For the sake of convenience, only the parts related to the embodiments of the present disclosure are shown. Figure 5 The network connection device 500 based on the multi-user identity card includes: an acquisition unit 501, a determination unit 502 and a connection unit 503.
[0180] The acquisition unit 501 is used to acquire preset network configuration parameters for each user identification card; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used to connect the user identification card to the base station;
[0181] A determination unit 502, configured to determine a target identification card from a plurality of user identification cards, and determine the preset network configuration parameters of the target identification card as target network parameters;
[0182] The connection unit 503 is used to determine at least two network connection information from the target network parameters, which are the information to be connected, and obtain a network session based on the information to be connected; wherein the network connection information corresponds to the network session one by one, and the network session is used for the electronic device to communicate with the base station through the target identification card.
[0183] Figure 6 A structural block diagram of a network connection device based on a multi-user identification card provided in an embodiment of the present disclosure.
[0184] exist Figure 5 Based on the embodiment shown, Figure 6 As shown, the connection unit 503 includes an information determination module 5031 and a connection module 5032 .
[0185] The information determination module 5031 is used to determine at least two pieces of network connection information from the target network parameters according to a preset arrangement order of the network connection information in the target network parameters, as the information to be connected.
[0186] The connection module 5032 is used to obtain a network session according to the information to be connected.
[0187] In one example, the information determination module 5031 includes:
[0188] A first parameter submodule, configured to determine the first network connection information from the target network parameters according to a preset arrangement order of the network connection information in the target network parameters, as the first parameter information;
[0189] A second parameter submodule, for determining the next network connection information from the target network parameters as the second parameter information according to a preset arrangement order of the network connection information in the target network parameters if the first parameter information establishes a network session between the target identification card and the base station;
[0190] The connection information submodule is used to determine the first parameter information and the second parameter information as information to be connected if the second parameter information establishes a network session between the target identification card and the base station.
[0191] In one example, the information determination module 5031 further includes:
[0192] The first re-determination submodule is used to determine the next network connection information from the target network parameters as the new first parameter information if the first parameter information fails to establish a network session between the target identification card and the base station, according to the preset arrangement order of the network connection information in the target network parameters, until the new first parameter information establishes a network session between the target identification card and the base station.
[0193] In one example, the information determination module 5031 further includes:
[0194] The second re-determination submodule is used to continue to determine the next network connection information from the target network parameters according to the preset arrangement order of the network connection information in the target network parameters if the second parameter information fails to establish a network session between the target identification card and the base station, as the new second parameter information, until the new second parameter information establishes a network session between the target identification card and the base station.
[0195] In one example, the determining unit 502 includes:
[0196] The identification and determination module is used to determine a target card slot from a plurality of card slots according to a preset card slot sequence, and determine the user identification card in the target card slot as the target identification card.
[0197] In one example, the identification and determination module further includes:
[0198] a card slot submodule, for determining a new target card slot from a plurality of card slots according to a preset card slot sequence if the first parameter information or the second parameter information does not exist in the target network parameters, and determining the user identification card in the new target card slot as a new target identification card;
[0199] The reconnection submodule is used to continue to determine the preset network configuration parameters of the new target identification card as new target network parameters, determine at least two network connection information from the new target network parameters as new information to be connected, and obtain a network session based on the new information to be connected.
[0200] In one example, it also includes:
[0201] A service monitoring unit, configured to obtain service monitoring data of a network session within a preset first monitoring period; wherein the service monitoring data represents a monitoring result of communication data in the network session;
[0202] an abnormal unit, configured to determine a first maintenance time of the abnormal data if it is determined that abnormal data exists in the business monitoring data within a preset first monitoring period;
[0203] The first switching unit is used to determine at least two network connection information from the target network parameters as the information to be switched if the first maintenance time exceeds a preset first time threshold, and obtain a network session based on the information to be switched; wherein the information to be switched is the network connection information other than the information to be connected.
[0204] In one example, the first switching unit includes:
[0205] A first monitoring module, configured to obtain service monitoring data of the network session within a preset second monitoring period if the maintenance time exceeds a preset first time threshold;
[0206] An abnormal module, used for determining a second maintenance time of the abnormal data if it is determined that there is abnormal data in the business monitoring data within the preset second monitoring period;
[0207] The first switching module is used to determine at least two network connection information from the target network parameters as the information to be switched if the second maintenance time exceeds the preset first time threshold, and obtain a network session based on the information to be switched; wherein the information to be switched is the network connection information other than the information to be connected.
[0208] In one example, it also includes:
[0209] A signal monitoring unit, used to obtain network signal monitoring data of the target identification card within a preset third monitoring period; wherein the network signal monitoring data represents the quality of the network signal;
[0210] A quality unit, configured to determine a third maintenance time of the preset quality data if there is preset quality data in the network signal monitoring data within the preset third monitoring period; wherein the preset quality data indicates that the quality of the network signal is less than a preset quality threshold;
[0211] The second switching unit determines an identification card to be switched from a plurality of user identification cards if the third maintenance time exceeds a preset second time threshold; wherein the identification card to be switched represents a user identification card other than the target identification card.
[0212] In one example, the second switching unit includes:
[0213] A second monitoring module, configured to obtain network signal monitoring data of the target identification card within a preset fourth monitoring period if the third maintenance time exceeds a preset second time threshold;
[0214] A quality module, configured to determine a fourth maintenance time of the preset quality data if there is preset quality data in the network signal monitoring data within the preset fourth monitoring period;
[0215] The second switching module is configured to determine an identification card to be switched from a plurality of user identification cards if the fourth maintaining time exceeds a preset second time threshold.
[0216] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present disclosure, the electronic device may be a terminal device or a server, such as Figure 7 As shown, the electronic device 700 includes: at least one processor 702; and a memory 701 that is communicatively connected to the at least one processor 702; wherein the memory stores instructions that can be executed by the at least one processor 702, and the instructions are executed by the at least one processor 702 so that the at least one processor 702 can execute the network connection method based on the multi-user identification card disclosed in the present invention.
[0217] The electronic device 700 further includes a receiver 703 and a transmitter 704. The receiver 703 is used to receive instructions and data sent by other devices, and the transmitter 704 is used to send instructions and data to external devices.
[0218] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0219] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, which includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0220] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment, which device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0221] Device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 811 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0222] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0223] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 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.
[0224] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0225] The multimedia component 808 includes a screen that provides an output interface between the device 800 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 may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may 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 808 includes a front camera and / or a rear camera. When the device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0226] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0227] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0228] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0229] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 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 816 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 816 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.
[0230] In an exemplary embodiment, the device 800 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 methods.
[0231] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above 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.
[0232] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to execute the above-mentioned network connection method based on a multi-user identification card.
[0233] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0234] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0235] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0236] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.
[0237] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. Unless otherwise specified, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. Unless otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory (RRAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), an enhanced dynamic random access memory (EDRAM), a high-bandwidth memory (HBM), a hybrid memory cube (HMC), etc.
[0238] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0239] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0240] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0241] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A network connection method based on a multi-user identification card, characterized in that: The method is applied to an electronic device, wherein at least two card slots are disposed on the electronic device, and user identification cards are loaded in the card slots; the method comprises: For each user identification card, obtaining preset network configuration parameters; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used to connect the user identification card to the base station; Determine a target identification card from a plurality of user identification cards, and determine the preset network configuration parameters of the target identification card as target network parameters; At least two network connection information are determined from the target network parameters as the information to be connected, and a network session is obtained based on the information to be connected; wherein the network connection information corresponds one-to-one to the network session, and the network session is used for the electronic device to communicate with the base station through the target identification card.
2. The method according to claim 1, characterized in that Determining at least two network connection information from the target network parameters as information to be connected, including: According to a preset arrangement order of the network connection information in the target network parameters, at least two network connection information are determined from the target network parameters as the information to be connected.
3. The method according to claim 2, characterized in that According to a preset arrangement order of the network connection information in the target network parameter, at least two pieces of network connection information are determined from the target network parameter as information to be connected, including: According to a preset arrangement order of the network connection information in the target network parameters, determining first network connection information from the target network parameters as first parameter information; If the first parameter information establishes a network session between the target identification card and the base station, then according to the preset arrangement order of the network connection information in the target network parameters, the next network connection information is determined from the target network parameters as the second parameter information; If the second parameter information establishes a network session between the target identification card and the base station, the first parameter information and the second parameter information are determined as the information to be connected.
4. The method according to claim 2, characterized in that: Also includes: If the first parameter information fails to establish a network session between the target identification card and the base station, the next network connection information is determined from the target network parameters according to the preset arrangement order of the network connection information in the target network parameters, which is the new first parameter information, until the new first parameter information establishes a network session between the target identification card and the base station.
5. The method according to claim 3, characterized in that: Also includes: If the second parameter information fails to establish a network session between the target identification card and the base station, continue to determine the next network connection information from the target network parameters according to the preset arrangement order of the network connection information in the target network parameters, which is the new second parameter information, until the new second parameter information establishes a network session between the target identification card and the base station.
6. The method according to claim 1, characterized in that Determine the target identification card from multiple user identification cards, including: According to a preset card slot sequence, a target card slot is determined from a plurality of card slots, and a user identification card in the target card slot is determined as the target identification card.
7. The method according to claim 6, characterized in that Also includes: If the target network parameters do not contain the first parameter information or the second parameter information, a new target card slot is determined from the plurality of card slots according to a preset card slot sequence, and the user identification card in the new target card slot is determined as a new target identification card; Continue to determine the preset network configuration parameters of the new target identification card as new target network parameters, determine at least two network connection information from the new target network parameters as new information to be connected, and obtain a network session according to the new information to be connected.
8. The method according to any one of claims 1 to 7, characterized in that Also includes: Acquire service monitoring data of the network session within a preset first monitoring period; wherein the service monitoring data represents a monitoring result of communication data in the network session; If it is determined that abnormal data exists in the business monitoring data within the preset first monitoring period, determining a first maintenance time of the abnormal data; If the first maintenance time exceeds a preset first time threshold, the information to be switched is determined from the target network parameters, and a new network session is obtained according to the information to be switched; wherein the information to be switched is network connection information other than the information to be connected.
9. The method according to claim 8, characterized in that If the first maintenance time exceeds a preset first time threshold, determining the to-be-switched information from the target network parameter, and obtaining a new network session according to the to-be-switched information, including: If the first maintenance time exceeds a preset first time threshold, obtaining service monitoring data of the network session within a preset second monitoring period; If it is determined that abnormal data exists in the business monitoring data within the preset second monitoring period, determining a second maintenance time of the abnormal data; If the second maintenance time exceeds a preset first time threshold, the information to be switched is determined from the target network parameters, and a new network session is obtained according to the information to be switched; wherein the information to be switched is network connection information other than the information to be connected.
10. The method according to claim 8, characterized in that Also includes: Acquire network signal monitoring data of the target identification card within a preset third monitoring period; wherein the network signal monitoring data represents the quality of the network signal; If there is preset quality data in the network signal monitoring data within the preset third monitoring period, determining a third maintenance time of the preset quality data; wherein the preset quality data indicates that the quality of the network signal is less than a preset quality threshold; If the third maintenance time exceeds a preset second time threshold, an identification card to be switched is determined from a plurality of user identification cards; wherein the identification card to be switched represents a user identification card other than the target identification card.
11. The method according to claim 10, characterized in that If the third maintenance time exceeds a preset second time threshold, determining an identification card to be switched from a plurality of user identification cards, including: If the third maintenance time exceeds a preset second time threshold, obtaining network signal monitoring data of the target identification card within a preset fourth monitoring period; If there is preset quality data in the network signal monitoring data within the preset fourth monitoring period, determining a fourth maintenance time of the preset quality data; If the fourth maintaining time exceeds a preset second time threshold, an identification card to be switched is determined from a plurality of user identification cards.
12. A network connection device based on a multi-user identification card, characterized in that: include: An acquisition unit, used for acquiring preset network configuration parameters for each user identification card; wherein the preset network configuration parameters include a plurality of network connection information, and the network connection information is used for connecting the user identification card to the base station; A determination unit, used to determine a target identification card from a plurality of user identification cards, and determine the preset network configuration parameters of the target identification card as target network parameters; A connection unit is used to determine at least two network connection information from the target network parameters, which are the information to be connected, and obtain a network session based on the information to be connected; wherein the network connection information corresponds one-to-one to the network session, and the network session is used for the electronic device to communicate with the base station through the target identification card.
13. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 11 when executed by a processor.
15. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 11 when being executed by a processor.
Citation Information
Patent Citations
Call control method and electronic device
CN110972129A
Operator network switching method, system and device and storage medium
CN114567912A
Service response method and device, terminal and storage medium
CN114650526A
Communication connection method and electronic equipment
CN114846905A
SIM card configuration method and device, electronic equipment and storage medium
CN115706965A