WO2017143931A1 - Procédé et appareil d'identification de carte a puce, procédé et appareil de traitement de données d'identification de carte a puce, et dispositif - Google Patents

Procédé et appareil d'identification de carte a puce, procédé et appareil de traitement de données d'identification de carte a puce, et dispositif Download PDF

Info

Publication number
WO2017143931A1
WO2017143931A1 PCT/CN2017/073578 CN2017073578W WO2017143931A1 WO 2017143931 A1 WO2017143931 A1 WO 2017143931A1 CN 2017073578 W CN2017073578 W CN 2017073578W WO 2017143931 A1 WO2017143931 A1 WO 2017143931A1
Authority
WO
WIPO (PCT)
Prior art keywords
identification
instruction
smart card
identification information
server
Prior art date
Application number
PCT/CN2017/073578
Other languages
English (en)
Chinese (zh)
Inventor
卢强
马良
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2017143931A1 publication Critical patent/WO2017143931A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a smart card identification method and apparatus, a smart card identification data processing method and apparatus, a device, and a storage medium.
  • smart cards have been widely used in many fields such as telecommunications, transportation, finance, etc., and the types and versions of smart cards are constantly updated.
  • the terminal and the smart card are identified and exchanged by the instruction.
  • the identification instruction fixed by the client is used.
  • the client cannot identify the new card because there is no identification instruction of the new card. If you want to support the new card operation, you must upgrade the client program, the program is cumbersome, and can not meet the needs of dynamic identification.
  • an embodiment of the present invention provides a method for smart card identification, where the method includes:
  • the read result is matched with the identification information corresponding to the first identification information set, and if the matching is successful, the smart card recognition is successful.
  • an embodiment of the present invention provides a device for smart card identification, where the device includes:
  • Pulling the module configured to pull the first identification instruction set and the corresponding first identification information set from the server;
  • the reading module is configured to receive the smart card identification request, and read the smart card according to the identification instruction in the first identification instruction set to obtain a corresponding reading result;
  • the identification module is configured to match the read result with the identification information corresponding to the first identification information set, and if the matching is successful, the smart card recognition is successful.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing the smart card identification method provided by the first aspect of the present invention.
  • an embodiment of the present invention provides a terminal, including: a storage medium and a processor for storing executable instructions, where the processor is configured to execute the stored executable instructions, where the executable instructions are used to execute the following step:
  • the read result is matched with the identification information corresponding to the first identification information set, and if the matching is successful, the smart card recognition is successful.
  • the smart card identification method and device, the terminal, and the storage medium receive the smart card identification request by pulling the first identification instruction set and the corresponding first identification information set from the server, and reading the smart card according to the identification instruction of the first identification instruction set, Obtaining a corresponding reading result, and matching the reading result with the identification information corresponding to the first identification information set, and if the matching is successful, the intelligence is If the card is successfully identified, the smart card is identified by pulling the first identification instruction set and the corresponding first identification information set from the server, instead of curing the identification instruction in the client, the identification instruction and the identification information in the server can be dynamically updated. In order to ensure that the recognition ability of the smart card can also be dynamically adjusted.
  • an embodiment of the present invention provides a method for processing smart card identification data, where the method includes:
  • the terminal sends the first identification instruction set and the corresponding first identification information set to the terminal, so that the terminal reads the smart card according to the identification instruction in the first identification instruction set, and obtains a corresponding reading result, and the reading result is
  • the identification information corresponding to the first identification information set is matched, and if the matching is successful, the smart card recognition is successful.
  • an embodiment of the present invention provides a device for processing smart card identification data, where the device includes:
  • An acquiring module configured to receive an identification data pull request, and obtain a matching first identification instruction set and a corresponding first identification information set according to the identification data pull request;
  • a sending module configured to send the first identification instruction and the corresponding first identification information to the terminal, so that the terminal reads the smart card according to the identification instruction in the first identification instruction set, to obtain a corresponding reading result, and the The reading result is matched with the identification information corresponding to the first identification information set. If the matching is successful, the smart card recognition is successful.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing processing of smart card identification data provided by the embodiment of the fifth aspect of the present invention. method.
  • an embodiment of the present invention provides a terminal, including: a storage medium and a processor for storing executable instructions, where the processor is configured to execute the stored executable instructions, where The executable instructions are used to perform the following steps:
  • the terminal sends the first identification instruction set and the corresponding first identification information set to the terminal, so that the terminal reads the smart card according to the identification instruction in the first identification instruction set, and obtains a corresponding reading result, and the reading result is
  • the identification information corresponding to the first identification information set is matched, and if the matching is successful, the smart card recognition is successful.
  • the processing method and device for processing the smart card identification data, the server, and the storage medium by receiving the identification data pull request, acquiring the matched first identification instruction set and the corresponding first identification information set according to the identification data pull request, and transmitting the first identification
  • the instruction set and the corresponding first identification information set are sent to the terminal, so that the terminal reads the smart card according to the identification instruction in the first identification instruction set, and obtains a corresponding reading result, and the reading result is corresponding to the first identification information.
  • the identification information is matched. If the matching is successful, the smart card is successfully identified, and the smart card is identified by the first identification instruction set sent by the server and the corresponding first identification information set, instead of curing the identification instruction in the client, in the server.
  • the identification command and the identification information can be dynamically updated to ensure that the recognition capability of the smart card can also be dynamically adjusted.
  • FIG. 1 is an application environment diagram of a smart card identification method and a smart card identification data processing method in an embodiment
  • Figure 2 is a diagram showing the internal structure of the terminal of Figure 1 in an embodiment
  • Figure 3 is a diagram showing the internal structure of the server of Figure 1 in an embodiment
  • FIG. 4 is a flow chart of a method for smart card identification in an embodiment
  • FIG. 5 is a flowchart of a method for processing smart card identification data in an embodiment
  • FIG. 6 is a structural block diagram of an apparatus for smart card identification in an embodiment
  • FIG. 7 is a structural block diagram of an apparatus for smart card identification in another embodiment
  • FIG. 8 is a structural block diagram of a processing apparatus for smart card identification data in an embodiment
  • FIG. 9 is a structural block diagram of a processing apparatus for smart card identification data in another embodiment.
  • FIG. 1 is a schematic diagram of a method and apparatus for smart card identification, a method for processing smart card identification data, and an application environment diagram of device operation in an embodiment.
  • the application environment includes a terminal 110, a server 120, and a card 130.
  • the terminal 110 and the server 120 can communicate via a network.
  • the terminal 110 can be a smartphone, a tablet, a notebook, a desktop computer, etc., but is not limited thereto.
  • the terminal 110 can communicate with the card 130 through a NFC (Near Field Communication) connection method or a Bluetooth connection method or a WIFI connection method or other wireless connection manner, and supports the terminal to recognize the card 130, etc., and the card 130 supports Identify the cards of the order, such as bus cards, fuel cards, etc.
  • the server 120 can respond to the identification data pull request sent by the terminal 110.
  • the internal structure of the terminal 110 in FIG. 1 is as shown in FIG. 2.
  • the terminal 110 includes a processor, a graphics processing unit, a storage medium, a memory, a network interface, a display screen, and an input device connected through a system bus.
  • the storage medium of the terminal 110 stores an operating system, and further includes a device for identifying a smart card, and the device is used to implement a method for smart card identification applicable to the terminal.
  • the processor is used to provide computing and control capabilities to support the operation of the entire terminal 110.
  • the graphics processing unit in the terminal 110 is configured to provide at least a rendering capability of the display interface
  • the memory is an operation providing environment for the smart card identification device in the storage medium
  • the network interface is used for network communication with the server 120, and wirelessly communicates with the smart card, such as
  • the identification data pull request is sent to the server 120, the recognition instruction set returned by the server 120 and the corresponding identification information set are received, the read result of the smart card is received, and the like.
  • the display screen is used to display an application interface or the like, such as displaying a recognition result interface, etc.
  • the input device is configured to receive commands or data input by the user.
  • the terminal 110 has a touch screen, and the display screen and the input device can be a touch screen.
  • the internal structure of the server 120 in FIG. 1 is as shown in FIG. 2, and the service Server 120 includes a processor, storage medium, memory, and network interface coupled by a system bus.
  • the storage medium of the background server 120 stores an operating system, a database, and a processing device for identifying data of the smart card, and the database is used for storing data, such as a storage identification instruction set and a corresponding identification information set, etc., the device is used to implement a A method of processing smart card identification data suitable for server 120.
  • the processor of the server 120 is used to provide computing and control capabilities to support the operation of the entire server 120.
  • the memory of the server 120 provides an environment for the operation of the processing device for the smart card identification data in the storage medium.
  • the network interface of the server 120 is used to communicate with the external terminal 110 via a network connection, such as receiving a request sent by the terminal 110 and returning data to the terminal 110.
  • a method for smart card identification is provided to be applied to a terminal in the application environment, and the following steps are included:
  • Step S210 Pulling a first identification instruction set and a corresponding first identification information set from the server.
  • the identification instruction is an instruction for identifying the smart card
  • the identification instructions of the smart cards of different types and different versions of the same type may be different
  • the server stores the identification instruction set of each type and each version and the corresponding
  • the identification information set identifies that the identification instruction in the instruction set increases as the smart card type increases, and is updated as the smart card version is updated.
  • the smart card manufacturer updates the smart card it can be entered into the server for storage by submitting the application, or can be entered by the server administrator for verification.
  • the identification instructions may follow different protocols, such as an application protocol data unit APDU instruction or an instruction written by the smart card manufacturer based on the structure of the smart card.
  • Each identification instruction has corresponding identification information, and the identification information is used to verify whether the identification instruction can correctly identify the smart card.
  • the result and the identification information read from the smart card according to the identification instruction are compared, and if the matching is successful, the smart card is successfully identified. If it does not match, the recognition instruction does not recognize the smart card.
  • the first identification instruction set and the corresponding first identification information set may be all identification instructions and corresponding identification information currently stored in the server, or may be formed by filtering the partial identification instruction set and the corresponding identification information set by filtering conditions.
  • the first identification instruction set and the corresponding first identification information set. Filtering conditions can be customized as needed, such as version information, geographic location information, time information, and so on.
  • the identification instruction is an application protocol data unit APDU instruction and the identification information is a regular expression string.
  • an APDU Application Protocol Data Unit
  • the APDU command is widely applied to smart card operations and has good versatility.
  • Regular expressions use a single string to describe and match a series of strings that conform to a syntax rule. For example, the result of reading from the smart card according to the identification instruction is a string of characters "ABCDEF...9000", and the criterion for successful recognition is that if the returned character string ends with "9000", it means that the recognition is successful, then the standard corresponds to The regular expression is "9000$".
  • Regular expressions can be used to simplify multiple conditional results into a single string, which reduces the space occupied by the matching conditions, and simply and conveniently verifies the result of the smart card reading to determine whether the smart card is successfully identified.
  • Step S220 Receive a smart card identification request, and read the smart card according to the identification instruction in the first identification instruction set to obtain a corresponding reading result.
  • the smart card when the smart card needs to be operated, the smart card can be kept close to the terminal, such as the smart card is attached to the NFC sensing area of the terminal, through the terminal's own NFC near field communication technology or the like.
  • the short-range communication technology recognizes the smart card and exchanges data with the smart card.
  • the terminal client program can receive the card event notification through the system, and once the card event is received, it indicates that the smart card needs to be recognized.
  • the smart card is read by the identification instruction in the first identification instruction set pulled from the server, and the corresponding reading result is obtained.
  • the first identification instruction set has at least one identification instruction.
  • the first identification instruction When there are multiple identification instructions in the first identification instruction set, the first identification instruction is sequentially acquired, and the smart card is cyclically read, and each corresponding identification instruction has a corresponding reading returned by the smart card. Take the result.
  • the interface provided by the system is cyclically called for reading.
  • the identification commands of different smart cards are different.
  • the identification instruction of the smart card is a basic data file of the issuer requesting to read the smart card.
  • the incoming recognition command can correctly read the smart card, it will return the correct reading result, such as returning a string of strings representing the card issuer's basic data file, similar to "ABCDE etc.", if passed in The recognition command does not apply to the smart card, it will return the wrong read result or return the read failure message.
  • Step S230 matching the read result with the identification information corresponding to the first identification information set. If the matching is successful, the smart card recognition is successful.
  • each of the identification instructions has corresponding identification information
  • the corresponding identification information is obtained from the first identification information set according to the currently executed identification instruction, and the reading result is matched with the corresponding identification information. If the match is successful, the smart card recognition is successful. Matching means the same or corresponding, and the matching rule is determined according to the content of the identification information. If the identification information is “9000$”, the criterion for successful recognition is that the returned string ends with “9000”. If the returned result is the character “ABCDEF...9000”, it ends with “9000”. The representative matches successfully.
  • the JAVA regular expression matching interface can be used to input the read result and the regular expression to obtain a successful matching result, which is fast and convenient. If the matching fails, it indicates that the incoming identification instruction is not applicable to the smart card, so that the reading result cannot match the correct identification information, returning the prompt information for identifying the failure or continuing to pull the other identification instruction set and the corresponding identification information set to the server. .
  • the server by extracting the first identification instruction set and the corresponding first identification information set from the server, receiving the smart card identification request, reading the smart card according to the identification instruction in the first identification instruction set, and obtaining a corresponding reading result, The reading result is matched with the identification information corresponding to the first identification information set. If the matching is successful, the smart card is successfully identified, and the smart card is identified by pulling the first identification instruction set and the corresponding first identification information set from the server, instead of The identification instruction is solidified in the client, and the identification instruction and identification information in the server can be dynamically updated, from And to ensure that the ability to recognize smart cards can also be dynamically adjusted.
  • step S210 includes: determining whether the first application is in a login state, the first application includes a social application and/or an instant messaging application, and if yes, sending an identification data pull request to the server, so that the server identifies the The data pull request sends the first identification instruction set and the corresponding first identification information set.
  • the recognition instruction set and the corresponding identification information set are automatically pulled from the server, no additional timing is required, and the identification function of the smart card can be set in the first application.
  • the server that sends the identification data pull request may also be the server corresponding to the first application, so that when the smart card is identified, the data of the first application stored in the server of the first application, such as a friend relationship, a user profile, etc., may be utilized.
  • the identified permissions are verified, and only the authenticated user can identify the smart card.
  • the user information is bound to the smart card, and the user information may be carried when the identification data bit fetch request is sent.
  • step S210 includes: acquiring location information of the terminal, and extracting, from the server, a first identification instruction set matching the location information and a corresponding first identification information set according to the location information.
  • the smart cards issued in the same area are generally the same or similar in type, and the identification instruction set and the corresponding identification information are also the same or similar, and the identification instruction set and corresponding identification stored in the server may be determined according to the location information.
  • Information sets are distinguished. Therefore, upon receiving the identification data pull request, the first identification instruction set matching the location information and the corresponding first identification information set are acquired from the server according to the location information. For example, when the terminal in Beijing requests identification data, only the identification instruction set and the identification information set of Beijing are issued, which improves the targeting of the identification instruction, reduces the number of cycles of reading the smart card, and improves the speed of smart card recognition.
  • step S210 includes: sending an identification data pull request to the server, and the identification data pull request includes a terminal instruction version identifier, so that the server determines the terminal instruction version. Whether the identifier is the same as the server instruction version identifier. If the identifier is the same, the prompt information is returned. If not, the identification instruction set and the identification information set corresponding to the server instruction version identifier are returned.
  • the instruction version identifier is used to identify the version of the identification instruction and the corresponding identification information, and each time the identification instruction is changed or added or deleted, the identification instruction set list and the identification information stored on the server need to be simultaneously updated.
  • Set list and version number the version number can be modified according to the need, such as the version number from the initial value to modify in a self-increment manner.
  • the terminal stores the instruction version identifier, and carries the terminal instruction version identifier when the next request identification data, if the terminal instruction version identifier and If the current command version identifier of the server is the same, it means that the recognition command has not been changed, and only the prompt information needs to be returned. If the terminal instruction version identifier is different from the current instruction version identifier of the server, it is required to return the identification instruction set and the identification information set corresponding to the current instruction version identifier of the server. By determining the need to send the recognition instruction set and the identification information set by the instruction version identifier, it is possible to avoid repeated transmission of the recognition instruction set and the identification information set without updating.
  • the method further includes: deleting the second identification instruction set and the corresponding second identification information set stored by the terminal before the first identification instruction and the corresponding first identification information are pulled.
  • deleting the previously stored second identification instruction set and the corresponding second identification information set may avoid the second identification instruction set and the corresponding second identification information set and the first identification instruction.
  • the repeated instructions and information between the corresponding first identification information occupy the storage space of the terminal, and on the other hand, the second identification instruction set and the corresponding second identification information set are deleted by the old identification instruction and identification information. After that, the old smart card cannot be recognized, and the user can be promptly reminded to upgrade and replace the smart card, so that the smart card identification function can also be flexibly adjusted for the old card.
  • a processor for identifying smart card identification data is provided.
  • the method is exemplified by a server applied to the above application environment, and includes the following steps:
  • Step S310 receiving an identification data pull request, and acquiring a matched first identification instruction set and a corresponding first identification information set according to the identification data pull request.
  • the identification instruction is an instruction for identifying the smart card
  • the identification instructions of the smart cards of different types and different versions of the same type may be different
  • the server stores the identification instruction set of each type and each version and the corresponding
  • the identification information set identifies that the identification instruction in the instruction set increases as the smart card type increases, and is updated as the smart card version is updated.
  • the smart card manufacturer updates the smart card it can be entered into the server for storage by submitting the application, or can be entered by the server administrator for verification.
  • Each identification instruction has corresponding identification information, and the identification information is used to verify whether the identification instruction can correctly identify the smart card. When verifying, the result and the identification information read from the smart card according to the identification instruction are compared, and if the matching is successful, the smart card is successfully identified. If it does not match, the recognition instruction does not recognize the smart card.
  • the identification data pull request may include screening condition information, such as version information, geographic location information, time information, etc., and the server filters the identification instruction and the corresponding identification information according to the information carried by the identification data pull request to obtain the first identification instruction set. And a corresponding first set of identification information. If the screening condition information is not included in the identification data pull request, the first identification instruction set and the corresponding first identification information set may be all identification instructions and corresponding identification information currently stored in the server.
  • screening condition information such as version information, geographic location information, time information, etc.
  • Step S320 sending a first identification instruction set and a corresponding first identification information set to the terminal, so that the terminal reads the smart card according to the identification instruction in the first identification instruction set, and obtains a corresponding reading result, and the reading result is
  • the identification information corresponding to the first identification information set is matched, and if the matching is successful, the smart card identification is successful.
  • the first identification instruction set and the corresponding first identification information set are sent to the terminal, and the terminal reads the smart card by using the identification instruction in the first identification instruction set to obtain a corresponding reading result.
  • At least one identification instruction exists in the first identification instruction set, when the first identification finger When a plurality of identification instructions are concentrated, the first identification instruction is sequentially acquired, and the smart card is cyclically read, and each of the identification instructions has a corresponding reading result returned by the smart card.
  • the smart card can be read by calling the interface provided by the system.
  • the identification instruction of the smart card is a basic data file of the issuer requesting to read the smart card.
  • the incoming recognition command can correctly read the smart card, it will return the correct reading result, such as returning a string of strings representing the card issuer's basic data file, similar to "ABCDE etc.", if passed in The recognition command does not apply to the smart card, it will return the wrong read result or return the read failure message.
  • Each identification instruction has corresponding identification information, and the corresponding identification information is obtained from the first identification information set according to the currently executed identification instruction, and the reading result is matched with the corresponding identification information. If the matching is successful, the smart card identification is successful. Matching means the same or corresponding, and the matching rule is determined according to the content of the identification information. If the identification information is “9000$”, the criterion for successful recognition is that the returned string ends with “9000”. If the returned result is the character “ABCDEF...9000”, it ends with “9000”. The representative matches successfully. When the regular expression is used as the identification information, the JAVA regular expression matching interface can be used to input the read result and the regular expression to obtain a successful matching result, which is fast and convenient. If the matching fails, it indicates that the incoming identification instruction is not applicable to the smart card, so that the reading result cannot match the correct identification information, the terminal generates the prompt information for identifying the failure or the server continues to receive the identification data pull request.
  • the terminal by receiving the identification data pull request, acquiring the matched first identification instruction set and the corresponding first identification information set according to the identification data pull request, and transmitting the first identification instruction set and the corresponding first identification information set. Go to the terminal, so that the terminal reads the smart card according to the identification instruction in the first identification instruction set, obtains the corresponding reading result, and matches the reading result with the identification information corresponding to the first identification information set. If the matching is successful, The smart card is successfully identified, and the smart card is identified by the first identification instruction set sent by the server and the corresponding first identification information set, instead of curing the identification instruction in the client, the identification instruction and the identification information in the server. It can be dynamically updated to ensure that the recognition capability of the smart card can be dynamically adjusted.
  • the identification instruction is an application protocol data unit APDU instruction and the identification information is a regular expression string.
  • the APDU is an information unit transmitted between the smart card and the smart card reader, and the APDU command is widely applied to the smart card operation, and has good versatility.
  • Regular expressions use a single string to describe and match a series of strings that conform to a syntax rule. For example, the result of reading from the smart card according to the identification instruction is a string of characters "ABCDEF...9000", and the criterion for successful recognition is that if the returned character string ends with "9000", it means that the recognition is successful, then the standard corresponds to The regular expression is "9000$".
  • Regular expressions can simplify multiple conditional results into a single string, which reduces the space occupied by the matching conditions, and enables the terminal to verify the result of the smart card reading simply and conveniently, and determine whether the smart card is successfully recognized.
  • the server is a first application server
  • the first application includes a social application and/or an instant messaging application
  • the data pull request is identified as a message that the user successfully logs in to the first application.
  • the server sends the identification instruction set and the corresponding identification information set, and does not require additional timing, and the smart card can be
  • the identification function is set in the first application, and there is no need to additionally develop an application specifically for identifying the smart card.
  • the server that sends the identification data pull request is a server corresponding to the first application, so that when the smart card is identified, the data of the first application stored in the server of the first application, such as a friend relationship, a user profile, etc., may be used for identification. Permissions are verified, and only the authenticated user can identify the smart card.
  • the first application server stores the binding relationship between the user information and the smart card. After receiving the message that the user successfully logs in to the first application, the user information is obtained, and the obtained user information is determined whether the bound smart card exists. Smart card, then obtain the identification instruction set and pair corresponding to the bound smart card The identification information should be sent. If there is no bound smart card, the information prompt of the smart card without permission is sent. In an embodiment, if the acquired user information does not have a bound smart card, but the user's friend has a bound smart card, the identification instruction set of the smart card bound by the user's friend and the corresponding identification information are acquired and transmitted.
  • the identification data pull request includes terminal location information
  • step S310 includes: searching for the matched identification instruction set and the corresponding identification information set according to the terminal location information.
  • the smart cards issued in the same area are generally the same or similar in type, and the identification instruction set and the corresponding identification information are also the same or similar, and the identification instruction set and corresponding identification stored in the server may be determined according to the location information. Information sets are distinguished. Therefore, the server may obtain the matched first identification instruction set and the corresponding first identification information set according to the location information in the received identification data pull request. For example, when the terminal in Beijing requests identification data, only the identification instruction set and the identification information set of Beijing are issued, which improves the targeting of the identification instruction, reduces the number of cycles of reading the smart card, and improves the speed of smart card recognition.
  • the identification data pull request includes a terminal instruction version identifier
  • step S310 includes: determining whether the terminal instruction version identifier is the same as the server instruction version identifier, and generating the prompt information if the same, if not, obtaining the server instruction version identifier. Corresponding recognition instruction set and identification information set.
  • the instruction version identifier is used to identify the identification instruction and the version of the corresponding identification information, and the server simultaneously updates the stored identification instruction set list and the identification information set list each time the identification instruction is changed or added or deleted.
  • the version number can be modified according to the need, such as the version number from the initial value to modify in a self-increase manner.
  • the terminal stores the instruction version identifier, and carries the terminal instruction version identifier when the next request identification data, if the terminal instruction version identifier and If the current command version identifier of the server is the same, it means that the recognition command has not been changed, and only the prompt information needs to be returned. If the terminal commands version identification and service If the current instruction version identifier is different, the server returns the identification instruction set and the identification information set corresponding to the current instruction version identifier. By determining the need to send the recognition instruction set and the identification information set by the instruction version identifier, it is possible to avoid repeated transmission of the recognition instruction set and the identification information set without updating.
  • the method before step S310, further includes: acquiring a second identification instruction set stored by the server and the corresponding second identification information set, deleting the identification instruction that expires in the second identification instruction set, and corresponding identification information, and generating the first Identifying the instruction set and the corresponding first set of identification information.
  • the second identification instruction set and the corresponding second identification information are provided with the expired identification instruction and the identification information, and after the deletion is performed, the identification of the old smart card can be stopped in time, thereby promptly reminding The user upgrades and replaces the old smart card, so that the smart card identification function can be flexibly adjusted for the old card.
  • a smart card identification device including:
  • the pull module 410 is configured to pull the first identification instruction set and the corresponding first identification information set from the server.
  • the reading module 420 is configured to receive the smart card identification request, and read the smart card according to the identification instruction in the first identification instruction set to obtain a corresponding reading result.
  • the identification module 430 is configured to match the read result with the identification information corresponding to the first identification information set. If the matching is successful, the smart card recognition is successful.
  • the identification instruction is an application protocol data unit APDU instruction and the identification information is a regular expression string.
  • the pull module 410 is further configured to determine whether the first application is in a login state, the first application includes a social application and/or an instant messaging application, and if yes, send an identification data pull request to the server, so that The server delivers the first identification instruction set and the corresponding first identification information set according to the identification data pull request.
  • the pull module 410 is further configured to acquire location information of the terminal, and extract, according to the location information, the first identification instruction set and the corresponding first knowledge that match the location information from the server. Do not set information.
  • the pull module 410 is further configured to send an identification data pull request to the server, where the identification data pull request includes a terminal instruction version identifier, so that the server determines whether the terminal instruction version identifier is the same as the server instruction version identifier. If the information is the same, the prompt information is returned. If not, the identification instruction set and the identification information set corresponding to the server instruction version identifier are returned.
  • the apparatus further includes:
  • the deleting module 440 is configured to delete the second identification instruction set and the corresponding second identification information set stored by the terminal before the first identification instruction set and the corresponding first identification information set are pulled.
  • a processing device for smart card identification data including:
  • the obtaining module 510 is configured to receive the identification data pull request, and obtain the matched first identification instruction set and the corresponding first identification information set according to the identification data pull request.
  • the sending module 520 is configured to send the first identification instruction and the corresponding first identification information to the terminal, so that the terminal reads the smart card according to the identification instruction in the first identification instruction set, and obtains a corresponding reading result, and the reading result is The identification information corresponding to the identification information set is matched, and if the matching is successful, the smart card identification is successful.
  • the identification instruction is an application protocol data unit APDU instruction and the identification information is a regular expression string.
  • the server is a first application server
  • the first application includes a social application and/or an instant messaging application
  • the data pull request is identified as a message that the user successfully logs in to the first application.
  • the identification data pull request includes terminal location information
  • the obtaining module 510 is further configured to search the matched identification instruction set and the corresponding identification information set according to the terminal location information.
  • the identification data pull request includes a terminal instruction version identifier
  • the acquisition mode The block 510 is further configured to determine whether the terminal instruction version identifier is the same as the server instruction version identifier, and if yes, generate prompt information. If not, obtain the identification instruction set and the identification information set corresponding to the server instruction version identifier.
  • the apparatus further includes:
  • the data deletion module 530 is configured to acquire a second identification instruction set stored by the server and a corresponding second identification information set, delete an identification instruction that expires in the second identification instruction set, and corresponding identification information, and generate a first identification instruction set and corresponding The first identification information set.
  • the modules included in the device for identifying the smart card in the embodiment of the present invention may be implemented by a processor in the terminal; in the embodiment of the present invention, each module included in the processing device for identifying the data of the smart card may be implemented by a processor in the server.
  • the functions implemented by the processor can of course be implemented by logic circuits.
  • the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field. Programmable Gate Array (FPGA), etc.
  • the smart card identification method or the smart card identification data processing method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer. Read in the storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the present invention.
  • an embodiment of the present invention further provides a terminal, including: a storage medium and a processor, wherein the storage medium is configured to store executable instructions, and the processor is configured to execute the stored executable instructions, the executable instructions A method for performing the smart card identification described above.
  • an embodiment of the present invention further provides a server, including: a storage medium and a processor, wherein the storage medium is configured to store executable instructions, and the processor is configured to execute the stored executable instructions, the executable instructions A processing method for executing the smart card identification data described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

La présente invention concerne un procédé et un appareil permettant d'identifier une carte à puce, un terminal et un support d'informations. Le procédé consiste en : le tirage d'un premier ensemble d'instructions d'identification et d'un premier ensemble d'informations d'identification correspondantes à partir d'un serveur; la réception d'une requête d'identification de carte à puce, et la lecture d'une carte à puce conformément à une instruction d'identification dans le premier ensemble d'instructions d'identification pour obtenir un résultat de lecture correspondant; et la mise en correspondance du résultat de lecture avec des informations d'identification correspondantes dans le premier ensemble d'informations d'identification, dans lequel la carte à puce est identifiée avec succès si la mise en correspondance est réussie. La capacité d'identification de carte intelligente peut être réglée de manière dynamique. L'invention concerne également un procédé et un appareil permettant de traiter des données d'identification de carte à puce, un serveur et un support d'informations.
PCT/CN2017/073578 2016-02-24 2017-02-15 Procédé et appareil d'identification de carte a puce, procédé et appareil de traitement de données d'identification de carte a puce, et dispositif WO2017143931A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610101031.5A CN105760908B (zh) 2016-02-24 2016-02-24 智能卡识别的方法和装置、智能卡识别数据的处理方法和装置
CN201610101031.5 2016-02-24

Publications (1)

Publication Number Publication Date
WO2017143931A1 true WO2017143931A1 (fr) 2017-08-31

Family

ID=56331082

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/073578 WO2017143931A1 (fr) 2016-02-24 2017-02-15 Procédé et appareil d'identification de carte a puce, procédé et appareil de traitement de données d'identification de carte a puce, et dispositif

Country Status (2)

Country Link
CN (1) CN105760908B (fr)
WO (1) WO2017143931A1 (fr)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760908B (zh) * 2016-02-24 2019-02-01 腾讯科技(深圳)有限公司 智能卡识别的方法和装置、智能卡识别数据的处理方法和装置
CN112492337B (zh) * 2020-11-26 2023-05-23 北京达佳互联信息技术有限公司 一种通信方法、通信装置、服务器和存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184110A (zh) * 2011-04-15 2011-09-14 中国联合网络通信集团有限公司 Sd智能卡的识别与驱动加载方法及系统
CN105228125A (zh) * 2014-05-27 2016-01-06 中兴通讯股份有限公司 一种智能卡动态绑定方法、设备和系统
CN105760908A (zh) * 2016-02-24 2016-07-13 腾讯科技(深圳)有限公司 智能卡识别的方法和装置、智能卡识别数据的处理方法和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100440195C (zh) * 2002-05-10 2008-12-03 斯伦贝谢(北京)智能卡科技有限公司 智能卡更换方法及其更换系统
CN101577906B (zh) * 2009-06-12 2011-02-09 大唐微电子技术有限公司 一种可实现机卡安全认证的智能卡及终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184110A (zh) * 2011-04-15 2011-09-14 中国联合网络通信集团有限公司 Sd智能卡的识别与驱动加载方法及系统
CN105228125A (zh) * 2014-05-27 2016-01-06 中兴通讯股份有限公司 一种智能卡动态绑定方法、设备和系统
CN105760908A (zh) * 2016-02-24 2016-07-13 腾讯科技(深圳)有限公司 智能卡识别的方法和装置、智能卡识别数据的处理方法和装置

Also Published As

Publication number Publication date
CN105760908A (zh) 2016-07-13
CN105760908B (zh) 2019-02-01

Similar Documents

Publication Publication Date Title
KR102105636B1 (ko) 원격으로 애플리케이션들을 설치
US9053201B2 (en) Communication with a web compartment in a client application
US10387856B2 (en) Online payment method, system, and apparatus
US10911565B2 (en) Method, device and system for associating a service account
WO2016061769A1 (fr) Procédé et terminal de transmission d'informations de vérification
CN108846753B (zh) 用于处理数据的方法和装置
US20170083495A1 (en) Method for Modifying Webpage and Apparatus for Modifying Webpage
US10839145B2 (en) Form filling method and related terminal
US20200099768A1 (en) Method and system for sharing data between terminals
KR102087526B1 (ko) 단말들 간의 데이터 프로세싱을 위한 방법 및 장치, 디바이스 및 저장 매체
US9015494B2 (en) Methods and apparatus for digital steganography
WO2015101320A1 (fr) Procédé de génération de numéro de compte, terminal et serveur d'arrière-plan
US20210042150A1 (en) Method-call-chain tracking method, electronic device, and computer readable storage medium
US10606477B1 (en) Intelligent keyboard
JP2015531501A (ja) デジタル・レシートの管理
WO2017143931A1 (fr) Procédé et appareil d'identification de carte a puce, procédé et appareil de traitement de données d'identification de carte a puce, et dispositif
WO2017166297A1 (fr) Procédé d'authentification de portail de point d'accès wifi et dispositif
US8412844B2 (en) Validating download success
CN111767543A (zh) 重放攻击漏洞确定方法、装置、设备及可读存储介质
CN105095303B (zh) 快速链接推送方法及快速链接推送装置
US11729130B2 (en) Live database records in a chat platform
CN111367898B (zh) 数据处理方法、装置、系统、电子设备及存储介质
US20130139042A1 (en) Generating and providing guidance files for documents
CN111767544A (zh) 多频重放攻击漏洞确定方法、装置、设备及可读存储介质
US20170163816A1 (en) Mobile terminal and controlling method thereof

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17755760

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17755760

Country of ref document: EP

Kind code of ref document: A1