Contactless IC card data processing method, device, computer equipment and medium
By reading the characteristic data of the contactless IC card and performing type switching processing, the problem of cumbersome operations in traditional data processing methods is solved, and the work efficiency and automation of data processing are improved.
Patent Information
- Application Number
- CN202111397669.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-11-23
AI Technical Summary
Traditional contactless IC card data processing methods are complicated to operate and have low work efficiency during the upgrade process of old cards.
By obtaining card reading instructions, reading characteristic data of contactless IC card, determining the IC card type, and performing type switching processing when the types are inconsistent, realizing automatic upgrade.
It improves the working efficiency of the contactless IC card data processing process, simplifies the upgrade operation of old cards, and reduces costs.
Smart Images

Figure CN114218968B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer application technology, and in particular to a contactless IC card data processing method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] IC card stands for Integrated Circuit Card, also known as smart card. It has many advantages such as readability, large capacity, encryption, etc. It is widely used in various scenarios involving one-card and card consumption. Among them, contactless IC card does not require contact between IC card and card reader when exchanging information, which makes it more convenient to use.
[0003] In the traditional contactless IC card data processing method, when upgrading the old card, the service personnel need to first read the card information based on the old system corresponding to the old card on the terminal, and then rewrite the card information into the new contactless IC card based on the new system on the terminal. The operation process is complicated. Therefore, the traditional contactless IC card data processing method has the disadvantage of low work efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a contactless IC card data processing method, device, computer equipment, computer readable storage medium and computer program product to improve the work efficiency in the contactless IC card data processing process in order to address the problem of low working efficiency of traditional contactless IC card data processing methods.
[0005] In a first aspect, the present application provides a contactless IC card data processing method. The method comprises:
[0006] Obtain a card reading instruction; the card reading instruction includes a target type;
[0007] Reading characteristic data of the contactless IC card based on the card reading instruction, and determining the IC card type of the contactless IC card according to the characteristic data;
[0008] It is determined whether the IC card type is consistent with the target type, and if the IC card type is inconsistent with the target type, the contactless IC card is subjected to type switching processing.
[0009] In one embodiment, the card reading instruction further includes a reading password for each type of contactless IC card; and the step of reading characteristic data of the contactless IC card based on the card reading instruction includes:
[0010] Based on the read password, reading the stored data of the contactless IC card;
[0011] According to a preset characteristic data type, the characteristic data of the contactless IC card is screened out from the stored data.
[0012] In one embodiment, determining the IC card type of the contactless IC card according to the characteristic data includes:
[0013] According to the characteristic data, a sector identifier of a data storage sector for storing the characteristic data is determined, and according to the sector identifier and a pre-stored correspondence between the sector identifier and the IC card type, the IC card type of the contactless IC card is determined.
[0014] In one embodiment, the type switching process of the contactless IC card includes:
[0015] Determine the data storage sector corresponding to the target type according to the target type and the pre-stored correspondence between the sector identifier and the IC card type;
[0016] The characteristic data of the contactless IC card is sent to a host computer, and after receiving a prompt message from the host computer indicating that the data is correct, the characteristic data is written into a data storage sector corresponding to the target type.
[0017] In one embodiment, the step of sending the characteristic data of the contactless IC card to a host computer includes:
[0018] The characteristic data of the contactless IC card is sent to the host computer through a handle message instruction.
[0019] In one of the embodiments, before determining the IC card type of the contactless IC card according to the sector identifier and the pre-stored correspondence between the sector identifier and the IC card type, the method further includes:
[0020] Update the correspondence between sector ID and IC card type.
[0021] In one embodiment, after performing type switching processing on the contactless IC card, the method further includes:
[0022] Send feedback information to the host computer.
[0023] In a second aspect, the present application provides a contactless IC card data processing device. The device comprises:
[0024] A communication module, used to obtain a card reading instruction; the card reading instruction includes a target type;
[0025] A reading module, used for reading characteristic data of a contactless IC card based on the card reading instruction;
[0026] The switching module is used to determine the IC card type of the contactless IC card according to the characteristic data, and judge whether the IC card type is consistent with the target type; and is also used to perform type switching processing on the contactless IC card when the IC card type is inconsistent with the target type.
[0027] In one of the embodiments, the card reading instruction also includes a reading password for each type of contactless IC card; the reading module is specifically used to: read the stored data of the contactless IC card based on the reading password; and filter out the characteristic data of the contactless IC card from the stored data according to a preset characteristic data type.
[0028] In one embodiment, the contactless IC card data processing device further includes a configuration module for storing a correspondence between a sector identifier and an IC card type. The switching module is specifically used to: determine the sector identifier of a data storage sector for storing the characteristic data according to the characteristic data, and determine the IC card type of the contactless IC card according to the sector identifier and the correspondence between the sector identifier and the IC card type pre-stored in the configuration module.
[0029] In one of the embodiments, the switching module is specifically used to: determine the data storage sector corresponding to the target type according to the target type and the correspondence between the sector identifier and the IC card type pre-stored in the configuration module; send the characteristic data of the contactless IC card to the host computer, and after receiving the prompt information from the host computer that the data is correct, write the characteristic data into the data storage sector corresponding to the target type.
[0030] In one embodiment, the switching module is specifically used to send the characteristic data of the contactless IC card to a host computer through a handle message instruction.
[0031] In one of the embodiments, the configuration module is further used to: update the correspondence between the sector identifier and the IC card type.
[0032] In one of the embodiments, the communication module is further used to send feedback information to a host computer.
[0033] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0034] Obtain a card reading instruction; the card reading instruction includes a target type;
[0035] Reading characteristic data of the contactless IC card based on the card reading instruction, and determining the IC card type of the contactless IC card according to the characteristic data;
[0036] It is determined whether the IC card type is consistent with the target type, and if the IC card type is inconsistent with the target type, the contactless IC card is subjected to type switching processing.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0038] Obtain a card reading instruction; the card reading instruction includes a target type;
[0039] Reading characteristic data of the contactless IC card based on the card reading instruction, and determining the IC card type of the contactless IC card according to the characteristic data;
[0040] It is determined whether the IC card type is consistent with the target type, and if the IC card type is inconsistent with the target type, the contactless IC card is subjected to type switching processing.
[0041] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0042] Obtain a card reading instruction; the card reading instruction includes a target type;
[0043] Reading characteristic data of the contactless IC card based on the card reading instruction, and determining the IC card type of the contactless IC card according to the characteristic data;
[0044] It is determined whether the IC card type is consistent with the target type, and if the IC card type is inconsistent with the target type, the contactless IC card is subjected to type switching processing.
[0045] The above-mentioned contactless IC card data processing method, device, computer equipment, computer-readable storage medium and computer program product read the characteristic data of the contactless IC card, and determine the IC card type of the contactless IC card based on the characteristic data, and when the IC card type is inconsistent with the target type, perform type switching processing on the contactless IC card. This is equivalent to automatically upgrading the contactless IC card corresponding to the old IC card type according to the new target type, which is beneficial to improving the work efficiency of the contactless IC card data processing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are 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 creative work.
[0047] Figure 1 is a flow chart of a contactless IC card data processing method in one embodiment;
[0048] Figure 2 A flowchart of reading characteristic data of a contactless IC card based on a card reading instruction in one embodiment;
[0049] Figure 3 A flowchart of a type switching process for a contactless IC card in one embodiment;
[0050] Figure 4 is a flow chart of a contactless IC card data processing method in another embodiment;
[0051] Figure 5 A structural block diagram of a contactless IC card data processing device in one embodiment;
[0052] Figure 6 is a structural block diagram of a contactless IC card data processing device in another embodiment;
[0053] Figure 7 1 is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0054] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0056] In one embodiment, Figure 1As shown, a contactless IC card data processing method is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the contactless IC card data processing method includes steps S102 to S106.
[0057] Step S102: Obtain a card reading instruction.
[0058] Among them, the contactless IC card can be an IC membership card used in retail industries such as supermarkets, fruit stores, and clothing stores. The contactless IC card can be an ID card or an M1 card. The source of the card reading instruction can be a server, or other terminals, or other software and hardware modules in the same terminal that executes the contactless IC card data processing method, which are different from the contactless IC card data processing device. Take the case where the contactless IC card is a supermarket membership card and the source of the card reading instruction is the same terminal as an example. The user shows the membership card to the staff, and the staff sends a card reading instruction to the contactless IC card data processing device of the terminal by clicking the card reading option on the terminal software interface or pressing the card reading button on the terminal keyboard.
[0059] Furthermore, the IC card type is an identifier for identifying a specific type of a contactless IC card. The target type refers to an IC card type that matches the current application environment. Among them, the IC card type can be defined according to actual needs. Also, take the case where the contactless IC card is a supermarket membership card as an example. During the operation of the supermarket, membership cards are issued to customers based on specific supermarket management software. When the supermarket management software is updated, there may be multiple types of membership cards issued to customers based on different supermarket management software. At this time, the software version can be used as the IC card type of the contactless IC card, and the software version of the currently applied supermarket management software can be used as the target type of the contactless IC card.
[0060] Specifically, the card reading instruction includes a target type, and the terminal will obtain the target type when obtaining the card reading instruction. Furthermore, the terminal can obtain the card reading instruction in an active manner or in a passive manner.
[0061] Step S104: reading characteristic data of the contactless IC card based on the card reading instruction, and determining the IC card type of the contactless IC card according to the characteristic data.
[0062] The characteristic data of the contactless IC card refers to the user information and type information stored in the contactless IC card. The user information includes but is not limited to the card number, user name, user password, balance, points and level, etc., and the type information includes but is not limited to the IC card model, card issuance date and software version, etc.
[0063] Specifically, the terminal reads the characteristic data of the contactless IC card based on the card reading instruction, and can determine the IC card type of the contactless IC card according to the characteristic data. Furthermore, the specific method for the terminal to determine the IC card type of the contactless IC card according to the characteristic data is not unique. For example, the IC card type of the contactless IC card can be determined based on the characteristic data and the correspondence between the pre-stored characteristic data and the IC card type; the IC card type of the contactless IC card can also be determined based on the storage location, format or protocol type of the characteristic data.
[0064] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0065] Step S106: determining whether the IC card type is consistent with the target type, and if the IC card type is inconsistent with the target type, performing type switching processing on the contactless IC card.
[0066] Specifically, after the terminal determines the IC card type of the contactless IC card, it compares the IC card type with the target type contained in the card reading instruction to determine whether the two are consistent. If the two are consistent, the contactless IC card matches the current application environment and no type switching process is required; if the two are inconsistent, the contactless IC card does not match the current application environment and needs to be switched before it can be applied to the current system. At this time, the contactless IC card is switched.
[0067] The specific method for the terminal to perform type switching processing on the contactless IC card is not unique. For example, the read characteristic data can be rewritten into the contactless IC card according to the configuration requirements of the current application environment, such as format conversion, protocol conversion or storage location update, while erasing the original characteristic data and updating the type information of the contactless IC card accordingly; or a conversion algorithm can be written into the contactless IC card and the type information of the contactless IC card can be updated accordingly. The conversion algorithm is used to convert the communication protocol and data format when the contactless IC card is applied to the current application environment, so that the contactless IC card matches the requirements of the current application environment.
[0068] The above-mentioned contactless IC card data processing method reads the characteristic data of the contactless IC card, determines the IC card type of the contactless IC card according to the characteristic data, and performs type switching processing on the contactless IC card when the IC card type is inconsistent with the target type. On the one hand, the contactless IC card corresponding to the old IC card type can be automatically upgraded according to the new target type, which is conducive to improving the working efficiency of the contactless IC card data processing process; on the other hand, the same contactless IC card is shared before and after the type switching process, which is conducive to cost saving.
[0069] In one embodiment, the card reading instruction also includes the reading password of various types of contactless IC cards. Figure 2 As shown, the feature data of the contactless IC card is read based on the card reading instruction, including step S202 and step S204.
[0070] Step S202: Based on the read password, read the stored data of the contactless IC card.
[0071] Step S204: Filtering the characteristic data of the contactless IC card from the stored data according to the preset characteristic data type.
[0072] Among them, the specific definition of characteristic data is as mentioned above, which will not be repeated here. It can be understood that the storage data of the contactless IC card contains characteristic data. The storage data specifically includes card number, user name, user password, balance, points, level, transaction record, application system port number, IC card model, card issuance date, storage sector, software version and software password, etc. Take the case where the contactless IC card is a supermarket membership card as an example. The membership card issued by the supermarket using management software A stores data such as card issuance password (for example, 123456), card reading device (for example, Minghua Aohan M1 card device), port number (for example, USB), card number, user name, user password and balance, among which the card number, user name, user password and balance are characteristic data.
[0073] Furthermore, the read password is the read key. On the one hand, since user information is stored on the contactless IC card, in order to ensure information security, the contactless IC card needs to be encrypted. However, for different types of contactless IC cards, the corresponding read passwords may not be exactly the same. On the other hand, the contactless IC card is usually divided into multiple data storage sectors, each of which contains multiple storage blocks, and each storage block can be used to store different data. For the same contactless IC card, different types of stored data may have different corresponding encryption levels, and the corresponding read passwords may also be different. Based on this, the terminal needs to obtain the read passwords of various types of contactless IC cards while obtaining the card reading instruction, so as to successfully complete the data reading work.
[0074] Specifically, after the terminal obtains the card reading instruction, based on the card reading password set carried in the card reading instruction, the stored data is read based on different card reading passwords in a preset order until the stored data on the contactless IC card is completely read. Then, based on the preset characteristic data type, the stored data containing the type parameter corresponding to the characteristic data type is filtered out from the stored data to obtain the characteristic data of the contactless IC card. For example, if the characteristic data type is the software version, then the storage data whose type parameter is the software version is the characteristic data of the contactless IC card.
[0075] In the above embodiment, the card reading instruction also includes the reading password of each type of contactless IC card. The terminal first reads the stored data of the contactless IC card based on the reading password, and then filters out the characteristic data from the stored data. This can not only avoid missing data, but also ensure the smooth progress of the card reading process, which is conducive to improving the effectiveness of the contactless IC card data processing method.
[0076] In one embodiment, determining the IC card type of the contactless IC card based on the characteristic data includes: determining the sector identifier of the data storage sector used to store the characteristic data based on the characteristic data, and determining the IC card type of the contactless IC card based on the sector identifier and the pre-stored correspondence between the sector identifier and the IC card type.
[0077] Specifically, as mentioned above, the contactless IC card is usually divided into multiple data storage sectors, each of which contains multiple storage blocks, and each storage block can be used to store different data. For contactless IC cards that often need to be upgraded, the characteristic data of the contactless IC cards corresponding to different IC card types can be stored in different storage sectors to improve the convenience of management.
[0078] Take the case where the contactless IC card is a supermarket membership card as an example. The membership card issued by the supermarket contains 15 data storage sectors, each sector has 4 storage blocks, and one storage block can store 16 characters. Based on the membership card issued by the management software A, the card number, user name, balance and user password are stored in different storage blocks of sector 1, and based on the membership card issued by the management software B, the card number, user name, balance and user password are stored in different storage blocks of sector 2. Then, according to the sector identifier of the characteristic data storage sector and the correspondence between the pre-stored sector identifier and the IC card type, the IC card type of the contactless IC card can be determined.
[0079] In the above embodiment, the IC card type of the contactless IC card is determined according to the sector identification of the characteristic data storage sector. The method is simple and convenient, which is conducive to further improving the working efficiency of the contactless IC card data processing method.
[0080] In one embodiment, Figure 3 As shown, the type switching process is performed on the contactless IC card, including step S302 and step S304.
[0081] Step S302: Determine the data storage sector corresponding to the target type according to the target type and the pre-stored correspondence between the sector identifier and the IC card type.
[0082] Specifically, the terminal stores the correspondence between the sector identifier and the IC card type. According to the target type carried in the card reading instruction and the correspondence between the sector identifier and the IC card type, the sector identifier of the data storage sector corresponding to the target type can be determined, and then the data storage sector corresponding to the target type can be determined.
[0083] Step S304: sending the characteristic data of the contactless IC card to the host computer, and after receiving a prompt message from the host computer indicating that the data is correct, writing the characteristic data into a data storage sector corresponding to the target type.
[0084] The host computer is a terminal or server that can obtain the contactless IC card data file and can check the characteristic data based on the file. It can be understood that when the contactless IC card data file is stored in the current terminal, or the current terminal can obtain the contactless IC card data file from the server, the host computer in this embodiment is the current terminal, specifically, other software and hardware modules in the current terminal that are different from the contactless IC card data processing device.
[0085] Specifically, the terminal sends the characteristic data of the contactless IC card to the host computer, which verifies the characteristic data of the contactless IC card one by one based on the contactless IC card data file, and feeds back a prompt message indicating that the data is correct to the terminal after verification. After receiving the prompt message indicating that the data is correct from the host computer, the terminal writes the characteristic data into the data storage sector corresponding to the target type. If the characteristic data is incorrect, the host computer outputs an alarm message to prompt the staff to manually check and update the characteristic data to obtain the updated characteristic data, and feeds back the updated data together with the prompt message indicating that the data is correct to the terminal, and the terminal writes the updated characteristic data into the data storage sector corresponding to the target type. In addition, when writing the characteristic data into the data storage sector corresponding to the target type, the write password can be updated synchronously to improve data security.
[0086] In the above embodiment, the characteristic data in the IC card is first sent to the host computer for verification. After ensuring that the verification is correct, the characteristic data is written into the data storage sector corresponding to the target type. This can ensure the accuracy of the written characteristic data and is conducive to further improving the reliability of the contactless IC card data processing method.
[0087] In one embodiment, sending the characteristic data of the contactless IC card to the host computer includes: sending the characteristic data of the contactless IC card to the host computer through a handle message instruction.
[0088] Among them, a handle is an identifier used to identify an object or item, and can be used to describe a form, resource, control, bitmap, file, etc. A handle message instruction is a program instruction that implements interaction based on a handle message.
[0089] Specifically, the host computer uses the function PostMessage() of the Windows API, defines the communication message number as 5200, defines the operation type readcard, records it in the opertype variable in the changecard.ini file, forms a handle message instruction and sends it to the terminal. After receiving the above handle message instruction, the terminal reads the characteristic data of the contactless IC card, such as the member card number card_id, member balance balance and other information, and pushes these characteristic data back to the host computer through the handle message instruction. Specifically, the characteristic information is stored in the changecard.ini file, and then pushed back to the host computer through PostMessage() and the message number 5200. The host computer reads the changecard.ini file, obtains the corresponding characteristic data, and verifies and updates the characteristic data based on the contactless IC card data file.
[0090] If the data is verified to be correct, the host computer will feedback a prompt message indicating that the data is correct to the terminal, and the terminal will write the characteristic data into the data storage sector corresponding to the target type.
[0091] If the data is incorrect, the host computer will output an alarm message to prompt the staff to manually check and update the feature data, obtain the updated feature data, and define the operation type changecard through PostMessage() and message number 5200, record it in the opertype variable in the changecard.ini file, and form a new handle message instruction together with the prompt information that the data is correct. After receiving the new handle message instruction, the terminal reads the updated feature data carried in the handle message instruction and writes the updated feature data to the data storage sector corresponding to the target type.
[0092] In the above embodiment, data interaction between the terminal and the host computer is realized through handle message instructions, which can improve the security of the data transmission process.
[0093] In one embodiment, before determining the IC card type of the contactless IC card according to the sector identifier and the pre-stored correspondence between the sector identifier and the IC card type, the method further includes: updating the correspondence between the sector identifier and the IC card type. The above steps may be performed before, after, or simultaneously with step S102; the above steps may be performed before, after, or simultaneously with the action of determining the sector identifier of the data storage sector for storing the feature data according to the feature data.
[0094] Specifically, the terminal can update the correspondence between the sector identifier and the IC card type based on the sector identifier and IC card type input by the staff; it can also obtain the latest correspondence between the sector identifier and the IC card type from the host computer after the application environment is updated, and update it to the original correspondence between the sector identifier and the IC card type.
[0095] In the above embodiment, before determining the IC card type of the contactless IC card based on the sector identifier and the pre-stored correspondence between the sector identifier and the IC card type, the correspondence between the sector identifier and the IC card type is updated, which can ensure that the correspondence between the sector identifier and the IC card type covers all IC card types and expand the application scenarios of the contactless IC card data processing method.
[0096] In one embodiment, Figure 4 As shown, after step S106, step S108 is also included: sending feedback information to the upper computer.
[0097] The specific content of the feedback information is not unique, and may include, for example, prompt information on whether the type switching is successful, and / or specific IC card type and feature information.
[0098] Specifically, when the IC card type is inconsistent with the target type, after the contactless IC card is switched, feedback information is sent to the host computer. On the one hand, it is convenient for the host computer to determine whether the contactless IC card type switch is successful; on the other hand, it is convenient for the host computer to perform subsequent processing based on the feedback information, such as updating the contactless IC card data file, and calculating discounts and consumption deductions for the contactless IC card after the type switch based on the cash register software POS front-end system.
[0099] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0100] Based on the same inventive concept, the embodiment of the present application also provides a contactless IC card data processing device for implementing the contactless IC card data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the contactless IC card data processing device provided below can refer to the limitations of the contactless IC card data processing method above, and will not be repeated here.
[0101] In one embodiment, Figure 5 As shown, a non-contact IC card data processing device 500 is provided, comprising a communication module 502, a reading module 504 and a switching module 506. Among them:
[0102] The communication module 502 is used to obtain a card reading instruction; the card reading instruction includes a target type;
[0103] The reading module 504 is used to read the characteristic data of the contactless IC card based on the card reading instruction;
[0104] The switching module 506 is used to determine the IC card type of the contactless IC card according to the characteristic data and judge whether the IC card type is consistent with the target type; and is also used to perform type switching processing on the contactless IC card when the IC card type is inconsistent with the target type.
[0105] In one embodiment, the card reading instruction also includes a reading password for each type of contactless IC card; the reading module 504 is specifically used to: read the stored data of the contactless IC card based on the reading password; and filter out the characteristic data of the contactless IC card from the stored data according to the preset characteristic data type.
[0106] In one embodiment, Figure 6As shown, the contactless IC card data processing device also includes a configuration module 505 for storing the corresponding relationship between the sector identifier and the IC card type. The switching module 506 is specifically used to: determine the sector identifier of the data storage sector for storing the characteristic data according to the characteristic data, and determine the IC card type of the contactless IC card according to the sector identifier and the corresponding relationship between the sector identifier and the IC card type pre-stored in the configuration module 505.
[0107] In one embodiment, the switching module 506 is specifically used to: determine the data storage sector corresponding to the target type according to the target type and the correspondence between the sector identifier and the IC card type pre-stored in the configuration module 505; send the characteristic data of the contactless IC card to the host computer, and after receiving the prompt information from the host computer that the data is correct, write the characteristic data into the data storage sector corresponding to the target type.
[0108] In one embodiment, the switching module 506 is specifically used to send the characteristic data of the contactless IC card to the host computer through a handle message instruction.
[0109] In one embodiment, the configuration module 505 is further used to update the correspondence between the sector identifier and the IC card type.
[0110] In one embodiment, the communication module 502 is further used to send feedback information to a host computer.
[0111] Each module in the above-mentioned contactless IC card data processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0112] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a three-dimensional model display method based on holographic projection is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0113] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0114] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0115] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0116] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0117] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0118] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0119] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A contactless IC card data processing method, characterized in that: include: Obtain a card reading instruction; the card reading instruction includes a target type; the target type matches the current application environment; the card reading instruction also includes a reading password for various types of contactless IC cards; Based on the read password, the stored data of the contactless IC card is read; the contactless IC card refers to an IC membership card used in the retail industry; Filtering the characteristic data of the contactless IC card from the stored data according to a preset characteristic data type; Determine, according to the characteristic data, a sector identifier of a data storage sector for storing the characteristic data, and determine, according to the sector identifier and a pre-stored correspondence between the sector identifier and the IC card type, the IC card type of the contactless IC card; Determining whether the IC card type is consistent with the target type, and performing type switching processing on the contactless IC card if the IC card type is inconsistent with the target type; The method of performing type switching processing on the contactless IC card includes: rewriting the read characteristic data into the contactless IC card according to the configuration requirements of the current application environment, erasing the original characteristic data of the contactless IC card, and correspondingly updating the type information of the contactless IC card; and A conversion algorithm is written into the contactless IC card, and the type information of the contactless IC card is updated accordingly; the conversion algorithm is used to convert the communication protocol and data format when the contactless IC card is applied to the current application environment, so that the contactless IC card matches the requirements of the current application environment.
2. The contactless IC card data processing method according to claim 1, characterized in that: The type switching process of the contactless IC card further includes: Determine the data storage sector corresponding to the target type according to the target type and the pre-stored correspondence between the sector identifier and the IC card type; The characteristic data of the contactless IC card is sent to a host computer, and after receiving a prompt message from the host computer indicating that the data is correct, the characteristic data is written into a data storage sector corresponding to the target type.
3. The contactless IC card data processing method according to claim 2, characterized in that: The step of sending the characteristic data of the contactless IC card to a host computer comprises: The characteristic data of the contactless IC card is sent to the host computer through a handle message instruction.
4. The contactless IC card data processing method according to any one of claims 1 to 3, characterized in that: Before determining the IC card type of the contactless IC card according to the sector identifier and the pre-stored correspondence between the sector identifier and the IC card type, the method further includes: Update the correspondence between sector ID and IC card type.
5. The contactless IC card data processing method according to claim 4, characterized in that: After the non-contact IC card is subjected to type switching processing, the method further includes: Send feedback information to the host computer.
6. A contactless IC card data processing device, characterized in that: include: A communication module, used for obtaining a card reading instruction; the card reading instruction includes a target type; the target type matches the current application environment; The card reading instruction also includes the reading password of various types of contactless IC cards; A reading module, used for reading the stored data of the contactless IC card based on the reading password; filtering the characteristic data of the contactless IC card from the stored data according to a preset characteristic data type; the contactless IC card refers to an IC membership card used in the retail industry; A switching module, used to determine the sector identifier of the data storage sector for storing the characteristic data according to the characteristic data, and determine the IC card type of the contactless IC card according to the sector identifier and the correspondence between the pre-stored sector identifier and the IC card type, and judge whether the IC card type is consistent with the target type; and also used to perform type switching processing on the contactless IC card when the IC card type is inconsistent with the target type; the method of performing type switching processing on the contactless IC card includes: rewriting the read characteristic data into the contactless IC card according to the configuration requirements of the current application environment, erasing the original characteristic data of the contactless IC card, and correspondingly updating the type information of the contactless IC card; and A conversion algorithm is written into the contactless IC card, and the type information of the contactless IC card is updated accordingly; the conversion algorithm is used to convert the communication protocol and data format when the contactless IC card is applied to the current application environment, so that the contactless IC card matches the requirements of the current application environment.
7. The contactless IC card data processing device according to claim 6, characterized in that: The switching module is also used for: Determine the data storage sector corresponding to the target type according to the target type and the pre-stored correspondence between the sector identifier and the IC card type; The characteristic data of the contactless IC card is sent to a host computer, and after receiving a prompt message from the host computer indicating that the data is correct, the characteristic data is written into a data storage sector corresponding to the target type.
8. The contactless IC card data processing device according to claim 7, characterized in that: The switching module is specifically used for: The characteristic data of the contactless IC card is sent to the host computer through a handle message instruction.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the contactless IC card data processing method according to any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the contactless IC card data processing method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Identification card configuration information determination method and device, computer equipment and storage medium
CN111372235A