Terminal application launching method, device, and system

The method allows simultaneous launch of multiple applications and profiles on a security module by using a master chip to allocate dedicated data channels, addressing inefficiencies and interference in current SSPs, thereby reducing costs and enhancing user experience.

JP7540639B2Active Publication Date: 2024-08-27HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022196115
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-04-26
Filing Date
2022-12-08
Publication Date
2024-08-27
Estimated Expiration
2039-04-25

AI Technical Summary

Technical Problem

Current secure smart platforms (SSPs) do not support the simultaneous launch of multiple profiles or applications, limiting the use of communication services from different telecommunications carriers, and existing solutions fail to efficiently manage applications and profiles at the same level, leading to hardware cost inefficiencies and interference issues.

Method used

A method and system for launching multiple applications on a security module by using a master chip to allocate dedicated data channels to each application, enabling simultaneous activation and communication, with priority-based allocation and logical channel extension to enhance security and efficiency.

Benefits of technology

Enables simultaneous launch of multiple applications and profiles, reducing hardware costs and preventing interference, while improving user satisfaction and security through independent data channels and logical channel expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540639000011
    Figure 0007540639000011
  • Figure 0007540639000005
    Figure 0007540639000005
  • Figure 0007540639000004
    Figure 0007540639000004
Patent Text Reader

Abstract

A method, device and system for launching a terminal application are provided. [Solution] In a terminal including a master chip and a security module connected to the master chip via at least two data channels, a terminal application launching method includes: acquiring, by the master chip, application information of the security module including information regarding at least two applications to be launched; launching, by the master chip, the at least two applications and assigning corresponding data channels to each of the at least two applications; and separately communicating data with the at least two applications via the data channels corresponding to the at least two applications, by the master chip.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of intelligent terminal technology, and in particular to a terminal application launching method, device and system. [Background technology]

[0002] Current smart secure platforms (SSPs) can support removable subscriber identity modules (SIMs), embedded SIM (eSIM) cards, integrated SIMs, etc. A removable SIM card means that a user purchases a SIM card from a telecommunication operator, then inserts the SIM card into a terminal to use the communication services provided by the telecommunication operator. An eSIM card may also be called an embedded universal integrated circuit card (eUICC). An eSIM card is a secure element that can be used by multiple telecommunication operators to remotely manage subscribers. An eSIM card may be placed in a terminal in a plug-in manner or a welded manner. An integrated SIM card may also be called an integrated universal integrated circuit card (iUICC). An integrated SIM card is integrated into a terminal in an internet protocol (IP) manner or a chip-stack manner. Multiple applications, including a profile for accessing an operator network and another application in the profile, may be installed in the SSP.

[0003] Currently, one SSP does not support the simultaneous launch of multiple profiles. If there is an launched profile on the terminal when a target profile needs to be launched, the terminal releases the launched profile and launches the target profile. However, if a user needs to use communication services provided by different telecommunications carriers simultaneously, multiple profiles are launched simultaneously through a terminal that supports dual SIM dual standby or multi-SIM multi-standby. In the future, when an SSP is integrated into a chip, only one SSP will be integrated to consider costs, and dual SIM dual standby or multi-SIM multi-standby cannot be implemented. Additionally, since a profile and another application in a profile are not at the same level, an application (application, App) in a profile is launched when a telecommunications carrier's profile is launched. For example, if a China Mobile profile is launched when a SIM card is used, an App such as China Mobile's mobile package and mobile online customer service center may be selected and launched. However, if a China Unicom App is expected to be used, an App in the China Unicom profile must be selected. Currently, in the new SSP platform, an application and a profile may belong to the same level.

[0004] How to launch multiple applications (including profiles) of the same or different operators simultaneously is a problem that currently needs to be solved. Summary of the Invention

[0005] The embodiments of the present application provide a terminal application launching method, apparatus and system for launching different Apps on a security module.

[0006] According to a first aspect, an embodiment of the present application provides a terminal application launching method. A terminal includes a master chip and a security module. The security module is connected to the master chip through at least two data channels. The method includes: acquiring, by the master chip, application information of the security module, the application information including information about at least two applications to be launched; launching, by the master chip, the at least two applications, and allocating a corresponding data channel for each of the at least two applications; and then, by the master chip, separately performing data communication with the at least two applications through the data channels corresponding to the at least two applications.

[0007] In this embodiment of the present application, when at least two applications need to be launched, a corresponding data channel is assigned to each of the at least two applications, which effectively solves the problem that in the existing solution, only one profile and multiple Apps in the profile can be launched, but multiple profiles or one profile and another App that is parallel to the profile and installed in the security module cannot be launched. This can implement the multi-SIM multi-standby function and reduce the hardware cost.

[0008] In a possible implementation, obtaining application information of the security module by the master chip includes: sending, by the master chip, an initialization request message to the security module when the security module is powered on; sending, by the security module, an initialization response message including the application information to the master chip; and receiving, by the master chip, the initialization response message. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module.

[0009] In this embodiment of the present application, the master chip interacts with the security module, such that the master chip can learn the capability of the security module to support simultaneous launch of at least two applications, and then establish a communication connection between the master chip and the security module through the interaction to allocate data channels to different Apps.

[0010] In a possible implementation, after receiving, by the master chip, the initialization response message, the method further includes sending, by the master chip, second indication information to the security module, where the second indication information includes at least one of capability information used to indicate that the master chip supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

[0011] In this embodiment of the present application, the master chip sends the second indication information to the security module, so that the security module can learn the master chip's ability to support the simultaneous launch of at least two applications, which achieves mutual authentication.

[0012] In a possible implementation, allocating a corresponding data channel for each of the at least two applications includes allocating a corresponding data channel for each of the at least two applications when a first quantity is less than or equal to a second quantity, the first quantity being a quantity of the at least two applications, and the second quantity being a maximum quantity of data channels supported by the security module.

[0013] In this embodiment of the present application, when the first quantity is equal to or less than the second quantity, a corresponding data channel is assigned to each of at least two applications that are activated, to implement multi-SIM multi-standby and isolate different applications. The receiving and transmitting relationships between different applications are independent, which can solve the interference and erroneous reception problems and improve the security of the physical connection.

[0014] In a possible implementation, allocating a corresponding data channel for each of the at least two applications includes determining a first application from the at least two applications and allocating a corresponding data channel for each of the first applications when the first quantity is greater than a second quantity, a priority of the first application is higher than a reference priority, and a quantity of the first application is less than or equal to the second quantity;

[0015] In this embodiment of the present application, when the quantity of data channels between the security module and the master chip is greater than the quantity of data channels on the security module, the data channels are preferentially allocated to high-priority applications, thereby improving user satisfaction and avoiding low user satisfaction caused by allocating data channels to low-priority applications.

[0016] In a possible implementation, the at least two applications include a second application. Allocating a corresponding data channel for each of the at least two applications includes, when the data channel is allocated to the third application, releasing the third application and allocating the data channel to the second application. A priority of the second application is higher than a priority of the third application. The third application does not belong to an application of the at least two applications.

[0017] In a possible implementation, when the second application is a network access application (NAA), the data channel is a data channel between the security module and a modem. Alternatively, when the second application is non-NAA, the data channel is a data channel between the security module and a central processing unit.

[0018] In this embodiment of the present application, a data channel between the security module and the modem or central processing unit is established based on whether the application is NAA, effectively reducing the processing workload of the modem.

[0019] In a possible implementation, the first display information further includes at least one of information regarding a quantity of applications installed on the security module and information regarding a maximum quantity of applications that may be installed on the security module.

[0020] In a possible implementation, the method further includes extending, by the master chip, at least two logical channels based on the data channel.

[0021] In this embodiment of the present application, after allocating a corresponding data channel to each of the at least two activated applications, the master chip can further expand at least two logical channels for the data channel corresponding to each application, thereby improving data parallelism and data processing speed.

[0022] According to a second aspect, an embodiment of the present application further provides a terminal application launching method. The method is applied to a security module. The security module is connected to a master chip through at least two data channels. The method includes: transmitting application information of the security module to the master chip; and, after the master chip allocates a corresponding data channel for each of the at least two applications, the security module separately performs data communication with the master chip through the data channels corresponding to the at least two applications. The application information includes information about the at least two applications to be launched. The application information is used to indicate allocating a corresponding data channel for each of the at least two applications.

[0023] In a possible implementation, prior to transmitting the application information of the security module to the master chip, the method further includes receiving, by the security module, an initialization request message from the master chip when the security module is powered on. Transmitting the application information of the security module includes transmitting, by the security module, an initialization response message including the application information to the master chip. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module.

[0024] In a possible embodiment, after sending the initialization response message to the master chip by the security module and before performing data communication with the master chip separately by the security module via data channels corresponding to the at least two applications, the method further includes receiving, by the security module, second indication information from the master chip, the second indication information including at least one of capability information used to indicate that the master chip supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

[0025] According to a third aspect, an embodiment of the present application further provides a terminal application launching method. The method is applied to a master chip. The master chip is connected to a security module through at least two data channels. The method includes: acquiring, by the master chip, application information of the security module, where the application information includes information about at least two applications to be launched; launching, by the master chip, the at least two applications and allocating a corresponding data channel for each of the at least two applications; and performing data communication with the at least two applications separately, by the master chip, through the data channels corresponding to the at least two applications.

[0026] In a possible implementation, obtaining application information of the security module by the master chip includes sending, by the master chip, an initialization request message to the security module when the security module is powered on, and receiving, by the master chip, an initialization response message from the security module including the application information. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module.

[0027] In a possible implementation, after receiving the initialization response message by the master chip, the method further includes sending, by the master chip, second indication information to the security module, where the second indication information includes at least one of capability information used to indicate that the master chip supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

[0028] In a possible implementation, allocating a corresponding data channel for each of the at least two applications includes allocating a corresponding data channel for each of the at least two applications when a first quantity is less than or equal to a second quantity, the first quantity being a quantity of the at least two applications, and the second quantity being a maximum quantity of data channels supported by the security module.

[0029] In a possible implementation, allocating a corresponding data channel for each of the at least two applications includes determining a first application from the at least two applications and allocating a corresponding data channel for each of the first applications when the first quantity is greater than a second quantity, a priority of the first application is higher than a reference priority, and the quantity of the first application is less than or equal to the second quantity.

[0030] In a possible implementation, the at least two applications include a second application. Allocating a corresponding data channel for each of the at least two applications includes, when the data channel is allocated to the third application, releasing the third application and allocating the data channel to the second application. A priority of the second application is higher than a priority of the third application. The third application does not belong to an application of the at least two applications.

[0031] In a possible implementation, when the second application is a network access application (NAA), the data channel is a data channel between the security module and the modem. Alternatively, when the second application is a non-NAA, the data channel is a data channel between the security module and the central processing unit.

[0032] In a possible implementation, the first display information further includes at least one of information regarding a quantity of applications installed on the security module and information regarding a maximum quantity of applications that may be installed on the security module.

[0033] In a possible implementation, the method further includes expanding, by the master chip, at least two logical channels based on the data channel.

[0034] According to a fourth aspect, an embodiment of the present application provides a terminal application launching system. The system includes a master chip and a security module. The security module is connected to the master chip via at least two data channels. The master chip is configured to obtain application information of the security module. The application information includes information regarding at least two applications to be launched. The master chip is further configured to launch the at least two applications and assign a corresponding data channel to each of the at least two applications. The master chip is further configured to perform data communication with the at least two applications separately via the data channels corresponding to the at least two applications.

[0035] In a possible implementation, the master chip is further configured to send an initialization request message to the security module when the security module is powered on. The security module is configured to send an initialization response message to the master chip, the initialization response message including the application information. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports the simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module. The master chip is further configured to receive the initialization response message.

[0036] In a possible embodiment, the master chip is further configured to send second indication information to the security module, the second indication information including at least one of capability information used to indicate that the master chip supports the simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

[0037] In a possible implementation, the master chip is specifically configured to allocate a data channel corresponding to each of the at least two applications when a first quantity is less than or equal to a second quantity, the first quantity being a quantity of the at least two applications, and the second quantity being a maximum quantity of data channels supported by the security module.

[0038] In a possible implementation, the master chip is specifically configured to determine a first application from the at least two applications and allocate a corresponding data channel to each of the first applications when the first quantity is greater than the second quantity, the priority of the first application is higher than a reference priority, and the quantity of the first application is less than or equal to the second quantity.

[0039] In a possible implementation, the at least two applications include a second application. The master chip is specifically configured to release the third application and allocate the data channel to the second application when the data channel is allocated to the third application. The priority of the second application is higher than the priority of the third application. The third application does not belong to any of the at least two applications.

[0040] In a possible implementation, when the second application is a network access application (NAA), the data channel is a data channel between the security module and the modem. Alternatively, when the second application is a non-NAA, the data channel is a data channel between the security module and the central processing unit.

[0041] In a possible implementation, the first display information further includes at least one of information regarding an amount of applications installed on the security module and information regarding a maximum number of applications that may be installed on the security module.

[0042] In a possible embodiment, the master chip is further configured to extend at least two logical channels based on the data channel.

[0043] According to a fifth aspect, an embodiment of the present application provides a security module, further including: a transmitting unit configured to transmit application information of the security module to a master chip, the application information including information regarding at least two applications to be launched, the application information being used to indicate allocation of a corresponding data channel for each of the at least two applications; and a communication unit configured to perform data communication with the master chip separately via the data channels corresponding to the at least two applications after the master chip allocates a corresponding data channel for each of the at least two applications.

[0044] In a possible implementation, the security module further includes a receiving unit configured to receive an initialization request message from the master chip when the security module is powered on. The transmitting unit is specifically configured to send an initialization response message including application information to the master chip. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports the simultaneous launch of at least two applications and information regarding the maximum number of data channels supported by the security module.

[0045] In a possible embodiment, the receiving unit is further configured to receive second indication information from the master chip, the second indication information including at least one of capability information used to indicate that the master chip supports the simultaneous launch of at least two applications and information regarding the maximum number of data channels supported by the master chip.

[0046] According to a sixth aspect, an embodiment of the present application further provides a master chip including: an acquisition unit configured to acquire application information of the security module, the application information including information regarding at least two applications to be launched; a launch unit configured to launch the at least two applications; an allocation unit configured to allocate a corresponding data channel for each of the at least two applications; and a communication unit configured to conduct data channels with the at least two applications separately via the data channels corresponding to the at least two applications.

[0047] In a possible implementation, the acquisition unit includes a sending subunit configured to send an initialization request message to the security module when the security module is powered on, and a receiving subunit configured to receive an initialization response message including application information from the security module. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module.

[0048] In a possible implementation, the sending subunit is further configured to send second indication information to the security module, the second indication information including at least one of capability information used to indicate that the master chip supports the simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

[0049] In a possible implementation, the allocation unit is specifically configured to allocate a data channel corresponding to each of the at least two applications when the first quantity is less than or equal to a second quantity, the first quantity being the quantity of the at least two applications, and the second quantity being the maximum quantity of data channels supported by the security module.

[0050] In a possible implementation, the allocation unit is specifically configured to: determine a first application from the at least two applications and allocate a corresponding data channel to each of the first applications when the first quantity is greater than a second quantity, the priority of the first application is higher than a reference priority, and the quantity of the first application is less than or equal to the second quantity.

[0051] In a possible implementation, the at least two applications include a second application. The allocation unit is specifically configured to release the third application and allocate the data channel to the second application when the data channel is allocated to the third application. The priority of the second application is higher than the priority of the third application. The third application does not belong to an application of the at least two applications.

[0052] In a possible implementation, when the second application is a network access application (NAA), the data channel is a data channel between the security module and the modem. Alternatively, when the second application is a non-NAA, the data channel is a data channel between the security module and the central processing unit.

[0053] In a possible implementation, the first indication further includes a quantity of applications installed on the security module and / or a maximum quantity of applications that may be installed on the security module.

[0054] In a possible embodiment, the master chip further includes an expansion unit configured to expand at least two logical channels based on the data channel.

[0055] According to a seventh aspect, an embodiment of the present application further provides a security module for implementing the aforementioned terminal application launch method. The security module includes a processor, a memory, and a communication interface. The processor is connected to the memory and the communication interface via a cable. The memory is configured to store a program. The processor is configured to execute the program stored in the memory, causing the processor to perform corresponding functions in the methods described in the first and second aspects. The communication interface is configured to support communication between the security module and another network element.

[0056] According to an eighth aspect, an embodiment of the present application further provides a master chip for implementing the terminal application launching method. The master chip includes a processor, a memory, and a communication interface. The processor is connected to the memory and the communication interface via a cable. The memory is configured to store a program. The processor is configured to execute the program stored in the memory, causing the processor to perform corresponding functions in the methods described in the first and third aspects. The communication interface is configured to support communication between the security module and another network element.

[0057] According to a ninth aspect, an embodiment of the present application further provides a terminal including a master chip and a security module. The master chip is configured to perform corresponding functions in the methods described in the first and third aspects. The security module is configured to perform corresponding functions in the methods described in the first and second aspects. The master chip may alternatively be the master chip described in the sixth aspect. The security module may alternatively be the security module described in the fifth aspect.

[0058] According to a tenth aspect, an embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium storing program instructions, the program instructions, when executed on a computer, enabling the computer to perform the method in the aforementioned aspect.

[0059] According to an eleventh aspect, an embodiment of the present application further provides a computer program product comprising instructions, which when run on a computer enable the computer to perform the method in the aforementioned aspect. [Brief description of the drawings]

[0060] [Figure 1] FIG. 2 is a schematic diagram of a protocol stack architecture of an SSP according to an embodiment of the present application. [Figure 2a] FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present application; [Figure 2b] FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present application; [Figure 3a] 1 is a schematic diagram of the architecture of a terminal application launching system according to an embodiment of the present application; [Figure 3b] FIG. 2 is a schematic diagram of a specific architecture of a terminal application launching system according to an embodiment of the present application; [Figure 4]1 is a schematic flowchart of a terminal application launching method according to an embodiment of the present application; [Diagram 5] 4 is a specific schematic flowchart of a terminal application launching method according to an embodiment of the present application; [Figure 6] FIG. 2 is a schematic structural diagram of a security module according to an embodiment of the present application; [Figure 7] FIG. 2 is a schematic structural diagram of a master chip according to an embodiment of the present application; [Figure 8] FIG. 2 is a schematic structural diagram of an acquisition unit according to an embodiment of the present application; [Figure 9] FIG. 2 is a schematic structural diagram of another master chip according to an embodiment of the present application. [Figure 10] FIG. 1 is a diagram of an architecture scenario of a terminal application launch system according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0061] The following describes embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.

[0062] In an embodiment of the present application, the SSP may be an operating platform of the security module. Multiple apps may be installed on the SSP platform. These apps may be profiles for accessing an operator network, or may be payment apps, driver's license or another identity identification apps, home network-related apps, vehicle Internet-related apps, mobile health-related apps, wearable apps, artificial intelligence-related apps, etc. These apps may be launched simultaneously on the SSP platform. Specifically, on the new SSP platform, an app and a profile may belong to an app at the same level. In other words, an app and a profile may run in parallel. In contrast, an app in a profile may only be launched after the profile is launched. Therefore, an app and a profile being at the same level means that an app and a profile may be launched simultaneously. For example, at least two profiles may be launched simultaneously, at least one profile and at least one app may be launched simultaneously, or at least two apps may be launched simultaneously.

[0063] A profile may be a general name for a set of files and data related to a mobile network operator (MNO) on a security module. It is understood that the profile described herein is merely an example and that in another implementation, the profile may be a different description. The description of the profile should not be construed as a limitation on this application.

[0064] FIG. 1 is a schematic diagram of a protocol stack architecture of an SSP according to an embodiment of the present application. The protocol stack architecture includes a physical layer, a data link layer, a transport layer, and an application layer. The physical layer may provide a physical interface between the SSP and the terminal. For example, the physical layer supports interface protocols such as international organization for standardization (ISO) 7816, serial peripheral interface (SPI), inter-integrated circuit (I2C), and single wire protocol (SWP). The data link layer may support protocols such as ISO-7816. The transport layer may support application protocol data unit (APDU), HCP protocol, etc. The application layer supports ISO-7816, APDU protocol, hyper text transfer protocol (HTTP), constrained application protocol (CoAP), etc.

[0065] 2a and 2b are structural block diagrams of an implementation provided using a terminal as an example. As shown in the figures, the terminal may include a master chip 210 and a security module 220. It should be understood that the security module 220 may be embedded in the master chip 210 as shown in FIG. 2a. Alternatively, the security module 220 may be independent from the master chip 210 as shown in FIG. 2b. The specific forms of the master chip and the security module are not limited in this embodiment of the present application.

[0066] The terminal of the present application may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID), etc. The specific implementation of the terminal is not limited in this embodiment of the present application. It will be understood that the terminal in this embodiment of the present application may be referred to as a terminal device, etc.

[0067] 3a is a schematic diagram of the architecture of a terminal application launching system according to an embodiment of the present application. As shown in FIG. 3a, the system includes a master chip 210 and a security module 220. The master chip 210 may be connected to the security module 220 via at least two data channels.

[0068] As shown in Fig. 3a, the master chip may include a processor 211 and a memory 212. The memory 212 may be configured to store a program. The processor 211 may be configured to execute the program stored in the memory. The master chip may further include a communication interface 213. The master chip may, for example, interact with the security module, for example, communicate data or instructions, via the communication interface 213. It will be understood that the communication interface 213 may also interact with another device, etc. This is not limited in this embodiment of the present application.

[0069] Specifically, the security module may include a processor 221 and a memory 222. The memory 222 may be configured to store a program, and the processor 221 may be configured to execute the program stored in the memory. The security module may also include a communication interface 223. Through the communication interface 223, the security module interacts with a master chip, etc. It will be understood that the specific implementation of the communication interface is not uniquely limited in this embodiment of the present application.

[0070] Specifically, the data channel may also be understood as a physical channel and may be used to transmit data and / or instructions between the security module and the master chip. The data channel is dedicated to an application (e.g., an application among at least two applications that are launched) that runs independently on the security module and is physically isolated from other applications. In other words, an application does not share a data channel with other applications. Furthermore, the master chip may extend at least two logical channels on each data channel, and different logical channels on the same extended data channel may be assigned to sub-applications of the same application for use. Specifically, the two data channels shown in FIG. 3a are used as an example. The master chip may separately extend at least two logical channels on each of the two data channels. The logical channels may also be used to transmit data and / or instructions between the security module and the master chip. The difference is that the master chip may assign different logical channels to different types of data based on the type of data, and may also assign different logical channels to different instructions based on the type of instruction. For example, an application is a profile. After the data channel is assigned to the profile, the master chip may extend two logical channels. The two logical channels may be used separately to transmit information such as dedicated files, basic files, and sub-applications carried within the profile. It is understood that the above is merely an example and should not be construed as a limitation on the present embodiment of the present application.

[0071] The master chip may be the master chip of FIG. 2a or FIG. 2b. The security module may be a hardware module or a software module installed on the device, such as any form of SIM card, SSP, hardware secure element (SE), system on chip (SoC), or system in package (SIP). At least one operator profile that connects to the network and communicates over the network may be installed on the security module. Another app at a parallel level to the profile, such as a payment app, a driver's license or another identity identification app, a home network related app, a vehicle Internet related app, a mobile health related app, a wearable app, or an artificial intelligence related app, may also be installed on the security module.

[0072] It will be understood that the security module provided in this embodiment of the present application may be an independent module or may be integrated into the terminal.

[0073] To better understand the system provided in this embodiment of the present application, FIG. 3b is a schematic diagram of a specific architecture of a terminal application launching system according to this embodiment of the present application. The master chip may include elements such as a master central processing unit (CPU), a media processor, a low power micro controller unit (LPMCU), peripherals, a modem, a controller, a non-volatile memory (NVM), and a dynamic random access memory (DRAM). The master CPU or the media processor may be configured to be coupled to the memory to execute program instructions stored in the memory, and the like. For example, the master CPU may perform step 402 shown in FIG. 4. The peripherals may include devices such as input / output devices, external memories, analog-to-digital converters, digital-to-analog converters, and peripheral processors. For example, the peripherals may include a touch screen, a camera, a fingerprint collector, a near-field communication element, a sensor, and the like. The specific devices included in the peripherals are not limited in this embodiment of the present application. The controllers may include controller 1 and controller 2. Controller 1 is connected to the NVM and controller 2 is connected to the DRAM.

[0074] The security module may include elements such as a CPU, a read-only memory (ROM), a random access memory (RAM), a memory management unit (MMU), a one time programmable (OTP), and a true random number generator (TRNG), a cryptographic engine (such as a cypto), sensors, peripherals, and signal input / output connection lines between the security module and the master chip.

[0075] The ROM and RAM shown in this embodiment of the present application are merely examples. In a specific implementation, the security module may further include another type of memory. This is not limited in this embodiment of the present application. The MMU may be used to manage a virtual memory system.

[0076] OTP is also called On-Time Password. A time-related unpredictable random number combination may be generated every 60 seconds according to a dedicated algorithm. Each password may only be used once. The encryption engine can effectively improve the data security of the security module.

[0077] Specifically, in the system architecture provided in this embodiment of the present application, the security module may be an isolated security subsystem and communicates with elements such as a master chip via a bus. The bus used for communication may be a dedicated mailbox, a general-purpose bus bridge, etc. This is not limited in this embodiment of the present application. The bus may include multiple physical connections, allowing the master chip to assign different data channels to the security module, so as to implement multi-SIM multi-standby and parallel data processing. The data transmitted through the data channel may be stored in an external NVM. Alternatively, the data may be stored in the SoC, the security module, etc. in another manner. This is not limited in this embodiment of the present application.

[0078] It will be understood that the above-described master chip and security module are merely examples provided in this embodiment of the present application, and that the master chip and / or security module may have more or fewer components than those shown, may combine two or more components, or may have a different configuration of components.

[0079] It will be understood that the system provided in this embodiment of the present application may be integrated into a terminal so that a user can conveniently use the terminal.

[0080] 4 is a schematic flowchart of a terminal application launching method according to an embodiment of the present application. The terminal application launching method may include the following steps:

[0081] 401: The master chip obtains application information of the security module, where the application information includes information about at least two applications to be launched.

[0082] In this embodiment of the application, the application may be an application on a security module. The application may include an operator's profile and another application at a level parallel to the profile, such as a payment application, an identity identification application, or an artificial intelligence application. For example, a security module may include N applications, where N is 2 or more. There may be M applications that are launched, where M is less than or equal to N. It will be understood that the specific quantity of at least two applications that are launched is not limited in this embodiment of the application.

[0083] For example, ten applications are installed in the security module, and it is not necessary that all ten applications communicate with the master chip. For example, in the current phase, only four applications may need to communicate with the master chip. Therefore, the master chip may launch the four applications by obtaining application information of the security module.

[0084] The application information acquired by the master chip includes information about at least two applications to be launched. In a possible implementation, for example, the application information acquired by the master chip may include information about all applications installed in the security module, and then the master chip determines the at least two applications to be launched based on the priority of each application (applications installed in the security module). In another possible implementation, the security module determines the at least two applications to be launched based on all applications installed in the security module and information about the priority of each application (applications installed in the security module).

[0085] In a possible implementation, this embodiment of the present application provides two specific methods for obtaining application information, as shown below.

[0086] Implementation 1: The master chip obtaining application information of the security module includes, when the security module is powered on, the master chip sending an initialization request message to the security module, the security module sending an initialization response message including the application information to the master chip, and the master chip receiving the initialization response message. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module.

[0087] Optionally, the first display information may further include at least one of information regarding the number of applications installed on the security module and information regarding the maximum number of applications that may be installed on the security module. The information regarding the number of applications installed on the security module may be used to obtain the number of applications that may be simultaneously launched by the security module. The information regarding the number of applications installed on the security module may further be used to determine whether the maximum number of data channels supported by the master chip can satisfy the number of applications installed on the security module. The information regarding the maximum number of applications that may be installed on the security module may be used by the master chip to determine the number of applications that may be installed and simultaneously launched on the security module, and determine whether the maximum of data channels supported by the master chip can satisfy the number of applications that may be installed and simultaneously launched on the security module. In this way, the beneficial effect of improving the user experience is achieved by accurately allocating the data channels.

[0088] For implementation 1, the security module determines at least two applications to be launched, and sends application information including the at least two applications to be launched to the master chip, so that the master chip can directly obtain the application information from the initialization response message sent from the security module. In other words, the information on the at least two applications to be launched is directly obtained. Additionally, the master chip can also learn the maximum number of data channels that can be supported by the security module, so that the master chip can learn the exact number of applications that can be launched. In other words, the specific number of applications that can be launched by the master chip may be determined based on the maximum number of data channels supported by the security module.

[0089] Implementation 2: The master chip obtaining application information of the security module includes the master chip sending an initialization request message to the security module when the security module is powered on, the security module sending an initialization response message to the master chip, and the master chip receiving the initialization response message and determining the application information based on the initialization response message. The initialization response message includes first indication information. The first indication information includes information regarding an application installed on the security module.

[0090] Optionally, the first indication information may further include at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications, information regarding a maximum number of data channels supported by the security module, and information regarding a maximum number of applications that can be installed on the security module.

[0091] For implementation 2, after receiving the initialization response message sent from the security module, the master chip may independently determine the applications to be launched based on the initialization response message, allowing the master chip to determine the quantity of applications to be launched based on the processing capability of the master chip.

[0092] Specifically, the security module provides the master chip with capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding the maximum number of data channels supported by the security module, enabling the security module to determine whether it supports multiple data channels and the maximum number of data channels that can be supported.

[0093] It should be understood that whether the security module determines the at least two applications to be launched, or the master chip determines the at least two applications to be launched, the determination method may be determined based on the priority, and specifically determined based on the frequency of use of each application. This determination method is not uniquely limited in this embodiment of the present application.

[0094] In a possible implementation, after the master chip receives the initialization response message based on two specific methods provided for obtaining application information, the method further includes transmitting, by the master chip, second indication information to the security module, where the second indication information includes at least one of capability information used to indicate that the master chip supports simultaneous launch of at least two applications and information regarding the maximum number of data channels supported by the master chip.

[0095] In this embodiment of the present application, after the master chip receives the first indication information of the security module, the master chip may further send second indication information to the security module, so that it can further determine whether the master chip supports the simultaneous launch of at least two applications. It can be understood that in this embodiment of the present application, the security module needs to be connected to the master chip through a data channel, so that the maximum number of data channels supported by the security module is the same as the maximum number of data channels supported by the master chip.

[0096] 402: The master chip launches at least two applications and allocates a corresponding data channel for each of the at least two applications.

[0097] In this embodiment of the present application, the master chip may allocate one data channel for each of the at least two applications. If the application information includes M applications to be launched, the master chip may allocate one data channel for each of the M applications (i.e., M data channels in total).

[0098] The master chip launches an application, specifically, the master chip establishes a communication channel with the application, reads the application data, and sends the application data to the corresponding processing module to complete the service in the application. Indeed, the method for launching an application by the master chip is merely an example and should not be construed as a limitation on the present embodiment of the present application.

[0099] In a possible implementation, this embodiment of the present application further provides two data channel allocation scenarios, as shown below.

[0100] Scenario 1: Allocating a corresponding data channel for each of the at least two applications includes allocating a corresponding data channel for each of the at least two applications when a first quantity is less than or equal to a second quantity, the first quantity being a quantity of the at least two applications, and the second quantity being a maximum quantity of data channels supported by the security module.

[0101] The second quantity will also be understood to be the maximum quantity of data channels supported by the master chip. In this scenario, the master chip may allocate one data channel to each application included in the at least two applications to be launched.

[0102] Scenario 2: Allocating a corresponding data channel for each of the at least two applications includes: determining a first application from the at least two applications when the first quantity is greater than a second quantity; and allocating a corresponding data channel for each of the first applications, where a priority of the first application is higher than a reference priority and the quantity of the first application is less than or equal to the second quantity.

[0103] In this scenario, since the master chip cannot allocate one data channel to each of at least two applications to be launched, the master chip may first determine an application, i.e., a first application whose priority is higher than the reference priority, and allocate a corresponding data channel to each of the first applications. It will be understood that there may be one or at least two first applications. This is not limited in this embodiment of the present application. The reference priority may be independently set by the master chip, or the reference priority may be dynamically updated based on the maximum number of data channels supported by the master chip. The method of setting the reference priority is not limited in this embodiment of the present application.

[0104] In a possible implementation, based on the described embodiment, the two described implementations of obtaining application information, and the two described data channel allocation scenarios, this embodiment of the present application further provides a data channel allocation method, as shown below.

[0105] The at least two applications include a second application, and allocating a corresponding data channel for each of the at least two applications includes, when the data channel is allocated to the third application, releasing the third application and allocating the data channel to the second application, wherein a priority of the second application is higher than a priority of the third application, and the third application does not belong to an application of the at least two applications.

[0106] Scenario 1 and Scenario 2 are illustrated in a scenario where the data channel is not assigned to another application. However, this embodiment of the present application is illustrated in a scenario where the data channel is assigned to another application. If the at least two applications to be launched include a second application, the master chip needs to assign a data channel, such as the first data channel, to the second application. When the master chip assigns the data channel, it detects that the first data channel has been assigned to a third application. If the priority of the second application is higher than the priority of the third application, the master chip may release the third application and assign the first data channel to the second application. It will be understood that the first data channel is merely an example and does not indicate a sequence.

[0107] It will be appreciated that when the priority of the second application is lower than the priority of the third application, the master chip may temporarily switch the first data channel to the second application for use when the third application has no service data. When the third application has service data, the service data of the second application is temporarily buffered and the first data channel is switched to the third application, regardless of whether the second application is transmitting service data or not. The buffered service data of the second application is read and the first data channel is switched to the second application for use until the third application no longer has service data to transmit.

[0108] It should be understood that the priority comparison principle may be based on the frequency of application use, the user's preferences, the user's duration of use, etc. This is not limited in this embodiment of the present application.

[0109] It can be understood that when the master chip allocates corresponding data channels for each of the at least two applications, the identifier of the data channel can be further carried. In this way, the correspondence between the data channel and the application can be effectively distinguished, and the data transmission efficiency is improved.

[0110] 403: The master chip separately performs data communication with at least two applications via data channels corresponding to the at least two applications.

[0111] In this embodiment of the present application, the master chip may perform data communication with at least two applications that are separately launched through data channels corresponding to the at least two applications. If the at least two applications that are launched include the second application and the fourth application after the master chip assigns a data channel, such as the second data channel, to the second application and a data channel, such as the third data channel, to the fourth application, the master chip may perform data communication with the second application through the second data channel and with the fourth application through the third data channel. It will be understood that the second data channel and the third data channel are merely examples and do not indicate a sequence, and the second application and the fourth application are also merely examples and do not indicate a sequence.

[0112] In a possible implementation, when the second application is an NAA, the data channel is a data channel between the security module and the modem. Alternatively, when the second application is a non-NAA, the data channel is a data channel between the security module and the central processing unit.

[0113] In other words, in this embodiment of the present application, there may be two types of data channels. One may be a data channel between the security module and the modem, and the other may be a data channel between the security module and the CPU. When allocating the data channels to the at least two applications to be launched, the master chip may further determine whether an application, such as the second application, is an NAA. If the second application is an NAA, the data channel between the second application and the modem is allocated to the second application. If the second application is a non-NAA, the data channel between the second application and the CPU is allocated to the second application.

[0114] Alternatively, in this embodiment of the present application, there may be only one type of data channel, in other words, the data channel may be a data channel between the security module and the modem, or a data channel between the security module and the central processing unit.

[0115] Specifically, the data channel in this embodiment of the present application is a data channel between the main chip and the security module, such as a data channel supporting a bus protocol. Thus, the data channel in this embodiment of the present application may transmit application protocol data unit (APDU) commands, abstract syntax notation one (ASN.1) commands, start reply commands, etc.

[0116] The implementation of this embodiment of the present application can effectively solve the problem that the same security module cannot launch multiple applications or multiple profiles at the same time, and allows the security module to implement multi-SIM multi-standby function and multi-application function. This radically reduces hardware costs. Additionally, the launched applications are connected to the master chip through their respective data channels. This implements security isolation. Additionally, disabling one data channel does not affect another data channel, and congestion of one data channel does not affect the reception and transmission of other data channels.

[0117] It should be noted that the terminal application startup method shown in FIG. 4 may be applied to the initialization process of the master chip and the security module, and may also be applied when the master chip starts an application such as a fifth application (an application on the security module), and the security module further includes a sixth application, and the security module needs the master chip to start the sixth application. In this case, the master chip may also start the sixth application by obtaining application information of the security module and allocate a data channel to the sixth application. In this scenario, the master chip may obtain one application to be started. However, the final state of the master chip is that two applications (i.e., the fifth application and the sixth application) are started simultaneously, so the function of starting different applications on the security module simultaneously is still implemented.

[0118] The terminal application launching method provided in the present application will be described below with reference to a specific embodiment. FIG. 5 is a specific schematic flowchart of a terminal application launching method according to an embodiment of the present application. The method may be applied to a terminal. The terminal includes a master chip and a security module. The terminal application launching method includes at least the following steps:

[0119] 501: The master chip sends an initialization request message to the security module when the security module is powered on.

[0120] A specific method for powering on the security module is as follows: the master chip supplies power to the security module. After receiving the power supply voltage of the master chip, the security module starts to operate and performs a security module initialization process, such as starting the operating system on the security module and reading the capability information of the security module and the information about the installed applications. The security module may be powered on by an initial power method, a reset and restart method, a hot start method, a cold start method, etc.

[0121] Specifically, when the master chip sends an initialization request message to the security module, it may further allocate resources such as data lines, address lines, etc. to the security module.

[0122] In this embodiment of the present application, the master chip may further be connected to the security module via at least one basic data channel, allowing the master chip and the security module to complete an initialization process via the basic data channel. The initialization process may include an initialization request message sent by the master chip to the security module and an initialization response message, which will be described later. Alternatively, the master chip and the security module may complete other operations via the basic data channel, for example, whether a new data channel needs to be assigned to a specific application (e.g., at least two applications to be launched). It will be understood that the function of the basic data channel is not uniquely limited in this embodiment of the present application.

[0123] 502: The security module receives the initialization request message and sends an initialization response message to the master chip.

[0124] The initialization response message includes application information and may further include first indication information. The application information includes information regarding at least two applications to be launched. The first indication information includes capability information used to indicate that the security module supports the simultaneous launch of at least two Apps, and may further include information regarding a maximum number of data channels supported. The first indication information may further carry information regarding a quantity of Apps installed in the security module.

[0125] Specifically, the initialization response message may be a power-on response message, an answer to reset (ATR) command, an initialization command message supported by the system bus protocol, etc. It will be understood that the specific format of the initialization response message is not limited in this embodiment of the present application.

[0126] 503: The master chip receives the initialization response message and sends second indication information to the security module.

[0127] The second indication information may be used to indicate capability information of the master chip and / or the device in which the master chip is located. For example, the second indication information includes capability information used to indicate that the master chip supports simultaneous launch of at least two applications. Specifically, the capability information used to indicate that the master chip supports simultaneous launch of at least two applications may indicate that the master chip and / or the device in which the master chip is located may support simultaneous enablement of multiple data channels for different applications on the security module. Apps are parallel Apps of the same level on the security module.

[0128] Further, the second display information may include information regarding the maximum number of data channels supported by the master chip. The information regarding the maximum number of data channels supported by the master chip may indicate the maximum number of data channels supported by the master chip and / or the device in which the master chip is located. The implementation of the data channel is used as an example. The master chip supports a data bus width of 16 bits to 128 bits. An address line is used between the master chip and the security module to assign an address to each App. When an App is searched, the address assigned to the App is found through the address line, and the data line is used to read the data of the App. The data line can send data of the CPU to a specified App on the security module, or send data of a specified App on the security module to the CPU. The 16-bit data line sequentially transmits 16 bits of data, and the 16 address lines may select a CPU address range of 64K. Thus, different Apps are distinguished by addresses to implement simultaneous launch and addressing of Apps and communication between Apps and the master chip.

[0129] 504: The master chip determines, based on the application information included in the initialization response message, whether the at least two applications to be launched included in the application information include a valid App; if a valid App is not included, step 505 is performed; if a valid App is included, step 506 is performed.

[0130] When the master chip determines whether the at least two applications to be launched include a valid App, the master chip may, for example, determine whether the at least two applications to be launched include a profile of an operator that can be launched. By determining whether a profile exists, the master chip may conveniently determine whether it needs to camp on a network now.

[0131] 505: An emergency call is made without a card.

[0132] 506: The master chip may allocate corresponding data channels to the at least two applications based on the obtained at least two applications to be activated.

[0133] This embodiment of the present application provides three possible scenarios in which corresponding data channels are allocated to at least two applications. The details may be as follows:

[0134] Scenario 1: The master chip may allocate a data channel corresponding to each of at least two applications that are launched. For example, if there are 10 apps installed in the security module, but only four apps are launched at the same time, the data channels are allocated to only the four launched apps.

[0135] In this scenario, after determining the applications to be launched, the master chip may allocate one data channel to each of the launched applications. In this scenario, the requirements of the applications may be maximally met, and a data channel is allocated to each of the launched applications.

[0136] Scenario 2: The master chip may dynamically allocate data channels based on the quantity of at least two applications to be launched and the maximum quantity of data channels currently supported. For example, if the current processing power of the master chip is limited or the security module can currently only allocate two data channels, the master chip may allocate data channels corresponding to the two launched Apps and transfer related parameters and instructions of the two Apps through the corresponding data channels.

[0137] In this scenario, the master chip needs to dynamically allocate data channels to launched applications based on their current processing capabilities. Compared with scenario 1, in scenario 2, data channels are dynamically allocated to effectively match the processing capabilities of the master chip or security module and improve the processing efficiency of the master chip or security module.

[0138] Scenario 3: The master chip may dynamically allocate data channels based on the priorities of at least two applications to be launched and the maximum number of data channels currently supported. For example, when the number of apps launched by the master chip is greater than the number of data channels supported, the master chip preferentially allocates data channels to apps whose priorities are higher than a reference priority based on the priorities.

[0139] In this scenario, the master chip can dynamically allocate data channels to the launched applications based on the priority and processing power of the applications. Compared with scenario 2, in scenario 3, data channels may be dynamically allocated based on the priority of the applications to avoid data channels being allocated to the launched applications because the service data of the launched applications is small or the user's application frequency is low. This improves the utilization of data channels.

[0140] Specifically, when allocating corresponding data channels to at least two applications, the master chip may further determine whether to allocate the application to the new data channel. If YES, the allocation operation is performed. If NO, the application with low priority or temporarily unused (e.g., the original application on the data channel) is first released based on priority, and then the data channel is allocated to the application to be launched.

[0141] For example, when it is determined that a new data channel is to be allocated to a new App 1, the corresponding App 1 is launched on data channel 1. When it is determined that a new App 2 is to be launched on an existing data channel 2, for example, data channel 3, which has a lower priority or does not temporarily use App 3, is released and the corresponding App 2 is launched on data channel 2. For example, a '04' UICC reset in refresh command may be used to launch the selected App 2 on data channel 2.

[0142] 507: A logical channel is expanded into a data channel corresponding to at least two applications.

[0143] For example, a select command or a manage channel command is used to select a master file (MF), dedicated file (DF), or elementary file (EF) of an app with a profile and open a logical channel. For example, an application protocol data unit (APDU) command may be sent on the logical channel. When the launched app contains a profile, the profile launch and network connection procedures can be completed.

[0144] This embodiment of the present application provides a method for simultaneously launching multiple Apps on a security module. According to this embodiment of the present application, the technical effects of information communication, parameter transfer, and command transfer between multiple Apps on one security module and a master chip can be implemented. According to this embodiment of the present application, the case where two SIM cards need to be deployed in a terminal when dual SIM dual standby is implemented can be resolved. According to this embodiment of the present application, the profiles of multiple SIM cards installed in a security module and another App can be simultaneously launched, and there is no need to deploy multiple security modules. Additionally, the information communication, parameter transfer, and command transfer between the profiles and Apps simultaneously launched on the security module and the master chip are implemented through a bus, so as to reduce costs, make the independent data channel between the Apps more secure, increase the transmission speed, and improve the transmission efficiency. This improves the user's security experience.

[0145] The following describes in detail the apparatus provided in the embodiments of the present application.

[0146] 6 is a schematic structural diagram of a security module according to an embodiment of the present application. The security module may be applied to the aforementioned terminal application launch method. As shown in FIG. 6, the security module includes: The security module includes a sending unit 601 configured to send application information of the security module to the master chip, the application information including information regarding at least two applications to be launched, the application information being used to indicate allocation of data channels to the at least two applications, and a communication unit 602 configured to perform data communication with the master chip separately via the data channels corresponding to the at least two applications after the master chip allocates corresponding data channels for each of the at least two applications.

[0147] Specifically, the communication interface of the security module shown in FIG. 3a may be configured to perform a specific implementation of the sending unit 601, and may further be configured to perform a specific implementation of step 502. The sending unit 601 may send an initialization response message to the master chip via the basic data channel described in FIG.

[0148] Optionally, the processor of the security module shown in Fig. 3a or the CPU on the security module shown in Fig. 3b may be configured to perform the implementation corresponding to the processor of the communication unit 603. Optionally, the communication interface shown in Fig. 3a or the peripheral device shown in Fig. 3b may also be configured to perform the implementation of the communication unit 603. The specific hardware element corresponding to the communication unit 603 may be determined based on the specific action performed by the communication unit 603. This is not uniquely limited in this embodiment of the present application.

[0149] In a possible embodiment, the security module shown in FIG. 6 further includes a receiving unit 603 configured to receive an initialization request message from the master chip when the security module is powered on.

[0150] The sending unit 601 is specifically configured to send an initialization response message including application information to the master chip. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports the simultaneous launch of at least two applications and information regarding the maximum number of data channels supported by the security module.

[0151] It will be understood that the receiving unit 603 may receive an initialization request message from the master chip via the basic data channel described in FIG.

[0152] In a possible embodiment, the receiving unit 603 is further configured to receive second indication information from the master chip, the second indication information including at least one of capability information used to indicate that the master chip supports the simultaneous launch of at least two applications and information about the maximum number of data channels supported by the master chip.

[0153] 7 is a schematic structural diagram of a master chip according to an embodiment of the present application. The master chip may be applied to the terminal application launching method. As shown in FIG. 7, the master chip includes at least an acquiring unit 701 configured to acquire application information of a security module, the application information including information about at least two applications to be launched, an launching unit 702 configured to launch the at least two applications, an allocating unit 703 configured to allocate a corresponding data channel for each of the at least two applications, and a communicating unit 704 configured to perform data communication with the at least two applications separately via the data channels corresponding to the at least two applications.

[0154] It should be understood that the processor of the master chip shown in Fig. 3a and the master CPU of the master chip shown in Fig. 3b may be configured to perform a specific implementation of the initiation unit 702 and the allocation unit 703. The processor of the master chip shown in Fig. 3a may also be configured to perform a specific implementation of the acquisition unit 701, and the communication interface of the master chip shown in Fig. 3a may be configured to perform a specific implementation of the acquisition unit 701. The specific implementation is not limited in this embodiment of the present application.

[0155] In a possible embodiment, as shown in FIG. 8 , the acquisition unit 701 includes a transmitting subunit 7011 configured to send an initialization request message to the security module when the security module is powered on, and a receiving subunit 7012 configured to receive an initialization response message including application information from the security module, the initialization response message further including first indication information, the first indication information including at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding the maximum number of data channels supported by the security module.

[0156] In a possible implementation, the sending subunit 7011 is further configured to send second indication information to the security module, the second indication information including at least one of capability information used to indicate that the master chip supports the simultaneous launch of at least two applications and information regarding the maximum number of data channels supported by the master chip.

[0157] In a possible implementation, the allocation unit 703 is specifically configured to allocate a corresponding data channel to each of the at least two applications when the first quantity is less than or equal to a second quantity, the first quantity being the quantity of the at least two applications, and the second quantity being the maximum quantity of data channels supported by the security module.

[0158] In a possible implementation, the allocation unit 703 is specifically configured to determine a first application from the at least two applications and allocate a corresponding data channel to each of the first applications when the first quantity is greater than the second quantity, the priority of the first application is higher than a reference priority, and the quantity of the first application is less than or equal to the second quantity.

[0159] In a possible implementation, the at least two applications include a second application. The allocation unit 703 is specifically configured to release the third application and allocate the data channel to the second application when the data channel is allocated to the third application. The priority of the second application is higher than the priority of the third application. The third application does not belong to the at least two applications.

[0160] In a possible implementation, when the second application is a network access application (NAA), the data channel is a data channel between the security module and the modem. Alternatively, when the second application is a non-NAA, the data channel is a data channel between the security module and the central processing unit.

[0161] In a possible implementation, the first display information further includes at least one of information regarding a quantity of applications installed on the security module and information regarding a maximum quantity of applications that may be installed on the security module.

[0162] In a possible implementation, as shown in FIG. 9, the master chip further includes an expansion unit 705 configured to expand at least two logical channels based on the data channel.

[0163] It will be appreciated that the processor of the master chip shown in FIG. 3 a and the master CPU of the master chip shown in FIG.

[0164] For specific implementations of the security module shown in Figure 6 and the master chip shown in Figures 7 to 9, please refer to the specific implementations in Figures 4 and 5. The details will not be described again here.

[0165] Figure 10 is a diagram of an architecture scenario of a terminal application launching system according to an embodiment of the present application. As shown in Figure 10, the following uses an example in which two Apps of profile type are installed in a security module. Specifically, two issuer security domain profiles (ISD-P), ISD-P 1 and ISD-P 2, are created in the security module, and two operator profiles are separately installed in the corresponding ISD-P 1 and ISD-P 2. Each ISD-P is distinguished by a different application identifier (AID).

[0166] For example, when the mailbox is used for implementation, the bus from 0 bits to 32 bits may correspond to 0 to 32 data channels and be configured to transmit hardware signals. Different data storage areas in the mailbox are assigned to different hardware signals. One mailbox corresponds to one data channel. Multiple mailboxes correspond to multiple corresponding data channels and are assigned to different applications on the security module for use. For example, App 1 occupies the first data channel and App 2 occupies the second data channel. Different mailbox addresses are assigned to distinguish the different data channels. Furthermore, the master chip and the security module may distinguish the uplink and downlink data, logical addresses, physical addresses, etc. based on the different mailbox addresses. Additionally, a memory management unit (MMU) mapping address may be used to distinguish the data channels. Optionally, the master chip and the security module may further be instructed to obtain the data in the mailbox via an interrupt mechanism, such as an external interrupt (hardware interrupt) or an internal interrupt (software interrupt). Different interrupt sources correspond to subprograms of the interrupt service and are stored in different assigned storage areas. An interrupt source identifier is assigned. Additionally, different apps are assigned different interrupt priorities to establish a data channel.

[0167] Optionally, I2C may be used to connect the master chip and the security module, and used as a data channel assigned to different Apps on the security module to transfer information and commands of the Apps.

[0168] Optionally, a serial peripheral interface (SPI) is used to connect the master chip and the security module, and is used as a data channel assigned to different Apps on the security module to transmit information and commands of different Apps. It should be understood that the above-mentioned manner is not uniquely limited in this embodiment of the present application.

[0169] Based on the description of the master chip and the security module, an embodiment of the present application provides a terminal, which includes a master chip and a security module, and the master chip is connected to the security module via at least two data channels.

[0170] The master chip is configured to obtain application information of the security module, launch at least two applications, assign a corresponding data channel to each of the at least two applications, and separately perform data communication with the at least two applications via the data channels corresponding to the at least two applications, where the application information includes information regarding the two or more applications to be launched.

[0171] Optionally, the master chip is further configured to send an initialization request message to the security module when the security module is powered on. The security module is configured to send an initialization response message to the master chip, the initialization response message including the application information. The initialization response message further includes first indication information. The first indication information includes at least one of capability information used to indicate that the security module supports the simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module. The master chip is further configured to receive the initialization response message.

[0172] Optionally, the master chip is further configured to send second indication information to the security module, the second indication information including at least one of capability information used to indicate that the master chip supports the simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

[0173] Optionally, the master chip is specifically configured to allocate a corresponding data channel to each of the at least two applications when the first quantity is equal to or less than a second quantity, the first quantity being the quantity of the at least two applications, and the second quantity being the maximum quantity of data channels supported by the security module.

[0174] Optionally, the master chip is specifically configured to determine a first application from the at least two applications and allocate a corresponding data channel to each of the first applications when the first quantity is greater than the second quantity, the priority of the first application is higher than a reference priority, and the quantity of the first application is equal to or less than the second quantity.

[0175] Optionally, the at least two applications include a second application. The master chip is specifically configured to release the third application and allocate the data channel to the second application when the data channel is allocated to the third application. The priority of the second application is higher than the priority of the third application. The third application does not belong to the at least two applications.

[0176] Optionally, when the second application is a network access application (NAA), the data channel is a data channel between the security module and the modem. Alternatively, when the second application is a non-NAA, the data channel is a data channel between the security module and the central processing unit.

[0177] Optionally, the first display information further includes a quantity of applications installed on the security module and / or a maximum quantity of applications that may be installed on the security module.

[0178] Optionally, the master chip is further configured to extend at least two logical channels based on the data channel.

[0179] It will be understood that for a specific embodiment of this embodiment of the present application, reference is made to the specific implementations described in Figures 4 and 5. The details will not be described again here.

[0180] Those skilled in the art may recognize that the units and algorithm steps in the examples described with reference to the embodiments disclosed herein may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether a function is performed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered as going beyond the scope of the present application.

[0181] For convenience and simplicity of description, the detailed work processes of the aforementioned systems, devices and units are referred to the corresponding processes in the aforementioned method embodiments, and it will be obviously understood by those skilled in the art that the details will not be described again in this specification.

[0182] In some embodiments provided in the present application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the described device embodiment is merely an example. For example, the unit division is merely a logical function division, and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another system, and some features may be ignored or not performed. Additionally, the shown or described mutual couplings, direct couplings, or communication connections may be implemented by using some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.

[0183] The units described as separate parts may or may not be physically separated, and the parts shown as units may or may not be physical units, and may be located in one location or distributed across multiple network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

[0184] Additionally, the functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist physically alone, and two or more units may be integrated into one unit.

[0185] All or part of the above-mentioned embodiments may be implemented using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the procedures or functions according to the embodiments of the present invention are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted using a computer-readable storage medium. The computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or digital subscriber line (DSL)) or wireless (e.g., infrared, radio, or microwave) manner. The computer-readable storage medium may be any available medium accessible by a computer, or a data storage device integrating one or more available media, such as a server or data center. The usable medium may be a magnetic medium (e.g., a soft disk, a hard disk, or a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0186] Those skilled in the art will understand that all or part of the steps of the method in the embodiment may be implemented by a computer program instructing relevant hardware. The program may be stored in a computer-readable storage medium. When the program runs, the steps of the method in the embodiment may be performed. The aforementioned storage medium includes any medium capable of storing program code, such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Claims

1. A terminal application launching method, wherein a terminal includes a master chip and a security module, and the security module is connected to the master chip via a first data channel and a second data channel, the terminal application launching method includes: acquiring, by the master chip, application information of the security module, the application information including information about a first application to be launched and a second application to be launched; launching, by the master chip, the first application and the second application, and allocating the first data channel to the first application and the second data channel to the second application, the first data channel and the second data channel having different identifiers; communicating data with the first application and the second application via the first data channel and the second data channel, respectively, by the master chip; and expanding, by the master chip, at least two logical channels based on the first data channel and the second data channel.

2. obtaining application information of the security module by the master chip; sending, by the master chip, an initialization request message to the security module when the security module is powered on; Sending an initialization response message including the application information by the security module to the master chip, the initialization response message further including first indication information, the first indication information including at least one of capability information used to indicate that the security module supports the simultaneous launch of at least two applications, and information regarding a maximum number of data channels supported by the security module; receiving, by the master chip, the initialization response message.

3. After receiving, by the master chip, the initialization response message, the method further comprises:

3. The method of claim 2, further comprising: transmitting, by the master chip, second indication information to the security module, the second indication information including at least one of capability information used to indicate that the master chip supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

4. Allocating a corresponding data channel to each of the at least two applications includes:

4. The method of claim 2 or 3, further comprising allocating the corresponding data channel to each of the at least two applications when a first quantity is less than or equal to a second quantity, the first quantity being the quantity of the at least two applications and the second quantity being a maximum quantity of data channels supported by the security module.

5. Allocating a corresponding data channel to each of the at least two applications includes:

5. The method of claim 4, further comprising: if the first quantity is greater than the second quantity, determining a first application from the at least two applications and allocating a corresponding data channel to each of the first applications, wherein a priority of the first application is higher than a base priority and a quantity of the first application is less than or equal to the second quantity.

6. The at least two applications include a second application, and allocating a corresponding data channel to each of the at least two applications includes:

6. The method according to claim 1, further comprising: when the data channel is allocated to a third application, releasing the third application and allocating the data channel to the second application, wherein a priority of the second application is higher than a priority of the third application, and the third application does not belong to any one of the at least two applications.

7. When the second application is a network access application NAA, the data channel is a data channel between the security module and a modem; or The method of claim 6, wherein when the second application is a non-NAA, the data channel is a data channel between the security module and a central processing unit.

8. A method according to any one of claims 2 to 5, wherein the first display information further includes at least one of information regarding the number of applications installed on the security module and information regarding the maximum number of applications that can be installed on the security module.

9. A terminal application startup method, the terminal application startup method being applied to a security module, the security module being connected to a master chip via a first data channel and a second data channel, the terminal application startup method comprising: Sending application information of the security module to the master chip, the application information including information about a first application to be launched and a second application to be launched, the application information being used to indicate allocation of the first data channel to the first application and allocation of the second data channel to the second application, and having identifiers different from those of the first data channel and the second data channel; after the master chip assigns the first data channel to the first application and the second data channel to the second application, the security module performs data communication with the master chip via the first data channel and the second data channel separately; The method, wherein the master chip extends at least two logical channels based on the first data channel and the second data channel.

10. Before transmitting the application information of the security module to the master chip, the method further comprises: receiving, by the security module, an initialization request message from the master chip when the security module is powered on; Sending application information of the security module to the master chip includes:

10. The method of claim 9, further comprising: sending, by the security module, an initialization response message including the application information to the master chip, the initialization response message further including first indication information, the first indication information including at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module.

11. After the security module sends an initialization response message to the master chip, before the security module performs data communication with the master chip separately through data channels corresponding to the at least two applications, the method further includes: The method of claim 9 or 10, comprising receiving, by the security module, second indication information from the master chip, the second indication information including at least one of capability information used to indicate that the master chip supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

12. A terminal application launching method, the terminal application launching method being applied to a master chip, the master chip being connected to a security module via a first data channel and a second data channel, the terminal application launching method comprising: acquiring, by the master chip, application information of the security module, the application information including information about a first application to be launched and a second application to be launched; launching, by the master chip, the first application and a second application, and allocating the first data channel to the first application and the second data channel to the second application, the first data channel and the second data channel having different identifiers; communicating data with the first application and the second application via the first data channel and the second data channel, respectively, by the master chip; and expanding, by the master chip, at least two logical channels based on the first data channel and the second data channel.

13. obtaining application information of the security module by the master chip; sending, by the master chip, an initialization request message to the security module when the security module is powered on; The method of claim 12, further comprising receiving, by the master chip, an initialization response message from the security module including the application information, the initialization response message further including first indication information, the first indication information including at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module.

14. The method according to any one of claims 1 to 13, wherein each of the first data channel and the second data channel is a physical channel.

15. A terminal application launching system, comprising: a master chip and a security module, the security module being connected to the master chip via a first data channel and a second data channel; The master chip is configured to obtain application information of the security module, the application information including information about a first application to be launched and a second application to be launched; the master chip is further configured to launch the first application and the second application, assign the first data channel to the first application, and assign the second data channel to the second application, the first data channel and the second data channel having different identifiers; the master chip is further configured to perform data communication with the first application and the second application via the first data channel and the second data channel, respectively; The master chip is further configured to extend at least two logical channels based on the first data channel and the second data channel.

16. The master chip is further configured to send an initialization request message to the security module when the security module is powered on; The security module is configured to send an initialization response message including the application information to the master chip, and the initialization response message further includes first indication information, the first indication information including at least one of capability information used to indicate that the security module supports the simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module; The system of claim 15 , wherein the master chip is further configured to receive the initialization response message.

17. 17. The system of claim 16, wherein the master chip is further configured to send second indication information to the security module, the second indication information including at least one of capability information used to indicate that the master chip supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

18. The system of claim 16 or 17, wherein the master chip is configured to allocate a data channel corresponding to each of the at least two applications when a first quantity is less than or equal to a second quantity, the first quantity being the quantity of the at least two applications and the second quantity being the maximum quantity of data channels supported by the security module.

19. 20. The system of claim 18, wherein the master chip is configured to determine a first application from the at least two applications and allocate a corresponding data channel to each of the first applications when the first quantity is greater than the second quantity, a priority of the first application is higher than a base priority, and a quantity of the first application is less than or equal to the second quantity.

20. the at least two applications include a second application; The system of any one of claims 15 to 19, wherein the master chip is configured to release the third application and allocate the data channel to the second application when the data channel is allocated to a third application, the priority of the second application being higher than the priority of the third application, and the third application not belonging to any one of the at least two applications.

21. When the second application is a network access application NAA, the data channel is a data channel between the security module and a modem; or 21. The system of claim 20, wherein when the second application is a non-NAA, the data channel is a data channel between the security module and a central processing unit.

22. The system of any one of claims 16 to 19, wherein the first display information further includes a quantity of applications installed on the security module and / or a maximum quantity of applications that can be installed on the security module.

23. The system of any one of claims 15 to 22, wherein each of the first data channel and the second data channel is a physical channel.

24. A security module is connected to the master chip via a first data channel and a second data channel, the security module comprising: a sending unit configured to send application information of the security module to the master chip, the application information including information about a first application to be launched and a second application to be launched, the application information being used to indicate that the first application is assigned the first data channel and the second application is assigned the second data channel, and the first data channel and the second data channel have different identifiers; a communication unit configured to perform data communication with the master chip via the first data channel and the second data channel separately after the master chip assigns the first data channel to the first application and the second data channel to the second application; A security module, wherein the master chip extends at least two logical channels based on the first data channel and the second data channel.

25. The security module further comprises: a receiving unit configured to receive an initialization request message from the master chip when the security module is powered on; The security module of claim 24, further comprising: the transmitting unit configured to transmit an initialization response message to the master chip including the application information, the initialization response message further including first indication information, the first indication information including at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the security module.

26. The security module of claim 25, wherein the receiving unit is further configured to receive second indication information from the master chip, the second indication information including at least one of capability information used to indicate that the master chip supports simultaneous launch of at least two applications and information regarding a maximum number of data channels supported by the master chip.

27. The security module of any one of claims 24 to 26, wherein said at least two data channels are physical channels.

28. a master chip connected to the security module via a first data channel and a second data channel, the master chip comprising: An acquisition unit configured to acquire application information of the security module, the application information including information about a first application to be launched and a second application to be launched; a launch unit configured to launch the first application and the second application; an allocation unit configured to allocate the first data channel to the first application and the second data channel to the second application, the first data channel and the second data channel having different identifiers; a communication unit configured to perform data communication with the first application and the second application via the first data channel and the second data channel, respectively; The master chip is further configured to extend at least two logical channels based on the first data channel and the second data channel.

29. The acquisition unit includes: a sending subunit configured to send an initialization request message to the security module when the security module is powered on; 29. The master chip of claim 28, further comprising: a receiving subunit configured to receive an initialization response message including the application information from the security module, the initialization response message further including first indication information, the first indication information including at least one of capability information used to indicate that the security module supports simultaneous launch of at least two applications, and information regarding a maximum number of data channels supported by the security module.

30. 30. The master chip of claim 28 or 29, wherein each of the first data channel and the second data channel is a physical channel.

31. A terminal application launching device including a processor, a memory, and a communication interface, the processor, the memory, and the communication interface being interconnected via a cable, the memory storing program instructions, and when the program instructions are executed by the processor, the terminal application launching device being capable of performing corresponding functions in the methods described in any one of claims 1 to 14.

32. A computer-readable storage medium having stored thereon program instructions which, when executed by a processor of a terminal application launching device, enable the processor to perform the method of any one of claims 1 to 14.

Citation Information

Patent Citations

  • System and method for managing logical channels for accessing several virtual profiles in a secure element

    US20160314309A1

  • Profile downloading and activation method, integrated circuit card and system

    WO2016127435A1