User identity recognition module switching method, terminal and electronic device
By detecting the insertion or removal event of the SIM module, triggering the communication module interface change, the replacement of the SIM module is realized, which solves the problem of operator compatibility and high hardware requirements when replacing the SIM module, and achieves flexible replacement and efficient replacement efficiency.
Patent Information
- Application Number
- CN202011414406.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-03
AI Technical Summary
In the existing technology, ordinary SIM modules cannot be compatible with the requirements of multiple operators when replaced, and the programmable platform has high hardware requirements, making it difficult to realize flexible replacement of SIM modules.
By detecting the insertion or removal of the second user identification module into the terminal, the communication interface change of the communication module is triggered, the replacement of the user identification module is realized, the module replacement between different operators is supported, the hardware requirements are simplified, and the over-the-air download technology and server platform are avoided. rely.
It realizes flexible replacement of SIM modules and is suitable for different operators. It has simple functions, low hardware requirements, saves storage space, simple system interaction process, high replacement efficiency, and avoids the complexity of programmable platforms.
Smart Images

Figure CN114615663B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of mobile communication technology, and in particular to a user identity recognition module switching method, a terminal and an electronic device. Background Art
[0002] The secure element (SE) can be regarded as a microcomputer that implements functions such as data security storage and encryption and decryption operations through a secure chip and a chip operating system (COS). SE can be packaged in various forms, the most common of which are smart cards and embedded security modules (eSE). SE is widely used in finance, mobile payment, urban transportation, medical care, retail and other fields, such as bank cards, bus cards, POS machines, mobile phones, electric meters, etc., providing security services for these scenarios.
[0003] SIM (Subscriber Identity Module) card is a smart card module that provides identity identification for mobile terminals such as mobile phones, and has been popularized in the mass consumer market. The chip in the SIM card is a security chip that has undergone a special security design and can resist high-tech attacks such as lasers and electromagnetics, and can achieve financial-level security. With the development of technology and the market, in order to fully utilize the security functions of the SIM card, a SIM card equipped with a security unit function has been developed, namely the SE-SIM card. SE-SIM supports both ordinary SIM functions as an identity authentication module for mobile cellular networks and security service functions, providing key management, data security storage, data encryption and decryption, data signature verification and other security services for related application scenarios. Therefore, SE-SIM is an important module for data security protection in the field of mobile Internet of Things.
[0004] Since SE-SIM is used in the field of mobile Internet of Things, mobile cellular network is a consideration for using SE-SIM. Manufacturers in many fields such as energy meters and Internet of Vehicles hope that the equipment is universal and not limited to a certain operator. The number or operator of the SIM module can be changed according to customer needs, regional communication conditions, or package rates. This replacement may be replaced at the factory or during user use. Since SE-SIM is generally an embedded chip, it is welded in the device and difficult to remove, so it is necessary to find a suitable method to replace the SIM module.
[0005] There are currently two methods for replacing the SIM module in SE-SIM: 1. Use OTA technology (Over The Air) to update the number data in the SIM module; 2. Use a programmable platform (such as the Java Card platform) to delete or deactivate the SIM application, then download a new SIM application and activate it. However, the existing replacement methods have the following problems: ordinary SIM modules are not compatible with the requirements of multiple operators; programmable platforms need to meet various security requirements, and are currently generally implemented using JavaCard (a smart card that can execute Java high-level language) and GlobalPlatform (an international organization for smart cards and security units) technology (multi-application management technology for security chips), which are complex in function and have high hardware requirements. Summary of the invention
[0006] The embodiments of the present invention provide a user identity module switching device, method and electronic device to solve the operator incompatibility problem and the high hardware requirement of the user identity system when replacing the common SIM module in the prior art.
[0007] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0008] In a first aspect, an embodiment of the present invention provides a user identity recognition module switching method, which is applied to a terminal, wherein the terminal includes a communication module and a first user identity recognition module, the communication module has a first communication protocol interface and a second communication interface, and the first user identity recognition module supports a user identity recognition function and a security service function; the method includes:
[0009] When detecting that a second user identity recognition module is inserted into the terminal, connecting the first communication protocol interface of the communication module with the second user identity recognition module to interact with instructions of a user identity function through the first communication protocol interface, wherein the second user identity recognition module supports a user identity recognition function;
[0010] Connecting the second communication interface of the communication module to the first user identification module to interact with instructions of the security service function through the second communication interface;
[0011] and / or
[0012] When it is detected that the second user identity module is unplugged from the terminal, the first communication protocol interface of the communication module is connected to the first user identity module to interact with instructions of the user identity function and the security service function through the first communication protocol interface.
[0013] Optionally, the communication module further has a second user identity module interface;
[0014] By detecting whether the second user identification module is in contact with the second user identification module interface, it is detected that the second user identification module is inserted into or removed from the terminal.
[0015] Optionally, after connecting the second communication interface of the communication module to the first user identification module, the method further includes:
[0016] Initializing the first communication protocol interface, reading and using the second user identification data of the second user identification module, and requesting network authentication;
[0017] Initialize the second communication interface and execute the security function instruction of the first user identity recognition module.
[0018] Optionally, after connecting the first communication protocol interface of the communication module with the first user identity recognition module, the method further includes:
[0019] Initializing the first communication protocol interface, reading and using the first user identification data of the first user identification module, and requesting network authentication;
[0020] Execute the security function instruction of the first user identity recognition module.
[0021] Optionally, the first communication protocol interface includes a first transmission channel and a second transmission channel;
[0022] The reading and using the first user identification data of the first user identification module to request network authentication includes:
[0023] reading and using the first user identification data of the first user identification module through the first transmission channel to request network authentication;
[0024] The security function instruction for executing the first user identity recognition module includes:
[0025] The security function instruction of the first user identity recognition module is executed through the second transmission channel.
[0026] In a second aspect, an embodiment of the present invention provides a terminal, including:
[0027] A communication module, wherein the communication module has a first communication protocol interface and a second communication interface;
[0028] A first user identity recognition module, wherein the first user identity recognition module supports a user identity recognition function and a security service function;
[0029] A second user identity module interface, used for inserting a second user identity module;
[0030] When it is detected that the second user identity identification module is inserted into the terminal, the first communication protocol interface of the communication module is connected to the second user identity identification module to interact with instructions of a user identity function through the first communication protocol interface, and the second user identity identification module supports a user identity identification function; the second communication interface of the communication module is connected to the first user identity identification module to interact with instructions of a security service function through the second communication interface;
[0031] When it is detected that the second user identity module is unplugged from the terminal, the first communication protocol interface of the communication module is connected to the first user identity module to interact with instructions of the user identity function and the security service function through the first communication protocol interface.
[0032] Optionally, the communication module is any one of a 2G, 3G, 4G, 5G cellular network module or a narrowband Internet of Things module.
[0033] Optionally, the first communication protocol interface is a 7816 protocol communication interface.
[0034] Optionally, the second communication interface is any one of SPI, I2C, and UART communication interfaces.
[0035] Optionally, the first user identity recognition module is an embedded chip or a plug-in chip.
[0036] Optionally, the second user identity identification module is a user identity identification card.
[0037] In a third aspect, an embodiment of the present invention provides an electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the steps in the user identity identification module switching method as described in any one of the first aspects are implemented.
[0038] In a fourth aspect, an embodiment of the present invention provides a readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the user identity recognition module switching method as described in any one of the first aspects.
[0039] In an embodiment of the present invention, when it is detected that the second user identity identification module is inserted into the terminal, the first communication protocol interface of the communication module is connected to the second user identity identification module, and the second communication interface of the communication module is connected to the first user identity identification module, and the user identity identification function is implemented through the second user identity identification module, and the security service function is implemented through the first user identity identification module; when it is detected that the second user identity identification module is unplugged from the terminal, the first communication protocol interface of the communication module is connected to the first user identity identification module, and the user identity identification function and the security service function are implemented through the first user identity identification module; the user identity identification module switching method of the present invention detects that the second user identity identification module is inserted into or unplugged from the terminal, triggers the communication interface change of the communication module, and realizes the replacement of the user identity identification module with the user identity identification module with the security function, and when the communication interface is changed, the security service function of the user identity identification module with the security function is still maintained; the replacement method is suitable for the replacement of user identity identification modules between different operators, has simple functions, and has low hardware requirements; does not need to implement over-the-air download technology, and saves hardware storage space; does not rely on the server platform, the system interaction process is simple, the replacement efficiency is high, and the user identity identification module with the security function is not required to implement the programmable platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0041] Figure 1A One of the flow charts of the method for switching the user identity recognition module provided by an embodiment of the present invention;
[0042] Figure 1B A second flow chart of a method for switching a user identity module provided by an embodiment of the present invention;
[0043] Figure 2 A schematic diagram of the architecture of a terminal provided by another embodiment of the present invention;
[0044] Figure 3 A schematic diagram of the architecture of an electronic device provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] Please refer to Figure 1A and Figure 1B The present invention provides a user identity recognition module switching method, which is applied to a terminal, wherein the terminal includes a communication module and a first user identity recognition module, wherein the communication module has a first communication protocol interface and a second communication interface, and the first user identity recognition module supports a user identity recognition function and a security service function; the method includes:
[0047] Step 11: When detecting that the second user identity module is inserted into the terminal, the first communication protocol interface of the communication module is connected to the second user identity module to interact with the instructions of the user identity function through the first communication protocol interface, and the second user identity module supports the user identity function; the second communication interface of the communication module is connected to the first user identity module to interact with the instructions of the security service function through the second communication interface;
[0048] and / or
[0049] Step 12: When it is detected that the second user identity module is unplugged from the terminal, the first communication protocol interface of the communication module is connected to the first user identity module to interact with instructions of the user identity function and the security service function through the first communication protocol interface.
[0050] In an embodiment of the present invention, when it is detected that the second user identity identification module is inserted into the terminal, the first communication protocol interface of the communication module is connected to the second user identity identification module, and the second communication interface of the communication module is connected to the first user identity identification module, and the user identity identification function is implemented through the second user identity identification module, and the security service function is implemented through the first user identity identification module; when it is detected that the second user identity identification module is unplugged from the terminal, the first communication protocol interface of the communication module is connected to the first user identity identification module, and the user identity identification function and the security service function are implemented through the first user identity identification module; the user identity identification module switching method of the present invention detects that the second user identity identification module is inserted into or unplugged from the terminal, triggers the communication interface change of the communication module, and implements the replacement of the user identity identification module with the security function, and when the communication interface is changed, the security service function of the user identity identification module with the security function is still maintained; the replacement method is suitable for the replacement of user identity identification modules between different operators, has simple functions, and has low hardware requirements; does not need to implement over-the-air download technology, and saves hardware storage space; does not rely on the server platform, the system interaction process is simple, the replacement efficiency is high, and the user identity identification module with the security function is not required to implement a programmable platform.
[0051] In some embodiments of the present invention, optionally, the communication module further has a second user identity module interface;
[0052] By detecting whether the second user identification module is in contact with the second user identification module interface, it is detected that the second user identification module is inserted into or removed from the terminal.
[0053] In an embodiment of the present invention, the communication module has a second user identity identification module interface, and whether the second user identity identification module is in contact with the second user identity identification module interface is detected to detect whether the second user identity identification module is inserted into or unplugged from the terminal; this method realizes the switching of the communication interface by detecting the contact between the second user identity identification module and the interface of the communication module, which is simple and easy to implement.
[0054] In some embodiments of the present invention, optionally, after connecting the second communication interface of the communication module with the first user identification module, the method further includes:
[0055] Initializing the first communication protocol interface, reading and using the second user identification data of the second user identification module, and requesting network authentication;
[0056] Initialize the second communication interface and execute the security function instruction of the first user identity recognition module.
[0057] In an embodiment of the present invention, the first communication protocol interface of the communication module is connected to the second user identity identification module, the second communication interface of the communication module is connected to the first user identity identification module, the first communication protocol interface and the second communication interface are initialized, the user identity identification function is implemented through the second user identity identification module, and the security service function is implemented through the first user identity identification module; when the communication interface is changed, the security service function of the user identity identification module with security function is still maintained.
[0058] In some embodiments of the present invention, optionally, after connecting the first communication protocol interface of the communication module with the first user identification module, the method further includes:
[0059] Initializing the first communication protocol interface, reading and using the first user identification data of the first user identification module, and requesting network authentication;
[0060] Execute the security function instruction of the first user identity recognition module.
[0061] In an embodiment of the present invention, the first communication protocol interface of the communication module is connected to the first user identity recognition module, the first communication protocol interface is initialized, and the user identity recognition function and the security service function are implemented through the first user identity recognition module; when the communication interface is changed, the security service function of the user identity recognition module with security function is still maintained.
[0062] In some embodiments of the present invention, optionally, the first communication protocol interface includes a first transmission channel and a second transmission channel;
[0063] The reading and using the first user identification data of the first user identification module to request network authentication includes:
[0064] reading and using the first user identification data of the first user identification module through the first transmission channel to request network authentication;
[0065] The security function instruction for executing the first user identity recognition module includes:
[0066] The security function instruction of the first user identity recognition module is executed through the second transmission channel.
[0067] In an embodiment of the present invention, the first communication protocol interface has a first transmission channel and a second transmission channel, wherein the first channel is used to perform a user identity recognition function, and the second channel is used to perform a security service function. In some embodiments of the present invention, optionally, the communication module is any one of a 2G, 3G, 4G, 5G cellular network module or a narrowband Internet of Things module.
[0068] In some embodiments of the present invention, optionally, the first communication protocol interface is a 7816 protocol communication interface.
[0069] In some embodiments of the present invention, optionally, the second communication interface is any one of SPI, I2C, and UART communication interfaces.
[0070] In some embodiments of the present invention, optionally, the first user identity recognition module is an embedded chip or a plug-in chip.
[0071] In some embodiments of the present invention, optionally, the second user identity identification module is a user identity identification card.
[0072] The present invention also provides an embodiment, when the first user identity identification module supporting the user identity identification function and the security service function is recorded as a SE-SIM module, the second user identity identification module is a common SIM card, and the first communication protocol interface is a 7816 protocol communication interface:
[0073] (1) In the default state, SE-SIM is connected to the communication module through the 7816 protocol communication interface. The instructions of the SIM function and the SE function are sent to SE-SIM through the 7816 protocol communication interface. The SIM function and the SE function of SE-SIM can work at the same time; the two functions work on different logical channels respectively. By default, the SIM function works on channel 0 and the SE function works on channel 1.
[0074] (2) When the SIM function in the SE-SIM needs to be replaced, a common SIM card can be inserted; this SIM card is a plug-in SIM card, and the insertion action generates a trigger signal, which is transmitted to the communication module through the second user identity module interface.
[0075] (3) After the communication module receives the trigger signal, the communication module connects the 7816 protocol communication interface to the newly inserted ordinary SIM card and connects the second communication interface to the SE-SIM. At this time, the ordinary SIM card can be used to connect to the communication module network, and the SIM function of the SE-SIM cannot be used, and only the SE function can be used.
[0076] (4) After the connection switching is completed, the communication module restarts the 7816 protocol communication interface, performs interface initialization, reads the new SIM data, uses the new SIM data to connect to the communication module to request network authentication, and performs subsequent network operations. The communication module connects to the SE-SIM through the second communication interface, performs interface initialization, and executes subsequent SE function instructions.
[0077] (5) When the SIM module needs to be switched to the SIM in the SE-SIM, the ordinary SIM card can be pulled out. The pulling out action generates a trigger signal, which is transmitted to the communication module through the second user identity recognition interface.
[0078] (6) After the communication module receives the trigger signal, the communication module connects the 7816 protocol communication interface to the SE-SIM and no longer uses the second communication interface. After that, the SIM function and SE function instructions of the SE-SIM can be transmitted through the 7816 protocol communication interface.
[0079] (7) After executing the connection switch, the communication module restarts the 7816 protocol communication interface, performs interface initialization, reads the SIM data in the SE-SIM through channel 0, uses its data to connect to the communication module to request network authentication, and performs subsequent network operations. The communication module can also use the SE function through the 7816 protocol communication interface, initialize channel 1, select the application of the SE function, and execute related commands.
[0080] See also Figure 2 , Figure 2 A schematic diagram of the architecture of a terminal 20 provided in another embodiment of the present invention is shown in FIG.
[0081] include:
[0082] A communication module 21, the communication module having a first communication protocol interface 211 and a second communication interface 212;
[0083] A first user identification module 22, wherein the first user identification module 22 supports a user identification function and a security service function;
[0084] A second user identity module interface 23, for inserting a second user identity module 24;
[0085] When it is detected that the second user identity recognition module 24 is inserted into the terminal 20, the first communication protocol interface 211 of the communication module 21 is connected to the second user identity recognition module 24, so as to interact with the instructions of the user identity function through the first communication protocol interface 211, and the second user identity recognition module 24 supports the user identity recognition function; the second communication interface 212 of the communication module 21 is connected to the first user identity recognition module 22, so as to interact with the instructions of the security service function through the second communication interface 212;
[0086] When it is detected that the second user identification module 24 is unplugged from the terminal 20 , the first communication protocol interface 211 of the communication module 21 is connected to the first user identification module 22 to interact with instructions of user identity function and security service function through the first communication protocol interface 211 .
[0087] In an embodiment of the present invention, when the second user identity identification module is inserted into the terminal, the first communication protocol interface of the communication module is connected to the second user identity identification module, and the second communication interface of the communication module is connected to the first user identity identification module, and the user identity identification function is implemented through the second user identity identification module, and the security service function is implemented through the first user identity identification module; when the second user identity identification module is unplugged from the terminal, the first communication protocol interface of the communication module is connected to the first user identity identification module, and the user identity identification function and the security service function are implemented through the first user identity identification module; the user identity identification module switching method of the present invention detects that the second user identity identification module is inserted into or unplugged from the terminal, triggers the communication interface change of the communication module, and implements the replacement of the user identity identification module with the security function, and when the communication interface is changed, the security service function of the user identity identification module with the security function is still maintained; the replacement method is suitable for the replacement of user identity identification modules between different operators, has simple functions, and has low hardware requirements; does not need to implement over-the-air download technology, and saves hardware storage space; does not rely on the server platform, the system interaction process is simple, the replacement efficiency is high, and the user identity identification module with the security function is not required to implement the programmable platform.
[0088] In some embodiments of the present invention, optionally, the communication module is any one of a 2G, 3G, 4G, 5G cellular network module or a narrowband Internet of Things module.
[0089] In the embodiment of the present invention, the communication module may be any one of a 2G-5G cellular network module or a narrowband Internet of Things module.
[0090] In some embodiments of the present invention, optionally, the first communication protocol interface is a 7816 protocol communication interface.
[0091] In an embodiment of the present invention, the first communication protocol interface is a 7816 protocol communication interface, which is an international standard interface for SIM cards, and general SIM modules or SIM cards support the 7816 protocol communication interface. In some embodiments of the present invention, optionally, the second communication interface is any one of SPI, I2C, and UART communication interfaces.
[0092] In an embodiment of the present invention, the second communication interface is any one of SPI, I2C, and UART communication interfaces, which is used for additional data transmission. When the SE-SIM module does not perform its user identity identification function, data transmission of the security service function is realized through the second communication interface.
[0093] In some embodiments of the present invention, optionally, the first user identity recognition module is an embedded chip or a plug-in chip.
[0094] In the embodiment of the present invention, the first user identity recognition module supports a user identity recognition function and a security service function, and may be an embedded chip or a plug-in card.
[0095] In some embodiments of the present invention, optionally, the second user identity identification module is a user identity identification card.
[0096] In the embodiment of the present invention, the second user identity identification module is a common user identity identification card, which is suitable for replacement of user identity identification modules between different operators.
[0097] Please refer to Figure 3 An embodiment of the present invention further provides an electronic device 30, comprising a memory 31, a processor 32, and a program stored in the memory 31 and executable on the processor 32; when the processor 3 executes the program, the steps in the user identity module switching method described in any of the above embodiments are implemented.
[0098] The embodiment of the present invention also provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, each process of the embodiment of the uplink signal transmission method as described above is implemented; or each process of the embodiment of the user identity recognition module switching method as described above is implemented, and the same technical effect can be achieved. In order to avoid repetition, it is not repeated here. Among them, the readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state drive (SSD)), etc.
[0099] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A user identity module switching method, applied to a terminal, the terminal comprising a communication module and a first user identity module, the communication module having a first communication protocol interface and a second communication interface, the first user identity module supporting a user identity recognition function and a security service function; characterized in that: The method comprises: When detecting that a second user identity recognition module is inserted into the terminal, connecting the first communication protocol interface of the communication module with the second user identity recognition module to interact with instructions of a user identity function through the first communication protocol interface, wherein the second user identity recognition module supports a user identity recognition function; Connecting the second communication interface of the communication module to the first user identification module to interact with instructions of the security service function through the second communication interface; When it is detected that the second user identity identification module is unplugged from the terminal, the first communication protocol interface of the communication module is connected to the first user identity identification module to interact with the instructions of the user identity function and the security service function through the first communication protocol interface; wherein the first communication protocol interface has a first transmission channel and a second transmission channel, the first transmission channel is used to execute the user identity identification function, and the second transmission channel is used to execute the security service function.
2. The user identity recognition module switching method according to claim 1, characterized in that: The communication module also has a second user identity module interface; By detecting whether the second user identification module is in contact with the second user identification module interface, it is detected that the second user identification module is inserted into or removed from the terminal.
3. The user identity module switching method according to claim 1, characterized in that: After the second communication interface of the communication module is connected to the first user identification module, the method further includes: Initializing the first communication protocol interface, reading and using the second user identification data of the second user identification module, and requesting network authentication; Initialize the second communication interface and execute the security function instruction of the first user identity recognition module.
4. The user identity module switching method according to claim 1, characterized in that: After the first communication protocol interface of the communication module is connected to the first user identification module, the method further includes: Initializing the first communication protocol interface, reading and using the first user identification data of the first user identification module, and requesting network authentication; Execute the security function instruction of the first user identity recognition module.
5. The user identity module switching method according to claim 4, characterized in that: The first communication protocol interface includes a first transmission channel and a second transmission channel; The reading and using the first user identification data of the first user identification module to request network authentication includes: reading and using the first user identification data of the first user identification module through the first transmission channel to request network authentication; The security function instruction for executing the first user identity recognition module includes: The security function instruction of the first user identity recognition module is executed through the second transmission channel.
6. A terminal, characterized in that: include: A communication module, wherein the communication module has a first communication protocol interface and a second communication interface; A first user identity recognition module, wherein the first user identity recognition module supports a user identity recognition function and a security service function; A second user identity module interface, used for inserting a second user identity module; When it is detected that the second user identity identification module is inserted into the terminal, the first communication protocol interface of the communication module is connected to the second user identity identification module to interact with instructions of a user identity function through the first communication protocol interface, and the second user identity identification module supports a user identity identification function; the second communication interface of the communication module is connected to the first user identity identification module to interact with instructions of a security service function through the second communication interface; When it is detected that the second user identity identification module is unplugged from the terminal, the first communication protocol interface of the communication module is connected to the first user identity identification module to interact with the instructions of the user identity function and the security service function through the first communication protocol interface; wherein the first communication protocol interface has a first transmission channel and a second transmission channel, the first transmission channel is used to execute the user identity identification function, and the second transmission channel is used to execute the security service function.
7. The terminal according to claim 6, characterized in that: The communication module is any one of a 2G, 3G, 4G, 5G cellular network module or a narrowband Internet of Things module.
8. The terminal according to claim 6, characterized in that: The first communication protocol interface is a 7816 protocol communication interface.
9. The terminal according to claim 6, characterized in that: The second communication interface is any one of SPI, I2C, and UART communication interfaces.
10. The terminal according to claim 6, characterized in that: The first user identity recognition module is an embedded chip or a plug-in chip.
11. The terminal according to claim 6, characterized in that: The second user identity identification module is a user identity identification card.
12. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the steps in the user identity module switching method according to any one of claims 1 to 5 are implemented.
13. A readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the user identity recognition module switching method as described in any one of claims 1 to 5 are implemented.
