Network connection method based on multi-user identification card, electronic device, and storage medium
By acquiring and determining the network configuration parameters of the target identification card, multiple network sessions are automatically established and anomaly detection and switching are performed, which solves the problem of unstable network connection in multi-user identification card devices and improves the stability and reliability of the connection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2025-01-20
- Publication Date
- 2026-05-01
AI Technical Summary
In multi-user identification card devices, network connections are unstable and the switching process is complex, which can easily lead to network interruptions.
By acquiring the network configuration parameters of each user identification card, the target identification card is identified and the target network parameters are established. The network connection information is determined in a preset order, multiple network sessions are automatically established, and switching is performed when an anomaly is detected.
It improves the stability and reliability of network connections for multi-user identification card devices, simplifies the network session establishment process, and reduces the probability of errors during network connection.
Smart Images

Figure CN119789241B_ABST
Abstract
Description
Network connection method, electronic device and storage medium based on multi-user identification card Technical Field
[0001] This application relates to the field of the Internet of Things, and in particular to a network connection method, electronic device and storage medium based on a multi-user identification card. Background Technology
[0002] With the development of 5G mobile communication technology, lightweight 5G communication technology with lower costs has become an important foundation for realizing the interconnection of people, machines, and things, and is currently an important network connectivity solution in the Internet of Things (IoT) field. In lightweight 5G communication technology, for application scenarios with high network connectivity requirements, dual-user identification cards (DSIMs) or multi-user identification cards (MDIs) are typically used to ensure stable connections for IoT devices, allowing IoT devices to use the services of two or more network operators simultaneously.
[0003] Currently, when connecting to the network on devices using dual or multiple user identification cards, if connection instability occurs and it is necessary to switch user identification cards or network parameters, it is usually necessary to manually select and switch user identification cards or manually configure network parameters. This process is complex, error-prone, and may also cause network interruptions during the switching process.
[0004] Therefore, maintaining stable network connections for multi-user identification card devices has become an urgent problem to be solved. Summary of the Invention
[0005] This application provides a network connection method, electronic device, and storage medium based on a multi-user identification card (MID) to achieve stable network connection for the MID device.
[0006] In a first aspect, embodiments of this application provide a network connection method based on a multi-user identification card. The method is applied to an electronic device, which has at least two card slots, each containing a user identification card. The method includes:
[0007] For each user identification card, obtain preset network configuration parameters; among which, the preset network configuration parameters include multiple network connection information, which is used to connect the user identification card to the base station;
[0008] The target identification card is determined from multiple user identification cards, and the preset network configuration parameters of the target identification card are set as the target network parameters;
[0009] At least two network connection information pieces are determined from the target network parameters as connection information to be connected, and a network session is obtained based on the connection information to be connected; wherein, the network connection information and the network session correspond one-to-one, and the network session is used by the electronic device to communicate with the base station through the target identification card.
[0010] In one possible implementation, at least two network connection pieces of information are determined from the target network parameters as connection information, including:
[0011] Based on the preset order of 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.
[0012] In one possible implementation, based on a preset order of network connection information in the target network parameters, at least two network connection information pieces are determined from the target network parameters as connection-to-connect information, including:
[0013] Based on the preset order of network connection information in the target network parameters, the first network connection information is determined from the target network parameters and is designated as the first parameter information;
[0014] 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, which is the second parameter information;
[0015] If the second parameter information constructs a network session between the target identification card and the base station, then the first parameter information and the second parameter information are determined as the connection information.
[0016] In one possible implementation, it also includes:
[0017] If the first parameter information fails to establish a network session between the target identification card and the base station, then the next network connection information is determined from the target network parameters according to the preset order of the network connection information in the target network parameters, which becomes 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 one possible implementation, it also includes:
[0019] If the second 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 order of the network connection information in the target network parameters, which becomes 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 one possible implementation, determining the target identification card from a plurality of user identification cards includes:
[0021] Based on the preset card slot order, the target card slot is determined from multiple card slots, and the user identification card in the target card slot is identified as the target identification card.
[0022] In one possible implementation, it also includes:
[0023] If the first parameter information or the second parameter information is not found in the target network parameters, a new target card slot is determined from multiple card slots according to the preset card slot order, and the user identification card in the new target card slot is identified as the new target identification card.
[0024] Continue executing the process of determining the preset network configuration parameters of the new target identification card as the new target network parameters, identifying at least two network connection information from the new target network parameters as new connection information, and obtaining the network session based on the new connection information.
[0025] In one possible implementation, it also includes:
[0026] Acquire service monitoring data of network sessions within a preset first monitoring period; wherein, service monitoring data represents the monitoring results of communication data in network sessions;
[0027] If it is determined that there is abnormal data in the business monitoring data within the preset first monitoring period, then the first maintenance time of the abnormal data is determined.
[0028] If the first 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; wherein, the information to be switched is network connection information other than the information to be connected.
[0029] In one possible implementation, if the first maintenance time exceeds a preset first time threshold, then handover information is determined from the target network parameters, and a new network session is obtained based on the handover information, including:
[0030] If the first maintenance time exceeds the preset first time threshold, then the service monitoring data of the network session within the preset second monitoring period is obtained.
[0031] If it is determined that there is abnormal data in the business monitoring data within the preset second monitoring period, then the second maintenance time of the abnormal data is determined.
[0032] If the second maintenance time exceeds the preset first time threshold, the handover information is determined from the target network parameters, and a new network session is obtained based on the handover information.
[0033] In one possible implementation, it also includes:
[0034] Acquire network signal monitoring data of the target identification card within a preset third monitoring period; wherein, the network signal monitoring data characterizes the quality of the network signal;
[0035] If preset quality data exists in the network signal monitoring data within the preset third monitoring period, then the third maintenance time of the preset quality data is determined; 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 the preset second time threshold, the identification card to be switched is determined from multiple user identification cards; wherein, the identification card to be switched represents a user identification card other than the target identification card.
[0037] In one possible implementation, if the third maintenance time exceeds a preset second time threshold, then the identification card to be switched is determined from a plurality of user identification cards, including:
[0038] If the third maintenance time exceeds the preset second time threshold, then acquire the network signal monitoring data of the target identification card within the preset fourth monitoring period;
[0039] If preset quality data exists in the network signal monitoring data within the preset fourth monitoring period, then the fourth maintenance time of the preset quality data is determined.
[0040] If the fourth maintenance time exceeds the preset second time threshold, the identification card to be switched is determined from multiple user identification cards.
[0041] Secondly, embodiments of this application provide a network connection device based on a multi-user identification card, comprising:
[0042] The acquisition unit is used to acquire preset network configuration parameters for each user identification card; wherein, the preset network configuration parameters include multiple network connection information, which is used to connect the user identification card to the base station;
[0043] The determining unit is used to determine the target identification card from multiple user identification cards and to determine the preset network configuration parameters of the target identification card as the target network parameters;
[0044] The connection unit is used to determine at least two network connection information from the target network parameters as connection information, and to obtain a network session based on the connection information; wherein, the network connection information and the network session correspond one-to-one, and the network session is used by the electronic device to communicate with the base station through the target identification card.
[0045] Thirdly, embodiments of this application provide a network connection device based on a multi-user identification card, including: a memory and a processor;
[0046] The memory stores computer-executed instructions;
[0047] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0048] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0049] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0050] The network connection method, electronic device, and storage medium based on multi-user identification cards provided in this application embodiment obtain network configuration parameters corresponding to each user identification card in an electronic device with multiple card slots, determine a target identification card from among the 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 to-be-connected information from the target network parameters. A network connection is then established through the to-be-connected information to obtain a network session corresponding to each to-be-connected information, achieving the effect of simultaneously establishing multiple network sessions. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information. By establishing network sessions based on the target identification card and target network parameters, the steps for establishing network sessions are simplified, and the possibility of errors during network connection is reduced. Attached Figure Description
[0051] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0052] Figure 1 is a flowchart illustrating a network connection method based on a multi-user identification card provided in this application;
[0053] Figure 2 is a flowchart illustrating a network connection method based on a multi-user identification card provided in this application;
[0054] Figure 3 is a flowchart illustrating a network connection method based on a multi-user identification card provided in this application;
[0055] Figure 4 is a flowchart illustrating a network connection method based on a multi-user identification card provided in this application;
[0056] Figure 5 is a structural block diagram of a network connection device based on a multi-user identification card provided in an embodiment of this disclosure;
[0057] Figure 6 is a structural block diagram of a network connection device based on a multi-user identification card provided in an embodiment of this disclosure;
[0058] Figure 7 is a structural block diagram of an electronic device provided in an embodiment of this disclosure;
[0059] Figure 8 is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0060] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0061] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0062] First, let me explain the terms used in this application:
[0063] 5G: 5G (5th Generation Mobile Communication Technology) is a new generation of broadband mobile communication technology characterized by high speed, low latency, and massive connectivity.
[0064] 5G RedCap: 5G RedCap (Reduced Capability) is a lightweight 5G technology that is an important foundation for 5G to achieve interconnection between people, machines, and things. It aims to reduce the complexity, cost, and power consumption of 5G devices by reducing bandwidth, the number of transmitting and receiving antennas, and the modulation order, thereby better adapting to various IoT application scenarios.
[0065] SIM Card: A SIM (Subscriber Identity Module) card is an identification card held by mobile users of the Global System for Mobile Communications (GSM). GSM uses SIM cards to identify users.
[0066] DNN: DNN (Data Network Name) consists of a network ID and a carrier ID. The network ID indicates that this is an external network, and the carrier ID indicates which carrier the network belongs to.
[0067] APN: Access Point Name (APN) is a parameter that users must configure when accessing the internet via their mobile phones. It determines which access method the user's mobile phone uses to access the mobile network. DNN has the same function as APN. In 5G networks, DNN is equivalent to APN in 4G networks; both are used to identify an external data network and help users connect to the corresponding network resources and services.
[0068] UCI: UCI is a configuration file format primarily used for storing and managing various configuration information, such as network settings, wireless configuration, and software package management.
[0069] Base station release: Base station release refers to the process in a mobile communication network where the base station controller releases radio resources, including radio spectrum and channel resources, that have been allocated to a user. This process typically occurs when communication between the user equipment and the base station ends, and the base station controller reallocates these resources to other users to improve network resource utilization.
[0070] ICMP: ICMP (Internet Control Message Protocol) is a sub-protocol of the TCP / IP protocol suite, primarily used to transmit control and error messages between IP hosts and routers. ICMP messages are divided into error reporting messages and query messages: Error reporting messages: These include destination unreachable, timeout, and source suppression messages, used to report errors during transmission. Query messages: Such as Echo Requests and Echo Replies, used to test the reachability of a target host.
[0071] TCP heartbeat: A TCP heartbeat is a special data packet that is periodically sent between a client and a server in a TCP connection to maintain the connection's validity. This packet typically does not contain actual data; it is only used to confirm that the other party is still online and the connection remains active.
[0072] RSRP (Reference Signal Receiving Power) is one of the key parameters used in a network to represent the strength of a wireless signal. The value of RSRP typically ranges from -44 to -140 dBm; a higher value indicates a stronger signal.
[0073] RSRQ: RSRQ (Reference Signal Receiving Quality) represents the quality of the received reference signal. It is the ratio of signal power to interference and noise power density, ranging from -19.5dB to -3dB. The smaller the absolute value, the better.
[0074] SINR: SINR (Signal to Interference plus Noise Ratio) reflects the purity of a signal, measured in dB, with a standard range of -20dB to 30dB.
[0075] With the development and application of 5G technology, lightweight 5G technology has become a crucial foundation for realizing the interconnection of people, machines, and things. It is an important solution for network connectivity in the Internet of Things (IoT) field, suitable for IoT devices with high network requirements, such as industrial IoT devices. In the application of lightweight 5G technology, to cope with complex application environments and maintain stable and reliable network connections, at least two SIM cards from different network operators are typically used for network connection and communication. This addresses unforeseen circumstances or situations where the signal quality of a single network operator is poor in a particular area, ensuring network stability.
[0076] Currently, when IoT devices with multiple SIM cards encounter unstable network connections, it is necessary to switch the SIM card, or the SIM card's DNN or APN. This usually requires users to manually select and switch the SIM card or configure DNN parameters, which is complex and error-prone. Furthermore, even when only the DNN is switched, network interruptions can still occur, affecting the operation of IoT devices.
[0077] The network connection method, electronic device and storage medium based on multi-user identification card provided in this application are intended to solve the above-mentioned technical problems of the prior art.
[0078] The application scenario of this application is for IoT devices with multiple SIM cards using 5G lightweight technology. Specifically, it is used to select a target SIM card from multiple SIM cards and establish at least two network sessions according to the network configuration parameters of the target SIM card. This allows the SIM card to make at least two independent network connections at the same time, increasing the stability of the IoT device's network connection and enabling automatic switching between the SIM card and network configuration parameters, making the IoT device's network connection more reliable.
[0079] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0080] Figure 1 is a flowchart illustrating a network connection method based on a multi-user identification card provided in this application. The method is applied to an electronic device, which has at least two card slots with user identification cards loaded in them. The method can be executed by a network connection device based on a multi-user identification card.
[0081] As shown in Figure 1, the method includes the following steps:
[0082] S101. For each user identification card, obtain preset network configuration parameters; wherein, the preset network configuration parameters include multiple network connection information, which is used to connect the user identification card to the base station.
[0083] For example, the electronic device has at least two card slots for mounting a Subscriber Identity SIM (SIM) card. Each SIM card has pre-configured network configuration parameters, which include multiple network connection information entries. These network connection information entries are used to connect the SIM card to the base station, enabling the electronic device to communicate via the SIM card. The network configuration parameters can include multiple network connection information entries, which can be configuration information for a Data Network Name (DNN) or an Access Point Name (APN). For example, if the network connection information is DNN information, the network configuration parameters can include multiple DNN entries, each of which can include a DNN name, username, password, etc. For any given SIM card, the pre-configured network configuration parameters can contain up to 10 network connection information entries.
[0084] The system detects SIM cards in electronic devices, for example, by identifying the number of SIM card slots and checking if a SIM card is present in each slot. If at least two SIM cards are present in the electronic device, the system retrieves the preset network configuration parameters for each SIM card.
[0085] One example also includes a visual network configuration parameter configuration interface, where users can configure the network configuration parameters corresponding to the SIM card. That is, they can set the network connection information in the configuration interface, and after setting, they can store the network configuration parameters as a UCI format configuration file for easy reading.
[0086] In one example, when pre-setting network connection information, the network connection information is verified to determine if it can access the base station. If the connection between the network connection information and the base station is abnormal, the abnormal network connection information is deleted to ensure its timeliness. For example, if the network connection information is DNN information, a network access request is initiated to the base station based on the DNN name, username, password, etc., contained in the network connection information. After receiving the request, the base station authenticates the network connection information. If authentication is successful, the network connection is normal; if authentication fails, the network connection is abnormal, and the abnormal network connection information is deleted. The authentication process can involve the base station receiving the network access request, obtaining the network connection information of the electronic device, and verifying it. The network connection information is compared with user information with the same username stored in a pre-set authentication database. If the comparison result matches, authentication is successful, and the network connection is allowed; if the comparison result does not match, authentication fails, and the network connection is rejected. The user information includes a username and password, and is stored in the pre-set authentication database. This user information is used to verify the network connection information.
[0087] S102. Determine the target identification card from multiple user identification cards, and set the preset network configuration parameters of the target identification card as the target network parameters.
[0088] For example, one or more user identification cards (SIM cards) are selected from a plurality of SIM cards as the target identification card. For instance, in an electronic device, the SIM card slots have an ordered relationship, and the slot number represents the slot's position in the sequence. The SIM card number located in a slot is the slot number. For example, if an electronic device has two slots, slot 1 and slot 2, then the SIM card in slot 1 is SIM card 1. Based on the SIM card slot numbers in the electronic device, the user identification card with slot number 1 can be identified as the target identification card; that is, SIM card 1 is identified as the target SIM card.
[0089] The network configuration parameters of the target SIM card are set as the target network parameters.
[0090] S103. Determine at least two network connection information from the target network parameters as connection information to be connected, and obtain a network session based on the connection information to be connected; wherein, the network connection information and the network session correspond one-to-one, and the network session is used for electronic devices to communicate with the base station through the target identification card.
[0091] For example, for any target identification card, at least two network connection information entries can be determined from the target network parameters of the target identification card as connection information to be connected. For instance, the number of network sessions can be preset, i.e., the number of network sessions that need to be established simultaneously. The minimum number of network sessions is 2, and the maximum 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, then the first two network connection entries can be determined as connection information according to the default order of the network connection information in the target network parameters. Each connection information entry can be configuration information for a DNN or APN.
[0092] For any connection request, a network connection is established based on that connection request, and an IP address corresponding to that connection is configured for that connection request, thus obtaining the network session corresponding to that connection request, i.e., obtaining the network session corresponding to that network connection information. The network session is used by the electronic device to communicate with the base station through the target SIM card; in other words, the network session is the channel used for data transmission within the network connection. The IP address can be configured by automatically obtaining an IP address for the corresponding network session, i.e., using a dynamic IP address.
[0093] In one example, for each successfully established network session connection information, this information is backed up for quick switching when needed later. For instance, if the connection information is DNN information and a network session is successfully established based on it, this information can be backed up and stored, perhaps in a pre-defined database. If the electronic device switches network connection information during use and needs to use the backed-up connection information again, it can retrieve the information from the pre-defined database for quick switching.
[0094] In one example, the target network parameters can be obtained by reading the target SIM card's UCI format network parameter configuration file.
[0095] The network connection method, electronic device, and storage medium based on multi-user identification cards provided in this application embodiment obtain network configuration parameters corresponding to each user identification card in an electronic device with multiple card slots, determine a target identification card from among the 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 to-be-connected information from the target network parameters. A network connection is then established through the to-be-connected information to obtain a network session corresponding to each to-be-connected information, achieving the effect of simultaneously establishing multiple network sessions. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information. By establishing network sessions based on the target identification card and target network parameters, the steps for establishing network sessions are simplified, and the possibility of errors during network connection is reduced.
[0096] Figure 2 is a flowchart illustrating a network connection method based on a multi-user identification card provided in an embodiment of this disclosure.
[0097] In this embodiment, determining at least two network connection information as connection information from the target network parameters includes: determining at least two network connection information as connection information from the target network parameters according to a preset arrangement order of the network connection information in the target network parameters.
[0098] As shown in Figure 2, the method includes the following steps:
[0099] S201. For each user identification card, obtain preset network configuration parameters; wherein, the preset network configuration parameters include multiple network connection information, which is used to connect the user identification card to the base station.
[0100] For example, this step can refer to step S101 above, and will not be repeated here.
[0101] S202. Determine the target identification card from multiple user identification cards, and set the preset network configuration parameters of the target identification card as the target network parameters.
[0102] For example, this step can refer to step S102 above, and will not be repeated here.
[0103] S203. Based on the preset arrangement order of network connection information in the target network parameters, determine at least two network connection information from the target network parameters as the information to be connected.
[0104] For example, the network connection information in the network configuration parameters has a preset arrangement order, which may be the order of the setting time when the network connection information in the network configuration parameters is preset.
[0105] After determining the target SIM card's preset network configuration parameters as the target network parameters, at least two network connection information entries are selected from the target network parameters according to their order of arrangement as the connection information to be connected. For example, if the preset arrangement order is based on the order of the network connection information's setting time, then the two network connection information entries with the most recent setting time in the preset arrangement can be selected as the connection information to be connected.
[0106] The advantage of this setting is that there is a preset order among the network connection information, which makes it easier to select and switch according to the order. This makes the network connection information easier to process and save. From the network connection information, at least two network connection information can be selected as the information to be connected, which makes it easier to establish at least two network sessions and make the network connection more stable.
[0107] In this embodiment, at least two network connection information pieces are determined from the target network parameters as connection information according to a preset arrangement order of network connection information in the target network parameters. This includes: determining the first network connection information from the target network parameters as first parameter information according to the preset arrangement order of 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, then determining the next network connection information from the target network parameters as second parameter information according to the preset arrangement order of network connection information in the target network parameters; if the second parameter information establishes a network session between the target identification card and the base station, then the first parameter information and the second parameter information are determined as connection information.
[0108] Specifically, based on the preset order of the target network connection information, the first network connection information is determined from the target network parameters and designated as the first parameter information. For example, the network connection information listed first in the target network parameters can be selected as the first parameter information. The IP address and other parameters of the first parameter information are configured, and the first network session is established based on the first parameter information. If necessary, the first parameter information can also be backed up and stored.
[0109] If a network session between the target SIM card and the base station is successfully established based on the first parameter information, the next network connection information is determined from the target network parameters according to the preset order of network connection information in the target network parameters, and this next network connection information is designated as the second parameter information. For example, if the first parameter information is the first network connection information in the target network parameters, and a network session is successfully established based on the first parameter information, then the second network connection information in the target network parameters can be determined as the second parameter information according to the preset order. The IP address and other parameters of the second parameter information are configured, and a second network session is established based on 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, then the first and second parameter information are determined as connection-to-be-connected information. The connection-to-be-connected information represents the network connection information used to establish the network session.
[0111] In one example, more connection information can be identified, meaning that more network sessions can be established simultaneously.
[0112] The advantage of this setting is that, for any target SIM card, a network session is established first from the target network parameters of the SIM card according to a preset order, and a second network session is established after the first network session is established. This allows the target SIM card to connect to at least two network sessions simultaneously, improving the stability of the network connection.
[0113] In this embodiment, it further includes: if the first parameter information fails to construct 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 constructs a network session between the target identification card and the base station.
[0114] Specifically, if the first parameter information fails to establish a network session between the target SIM card and the base station (i.e., a network connection failure occurs based on the first parameter information), then according to the preset order of network connection information in the target network parameters, the next network connection information is selected as the new first parameter information. A network session is then established based on this new first parameter information. If the new first parameter information still fails to establish a network session, another new first parameter information is selected until a network session between the target SIM card and the base station is successfully established. For example, if the network connection information at the first position in the target network parameters fails to establish a network session, then according to the preset order, the next position (the second position) is selected as the new first parameter information, and a new network connection is established. If this still fails, the next position (the third position) is selected as the new first parameter information until a successful network connection is established, successfully creating a network session between the target SIM card and the base station.
[0115] If all network connection information in the target network parameters fails to establish a network connection, that is, if a network session between the target SIM card and the base station cannot be constructed, then the first parameter information does not exist.
[0116] In one example, network monitoring is performed during the network connection process based on the first parameter information. If issues such as abnormal network signal, base station release, or connection failure occur, it can be determined that the first parameter information has not established a network session between the target SIM card and the base station; that is, the network connection based on the first parameter information is abnormal. Here, abnormal network signal refers to an abnormal network signal received by the electronic device; connection failure means the inability to connect to the base station.
[0117] The advantage of this setting is that although the network connection information is verified when the network configuration parameters are preset, the network connection information in the network configuration parameters may not be suitable for all application scenarios due to various factors such as changes in the usage location and application scenario during the use of electronic devices. Verifying whether the network connection of the first parameter information is successful tests the reliability of the network connection information. If the first parameter information is not successfully established, the first parameter information is quickly reselected in sequence, ensuring the establishment of the network session.
[0118] In this embodiment, the method further includes: if the second parameter information fails to construct a network session between the target identification card and the base station, then 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 second parameter information, until the new second parameter information constructs 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 information fails to establish a network session between the target SIM card and the base station, then based on the preset order of network connection information in the target network parameters, the next network connection information is determined from the target network parameters as the new second parameter information. The network session is then re-established based on this new second parameter information. If a network session still cannot be established, a new second parameter information is determined again, and this process continues until the new second parameter information establishes a network session between the target SIM card and the base station. For example, if the first parameter information is the network connection information located at the first position in the target network parameters and successfully establishes a network session, and the second parameter information is the network connection information located at the second position in the target network parameters and fails to establish a network session, then the network connection information located at the third position can be selected according to the preset order and determined as the new second parameter information. If this still fails, the next position in the network connection information, i.e., the fourth position, can be selected as the new second parameter information, and this process continues until the new second parameter information successfully establishes a network session between the target SIM card and the base station.
[0120] If none of the remaining network connection information other than the first parameter information can establish a network session, then there is no second parameter, and only the first parameter information is used as the connection information.
[0121] The advantage of this setting is that it determines the second parameter that can successfully establish a network session from the network connection information of the target network parameters, 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 the network session based on the connection information.
[0123] For example, this step can refer to step S103 above, and will not be repeated here.
[0124] The network connection method, electronic device, and storage medium based on multi-user identification cards provided in this application embodiment obtain network configuration parameters corresponding to each user identification card in an electronic device with multiple card slots, determine a target identification card from among the 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 to-be-connected information from the target network parameters. A network connection is then established through the to-be-connected information to obtain a network session corresponding to each to-be-connected information, achieving the effect of simultaneously establishing multiple network sessions. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information. By establishing network sessions based on the target identification card and target network parameters, the steps for establishing network sessions are simplified, and the possibility of errors during network connection is reduced.
[0125] Figure 3 is a flowchart illustrating a network connection method based on a multi-user identification card provided in an embodiment of this disclosure.
[0126] In this embodiment, determining the target identification card from multiple user identification cards includes: determining the target card slot from multiple card slots according to a preset card slot order, and identifying the user identification card in the target card slot as the target identification card.
[0127] As shown in Figure 3, the method includes the following steps:
[0128] S301. For each user identification card, obtain preset network configuration parameters; wherein, the preset network configuration parameters include multiple network connection information, which is used to connect the user identification card to the base station.
[0129] For example, this step can refer to step S101 above, and will not be repeated here.
[0130] S302. According to the preset card slot order, determine the target card slot from multiple card slots, and identify the user identification card in the target card slot as the target identification card.
[0131] Specifically, there is a pre-set card slot order among the card slots in the electronic device. A target card slot is determined from multiple slots, and the user identification card in that target slot is identified as the target identification card; that is, the SIM card in the target card slot is identified as the target SIM card. For example, the SIM card in the first slot in the pre-set order can be identified as the target SIM card.
[0132] The advantage of this setup is that it allows for quick and effective differentiation of SIM cards by identifying the target SIM card according to the preset order of the card slots.
[0133] In this embodiment, the method further includes: if the first parameter information or the second parameter information is not present in the target network parameters, a new target card slot is determined from multiple card slots according to the preset card slot order, and the user identification card in the new target card slot is determined as the new target identification card; the preset network configuration parameters of the new target identification card are determined as the new target network parameters, at least two network connection information are determined from the new target network parameters as new connection information, and a network session is obtained based on the new connection information.
[0134] Specifically, if the target network parameters do not contain either the first or second parameter information (i.e., the target network parameters contain only one network connection information that can establish a network session), or if the target network parameters do not contain any network connection information that can establish a network session, then a new target card slot is determined from multiple card slots according to the preset card slot order, 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 either the first or second parameter information (i.e., the network connection information in the network configuration parameters can only establish one network session at most), then according to the preset card slot order, the next card slot after card slot 1 is selected as the new target card slot, that is, card slot 2 is selected as the new target card slot, and the SIM card in card slot 2 is selected as the new target SIM card.
[0135] The preset network configuration parameters of the new target SIM card are determined as the new target network parameters. From the new target parameters, at least two network connection information are re-determined, and these at least two network connection information are designated as new connection-to-be-connected information. Based on the new connection-to-be-connected information, at least two network sessions are obtained. The re-determined at least two network connection information must be capable of establishing at least two network sessions simultaneously.
[0136] If the new target network parameters of the new target SIM card still cannot establish at least two network sessions at the same time, then according to the preset card slot order, a new target card slot is determined again, and a new target SIM card and new target network parameters are determined, until the new target SIM card can establish at least two network sessions at the same time according to the new network connection information.
[0137] If none of the preset network configuration parameters for all SIM cards can establish at least two network sessions simultaneously, an alarm message is generated. This alarm message is used to instruct the user to have the electronic device inspected.
[0138] The advantage of this setup is that when the selected SIM card cannot establish two network sessions simultaneously, 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 based on the network configuration parameters of the next SIM card, thus ensuring the quality and stability of the electronic device's connection.
[0139] S303. Set the preset network configuration parameters of the target identification card as the target network parameters.
[0140] For example, this step can refer to step S102 above, and will not be repeated here.
[0141] S304. Determine at least two network connection information from the target network parameters as connection information to be connected, and obtain a network session based on the connection information to be connected; wherein, the network connection information and the network session correspond one-to-one, and the network session is used for electronic devices to communicate with the base station through the target identification card.
[0142] For example, this step can refer to step S103 above, and will not be repeated here.
[0143] The network connection method, electronic device, and storage medium based on multi-user identification cards provided in this application embodiment obtain network configuration parameters corresponding to each user identification card in an electronic device with multiple card slots, determine a target identification card from among the 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 to-be-connected information from the target network parameters. A network connection is then established through the to-be-connected information to obtain a network session corresponding to each to-be-connected information, achieving the effect of simultaneously establishing multiple network sessions. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information. By establishing network sessions based on the target identification card and target network parameters, the steps for establishing network sessions are simplified, and the possibility of errors during network connection is reduced.
[0144] Figure 4 is a flowchart illustrating a network connection method based on a multi-user identification card provided in an embodiment of this disclosure.
[0145] In this embodiment, the method further includes: acquiring service monitoring data of a network session within a preset first monitoring period; wherein the service monitoring data represents the monitoring results of communication data in the network session; if it is determined that there is abnormal data in the service 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, then 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 network connection information other than the information to be connected.
[0146] As shown in Figure 4, the method includes the following steps:
[0147] S401. For each user identification card, obtain preset network configuration parameters; wherein, the preset network configuration parameters include multiple network connection information, which is used to connect the user identification card to the base station.
[0148] For example, this step can refer to step S101 above, and will not be repeated here.
[0149] S402. Determine the target identification card from multiple user identification cards and set the preset network configuration parameters of the target identification card as the target network parameters.
[0150] For example, this step can refer to step S102 above, and will not be repeated here.
[0151] S403. Determine at least two network connection information from the target network parameters as connection information to be connected, and obtain a network session based on the connection information to be connected; wherein, the network connection information and the network session correspond one-to-one, and the network session is used for electronic devices to communicate with the base station through the target identification card.
[0152] For example, this step can refer to step S103 above, and will not be repeated here.
[0153] S404. Obtain service monitoring data of the network session within a preset first monitoring period; wherein, the service monitoring data represents the monitoring results of communication data in the network session.
[0154] For example, a first monitoring period is preset, which is the period for monitoring communication data in a network session. The preset first monitoring period can be adjusted according to the importance of the use case. For example, the preset first monitoring period can be 1 minute.
[0155] For any network session, acquire the service monitoring data of that network session within a preset first monitoring period. The service monitoring data represents the monitoring results of the communication data generated in the network session. The communication data can be data packets generated in the network session, and the service monitoring data can be the analysis results of these data packets. For example, analyzing the number of data packets to obtain the network session traffic; analyzing data packets to monitor whether the data in the current network session is used for core services; analyzing the sending and receiving times of data packets to monitor the latency of the data in the current network session; the monitoring data can also be ICMP and TCP heartbeat packets generated in the network session.
[0156] The advantage of this setup is that, for established network sessions, periodically acquiring the service monitoring data of those sessions allows for real-time monitoring of their operational status, facilitating timely handling of abnormal network sessions and ensuring the stability and reliability of network connections for electronic devices.
[0157] S405. If it is determined that there is abnormal data in the business monitoring data within the preset first monitoring period, then determine the first maintenance time of the abnormal data.
[0158] For example, the business monitoring data is inspected to detect whether there is any abnormal data. Abnormal data represents communication data that could affect the normal operation of electronic devices. Abnormal data could be, for example, data showing abnormal states such as: data packet delay exceeding a preset delay threshold; data packet quantity falling below a preset data packet quantity threshold; or data packets not being used for the core business of the electronic device.
[0159] If abnormal data is found in the business monitoring data within a 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 first maintenance time could be the duration during which the number of data packets in the business monitoring data is lower than a preset data packet number threshold.
[0160] The advantage of this setting is that it allows for real-time determination of the duration of various abnormal data in a network session, and the determination of the network session's working status based on the duration, facilitating rapid response and switching of network connection information.
[0161] S406. 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 based on the information to be switched; wherein, the information to be switched is network connection information other than the information to be connected.
[0162] For example, if the first duration of any network session exceeds a preset first time threshold, the working state of the network session is abnormal. Then, from the target network parameters, according to a preset order, the information to be switched is determined from the network connection information other than the information to be connected. For example, if there are two network sessions, and the network connection information corresponding to network session 1 is the first network connection information in the target network parameters, and the network connection information corresponding to network session 2 is the second network connection information in the target network parameters, and the first duration 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] Based on the handover information, a network connection is established to build a network session between the target identification card and the base station. If the handover information 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 order of the network connection information, and this becomes the new handover information, until the new handover information establishes a network session between the target identification card and the base station.
[0164] If the network connection information other than the connection information cannot establish a network session between the target identification card and the base station, that is, it is not possible to establish two network sessions at the same time, the target SIM card and target network parameters can be redefined and the network session can be re-established.
[0165] The advantage of this setting is that switching the network connection information of network sessions that do not meet the requirements can maintain the optimal working state of electronic devices. Furthermore, since at least two network sessions are connected simultaneously, the network connection can still be maintained without interruption during switching, thus solving the problem of network outages caused by switching network connection information.
[0166] In this embodiment, if the duration exceeds a preset first time threshold, at least two network connection information pieces 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 duration exceeds the preset first time threshold, obtaining service monitoring data of the network session within a preset second monitoring period; if it is determined that there is abnormal data in the service monitoring data within the preset second monitoring period, determining the second duration of the abnormal data; if the second duration exceeds the 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.
[0167] Specifically, a second monitoring period is preset, which is the period for monitoring communication data in the network session. This second monitoring period can be, for example, 1 minute. If the first duration of abnormal data exceeds a preset first time threshold, then the service monitoring data of the network session within the preset second monitoring period is acquired and tested to detect whether abnormal data exists. If abnormal data is found to still exist within the service monitoring data of the preset second monitoring period, the duration of the abnormal data in the second monitoring period is determined as the second duration. If the second duration still exceeds the preset first time threshold, then the handover information is determined from the target network parameters, and a new network session is obtained based on the handover information.
[0168] The beneficial effect of this setting is that it debouncing the monitoring results of the working status of the network session. When 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 both the first and second monitoring periods 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. This makes the judgment more rigorous, avoids the jitter of business monitoring data caused by network fluctuations, and reduces the possibility of misjudgment.
[0169] In this embodiment, the method further includes: acquiring 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 preset quality data exists in the network signal monitoring data within the preset third monitoring period, then determining a third maintenance time for 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, then 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, which is the time period for monitoring the network signal of the SIM card. This third monitoring period can be, for example, 1 minute. The network signal monitoring data of the target SIM card within the preset third monitoring period is acquired. The network signal monitoring data characterizes the quality of the network signal and can be parameters such as RSRP, RSRQ, and SINR.
[0171] The quality threshold for each parameter in the network signal monitoring data is preset. The quality threshold is the threshold value of the network signal monitoring data to ensure that the SIM card works normally. 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, then the data is preset quality data, that is, network signal monitoring data with low network signal quality.
[0172] The duration of preset quality data within a preset third monitoring period is defined as the third maintenance time. If the third maintenance time exceeds a preset second time threshold, the SIM card to be switched is determined from multiple SIM cards. For example, if the current target SIM card is the SIM card in slot 1, and the duration of the preset quality data for the current target SIM card, i.e., the third maintenance time, exceeds the preset second time threshold, then from the SIM cards in other slots besides the SIM card in slot 1, the SIM card in slot 2 is selected as the SIM card to be switched, according to the slot order, and the network session is re-established.
[0173] The advantage of this setting is that it monitors the signal quality of the SIM card and switches the SIM card in a timely manner when the signal quality is lower than the preset quality threshold, thus automating the SIM card switching and making the network connection of electronic devices more stable.
[0174] In this embodiment, if the third maintenance time exceeds a 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, network signal monitoring data of the target identification card within a preset fourth monitoring period is obtained; if preset quality data exists in the network signal monitoring data within the preset fourth monitoring period, the fourth maintenance time of the preset quality data is determined; if the fourth maintenance time exceeds the preset second time threshold, the identification card to be switched is determined from multiple user identification cards.
[0175] Specifically, a fourth monitoring period is preset, which is the time period for monitoring the network signal of the SIM card. The fourth monitoring period can be, for example, 1 minute. Network signal monitoring data of the target SIM card within the preset fourth monitoring period is acquired. Based on a preset quality threshold, it is determined whether preset quality data exists in the network signal monitoring data within the preset fourth monitoring period. If preset quality data exists, 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 a preset second time threshold, the identification card to be switched is determined from multiple user identification cards, and a new network session is established.
[0176] The beneficial effect of this setting is that when the preset quality data is detected to last longer than the second time threshold in the third monitoring period, the network signal monitoring data in the fourth monitoring period is obtained again and the judgment is re-made. If the duration of the preset quality data in both monitoring periods is lower than the second time threshold, it is judged as poor signal quality, 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 in this application embodiment obtain network configuration parameters corresponding to each user identification card in an electronic device with multiple card slots, determine a target identification card from among the 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 to-be-connected information from the target network parameters. A network connection is then established through the to-be-connected information to obtain a network session corresponding to each to-be-connected information, achieving the effect of simultaneously establishing multiple network sessions. By establishing multiple network sessions, it is convenient to maintain the stability of the network connection state when switching any network connection information. By establishing network sessions based on the target identification card and target network parameters, the steps for establishing network sessions are simplified, and the possibility of errors during network connection is reduced.
[0178] Figure 5 is a structural block diagram of a network connection device based on a multi-user identification card provided in an embodiment of this disclosure.
[0179] For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. Referring to FIG5, the network connection device 500 based on a multi-user identification 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 multiple network connection information, and the network connection information is used to connect the user identification card to the base station;
[0181] The determining unit 502 is used to determine the target identification card from multiple user identification cards and to determine the preset network configuration parameters of the target identification card as the target network parameters;
[0182] The connection unit 503 is used to determine at least two network connection information from the target network parameters as connection information, and to obtain a network session based on the connection information; wherein, the network connection information and the network session correspond one-to-one, and the network session is used for electronic devices to communicate with the base station through the target identification card.
[0183] Figure 6 is a structural block diagram of a network connection device based on a multi-user identification card provided in an embodiment of this disclosure.
[0184] Based on the embodiment shown in FIG5, as shown in FIG6, the connection unit 503 includes an information determination module 5031 and a connection module 5032.
[0185] Information determination module 5031: is used to determine at least two network connection information from the target network parameters as to be connected information according to the preset arrangement order of network connection information in the target network parameters.
[0186] The connection module 5032 is used to obtain the network session based on the connection information.
[0187] In one example, the information determination module 5031 includes:
[0188] The first parameter submodule is used to determine the first 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 first parameter information;
[0189] The second parameter submodule is used to determine the next network connection information from the target network parameters, which is the second parameter information, if the first parameter information constructs 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 connection information 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 also includes:
[0192] The first re-determining submodule is used 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 first parameter information fails to build a network session between the target identification card and the base station, and to make it the new first parameter information, until the new first parameter information builds a network session between the target identification card and the base station.
[0193] In one example, the information determination module 5031 also includes:
[0194] The second re-determination submodule is used 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 build a network session between the target identification card and the base station, so as to become the new second parameter information, until the new second parameter information builds a network session between the target identification card and the base station.
[0195] In one example, unit 502 is defined as including:
[0196] The identification and determination module is used to determine the target card slot from multiple card slots according to a preset card slot order, and to identify the user identification card in the target card slot as the target identification card.
[0197] In one example, the identification and determination module also includes:
[0198] The card slot submodule is used to determine a new target card slot from multiple card slots according to a preset card slot order if the first parameter information or the second parameter information is not found in the target network parameters, and to identify the user identification card in the new target card slot as the new target identification card.
[0199] The reconnection submodule is used to continue executing the process of determining the preset network configuration parameters of the new target identification card as the new target network parameters, determining at least two network connection information from the new target network parameters as new connection information, and obtaining the network session based on the new connection information.
[0200] One example also includes:
[0201] The service monitoring unit is used to acquire service monitoring data of network sessions within a preset first monitoring period; wherein, the service monitoring data represents the monitoring results of communication data in the network session;
[0202] An anomaly unit is used to determine the first duration of the anomaly data if it is determined that there is anomaly data in the business monitoring data within a preset first monitoring period.
[0203] The first switching unit is configured to determine at least two network connection information from the target network parameters as information to be switched if the first maintenance time exceeds a preset first time threshold, and to obtain a network session based on the information to be switched; wherein the information to be switched is network connection information other than the information to be connected.
[0204] In one example, the first switching unit includes:
[0205] The first monitoring module is used to acquire 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 anomaly module is used to determine a second retention time for the abnormal data if it is determined that there is abnormal data in the business monitoring data within a 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 information to be switched if the second maintenance time exceeds a preset first time threshold, and to obtain a network session based on the information to be switched; wherein the information to be switched is network connection information other than the information to be connected.
[0208] One example also includes:
[0209] The signal monitoring unit is used to acquire network signal monitoring data of the target identification card within a preset third monitoring period; wherein, the network signal monitoring data characterizes the quality of the network signal;
[0210] A quality unit is used to determine the third duration of the preset quality data if preset quality data exists in the network signal monitoring data within a 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] If the third maintenance time exceeds the preset second time threshold, the second switching unit determines the 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.
[0212] In one example, the second switching unit includes:
[0213] The second monitoring module is used to acquire 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] The quality module is used to determine the fourth maintenance time of the preset quality data if preset quality data exists in the network signal monitoring data within the preset fourth monitoring period.
[0215] The second switching module is used to determine the identification card to be switched from multiple user identification cards if the fourth maintenance time exceeds a preset second time threshold.
[0216] Figure 7 is a structural block diagram of an electronic device provided in an embodiment of this disclosure. The electronic device may be a terminal device or a server. As shown in Figure 7, the electronic device 700 includes: at least one processor 702; and a memory 701 communicatively connected to the at least one processor 702. 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 to enable the at least one processor 702 to execute the network connection method based on a multi-user identification card disclosed herein.
[0217] The electronic device 700 also 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 embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0219] According to embodiments of this disclosure, this disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, and the at least one processor executing the computer program causing the electronic device to perform the scheme provided in any of the above embodiments.
[0220] Figure 8 is a block diagram illustrating an electronic device according to an exemplary embodiment. The device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
[0221] Device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 811, input / output (I / O) interface 812, sensor component 814, and communication component 816.
[0222] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0223] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. 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 storage, flash memory, magnetic disk, or optical disk.
[0224] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 800.
[0225] 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 1000 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0226] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, 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 buttons, volume buttons, power buttons, and lock buttons.
[0228] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. 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, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0229] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may 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, 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 methods described above.
[0231] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0232] A non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by the processor of a terminal device, the terminal device is able to execute the aforementioned network connection method based on a multi-user identification card.
[0233] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0234] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0235] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.
[0236] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.
[0237] When integrated units / modules are implemented in hardware, the hardware can be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit can be any suitable magnetic or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), Hybrid Memory Cube (HMC), etc.
[0238] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0239] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as these combinations of technical features do not contradict each other, they should be considered within the scope of this specification.
[0240] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0241] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this 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 having at least two card slots, each containing a user identification card. The method includes: for each user identification card, obtaining preset network configuration parameters; wherein the preset network configuration parameters include multiple network connection information entries, used to connect the user identification card to a base station; determining a target identification card from among the multiple user identification cards, and defining the preset network configuration parameters of the target identification card as target network parameters; and determining 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, wherein the preset arrangement order is based on a preset... First, the order of setting time for network connection information in the network configuration parameters is set; 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, which is the second parameter information; if the second parameter information establishes a network session between the target identification card and the base station, then the first parameter information and the second parameter information are determined as connection-to-be-connected information; based on the connection-to-be-connected information, a network session is obtained; wherein, the network connection information and the network session correspond one-to-one, and the network session is used for electronic devices to communicate with the base station through the target identification card.
2. The method according to claim 1, 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, 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.
3. The method according to claim 1, 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, 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 becomes the new second parameter information, until the new second parameter information establishes a network session between the target identification card and the base station.
4. The method according to claim 1, characterized in that, Determining a target identification card from multiple user identification cards includes: determining a target card slot from multiple card slots according to a preset card slot order, and identifying the user identification card in the target card slot as the target identification card.
5. The method according to claim 4, characterized in that, Also includes: If the first parameter information or the second parameter information is not present in the target network parameters, a new target card slot is determined from multiple card slots according to the preset card slot order, and the user identification card in the new target card slot is determined as the new target identification card. Continue executing the process of determining the preset network configuration parameters of the new target identification card as the new target network parameters, determining at least two network connection information from the new target network parameters as new connection information, and obtaining a network session based on the new connection information.
6. The method according to any one of claims 1-5, characterized in that, Also includes: The system acquires service monitoring data of the network session within a preset first monitoring period; wherein the service monitoring data represents the monitoring results of communication data in the network session; if it is determined that there is abnormal data in the service monitoring data within the preset first monitoring period, a first maintenance time of the abnormal data is determined; if the first maintenance time exceeds a preset first time threshold, 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; wherein the information to be switched is network connection information other than the information to be connected.
7. The method according to claim 6, characterized in that, If the first maintenance time exceeds a preset first time threshold, then 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, including: if the first maintenance time exceeds the preset first time threshold, then the service 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 service monitoring data within the preset second monitoring period, then the second maintenance time of the abnormal data is determined; if the second maintenance time exceeds the preset first time threshold, then 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; wherein, the information to be switched is network connection information other than the information to be connected.
8. The method according to claim 6, characterized in that, Also includes: The network signal monitoring data of the target identification card within a preset third monitoring period is acquired; wherein the network signal monitoring data represents the quality of the network signal; if preset quality data exists in the network signal monitoring data within the preset third monitoring period, a third maintenance time of the preset quality data is determined; wherein the preset quality data represents the quality of the network signal being 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 multiple user identification cards; wherein the identification card to be switched represents user identification cards other than the target identification card.
9. The method according to claim 8, characterized in that, If the third maintenance time exceeds a preset second time threshold, then 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, then acquiring network signal monitoring data of the target identification card within a preset fourth monitoring period; if preset quality data exists in the network signal monitoring data within the preset fourth monitoring period, then determining the fourth maintenance time of the preset quality data; if the fourth maintenance time exceeds the preset second time threshold, then determining the identification card to be switched from multiple user identification cards.
10. A network connection device based on a multi-user identification card, characterized in that, include: An acquisition unit is used to acquire preset network configuration parameters for each user identification card; wherein the preset network configuration parameters include multiple network connection information, which are used to connect the user identification card to a base station; a determination unit is used to determine a target identification card from the multiple user identification cards and determine the preset network configuration parameters of the target identification card as target network parameters; a connection unit includes an information determination module and a connection module, wherein the information determination module includes a first parameter submodule, a second parameter submodule, and a connection information submodule; the first parameter submodule is used 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, which is designated as the first parameter information, wherein the preset arrangement order is based on a preset... The network configuration parameters are configured to: 1) determine the order of network connection information settings in the network configuration parameters; 2) determine the next network connection information from the target network parameters, which is the second parameter information, if the first parameter information establishes a network session between the target identification card and the base station; 3) determine the first parameter information and the second parameter information as connection-to-be-connected information if the second parameter information establishes a network session between the target identification card and the base station; 4) determine the connection-to-be-connected information as connection-to-be-connected information based on the connection-to-be-connected information; and 5) determine the network session based on the connection-to-be-connected information, whereby the network connection information corresponds one-to-one with the network session, and the network session is used for communication between the electronic device and the base station via the target identification card.
11. 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 as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 9.
13. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 9.
Citation Information
Patent Citations
SIM card configuration method and device, electronic equipment and storage medium
CN115706965A