Disclosure of Invention
The technical problem solved by the embodiment of the invention is how to realize simultaneous access of multiple numbers.
In order to solve the above technical problem, an embodiment of the present invention provides an embedded SIM card access method, including: receiving an access instruction for accessing the embedded SIM card; acquiring an identifier of an embedded SIM card corresponding to the access instruction; and in a preset virtual machine running with operating systems corresponding to a plurality of embedded SIM cards, selecting the operating system corresponding to the identifier of the embedded SIM card according to the identifier of the embedded SIM card corresponding to the access instruction and accessing the operating system.
Optionally, the selecting, according to the identifier of the embedded SIM card corresponding to the access instruction, an operating system corresponding to the identifier of the embedded SIM card includes: selecting a standard interface circuit corresponding to the identifier of the embedded SIM card according to the identifier of the embedded SIM card corresponding to the access instruction; and selecting an operating system corresponding to the standard interface circuit.
Optionally, the selecting, according to the identifier of the embedded SIM card corresponding to the access instruction, an operating system corresponding to the identifier of the embedded SIM card includes: selecting a chip selection input pin corresponding to the identifier of the embedded SIM card according to the identifier of the embedded SIM card corresponding to the access instruction; and selecting an operating system corresponding to the chip selection input pin.
Optionally, at least one of the operating systems corresponding to the multiple embedded SIM cards running in the virtual machine is different or the same.
The embodiment of the invention also provides an embedded SIM card, which comprises: embedded SIM card hardware; the virtual machine is suitable for running embedded operating systems corresponding to at least two SIM cards, and the virtual machine is suitable for running when the hardware of the embedded SIM cards is powered on.
Optionally, the embedded SIM card hardware includes: and the interface circuit is suitable for identifying the operating systems corresponding to different embedded SIM cards.
Optionally, the interface circuit includes any one of: standard interface circuits, pins.
The embodiment of the invention also provides an embedded SIM card access device, which comprises: the receiving unit is used for receiving an access instruction for accessing the embedded SIM card; the acquisition unit is used for acquiring the identifier of the embedded SIM card corresponding to the access instruction; and the selection unit is used for selecting and accessing the operating system corresponding to the identifier of the embedded SIM card according to the identifier of the embedded SIM card corresponding to the access instruction in a preset virtual machine running with the operating systems corresponding to the embedded SIM cards.
Optionally, the selecting unit is configured to select, according to an identifier of an embedded SIM card corresponding to the access instruction, a standard interface circuit corresponding to the identifier of the embedded SIM card; and selecting an operating system corresponding to the standard interface circuit.
Optionally, the selecting unit is configured to select, according to an identifier of an embedded SIM card corresponding to the access instruction, a chip select input pin corresponding to the identifier of the embedded SIM card; and selecting an operating system corresponding to the chip selection input pin.
An embodiment of the present invention further provides a mobile terminal, including: any one of the above-mentioned embedded SIM card, and any one of the above-mentioned embedded SIM card access arrangement.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
and operating systems corresponding to a plurality of embedded SIM cards run in the virtual machine. When an access instruction for accessing the embedded SIM card is received, the corresponding operating system is selected from the virtual machine and accessed according to the identification of the embedded SIM card corresponding to the access instruction, so that the operating systems corresponding to different embedded SIM cards can be accessed at the same time, and the simultaneous access of multiple numbers can be supported.
Detailed Description
Referring to fig. 1, a schematic structural diagram of a conventional embedded SIM card is shown, where the embedded SIM card includes a hardware portion and a software portion. The hardware part of the embedded SIM card includes a processor, an encryption/decryption unit, etc., and is usually in the form of a chip. The software part of the embedded SIM card runs on the hardware of the embedded SIM card, namely when the hardware of the embedded SIM card is powered on, the software part of the embedded SIM card runs on the hardware of the embedded SIM card.
The software of the embedded SIM card comprises an embedded SIM card operating system and a data security domain. The embedded SIM card operating system contains the most basic platform features and supports the features defined in the GPCS. The data Security Domain comprises an eUICC authentication authorization Security Domain (eUICC), a Certificate Issuer Root Security Domain (ISD-R) and a configuration file data Security Domain ISD-P (ISD-Profile), and the configuration file (Profile) is arranged in the ISD-P and can be activated or deactivated by a Security Domain mechanism.
In the prior art, actual user information is stored in the ISD-P, and one mobile phone number can be considered to be associated with one ISD-P. Multiple ISD-ps can be stored in the embedded SIM card, but existing protocols provide for only one to be activated at a time. As shown in fig. 1, 3 ISD-ps are saved in the embedded SIM card, but only one ISD-P is in enabled state and the other two ISD-ps are in disabled state.
That is, although a plurality of mobile phone numbers may be included in the embedded SIM card, only one is in use at a time. In other words, at the same time, the embedded SIM card only allows one of the profiles to be activated, and cannot access multiple profiles at the same time, that is, cannot support simultaneous access of multiple numbers.
In the embodiment of the invention, the operating systems corresponding to a plurality of embedded SIM cards run in the virtual machine. When an access instruction for accessing the embedded SIM card is received, the corresponding operating system is selected from the virtual machine and accessed according to the identification of the embedded SIM card corresponding to the access instruction, so that the operating systems corresponding to different embedded SIM cards can be accessed at the same time, and the simultaneous access of multiple numbers can be supported.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In the specific implementation, the architecture of the embedded SIM card provided in the embodiment of the present invention is described first.
In particular implementations, the embedded SIM card may include embedded SIM card hardware as well as embedded SIM card software. The hardware of the embedded SIM card may be substantially the same as that of the embedded SIM card provided in fig. 1, and also includes components such as a processor, an encryption/decryption unit, etc., and is in the form of a chip.
In terms of hardware, compared with the existing embedded SIM card, the embedded SIM card provided in the embodiments of the present invention may add an interface circuit, and identify operating systems corresponding to different embedded SIM cards through the interface circuit. In specific application, the interface circuit may be a plurality of sets of standard interface circuits, may also be a chip select input pin, and may also be a hardware circuit in other forms. The standard interface circuit can be an interface circuit corresponding to the standard of the existing embedded SIM card.
When the hardware of the embedded SIM card is powered on, the software of the embedded SIM card runs on the hardware of the embedded SIM card. In a specific implementation, unlike the prior art, the software of the embedded SIM card includes a virtual machine and an operating system corresponding to a plurality of embedded SIM cards running in the virtual machine.
When the hardware of the embedded SIM card is powered on, a virtual machine is operated on the hardware of the embedded SIM card, and an operating system corresponding to a plurality of embedded SIM cards is operated in the virtual machine.
That is, in the embodiment of the present invention, the software of the embedded SIM card provided is greatly different from the software of the embedded SIM card in the prior art. As can be known from comparing fig. 1 and fig. 2, in the prior art, only 1 operating system corresponding to the embedded SIM card is run on the hardware of one set of embedded SIM cards. In the embodiment of the invention, a virtual machine runs on hardware of one set of embedded SIM cards, and an operating system corresponding to a plurality of embedded SIM cards runs in the virtual machine.
In other words, in the embodiment of the present invention, the functions of multiple embedded SIM cards can be implemented by using a set of hardware of the embedded SIM card, that is, the set of hardware of the embedded SIM card can correspond to multiple subscriber numbers.
It should be noted that, in the embodiment of the present invention, there is only one embedded SIM card in the mobile terminal. The hardware corresponding to multiple embedded SIM cards, such as the embedded SIM card 1 and the embedded SIM card 2, described below is the same, and the corresponding software is different operating systems and different data security domains.
For example, the operating system 1 and the corresponding data security domain corresponding to the embedded SIM card 1 are referred to as the embedded SIM card 1, and the operating system 2 and the corresponding data security domain corresponding to the embedded SIM card 2 are referred to as the embedded SIM card 2.
In a specific implementation, the software for each set of embedded SIM card includes an operating system of the embedded SIM card and a corresponding data security domain, and the software for each set of embedded SIM card may be the same as the software for the existing embedded SIM card.
For different embedded SIM cards, the corresponding operating systems may be the same or different. The operating system corresponding to the embedded SIM card can be selected according to the actual application scene.
Referring to fig. 2, a structure diagram of an embedded SIM card in the embodiment of the present invention is shown. The embedded SIM card provided in fig. 2 includes a set of embedded SIM card hardware. When the embedded SIM card hardware is powered on, a virtual machine is operated. In the virtual machine, an embedded SIM card operating system 1 and its corresponding data security domain, and an embedded SIM card operating system 2 and its corresponding data security domain are running. The embedded operating system 1 and the corresponding data security domain thereof are identified as an embedded SIM card 1, and the embedded operating system 2 and the corresponding data security domain thereof are identified as an embedded SIM card 2.
That is, the embedded SIM card in fig. 2 can implement the functions of the embedded SIM card 1 as well as the embedded SIM card 2.
A method for accessing the embedded SIM card provided in fig. 2 by the mobile terminal is explained as follows.
Referring to fig. 3, a method for accessing an embedded SIM card according to an embodiment of the present invention is shown, and a structure of the embedded SIM card may be as shown in fig. 2. The following describes the embedded SIM card access method in detail through specific steps with reference to fig. 2.
Step S301, receiving an access instruction for accessing the embedded SIM card.
In a specific implementation, the embedded SIM card may be pre-installed in the mobile terminal.
When the mobile terminal needs to acquire the user number or the related information corresponding to the user number, the mobile terminal can send an access instruction to the embedded SIM card to access the embedded SIM card. Because the operating systems corresponding to a plurality of embedded SIM cards run in the virtual machine running on the hardware of one embedded SIM card, and each embedded SIM card corresponds to one user number, the mobile terminal can set the identification of the accessed embedded SIM card in the access instruction.
For example, in the virtual machine, the operating system 1 of the embedded SIM card 1 and the operating system 2 of the embedded SIM card 2 are run, and information corresponding to the user number 1 is stored in the ISD-P enabled in the data security domain corresponding to the operating system 1 of the embedded SIM card 1. The information corresponding to the subscriber number 2 is stored in the ISD-P enabled in the data security domain corresponding to the operating system 2 of the embedded SIM card 2. When the mobile terminal needs to obtain the related information of the user number 1 and the related information of the user number 2, the identifier S1 corresponding to the embedded SIM card 1 and the identifier S2 corresponding to the embedded SIM card 2 may be set in the access instruction to access the embedded SIM card 1 and the embedded SIM card 2.
After receiving an access instruction to access the embedded SIM card, step S302 is performed.
Step S302, obtaining the identification of the embedded SIM card corresponding to the access instruction.
In a specific implementation, when the mobile terminal generates the access instruction, the access instruction may carry an identifier of the embedded SIM card. When receiving the access instruction, the identifier of the embedded SIM card corresponding to the access instruction may be obtained therefrom.
After the identifier of the corresponding embedded SIM card is obtained from the access instruction, it is possible to know which embedded SIM card or embedded SIM cards the mobile terminal currently has the access requirement.
In the embodiment of the invention, access is carried out on one embedded SIM card, and the operating system corresponding to the embedded SIM card running in the virtual machine is accessed substantially.
For example, accessing the embedded SIM card 1 is substantially accessing the operating system 1 running in the virtual machine, and the operating system 1 corresponds to the embedded SIM card 1.
Step S303, in a preset virtual machine running with operating systems corresponding to a plurality of embedded SIM cards, selecting and accessing the operating system corresponding to the identifier of the embedded SIM card according to the identifier of the embedded SIM card corresponding to the access instruction.
In specific implementation, the hardware of the existing embedded SIM card can be improved, and a plurality of standard interface circuits are added on the basis of the existing embedded SIM card.
And respectively setting operating systems of the embedded SIM cards in one-to-one correspondence and identifications of the embedded SIM cards in one-to-one correspondence aiming at each standard interface circuit. And after receiving the access instruction, selecting a standard interface circuit corresponding to the identifier of the embedded SIM card according to the identifier of the embedded SIM card corresponding to the access instruction.
For example, a virtual machine is run when power is on, using the hardware of a set of embedded SIM cards. In the virtual machine, an operating system 1 corresponding to the embedded SIM card 1, an operating system 2 corresponding to the embedded SIM card 2, and an operating system 3 corresponding to the embedded SIM card 3 are simultaneously run, respectively. On the embedded SIM card, 3 standard interface circuits are provided, the 3 standard interface circuits are respectively a standard interface circuit 1, a standard interface circuit 2 and a standard interface circuit 3, and the 3 standard interface circuits are all coupled with the mobile terminal. The standard interface circuit 1 corresponds to the operating system 1 of the embedded SIM card 1 and corresponds to the identifier S1 of the embedded SIM card 1; the standard interface circuit 2 corresponds to the operating system 2 of the embedded SIM card 2 and corresponds to the identifier S2 of the embedded SIM card 2; the standard interface circuit 3 corresponds to the operating system 3 of the embedded SIM card 3 and to the identity S3 of the embedded SIM card 3.
When the mobile terminal has access requirements for the embedded SIM card 1 and the embedded SIM card 2, the sent access instruction carries the identifier S1 corresponding to the embedded SIM card 1 and the identifier S2 corresponding to the embedded SIM card 2. The bottom layer of the mobile terminal obtains the identifier S1 and the identifier S2 from the access command, and triggers the standard interface circuit 1 and the standard interface circuit 2, respectively. When knowing that the standard interface circuit 1 and the standard interface circuit 2 are triggered, the virtual machine sends the access instruction to the operating system 1 and the operating system 2 respectively, so that the mobile terminal can access the operating system 1 corresponding to the standard interface circuit 1 and the operating system 2 corresponding to the standard interface circuit 2 respectively.
In specific implementation, a plurality of chip selection input pins can be added on the basis of the hardware of the existing embedded SIM card. And respectively setting one-to-one corresponding operating systems of the embedded SIM cards aiming at each chip selection input pin. And after receiving the access instruction, selecting a chip selection input pin corresponding to the identifier of the embedded SIM according to the identifier of the embedded SIM corresponding to the access instruction.
For example, a virtual machine is run when power is on, using the hardware of a set of embedded SIM cards. In the virtual machine, an operating system 1 corresponding to the embedded SIM card 1, an operating system 2 corresponding to the embedded SIM card 2, and an operating system 3 corresponding to the embedded SIM card 3 are simultaneously run, respectively. Adding a chip selection input pin 1, a chip selection input pin 2 and a chip selection input pin 3 on the embedded SIM card, wherein the chip selection input pin 1 corresponds to an operating system 1 and an identifier S1 of the embedded SIM card 1; the chip selection input pin 2 corresponds to the operating system 2 and the identifier S2 of the embedded SIM card 2; the chip select input pin 3 corresponds to the operating system 3 and the identity S3 of the embedded SIM card 3.
When the mobile terminal has access requirements on the embedded SIM card 1 and the embedded SIM card 3, the identifier S1 and the identifier S3 are carried in the sent access instruction. The bottom layer of the mobile terminal obtains the identifier S1 and the identifier S3 from the access command, and triggers the chip select input pin 1 and the chip select input pin 3, respectively. When the virtual machine running on the hardware of the embedded SIM card detects that the chip selection input pin 1 and the chip selection input pin 3 are triggered, the access instruction can be respectively sent to the operating system 1 and the operating system 3. At this time, the mobile terminal can access the operating system 1 through the chip selection input pin 1 and access the operating system 3 through the chip selection input pin 3 respectively.
In particular implementations, no modifications to the hardware of the embedded SIM card may be required. And when the virtual machine receives the access instruction, the corresponding operating system can be selected according to the identification of the embedded SIM card in the access instruction.
For example, in the access instruction, the identifier S1 of the embedded SIM card 1 is carried, the virtual machine may directly select the operating system 1 corresponding to the identifier S1, and send the access instruction to the operating system 1, so that the mobile terminal may access the embedded SIM card 1.
In the prior art, multiple ISD-ps can be stored in an embedded SIM card, but existing protocols provide for only one to be activated at a time. That is, although a plurality of mobile phone numbers may be included in the embedded SIM card, only one is in use at a time. In other words, at the same time, the embedded SIM card only allows one of the profiles to be activated, and cannot access multiple profiles at the same time, that is, cannot support simultaneous access of multiple numbers.
In the embodiment of the invention, the operating systems corresponding to a plurality of embedded SIM cards run in the virtual machine. When an access instruction for accessing the embedded SIM card is received, the corresponding operating system is selected from the virtual machine and accessed according to the identification of the embedded SIM card corresponding to the access instruction, so that the operating systems corresponding to different embedded SIM cards can be accessed at the same time, and the simultaneous access of multiple numbers can be supported.
In the prior art, for a multi-card multi-standby mobile terminal, because one embedded SIM card can only correspond to one subscriber number, a plurality of card slots are required to be arranged in the multi-card multi-standby mobile terminal to place different SIM cards respectively. For example, for a dual-card dual-standby mobile terminal, two card slots are required to be arranged to respectively place two SIM cards.
In the embodiment of the invention, two embedded SIM cards or even more embedded SIM cards can be accessed simultaneously by using one embedded SIM card, so that the simultaneous standby of a plurality of numbers can be realized by only arranging one card slot in the mobile terminal, thereby reducing the space occupied by a plurality of card slots.
The embodiment of the invention also provides a mobile terminal which comprises the embedded SIM card and an embedded SIM card access device provided by the embodiment of the invention.
Referring to fig. 4, in a specific implementation, the embedded SIM card access device 40 includes: a receiving unit 401, an obtaining unit 402, and a selecting unit 403, wherein:
a receiving unit 401, configured to receive an access instruction for accessing an embedded SIM card;
an obtaining unit 402, configured to obtain an identifier of an embedded SIM card corresponding to the access instruction;
a selecting unit 403, configured to select, in a preset virtual machine in which an operating system corresponding to multiple embedded SIM cards runs, and according to an identifier of an embedded SIM card corresponding to the access instruction, an operating system corresponding to the identifier of the embedded SIM card, and access the operating system.
In a specific implementation, the selecting unit 403 may be configured to select, according to an identifier of an embedded SIM card corresponding to the access instruction, a standard interface circuit corresponding to the identifier of the embedded SIM card; and selecting an operating system corresponding to the standard interface circuit.
In a specific implementation, the selecting unit 403 may be configured to select, according to an identifier of an embedded SIM card corresponding to the access instruction, a chip select input pin corresponding to the identifier of the embedded SIM card; and selecting an operating system corresponding to the chip selection input pin.
In a specific implementation, an embodiment of the present invention further provides a mobile terminal, including the embedded SIM card and the embedded SIM card access apparatus. The structure of the embedded SIM card can be shown in fig. 2, and the embedded SIM card access apparatus can be shown in fig. 4, which is not described herein.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by instructing the relevant hardware through a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, NVM, etc.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.