Detailed Description
The following describes a smart card application method and apparatus in detail according to embodiments of the present invention with reference to the accompanying drawings.
The embodiment of the application method of the smart card is applied to a terminal side, and the application scenes are as follows: the network side intelligent card server stores a plurality of remote intelligent cards, and the terminal is provided with intelligent card connecting equipment for remotely connecting the intelligent card server, wherein the intelligent card connecting equipment comprises a wired or wireless modem and a network card, and can also be other existing network connecting devices.
An embodiment of a method for obtaining the usage right of a remote smart card according to the present invention is shown in fig. 1, and includes:
and S101, sending a command needing to be executed by the smart card to the remote smart card for execution.
The terminal sends an instruction executed by an intelligent card originally carried by the terminal to a remote intelligent card for execution, and the remote intelligent card is separated from the terminal and stored in different places. Specifically, an operator or a network service provider may set a smart card server on a network side to centrally store remote smart cards. Meanwhile, the terminal side is provided with an intelligent card connecting device which is remotely connected with an intelligent card server. The connection between the terminal and the smart card server is realized through a wired or wireless network, or can be realized in a microwave or Bluetooth mode, and correspondingly, the smart card connecting device at the terminal side can be a wired or wireless modem, a network card, or a microwave or Bluetooth communication device.
And S102, receiving the execution result of the remote intelligent card to the command.
The intelligent card server receives a command which is sent by the terminal and needs to be executed by the intelligent card, forwards the command to the remote intelligent card for execution, and obtains an execution result, and the intelligent card server sends the execution result of the command obtained by the remote intelligent card to the terminal.
And then, the terminal can provide voice, internet surfing, short message and other services for the user.
It should be noted that, in the application scenario set in this embodiment, the remote smart card is stored in the smart card server, and actually, the remote smart card may also be stored in other carriers, such as a notebook computer, a palm computer, etc., which can communicate with the terminal and have a certain information processing capability.
The terminal of the embodiment can store the smart card in the smart card database of the system side through a mode of remotely requesting the smart card for use without physically binding with the smart card, so that an operator can actually master the smart card, and the operator can conveniently manage the smart card such as transformation, upgrading, data updating or service adding.
In another embodiment of the smart card application method of the present invention, the application scenarios are as follows: the network side intelligent card server is stored with a plurality of remote intelligent cards, the terminal is provided with an intelligent card connecting device which is remotely connected with the intelligent card server, the intelligent card connecting device can be a wireless network card, and a common intelligent card is arranged in the wireless network card.
The present embodiment is shown in fig. 2, and includes:
s201, connection is established with the smart card server.
The terminal can access the network through a communication device provided with a common intelligent card, dial through the intelligent card server and establish connection with the intelligent card server. The common smart card can be a common SIM card or a USIM card, and because the data volume of the information interaction between the terminal and the smart card server is very small, more expenses cannot be generated.
S202, sending a smart card request message to a smart card server.
The terminal requests the use right of the remote intelligent card from the intelligent card server through the intelligent card request message.
And S203, authenticating with the smart card server.
After receiving the smart card request message of the terminal, the smart card server authenticates the terminal, and judges whether the terminal is a legal user or not and whether the terminal is authorized to obtain the use right of the remote smart card or not.
And S204, after passing the authentication, receiving an intelligent card identifier sent by an intelligent card server, wherein the intelligent card identifier corresponds to an intelligent card which can be used by the terminal.
After passing the authentication, the terminal receives the remote smart card identifier, which is sent by the smart card server and allocated to the terminal for use, where the identifier is used to uniquely identify the remote smart card in the smart card server, for example, the smart card server may allocate a smart card ID to each remote smart card in the server in advance, and when allocating a remote smart card to the terminal, only the selected smart card ID needs to be sent to the terminal.
S205, the command which needs to be executed by the intelligent card and the intelligent card identification are sent to the intelligent card server, so that the intelligent card server distributes the command which needs to be executed by the intelligent card to the remote intelligent card corresponding to the intelligent card identification to be executed.
The terminal sends a command to be executed by the remote smart card, such as an APDU command packet, together with the smart card identifier to the smart card server, the smart card server selects the remote smart card corresponding to the smart card identifier, and the remote smart card executes the command and generates an execution result.
S206, receiving the execution result of the remote intelligent card to the command.
The terminal receives the execution result of the remote smart card to the command through the smart card connection device, and the execution result can be an APDU response packet aiming at the APDU command packet.
And S207, providing service for the user.
The present embodiment mainly addresses the following problems: the existing wireless network card is physically connected with the SIM card through an antenna, so that the SIM card is owned by a user after being sold, and an operator cannot manage the SIM card.
In addition, the present embodiment also addresses the following issues: some users often travel around the country or even the world, and each place needs to access the internet for work, study or entertainment. However, the current network card, whether using SIM card or USIM card, has region limitations, and the charging standards are different in different regions. For example, if a user uses a SIM card handled in beijing to access the internet or communicate with the beijing, the cost of the SIM card is usually relatively low; if Beijing is introduced, the system is generally used in other provinces and cities, and more expensive roaming fees are collected; if the SIM card is used in other countries, roaming charges may be more expensive or even impossible, and the subscriber must replace the SIM card of the local operator for the terminal, which is inconvenient. Of course, there are SIM cards with one or more numbers, but it cannot be guaranteed that the user only moves in the local area of these numbers, and once leaving these areas, the user still faces the problem of high roaming charges.
The terminal of the embodiment can store the smart card in the smart card server of the system side through a mode of remotely requesting the smart card for use without physically binding with the smart card, so that an operator can actually master the smart card, and the operator can conveniently manage the smart card such as transformation, upgrading, data updating or service adding.
In addition, when the terminal requests the smart card server for the right of use of the smart card, the smart card server can allocate the smart card in the area where the terminal is located to the terminal for use, so that the cost can be saved.
The invention also discloses an application method of the smart card, which is applied to a smart card server and has the following application scenes: the network side intelligent card server stores a plurality of remote intelligent cards, and the terminal is provided with intelligent card connecting equipment for remotely connecting the intelligent card server, wherein the intelligent card connecting equipment comprises a wired or wireless modem and a network card, and can also be other existing network connecting devices.
The present embodiment is shown in fig. 3, and includes:
s301, receiving a command which is sent by the terminal and needs to be executed by the smart card, and distributing the command to the remote smart card for execution.
In this embodiment, the terminal may be a data card or a computer. The smart card connection device at the terminal side for remotely connecting to the smart card server may be a smart card connection device with a built-in general smart card, such as a wireless modem or a wireless network card, where the built-in general smart card may be an SIM card or a USIM card, and the smart card may only be used for connecting to the smart card server, that is, the smart card may only have a normal network registration function. The intelligent card connecting device at the terminal side can also be a cable modem or a cable network card and is connected with the intelligent card server through the Internet. Of course, embodiments of the invention are not limited in this respect. The smart card connecting device may also be a communication device known to those skilled in the art, such as microwave or bluetooth.
The remote intelligent card can be a communication intelligent card commonly used at present, such as an SIM card, a USIM card and the like, and is positioned on the side of the intelligent card server. Therefore, when the terminal needs to access the external network, the terminal needs to request the smart card server for the use right of the remote smart card.
S302, sending the execution result of the remote intelligent card to the command to a terminal.
And after the remote intelligent card executes the command which is sent by the terminal and needs to be executed by the intelligent card, the execution result of the command is obtained. And the intelligent card server sends the execution result to the terminal so that the terminal can provide service for the user according to the execution result.
According to the embodiment, the remote smart card is stored by the smart card server, so that an operator can actually master the smart card, and the operator can conveniently manage the smart card, such as transformation, upgrading, data updating or service adding.
The invention also discloses an embodiment of the application method of the intelligent card, which is applied to an intelligent card server and has the following application scenes: the terminal is provided with an intelligent card connecting device which is remotely connected with the intelligent card server, the intelligent card connecting device is a wireless network card, and a common intelligent card is arranged in the wireless network card.
The present embodiment is shown in fig. 4, and includes:
s401, receiving a request of a terminal for using the right of the remote intelligent card, and inquiring whether an idle remote intelligent card exists.
After the terminal is connected with the intelligent card server, the terminal sends a use right request for the remote intelligent card to the intelligent card server, and the intelligent card server authenticates the terminal, mainly identifies whether the terminal is a legal user or not and whether the terminal is qualified to request the use right of the remote intelligent card from the intelligent card server or not. If the terminal passes the authentication, the smart card server inquires whether there is a remote smart card that can be allocated to the terminal for use, i.e. an idle remote smart card that is not allocated to another terminal for use at the moment.
S402, if no idle remote intelligent card exists, sending an intelligent card request failure message to the terminal.
S403, if an idle remote intelligent card exists, selecting an idle remote intelligent card, and sending the intelligent card identifier of the remote intelligent card to the terminal.
The smart card server sends the identification of the remote smart card to the terminal to indicate that the terminal has obtained the right of use of the remote smart card, and the related information such as communication cost generated by the remote smart card is recorded under the name of the terminal.
Preferably, the smart card server can preferentially select an idle remote smart card in the area where the terminal is located, which is beneficial to saving terminal charges.
S404, receiving the smart card identification and the command needing to be executed by the smart card sent by the terminal, and distributing the command needing to be executed by the smart card to the remote smart card corresponding to the smart card identification for execution.
S405, sending the execution result of the remote intelligent card to the command to a terminal.
The smart card server of the embodiment stores the smart card in the smart card database, so that an operator can actually master the smart card, and the operator can conveniently manage the smart card, such as transformation, upgrading, data updating or service adding.
In addition, the intelligent card server can distribute the intelligent card in the area where the terminal is located to the terminal for use, and therefore cost of the user is saved.
In addition, for the smart cards which are not frequently used, operators can manage the smart cards in a unified mode through the smart card server, and the use rate of the smart cards is improved.
In another embodiment of the method for applying the smart card, the terminal comprises a service device for providing service for a user and an SIM connection device for communicating with the smart card server, wherein the SIM connection device is a wireless network card, and a common SIM card is arranged in the wireless network card; the smart card server is an SIM server and comprises an SIM connection control module communicated with the terminal and an SIM database for storing remote SIM cards. As shown in fig. 5, the present embodiment includes:
s501, the SIM connecting equipment registers the network.
The SIM connecting device is provided with a common SIM card and has the function of registering the network. In a wireless environment, after the terminal is started, the SIM connecting device searches for a wireless network which can be connected with the area where the terminal is located at present, and registers in the network through the SIM card.
S502, the service equipment requests the SIM connecting equipment for a remote SIM card.
The service equipment does not have the SIM card, the SIM card needs to be requested from the SIM connecting equipment for normal work, and after the remote SIM card is successfully requested, the service equipment can provide services such as voice, video, data dialing and the like.
Wherein, the step 501 and the step 502 have no necessary sequence.
S503, the SIM connecting device establishes data dialing.
Before the SIM connecting equipment is connected with the SIM server, PDP connection is required to be established with a core network through a wireless network, and the core network allocates an IP address to the SIM connecting equipment, so that the SIM connecting equipment can send an SIM server connection request.
S504, the SIM connecting device requests the SIM connection control module to establish SIM server connection.
After the SIM connecting device establishes data dialing, the SIM connecting device has an own IP address and establishes a connection with an SIM server through a TCP/IP protocol, such as a SOCKET TCP or UDP connection.
S505, the SIM connection control module sends a connection acceptance message to the SIM connection equipment.
S506, the SIM connecting device requests the remote SIM card from the SIM connection control module.
After receiving the connection establishment acceptance message sent by the SIM connection control module, the SIM connection device requests the remote SIM card from the SIM server through a connection path (SOCKET connection or UDP connection).
S507, the SIM connection control module sends an authentication request to the SIM connection equipment.
S508, the SIM connecting device sends the authentication response and the IMSI number to the SIM connection control module.
The IMSI number is the IMSI number of a common SIM card in the SIM connecting equipment, and the SIM connection control module verifies whether the common SIM card is authorized to be connected with the SIM server according to the IMSI number of the common SIM card.
S509, the SIM connection control module judges the validity of the SIM connection equipment according to the authentication response and the IMSI.
The authentication response content sent by the SIM connecting equipment is mainly user identity information of the terminal, the SIM connection control module firstly finds the identity information of the user corresponding to the IMSI number on the network side, and then compares the identity information with the authentication response sent by the SIM connecting equipment to judge the legality of the SIM connecting equipment.
S510, if the authentication fails, the SIM connection control module returns an authentication failure message to the SIM connection equipment.
If the SIM connecting equipment receives the authentication failure message, the service equipment can not provide service for the user.
S511, if the authentication is successful, the SIM connection control module inquires an idle remote SIM card from the SIM database.
S512, the SIM database allocates an idle remote SIM ID to the SIM connection control module.
And the SIM database sends the ID number of the selected idle remote SIM card to the SIM connection control module. The SIM database preferentially selects an idle remote SIM card in the area where the terminal is located, and sends the ID number of the remote SIM card to the SIM connection control module.
S513, the SIM connection control module sends an SIM card request acceptance message to the SIM connection device.
And after receiving the remote SIM ID number, the SIM connection control module sends an SIM card request receiving message to the SIM connection equipment, wherein the SIM card request receiving message contains the SIM ID.
And S514, the SIM connecting device sends a SIM card request acceptance message to the service device.
And S515, the service equipment sends the APDU command packet and the SIM ID to the SIM connection equipment.
S516, the SIM connecting device sends the APDU command packet and the SIM ID of the service device to the SIM connection control module.
After the service equipment receives the SIM card request receiving message, all commands interacted with the SIM card and the SIM ID distributed by the SIM server of the service equipment are sent to the SIM server, and the remote SIM card corresponding to the SIM ID executes the commands.
And S517, the SIM connection control module sends the APDU command packet to a remote SIM card corresponding to the SIM ID in the SIM database for execution.
S518, the SIM database sends an APDU response packet after the remote SIM card executes the APDU command to the SIM connection control module.
S519, the SIM connection control module sends the APDU response packet to the SIM connection apparatus.
And S520, the SIM connecting equipment sends the APDU response packet to the service equipment.
The service device may then provide various services to the user.
The SIM server of the embodiment stores the remote SIM card in the SIM database, so that an operator can actually master the SIM card, and the operator can manage the card conveniently. The SIM server can distribute the SIM card of the area where the terminal is located to the terminal for use, thereby avoiding the generation of roaming fee and saving the cost of the user. For the SIM cards which are not frequently used, operators can uniformly manage the SIM cards through the SIM server, and the utilization rate of the SIM cards is improved.
One embodiment of the terminal of the present invention, as shown in fig. 6, includes:
the service device 61: the intelligent card control system is used for generating a command to be executed by the intelligent card, sending the command to the intelligent card connection equipment and receiving an execution result of the remote intelligent card to the command, which is returned by the intelligent card connection equipment;
smart card connecting apparatus 62: the intelligent card server is used for sending a command which is generated by the service equipment and needs to be executed by the intelligent card to the intelligent card server, and sending an execution result of the command, returned by the intelligent card server, of the remote intelligent card to the service equipment.
Further, the service device 61 is further configured to send a request for the right of use of the remote smart card to the smart card connection device; and after receiving the execution result of the command by the remote intelligent card, the business equipment is also used for providing business service for the user.
The smart card connecting device 62 is further configured to send a request for right to use of the remote smart card by the service device to the smart card server, and send a smart card identifier corresponding to the remote smart card allocated by the smart card server to the service device for use.
The specific working processes of the service device and the smart card connection device according to this embodiment may refer to the relevant contents disclosed in the embodiments related to fig. 1 to fig. 5, and are not described herein again.
The business equipment of the embodiment is not physically bound with the smart card any more, so that an operator can actually master the smart card, and the operator can manage the card conveniently. The service equipment requests the intelligent card from the intelligent card connecting equipment each time, the intelligent card can be distributed to the area where the terminal is located, roaming fee is avoided, and cost of a user is saved.
One embodiment of the smart card server of the present invention, as shown in FIG. 7, comprises:
smart card connection control module 71: the system comprises a database, a terminal and a remote intelligent card database, wherein the database is used for storing commands to be executed by the intelligent card;
smart card database 72: the intelligent card control module is used for storing the remote intelligent card, sending the command which is sent by the intelligent card control module and needs to be executed by the intelligent card to the remote intelligent card to be executed, and returning the execution result of the command by the remote intelligent card to the intelligent card control module.
Further, the smart card connection control module 71 is further configured to query a smart card database for a remote smart card allocated to the terminal according to a smart card request from the terminal, and send a smart card id from the smart card database to the terminal.
The smart card database 72 is further configured to select an idle remote smart card and send the smart card id of the remote smart card to the smart card connection control module.
The specific working process of the smart card connection control module and the smart card database according to this embodiment may refer to the related contents disclosed in the embodiments of fig. 1 to 5, and will not be described herein again.
The smart card server of the embodiment stores the smart card in the smart card database, so that an operator can actually master the smart card, and the operator can conveniently manage the smart card, such as transformation, upgrading, data updating or service adding. The intelligent card server can distribute the intelligent card in the area where the terminal is located to the terminal for use, and therefore cost of a user is saved. For the smart cards which are not frequently used, operators can uniformly manage the smart cards through a smart card server, and the utilization rate of the smart cards is improved.
One embodiment of the smart card application system of the present invention, as shown in fig. 8, comprises:
a terminal 81 and a smart card server 82,
wherein,
the terminal 81 includes:
the service device 811: the intelligent card control system is used for generating a command to be executed by the intelligent card, sending the command to the intelligent card connecting equipment and receiving an execution result of the remote intelligent card to the command, which is returned by the intelligent card connecting equipment.
Smart card connecting apparatus 812: the intelligent card server is used for sending a command which is generated by the service equipment and needs to be executed by the intelligent card to the intelligent card server, and sending an execution result of the command, returned by the intelligent card server, of the remote intelligent card to the service equipment.
The smart card server 82 includes:
smart card connection control module 821: the system is used for sending a command which is required to be executed by the intelligent card by the terminal to the intelligent card database and sending an execution result of the command, returned by the intelligent card database, of the remote intelligent card to the terminal.
Smart card database 822: the intelligent card control module is used for storing the remote intelligent card, sending the command which is sent by the intelligent card control module and needs to be executed by the intelligent card to the remote intelligent card to be executed, and returning the execution result of the command by the remote intelligent card to the intelligent card control module.
The specific working processes of the terminal and the smart card server according to this embodiment may refer to the relevant contents disclosed in the embodiments related to fig. 1 to fig. 7, and are not described herein again.
The business equipment of the embodiment is not physically bound with the smart card any more, so that an operator can actually master the smart card, and the operator can manage the card conveniently. The service equipment requests the intelligent card from the intelligent card connecting equipment each time, and the intelligent card server can distribute the intelligent card in the area of the terminal for the terminal to use, so that the generation of roaming fee is avoided, and the cost of a user is saved. For the smart cards which are not frequently used, operators can uniformly manage the smart cards through a smart card server, and the utilization rate of the smart cards is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.