Method for acquiring information of SIM (Subscriber Identity Module) card, electronic equipment and terminal equipment
By using the polling module in the electronic device to obtain more than the number of processing units, the problem of interruption of SIM card communication service in the prior art is solved, and the effect of obtaining all SIM card information without affecting communication is achieved.
Patent Information
- Application Number
- CN202411401441.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-30
- Publication Date
- 2025-04-22
AI Technical Summary
When obtaining more than the number of SIM card information in the prior art, it is necessary to temporarily or permanently switch the processing unit, resulting in the interruption of previous SIM card communication services and affecting the user experience.
An electronic device is provided, including a SIM card interface and an additional SIM card interface, obtains the first SIM card information through the first processing unit, and creates a polling module through the second processing unit, and the polling module acquires the second SIM card information from the additional SIM card interface without affecting the communication of the first SIM card.
Without affecting SIM card communication, all SIM card information in the electronic device is obtained and displayed to the user at the same time, improving the user experience.
Smart Images

Figure CN119865799A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202110482438.8, and the original application date is April 30, 2021. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the technical field of electronic equipment, and in particular to a method for obtaining information of a SIM card, an electronic device and a terminal device. Background Art
[0003] At present, electronic devices are generally dual-card dual-standby due to the size of the device itself and the cost of radio frequency. For example, there are two SIM card slots (SIM card interfaces) on the mobile phone, and the user installs plug-in SIM cards in the SIM card slots. The mobile phone allocates corresponding radio frequency resources to the two SIM cards so that the two SIM cards can realize services such as calls, Internet access, and text messages. Alternatively, the mobile phone is provided with two SIM card slots and an embedded UICC (embedded eSIM chip), and the user installs a plug-in SIM card in the SIM card slot, and the embedded UICC stores one or more eSIM card profiles, that is, one or more eSIM applications. The mobile phone allocates corresponding radio frequency resources to a plug-in SIM card or an eSIM card, or the mobile phone allocates corresponding radio frequency resources to two plug-in SIM cards so that the two cards can realize services such as calls, Internet access, and text messages. Usually, when the SIM card of the mobile phone is switched, if the user needs to know the information of the changed SIM card, a modem needs to be temporarily or permanently switched to the SIM card, so that the previous SIM card is disconnected from the modem, which further causes the disconnection of the network connection, reducing the user experience. Summary of the invention
[0004] In view of this, the present invention provides a method for obtaining information of a SIM card, an electronic device and a terminal device.
[0005] Some embodiments of the present application provide an electronic device. The present application is introduced from multiple aspects below, and the embodiments and beneficial effects of the following multiple aspects can be referenced to each other.
[0006] In a first aspect, the present application provides another electronic device, comprising: a SIM card interface and an additional SIM card interface;
[0007] A first processing unit is used to connect to a SIM card interface, the first processing unit has the ability to access a mobile network, and the first processing unit is configured to obtain information about a first SIM card from the SIM card interface and access the mobile network; a second processing unit is used to connect to an additional SIM interface, the second processing unit has the ability to access a mobile network, and is not connected to the mobile network; and the second processing unit is configured to create a polling module, the polling module does not have the ability to access a mobile network and is configured to obtain information about a second SIM card from an additional SIM card interface, and does not connect the second SIM card information to the network; a display unit is used to display information about the first SIM card and information about the second SIM card. When the processing unit of the electronic device of the present application is in a non-networked or non-communication state, the polling module controls the processing unit to obtain SIM card information from an additional SIM card interface by polling. Thus, all SIM card information in the electronic device can be obtained without affecting SIM card communication.
[0008] In a possible implementation of the first aspect, in response to an instruction to activate networking of the second SIM card, the second processing unit does not connect the information of the first SIM card to the mobile network, but connects the information of the second SIM card obtained by the polling module to the mobile network.
[0009] In a possible implementation of the first aspect, the device further includes: a smart card interface SCI, where the smart card interface SCI serves as a channel for the polling module and the second processing unit to obtain the second SIM card information.
[0010] In a possible implementation of the first aspect, in response to an instruction to activate networking of the second SIM card, the second processing unit connects the information of the second SIM card obtained by the polling module to the mobile network through the smart card interface SCI.
[0011] In a possible implementation of the first aspect above, the electronic device further includes: a baseband processing unit, which is coupled to the smart card interface SCI, the first processing unit, and the second processing unit respectively. When the baseband processing unit determines that the time for obtaining the first SIM card information is less than the set time, the baseband processing unit controls the polling module to obtain the second SIM card information from the additional SIM card interface through the second processing unit.
[0012] In a possible implementation of the first aspect above, when the baseband processing unit determines that the time for obtaining the second SIM card information is less than a set duration, the baseband processing unit creates a task pool, and adds the number of second SIM card information to be read from the additional SIM card interface as the number of tasks to be completed to the task pool, and the polling module is used to obtain the second SIM card information by controlling the second processing unit to process the tasks in the task pool.
[0013] In a possible implementation of the first aspect above, when the second processing unit processes a task in the task pool, the baseband processing unit is used to set the second processing unit to an exclusive SIM card mode, and / or set the second processing unit to enter an airplane mode.
[0014] In a possible implementation of the first aspect, when the second processing unit determines that there is no task in the task pool, the baseband processing unit is used to control the second processing unit to exit the exclusive SIM card mode and / or the flight mode.
[0015] In a possible implementation of the first aspect, when the polling processing module receives an instruction indicating that the SIM card has been changed, the second SIM card information is acquired from the additional SIM card interface.
[0016] In a possible implementation of the first aspect above, the instruction for changing the SIM card information is triggered by a power-on operation, a restart operation, a SIM card interface insertion detection operation, or a SIM card hot start operation.
[0017] In a second aspect, the present invention provides an electronic device, comprising: a SIM card interface and an additional SIM card interface;
[0018] A processing unit having the ability to access a mobile network, the processing unit is configured to obtain information of a first SIM card from a SIM card interface and access the mobile network; an additional processing module having no ability to access a mobile network, the additional processing module is configured to obtain information of a second SIM card from an additional SIM card interface, and does not connect the second SIM card to the mobile network; a display unit for displaying information of the first SIM card and information of the second SIM card. The electronic device of the present application is capable of obtaining an additional processing module by instantiating a processing unit (modulation and demodulation unit), and obtaining information from a SIM card in an additional SIM card interface through the additional processing module. Thus, information of a SIM card that is not connected to the processing unit in the electronic device is obtained and presented to the user without affecting the normal communication of the modulation and demodulation unit for the SIM card.
[0019] In a possible implementation of the second aspect, in response to an instruction to activate networking of the second SIM card, the processing unit does not connect the information of the first SIM card to the mobile network, but connects the information of the second SIM card acquired by the additional processing module to the mobile network.
[0020] In a possible implementation of the second aspect, the electronic device further includes: a smart card interface SCI, and the smart card interface SCI serves as a channel for the additional processing module to obtain information of the second SIM card.
[0021] In a possible implementation of the second aspect above, in response to an instruction to activate networking of the second SIM card, the processing unit disconnects from the SIM card interface through the smart card interface SCI and connects to the additional SIM card interface to access the information of the second SIM card to the mobile network.
[0022] In a possible implementation of the second aspect, the additional SIM card interface includes at least one eSIM card interface, and the information of the second SIM card includes information of at least one configuration file in the eSIM card connected to the eSIM card interface.
[0023] In a possible implementation of the second aspect above, when the additional processing module fails to read the configuration file from the eSIM card interface, the electronic device obtains the configuration file corresponding to the eSIM card via the processing unit to obtain information of the second SIM card corresponding to the configuration file.
[0024] In a possible implementation of the second aspect, when receiving the instruction that the SIM card has been changed, the additional processing module obtains the information of the second SIM card from the additional SIM card interface.
[0025] In a possible implementation of the second aspect, the instruction for changing the SIM card information is triggered by a power-on operation, a restart operation, a SIM card interface insertion detection operation, or a SIM card hot start operation.
[0026] In a possible implementation of the second aspect above, the information of the first SIM card includes: at least one of a telephone number, an integrated circuit card identification code and an international mobile subscriber identity code, and the information of the second SIM card includes: at least one of a telephone number, an integrated circuit card identification code and an international mobile subscriber identity code.
[0027] In a third aspect, the present application also provides a method for obtaining SIM card information, which is applied to an electronic device, wherein the electronic device comprises: a SIM card interface, an additional SIM card interface, a first processing unit and a second processing unit; the electronic device powers on the SIM card in the SIM card interface through the first processing unit, obtains information of the first SIM card from the SIM card interface, and accesses a mobile network wherein the communication capability can be used for the SIM card connected to the SIM card interface; in response to an instruction of a SIM card change, the electronic device creates a polling module through the second processing unit, and obtains information of the second SIM card in the additional SIM card interface through the polling module. The electronic device displays the first SIM card information and the second SIM card information. The method of the present application controls the processing unit to obtain SIM card information from the additional SIM card interface by polling when at least one processing unit is in a non-networked or non-communication state. Thus, all SIM card information in the electronic device is obtained without affecting the communication of the SIM card.
[0028] In a possible implementation of the third aspect, in response to an instruction to activate networking of the second SIM card, the second processing unit does not connect the information of the first SIM card to the mobile network, but connects the information of the second SIM card acquired by the polling module to the mobile network.
[0029] In a possible implementation of the third aspect, the electronic device further includes a smart card interface SCI, and the polling module acquires the second SIM card information in the additional SIM card interface, including:
[0030] The polling module obtains the second SIM card information in the additional SIM card interface through the smart card interface SCI.
[0031] In a possible implementation of the third aspect, in response to an instruction for activating networking of the second SIM card, the second processing unit connects the second SIM card information to the network through the smart card interface SCI.
[0032] In a possible implementation of the third aspect above, the electronic device also includes a baseband processing unit, and the polling module obtains the second SIM card information in the additional SIM card interface, including: when the baseband processing unit determines that the time for obtaining the second SIM card information is less than a set time, the baseband processing unit controls the polling module to obtain the second SIM card information through the second processing unit.
[0033] In a possible implementation of the third aspect above, when the baseband processing unit determines that the time for obtaining the second SIM card information is less than a set duration, the baseband processing unit creates a task pool, and adds the number of second SIM card information to be read from the additional SIM card interface as the number of tasks to be completed to the task pool, and the polling module controls the second processing unit to process the tasks in the task pool and obtains the second SIM card information.
[0034] In a possible implementation of the third aspect above, when the second processing unit processes a task in the task pool, the baseband processing unit sets the second processing unit to an exclusive SIM card mode, and / or sets the second processing unit to enter an airplane mode.
[0035] In a possible implementation of the third aspect, when the second processing unit determines that there is no task in the task pool, the baseband processing unit controls the second processing unit to exit the exclusive SIM card mode and / or the flight mode.
[0036] In a possible implementation of the third aspect, the SIM card change instruction is triggered by a power-on operation, a restart operation, a SIM card interface insertion detection operation, or a SIM card hot start operation of the electronic device.
[0037] In a fourth aspect, the present application provides a method for obtaining SIM card information, which is applied to an electronic device, wherein the electronic device comprises: a SIM card interface, an additional SIM card interface, and a processing unit; the electronic device powers on the SIM card in the SIM card interface respectively through the processing unit, obtains information of a first SIM card from the SIM card interface, and accesses a mobile network; the electronic device responds to an instruction of a SIM card change, creates an additional processing module through the processing unit, and obtains information of a second SIM card in the additional SIM card interface through the additional processing module; the electronic device displays the first SIM card information and the second SIM card information on the interface at the same time. The method obtains the additional processing module by instantiating a modem unit, and obtains information from the SIM card in the additional SIM card interface through the additional processing module. Thus, the information of a SIM card that is not connected to the processing unit in the electronic device is obtained and presented to the user without affecting the normal communication of the modem unit for the SIM card.
[0038] In a possible implementation of the fourth aspect, in response to an instruction to activate networking of the second SIM card, the processing unit does not connect the information of the first SIM card to the mobile network, but connects the information of the second SIM card obtained by the polling module to the mobile network.
[0039] In a possible implementation of the fourth aspect above, the electronic device also includes a smart card interface SCI, and the additional processing module obtains the second SIM card information in the additional SIM card interface, including: the additional processing module obtains the second SIM card information in the additional SIM card interface through the smart card interface SCI.
[0040] In a possible implementation of the fourth aspect, in response to an instruction of the second SIM card to activate networking, the processing unit connects the information of the second SIM card acquired by the additional processing module to the mobile network through the smart card interface SCI.
[0041] In a possible implementation of the fourth aspect above, the additional processing module obtains the second SIM card information in the additional SIM card interface, including: when the additional SIM card interface is an eSIM card interface, and the additional processing module fails to read the configuration file from the eSIM card interface, the electronic device has the ability to access the mobile network via the processing unit, and obtains the configuration file corresponding to the eSIM card to obtain the second SIM card information of the configuration file corresponding to the eSIM card interface.
[0042] In a possible implementation of the fourth aspect, the SIM card change instruction is triggered by a power-on operation, a restart operation, a SIM card interface insertion detection operation, or a SIM card hot start operation of the electronic device.
[0043] In a possible implementation of the fourth aspect above, the first SIM card information includes: at least one of a telephone number, an integrated circuit card identification code and an international mobile subscriber identity code, and the second SIM card information includes: at least one of a telephone number, an integrated circuit card identification code and an international mobile subscriber identity code.
[0044] In a fifth aspect, the present application provides a terminal device, including:
[0045] a memory for storing instructions to be executed by one or more processors of the device, and
[0046] A processor is used to execute the methods of the embodiments of the third and fourth aspects above.
[0047] In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes the method of the third and fourth aspects of the embodiments.
[0048] In a seventh aspect, the present application discloses a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods disclosed in the third and fourth aspects of the embodiments.
[0049] In an eighth aspect, the present application discloses a device, including a processor, a memory, and a communication module. The processor, the memory, and the communication module communicate with each other through an internal link path to transmit control and / or data signals, so that the device executes the method disclosed in the third and fourth aspects of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1a A schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0051] Figure 1b Another structural schematic diagram of an electronic device according to an embodiment of the present application;
[0052] Figure 2 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0053] Figure 3 A software structure block diagram of an electronic device according to an embodiment of the present application;
[0054] Figure 4a A schematic diagram of the structure of a mobile phone according to an embodiment of the present application;
[0055] Figure 4b A flowchart of a mobile phone obtaining SIM card information according to an embodiment of the present application;
[0056] Figure 4cAnother structural schematic diagram of a mobile phone according to another embodiment of the present application;
[0057] Figure 5a This is an interface diagram of a mobile phone displaying SIM card information in one embodiment of the present application;
[0058] Figure 5b This is an interface diagram for a user to choose to change a SIM card according to an embodiment of the present application;
[0059] Figure 6 This is another interface operation diagram of a mobile phone according to an embodiment of the present application;
[0060] Figure 7 Another structural schematic diagram of a mobile phone according to an embodiment of the present application;
[0061] Figure 8 This is a flowchart of polling to obtain SIM card information according to an embodiment of the present application;
[0062] Fig. 9 A schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0063] Fig.10 A block diagram of a device according to some embodiments of the present application;
[0064] Fig.11 A block diagram of a system on a chip (SoC) according to some embodiments of the present application. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. In order to facilitate the understanding of the technical solutions, the following exemplary descriptions of some concepts related to the embodiments of the present application are given for reference.
[0066] SIM card, or Subscriber Identity Module, is a user identification module opened by a mobile operator for a user to enable communication. The SIM card stores digital mobile phone customer information, encryption keys, and the user's phone book, etc. The SIM card in this application can be a plug-in SIM card, an eSIM card, or a vSIM card.
[0067] A plug-in SIM card refers to a physical SIM card that can be inserted into or removed from a physical card slot. This type of card requires users to go to the operator's business hall or select a number and access the network through the operator's online business hall, and after activation, it can be inserted into the physical card slot (or SIM card interface) of the electronic device before it can be used.
[0068] eSIM card, also known as embedded-SIM, is a universal integrated circuit card (UICC) embedded in an electronic device (which cannot be separated from the electronic device), rather than being added to the electronic device as an independent removable component. It is also called embedded UICC, eUICC. An eSIM card can store multiple eSIM profiles of operators, and each eSIM profile can independently constitute a SIM application. Each SIM application is equivalent to the function of a SIM card.
[0069] The processing unit may include a dedicated independent circuit, a chip, a hardware module integrated in a SOC, etc., or may include a corresponding software module, or may be implemented in software in a general-purpose CPU. Among them, the hardware module is, for example, a modem unit. The processing unit has the ability to access a mobile network. For example, the modem unit may include a modulator and a demodulator, and the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. By processing the baseband signal, a signal that can be understood between the receiving end and the transmitting end is realized, thereby having the communication capability of accessing the mobile network. In some embodiments, software may also be used to implement the communication function. The number of N processing units mentioned in this application may be 1, or 2 or more. For example, there may be 2 modem units. In the following embodiments, the functions of the processing unit are described in detail, and specific reference may be made to the description of the following specific embodiments.
[0070] The additional processing unit is used to obtain the information of the SIM card in the SIM interface, such as the mobile phone number, the integrated circuit card identity (ICCID), the international mobile subscriber identification number (IMSI) and other information. The user can judge the category of the SIM card based on this information so as to select the SIM card that needs to communicate. In one embodiment of the present application, the additional processing unit can be a virtual module (additional processing module) instantiated by the electronic device according to the processing unit, or it can be a collection of multiple additional processing modules, so that each additional processing module reads the information of one or more SIM cards. For example, M additional processing modules can be included, and the M additional processing modules are used to obtain the SIM card information in the M corresponding SIM card interfaces. Wherein M can be 1 or a natural number greater than 1. In some embodiments, the additional processing unit can also include a polling module that can control the processing unit, and the polling module controls the processing unit to complete the reading of the information of one or more SIM cards. The additional processing unit does not have the ability to access the mobile network, and cannot process the baseband signal received or sent by the device into a signal that can be used for communication between devices.
[0071] The SIM card interface may be a physical card slot for installing a plug-in SIM card, or a non-pluggable embedded universal integrated circuit eUICC (eSIM card) or a soft interface for storing a soft SIM card (vSIM).
[0072] Additional SIM card interface, that is, also SIM card interface, for ease of understanding, in the following embodiments, additional SIM card interface refers to a SIM card interface that fails to connect to the modem unit due to the limited number of modem units at the same time. Smart card interface SCI: responsible for the connection relationship between the modem unit and the specific SIM card, because the number of SIM cards used is not fixed (for example, the number of physical SIM cards selected by the user, the number of Profiles in the eSIM card selected by the user to activate, the number of vSIM cards selected by the user, etc.), when the number of modem units is less than the number of SIM cards connected to the SIM card interface, the modem unit cannot be connected to all SIM cards at the same time, and can only be time-division multiplexed. The smart card interface SCI will be used to control the connection of the physical path and the transmission of data. In the embodiments of the present application, the function of the smart card interface SCI can be implemented by hardware, for example, a card interface switch. It can also be implemented by software, for example, by controlling the modem unit to establish a connection and binding relationship with the selected SIM card through software, and the comparison of the present application is not limited.
[0073] In a mobile phone with multiple SIM cards, the usual processing method is as follows. When the SIM card is running, the electronic device drives the operation of the SIM card through the card driver (ISO-7816 interface protocol, SIM card initialization and other terminal and SIM card interface protocols). The card driver is only responsible for connecting the data transmission channel between the SIM card reading and writing module and the SIM card chip (single-chip microcomputer). The reading and writing of the internal file information of the SIM card depends on the protocol stack, and the protocol stack is implemented in the modem unit, so the reading and writing of the SIM card depends on the modem unit. Since such electronic devices are subject to the volume of the device and the cost of radio frequency, usually only two modem units may be provided. When the number of SIM cards installed in the electronic device is greater than the number of modem units, for example, the electronic device has two modem units and three SIM card interfaces, wherein each SIM card interface is connected to a SIM card, for example, two plug-in SIM cards and 1 eSIM card, the smart terminal can only power on the two SIM cards at the same time through the two modem units, complete the initialization process reading, and obtain the information of the two SIM cards connected to the two modem units. The third card cannot be presented to the user at the same time on the electronic device. If the mobile phone wants to obtain the information of the third card, it needs to disconnect the modem unit that is already connected to the SIM card, and then make a permanent or temporary connection with the third SIM card to obtain the information of the third SIM card. Although this method can obtain the information of the third card, it will cause the communication service of the SIM card that has been connected to the modem unit to be interrupted, thereby affecting the communication of the SIM card in normal communication. Therefore, if the service of the SIM card in communication service is interrupted just to obtain the information of the third SIM card, it will affect the normal communication and the user experience will be reduced.
[0074] In order to solve the above-mentioned problem that only the information of the SIM card needs to be temporarily switched or permanently switched, the present application provides an electronic device that can support multiple SIM cards. When the number of processing units is less than the number of SIM cards connected to the electronic device, the electronic device can read the information of SIM cards that are more than the number of processing units without affecting the normal communication services of the SIM cards currently connected to the processing unit, that is, it can read the information of the SIM cards in the additional SIM card interface. And the information of multiple SIM cards obtained is displayed to the user at the same time, so that the user can judge the SIM card to be used according to the information of the SIM card.
[0075] In the solution according to the present application, the SIM card can be a combination of a plug-in SIM card, an eSIM card and a vSIM card. And the electronic device is provided with a processing unit, i.e., a processing unit for implementing SIM card communication, which can be hardware, such as a modem, or a virtual functional module.
[0076] refer to Figure 1a , Figure 1a Schematic diagram of the structure of the electronic device is shown. Figure 1a As shown, the electronic device includes SIM card interface 1, SIM card interface 2, SIM card interface 3 to SIM card interface N for connecting SIM cards, and processing unit 1, processing unit 2 and additional processing unit arranged in the baseband processing unit. When the above SIM card interfaces are all loaded with SIM cards, for example, the SIM card is a physical card slot that can be installed with a pluggable SIM card, and the SIM card is an eUICC, the eSIM profile profile can be downloaded. Figure 1a As shown, the processing unit 1 is connected to the SIM card interface 1 and provides communication capability to the SIM card interface 1. For example, when the SIM card 1 is connected to the SIM card interface 1, the SIM card initialization can be completed for the SIM card 1, and the SIM card 1 can be authenticated to use the mobile communication network and reside in the network so that the SIM card 1 can communicate or enjoy data services at any time. The processing unit 2 is connected to the SIM card interface 2 and provides communication capability to the SIM card interface 2. For example, when the SIM card 2 is connected to the SIM card interface 2, the SIM card initialization can be completed for the SIM card 2, and the authentication to use the mobile communication network and reside in the network can be provided so that the SIM card 2 can achieve the ability to communicate and surf the Internet. The additional processing unit is connected to the SIM card interface 3 to the SIM card interface N, and may not have communication capability, and is used to read the information of the SIM card connected to the SIM card interface 3 to the SIM card interface N, wherein the SIM card interface 3 to the SIM card interface N is the additional SIM card interface in the above definition. The information of the SIM card in this application refers to the information that can be identified by the user and determine which SIM card it is. For example, the SIM card is read from at least one of the operator information, phone number, integrated circuit card identification code and international mobile subscriber identification code corresponding to the SIM card, so that the user can identify the SIM card in place based on the information of the SIM card and can select it at any time.
[0077] When the electronic device detects the user's operation of turning on the device, restarting the electronic device, inserting the SIM card tray, or hot starting the SIM card, Figure 1a As shown, the electronic device powers on SIM card 1, SIM card 2, and SIM card 3 to SIM card N respectively, obtains information of SIM card 1 through processing unit 1, obtains information of SIM card 2 through processing unit 2, obtains information of SIM card 3 to SIM card N through an additional processing unit, and simultaneously displays information of N SIM cards to the user. This achieves the ability to obtain information of SIM card 3 without affecting the normal communication of SIM card 1 and SIM card 2, thereby improving the user experience.
[0078] In some embodiments of the present application, the processing unit may be a modem, and the electronic device obtains information of the SIM card based on the modem and provides communication capability for the SIM card.
[0079] In some embodiments of the present application, the electronic device may also include a processing unit, and the additional processing unit may include two virtual additional processing modules and three card interfaces. The electronic device may simultaneously obtain information of SIM cards in the three card interfaces through the processing unit and the two additional processing modules.
[0080] In an embodiment of the present application, the additional processing unit may be a virtual additional processing module instantiated based on the processing unit 1 or the processing unit 2 for reading SIM card information, and the additional processing unit may not provide the SIM card with communication capabilities, but is only used to read the information of the SIM card. The additional processing unit in the present application may be a virtual additional processing module, or may be a collection of multiple virtual additional processing modules. For example, the additional processing unit may be a software module in the processing unit 1 or 2, and the processing unit 1 or 2 establishes a connection and communicates with the SIM card interface 1 to N respectively. The additional processing unit reads the information of at least one of the SIM cards 1 to N connected to the SIM card interface 1 to N through the connection, so as to present it to the user, so that the user can view all SIM card information in the electronic device.
[0081] refer to Figure 1b , Figure 1b Another structural schematic diagram of an electronic device is shown. Figure 1b As shown, the electronic device also includes a smart card interface (SCI), and the SCI is respectively connected to the SIM card interface 1, the SIM card interface 2, the SIM card interface 3 to the SIM card interface N, and the processing unit 1 and the processing unit 2. The electronic device realizes the connection between the processing unit 1 and the processing unit 2 and the SIM card specified by the user through the SCI. For example, the processing unit 1 and the processing unit 2 are connected to the SIM card interface 1 and the SIM card interface 2 respectively by default after powering on. The user chooses to use the SIM card 3 based on the interface of the electronic device. When the SCI receives the instruction of the user to choose to use the SIM card 3, the processing unit 1 or the processing unit 2 is connected to the SIM card interface 3, so that the processing unit 1 or the processing unit 2 provides communication capability for the SIM card 3, completes the resident network of the SIM card 3, and receives the communication network service.
[0082] The following describes the process of obtaining SIM card information in the present application by taking an electronic device as an example and combining the specific structure of the electronic device.
[0083] For example, Figure 2 A schematic diagram of the structure of an electronic device is shown. Figure 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, etc. The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. For example, the SIM card interface 195 may include a SIM card interface 195A, a SIM card interface 195B, and a SIM card interface 195C. These card interfaces may be any of a physical card slot, an eSIM chip, and a soft interface for storing a soft SIM card (vSIM). It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0084] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processing unit 111, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0085] In some embodiments, the baseband processing unit 111 may include a processing unit and an additional processing unit 111B, wherein the processing unit may be a modem unit 111A. In addition, in some embodiments, the additional processing unit may also be arranged in other components in the form of software, may include a corresponding software module, or may be implemented in software in a general-purpose CPU. In other embodiments, the baseband processing unit 111 may also include a baseband processor, etc. The baseband processing unit 111 provides baseband and radio frequency resources for a SIM card connected to the SIM card interface 195 through the modem unit 111A and the baseband processor. For example, the baseband processor may allocate a mobile communication module and an antenna to the SIM card interface 195 to provide radio frequency resources to the SIM card, so that the SIM card can communicate. The information of the SIM card connected to the SIM card interface is read through the additional processing unit 111B. Among them, the SIM card interface read by the additional processing unit 111B refers to the SIM card interface that fails to connect to the modem unit due to the limit on the number of modem units at the same time. When the number of SIM card interfaces in the electronic device is greater than the number of modem units, the electronic device 100 will obtain the information of the SIM card connected to the SIM card interface through the additional processing unit. Thus, the electronic device 100 can obtain the information of the SIM cards connected to the SIM card interface without switching the modem unit. This avoids temporarily or permanently switching the modem unit that has been connected to the SIM card interface to obtain the SIM card information of the SIM card interface that has not been connected to the modem unit before, thereby affecting the communication of the SIM card that has been connected to the SIM card interface. Among them, the additional processing unit 111B can be an additional processing module generated by the baseband processing unit 111, or a collection of multiple additional processing modules, for example, a modem unit is instantiated by software, or the modem unit resources are allocated as an additional processing module, so that each additional SIM card interface can independently correspond to an additional processing module. Furthermore, when the electronic device 100 does not switch the modem unit, the information in the internal SIM card interface and the additional SIM card interface can be acquired by the processor 110 and sent to the display screen 194 for display, and the user can see the information of all SIM cards through the display screen 194.
[0086] The processor 110 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0087] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0088] In one embodiment, the processor 110 can control the baseband processing unit 111 through stored instructions to allocate a modem unit and radio frequency resources to the SIM card interface, and can control the baseband processing unit 111 to instantiate additional processing modules corresponding to the number of additional SIM card interfaces according to the modem unit.
[0089] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an improved inter-integrated circuit (I3C) interface, a serial peripheral interface (SPI), an ISO interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, and a subscriber identity module (SIM) interface.
[0090] In some embodiments, the SIM card interface 195A and the SIM card interface 195B may be two physical card slots for installing plug-in SIM cards, and the physical card slots are used to install plug-in SIM cards. The plug-in SIM card can be connected to and separated from the electronic device 100 by inserting the SIM card interface 195A or the SIM card interface 195B, or pulling it out from the SIM card interface 195A or the SIM card interface 195B. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. When the operator issues the physical SIM card to the user, the network parameters and user data corresponding to the service selected by the user are injected into the SIM card. For example, the electronic device number, the integrated circuit card identification code, the international mobile user identification code, the authentication and encryption information, and the information parameters for obtaining the network. The electronic device 100 uses the communication network services provided by the operator through the SIM card to achieve functions such as network interaction, calls and data communications.
[0091] In some embodiments, the SIM card interface 195C may be an embedded eSIM card. When an eSIM profile is written in the eSIM card, the embedded SIM card can be used for communication. The eSIM card may be embedded in the circuit board of the electronic device 100 and cannot be separated from the electronic device 100. Furthermore, when there is no eSIM profile in the eSIM card, the electronic device 100 may directly download the eSIM profile from the operator server through a SIM card with communication function, a WiFi network or indirectly through other devices and store it in the eSIM card, so that the eSIM card can communicate normally.
[0092] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem unit 111A and the baseband processor.
[0093] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0094] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation unit 111A for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation unit 111A, and convert it into electromagnetic waves for radiation through the antenna 1 to realize SIM card authentication to use the mobile network and enjoy communication services. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0095] The modem unit 111A may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem unit 111A may be an independent device. In other embodiments, the modem unit may be independent of the processor 110 and may be arranged in the same device as the mobile communication module 150 or other functional modules.
[0096] In some embodiments, the electronic device 100 can communicate with the authentication server and the operator server through the mobile communication module 150, and obtain the eSIM configuration file for networking from the operator server. The eSIM configuration file may include various parameters for services of the communication network, such as Profile identification, operator identification, electronic device number, encryption information, and network parameters.
[0097] In some embodiments, the electronic device 100 has two modem units 111A. When SIM cards are installed in the SIM card interface 195A and the SIM card interface 195B, and there is no eSIM profile (i.e., an empty eSIM card) in the SIM card interface 195C. The two modem units 111A are connected to the SIM card interface 195A and the SIM card interface 195B respectively, and obtain the SIM card information in the two interfaces. When the additional processing unit 111B cannot read any information from the empty eSIM card, a prompt that the card is blank can be displayed on the display screen, or the information of the eSIM card can be displayed as blank. The user can determine that there is no available eSIM profile in the eSIM card according to the prompt or the blank state. The user can trigger the instruction to download the eSIM profile of the eSIM card as needed, and the electronic device 100 can use the communication resources provided by the other two SIM cards connected to the modem unit 111A to download the eSIM profile from the operator server for user convenience. At the same time, it does not affect the normal communication of the other two SIM cards, thereby improving the user experience. The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0098] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0099] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0100] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0101] In some embodiments, the display screen 194 may display an interface of SIM card information, and the user may select the SIM card that he wants to communicate through the information of the SIM card displayed on the interface. In addition, after the user selects the SIM card that he wants to connect, if the modem unit switches the connected SIM card operation, for example, when the primary and secondary SIM cards are switched, the display screen 194 may also display a prompt prompting the user whether to switch, so that the user may carefully consider whether to switch, or provide the user with SIM card information for selection for the user to select. Touch sensor, also known as "touch panel". The touch sensor may be provided on the display screen 194, and the touch sensor and the display screen 194 may form a touch screen, also known as "touch screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor may transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor may also be provided on the surface of the electronic device, which is different from the position of the display screen 194. The bone conduction sensor may obtain vibration signals. In some embodiments, when the user touches the selected SIM card communication click operation on the display screen 194, the touch sensor receives the user's communication click operation and passes the operation to the application processor, which determines the touch type and controls the modulation and demodulation unit to connect to the selected SIM card or establish a binding association relationship. The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100.
[0102] Figure 31 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0103] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0104] The application layer can include a series of application packages.
[0105] like Figure 3 As shown, the application package may include card management applications, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0106] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0107] Card management application, the card management application can provide users with various card management functions and corresponding management interfaces. For example, the card management application can provide users with SIM card management functions and corresponding interfaces to facilitate users to manage multiple cards. For example, through the displayed card information, one or two SIM cards can be selected as the default card for connecting to communication. You can also temporarily switch which card to use, or set up the SIM card, etc. For another example, when the eSIM card does not have an eSIM profile, the card management application can provide users with operations such as adding an eSIM card, that is, downloading an eSIM profile or activating a downloaded eSIM profile, deactivating, and deleting the corresponding eSIM profile.
[0108] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a card reading system, and the like.
[0109] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0110] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0111] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0112] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0113] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0114] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0115] The card reading system is used to read the information of the SIM card in the electronic device 100. When the number of modem units is less than the number of SIM cards, the information of all SIM cards can be read without switching the modem units in the electronic device, and sent to the application layer to display the SIM card information, so that the user can select the card to be used according to the SIM card information, and there is no need to switch the connection or associated binding relationship between the modem unit and the SIM card. In some embodiments of the present application, the card reading system can also be set in the system library, which is not limited here.
[0116] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0117] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0118] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0119] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0120] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0121] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0122] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0123] A 2D graphics engine is a drawing engine for 2D drawings.
[0124] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, sensor driver and card driver, etc.
[0125] The card driver is used to drive the SIM card to operate. When the electronic device reads the SIM card or uses the SIM card to communicate, the card driver drives the SIM card to obtain the SIM card information or use the SIM card to communicate. There can be one or more card drivers.
[0126] In the embodiments of the present application, the electronic device may be a communication device that supports a SIM card, such as a mobile phone, a tablet computer, a laptop computer, etc., or a wearable device with a communication function that supports a SIM card, such as an electronic watch, a bracelet, smart glasses, etc. This is not intended to be limiting.
[0127] The following is a detailed description of a method for an electronic device to obtain SIM card information in conjunction with the accompanying drawings. The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure and software architecture.
[0128] The method for obtaining SIM card information provided in the embodiment of the present application is applied to electronic devices that support plug-in SIM cards and eSIM cards, and is mainly applicable to the case where the number of SIM cards supported by the electronic device is greater than the modem unit. In the following implementation, the process of obtaining SIM card information by the electronic device in this case is described in detail by taking the electronic device as a mobile phone as an example. The specific structure and function of the mobile phone can be as described above. Figure 2 and Figure 3 The structural hardware structure and software architecture are shown.
[0129] For the convenience of description, the following embodiments take the example that a mobile phone can support two SIM card interfaces and two modem units.
[0130] refer to Figure 4a , Figure 4a FIG. 1 shows a schematic diagram of the structure of a mobile phone. Figure 4a As shown, the mobile phone includes SIM card interface 1, SIM card interface 2, SIM card interface 3, and modem unit 1, modem unit 2 and additional processing unit arranged in the baseband processing unit. Figure 4a As shown, SIM card interface 1 is connected to SIM card 1, SIM card interface 2 is connected to SIM card 2, and SIM card interface 3 is connected to SIM card 3. The default setting of the mobile phone is that modem unit 1 is connected to SIM card interface 1, modem unit 2 is connected to SIM card interface 2, and the additional processing unit is connected to SIM card interface 3 (additional SIM card interface). Among them, modem unit 1 can provide communication capability to SIM card interface 1 so that SIM card 1 can communicate. Modem unit 2 can provide communication capability to SIM card interface 2 so that SIM card 2 can communicate. The additional processing unit does not have the ability to provide communication to SIM card 3, but is only used to read the information of the eSIM card connected to SIM card interface 3. The additional processing unit in this application only reads SIM card information and does not need to communicate. Therefore, it can not only meet the requirements of low cost and small size, but also, without switching the modem unit, it can obtain the information of the SIM card connected to the additional SIM card interface, that is, without affecting the normal networking communication of SIM card 1 and SIM card 2 by modem unit 1 and modem unit 2, the user can obtain the information of three SIM cards at the same time, so that the information of all SIM cards can be read and presented to the user, thereby improving the user experience.
[0131] The SIM card interface involved in the embodiments of the present application is a standard SIM card interface, and the physical pins include but are not limited to a power pin Vcc, a clock pin CLK (Clock), a data pin I / O, a reset pin RST (Reset), a ground pin GND (Ground), and a programming voltage pin Vpp (programming voltage).
[0132] In the embodiment of the present application, the additional processing unit may be a virtual additional processing module instantiated based on the modem unit 1 or the modem unit 2 for reading SIM card information. The additional processing unit cannot provide communication capability for the SIM card, that is, cannot provide baseband and radio frequency resources for the SIM card interface, and is only used to read SIM card information. The additional processing unit in the present application may be a virtual additional processing module or a collection of multiple virtual additional processing modules.
[0133] The electronic device mentioned above is taken as an example of a mobile phone, but it can also be other terminal devices such as smart watches. Figure 4a The structure of the mobile phone in the following describes the process of obtaining the information of the three SIM cards. Figure 4a The following is an example of a mobile phone with three SIM card interfaces connected to SIM cards. When the mobile phone executes the user's power-on command, the mobile phone can execute in two stages. First, the first stage is executed, and the baseband processing unit of the mobile phone allocates resources to the SIM cards respectively. Among them, the allocation method can be that the mobile phone itself allocates the modulation and demodulation unit resources and the additional processing module to the SIM card interface with fixed attributes. Figure 4b S410 to S430 in the flowchart shown exemplarily illustrate the process of a mobile phone acquiring information of a SIM card.
[0134] S410, the mobile phone receives an operation instruction. For example, the operation instruction may be power on, restart, insert or remove a SIM card, hot start a SIM card, switch between primary and standby cards, and the like.
[0135] S420, the baseband processing unit allocates resources according to fixed attributes, and instantiates additional processing units for SIM card interfaces that have more than modem units. For example, after the mobile phone is turned on, the baseband processing unit allocates resources according to fixed attributes, connects modem unit 1 to SIM card interface 1, and connects modem unit 2 to SIM card interface 2, and instantiates a virtual additional processing module (additional processing unit) according to modem unit 1 or modem unit 2. The mobile phone connects the additional processing unit to SIM card interface 3.
[0136] In addition, in some embodiments, when the baseband processing unit of the mobile phone determines that a card is in place, an additional processing module is instantiated according to the modem unit to read the information of the SIM card in place. Figure 4a As shown, after the mobile phone is turned on, the baseband processing unit connects the modem unit 1 to the SIM card interface 1, and connects the modem unit 2 to the SIM card interface 2. For the SIM card interface 3, it is first determined whether there is a connected SIM card 3. If there is a SIM card 3 in place, the baseband processing unit instantiates an additional processing unit according to the modem unit 1 or the modem unit 2, and then reads the information of the SIM card 3 through the additional processing unit. If the SIM card interface 3 is not stuck in place, the baseband processing unit does not need to instantiate an additional processing unit. The data processing amount of the baseband processing unit is reduced, so as to achieve the effect of reducing power consumption.
[0137] S430, the baseband processing unit powers on each SIM card interface through the modulation and demodulation unit and the additional processing unit, and reads the information of the SIM card in the corresponding SIM card interface. Figure 4a In the embodiment, after the baseband processing unit allocates resources, the mobile phone powers on SIM card 1, SIM card 2 and SIM card 3 respectively, and obtains the information of SIM card 1 through modem unit 1, obtains the information of SIM card 2 through modem unit 1, and obtains the information of SIM card 3 through the additional processing unit. Without switching the modem unit, the information of the three SIM cards is obtained, so that the information of the three SIM cards can be presented to the user at the same time. It is achieved that the information of SIM card 3 can be obtained without switching the modem unit, that is, without affecting the normal network communication of SIM card 1 and SIM card 2, thereby improving the user experience.
[0138] In one embodiment of the present application, if there is no SIM card installed in the SIM card interface of the physical card slot, the baseband processing unit and the circuit where the SIM card interface is located are disconnected, and the baseband processing unit cannot power on the SIM card interface. The mobile phone can display "no card inserted" to prompt the user that there is no card inserted in the SIM card interface.
[0139] In one embodiment, after the additional processing module has finished reading the information of the SIM card, the baseband processing unit may delete the additional processing module to release the memory occupied by the additional processing module.
[0140] It should be noted that, in the process of instantiating the additional processing unit according to the fixed attributes, the mobile phone does not need to consider whether there is a SIM card 3 in the SIM card interface 3. If the SIM card interface 3 is not connected to the SIM card 3, it will not affect the baseband processing unit to instantiate the additional processing unit according to the number of SIM card interfaces. It is just that when there is no card, the SIM card initialization process fails, and the additional processing unit will not read the information of the SIM card.
[0141] In the second stage, after the mobile phone obtains the information of the three SIM cards, it will stay on the network for the SIM cards. Figure 4aAs shown, SIM card 1 is connected to the baseband processing unit through card driver 1, SIM card 2 is connected to the baseband processing unit through card driver 2, and eSIM card is connected to the baseband processing unit through card driver 3. Among them, card driver 1 is connected to modem unit 1, and modem unit 1 is connected to RF module 1. Card driver 2 is connected to modem unit 2, and modem unit 2 is connected to RF module 2. The baseband processing unit is respectively connected to the card driver in the smart card interface SCI through the SCI interface module. In addition, the baseband processing unit SCI interface module controls the card driver 1 to allocate modem unit 1 to SIM card 1, and sends and receives communication signals through RF module 1, and completes SIM card 1 to reside in the network and receive communication network services. Modem unit 2 is allocated to SIM card 2 through card driver 2, and communication signals are sent and received through RF module 2, and SIM card 2 resides in the network and receives communication network services. Among them, RF module 1 and RF module 2 can be the ones in the above-mentioned embodiments. Figure 2 The mobile communication module or / and part of the wireless communication module in the wireless communication module. It can be a radio frequency module including both a receiver and a transmitter, or different radio frequency modules including at least a receiver or a transmitter, or the radio frequency module 1 and the radio frequency module 2 are a set of modules that share a receiver and a transmitter.
[0142] In the embodiments of the present application, the type of SIM card is not limited. For example, Figure 4a and Figure 4c Each of SIM card 1, SIM card 2, SIM card 3 and SIM card 4 can be any one of a plug-in SIM card, an eSIM card and a vSIM card.
[0143] In one embodiment of the present application, Figure 4aAs shown, when SIM card 1 is an eSIM card, and there are two eSIM profiles to be connected to the network in the eSIM card. If the user chooses to connect to the network through the two eSIM profiles in the eSIM, the modem unit is connected to SIM card 1 through the card driver 1, and the baseband processing unit assigns both the radio frequency module 1 and the radio frequency module 2 to the modem unit 1, so as to provide network communication services for the two eSIM profiles in the eSIM. The modem unit 2 can be connected to SIM card 2 through the card driver 2 and read the information of SIM card 2. Alternatively, the baseband processing unit assigns the modem unit 1 and the modem unit 2 to the two eSIM profiles to be connected to the network in the eSIM, respectively, and provides network communication services for the two eSIM profiles to be connected to the network in the eSIM. When the baseband processing unit determines that a SIM card 3 is in place, for example, a plug-in SIM card is installed in the physical card slot, or there is an eSIM profile in the eSIM card, the baseband processing unit instantiates an additional processing module through the modem unit 1 or the modem unit 2 to power on the SIM card 3, and reads the information of the SIM card 3 through the additional processing module. The baseband processing unit provides the read information of SIM card 2 and SIM card 3, as well as the information of the two eSIM profiles of the eSIM card read by the modem unit through the card driver 1, to the application processing unit to present the information of the three SIM cards to the user. At this time, the continuous communication of the two eSIM profiles (eSIM applications) of the eSIM card is not affected.
[0144] In one embodiment of the present application, when there are more SIM card interfaces, the baseband processing unit can instantiate more virtual additional processing modules according to the number of SIM card interfaces that is greater than the number of modem units, so that each SIM card interface corresponds to an additional processing module, to ensure that the information of the SIM card connected to each SIM card interface can be read without switching the modem unit. For details, please refer to the following Figure 4b and the corresponding description.
[0145] The method for obtaining SIM card information in the embodiment of the present application is applicable to the case where the number of modem units is less than the number of SIM card interfaces, and the number of modem units and SIM cards is not limited. For example, a mobile phone has three SIM card interfaces, but the modem unit can be one, and the additional processing unit can include two virtual additional processing modules. The mobile phone can obtain the information of the SIM cards in the three card interfaces through one modem unit and two additional processing modules. In addition, it is also possible that the mobile phone has two modem units, but has more than four SIM card interfaces, and the additional processing unit includes at least two or more virtual additional processing modules, so that the mobile phone obtains the information of the SIM cards connected to more than four SIM card interfaces respectively through two modem units and more than two virtual additional processing modules.
[0146] refer to Figure 4c As shown, Figure 4c Another schematic diagram of the structure of a mobile phone is shown. Figure 4c As shown, when the mobile phone also includes a SIM card interface 4, the additional processing unit correspondingly includes two virtual additional processing modules, namely, additional processing module 1 and additional processing module 2. Among them, additional processing module 1 is connected to SIM card interface 3 through SCI interface module and smart card interface SCI, and additional processing module 2 is connected to SIM card interface 4 through SCI interface module and smart card interface SCI. When the mobile phone is turned on, the mobile phone executes the first stage, and the baseband processing unit connects the modem unit 1 to SIM card interface 1 and the modem unit 2 to SIM card interface 2 according to the default allocation method, and instantiates two virtual additional processing modules 1 and additional processing modules 2 according to the modem unit 1 or the modem unit 2, and the two additional processing modules are connected to SIM card interface 3 and SIM card interface 4 respectively through SCI interface module and smart card interface SCI. The baseband processing unit powers on SIM card 1, SIM card 2, SIM card 3, and SIM card 3 respectively, and obtains the information of SIM card 1 through modem unit 1, obtains the information of SIM card 2 through modem unit 1, obtains the information of SIM card 3 and SIM card 4 through additional processing module 1 and additional processing module 2 respectively, and displays the information of the four SIM cards to the user at the same time. If the user wants to switch the SIM card for communication, the mobile phone executes the second stage according to the user's instruction to switch the SIM card. In response to the instruction to activate the network connection of the SIM card, the baseband processing unit adjusts the connection relationship between the modem unit and the SIM card interface through the SCI interface module and the smart card interface SCI. For example, the user chooses to connect SIM card 3. Then the SCI interface module and the smart card interface SCI switch the original connection between the modem unit and the SIM card interface 2 to the connection between the modem unit 2 and the SIM card 3, thereby providing communication capability for SIM card 3.
[0147] The information of SIM card 3 can be obtained without affecting the normal communication between SIM card 1 and SIM card 2, thereby improving the user experience.
[0148] In the embodiment of the present application, after the baseband processing unit obtains the SIM card information through the modem unit and the accessory processing unit, the SIM card information can be directly sent to the application processing unit, or it can be summarized to the data reading module, and the data reading module is sent to the application processing unit (equivalent to Figure 2 The application processor in the electronic device shown in the figure) processes the card information and presents the information to the user through a display screen.
[0149] refer to Figure 5a , Figure 5a The figure shows the interface diagram of the mobile phone displaying SIM card information. The mobile phone obtains the SIM card information through the modem unit and the accessory processing unit, and displays it. Figure 4a and Figure 5a As shown, information of three SIM cards is displayed on the interface 510. In the interface of the SIM card manager of the interface 510, SIM1 (equivalent to Figure 4a SIM card 1), eSIM1 (equivalent to Figure 4a SIM card 2) and SIM2 (equivalent to Figure 4a The information of SIM card 3) in the display, for example, the information of SIM1 includes "operator identification", phone number and international area code "+8612300001111" and communication type "5G / LTE / 3G / 2G". The information of SIM2 includes the phone number and international area code "+8623411112222" and the communication switch is in the off state. The information of eSIM1 includes "operator identification" and communication type "LTE / 3G / 2G". Users can distinguish the type and communication status of each card based on these displayed contents. For example, users can see from the on and off status of the communication switch that both SIM1 and eSIM1 currently have communication capabilities and can directly make calls or surf the Internet, etc. It is equivalent to Figure 4a As shown, after the two modem units are connected to SIM card 1 and SIM card 2 respectively, the communication capabilities of SIM1 and eSIM1 are realized. However, the current networking status of SIM card 3 (SIM2) is off, that is, SIM card 3 currently does not have the ability to communicate, which is equivalent to Figure 4a As shown, the SIM card 3 is not connected to the modem unit, but the card information is read through the additional processing unit.
[0150] In addition, if Figure 5aAs shown, the mobile phone interface 510 may also have a function module for adding an eSIM card, such as “Add Mobile Plan” on the interface 510. The user can obtain more Profiles through this function module.
[0151] refer to Figure 5b , Figure 5b The following figure shows the interface for users to choose to change SIM cards. Figure 5a If the user wants to use SIM2 according to the display of interface 510, the user can click SIM2 to make the baseband processing unit switch the connection relationship of the modem unit through SCI. For example, SIM2 provides an input interface for the user to operate on / off. Figure 5b As shown in (a) of FIG. 1 , the user clicks on SIM2 to turn on the switch, and the baseband processing unit of the mobile phone allocates modem unit resources to SIM2. For example, Figure 4a The connection between the modem unit 2 and SIM card 2 is switched to the connection between the modem unit 2 and SIM card 3 to realize the communication capability of SIM card 3 (SIM2). A prompt "Connecting card 3, deactivating card 2, please wait..." pops up on the interface 510. When the baseband processing unit is switched, the switching is completed. Figure 5b In the interface 520 shown in (b), the information of SIM1 is displayed on the interface 520, including the operator identification, the telephone number and the international area code "+8612300001111" and the communication type "5G / LTE / 3G / 2G". The information of SIM2 (SIM card 3) includes the telephone number and the international area code "+8623411112222", the operator identification and the communication status "5G / LTE / 3G / 2G". However, the eSIM card (SIM card 3) loses the ability to communicate because it is disconnected from the modem unit 2, that is, the communication switch is in the off state. In the method of the embodiment of the present application, when obtaining the SIM card information, the information of all SIM cards can be obtained without switching the modem unit. Based on the information of these SIM cards, the user can determine the status and category of the card. When the user selects the connected SIM card, if switching is required, the mobile phone executes the switching of the connection relationship between the modem unit and the SIM card through the SCI. This can avoid the situation in the prior art where, when a user only wants to obtain SIM card information, the modem unit needs to be switched before the target SIM card information can be read, which affects the normal communication of the previous SIM card, and can effectively improve the user experience.
[0152] In one embodiment of the present application, when a user needs to change SIM cards for communication, during the switching process, the baseband processing unit can give priority to selecting a modem unit that is not in a call or network connection to connect to the SIM card selected by the user. In addition, the user can also set the primary card and the secondary card to ensure that the primary card always stays on the network. When the user switches SIM cards for communication, the baseband processing unit only switches the modem unit connected to the secondary card, reads all SIM card information and presents it to the user, while the primary card always remains connected. For example, Figure 4a As shown, when SIM card 1 is used as the primary card, the modem unit 1 always remains connected to SIM card 1 and provides communication capabilities for SIM card 1. When the user chooses to switch to SIM card 3, the baseband processing unit only disconnects SIM card 2 connected to the modem unit 2, and connects the modem unit 2 to SIM card 3 through SCI to ensure that the user's primary card always remains resident on the network and can communicate and access the Internet at any time.
[0153] In one embodiment of the present application, Figure 4a As shown, when SIM card 3 is an eSIM card, and there is no eSIM configuration file in the eSIM card, or no activated configuration file (no activated SIM application), or the activated SIM application is turned off, the baseband processing unit reads the card information through the additional processing unit. Since there is no SIM application or no activated SIM application, the information of the eSIM card read is blank, and the mobile phone cannot display the specific content of the information of SIM card 3. Then, a blank or text prompt can be displayed at the position corresponding to the eSIM card on the display screen of the mobile phone, so that the user can directly determine that the eSIM card is a blank card. Alternatively, when the additional processing unit does not read the information of the eSIM card, the user can be prompted to add an eSIM card by adding a functional module.
[0154] In the following embodiments, the process of the additional processing unit reading the eSIM card information when the SIM card 3 is an eSIM card will be further described in conjunction with the accompanying drawings.
[0155] refer to Figure 6 , Figure 6 Another interface operation diagram of a mobile phone is shown. Figure 6 As shown in (a) of FIG. 6 , the interface 610 includes a “blank card” and a SIM card adding function module “+Add mobile package” under the eSIM module. The user can click on the function module to download or activate the eSIM profile. When the user clicks on the Add mobile package, the processor of the mobile phone can Figure 4aThe communication capability of the modem unit 1 or the modem unit 2 with SIM1 or SIM2 shown in the figure is to download the eSIM configuration file from the operator's download server and install it into the eSIM module. If the eSIM card of the mobile phone already has an eSIM configuration file, then Figure 6 As shown in (b), in the interface 620 for the mobile phone to obtain the configuration file, prompts such as "eSIM configuration file has been stored, do you need to activate it?" can be displayed to remind the user that an eSIM configuration file has been stored. The user can choose to activate the eSIM configuration file according to "Yes", or choose "No" to continue downloading a new eSIM configuration file. After the download or activation is completed, the information of all SIM cards can be displayed. If SIM1 and SIM2 do not provide networking capabilities, the mobile phone can also prompt the user to connect to the download server via Wifi so that the user can normally connect to the download server of the eSIM configuration file and download the eSIM configuration file. Through the method for obtaining SIM card information in the embodiment of the present application, in the scenario where the eSIM is a blank card and there is no possibility of networking the eSIM configuration file, the eSIM configuration file can still be downloaded online through a SIM card with networking capabilities, while also ensuring that SIM1 and SIM2 are not disconnected from the network and can still communicate normally, thereby improving the user experience.
[0156] In another embodiment of the present application, the additional processing unit may obtain the SIM card information one by one through the modem unit in a polling manner.
[0157] refer to Figure 7 , Figure 7 Another schematic diagram of the structure of a mobile phone is shown. Figure 7 As shown, a polling module is provided in the baseband processing unit. When the baseband processing unit detects that the number of modem units is less than the number of SIM card interfaces, and at least one modem unit is in a non-networked or communication state, the baseband processing unit can obtain SIM card information by polling by controlling the polling module.
[0158] like Figure 7As shown, the mobile phone includes two modem units and three SIM card interfaces. Among them, SIM card 1 is connected to the modem unit 1 (modem unit 1) in the baseband processing unit through the card driver 1 and SCI, the modem unit 1 is connected to the radio frequency module 1, the baseband processing unit sends and receives communication signals through the radio frequency module 1, and completes the resident network to receive communication network services for SIM card 1. SIM card 2 to SIM card 3 are connected to the card driver 2 and SCI connected to the SCI interface module in the baseband processing unit, and the card driver 2 is connected to the SIM card interface 2 and the SIM card interface 3 respectively through the switch, wherein the connection between the card driver 2 and the SIM card interface can be partially multiplexed pins or all pins. Modem unit 2 (modem unit 2) is connected to the SCI interface module and the radio frequency module 2. When there is a SIM card to be networked or a Profile in the eSIM in SIM card 2 and SIM card 3, any card of SIM card 2 or SIM card 3 can send and receive communication signals through the modem unit 2 and the radio frequency module 2, and complete the resident network and receive communication network services. In the present application, the number of SIM cards connected to the card driver 2 may be greater than 2. And part of these SIM cards may also be connected to the card driver 1, which is achieved by balanced distribution between the card driver 1 and the second card driver 2, which is not limited here.
[0159] Combine the following Figure 8 and Figure 7 The process of obtaining SIM card information by using a polling scheme is described. Figure 8 A flow chart of polling to obtain SIM card information is shown. The flow chart includes:
[0160] S810: The mobile phone detects an operation instruction or operation event related to the SIM card, wherein the operation instruction or operation event related to the SIM card includes booting, restarting, plugging and unplugging the SIM card, hot starting the mobile phone SIM card, or downloading or activating a Profile.
[0161] S820, the mobile phone determines whether the time to complete the operation instruction or operation event is a non-time-consuming operation. This step can be performed by Figure 7The baseband processing unit in is executed. Wherein, time-consuming means that the time taken by the mobile phone to execute the operation instruction or operation event and complete the corresponding event exceeds the set value. For example, the set value is 3 seconds, the operation event is downloading the eSIM configuration file, and if the time to complete the download of the eSIM configuration file exceeds 3 seconds, it is considered to be a time-consuming operation. For another example, the set value is 3 seconds, the operation event is the restart of the mobile phone, if it takes 2 seconds to complete the restart of the mobile phone, and 2 seconds is less than the set value of 3 seconds, then the operation instruction or operation event is judged to be a non-time-consuming operation. It should be noted here that since the mobile phone polling method of the present application requires the polling module to control the modem unit to complete, and the SIM card information is read one by one by the modem unit, therefore, completing the time-consuming operation will cause the modem unit to wait too long, which is a waste of resources. At the same time, it will also affect the disconnection time of the SIM card previously connected to the modem unit, which is too long, reducing the user experience. Therefore, in order to avoid resource waste and improve experience, only when the mobile phone determines that the time to complete the operation instruction or operation event is a non-time-consuming operation, the polling scheme is executed, that is, S830-S860 is executed. If it is detected that it is a time-consuming operation, the polling solution is not executed, and S870 is executed, that is, the baseband processing unit instantiates an additional processing module based on the modem unit to read the corresponding SIM card. The specific process of reading the SIM card by instantiating the modem unit can refer to the above embodiment. Figure 4a and 4b In S830, the mobile phone determines whether there is an idle modem unit. This step can be performed by Figure 7 The idle modem unit refers to a modem unit that has no activated services, such as calling, surfing the Internet, etc. If there is an activated SIM service, the polling scheme cannot be performed, and the baseband processing unit can execute S870. For example, Figure 7 The modem unit 1 and modem unit 2 are occupied by SIM card 1 and SIM card 2 respectively, and both have networked services. If the user plugs in or out the physical SIM card tray, places or changes the position of the SIM card, and reinserts the SIM card tray, the baseband processing unit needs to ensure that the networking of SIM card 1 and SIM card 2 is not interrupted, so polling cannot be performed. At this time, the baseband processing unit can execute S870 to create a modem unit instance so that the mobile phone can read the information of all SIM cards by creating a modem unit instance. After reading the SIM card information, execute S860 to display the SIM card information. Among them, for the specific example of creating a modem unit instance to read the information of all SIM cards, please refer to the above embodiment. Figure 4a-4c The description of the above embodiment is omitted here. For the process of creating a display interface and the user switching according to the interface display, please refer to the above embodiment. Figure 5a , Figure 5b and Figure 6The description in is not repeated here.
[0162] S840, create a task pool, and add the number of SIM cards to be read and the corresponding interface addresses to the task pool. This step can be performed by Figure 7 The baseband processing unit in the SIM card processing unit is executed. When the baseband processing unit determines that polling can be performed, a task pool is established, and the number of all SIM cards with read and the corresponding SIM card interface address (such as the location of the physical card slot, the eSIM card interface location) are added to the task pool. At the same time, the polling module is triggered to perform polling. Among them, the number of SIM cards represents the number of tasks to be read, and these tasks will be further completed one by one by the polling module and the modulation and demodulation unit.
[0163] S850: The polling module controls the idle modem units to complete the tasks in the task pool in sequence. Each task represents a SIM card information to be read. For example, Figure 7 As shown, the modem unit 2 is in an idle state. After the polling module receives the polling instruction, the modem unit 2 completes the tasks in the task pool in sequence, that is, the modem unit 2 finds the SIM card corresponding to the task according to the SIM card interface address and reads the SIM card information.
[0164] It should be noted that, in the above S810-S850, the baseband processing unit of the present application does not need to consider which SIM card the user chooses to use to control the switch switching process when acquiring the SIM card information. Instead, when the baseband processing unit detects the operation instruction related to the SIM card, the time to complete the operation instruction is non-time-consuming, and the modem unit is idle, the SIM card interface connected to the card driver is directly controlled by the SCI to periodically switch the switch, so that the modem unit is connected to different SIM card interfaces in turn, thereby acquiring the SIM card information in the SIM card interface one by one through the periodic switching connection.
[0165] In one embodiment of the present application, all physical SIM card data may be read through modem unit 1, or all physical SIM card data may be read through modem unit 2, or data of different physical SIM cards may be read through modem unit 1 and modem unit 2. This is not intended to be limiting.
[0166] In S850, when the modem unit is reading the SIM card, in order to increase the card reading speed, the baseband processing unit can set the modem unit and the SIM card to a pass-through mode, so that the modem unit exclusively occupies the SIM card, and avoids the influence of other applications reading and writing. The modem unit can also be set to enter the flight mode to shield the module work related to network search and speed up the card reading speed. The baseband processing unit can also traverse the SIM card file node, and after the modem unit reads the key information of the SIM card (telephone number, ICCID, IMSI, etc.), it will plant the card reading task, release the modem unit to make the modem unit exit the pass-through mode, the flight mode, and restore the corresponding relationship between the modem unit and the previous SIM card.
[0167] S860, displays SIM card information. Figure 7 As shown, after the modem unit and the polling module obtain the SIM card information, they can be uniformly transmitted to the data reading unit, and the data reading unit uniformly sends all the SIM card information to the application processing unit. After being processed by the application processing unit, the SIM card information is displayed on the display screen. The specific display interface and the process of the user switching according to the interface display can refer to the above embodiment. Figure 5a , Figure 5b and Figure 6 The description in is not repeated here.
[0168] It should be noted that the various parameters mentioned in the embodiments of the present application are merely exemplary descriptions and are not intended to be limiting in order to facilitate understanding of the emergency networking process.
[0169] The method for obtaining SIM card information in the embodiment of the present application can not only meet the requirements of low cost and small size of electronic equipment, but also, the electronic equipment can obtain the information of the SIM card connected to the additional SIM card interface without switching the modem unit, that is, without affecting the normal communication between the modem unit 1 and the modem unit 2 for the SIM card 1 and the SIM card 2, the user can obtain the information of three SIM cards at the same time, so that the user can identify which card to select according to the SIM card information, thereby improving the user experience.
[0170] refer to Fig. 9 , the present application also provides an electronic device, Fig. 9 Schematic diagram of the structure of the electronic device is shown. Fig. 9 As shown, the electronic device includes:
[0171] A memory 910 for storing instructions executed by one or more processors of the device, and
[0172] The processor 920 is configured to execute the method for obtaining information of the SIM card in the above embodiment.
[0173] The present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes the method for obtaining information of a SIM card in the above embodiment.
[0174] Reference now Fig.10 , Fig.10 1 is a block diagram of a device 1200 according to one embodiment of the present application. The device 1200 may include one or more processors 1201 coupled to a controller hub 1203. For at least one embodiment, the controller hub 1203 communicates with the processor 1201 via a multi-drop bus such as a front side bus (FSB), a point-to-point interface such as a Quick Path Interconnect (QPI), or a similar connection 1206. The processor 1201 executes instructions that control general types of data processing operations. In one embodiment, the controller hub 1203 includes, but is not limited to, a graphics memory controller hub (GMCH) (not shown) and an input / output hub (IOH) (which may be on a separate chip) (not shown), wherein the GMCH includes a memory and a graphics controller and is coupled to the IOH.
[0175] The device 1200 may also include a coprocessor 1202 and a memory 1204 coupled to the controller hub 1203. Alternatively, one or both of the memory and the GMCH may be integrated within the processor (as described in the present application), with the memory 1204 and the coprocessor 1202 directly coupled to the processor 1201 and the controller hub 1203, with the controller hub 1203 and the IOH being in a single chip. The memory 1204 may be, for example, a dynamic random access memory (DRAM), a phase change memory (PCM), or a combination of the two. In one embodiment, the coprocessor 1202 is a special-purpose processor, such as, for example, a high-throughput MIC processor (Many Integerated Core, MIC), a network or communication processor, a compression engine, a graphics processor, a general-purpose graphics processor (General Purpose Computing on GPU, GPGPU), or an embedded processor, etc. The optional properties of the coprocessor 1202 are indicated by dashed lines in Fig.10 middle.
[0176] The memory 1204, as a computer-readable storage medium, may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. For example, the memory 1204 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as one or more hard disk drives (HDD(s)), one or more compact disc (CD) drives, and / or one or more digital versatile disc (DVD) drives.
[0177] In one embodiment, the device 1200 may further include a network interface (Network Interface Controller, NIC) 1206. The network interface 1206 may include a transceiver for providing a radio interface for the device 1200 to communicate with any other suitable device (such as a front-end module, an antenna, etc.). In various embodiments, the network interface 1206 may be integrated with other components of the device 1200. The network interface 1206 may implement the functions of the communication unit in the above-mentioned embodiments.
[0178] The device 1200 may further include input / output (I / O) devices 1205. The I / O 1205 may include: a user interface designed to enable a user to interact with the device 1200; a peripheral component interface designed to enable peripheral components to interact with the device 1200; and / or sensors designed to determine environmental conditions and / or location information related to the device 1200.
[0179] It is worth noting that Fig.10 This is for illustrative purposes only. Fig.10 It is shown that the device 1200 includes multiple components such as a processor 1201, a controller hub 1203, and a memory 1204. However, in actual applications, the device using the methods of the present application may only include a part of the components of the device 1200, for example, it may only include the processor 1201 and the NIC 1206. Fig.10 The properties of optional devices are shown with dashed lines.
[0180] According to some embodiments of the present application, instructions are stored on the memory 1204 as a computer-readable storage medium. When the instructions are executed on the computer, the system 1200 executes the method for obtaining SIM card information according to the above embodiment. For details, please refer to the method of the above embodiment, which will not be repeated here.
[0181] Reference now Fig.11, which is a block diagram of a SoC (System on Chip) 1300 according to an embodiment of the present application. Fig.11 In the FIG, similar components have the same reference numerals. In addition, the dashed boxes are optional features of more advanced SoCs. Fig.11 In the embodiment, SoC 1300 includes: an interconnect unit 1350, which is coupled to an application processor 1310; a system agent unit 1380; a bus controller unit 1390; an integrated memory controller unit 1340; a group or one or more coprocessors 1320, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (SRAM) unit 1330; and a direct memory access (DMA) unit 1360. In one embodiment, the coprocessor 1320 includes a dedicated processor, such as, for example, a network or communication processor, a compression engine, a GPGPU, a high throughput MIC processor, or an embedded processor.
[0182] The static random access memory (SRAM) unit 1330 may include one or more computer-readable media for storing data and / or instructions. The computer-readable storage medium may store instructions, specifically, temporary and permanent copies of the instructions. The instruction may include: when executed by at least one unit in the processor, the Soc 1300 executes the method for obtaining the information of the SIM card according to the above embodiment, which may be specifically referred to the method in the above embodiment, and will not be repeated here.
[0183] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.
[0184] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0185] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0186] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or by other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, compact disc read-only memories (Compact Disc Read Only Memory, CD-ROMs), magneto-optical disks, read-only memories (Read Only Memory, ROM), random access memories (RAM), erasable programmable read-only memories (Erasable Programmable Read Only Memory, EPROM), electrically erasable programmable read-only memories (Electrically Erasable Programmable Read Only Memory, EEPROM), magnetic cards or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
[0187] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the accompanying drawings of the specification. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0188] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0189] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0190] Although the present application has been illustrated and described with reference to certain embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.
Claims
1. An electronic device, characterized in that: include: SIM card interface and additional SIM card interface; a first processing unit, configured to be connected to the SIM card interface, the first processing unit having the ability to access a mobile network, and configured to obtain information of the first SIM card from the SIM card interface and access the mobile network; a second processing unit, configured to be connected to the additional SIM interface, the second processing unit having a capability of accessing a mobile network and not being connected to a mobile network; and The second processing unit is configured to create a polling module, wherein the polling module is configured to obtain information of a second SIM card from the additional SIM card interface; The display unit is used to display the information of the first SIM card and the information of the second SIM card.
2. The electronic device according to claim 1, characterized in that: In response to the instruction of activating networking of the second SIM card, the second processing unit disconnects the first SIM card from the mobile network, and connects the information of the second SIM card obtained by the polling module to the mobile network.
3. The electronic device according to claim 1, characterized in that: Also includes: A smart card interface SCI, wherein the smart card interface SCI serves as a channel for the polling module and the second processing unit to obtain information of the second SIM card.
4. The electronic device according to claim 3, characterized in that: In response to the instruction of activating networking of the second SIM card, the second processing unit connects the information of the second SIM card obtained by the polling module to the mobile network through the smart card interface SCI.
5. The electronic device according to claim 4, characterized in that: Also includes: a baseband processing unit, the baseband processing unit being coupled to the smart card interface SCI, the first processing unit, and the second processing unit, respectively; When the baseband processing unit determines that the time for acquiring the information of the first SIM card is less than a set time period, the baseband processing unit controls the polling module to acquire the information of the second SIM card from the additional SIM card interface through the second processing unit.
6. The electronic device according to claim 5, characterized in that: include: When the baseband processing unit determines that the time for acquiring the information of the second SIM card is less than the set time, the baseband processing unit creates a task pool, and adds the number of second SIM card information to be read from the additional SIM card interface as the number of tasks to be completed to the task pool, and the polling module is used to acquire the information of the second SIM card by controlling the second processing unit to process the tasks in the task pool.
7. The electronic device according to claim 6, characterized in that: When the second processing unit processes the tasks in the task pool, the baseband processing unit is used to set the second processing unit to an exclusive SIM card mode and / or set the second processing unit to enter an airplane mode.
8. The electronic device according to claim 7, characterized in that: When the second processing unit determines that there is no task in the task pool, the baseband processing unit is used to control the second processing unit to exit the exclusive SIM card mode and / or the flight mode.
9. The electronic device according to claim 1, characterized in that: When the polling module receives an instruction that any one of the first SIM card and the second SIM card has been changed, the information of the second SIM card is obtained from the additional SIM card interface.
10. The electronic device according to claim 9, characterized in that: The instruction for changing the SIM card is triggered by a power-on operation, a restart operation, a SIM card interface insertion detection operation or a SIM card hot start operation.
11. The electronic device according to any one of claims 1 to 10, characterized in that: The information of the first SIM card includes at least one of a telephone number, an integrated circuit card identification code and an international mobile subscriber identity code, and the information of the second SIM card includes at least one of a telephone number, an integrated circuit card identification code and an international mobile subscriber identity code.
12. An electronic device, characterized in that: The electronic device comprises: SIM card interface and additional SIM card interface; a processing unit having the ability to access a mobile network, the processing unit being configured to obtain information of the first SIM card from the SIM card interface and access the mobile network; an additional processing module, the additional processing module being configured to obtain information of a second SIM card from the additional SIM card interface; The display unit is used to display the information of the first SIM card and the information of the second SIM card.
13. The electronic device according to claim 12, characterized in that: In response to the instruction of activating networking of the second SIM card, the processing unit disconnects the first SIM card from the mobile network, and connects the information of the second SIM card obtained by the additional processing module to the mobile network.
14. The electronic device according to claim 12, characterized in that: Also includes: A smart card interface SCI, wherein the smart card interface SCI serves as a channel for the additional processing module to obtain information of the second SIM card.
15. The electronic device according to claim 14, characterized in that: In response to the instruction of activating networking of the second SIM card, the processing unit disconnects from the SIM card interface through the smart card interface SCI, connects to the additional SIM card interface, and accesses the information of the second SIM card to the mobile network.
16. The electronic device according to any one of claims 12 to 15, characterized in that: The additional SIM card interface includes at least an eSIM card interface, and the information of the second SIM card includes information of at least one configuration file in an eSIM card connected to the eSIM card interface.
17. The electronic device according to claim 16, characterized in that: When the additional processing module fails to read the configuration file from the eSIM card interface, the electronic device obtains the configuration file corresponding to the eSIM card via the processing unit to obtain information of the second SIM card corresponding to the configuration file.
18. The electronic device according to claim 12, characterized in that: When receiving an instruction that any one of the first SIM card and the second SIM card has been changed, the additional processing module acquires information of the second SIM card from the additional SIM card interface.
19. The electronic device according to claim 18, characterized in that: The instruction for changing the SIM card is triggered by a power-on operation, a restart operation, a SIM card interface insertion detection operation or a SIM card hot start operation.
20. The electronic device according to any one of claims 12 to 15, characterized in that: The information of the first SIM card includes at least one of a telephone number, an integrated circuit card identification code and an international mobile subscriber identity code, and the information of the second SIM card includes at least one of a telephone number, an integrated circuit card identification code and an international mobile subscriber identity code.
21. A method for obtaining SIM card information, characterized in that: The method is applied to an electronic device, the electronic device comprising: a SIM card interface, an additional SIM card interface, a first processing unit and a second processing unit, the first processing unit having the ability to access a mobile network, the second processing unit having the ability to access a mobile network and not accessing a mobile network; The electronic device powers on the SIM card in the SIM card interface through the first processing unit, obtains information of the first SIM card from the SIM card interface, and accesses a mobile network; In response to the instruction of SIM card change, the electronic device creates a polling module through the second processing unit, and the electronic device obtains information of the second SIM card in the additional SIM card interface through the polling module; The electronic device displays information of the first SIM card and information of the second SIM card.
22. The method according to claim 21, characterized in that In response to the instruction of activating networking of the second SIM card, the second processing unit accesses the mobile network using the information of the second SIM card acquired by the polling module.
23. The method according to claim 21 or 22, characterized in that The electronic device further includes a smart card interface SCI, and the polling module obtains information of the second SIM card in the additional SIM card interface, including: The polling module obtains the information of the second SIM card in the additional SIM card interface through the smart card interface SCI.
24. The method according to claim 23, characterized in that In response to the instruction of activating networking of the second SIM card, the second processing unit connects the information of the second SIM card to the network through the smart card interface SCI.
25. The method according to claim 21, characterized in that The electronic device further comprises a baseband processing unit, The polling module obtains information of the second SIM card in the additional SIM card interface, including: When the baseband processing unit determines that the time for acquiring the information of the second SIM card is less than a set time period, the baseband processing unit controls the polling module to acquire the information of the second SIM card through the second processing unit.
26. The method according to claim 25, characterized in that When the baseband processing unit determines that the time for acquiring the information of the second SIM card is less than the set time, the baseband processing unit creates a task pool, and adds the number of second SIM card information to be read from the additional SIM card interface as the number of tasks to be completed to the task pool, and the polling module controls the second processing unit to process the tasks in the task pool and acquires the information of the second SIM card.
27. The method according to claim 26, characterized in that When the second processing unit processes the tasks in the task pool, the baseband processing unit sets the second processing unit to an exclusive SIM card mode, and / or sets the second processing unit to enter an airplane mode.
28. The method according to claim 27, characterized in that When the second processing unit determines that there is no task in the task pool, the baseband processing unit controls the second processing unit to exit the exclusive SIM card mode and / or the flight mode.
29. The method according to claim 21, characterized in that The instruction to change the SIM card is triggered by a power-on operation, a restart operation, a SIM card interface insertion detection operation, or a SIM card hot start operation of the electronic device.
30. A terminal device, comprising: a memory for storing instructions to be executed by one or more processors of the device, and A processor, configured to execute the method described in any one of claims 21 to 29.