Magnetic card reader and magnetic card data verification method

By setting up a multi-head structure and time stamp verification with an inclined placement in the magnetic card reader, the problems of heavy and information security of the multi-track magnetic card reader are solved, and the portability and information security are improved.

CN119314524APending Publication Date: 2025-01-14SHENZHEN XINGUODU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411184706.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The existing multi-track magnetic card reader is thick and cannot realize repeated verification of magnetic card information, affecting portability and safety.

Method used

Design a magnetic card reader, including a card reader body, a first magnetic head, a second magnetic head and a third magnetic head, and is placed obliquely between the magnetic heads to read multi-track magnetic card information, and pass time stamp verification and data preprocessing. Ensure the accuracy and security of information.

Benefits of technology

The thickness of the card reader is reduced, portability is improved, and the security of magnetic card information is improved through multiple verifications to ensure the normal progress of the transaction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119314524A_ABST
    Figure CN119314524A_ABST
Patent Text Reader

Abstract

The invention discloses a magnetic card reader and a magnetic card data verification method, which can effectively reduce the thickness of a multi-track magnetic card reader, improve the use experience of a user, are convenient to carry, read magnetic card information through multiple magnetic heads, can perform repeated verification on the information on a magnetic card, and improve the safety of the magnetic card information. A card reading area is arranged on one side of a card reader body, a first magnetic head, a second magnetic head and a third magnetic head are arranged in the card reading area, the second magnetic head is arranged between the first magnetic head and the third magnetic head, the first magnetic head, the second magnetic head and the third magnetic head are obliquely arranged, and a magnetic track is arranged on the first magnetic head. The second magnetic head and the third magnetic head are each provided with two magnetic tracks, and the first magnetic head, the second magnetic head and the third magnetic head are matched with the card reader body to be used for reading magnetic card information on the magnetic card.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of magnetic card readers, and in particular to a magnetic card reader and a magnetic card data verification method. Background Art

[0002] As a convenient and economical data storage medium, magnetic cards play an irreplaceable role in many fields such as finance, post and telecommunications, commerce, and transportation. Magnetic cards record information through magnetic stripes and are low-cost, easy to carry, and durable. Therefore, they are widely used. With the continuous advancement of magnetic card technology and the diversification of application scenarios, multi-track magnetic cards have gradually become the mainstream magnetic card type in the market.

[0003] Multi-track magnetic cards can store more types of information, such as identity authentication, financial transaction records, etc. The popularization of multi-track magnetic cards has put forward higher requirements for magnetic card readers. In the context of the popularization of multi-track magnetic cards, many types of multi-track magnetic card readers have appeared on the market. Due to the design requirements of multi-track magnetic heads, the magnetic heads usually need to be placed vertically to cover all tracks, resulting in the thickness of existing multi-track magnetic card readers being relatively large. When the card reader is used as a handheld device, the heavy card reader not only affects the user experience, but also limits its portability. In addition, when reading magnetic card information, the magnetic card information is read once, and repeated verification of magnetic card information cannot be achieved, which makes the magnetic card information have certain security risks. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a magnetic card reader and a magnetic card data verification method.

[0005] The technical solution provided in this application is described below:

[0006] The first aspect of the present application provides a magnetic card reader, comprising: a card reader body, a first magnetic head, a second magnetic head and a third magnetic head;

[0007] A card reading area is provided on one side of the card reader body, and the first magnetic head, the second magnetic head and the third magnetic head are provided in the card reading area, the second magnetic head is provided between the first magnetic head and the third magnetic head, and the first magnetic head, the second magnetic head and the third magnetic head are placed obliquely therebetween, a magnetic track is provided on the first magnetic head, and two magnetic tracks are provided on the second magnetic head and the third magnetic head, and the first magnetic head, the second magnetic head and the third magnetic head cooperate with the card reader body to read the magnetic card information on the magnetic card.

[0008] Optionally, a guide groove is provided in the card reading area, a groove opening of the guide groove is greater than a thickness of the magnetic card, and the guide groove is inclined along the distribution of the first magnetic head, the second magnetic head and the third magnetic head.

[0009] Optionally, the first magnetic head is arranged on an upper side of the second magnetic head, and the third magnetic head is arranged on a lower side of the second magnetic head.

[0010] Optionally, the first magnetic head, the second magnetic head and the third magnetic head are arranged at equal intervals.

[0011] Optionally, one track of the second magnetic head is the same as a track of the first magnetic head, and another track of the second magnetic head is the same as a track of the third magnetic head.

[0012] Optionally, the two magnetic tracks of the second magnetic head are the same as the two magnetic tracks of the third magnetic head, and the two magnetic tracks of the second magnetic head are different from the tracks of the first magnetic head.

[0013] The second aspect of the present application provides a magnetic card reader data verification method, which is applied to the magnetic card reader according to the first aspect and any one of the first aspects, comprising:

[0014] Acquire original card reading data through the first magnetic head, the second magnetic head and the third magnetic head;

[0015] Obtain a first timestamp, a second timestamp, and a third timestamp, wherein the first timestamp is the time when the first magnetic head reads the original card reading data, the second timestamp is the time when the second magnetic head reads the original card reading data, and the third timestamp is the time when the third magnetic head reads the original card reading data;

[0016] Determine whether the first timestamp, the second timestamp, and the third timestamp satisfy timing verification;

[0017] If yes, preprocess the original card reading data and obtain preprocessed data;

[0018] respectively reading first data information of the first magnetic head, second data information of the second magnetic head and third data information of the third magnetic head in the preprocessed data;

[0019] Determine the data information of each track of the first magnetic head, the second magnetic head and the third magnetic head on the same track according to the first data information, the second data information and the third data information;

[0020] Determining whether the data information of each track on the same track is the same;

[0021] If yes, then confirm that the card reading data verification is passed.

[0022] Optionally, performing data preprocessing on the original card reading data and obtaining preprocessed data includes:

[0023] The pre-processed data is obtained after denoising, filtering and correction processing is performed on the original card reading data.

[0024] Optionally, the reading sequence priority of the first magnetic head is higher than the reading sequence priority of the second magnetic head, and the reading sequence priority of the second magnetic head is higher than the reading sequence priority of the third magnetic head, and determining whether the first timestamp, the second timestamp, and the third timestamp satisfy timing verification includes:

[0025] Determine whether the second timestamp is greater than or equal to the first timestamp, and if not, issue a timing abnormality prompt; if yes, determine whether the third timestamp is greater than or equal to the second timestamp;

[0026] If it is determined that the third timestamp is greater than or equal to the second timestamp, it is determined that the timing verification is satisfied.

[0027] Optionally, after issuing a timing abnormality prompt, the method further includes:

[0028] Freeze the first data information, the second data information and the third data information;

[0029] The frozen first data information, the second data information and the third data information are uploaded to a cloud server for storage.

[0030] A third aspect of the present application provides a magnetic card reader data verification system, the system comprising:

[0031] A first reading unit, used for acquiring original card reading data through a first magnetic head, a second magnetic head and a third magnetic head;

[0032] A first acquisition unit is used to acquire a first timestamp, a second timestamp, and a third timestamp, wherein the first timestamp is the time when the first magnetic head reads the original card reading data, the second timestamp is the time when the second magnetic head reads the original card reading data, and the third timestamp is the time when the third magnetic head reads the original card reading data;

[0033] A first judging unit, configured to judge whether the first timestamp, the second timestamp and the third timestamp satisfy timing verification;

[0034] A second acquisition unit is configured to perform data preprocessing on the original card reading data and acquire preprocessed data when the first judgment unit determines that the first timestamp, the second timestamp and the third timestamp satisfy the timing verification;

[0035] a second reading unit, configured to read first data information of the first magnetic head, second data information of the second magnetic head, and third data information of the third magnetic head in the preprocessed data respectively;

[0036] a determining unit, configured to determine data information of each track of the first magnetic head, the second magnetic head and the third magnetic head on the same track according to the first data information, the second data information and the third data information;

[0037] A second judging unit, used for judging whether the data information of each track on the same track is the same;

[0038] The confirmation unit is used to confirm that the card reading data verification is successful when the second judgment unit determines that the data information of each track in the same track is the same.

[0039] A fourth aspect of the present application provides a magnetic card reader data verification device, the device comprising: a processor, a memory, an input and output unit, and a bus;

[0040] The processor is connected to the memory, the input and output unit, and the bus;

[0041] The memory stores a program, and the processor calls the program to execute the method as described in the second aspect and any one of the second aspects above.

[0042] The fifth aspect of the present application further provides a computer-readable storage medium, on which a program is stored. When the program is run on a computer, the computer executes the method as described in any one of the second aspects and the second aspect above.

[0043] It can be seen from the above technical solutions that this application has the following advantages:

[0044] The magnetic card reader of the present application is provided with a card reader body, a first magnetic head, a second magnetic head and a third magnetic head; wherein a card reading area is provided on one side of the card reader body, and the first magnetic head, the second magnetic head and the third magnetic head are provided in the card reading area, the second magnetic head is provided between the first magnetic head and the third magnetic head, and the first magnetic head, the second magnetic head and the third magnetic head are placed obliquely therebetween, a magnetic track is provided on the first magnetic head, and two magnetic tracks are provided on the second magnetic head and the third magnetic head, and the first magnetic head, the second magnetic head and the third magnetic head cooperate with the card reader body to read the magnetic card information on the magnetic card.

[0045] It can be further known that by placing the first magnetic head, the second magnetic head and the third magnetic head at an angle in the card reading area, compared with the vertical placement of the traditional magnetic heads, the thickness of the multi-track magnetic card reader can be effectively reduced, the user experience is improved and it is convenient to carry, and by reading the magnetic card information through multiple magnetic heads, the information on the magnetic card can be repeatedly checked, thereby improving the security of the magnetic card information and ensuring the normal progress of the transaction process. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0047] Figure 1 This is a schematic diagram of the overall structure of the magnetic card reader of this application;

[0048] Figure 2 A schematic diagram of the card reading area in the magnetic card reader of the present application;

[0049] Figure 3 A schematic diagram of another embodiment of the magnetic card reader data verification method of the present application;

[0050] Figure 4 A schematic diagram of another embodiment of the magnetic card reader data verification method of the present application;

[0051] Figure 5 A schematic diagram of another embodiment of the magnetic card reader data verification method of the present application;

[0052] Figure 6 A schematic diagram of an embodiment of a magnetic card reader data verification system of the present application;

[0053] Figure 7 A schematic diagram of an embodiment of a magnetic card reader data verification device of the present application;

[0054] In the figure: 1. Card reader body; 2. Card reading area; 3. First magnetic head; 4. Second magnetic head; 5. Third magnetic head; 6. Guide groove. DETAILED DESCRIPTION

[0055] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0056] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0057] In the description of the present invention, it should be understood that descriptions involving orientation, such as up, down, left, right, front, back, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0058] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0059] In the description of the present invention, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution. In addition, the identification of specific steps below does not represent a limitation on the order of steps and execution logic, and the execution order and execution logic between each step should be understood and inferred with reference to the contents described in the embodiment.

[0060] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a magnetic card reader and a magnetic card data verification method.

[0061] See also Figure 1 to Figure 2In the first aspect of the present application, a magnetic card reader is provided, comprising: a card reader body 1, a first magnetic head 3, a second magnetic head 4 and a third magnetic head 5; a card reading area 2 is arranged on one side of the card reader body 1, and the first magnetic head 3, the second magnetic head 4 and the third magnetic head 5 are arranged in the card reading area 2, the second magnetic head 4 is arranged between the first magnetic head 3 and the third magnetic head 5, and the first magnetic head 3, the second magnetic head 4 and the third magnetic head 5 are placed obliquely, a magnetic track is arranged on the first magnetic head 3, and two magnetic tracks are arranged on the second magnetic head 4 and the third magnetic head 5, and the first magnetic head 3, the second magnetic head 4 and the third magnetic head 5 cooperate with the card reader body 1 to read the magnetic card information on the magnetic card.

[0062] First, the functions of each component are introduced:

[0063] Card reader body 1: It integrates a circuit board and necessary electronic components to process the magnetic card information read by the magnetic head and transmit data with external devices such as computers and POS machines through interfaces such as USB and serial ports. The card reading area 2 set on one side of the card reader body 1 is the designated location where the user places the magnetic card for information reading.

[0064] Among them, the card reader body 1 adopts a solid shell material to protect the internal electronic components from external physical damage, such as impact, dust, etc., and a circuit board is integrated inside, which contains components such as a microprocessor, a signal amplifier, and a decoder. These components work together to process the analog signal from the magnetic head and convert it into a digital signal, and finally communicate with external devices through an interface.

[0065] The first magnetic head 3: The first magnetic head 3 is arranged in the card reading area 2. A single track is arranged on the first magnetic head 3. The first magnetic head 3 is specifically used to read the information of the magnetic card swiped through the first track. The first track is usually used to read the basic information of the magnetic card, such as the card number, expiration date, etc.

[0066] Second magnetic head 4: The second magnetic head 4 is located between the first magnetic head 3 and the third magnetic head 5, and by placing the first magnetic head 3, the second magnetic head 4 and the third magnetic head 5 obliquely in the card reading area 2, compared with the vertical placement of the traditional magnetic head, the thickness of the multi-track magnetic card reader can be effectively reduced, the user experience is improved and it is convenient to carry. The second magnetic head 4 is used to read the information of the magnetic card swiped through the second and third tracks. The second and third tracks can usually read more detailed data, such as the cardholder's name, account information, security code, etc., and have higher security requirements. Among them, the second and third tracks on the second magnetic head 4 can process the information of the two magnetic stripes on the magnetic card at the same time, which increases the function and flexibility of the card reader.

[0067] The third magnetic head 5: The third magnetic head 5 is also located in the card reading area 2, and is also used to read the information of the second track and the third track of the magnetic card. The third magnetic head 5 can enhance the redundancy or compatibility of the information reading of the second track and the third track, ensuring that in specific circumstances, such as when the second magnetic head 4 is damaged or the information is unclear, the required information on the second track and the third track can still be obtained, and the obtained information can also be repeatedly checked.

[0068] It should be noted that, since the same track may exist between the first magnetic head 3 and the second magnetic head 4 and between the first magnetic head 3 and the third magnetic head 5, the same information of the magnetic card can be obtained through the same track. Therefore, when repeated verification is performed later, in addition to verifying the information of the second magnetic head 4 and the second magnetic head 5 having the same track, it is also necessary to verify the magnetic card information obtained by the first track on the first magnetic head 3 with the magnetic card information obtained by the second magnetic head 4 or the second magnetic head 5, so as to ensure the integrity of the data.

[0069] The working principle of the whole equipment:

[0070] When a magnetic card is inserted into the card reading area 2 of the card reader body 1, the first magnetic head 3 first contacts the magnetic card and reads the information of the first track. Then, the magnetic card continues to move forward, and when it passes the second magnetic head 4, the second magnetic head 4 reads the information of the second track and the information of the third track at the same time. Finally, the magnetic card continues to move forward, and when it passes the third magnetic head 5, the third magnetic head 5 reads the information of the second track and the information of the third track at the same time. During the reading process, each magnetic head converts the magnetic signal on the magnetic card into an electrical signal and processes it through the circuit board in the card reader body 1. The microprocessor or controller on the circuit board parses these electrical signals, extracts the data on the magnetic card, and converts it into a readable or transmittable format. Finally, the processed data is transmitted to an external device through the USB interface on the card reader body 1 for further use or processing.

[0071] Optionally, a guide groove 6 is provided in the card reading area 2 , the groove opening of the guide groove 6 is greater than the thickness of the magnetic card, and the guide groove 6 is inclined along the distribution of the first magnetic head 3 , the second magnetic head 4 and the third magnetic head 5 .

[0072] In the embodiment of the present application, the slot opening of the guide slot 6 is larger than the thickness of the magnetic card, so that the magnetic card can be easily inserted into the card reading area 2. After the magnetic card enters the guide slot 6, the two side walls of the slot will play a role in positioning and guiding, ensuring that the magnetic card can move smoothly along the predetermined path without deviation or shaking. In addition, the magnetic card will not be excessively squeezed or scratched during the insertion and movement process, thereby avoiding the risk of magnetic strip damage or information loss.

[0073] The guide groove 6 is arranged obliquely along the distribution of the first magnetic head 3, the second magnetic head 4 and the third magnetic head 5, so that when the magnetic card passes through the magnetic head, the contact between the magnetic head and the magnetic card can be ensured to be stable and uniform, thereby improving the accuracy and quality of reading.

[0074] It can be further known that the guide slot 6 makes the insertion process of the magnetic card smoother and more intuitive. The user does not need to worry about the position or angle of the magnetic card. The user only needs to simply insert the magnetic card into the guide slot 6. The convenience is extremely high, which greatly improves the user's operating experience and satisfaction. And because the guide slot 6 ensures that the magnetic card moves smoothly along the predetermined path, the magnetic head can read the information on the magnetic card more quickly and accurately. This not only shortens the reading time, but also reduces the reading failure rate caused by shaking or deviation of the magnetic card.

[0075] Optionally, the first magnetic head 3 is arranged on the upper side of the second magnetic head 4 , and the third magnetic head 5 is arranged on the lower side of the second magnetic head 4 , and the first magnetic head 3 , the second magnetic head 4 and the third magnetic head 5 are arranged at equal intervals.

[0076] In the embodiment of the present application, the first magnetic head 3 is arranged on the upper side of the second magnetic head 4, and is used to read the information of the magnetic card swiping through the first track. The second magnetic head 4 is located between the first magnetic head 3 and the third magnetic head 5, and is the center position of the three magnetic heads, and is used to read the information of the magnetic card swiping through the second track and the third track. The third magnetic head 5 is arranged on the lower side of the second magnetic head 4, and is also used to read the information of the magnetic card swiping through the second track and the third track. Among them, the first magnetic head 3, the second magnetic head 4 and the third magnetic head 5 are arranged at equal intervals. The equal interval arrangement helps to ensure that the magnetic card is subjected to uniform contact force when passing through the card reading area 2, and the equal interval can avoid the magnetic card deflection or jamming caused by uneven head spacing, thereby improving the stability and accuracy of reading.

[0077] Optionally, one track of the second magnetic head 4 is the same as the track of the first magnetic head 3 , and another track of the second magnetic head 4 is the same as one track of the third magnetic head 5 .

[0078] In the embodiment of the present application, one track on the second magnetic head 4 is the same as the track on the first magnetic head 3, and both can be used to read the information of the magnetic card swiped through the first track. By sensing the corresponding magnetic signal on the magnetic card, it is converted into an electrical signal and then processed. One track on the second magnetic head 4 and the track on the first magnetic head 3 are used to read the basic information of the magnetic card, such as the card number and the validity period of the magnetic card, such as the cardholder's name, card number, etc.

[0079] Optionally, the two tracks of the second magnetic head 4 are the same as the two tracks of the third magnetic head 5 , and the two tracks of the second magnetic head 4 are different from the tracks of the first magnetic head 3 .

[0080] In an embodiment of the present application, the first magnetic head 3 has a track for reading basic information of the magnetic card. The basic information read is different from the information read by the second magnetic head 4 and the third magnetic head 5. The second magnetic head 4 and the third magnetic head 5 have the same track configuration and can read the same data segment on the magnetic card. The magnetic card information read by the second magnetic head 4 and the third magnetic head 5 is used to improve the redundancy of magnetic card reading and the accuracy of data verification.

[0081] See also Figure 3 The second aspect of the present application provides an embodiment of a magnetic card reader data verification method, comprising:

[0082] Step S101, obtaining original card reading data through the first magnetic head, the second magnetic head and the third magnetic head;

[0083] Step S102, obtaining a first timestamp, a second timestamp, and a third timestamp, wherein the first timestamp is the time when the first magnetic head reads the original card reading data, the second timestamp is the time when the second magnetic head reads the original card reading data, and the third timestamp is the time when the third magnetic head reads the original card reading data;

[0084] Step S103, determining whether the first timestamp, the second timestamp and the third timestamp satisfy the timing verification information;

[0085] Step S104: If yes, preprocess the original card reading data and obtain preprocessed data;

[0086] Step S105, respectively reading first data information of the first magnetic head, second data information of the second magnetic head and third data information of the third magnetic head in the preprocessed data;

[0087] Step S106, determining the data information of each track of the first magnetic head, the second magnetic head and the third magnetic head on the same track according to the first data information, the second data information and the third data information;

[0088] Step S107, determining whether the data information of each track in the same track is the same;

[0089] Step S108: If yes, confirm that the card reading data verification is passed.

[0090] The magnetic card reader data verification method of the present invention first obtains the original card reading data through the first magnetic head, the second magnetic head and the third magnetic head, with the purpose of reading the correct data on the magnetic card. After obtaining the original card reading data, further, a first timestamp, a second timestamp and a third timestamp are obtained. It should be noted that the first timestamp is the time when the first magnetic head obtains the original card reading, the second timestamp is the time when the second magnetic head obtains the original card reading, and the third timestamp is the time when the third magnetic head obtains the original card reading. Then, the first timestamp, the second timestamp and the third timestamp are judged for timing verification. After it is determined that the timing requirements are met, the original card reading data will be preprocessed and preprocessed data will be obtained; then, the first data information of the first magnetic head, the second data information of the second magnetic head and the third data information of the third magnetic head in the preprocessed data are read respectively, wherein, when it is determined that the first data information is included in the second data information or the third data information, it is further judged whether the data information between the second data information and the third data information is the same; if they are the same, it means that the read data is the same, and it is confirmed that the card reading data verification is passed.

[0091] In step S101, the original card reading data is obtained through the three magnetic heads on the magnetic card reader. Specifically, the three magnetic heads on the magnetic card reader are used to read the information of the magnetic card swiped through different tracks. The tracks of the magnetic heads are usually used to read information containing a series of codes, such as the card number, expiration date, etc.

[0092] In step S102, the corresponding timestamp is read, wherein the first timestamp is the time when the first magnetic head reads the original card reading data, the second timestamp is the time when the second magnetic head reads the original card reading data, and the third timestamp is the time when the third magnetic head reads the original card reading data. Specifically, by obtaining the timestamp, the reading time of each head data can be clearly recorded. The timestamp is the basic data for the subsequent timing verification step, which is used to determine whether the order of the data read by the magnetic head meets the expectations, thereby ensuring the integrity and accuracy of the data. It should be noted that the software inside the card reader will record the corresponding timestamp when the magnetic head reads the data, and these timestamp data will be saved in the memory of the card reader for use in subsequent steps.

[0093] In step S103, these timestamps are used to determine whether the order in which the magnetic head reads data is as expected, and whether the timing verification is satisfied. Through the timing verification, it is possible to check whether the magnetic card reader operates in the correct order when reading the magnetic card, thereby ensuring that the read data is complete and accurate. For example, if the time of the first magnetic head, the time of the second magnetic head, and the time of the third magnetic head are read in sequence, if the timing verification is correct, the value of the first timestamp is less than the value of the second timestamp, and the value of the second timestamp is less than the value of the third timestamp, otherwise the timing verification fails.

[0094] If the timing verification passes, it means that the magnetic card reader has read the data on the magnetic card in the correct order, and you can continue to perform the subsequent data verification steps; if the timing verification fails, it means that the magnetic card reader may have an error when reading the magnetic card, resulting in an incorrect reading order. At this time, you need to take appropriate measures to deal with this problem, such as re-reading the magnetic card, checking whether the hardware and software of the card reader are working properly, etc.

[0095] In step S104, after passing the timing verification, it means that the original card reading data read is correct, but because the original data read is unprocessed, it may contain some noise or redundant information. After reading the original card reading data on the magnetic card, the original card reading data obtained must be preprocessed to obtain preprocessed data that is easier to process and verify. Specifically, the original card reading data may contain noise, errors or redundant information. The preprocessing is to remove these bad data to ensure the quality of the data for subsequent processing. Among them, different tracks or magnetic cards may use different encoding formats. Preprocessing needs to convert all data into a unified format to facilitate unified processing in subsequent steps. And the information on the magnetic card is usually stored in a coded form. Preprocessing needs to decode these codes, convert them into a readable data format, and parse out specific information fields.

[0096] Specific operations for data preprocessing:

[0097] Signal amplification and filtering: Since the signal read by the head is weak and contains high-frequency noise, the preprocessing first needs to amplify and filter the signal to improve the signal-to-noise ratio.

[0098] Application of decoding algorithm: According to the encoding standard adopted on the magnetic card (such as ISO / IEC 7811 standard), the corresponding decoding algorithm is applied to decode the signal, which involves converting the analog signal into a digital signal and performing bit synchronization and frame synchronization operations.

[0099] Data verification and correction: Data errors or losses may occur during the decoding process. Preprocessing requires the implementation of data verification mechanisms, such as parity check, cyclic redundancy check, etc., to detect and correct these errors.

[0100] Information extraction and formatting: After decoding and verification, preprocessing needs to extract specific information fields from the decoded data, such as card number, expiration date, etc., and organize them according to a certain format.

[0101] After preprocessing, the original card reading data is converted into preprocessed data with clear structure and unified format. The preprocessed data not only removes noise and redundant information, but also undergoes decoding and verification processing to ensure the accuracy and reliability of the data.

[0102] In step S105, data information of the first head, the second head and the third head are read from the preprocessed data respectively, that is, the preprocessed data is separated into data information of tracks of different heads for subsequent verification and processing respectively, wherein the first head has one track, and the second head and the third head each have two tracks.

[0103] In the preprocessing data, it is necessary to identify the data parts belonging to the first head, the second head and the third head respectively, which can be achieved by marking or separating the data in the preprocessing process. Once the data parts of each head are identified, the corresponding data information can be extracted. The data information includes parsing specific fields from the data of each head, such as card number, name, expiration date, etc.

[0104] In step S106, the data information of each track of the first head, the second head and the third head on the same track is determined based on the first data information, the second data information and the third data information. The purpose is to integrate and align the data information from the first head, the second head and the third head to ensure that each reads data from the same track on the magnetic card and extract the specific data information on the track of the magnetic card.

[0105] Since the magnetic card usually contains a plurality of tracks, each track stores different types of information. In this step, it is necessary to confirm that the data read by the three magnetic heads are indeed the data of the same track, and after the extraction is completed, step S107 is performed.

[0106] In step S107, since data information of the same track has been extracted from the first head, the second head, and the third head in step S106, the goal of step S107 is to verify whether the data are consistent, that is, to determine whether the data of the same track read by the three heads are exactly the same. Specifically, the track data information read by the first head can be compared with the track data information read by the second head. Then, if they are verified to be the same, the track data information of the first head or the second head is compared with the track data information read by the third head. If they are the same, step S108 is executed: confirming that the card reading data verification is passed.

[0107] It can be further known that by reading the magnetic card information through multiple magnetic heads, the information on the magnetic card can be repeatedly verified multiple times, thereby improving the security of the magnetic card information and ensuring the normal progress of the transaction process.

[0108] See also Figure 4 According to some embodiments of the present invention, in step S103, the reading order priority of the first head is higher than the reading order priority of the second head, and the reading order priority of the second head is higher than the reading order priority of the third head. Determining whether the first timestamp, the second timestamp, and the third timestamp satisfy the timing verification may specifically include, but is not limited to, the following:

[0109] Step S201, determine whether the second timestamp is greater than or equal to the first timestamp, if not, issue a timing abnormality prompt; if yes, determine whether the third timestamp is greater than or equal to the second timestamp;

[0110] Step S202: If it is determined that the third timestamp is greater than or equal to the second timestamp, it is determined that the timing verification is satisfied.

[0111] In step S201, the purpose of determining whether the second timestamp is greater than or equal to the first timestamp is to confirm whether the time of acquiring the second data information occurs after the first data information is acquired. The second timestamp is compared with the first timestamp. If the second timestamp is greater than or equal to the first timestamp, it means that the time of acquiring the second data information occurs after the first data information is acquired. After determining that the second timestamp is greater than or equal to the first timestamp, it is further determined whether the third timestamp is greater than or equal to the second timestamp, that is, it is necessary to ensure that the latter time is greater than or equal to the previous one. If it is determined that the third timestamp is greater than or equal to the second timestamp, it is determined that the timing verification is satisfied, otherwise a timing abnormality prompt is issued.

[0112] Regardless of whether the comparison result of step S201 or step S202 is that the subsequent timestamp is smaller than the previous timestamp, it indicates that there is an abnormality in the sequence. At this time, the system issues a timing abnormality prompt. The timing abnormality prompt is usually an error message or warning, which is used to notify the system administrator or developer that there is a timing problem and needs to be checked and corrected.

[0113] See also Figure 5 According to some embodiments of the present invention, after the timing abnormality prompt is issued, it may specifically include, but not limited to, the following:

[0114] Step S301, freezing the first data information, the second data information and the third data information;

[0115] Step S302: uploading the frozen first data information, second data information and third data information to a cloud server for storage.

[0116] In step S301, after a timing anomaly prompt is issued, the first data information, the second data information and the third data information are frozen. The purpose is to immediately stop further processing of these data information and "freeze" these data information after the timing anomaly is discovered, in order to prevent the abnormal data from further affecting the system. Any modification or deletion operations on them are stopped. These data information will be retained in the system for subsequent analysis and processing.

[0117] Freezing data information helps to preserve the data status when anomalies occur, providing important clues and basis for subsequent problem analysis and resolution. In order to ensure that the frozen data information will not be accidentally lost or tampered with, and to store them centrally for subsequent analysis and processing, it is necessary to upload this information to the cloud server so that the system can better respond to abnormal situations such as timing anomalies and ensure data integrity and security.

[0118] See also Figure 6 The present application also provides a magnetic card reader data verification system, the system comprising:

[0119] The first reading unit 401 is used to obtain original card reading data through the first magnetic head, the second magnetic head and the third magnetic head;

[0120] A first acquisition unit 402 is used to acquire a first timestamp, a second timestamp, and a third timestamp, wherein the first timestamp is the time when the first magnetic head reads the original card reading data, the second timestamp is the time when the second magnetic head reads the original card reading data, and the third timestamp is the time when the third magnetic head reads the original card reading data;

[0121] A first judging unit 403, used to judge whether the first timestamp, the second timestamp and the third timestamp satisfy the timing verification;

[0122] The second acquisition unit 404 is used to perform data preprocessing on the original card reading data and acquire preprocessed data when the first judgment unit 603 determines that the first timestamp, the second timestamp and the third timestamp meet the timing verification;

[0123] The second reading unit 405 is used to read the first data information of the first magnetic head, the second data information of the second magnetic head and the third data information of the third magnetic head in the pre-processed data respectively;

[0124] A determination unit 406, configured to determine data information of each track of the first magnetic head, the second magnetic head and the third magnetic head on the same track according to the first data information, the second data information and the third data information;

[0125] The second determination unit 407 is used to determine whether the data information of each track in the same track is the same;

[0126] The confirmation unit 408 is used to confirm that the card reading data verification is successful when the second judgment unit determines that the data information of each track in the same track is the same.

[0127] Optionally, the first acquiring unit 402 is specifically configured to:

[0128] The pre-processed data is obtained after denoising, filtering and correction of the original card reading data.

[0129] Optionally, the first judging unit 403 is specifically configured to:

[0130] Determine whether the second timestamp is greater than or equal to the first timestamp, if not, issue a timing anomaly prompt; if yes, determine whether the third timestamp is greater than or equal to the second timestamp;

[0131] If it is determined that the third timestamp is greater than or equal to the second timestamp, it is determined that the timing verification is satisfied.

[0132] Optionally, the system further includes:

[0133] A freezing unit 409, the freezing unit 409 is specifically used to freeze the first data information, the second data information and the third data information;

[0134] The uploading unit 410 is specifically used to upload the frozen first data information, the second data information and the third data information to the cloud server for storage.

[0135] See also Figure 7 , the fourth aspect of the present application provides a magnetic card reader data verification device, the device comprising: a processor 501, a memory 502, an input and output unit 503, and a bus 504;

[0136] The processor is connected to the memory 501, the input and output unit 503 and the bus 504;

[0137] The memory 502 stores a program, and the processor 501 calls the program to execute the method described in the second aspect and any one of the second aspects above.

[0138] The fifth aspect of the present application further provides a computer-readable storage medium, on which a program is stored. When the program is run on a computer, the computer executes the method as described in any one of the second aspects and the second aspect above.

[0139] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

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

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

[0142] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0143] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A magnetic card reader, characterized in that: include: A card reader body, a first magnetic head, a second magnetic head and a third magnetic head; A card reading area is provided on one side of the card reader body, and the first magnetic head, the second magnetic head and the third magnetic head are provided in the card reading area, the second magnetic head is provided between the first magnetic head and the third magnetic head, and the first magnetic head, the second magnetic head and the third magnetic head are placed obliquely therebetween, a magnetic track is provided on the first magnetic head, and two magnetic tracks are provided on the second magnetic head and the third magnetic head, and the first magnetic head, the second magnetic head and the third magnetic head cooperate with the card reader body to read the magnetic card information on the magnetic card.

2. The magnetic card reader according to claim 1, characterized in that: A guide groove is arranged in the card reading area, the groove opening of the guide groove is greater than the thickness of the magnetic card, and the guide groove is arranged obliquely along the distribution of the first magnetic head, the second magnetic head and the third magnetic head.

3. The magnetic card reader according to claim 1, characterized in that: The first magnetic head is disposed on an upper side of the second magnetic head, and the third magnetic head is disposed on a lower side of the second magnetic head.

4. The magnetic card reader according to claim 1, characterized in that: The first magnetic head, the second magnetic head and the third magnetic head are arranged at equal intervals.

5. The magnetic card reader according to claim 1, characterized in that: One track of the second magnetic head is the same as a track of the first magnetic head, and another track of the second magnetic head is the same as a track of the third magnetic head.

6. The magnetic card reader according to claim 1, characterized in that: The two magnetic tracks of the second magnetic head are the same as the two magnetic tracks of the third magnetic head, and the two magnetic tracks of the second magnetic head are different from the magnetic tracks of the first magnetic head.

7. A magnetic card reader data verification method, applied to the magnetic card reader according to any one of claims 1 to 6, characterized in that: include: Acquire original card reading data through the first magnetic head, the second magnetic head and the third magnetic head; Obtain a first timestamp, a second timestamp, and a third timestamp, wherein the first timestamp is the time when the first magnetic head reads the original card reading data, the second timestamp is the time when the second magnetic head reads the original card reading data, and the third timestamp is the time when the third magnetic head reads the original card reading data; Determine whether the first timestamp, the second timestamp, and the third timestamp satisfy timing verification; If yes, preprocess the original card reading data and obtain preprocessed data; respectively reading first data information of the first magnetic head, second data information of the second magnetic head and third data information of the third magnetic head in the preprocessed data; Determine the data information of each track of the first magnetic head, the second magnetic head and the third magnetic head on the same track according to the first data information, the second data information and the third data information; Determining whether the data information of each track on the same track is the same; If yes, then confirm that the card reading data verification is passed.

8. The magnetic card reader data verification method according to claim 7, characterized in that: Performing data preprocessing on the original card reading data and obtaining preprocessed data includes: The original card reading data is subjected to denoising, filtering and correction processing to obtain pre-processed data.

9. The magnetic card reader data verification method according to claim 7, characterized in that: The reading order priority of the first magnetic head is higher than the reading order priority of the second magnetic head, and the reading order priority of the second magnetic head is higher than the reading order priority of the third magnetic head. Determining whether the first timestamp, the second timestamp, and the third timestamp satisfy timing verification includes: Determine whether the second timestamp is greater than or equal to the first timestamp, and if not, issue a timing abnormality prompt; if yes, determine whether the third timestamp is greater than or equal to the second timestamp; If it is determined that the third timestamp is greater than or equal to the second timestamp, it is determined that the timing verification is satisfied.

10. The magnetic card reading data verification method according to claim 9, characterized in that: After issuing a timing abnormality prompt, the method further includes: Freeze the first data information, the second data information and the third data information; The frozen first data information, the second data information and the third data information are uploaded to a cloud server for storage.