CN114218968A - Non-contact IC card data processing method, non-contact IC card data processing device, computer equipment and medium - Google Patents
Non-contact IC card data processing method, non-contact IC card data processing device, computer equipment and medium Download PDFInfo
- Publication number
- CN114218968A CN114218968A CN202111397669.5A CN202111397669A CN114218968A CN 114218968 A CN114218968 A CN 114218968A CN 202111397669 A CN202111397669 A CN 202111397669A CN 114218968 A CN114218968 A CN 114218968A
- Authority
- CN
- China
- Prior art keywords
- card
- type
- contact
- data
- contactless
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000012545 processing Methods 0.000 title claims abstract description 47
- 238000003672 processing method Methods 0.000 title claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 33
- 238000004590 computer program Methods 0.000 claims abstract description 23
- 238000013500 data storage Methods 0.000 claims description 30
- 238000004891 communication Methods 0.000 claims description 13
- 238000012216 screening Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 13
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10118—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the sensing being preceded by at least one preliminary step
- G06K7/10138—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the sensing being preceded by at least one preliminary step the step consisting of determining the type of record carrier, e.g. to determine if the record carrier is an RFID tag of the long or short range type, or to determine the preferred communication protocol of the RFID tag
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Toxicology (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Electromagnetism (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computer Security & Cryptography (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Credit Cards Or The Like (AREA)
Abstract
The present application relates to a contactless IC card data processing method, apparatus, computer device, computer-readable storage medium, and computer program product. The non-contact IC card data processing method comprises the following steps: acquiring a card reading instruction; the card reading instruction comprises a target type; reading the characteristic data of the non-contact IC card based on the card reading instruction, and determining the IC card type of the non-contact IC card according to the characteristic data; and judging whether the type of the IC card is consistent with the target type, and performing type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type. By using the method, the non-contact IC card corresponding to the old IC card type can be automatically upgraded according to the new target type, and the working efficiency of the data processing process of the non-contact IC card can be improved.
Description
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method and an apparatus for processing data of a contactless IC card, a computer device, a computer-readable storage medium, and a computer program product.
Background
IC cards, also known as smart cards, are called Integrated Circuit cards (Integrated Circuit cards) and have the advantages of readability, large capacity, encryption capability and the like, and are widely used in various scenes related to consumption of one-Card and Card-holding. The non-contact IC card does not need to be contacted with a card reader when information exchange is carried out, and the use is more convenient.
In the traditional non-contact IC card data processing method, in the process of upgrading the old card, a service person needs to read the information in the card based on the old system corresponding to the old card on the terminal and then rewrite the information in the card into the new non-contact IC card based on the new system on the terminal, and the operation process is complicated. Therefore, the conventional non-contact IC card data processing method has the defect of low working efficiency.
Disclosure of Invention
Therefore, it is necessary to provide a method, an apparatus, a computer device, a computer readable storage medium, and a computer program product for processing data of a contactless IC card, which can improve the work efficiency of the contactless IC card data processing process, in order to solve the problem of low work efficiency of the conventional contactless IC card data processing method.
In a first aspect, the present application provides a contactless IC card data processing method. The method comprises the following steps:
acquiring a card reading instruction; the card reading instruction comprises a target type;
reading the characteristic data of the non-contact IC card based on the card reading instruction, and determining the IC card type of the non-contact IC card according to the characteristic data;
and judging whether the type of the IC card is consistent with the target type, and performing type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type.
In one embodiment, the card reading instruction further includes a reading password of each type of non-contact IC card; the reading of the characteristic data of the non-contact IC card based on the card reading instruction comprises the following steps:
reading storage data of the non-contact IC card based on the reading password;
and screening out the characteristic data of the non-contact IC card from the stored data according to the type of the preset characteristic data.
In one embodiment, the determining the IC card type of the contactless IC card according to the feature data includes:
and determining a sector identifier of a data storage sector for storing the characteristic data according to the characteristic data, and determining the IC card type of the non-contact IC card according to the sector identifier and the corresponding relation between the pre-stored sector identifier and the IC card type.
In one embodiment, the performing type switching processing on the contactless IC card includes:
determining a data storage sector corresponding to the target type according to the target type and the corresponding relation between the pre-stored sector identification and the IC card type;
and sending the characteristic data of the non-contact IC card to an upper computer, and writing the characteristic data into a data storage sector corresponding to the target type after receiving prompt information that the data fed back by the upper computer is error-free.
In one embodiment, the sending the characteristic data of the non-contact IC card to an upper computer includes:
and sending the characteristic data of the non-contact IC card to an upper computer through a handle message instruction.
In one embodiment, before determining the IC card type of the contactless IC card according to the sector identifier and a pre-stored correspondence between the sector identifier and the IC card type, the method further includes:
and updating the corresponding relation between the sector identification and the IC card type.
In one embodiment, after the type switching processing is performed on the contactless IC card, the method further includes:
and sending feedback information to the upper computer.
In a second aspect, the present application provides a contactless IC card data processing apparatus. The device comprises:
the communication module is used for acquiring a card reading instruction; the card reading instruction comprises a target type;
the reading module is used for reading the characteristic data of the non-contact IC card based on the card reading instruction;
the switching module is used for determining the IC card type of the non-contact IC card according to the characteristic data and judging whether the IC card type is consistent with the target type or not; and the non-contact type IC card is also used for carrying out type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type.
In one embodiment, the card reading instruction further includes a reading password of each type of non-contact IC card; the reading module is specifically configured to: reading storage data of the non-contact IC card based on the reading password; and screening out the characteristic data of the non-contact IC card from the stored data according to the type of the preset characteristic data.
In one embodiment, the contactless IC card data processing apparatus further includes a configuration module for storing a correspondence between a sector identifier and an IC card type. The switching module is specifically configured to: and determining a sector identifier of a data storage sector for storing the characteristic data according to the characteristic data, and determining the IC card type of the non-contact IC card according to the sector identifier and the corresponding relation between the sector identifier and the IC card type prestored in the configuration module.
In one embodiment, the switching module is specifically configured to: determining a data storage sector corresponding to the target type according to the target type and a corresponding relation between a sector identifier and an IC card type prestored in the configuration module; and sending the characteristic data of the non-contact IC card to an upper computer, and writing the characteristic data into a data storage sector corresponding to the target type after receiving prompt information that the data fed back by the upper computer is error-free.
In one embodiment, the switching module is specifically configured to: and sending the characteristic data of the non-contact IC card to an upper computer through a handle message instruction.
In one embodiment, the configuration module is further configured to: and updating the corresponding relation between the sector identification and the IC card type.
In one embodiment, the communication module is further configured to: and sending feedback information to the upper computer.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
acquiring a card reading instruction; the card reading instruction comprises a target type;
reading the characteristic data of the non-contact IC card based on the card reading instruction, and determining the IC card type of the non-contact IC card according to the characteristic data;
and judging whether the type of the IC card is consistent with the target type, and performing type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring a card reading instruction; the card reading instruction comprises a target type;
reading the characteristic data of the non-contact IC card based on the card reading instruction, and determining the IC card type of the non-contact IC card according to the characteristic data;
and judging whether the type of the IC card is consistent with the target type, and performing type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
acquiring a card reading instruction; the card reading instruction comprises a target type;
reading the characteristic data of the non-contact IC card based on the card reading instruction, and determining the IC card type of the non-contact IC card according to the characteristic data;
and judging whether the type of the IC card is consistent with the target type, and performing type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type.
According to the non-contact IC card data processing method, the non-contact IC card data processing device, the computer equipment, the computer readable storage medium and the computer program product, the non-contact IC card type is determined by reading the characteristic data of the non-contact IC card and according to the characteristic data, and the non-contact IC card is subjected to type switching processing under the condition that the IC card type is inconsistent with the target type, so that the non-contact IC card corresponding to the old IC card type can be automatically upgraded according to the new target type, and the working efficiency of the non-contact IC card data processing process is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present application, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a data processing method of a contactless IC card according to an embodiment;
FIG. 2 is a flowchart illustrating reading of characteristic data of a contactless IC card based on a card reading command according to an embodiment;
FIG. 3 is a flowchart illustrating a type switching process performed on a contactless IC card according to an embodiment;
FIG. 4 is a flowchart of a data processing method of a contactless IC card according to another embodiment;
FIG. 5 is a block diagram of a contactless IC card data processing apparatus according to an embodiment;
FIG. 6 is a block diagram showing a contactless IC card data processing apparatus according to another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
In one embodiment, as shown in fig. 1, a method for processing data of a contactless IC card is provided, and this embodiment is illustrated by applying the method to a terminal, it is to be understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and is implemented by interaction between the terminal and the server. In this embodiment, the contactless IC card data processing method includes steps S102 to S106.
Step S102: and acquiring a card reading instruction.
The non-contact type IC card may be an IC membership card used in retail such as supermarkets, fruit stores, and clothing stores. The non-contact IC card may 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 different from the non-contact type IC card data processing device in the same terminal executing the non-contact type IC card data processing method. Take the case that the non-contact type IC card is a supermarket membership card and the source of the card reading instruction is the same terminal as an example. The user presents the membership card to the staff, and the staff sends a card reading instruction to the non-contact IC card data processing device of the terminal by clicking a card reading option of a terminal software interface or pressing a card reading button on a terminal keyboard.
Further, the IC card type is an identifier for identifying a specific type of the contactless IC card. The target type refers to an IC card type matched with the current application environment. The type of the IC card can be defined according to actual requirements. Also, a case where the contactless IC card is a supermarket membership card is taken as an example. In the supermarket operation process, a membership card is issued to a customer based on specific supermarket management software. When the supermarket management software is updated, a plurality of types of membership cards issued to customers based on different supermarket management software may exist, and at this time, the software version can be used as the type of the IC card of the non-contact IC card, and the software version of the currently applied supermarket management software can be used as the target type of the non-contact IC card.
Specifically, the card reading instruction includes a target type, and the terminal acquires the card reading instruction and the target type. Furthermore, the terminal can acquire the card reading instruction in an active or passive manner.
Step S104: and reading the characteristic data of the non-contact IC card based on the card reading instruction, and determining the IC card type of the non-contact IC card according to the characteristic data.
The characteristic data of the contactless IC card refers to user information and type information stored in the contactless IC card. The user information includes, but is not limited to, card number, user name, user password, balance, credit, grade, etc., and the type information includes, but is not limited to, IC card model number, card issuance date, software version, etc.
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. Further, the specific manner in which the terminal determines the IC card type of the contactless IC card based on the characteristic data is not unique. For example, the IC card type of the contactless IC card may be determined according to the feature data and the correspondence between the pre-stored feature data and the IC card type; the IC card type of the noncontact IC card may also be determined according to the storage location, format, or protocol type of the characteristic data.
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 for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Step S106: and judging whether the type of the IC card is consistent with the target type, and performing type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type.
Specifically, after the terminal determines the IC card type of the non-contact IC card, the terminal compares the IC card type with the target type included in the card reading command, and determines whether the IC card type and the target type are consistent. If the two are consistent, the non-contact IC card is matched with the current application environment, and the type switching processing is not needed; if the two are not consistent, the non-contact IC card is not matched with the current application environment, and can be applied to the current system only after the type switching processing is needed, and at the moment, the type switching processing is carried out on the non-contact IC card.
The specific manner in which the terminal performs the type switching process on the non-contact IC card is not unique. For example, the read feature data may be rewritten into the contactless IC card after performing format conversion, protocol conversion, or storage location update, for example, according to the configuration requirements of the current application environment, and simultaneously, the original feature data is erased and the type information of the contactless IC card is updated correspondingly; it is also possible to write a conversion algorithm for converting a communication protocol, a data format, and the like so that the contactless IC card matches the requirements of the current application environment, when the contactless IC card is applied to the current application environment, and update the type information of the contactless IC card correspondingly.
The non-contact IC card data processing method reads the characteristic data of the non-contact IC card, determines the IC card type of the non-contact IC card according to the characteristic data, and performs type switching processing on the non-contact IC card under the condition that the IC card type is inconsistent with the target type. On one hand, the non-contact IC card corresponding to the old IC card type can be automatically upgraded according to the new target type, so that the working efficiency of the data processing process of the non-contact IC card can be improved; on the other hand, the same non-contact IC card is shared before and after the type switching processing, which is beneficial to saving cost.
In one embodiment, the card reading instruction further includes a reading password of each type of contactless IC card. As shown in fig. 2, reading the characteristic data of the contactless IC card based on the card reading instruction includes step S202 and step S204.
Step S202: based on the read password, the stored data of the noncontact IC card is read.
Step S204: and screening out the characteristic data of the non-contact IC card from the stored data according to the preset characteristic data type.
For specific definition of the feature data, see above, the detailed description is omitted here. It is understood that the storage data of the contactless IC card contains characteristic data. The storage data specifically comprises a card number, a user name, a user password, a balance, points, a grade, a transaction record, an application system port number, an IC card model, a card issuing date, a storage sector, a software version, a software password and the like. Take the case of a non-contact IC card as a supermarket membership card as an example. The member card issued by the supermarket using management software a stores data such as a card issuing password (for example, 123456), a card reading device (for example, M1 card device in minhua aohan), a port number (for example, USB), a card number, a user name, a user password, a balance and the like, wherein the card number, the user name, the user password and the balance are characteristic data.
Further, reading the password is reading the key. On one hand, since the non-contact IC card stores the user information, in order to ensure information security, data encryption needs to be performed on the non-contact IC card. For different types of contactless IC cards, the corresponding read passwords may not be identical. Contactless IC cards, on the other hand, are typically divided into a plurality of data storage sectors, each of which in turn contains a plurality of memory blocks, each of which may be used to store different data. For the same non-contact type IC card, different types of stored data may have different encryption levels, and the corresponding read passwords may have differences. Therefore, the terminal needs to acquire the reading command and the reading password of each type of non-contact IC card at the same time so as to complete the data reading work smoothly.
Specifically, after the terminal acquires the card reading instruction, based on the card reading password set carried in the card reading instruction, the terminal reads the storage data based on different card reading passwords according to a preset sequence until the storage data on the non-contact IC card is completely read. And screening out storage data containing type parameters corresponding to the type of the characteristic data from the storage data based on the type of the preset characteristic data to obtain the characteristic data of the non-contact IC card. For example, if the type of the feature data is a software version, the type parameter is stored data of the software version, that is, feature data of the contactless IC card.
In the above embodiment, the card reading instruction further includes a reading password of each type of non-contact IC card, and the terminal reads the stored data of the non-contact IC card based on the reading password and then screens out the feature data from the stored data, so that not only is the data prevented from being missed to be read, but also the card reading process can be ensured to be smoothly performed, and the effectiveness of the non-contact IC card data processing method can be improved.
In one embodiment, determining the IC card type of the contactless IC card based on the characteristic data includes: and determining the sector identification of the data storage sector for storing the characteristic data according to the characteristic data, and determining the IC card type of the non-contact IC card according to the sector identification and the corresponding relation between the pre-stored sector identification and the IC card type.
In particular, as previously described, contactless IC cards are typically divided into a plurality of data storage sectors, each data storage sector in turn containing a plurality of memory blocks, each memory block being operable to store different data. For the non-contact IC card which needs to be upgraded frequently, the characteristic data of the non-contact IC card corresponding to different IC card types can be stored in different storage sectors, so that the management convenience is improved.
Take the case of a non-contact IC card as a supermarket membership card as an example. The membership card issued by a supermarket comprises 15 data storage sectors, each sector is provided with 4 storage blocks, and one storage block can store 16 characters in length. Based on the membership card issued by the management software A, the card number, the user name, the balance and the user password are respectively stored in different storage blocks of 1 sector, and based on the membership card issued by the management software B, the card number, the user name, the balance and the user password are respectively stored in different storage blocks of 2 sectors. The IC card type of the non-contact IC card can be determined according to the sector identification of the characteristic data storage sector and the corresponding relation between the pre-stored sector identification and the IC card type.
In the embodiment, the IC card type of the non-contact IC card is determined according to the sector identification of the characteristic data storage sector, the method is simple and convenient, and the working efficiency of the data processing method of the non-contact IC card is further improved.
In one embodiment, as shown in fig. 3, the type switching process is performed for the noncontact IC card, including step S302 and step S304.
Step S302: and determining the data storage sector corresponding to the target type according to the target type and the corresponding relation between the pre-stored sector identification and the IC card type.
Specifically, the terminal stores a corresponding relationship between the sector identifier and the type of the IC card, and according to the target type carried in the card reading instruction and the corresponding relationship between the sector identifier and the type of the IC card, 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 is determined.
Step S304: and sending the characteristic data of the non-contact IC card to an upper computer, and writing the characteristic data into a data storage sector corresponding to the target type after receiving prompt information that the data fed back by the upper computer is error-free.
The upper computer is a terminal or a server which can acquire a non-contact IC card data file and can check the characteristic data based on the file. It can be understood that, when the non-contact IC card data file is stored in the current terminal, or the current terminal can obtain the non-contact IC card data file from the server, the upper computer in this embodiment is the current terminal, and is specifically the current terminal, which is different from other software and hardware modules of the non-contact IC card data processing apparatus.
Specifically, the terminal sends the characteristic data of the non-contact IC card to an upper computer, the upper computer checks the characteristic data of the non-contact IC card one by one based on the non-contact IC card data file, and feeds back the prompt information without data errors to the terminal after the data errors are checked. And after the terminal receives the prompt information that the data fed back by the upper computer is error-free, the characteristic data is written into the data storage sector corresponding to the target type. And if the characteristic data is wrong, the upper computer outputs alarm information to prompt a worker to manually check and update the characteristic data to obtain updated characteristic data, the updated characteristic data and the prompt information with no data errors are fed back to the terminal, and the updated characteristic data is written into a data storage sector corresponding to the target type by the terminal. In addition, when the characteristic data is written into the data storage sector corresponding to the target type, the write password can be synchronously updated, so that the data security is improved.
In the above embodiment, the characteristic data in the IC card is sent to the upper computer for verification, and after the verification is ensured to be correct, the characteristic data is written into the data storage sector corresponding to the target type, so that the accuracy of the written characteristic data can be ensured, which is beneficial to further improving the reliability of the data processing method of the non-contact IC card.
In one embodiment, transmitting the characteristic data of the contactless IC card to the host computer includes: and sending the characteristic data of the non-contact IC card to an upper computer through a handle message instruction.
The handle is an identifier for identifying an object or an item, and may be used to describe a form, a resource, a control, a bitmap, a file, and the like. The handle message instruction is a program instruction that implements an interaction based on the handle message.
Specifically, the upper computer uses a function PostMessage () of a windows API, defines a communication message number as 5200, defines an operation type readcard, records an operattype variable in a changecard. After receiving the handle message instruction, the terminal reads the feature data of the non-contact type IC card, such as information of a member card number card _ id, a member balance and the like, and pushes the feature data back to the upper computer through the handle message instruction, specifically stores the feature information into a changecard. Reading the changecard. ini file by the upper computer to obtain corresponding characteristic data, and checking and updating the characteristic data based on the non-contact IC card data file.
And if the data is checked to be correct, the upper computer feeds back correct prompt information of the data to the terminal, and the terminal writes the characteristic data into a data storage sector corresponding to the target type.
And if the data is wrongly checked, the upper computer outputs alarm information to prompt a worker to manually check and update the characteristic data to obtain updated characteristic data, defines the operation type changecard by the updated data through PostMessage () and a message number 5200, records an operatype variable in a changecard. ini file, and forms a new handle message instruction and feed back the new handle message instruction and the correct prompt information of the data to the terminal. And after receiving the new handle message instruction, the terminal reads the updated characteristic data carried in the handle message instruction and writes the updated characteristic data into the data storage sector corresponding to the target type.
In the embodiment, the data interaction between the terminal and the upper computer is realized through the handle message instruction, so that the safety of the data transmission process can be improved.
In one embodiment, before determining the IC card type of the contactless IC card according to the sector identifier and a pre-stored correspondence between the sector identifier and the IC card type, the method further includes: and updating the corresponding relation between the sector identification and the IC card type. Wherein, the above steps can be executed before, after, or simultaneously with step S102; the above steps may be performed before, after, or in synchronization with the act of determining, from the characterization data, a sector identity for the data storage sector storing the characterization data.
Specifically, the terminal may update the correspondence between the sector identifier and the IC card type based on the sector identifier and the IC card type input by the staff; or after the application environment is updated, the latest corresponding relation between the sector identifier and the IC card type can be obtained from the upper computer and updated to the original corresponding relation between the sector identifier and the IC card type.
In the above 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 correspondence between the sector identifier and the IC card type is updated, so that the correspondence between the sector identifier and the IC card type can be ensured to cover all IC card types, and the application scenario of the contactless IC card data processing method is expanded.
In one embodiment, as shown in fig. 4, after step S106, step S108 is further included: and sending feedback information to the upper computer.
The specific content of the feedback information is not unique, and may include, for example, a prompt message indicating whether the type switching is successful, and/or specific IC card type and feature information.
Specifically, under the condition that the type of the IC card is inconsistent with the target type, the feedback information is sent to the upper computer after the non-contact type IC card is subjected to type switching processing, so that on one hand, the upper computer can conveniently judge whether the non-contact type IC card is successfully switched; on the other hand, the host computer can conveniently perform subsequent processing based on the feedback information, such as updating of a non-contact IC card data file, and performing discount preferential calculation and consumption deduction action on the non-contact IC card after type switching based on the POS foreground system of the cashier software.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a contactless IC card data processing apparatus for implementing the above mentioned contactless IC card data processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so specific limitations in one or more embodiments of the contactless IC card data processing device provided below can be referred to the limitations of the contactless IC card data processing method in the above, and details are not described here.
In one embodiment, as shown in fig. 5, there is provided a contactless IC card data processing apparatus 500 including a communication module 502, a reading module 504, and a switching module 506. Wherein:
a communication module 502 for acquiring a card reading instruction; the card reading instruction comprises a target type;
a reading module 504, configured to read feature data of the contactless IC card based on the card reading instruction;
a switching module 506, configured to determine an IC card type of the non-contact IC card according to the feature data, and determine whether the IC card type is consistent with the target type; and is also used for performing type switching processing on the non-contact type IC card in the case where the type of the IC card does not coincide with the target type.
In one embodiment, the card reading instruction further includes a reading password of each type of non-contact type IC card; the reading module 504 is specifically configured to: reading storage data of the non-contact IC card based on the read password; and screening out the characteristic data of the non-contact IC card from the stored data according to the preset characteristic data type.
In one embodiment, as shown in fig. 6, the contactless IC card data processing apparatus further includes a configuration module 505 for storing a correspondence relationship between the sector identification and the IC card type. The switching module 506 is specifically configured to: according to the feature data, a sector identifier of a data storage sector for storing the feature data is determined, and according to the sector identifier and a corresponding relationship between the sector identifier and the IC card type pre-stored in the configuration module 505, the IC card type of the contactless IC card is determined.
In one embodiment, the switching module 506 is specifically configured to: determining a data storage sector corresponding to the target type according to the target type and a corresponding relationship between a sector identifier and an IC card type pre-stored in the configuration module 505; and sending the characteristic data of the non-contact IC card to an upper computer, and writing the characteristic data into a data storage sector corresponding to the target type after receiving prompt information that the data fed back by the upper computer is error-free.
In one embodiment, the switching module 506 is specifically configured to: and sending the characteristic data of the non-contact IC card to an upper computer through a handle message instruction.
In one embodiment, the configuration module 505 is further configured to: and updating the corresponding relation between the sector identification and the IC card type.
In one embodiment, the communication module 502 is further configured to: and sending feedback information to the upper computer.
Each module in the above-described noncontact IC card data processing apparatus may be entirely or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a holographic projection based three-dimensional model representation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A non-contact IC card data processing method is characterized by comprising the following steps:
acquiring a card reading instruction; the card reading instruction comprises a target type;
reading the characteristic data of the non-contact IC card based on the card reading instruction, and determining the IC card type of the non-contact IC card according to the characteristic data;
and judging whether the type of the IC card is consistent with the target type, and performing type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type.
2. The contactless IC card data processing method according to claim 1, wherein the card reading instruction further includes a reading password for each type of contactless IC card; the reading of the characteristic data of the non-contact IC card based on the card reading instruction comprises the following steps:
reading storage data of the non-contact IC card based on the reading password;
and screening out the characteristic data of the non-contact IC card from the stored data according to the type of the preset characteristic data.
3. A contactless IC card data processing method according to claim 2, wherein the determining of the IC card type of the contactless IC card based on the feature data includes:
and determining a sector identifier of a data storage sector for storing the characteristic data according to the characteristic data, and determining the IC card type of the non-contact IC card according to the sector identifier and the corresponding relation between the pre-stored sector identifier and the IC card type.
4. A contactless IC card data processing method according to claim 3, wherein said performing type switching processing on the contactless IC card includes:
determining a data storage sector corresponding to the target type according to the target type and the corresponding relation between the pre-stored sector identification and the IC card type;
and sending the characteristic data of the non-contact IC card to an upper computer, and writing the characteristic data into a data storage sector corresponding to the target type after receiving prompt information that the data fed back by the upper computer is error-free.
5. The contactless IC card data processing method according to claim 4, wherein the sending of the characteristic data of the contactless IC card to an upper computer includes:
and sending the characteristic data of the non-contact IC card to an upper computer through a handle message instruction.
6. The method according to any one of claims 3 to 5, wherein before determining 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, the method further comprises:
and updating the corresponding relation between the sector identification and the IC card type.
7. The contactless IC card data processing method according to claim 6, further comprising, after the type switching processing for the contactless IC card,:
and sending feedback information to the upper computer.
8. A noncontact IC card data processing apparatus characterized by comprising:
the communication module is used for acquiring a card reading instruction; the card reading instruction comprises a target type;
the reading module is used for reading the characteristic data of the non-contact IC card based on the card reading instruction;
the switching module is used for determining the IC card type of the non-contact IC card according to the characteristic data and judging whether the IC card type is consistent with the target type or not; and the non-contact type IC card is also used for carrying out type switching processing on the non-contact type IC card under the condition that the type of the IC card is inconsistent with the target type.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the contactless IC card data processing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the contactless IC card data processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111397669.5A CN114218968A (en) | 2021-11-23 | 2021-11-23 | Non-contact IC card data processing method, non-contact IC card data processing device, computer equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111397669.5A CN114218968A (en) | 2021-11-23 | 2021-11-23 | Non-contact IC card data processing method, non-contact IC card data processing device, computer equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114218968A true CN114218968A (en) | 2022-03-22 |
Family
ID=80698007
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111397669.5A Pending CN114218968A (en) | 2021-11-23 | 2021-11-23 | Non-contact IC card data processing method, non-contact IC card data processing device, computer equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114218968A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040018038A (en) * | 2002-08-24 | 2004-03-02 | 주식회사 에스원 | Noncontact smart card for switching multi-types and method of the same and a recording means |
WO2009065317A1 (en) * | 2007-11-23 | 2009-05-28 | China Unionpay Co., Ltd. | Non-touch ic card reading/writing system and non-touch ic card reader |
CN103021081A (en) * | 2012-11-21 | 2013-04-03 | 江苏鸿信系统集成有限公司 | Method for realizing communication and interaction between non-contact integrated circuit (IC) cards and card reading terminal on basis of multi-card fusion application |
US20150137940A1 (en) * | 2011-09-15 | 2015-05-21 | Bing Yi Du | Device, system and method for non-contact security information interaction |
CN111372235A (en) * | 2020-02-21 | 2020-07-03 | 深圳市广和通无线股份有限公司 | Identification card configuration information determination method and device, computer equipment and storage medium |
CN112307049A (en) * | 2020-10-30 | 2021-02-02 | 中国平安财产保险股份有限公司 | Method, device and equipment for separating read from write of database and readable storage medium |
CN112468975A (en) * | 2020-11-30 | 2021-03-09 | 中电信用服务有限公司 | Management method, device, medium and electronic equipment of analog card |
-
2021
- 2021-11-23 CN CN202111397669.5A patent/CN114218968A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040018038A (en) * | 2002-08-24 | 2004-03-02 | 주식회사 에스원 | Noncontact smart card for switching multi-types and method of the same and a recording means |
WO2009065317A1 (en) * | 2007-11-23 | 2009-05-28 | China Unionpay Co., Ltd. | Non-touch ic card reading/writing system and non-touch ic card reader |
US20150137940A1 (en) * | 2011-09-15 | 2015-05-21 | Bing Yi Du | Device, system and method for non-contact security information interaction |
CN103021081A (en) * | 2012-11-21 | 2013-04-03 | 江苏鸿信系统集成有限公司 | Method for realizing communication and interaction between non-contact integrated circuit (IC) cards and card reading terminal on basis of multi-card fusion application |
CN111372235A (en) * | 2020-02-21 | 2020-07-03 | 深圳市广和通无线股份有限公司 | Identification card configuration information determination method and device, computer equipment and storage medium |
CN112307049A (en) * | 2020-10-30 | 2021-02-02 | 中国平安财产保险股份有限公司 | Method, device and equipment for separating read from write of database and readable storage medium |
CN112468975A (en) * | 2020-11-30 | 2021-03-09 | 中电信用服务有限公司 | Management method, device, medium and electronic equipment of analog card |
Non-Patent Citations (1)
Title |
---|
高幼年等: "基于非接触式IC卡的信息管理系统", 现代电子技术, no. 16, 1 April 2006 (2006-04-01), pages 49 - 50 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6488211B1 (en) | System and method for flexibly loading in IC card | |
US20150046336A1 (en) | System and method of using a secondary screen on a mobile device as a secure and convenient transacting mechanism | |
US11762646B2 (en) | Securely updating software on connected electronic devices | |
US20140158759A1 (en) | Methods and systems for merchant selection of network routing | |
EP4177736A1 (en) | Compressed firmware update | |
JPH11504748A (en) | Terminal and method for self-diagnosis or monitoring, and portable goods used in the terminal or method | |
CN116737137A (en) | Business process generation method, device, computer equipment and storage medium | |
CN104282098B (en) | The making out an invoice and copy tax process upgrade method of a kind of tax-controlling device | |
CN115271586A (en) | Bill of material generation method and device, computer equipment and storage medium | |
US20180330355A1 (en) | Portable device with local verification data | |
CN114218968A (en) | Non-contact IC card data processing method, non-contact IC card data processing device, computer equipment and medium | |
CN115017543A (en) | Flash memory data reading method and device, computer equipment and storage medium | |
US11410157B2 (en) | Programmable card for token payment and systems and methods for using programmable card | |
CN104267975B (en) | A kind of processing method and device of expanded application data, card | |
JP7232682B2 (en) | Electronic money payment terminal, electronic money payment method and program | |
CN114186570A (en) | Operation and maintenance method and device for integrated card reader equipment, computer equipment and storage medium | |
CN113421084A (en) | Bus card processing method, device, equipment and readable storage medium | |
JP2011060136A (en) | Portable electronic apparatus, and data management method in the same | |
KR102640647B1 (en) | Electronic device that performs adult authentication to identify minors in cashierless stores and its operation method | |
CN109886050B (en) | Card information acquisition method and device, computer equipment and storage medium | |
CN117198375A (en) | Test method, device and computer equipment | |
US20240202716A1 (en) | Configurable payment instrument | |
CN114298677B (en) | Magnetic medium processing method, apparatus, device, medium, and computer program product | |
KR20200126792A (en) | Card including qr code and personal portable device for reading information contained in the same | |
CN113902438A (en) | Hardware wallet data synchronization method and device and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |