Smart card management device and method

By introducing the parallel processing solution of the main controller, serial peripheral interface control module and card strip control module into the smart card management equipment, the problem of small number of smart card management equipment and low processing efficiency is solved, and the management of multiple smart cards is realized. Efficient management and improvement of processing efficiency.

CN110569933BActive Publication Date: 2024-10-22SHENZHEN UCLOUDLINK NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910824705.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-02
Publication Date
2024-10-22
Estimated Expiration
2039-09-02

AI Technical Summary

Technical Problem

Existing smart card management equipment has the problem of managing a small number of smart cards and low processing efficiency.

Method used

A smart card management device is designed, including a main controller, a serial peripheral interface control module and multiple card strip control modules. Parallel processing of multiple smart cards is realized through the serial peripheral interface bus and control bus. The main controller Read the execution results on the card strip control module through polling to improve processing efficiency.

Benefits of technology

It achieves efficient management of large batches of smart cards, improves processing efficiency, supports parallel processing of more smart cards, and reduces equipment deployment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110569933B_ABST
    Figure CN110569933B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of communication, and provides a smart card management device and method, the device includes a main controller, a serial peripheral interface control module connected to the main controller, and a plurality of card strip control modules connected to the serial peripheral interface control module, each card strip control module is connected to a plurality of smart cards; the main controller is used to obtain a smart card access request and send the access request to the serial peripheral interface control module, the smart card access request includes a smart card identifier and a card strip identifier; the serial peripheral interface control module is used to send corresponding access requests to the corresponding card strip control module in sequence according to the card strip identifier; the card strip control module is used to access the corresponding smart card according to the smart card identifier, obtain the execution result of the smart card and store it, so that the main controller can poll and read the execution result. The present application can process multiple smart cards in parallel, thereby realizing the management of a large number of smart cards and improving the processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and in particular, relates to a smart card management device and method. Background Art

[0002] Smart card management equipment is generally used to centrally manage smart cards for terminal use. The current smart card management equipment consists of two parts: a main control and a card strip. The number of card strips is small, the size is small, the number of cards supported is small, and the card processing efficiency is relatively low. Summary of the invention

[0003] The embodiments of the present application provide a smart card management device and method, which can solve the problem that the existing smart card management equipment manages a small number of smart cards and has low processing efficiency.

[0004] In a first aspect, an embodiment of the present application provides a smart card management device, the smart card management device comprising a main controller, a serial peripheral interface control module communicatively connected to the main controller, and a plurality of card strip control modules communicatively connected to the serial peripheral interface control module, each card strip control module being communicatively connected to a plurality of smart cards;

[0005] The main controller is used to obtain a smart card access request and send the access request to the serial peripheral interface control module, wherein the smart card access request includes a smart card identifier and a card strip identifier;

[0006] The serial peripheral interface control module is used to send corresponding access requests to corresponding card strip control modules in sequence according to the card strip identifier;

[0007] The card strip control module is used to access the corresponding smart card according to the smart card identifier, obtain the execution result of the smart card and store it, so that the main controller can poll and read the execution result.

[0008] In one embodiment, the serial peripheral interface control module includes a plurality of first switching switches and a data selector communicatively connected to the plurality of first switching switches, each card strip control module is communicatively connected to the plurality of first switching switches, and the data selector is used to control the first switching switch to access the corresponding card strip control module by means of a chip select signal according to the card strip identifier.

[0009] In one embodiment, the serial peripheral interface control module further includes a signal driver connected between each of the first switches and the main controller.

[0010] In one embodiment, the card strip control module includes a plurality of card strip controllers corresponding to the first switch one by one, and each of the card strip controllers is communicatively connected to a plurality of smart cards.

[0011] In one embodiment, the card bar control module further includes a second switch, and the card bar controller is used to control the second switch to access the corresponding smart card according to the smart card identifier.

[0012] In one embodiment, the serial peripheral interface control module is communicatively connected to the main controller via a serial peripheral interface bus and a control bus respectively.

[0013] In one embodiment, the smart card management device further includes a network processing unit communicatively connected to the main controller, and the main controller is configured to receive the smart card access request through the network processing unit.

[0014] In a second aspect, an embodiment of the present application provides a smart card management method, which is applied to a smart card management device, wherein the smart card management device includes a main controller, a serial peripheral interface control module communicatively connected to the main controller, and a plurality of card strip control modules communicatively connected to the serial peripheral interface control module, wherein each card strip control module is communicatively connected to a plurality of smart cards; the smart card management method includes:

[0015] The main controller obtains a smart card access request and sends the access request to the serial peripheral interface control module, wherein the smart card access request includes a smart card identifier and a card strip identifier;

[0016] The serial peripheral interface control module sends corresponding access requests to corresponding card strip control modules in sequence according to the card strip identifier;

[0017] The card strip control module accesses the corresponding smart card according to the card strip identifier;

[0018] The card strip control module obtains and stores the execution result of the smart card;

[0019] The main controller polls and reads the execution result.

[0020] In one embodiment, the smart card access request is a smart card read instruction or a smart card write instruction.

[0021] In one embodiment, the method further comprises:

[0022] The card strip control module clears the stored execution result when a preset condition is met.

[0023] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the smart card management device includes a main controller, a serial peripheral interface control module connected to the main controller for communication, and a plurality of card strip control modules connected to the serial peripheral interface control module for communication, each card strip control module is connected to communication with a plurality of smart cards, the main controller sends access requests to the corresponding card strip control modules in sequence through the serial peripheral interface control module, and then reads the execution results stored in the card strip control modules through polling, thereby performing parallel processing of multiple smart cards, realizing the management of large quantities of smart cards, and improving processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 is a framework diagram of a smart card management device provided in an embodiment of the present application;

[0026] Figure 2 is a schematic diagram of a smart card management device provided in an embodiment of the present application;

[0027] Figure 3 is a schematic diagram of a card strip control module provided in an embodiment of the present application;

[0028] Figure 4 It is a flowchart of the smart card management method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0030] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0031] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0032] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0033] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0034] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0035] like Figure 1-3 As shown, the smart card management device provided in the embodiment of the present application includes a main controller 1, a serial peripheral interface (SPI) control module 2 communicatively connected to the main controller 1, and a plurality of card strip control modules 3 communicatively connected to the serial peripheral interface control module 2, and each card strip control module 3 is communicatively connected to a plurality of smart cards 4. Among them, the smart card 4 is a subscriber identification card (SIM card, Subscriber Identification Module), and the card strip control module 3 includes a plurality of smart card interfaces 31, and the smart card 4 is communicatively connected to the smart card interface 31 in a one-to-one correspondence.

[0036] The main controller 1 is used to obtain a smart card access request and send the access request to the serial peripheral interface control module 2, the smart card access request includes a smart card identifier and a card strip identifier; the serial peripheral interface control module 2 is used to send corresponding access requests to the corresponding card strip control module 3 in sequence according to the card strip identifier; the card strip control module 3 is used to access the corresponding smart card 4 according to the smart card identifier, obtain the execution result of the smart card 4 and store it, so that the main controller 1 can poll and read the execution result.

[0037] Each card strip control module 3 corresponds to a card strip identifier, and each smart card 4 corresponds to a smart card identifier, and the smart card identifier is a location identifier of the smart card or a number of a SIM card. In a possible implementation, an external terminal device sends a smart card access request to the main controller 1, including two methods: the external terminal device directly accesses the main controller 1 and the external terminal device accesses the main controller 1 through a server. The smart card management device also includes a network processing unit 5 that is communicatively connected to the main controller 1, such as a WIFI module or a 4G module, etc. The main controller 1 is used to receive the smart card access request sent by the terminal device through the network processing unit 5. The terminal device can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc.

[0038] Specifically, the main controller 1 adopts the master-slave mode communication. After receiving multiple smart card access requests in parallel, the main controller 1 parses the smart card access requests to obtain an internal access request, which includes a smart card identifier, a card strip identifier and a requested operation content. The main controller 1 sends the internal access request to the serial peripheral interface control module 2; the serial peripheral interface control module 2 selects the corresponding card strip control module 3 in turn according to the card strip identifier corresponding to each access request, and sends the access request to the corresponding card strip control module 3; the card strip control module 3 sequentially accesses the corresponding smart card 4 according to the smart card identifier, operates the smart card according to the requested operation content, and stores the execution result corresponding to the smart card 4; after the main controller 1 sends all the access requests, it polls to read the execution result. For example, the main controller 1 sends a clock signal to the corresponding card strip control module 3 in turn according to the time sequence of sending the access request, so as to read the information stored on the card strip control module 3. Thereby, the parallel processing of multiple access requests is realized, and the access processing efficiency is improved. Among them, the access request can be a smart card read instruction or a smart card write instruction. For example, read the contact information on the smart card or add contact information on the smart card. After the smart card obtains the access request, it first performs identity authentication and stores the authentication result in the card strip control module 3 .

[0039] In the above embodiment, the smart card management device includes a main controller 1, a serial peripheral interface control module 2 communicatively connected to the main controller 1, and a plurality of card strip control modules 3 communicatively connected to the serial peripheral interface control module 2. Each card strip control module 3 is communicatively connected to a plurality of smart cards 4. The main controller 1 sends access requests to the corresponding card strip control modules 3 in sequence through the serial peripheral interface control module 2, and then reads the execution results stored in the card strip control modules 3 in a polling manner, thereby realizing parallel processing of multiple smart cards 4, thereby realizing the management of a large number of smart cards 4 and improving processing efficiency.

[0040] In a possible implementation, the serial peripheral interface control module 2 is connected to the main controller 1 through the serial peripheral interface bus and the control bus, and the control bus of the main controller 1 can be connected to multiple serial peripheral interface control modules 2 through the serial peripheral interface bus 6, so as to realize parallel processing of batch access requests. As an example but not a limitation, Figure 2As shown, the first control unit 10, the second control unit 20 and the third control unit 30 are connected to the serial peripheral interface bus 6 through a serial peripheral interface control module 2 respectively, so that multiple smart cards 4 can be controlled, and a single main controller 1 controls multiple smart cards 4, reducing the equipment deployment cost and improving the deployment efficiency. Among them, the second control unit 20 and the third control unit 30 are both the same as the first control unit 10. At the same time, since the signal transmission speed of the serial peripheral interface bus can reach up to 18Mb / s, the main control 1 can send access requests to all card strip control modules 3 and read the execution results within the time when the smart card 4 processes a single command, thereby improving the communication efficiency.

[0041] In a possible implementation, the serial peripheral interface control module 2 includes a plurality of first switching switches 21 and a data selector 22 that is communicatively connected to the plurality of first switching switches 21. The data selector 22 is communicatively connected to the main controller 1 through a control bus. Each card strip control module 3 is communicatively connected to the plurality of first switching switches 21. A plurality of first switching switches 21 access a card strip control module 3 in parallel, thereby improving communication efficiency. The data selector 22 is used to control the first switching switch 21 to access the corresponding card strip control module 3 by using a chip select signal according to the card strip identifier. For example, the main controller 1 sets the order in which the access request is sent. The data selector 22 controls the first switching switch 21 to communicate with the card strip control module 3 corresponding to the access request according to the card strip control module 3 corresponding to the current access request, and at the same time cuts off the communication connection between the first switching switch 21 and other card strip control modules 3.

[0042] like Figure 3 As shown, the card strip control module 3 includes a plurality of card strip controllers 32 corresponding to the first switching switches 21, and each card strip controller 32 is connected to a plurality of smart cards 4 in communication. For example, each card strip control module 3 includes two card strip controllers 32, and the number of corresponding first switching switches 21 is two. Each card strip controller 32 is connected to a first switching switch 21, so that two smart cards 4 corresponding to each card strip control module 32 can be accessed at the same time, further improving the access efficiency. Optionally, the card strip control module 3 clears the stored execution result when the preset condition is met. For example, the card strip control module 3 serializes the execution result of the smart card and latches the data. When the main controller completes the reading, the corresponding execution result is cleared.

[0043] Furthermore, the card bar control module 3 further includes a second switch 33, and the card bar controller 32 is used to control the second switch 33 to access the corresponding smart card 4 according to the smart card identifier. The second switch 33 accesses the corresponding smart card 4 in a signal chip selection manner. For example, the second switch 33 sends an access request to the corresponding smart card according to the acquisition time of the smart card identifier, and cuts off the communication connection with other smart cards. As an example but not limitation, each card strip controller 32 is communicatively connected to 8 smart cards, and each card strip control module 3 includes two card strip controllers 32, that is, each card strip control module 32 is communicatively connected to 16 smart cards 4; the corresponding number of first switching switches 21 is two, and each first switching switch 21 is communicatively connected to 16 card strip control modules 3, that is, the number of smart cards corresponding to the first control unit is 256, and the main controller 1 is connected to the first control unit 10, the second control unit 20 and the third control unit 30 through the serial peripheral interface bus 6, and controls a total of 768 smart cards 4. The main controller 1 can simultaneously access 48 card strip control modules 3, and can simultaneously access 96 smart cards through each card strip controller 32.

[0044] Specifically, the command format sent by the main controller 1 includes a command or query flag, a command sequence number, a command length, a SIM card position, a card read / write command, and a CRC check. Among them, the command or query flag can take two values, 0xaa and 0x00, respectively, which are used to identify the execution command and the query command, respectively. The command sequence number is the unique identifier of the command, which is used to find the command with the same sequence number corresponding to it when receiving the command. The command length is used to indicate the number of bytes of the command. The SIM card position is the position of the SIM card in the card strip, for example 0 to 7, and the card strip control module 3 finds the corresponding SIM card according to the SIM card position. The card read / write command is the command content. The CRC check is used to verify all the data of the command to ensure the correctness of the command.

[0045] The command format of the card bar response includes the response data valid flag, command sequence number, command length, SIM card position, command response or error information and CRC check. Among them, the response data valid flag can take two values, 0xaa and 0x00. When it is 0xaa, it indicates a valid response command, and when it is 0x00, it indicates that there is no retrievable command response or the command has not been executed yet.

[0046] The main controller 1 includes a business layer and a communication layer. After the main controller 1 obtains the smart card access request, the business layer enables one or more threads according to the business concurrency number, decomposes the business into a series of commands to the card according to the smart card access request and sends them to the sending queue, and searches whether a response is received from the receiving queue at a fixed time. The communication layer enables the data sending thread and the data receiving thread to send and receive commands. When the data sending thread detects that the sending queue is not empty, the command of the sending queue is sent to the card strip control module 3 through the serial peripheral interface control module 2. The card strip control module 3 puts the received command into the command processing queue and executes the command in sequence. When the command is executed, the card strip control module 3 sends a command response message or a command error message according to the command execution result, and moves the command response message into the SPI data sending area to wait for sending. The main controller 1 searches whether there is a command to be received from the receiving queue by means of a regular query. If there is a command to be received, a query command is sent according to the command sequence number to retrieve all response information, thereby realizing efficient read and write operations.

[0047] In one possible implementation, the serial peripheral interface control module 2 also includes a signal driver 7 connected between each first switching switch 21 and the main controller 1, for example, a signal amplifier, so as to enhance the signal and reduce signal interference, so that the serial peripheral interface bus 6 can be transmitted farther at a high speed, thereby expanding the device size and supporting more smart cards 4.

[0048] like Figure 4 As shown, the smart card management method provided in the embodiment of the present application is applied to the above-mentioned smart card management device, and the smart card management method includes:

[0049] Step S101: the main controller obtains a smart card access request and sends the access request to a serial peripheral interface control module, wherein the smart card access request includes a smart card identifier and a card strip identifier.

[0050] The smart card access request is a smart card read instruction or a smart card write instruction, for example, reading contact information on a smart card or adding contact information on a smart card.

[0051] Step S102: the serial peripheral interface control module sends corresponding access requests to corresponding card bar control modules in sequence according to the card bar identifier.

[0052] Step S103: the card strip control module accesses the corresponding smart card according to the card strip identifier.

[0053] Step S104: the card strip control module obtains and stores the execution result of the smart card.

[0054] Step S105: the main controller polls and reads the execution result.

[0055] Optionally, the card strip control module 3 clears the stored execution result when a preset condition is met. For example, the card strip control module 3 serially converts the execution result of the smart card and latches the data, and clears the corresponding execution result after the main controller completes the reading.

[0056] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0057] It should be noted that the above method embodiment and the device embodiment of the present application are based on the same concept. For the specific implementation process and the technical effects brought about, please refer to the device embodiment part, which will not be repeated here.

[0058] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0059] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0060] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0061] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0062] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A smart card management device, It is characterized in that The smart card management device comprises a main controller, a serial peripheral interface control module connected to the main controller in communication, and a plurality of card strip control modules connected to the serial peripheral interface control module in communication, each card strip control module is connected to a plurality of smart cards in communication; the serial peripheral interface control module is connected to the main controller in communication through a serial peripheral interface bus and a control bus respectively, and the control bus of the main controller is connected to a plurality of serial peripheral interface control modules through a serial peripheral interface bus; The main controller is used to obtain a smart card access request and send the access request to the serial peripheral interface control module, wherein the smart card access request includes a smart card identifier and a card strip identifier; The serial peripheral interface control module is used to send corresponding access requests to corresponding card strip control modules in sequence according to the card strip identifier; The card strip control module is used to access the corresponding smart card according to the smart card identifier, obtain the execution result of the smart card and store it, so that the main controller can poll and read the execution result.

2. The smart card management device according to claim 1, It is characterized in that The serial peripheral interface control module includes a plurality of first switching switches and a data selector that is communicatively connected to the plurality of first switching switches. Each card strip control module is communicatively connected to the plurality of first switching switches. The data selector is used to control the first switching switch to access the corresponding card strip control module by means of a chip select signal according to the card strip identifier.

3. The smart card management device according to claim 2, It is characterized in that The serial peripheral interface control module further includes a signal driver connected between each of the first switching switches and the main controller.

4. The smart card management device according to claim 2, It is characterized in that The card strip control module includes a plurality of card strip controllers corresponding to the first switching switches one by one, and each of the card strip controllers is communicatively connected with a plurality of smart cards.

5. The smart card management device as claimed in claim 4, It is characterized in that The card bar control module further includes a second switch, and the card bar controller is used to control the second switch to access the corresponding smart card according to the smart card identifier.

6. The smart card management device according to claim 1, It is characterized in that The smart card management device further comprises a network processing unit communicatively connected to the main controller, and the main controller is used for receiving the smart card access request through the network processing unit.

7. A smart card management method, It is characterized in that The smart card management method is applied to the smart card management device according to any one of claims 1 to 6, the smart card management device comprising a main controller, a serial peripheral interface control module communicatively connected to the main controller, and a plurality of card strip control modules communicatively connected to the serial peripheral interface control module, each card strip control module being communicatively connected to a plurality of smart cards; the smart card management method comprises: The main controller obtains a smart card access request and sends the access request to the serial peripheral interface control module, wherein the smart card access request includes a smart card identifier and a card strip identifier; The serial peripheral interface control module sends corresponding access requests to corresponding card strip control modules in sequence according to the card strip identifier; The card strip control module accesses the corresponding smart card according to the card strip identifier; The card strip control module obtains and stores the execution result of the smart card; The main controller polls and reads the execution result.

8. The smart card management method according to claim 7, It is characterized in that The smart card access request is a smart card read instruction or a smart card write instruction.

9. The smart card management method according to claim 8, It is characterized in that The method further comprises: The card strip control module clears the stored execution result when a preset condition is met.