DRIVER PROGRAM AND TRANSACTION MEDIATION METHOD

By introducing drivers in mobile PCs, converting PC/SC commands into wireless communication module control commands, and managing multiple logical channels, the communication interruption problem during interoperability between SIM cards and PC applications is solved, and stable data transmission and reset operations are achieved.

JP7625811B2Active Publication Date: 2025-02-04DAI NIPPON PRINTING CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020157143
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2025-02-04
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

When using SIM cards of mobile PCs for wireless communication, it is difficult for the prior art to achieve interoperability with PC applications without affecting wireless communication, especially the reset request of the SIM card may interrupt communication.

Method used

By introducing a driver in the mobile PC, the driver can convert PC/SC commands into control commands of the wireless communication module and manage multiple logical channels to ensure data transmission and reset operations between the SIM card and the PC application without affecting wireless communication.

Benefits of technology

It is realized that data transmission and reset operations between the SIM card and PC application are successfully completed without affecting wireless communication, ensuring the stability and continuity of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007625811000001
    Figure 0007625811000001
  • Figure 0007625811000002
    Figure 0007625811000002
  • Figure 0007625811000003
    Figure 0007625811000003
Patent Text Reader

Abstract

To provide a driver program and a transaction mediation method that allow an electronic information storage medium such as a SIM card to be used from a PC application without disturbing wireless communication by wireless communication modems.SOLUTION: A modem driver transmits, in response to a connection request to a SIM card C from a PC application, an AT command including a channel open command for opening logical channels other than a logical channel Ch0 assigned to a wireless communication application among a plurality of logical channels of the SIM card C to a wireless communication modem M, receives, from the wireless communication modem M, a response APDU that indicates the logical channels opened for SIM applications in the SIM card C and is returned from the SIM card C due to the transmission of the channel open command included in the AT command from the wireless communication modem M to the SIM card C, and stores the logical channels indicated by the response APDU received.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the technical field of computers and the like equipped with a wireless communication modem into which an electronic information storage medium such as an IC card having a function of managing a plurality of logical channels is inserted. [Background technology]

[0002] Conventionally, PC / SC (Personal Computer / Smart Card) has been provided as a standard API (Application Programming Interface) for using IC (Integrated Circuit) cards that comply with the international standard ISO / IEC7816 from PC applications installed in a PC (Personal Computer). An application that performs transactions (exchanges of commands and responses) with the PC application is installed on the IC card. Also, in order to use an IC card from a PC application via PC / SC, a PC / SC-compatible IC card reader / writer and its driver are usually required. In other words, a driver program that is installed on the PC is required.

[0003] Meanwhile, in recent years, mobile PCs equipped with wireless communication modems such as LTE (Long Term Evolution) modems have been attracting attention. A SIM card (Subscriber Identity Module) is inserted into such wireless communication modems, in which subscriber information (such as IMSI (International Mobile Subscriber Identity)) and an application that performs processing for wireless communication are installed. This allows the mobile PC to perform wireless communication such as LTE communication with external devices using a mobile communication network provided by a mobile phone carrier, even without a Wi-Fi (registered trademark) router for connecting to the Internet.

[0004] The SIM card used for such wireless communication is also a type of IC card to which ISO / IEC7816 is applied. Therefore, by installing a PC application on a mobile PC and installing an application that performs transactions with the PC application on a SIM card, the mobile PC can use the SIM card from the PC application via the PC / SC even without a PC / SC compatible IC card reader / writer. In this case, it is expected that a SIM card that has a function of managing multiple logical channels (logical channels) as disclosed in Patent Document 1, for example, and that can install multiple applications (so-called multi-applications) will be used. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2011-216068 A Summary of the Invention [Problem to be solved by the invention]

[0006] Incidentally, in order to access the SIM card on the wireless communication modem from the PC / SC, it is possible to implement a modem driver in the mobile PC that converts commands from the PC / SC into modem control commands (e.g., AT commands). In this case, the problem arises as to which logical channel managed by the SIM card the command from the PC / SC should be delivered to without interfering with the wireless communication, which is the main function of the SIM card. In addition, there is a problem that if the SIM card is reset by a normal card reset request sent from the PC / SC, there is a high possibility that wireless communication will be interrupted.

[0007] Therefore, the present invention has been made in consideration of the above problems, and aims to provide a driver program and a transaction mediation method that enable a PC application to use an electronic information storage medium such as a SIM card without interfering with wireless communication via a wireless communication modem. [Means for solving the problem]

[0008] In order to solve the above problem, the invention described in claim 1 provides an electronic information storage medium having a function of managing a plurality of logical channels, the electronic information storage medium having at least a first application that performs a first process for wireless communication with an external device and a second application that performs a second process different from the first process, and a computer having a third application that performs a transaction with the second application installed therein, the computer having a driver program for mediating the transaction, the driver program comprising: first transmitting means for converting a channel open command passed from the third application, which is a channel open command for opening a logical channel other than a logical channel assigned to the first application among the plurality of logical channels, into a modem control command that can be interpreted by the wireless communication modem, and transmitting the modem control command including the channel open command to the wireless communication modem; first receiving means for receiving from the wireless communication modem a response returned by the electronic information storage medium, which indicates the logical channel opened for the second application in the electronic information storage medium by the channel open command included in the modem control command being transmitted from the wireless communication modem to the electronic information storage medium; and storage means for storing the logical channel indicated by the response received by the first receiving means. and causing the computer to function as third transmitting means for transmitting to the wireless communication modem a modem control command that includes a channel close command for closing the logical channel opened for the second application in response to a reset request for the electronic information storage medium from the third application, the modem control command being interpretable by the wireless communication modem, and third receiving means for receiving from the wireless communication modem a response returned from the electronic information storage medium when the channel close command included in the modem control command is transmitted from the wireless communication modem to the electronic information storage medium, and in response to the response being received by the third receiving means, the first transmitting means transmits the modem control command including the channel open command to the wireless communication modem. It is characterized by:

[0009] The invention described in claim 2 is characterized in that, in the driver program described in claim 1, the computer is further made to function as a setting means for setting the stored logical channel to a logical channel designation portion in a header of a specified command in response to a request to send the specified command from the third application after the logical channel has been opened for the second application, a second transmitting means for transmitting to the wireless communication modem a modem control command that includes the specified command for which the logical channel has been set by the setting means and that can be interpreted by the wireless communication modem, a second receiving means for receiving from the wireless communication modem a response returned from the electronic information storage medium when the specified command included in the modem control command is transmitted from the wireless communication modem to the electronic information storage medium, and a response means for passing the response received by the second receiving means to the third application.

[0010] The invention as set forth in claim 3 is the driver program as set forth in claim 1 or 2, wherein the first transmitting means transmits a channel open command in response to a connection request from the third application to the electronic information storage medium. The above A modem control command is transmitted to the wireless communication modem.

[0012] Claim 4 The invention described in claims 1 to 3 In the driver program described in any one of the above, the modem control command is an AT command.

[0013] Claim 5The invention described in the above is a transaction mediation method for mediating transactions between a wireless communication modem to which the electronic information storage medium having a function of managing a plurality of logical channels is connected, the electronic information storage medium having at least a first application that performs a first process for wireless communication with an external device and a second application that performs a second process different from the first process, installed therein, and a computer having a third application that performs transactions with the second application, the method including: receiving a channel open command for opening a logical channel among the plurality of logical channels other than the logical channel assigned to the first application, the channel open command being passed from the third application; a step of converting the logical channel into a modem control command that can be interpreted by the wireless communication modem, and transmitting the modem control command including the channel open command from the computer to the wireless communication modem; a step of transmitting the channel open command included in the modem control command from the wireless communication modem to the electronic information storage medium; a step of transmitting a response indicating the logical channel opened for the second application in the electronic information storage medium in response to the channel open command from the electronic information storage medium to the wireless communication modem; a step of transmitting the response indicating the logical channel from the wireless communication modem to the computer; and a step of storing the logical channel indicated by the response received by the computer. a step of transmitting, in response to a reset request for the electronic information storage medium from the third application, a modem control command interpretable by the wireless communication modem, the modem control command including a channel close command for closing the logical channel opened for the second application, from the computer to the wireless communication modem; a receiving step of the computer receiving from the wireless communication modem a response returned from the electronic information storage medium to the wireless communication modem as a result of the channel close command included in the modem control command being transmitted from the wireless communication modem to the electronic information storage medium; and a step of transmitting, in response to the response being received in the receiving step, the modem control command including the channel open command from the computer to the wireless communication modem. The present invention is characterized by comprising: Effect of the Invention

[0014] According to the present invention, an electronic information storage medium can be used from a PC application without interfering with wireless communication by a wireless communication modem. [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 is a diagram illustrating an example of a schematic configuration of a mobile PC according to an embodiment of the present invention. [Diagram 2]FIG. 13 is a conceptual diagram illustrating an example of an access path between a PC application and a SIM application. [Diagram 3] 1 is a sequence diagram showing an example of transactions in a PC application, a PC / SC, a modem driver, a wireless communication modem M, and a SIM card C when a connection request to a SIM card C occurs. [Figure 4] 11 is a sequence diagram showing an example of transactions in a PC application, a PC / SC, a modem driver, a wireless communication modem M, and a SIM card C when a reset request for a SIM card C occurs. [Diagram 5] 1 is a sequence diagram showing an example of transactions in a PC application, a PC / SC, a modem driver, a wireless communication modem M, and a SIM card C when a command transmission request to a SIM application occurs. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. The embodiment described below is an embodiment in which the present invention is applied to a mobile PC.

[0017] [1. Overview of mobile PC configuration] First, a schematic configuration of a mobile PC according to this embodiment will be described with reference to FIG. 1 and the like. FIG. 1 is a diagram showing a schematic configuration example of a mobile PC according to this embodiment. As shown in FIG. 1, the mobile PC includes an arithmetic processing unit 1 including a CPU (Central Processing Unit), a RAM (Random Access Memory), and a ROM (Read Only Memory), and a storage unit 2 including a HDD (Hard Disk Drive) or an SSD (Solid State Drive). An OS (Operating System), a PC application (an example of a third application) that runs on the OS, a PC / SC (API) that is called by the PC application, and a modem driver (an example of a driver program of the present invention) are installed in the mobile PC, and these are stored in the storage unit 2. The OS, the PC application, the PC / SC, and the modem driver are each executed by the arithmetic processing unit 1 (an example of a computer).

[0018] Furthermore, the mobile PC is equipped with a wireless communication modem M such as a UMTS (Universal Mobile Telecommunications System) modem (3G modem) or an LTE modem, and is electrically connected to the arithmetic processing unit 1 via an interface. The wireless communication modem M is composed of an antenna for establishing a connection with a wireless base station in a mobile communication network (for example, a 3G or 4G network), a baseband processor, and the like, and has a SIM port for inserting a SIM card (an example of an electronic information storage medium such as an IC card) C. When the SIM card C is inserted into the SIM port, the baseband processor and the SIM card C are electrically connected to each other via an interface. The SIM card may be an embedded eSIM that is mounted on an embedded board as an eUICC (Embedded Universal Integrated Circuit Card) so that it cannot be easily removed or replaced from the terminal. In this case, a SIM port for inserting the eSIM is not required. The wireless communication modem M is also capable of executing a process according to an AT command received from the arithmetic processing unit 1 and returning the process result. Here, the AT command is an example of a modem control command that can be interpreted by the wireless communication modem M, and is defined in, for example, "3GPP TS 27.007 version 15.2.0 Release 15."

[0019] The SIM card C includes a CPU, a RAM, an NVM (Nonvolatile Memory), and an interface with the wireless communication modem M, and has a function of managing multiple logical channels. Such an interface is, for example, an interface of the international standard ISO7816, and transmits and receives a command APDU and a response APDU to and from the wireless communication modem M according to an APDU (Application Protocol Data Unit) protocol. The command APDU includes at least a header having a 1-byte CLA (command class), a 1-byte INS (command code), a 1-byte P1 (command parameter 1), and a 1-byte P2 (command parameter 2). In addition, a length and data may be added after the header. In addition, an OS and applications that run on the OS are installed in the SIM card C, and these are stored in the NVM. Here, the OS has a basic function that handles the basic operation of the SIM card C, and a logical channel management function that handles the management of multiple logical channels. A logical channel is a logical channel for accessing each application that runs on the OS.

[0020] The applications installed on the SIM card C include a wireless communication application (an example of a first application) that performs processing (an example of a first processing) for wireless communication with an external device (wireless communication performed via a mobile communication network), and one or more SIM applications (an example of a second application) that perform processing such as authentication and settlement (an example of a second processing different from the first processing) in response to a command from a PC application. The wireless communication application manages subscriber information (IMSI, etc.) related to wireless communication. The wireless communication application is assigned logical channel Ch0 (number 0) in advance. On the other hand, the SIM application is assigned a logical channel other than the logical channel Ch0 assigned to the wireless communication application among the multiple logical channels. Each application is given a unique application identifier (AID) and is managed by the OS.

[0021] In the above configuration, the modem driver installed in the mobile PC mediates transactions performed between the PC application and the SIM application. Fig. 2 is a conceptual diagram showing an example of an access path between the PC application and the SIM application. For example, a command APDU passed from the PC application to the modem driver via the PC / SC is converted into an AT command by the modem driver (that is, an AT command including the command APDU is generated), and the AT command is transmitted to the wireless communication modem M. Then, the command APDU included in the AT command transmitted to the wireless communication modem M is transferred to the SIM application in the SIM card C. To achieve this, the modem driver makes the arithmetic processing unit 1 as a computer function as the first to third transmitting means, the first to third receiving means, the storage means, the setting means, the response means, and the like in the present invention.

[0022] Specifically, in response to a connection request to SIM card C from a PC application (via PC / SC), the modem driver transmits to the wireless communication modem M an AT command including a channel open command (e.g., a MANAGE CHANNEL command (OPEN)) for opening a logical channel other than the logical channel Ch0 assigned to the wireless communication application among the multiple logical channels in the SIM card C, receives from the wireless communication modem M a response APDU returned by the SIM card C indicating the logical channel opened for the SIM application in the SIM card C by the channel open command included in the AT command being transmitted from the wireless communication modem M to the SIM card C, and causes the calculation processing unit 1 to function so as to store (save) the logical channel indicated by the received response APDU.

[0023] Thus, after a logical channel (for example, Ch1 (No. 1)) is opened for the SIM application, the modem driver, in response to a request to send a specific command APDU from the PC application (via PC / SC), sets the logical channel (the logical channel saved above) in the logical channel designation section in the CLA of the header of the command APDU, transmits an AT command including the command APDU in which the logical channel is set to the wireless communication modem M, receives a response APDU from the wireless communication modem M returned from the SIM card C as a result of the command APDU included in the AT command being transmitted from the wireless communication modem M to the SIM card C, and causes the computer to function in such a way as to pass the received response APDU to the PC application. Examples of the specific command include a SELECT command and a Verify command.

[0024] Furthermore, the modem driver causes the arithmetic processing unit 1 to function so as to transmit, in response to a reset request (Deactivation) of the SIM card C from the PC application (via PC / SC), an AT command including a channel close command (e.g., a MANAGE CHANNEL command (CLOSE)) for closing the logical channel opened for the SIM application to the wireless communication modem M, receive from the wireless communication modem M a response APDU returned from the SIM card C as a result of the channel close command included in the AT command being transmitted from the wireless communication modem M to the SIM card C, and transmit, in response to the reception of the response APDU, an AT command including a channel open command to the wireless communication modem M. The flow after transmitting the AT command to the wireless communication modem M is the same as when receiving the above-mentioned connection request.

[0025] [2. Operation on a mobile PC] (2.1. Operation when a connection request to SIM card C occurs) Next, an operation of the mobile PC when a connection request to the SIM card C occurs will be described with reference to Fig. 3. Fig. 3 is a sequence diagram showing an example of transactions in the PC application, PC / SC, modem driver, wireless communication modem M, and SIM card C when a connection request to the SIM card C occurs.

[0026] As shown in FIG. 3, the PC / SC called by a PC application (PC app) transmits a connection request to the SIM card C to the modem driver (step S1).

[0027] Next, when the modem driver receives a connection request from the PC / SC, it converts a prepared channel open command (e.g., MANAGE CHANNEL command (OPEN)) into an AT command (step S2). For example, if the channel open command is "0070000100", the AT command is expressed as "AT+CSIM=10,0070000100". In other words, the AT command includes the channel open command.

[0028] The modem driver may hold "AT+CSIM=10,0070000100" generated in advance. Here, INS "70" in the command APDU "0070000100" indicates that it is a MANAGE CHANNEL command, P1 "00" indicates that a channel (channel specified by P2) other than channel ch0 (number 0) is to be opened, and P2 "01" indicates that channel ch1 (number 1) is to be opened. Also, "+CSIM" in the AT command "AT+CSIM=10,0070000100" indicates that the AT command "0070000100" is to be transferred to SIM card C.

[0029] Next, the modem driver transmits the AT command "AT+CSIM=10,0070000100" converted in step S2 to the wireless communication modem M (step S3).

[0030] Next, when the wireless communication modem M receives the AT command "AT+CSIM=10,0070000100" from the modem driver, it extracts the command APDU "0070000100" from the AT command (step S4), and transmits the extracted command APDU "0070000100" to the SIM card C (step S5).

[0031] Next, when the OS in the SIM card C receives the command APDU “0070000100” from the wireless communication modem M, it performs a channel opening process in accordance with the command APDU to open (establish) a logical channel Ch1 other than the logical channel Ch0 assigned to the wireless communication application and assign it to the SIM application (step S6).

[0032] Next, the OS in the SIM card C returns a response APDU indicating the result of the channel allocation process to the wireless communication modem M (step S7). If the opening of the logical channel Ch1 for the SIM application is successful in the channel opening process, the result of the channel opening process includes the logical channel Ch1 opened for the SIM application and SW indicating normal termination "9000". On the other hand, if the opening of the logical channel Ch1 fails, the result of the channel opening process includes SW indicating an error.

[0033] Next, when the wireless communication modem M receives the response APDU from the SIM card C, it generates a result code including the response APDU (step S8) and transmits the generated result code to the modem driver (step S9).

[0034] Next, when the modem driver receives a result code from the wireless communication modem M, it extracts the response APDU from the result code and determines whether the channel has been successfully opened based on the SW contained in the extracted response APDU (step S10).

[0035] If the modem driver determines that the channel opening was successful (step S10: YES), it stores (saves) the logical channel Ch1 opened for the SIM application (i.e., the logical channel Ch1 assigned to the SIM application) (step S11) and transmits a response APDU indicating successful connection to the SIM card C to the PC / SC (step S12). This enables the PC application to recognize that the connection to the SIM card C has been successful.

[0036] On the other hand, if the modem driver determines that the channel opening is not successful (step S10: NO), it transmits a response APDU indicating a failure in connection to the SIM card C to the PC / SC (step S13). As a result, the PC application recognizes the failure in connection to the SIM card C.

[0037] (2.2. Operation when a reset request occurs for SIM card C) Next, the operation of the mobile PC when a reset request for the SIM card C occurs after the logical channel Ch1 is opened for the SIM application will be described with reference to Fig. 4. Fig. 4 is a sequence diagram showing an example of transactions in the PC application, PC / SC, modem driver, wireless communication modem M, and SIM card C when a reset request for the SIM card C occurs.

[0038] As shown in FIG. 4, the PC / SC called by a PC application (PC app) transmits a reset request for the SIM card C to the modem driver (step S21).

[0039] Next, when the modem driver receives a reset request from the PC / SC, it converts a prepared channel close command (e.g., MANAGE CHANNEL command (CLOSE)) into an AT command (step S22). For example, if the channel close command is "0070800100", the AT command is expressed as "AT+CSIM="10,0070800100".

[0040] The modem driver may hold the previously generated “AT+CSIM=“10,0070800100”. Here, INS “70” in the command APDU “0070800100” indicates that it is a MANAGE CHANNEL command, P1 “80” indicates that channels other than channel ch0 (number 0) (channels specified by P2) are to be closed, and P2 “01” indicates that channel ch1 (number 1) is to be closed.

[0041] Next, the modem driver transmits the AT command "AT+CSIM=10, 0070800100" converted in step S22 to the wireless communication modem M (step S23).

[0042] Next, when the wireless communication modem M receives the AT command “AT+CSIM=10,0070800100” from the modem driver, it extracts the command APDU “0070800100” from the AT command (step S24) and transmits the extracted command APDU “0070800100” to the SIM card C (step S25).

[0043] Next, when the OS in the SIM card C receives the command APDU “0070800100” from the wireless communication modem M, it performs a channel closing process to close the logical channel Ch1 assigned to the SIM application in response to the command APDU (step S26).

[0044] Next, the OS in the SIM card C returns a response APDU indicating the result of the channel closing process to the wireless communication modem M (step S27). It is assumed here that the logical channel Ch1 has been normally closed.

[0045] Next, when the wireless communication modem M receives the response APDU from the SIM card C, it generates a result code including the response APDU (step S28) and transmits the generated result code to the modem driver (step S29).

[0046] Next, when the modem driver receives a result code from the wireless communication modem M, it converts a prepared channel open command (for example, a MANAGE CHANNEL command (OPEN)) into an AT command (step S30). Note that the process of step S30 is the same as the process of step S2 described above.

[0047] Next, the modem driver transmits the AT command converted in step S30 to the wireless communication modem M (step S31). The process of step S31 is the same as the process of step S3 described above.

[0048] Next, when the wireless communication modem M receives the AT command from the modem driver, it extracts a command APDU from the AT command (step S32) and transmits the extracted command APDU to the SIM card C (step S33). Note that the processes of steps S32 and S33 are similar to the processes of steps S4 and S5 described above.

[0049] Next, when the OS in the SIM card C receives the command APDU from the wireless communication modem M, it performs a channel opening process to open a logical channel Ch1 other than the logical channel Ch0 assigned to the wireless communication application and assign it to the SIM application in response to the command APDU (step S34). Note that the process in step S34 is the same as the process in step S6 described above.

[0050] Next, the OS in the SIM card C returns a response APDU indicating the result of the channel allocation process to the wireless communication modem M (step S35). Note that the process of step S35 is the same as the process of step S7 described above.

[0051] Next, when the wireless communication modem M receives the response APDU from the SIM card C, it generates a result code including the response APDU (step S36) and transmits the generated result code to the modem driver (step S37). Note that the processes of steps S36 and S37 are similar to the processes of steps S8 and S9 described above.

[0052] Next, when the modem driver receives a result code from the wireless communication modem M, it extracts the response APDU from the result code and determines whether the channel reset was successful or not based on the SW contained in the extracted response APDU (step S38).

[0053] If the modem driver determines that the channel reset was successful (step S38: YES), it stores (saves) the logical channel Ch1 newly assigned to the SIM application (step S39) and transmits a response APDU indicating the successful reset of the SIM card C to the PC / SC (step S40). This allows the PC application to recognize that the SIM card C has been successfully reset.

[0054] On the other hand, if the modem driver determines that the channel reset is not successful (step S38: NO), it transmits a response APDU indicating a failure to reset the SIM card C to the PC / SC (step S41). This causes the PC application to recognize the failure to reset the SIM card C.

[0055] (2.3. Operation when a command transmission request is issued to the SIM application) Next, the operation of the mobile PC when a command transmission request to the SIM application occurs after the logical channel Ch1 is opened for the SIM application will be described with reference to Fig. 5. Fig. 5 is a sequence diagram showing an example of transactions in the PC application, PC / SC, modem driver, wireless communication modem M, and SIM card C when a command transmission request to the SIM application occurs.

[0056] 5, the PC / SC called by the PC application (PC application) transmits a request to transmit a specific command APDU to the modem driver (step S51). The specific command APDU is assumed to be a SELECT command "00A40400" (just an example).

[0057] Next, when the modem driver receives a request to send the command APDU "00A40400" from the PC / SC, it sets the CLA in the command APDU "00A40400" to the logical channel Ch1 saved as described above (changes CLA "00" (default setting) to "01") (step S52).

[0058] Next, the modem driver converts the command APDU "01A40400" for which the logical channel Ch1 is set in step S52 into an AT command "AT+CSIM=08,01A40400" (that is, generates an AT command including the command APDU) (step S53).

[0059] Next, the modem driver transmits the AT command "AT+CSIM=08, 01A40400" converted in step S53 to the wireless communication modem M (step S54).

[0060] Next, when the wireless communication modem M receives the AT command “AT+CSIM=08,01A40400” from the modem driver, it extracts the command APDU “01A40400” from the AT command (step S55) and transmits the extracted command APDU “01A40400” to the SIM card C (step S56).

[0061] Next, when the OS in the SIM card C receives the command APDU "01A40400" from the wireless communication modem M, it transmits the command APDU "01A40400" to the SIM application (SIM app) assigned to the logical channel Ch1 in accordance with the CLA of the command APDU (step S57).

[0062] Next, when the SIM application receives the command APDU "01A40400", it executes a process (e.g., file selection) according to the command APDU "01A40400" (step S58), and transmits a response APDU (e.g., "9000") indicating the result of the process to the wireless communication modem M (step S59). Note that this response APDU may be transmitted to the wireless communication modem M via the OS.

[0063] Next, when the wireless communication modem M receives the response APDU from the SIM card C, it generates a result code including the response APDU (step S60) and transmits the generated result code to the modem driver (step S61).

[0064] Next, when the modem driver receives the result code from the wireless communication modem M, it extracts the response APDU from the result code (in other words, converts the result code into a response APDU) and transmits the extracted response APDU to the PC / SC (step S62). This allows the PC application to recognize the processing result of the command.

[0065] As described above, according to the above embodiment, the modem driver is configured to transmit, in response to a connection request to the SIM card C from a PC application, an AT command including a channel open command for opening a logical channel other than the logical channel Ch0 assigned to the wireless communication application among the multiple logical channels in the SIM card C to the wireless communication modem M, receive a response APDU from the wireless communication modem M indicating the logical channel opened for the SIM application on the SIM card C by transmitting the channel open command included in the AT command from the wireless communication modem M to the SIM card C, and store the logical channel indicated by the received response APDU. Therefore, it becomes clear to which logical channel managed by the SIM card C the command APDU should be delivered, and the SIM card C can be used from the PC application without interfering with wireless communication by the wireless communication modem M.

[0066] The modem driver is configured to transmit, in response to a reset request for the SIM card C from the PC application, an AT command including a channel close command for closing the logical channel opened for the SIM application to the wireless communication modem M, receive from the wireless communication modem M a response APDU returned from the SIM card C as a result of the close open command included in the AT command being transmitted from the wireless communication modem M to the SIM card C, and transmit an AT command including a channel open command to the wireless communication modem M in response to the reception of the response APDU, so that the SIM card C can be used from the PC application without being reset by a normal card reset request. In other words, since the opening / closing of the logical channel for the SIM application is controlled, the SIM card C can be used from the PC application without interfering with wireless communication by the wireless communication modem M. [Explanation of symbols]

[0067] 1. Processing unit 2 Storage section M Wireless communication modem C SIM card

Claims

1. A driver program for mediating transactions in a computer having a wireless communication modem to which the electronic information storage medium having a function of managing a plurality of logical channels is connected, the electronic information storage medium having at least a first application that performs a first process for wireless communication with an external device and a second application that performs a second process different from the first process, the computer having a third application installed therein, the driver program comprising: a first transmitting means for converting a channel open command for opening a logical channel other than the logical channel assigned to the first application among the plurality of logical channels, the channel open command being passed from the third application, into a modem control command that can be interpreted by the wireless communication modem, and transmitting the modem control command including the channel open command to the wireless communication modem; a first receiving means for receiving from the wireless communication modem a response indicating the logical channel opened for the second application in the electronic information storage medium by transmitting the channel open command included in the modem control command from the wireless communication modem to the electronic information storage medium, the response being returned by the electronic information storage medium; a storage means for storing the logical channel indicated by the response received by the first receiving means; a third transmitting means for transmitting to the wireless communication modem, in response to a reset request for the electronic information storage medium from the third application, a modem control command that includes a channel close command for closing the logical channel opened for the second application and that can be interpreted by the wireless communication modem; a third receiving means for receiving, from the wireless communication modem, a response returned from the electronic information storage medium in response to the channel close command included in the modem control command being transmitted from the wireless communication modem to the electronic information storage medium; a first transmitting means for transmitting the modem control command including the channel open command to the wireless communication modem in response to the response being received by the third receiving means;

2. a setting means for setting the stored logical channel in a logical channel designation portion in a header of a predetermined command in response to a transmission request of the predetermined command from the third application after the logical channel has been opened for the second application; a second transmitting means for transmitting to said wireless communication modem a modem control command which includes said predetermined command for which a logical channel has been set by said setting means and which can be interpreted by said wireless communication modem; a second receiving means for receiving from the wireless communication modem a response returned from the electronic information storage medium in response to the predetermined command included in the modem control command being transmitted from the wireless communication modem to the electronic information storage medium; 2. The driver program according to claim 1, further causing the computer to function as a response unit that passes the response received by the second receiving unit to the third application.

3. 3. The driver program according to claim 1, wherein the first transmitting means transmits the modem control command including the channel open command to the wireless communication modem in response to a connection request from the third application to the electronic information storage medium.

4. 4. The driver program according to claim 1, wherein the modem control command is an AT command.

5. A transaction mediation method for mediating a transaction between a wireless communication modem to which the electronic information storage medium having a function of managing a plurality of logical channels is connected, the electronic information storage medium having at least a first application that performs a first process for wireless communication with an external device and a second application that performs a second process different from the first process, and a computer having a third application that performs a transaction with the second application, the method comprising: a step of converting a channel open command for opening a logical channel other than the logical channel assigned to the first application among the plurality of logical channels, the channel open command being passed from the third application, into a modem control command that can be interpreted by the wireless communication modem, and transmitting the modem control command including the channel open command from the computer to the wireless communication modem; transmitting the channel open command included in the modem control command from the wireless communication modem to the electronic information storage medium; transmitting a response from the electronic storage medium to the wireless communication modem indicating the logical channel opened for the second application on the electronic storage medium in response to the channel open command; transmitting a response indicating the logical channel from the wireless communication modem to the computer; storing the logical channel indicated by the response received by the computer; sending, in response to a reset request for the electronic information storage medium from the third application, a modem control command that can be interpreted by the wireless communication modem, the modem control command including a channel close command for closing the logical channel opened for the second application, from the computer to the wireless communication modem; a receiving step in which the computer receives from the wireless communication modem a response returned from the electronic information storage medium to the wireless communication modem when the channel close command included in the modem control command is transmitted from the wireless communication modem to the electronic information storage medium; a step of transmitting the modem control command including the channel open command from the computer to the wireless communication modem in response to the response being received in the receiving step; 16. A method of mediating a transaction comprising:

Citation Information

Patent Citations

  • Portable electronic apparatus, IC card, and method of controlling the portable electronic apparatus

    JP2011216068A

  • HANDLING OF APPLICATION INDEMNITY INFORMATION OF ELECTRONIC SUBSCRIBER IDENTIFICATION MODULE (eSIM)

    JP2016029791A

  • Supporting multiple enabled profiles on single embedded subscriber identity module (eSIM) chip

    US10708761B1

  • Authentication commands

    US20160323740A1