Automatic test system and method for magnetic stripe card

By designing an automated magnetic stripe card testing system that includes a control module, a drive module and a coil, contactless magnetic stripe card reading is realized, which solves the problems of low efficiency and high cost in functional testing of magnetic stripe cards in financial terminal equipment, and improves efficiency. production efficiency and reduced production costs.

CN118569279APending Publication Date: 2024-08-30WUHAN TIANYU INFORMATION IND
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410646579.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The magnetic stripe card function testing of existing financial terminal equipment is inefficient and costly, and existing automated card swiping equipment is expensive.

Method used

Design an automated magnetic stripe card test system, including a control module, a drive module and a coil. It generates a driving current by encoding the magnetic stripe card data, and drives the coil to generate a magnetic field with changing directions, simulating the magnetic stripe card signal, and realizing a contactless magnetic stripe card. Read cards, simplify circuits and reduce costs.

Benefits of technology

It improves the efficiency and production efficiency of magnetic stripe card function testing of financial terminal equipment, reduces production costs, and solves the problems of low efficiency and high cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569279A
    Figure CN118569279A
Patent Text Reader

Abstract

The invention relates to the technical field of financial terminal testing, and discloses an automatic testing system and method for a magnetic stripe card. The system comprises a control module, a driving module and a coil which are connected in sequence, the control module is used for storing card data of the magnetic stripe card, encoding the card data to obtain an encoded signal and outputting the encoded signal to the driving module; the driving module is used for receiving the encoded signal and generating a driving current according to the level change state corresponding to the encoded signal; the coil is used for receiving the driving current so as to generate a direction-changing magnetic field; wherein the change rule of the magnetic field is consistent with that of the magnetic field of the magnetic strip card. Signals coded by the control module are output to the driving module, the coil is driven through the driving module, the driving module is matched with the coil to simulate signals of the magnetic stripe card, non-contact magnetic stripe card reading is achieved, and meanwhile the system is simple in device, low in cost and convenient to use. Therefore, the problems of low efficiency, high cost and the like of the magnetic stripe card function test of the existing financial terminal equipment are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of financial terminal testing, and in particular to an automatic testing system and method for magnetic stripe cards. Background Art

[0002] With the continuous technological innovation in the field of mobile payment in the financial industry, the manufacturing of financial terminal equipment is becoming more and more intelligent and automated. The efficiency of functional testing of financial terminal equipment before leaving the factory has become the focus of optimization for terminal manufacturers.

[0003] At present, the magnetic stripe card function test and self-test of financial terminal equipment mainly rely on manual card swiping and equipment reading. This manual testing method is inefficient and costly. At present, there are also automated card swiping devices that simulate manual work on the market, but they have problems such as high cost. Summary of the invention

[0004] The main purpose of the present invention is to provide a magnetic stripe card automatic testing system and method, aiming to solve the problems of low efficiency and high cost in the magnetic stripe card function testing of existing financial terminal equipment.

[0005] To achieve the above object, the present invention provides a magnetic stripe card automatic testing system, comprising: a control module, a drive module and a coil connected in sequence; wherein:

[0006] The control module is used to store the card data of the magnetic stripe card, encode the card data to obtain the encoded signal and output it to the drive module;

[0007] The driving module is used to receive the encoded signal and generate a driving current according to a level change state corresponding to the encoded signal;

[0008] The coil is used to receive the driving current to generate a magnetic field with changing direction; wherein the changing rule of the magnetic field is consistent with the magnetic field of the magnetic stripe card.

[0009] In some embodiments, the magnetic stripe card terminal device to be tested is coupled to the coil to perform an automated test of the magnetic stripe card swiping function.

[0010] In some embodiments, the control module includes a controller; wherein,

[0011] The controller includes a first GPIO interface and a second GPIO interface, and the first GPIO interface and the second GPIO interface of the controller are connected to the driving module.

[0012] In some embodiments, the controller is used to store card data of a magnetic stripe card to be tested, determine track data based on the card data; encode the track data to obtain a level change status code; generate an encoded signal based on the level change status code; and output the encoded signal to the driver module through the first GPIO interface and the second GPIO interface.

[0013] In some embodiments, the driving module includes a stepper motor driving chip; wherein,

[0014] The first input interface of the stepper motor driver chip is connected to the first GPIO interface of the controller, and the second input interface of the stepper motor driver chip is connected to the second GPIO interface of the controller; the first output interface of the stepper motor driver chip is connected to the first end of the coil, and the second output interface of the stepper motor driver chip is connected to the second end of the coil.

[0015] In some embodiments, the driving module further includes a first resistor, a second resistor, a first capacitor and a second capacitor; wherein,

[0016] The first end of the first resistor is connected to a power supply, the second end of the first resistor is connected to a sleep mode input interface of the stepper motor driver chip, the first end of the second resistor is connected to a current detection interface of the stepper motor driver chip, and the second end of the second resistor is grounded;

[0017] The first end of the first capacitor is connected to the power supply, the second end of the first capacitor is connected to the charge pump output interface of the stepper motor driver chip, the first end of the second capacitor is connected to the voltage regulator output interface of the stepper motor driver chip, and the second end of the second capacitor is grounded.

[0018] In some embodiments, the coil is a wound coil with a magnetic core.

[0019] In addition, to achieve the above purpose, the present invention also proposes a magnetic stripe card automatic testing method, comprising:

[0020] storing card data of a magnetic stripe card, and encoding the card data to obtain an encoded signal;

[0021] generating a driving current according to a level change state corresponding to the encoded signal;

[0022] The coil is driven based on the driving current to generate a magnetic field with changing direction; wherein the changing pattern of the magnetic field is consistent with the magnetic field of the magnetic stripe card.

[0023] In some embodiments, the method further comprises:

[0024] The magnetic stripe card terminal device to be tested is coupled to the coil to perform an automated test of the magnetic stripe card swiping function.

[0025] In some embodiments, storing the card data of the magnetic stripe card and encoding the card data to obtain an encoded signal includes:

[0026] storing card data of a magnetic stripe card to be tested, and determining track data according to the card data;

[0027] Encoding is performed according to the track data to obtain a level change state code;

[0028] An encoded signal is generated according to the level change status code.

[0029] The present invention provides a magnetic stripe card automatic test system, comprising: a control module, a drive module and a coil connected in sequence; wherein the control module is used to store the card data of the magnetic stripe card, encode the card data to obtain the encoded signal and output it to the drive module; the drive module is used to receive the encoded signal and generate a drive current according to the level change state corresponding to the encoded signal; the coil is used to receive the drive current to generate a magnetic field with a changing direction; wherein the change law of the magnetic field is consistent with the magnetic field of the magnetic stripe card. In the present invention, the signal encoded by the control module is output to the drive module, and the coil is driven by the drive module. The drive module cooperates with the coil to simulate the signal of the magnetic stripe card, thereby realizing contactless magnetic stripe card reading. At the same time, the magnetic stripe card automatic test system has simple components and low cost, thereby improving production efficiency and reducing production cost, and solving the problems of low efficiency and high cost in the magnetic stripe card function test of existing financial terminal equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is a schematic diagram of the modules of the magnetic stripe card automatic testing system according to the embodiment of the present invention;

[0031] Figure 2 This is a schematic diagram of the principle of magnetic stripe card swiping;

[0032] Figure 3 This is a schematic diagram of the encoding logic of the magnetic head signal of the magnetic stripe card automatic test system according to the embodiment of the present invention;

[0033] Figure 4 This is a schematic diagram of the circuit structure of a magnetic stripe card automatic testing system according to an embodiment of the present invention;

[0034] Figure 5 A schematic diagram of a flow chart of an embodiment of a magnetic stripe card automatic testing method of the present invention;

[0035] Figure 6 The present invention is a schematic diagram of the structure of an electronic device in a hardware operating environment according to an embodiment of the present invention.

[0036] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0039] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0040] The invention provides a magnetic stripe card automatic testing system and method.

[0041] Reference Figure 1 , Figure 1 The module diagram of the magnetic stripe card automatic testing system involved in the embodiment of the present invention is shown in FIG.

[0042] like Figure 1 As shown, the magnetic stripe card automatic testing system includes: a control module 100, a drive module 200 and a coil L1 connected in sequence; wherein,

[0043] The control module 100 is used to store the card data of the magnetic stripe card, encode the card data to obtain the encoded signal and output it to the driving module 200;

[0044] The driving module 200 is used to receive the encoded signal and generate a driving current according to a level change state corresponding to the encoded signal;

[0045] The coil L1 is used to receive the driving current to generate a magnetic field with a changing direction; wherein the changing rule of the magnetic field is consistent with the magnetic field of the magnetic stripe card.

[0046] It should be noted that this embodiment is explained by taking the magnetic stripe card function test of a financial terminal as an example. Magnetic stripe cards use liquid magnetic materials or magnetic stripes as information carriers. The liquid magnetic material is coated on the card (such as a passbook), or the magnetic stripe is pressed on the card (such as a UnionPay card). The magnetic particles on the newly produced magnetic card are not magnetic. By controlling the device to allow the magnetic card to pass through the recording head (the recording head is a device that generates a magnetic field proportional to the current after passing an electric current), the magnetic particles on the magnetic card will be magnetized. If the current of the recording head is changing, this current can express certain information, and the magnetic body on the magnetic card will be magnetized to varying degrees as the current changes. After the magnetic card is magnetized, magnetism with the same change law as the current is left on the card. At this time, the magnetic card also records the information sent by the current, forming a magnetic stripe card. Reference Figure 2 , Figure 2 The figure shows the principle diagram of magnetic stripe card swiping. The magnetic stripe card passes through the working magnetic head equipped with a coil at a certain speed. The external magnetic lines of force of the magnetic stripe card cut the coil, generating an induced electromotive force in the coil, thereby transmitting the recorded signal.

[0047] In this embodiment, a new type of magnetic stripe card automatic test system is proposed, which can perform magnetic stripe card function test as simply as possible, thereby improving production efficiency and reducing production costs. Specifically, without affecting the self-test of the magnetic stripe card function, a magnetic stripe card automatic test system using an external drive to cooperate with a coil to simulate a magnetic stripe card signal is proposed. The magnetic stripe card automatic test system uses a control module 100 to encode the magnetic stripe card data, outputs the encoded signal of the control module 100 to the drive module 200, drives the coil L1 through the drive module 200, and simulates the magnetic stripe card data signal through the coil L1, thereby realizing contactless magnetic stripe card reading. At the same time, the peripheral devices are simple and the cost is low.

[0048] In one embodiment, the magnetic stripe card terminal device to be tested is coupled to the coil L1 to perform an automated test of the magnetic stripe card swiping function.

[0049] In one embodiment, the coil L1 is a wound coil with a magnetic core.

[0050] It can be understood that the winding coil with a magnetic core, namely the coil L1, is connected to the driving module 200 of the magnetic stripe card automatic testing system, and the parameters of the coil L1 can be 600uH, 2Ω.

[0051] In this embodiment, the drive module 200 cooperates with the coil L1 to simulate the signal of the magnetic stripe card, replacing the magnetic stripe card cutting coil action to complete the magnetic stripe card swiping test, thereby realizing contactless magnetic stripe card reading. Compared with traditional manual testing or complex automated equipment that simulates manual testing, the magnetic stripe card automated testing system in this embodiment greatly simplifies the circuit, eliminates the need for manual intervention, reduces production costs, and improves production efficiency.

[0052] In one embodiment, the control module 100 includes a controller U1; wherein,

[0053] The controller U1 includes a first GPIO interface and a second GPIO interface, and the first GPIO interface and the second GPIO interface of the controller U1 are connected to the driving module 200 .

[0054] In one embodiment, the controller U1 is used to store card data of a magnetic stripe card to be tested, determine track data based on the card data; encode the track data to obtain a level change status code; generate an encoded signal based on the level change status code; and output the encoded signal to the driver module 200 through the first GPIO interface and the second GPIO interface.

[0055] Specifically, the controller U1 stores the card data of the magnetic stripe card to be tested, and determines the track data according to the card data. The track data may include the first track data, the second track data, and the third track data. Here, the second track data is taken as an example for explanation. The second track is a read-only track. The second track data encoding record length includes 40 characters. The data format of the second track data includes a start mark (field length 1), a primary account number (field length 13 to 19), a field separator (field length 1), an expiration date (field length 4), a service code (field length 3), additional data (field length variable), an end mark (field length 1), and a longitudinal redundancy check bit (field length 1).

[0056] It should be noted that the controller U1 is mainly used to store the data of the magnetic stripe card. The data of the magnetic stripe card stored in the controller U1 can be input by direct writing (it is fixed in the program. If you want to change the magnetic stripe information, you need to change the firmware or reconfigure the data). The data of the magnetic stripe card can be obtained from the card dealer and written into the controller U1.

[0057] In one example, if the controller U1 needs to obtain the data of the magnetic stripe card and store the information of the actual user's magnetic stripe card, a controller with magnetic stripe decoding is required. The controller with magnetic stripe decoding can not only support the reading of data on the card, but also support the writing of data. In actual applications, the controller with magnetic stripe decoding converts the data on the magnetic stripe card into recognizable information by sensing and converting it, such as decoding based on the F2F encoding mechanism: if the magnetic pole conversion occurs within the bit period, it represents a logical 1, otherwise it represents a logical 0.

[0058] Exemplarily, encoding is performed according to the track data to obtain a level change state code, and an encoded signal is generated according to the level change state code: Figure 3 As shown, Figure 3 The figure shows the magnetic stripe card encoding rule (this embodiment is described using 010110 as an example). The known magnetic stripe card data is encoded according to the encoding rule (the encoding clock cycle is equivalent to the speed of swiping the magnetic stripe card, which is about 500uS), and the corresponding high and low level change status codes are obtained. The level change status codes are used to generate the change rules of the positive and negative currents of the coil, and the encoded signals are output through the first GPIO interface and the second GPIO interface to realize the simulation of the magnetic stripe card signal.

[0059] Specifically, Figure 4 As shown, the controller U1 needs to have at least 2 GPIO functions, and output the encoded signal through the GPIO interface (the first GPIO interface and the second GPIO interface) to control the driving module 200 (stepper motor driving chip U2) so that the coil L1 obtains alternating positive and negative current, that is, generates a changing magnetic field, which is coupled to the terminal device under test (for example, the magnetic stripe card terminal device to be tested) to complete the magnetic stripe card function test.

[0060] In one embodiment, if Figure 4 As shown, the driving module 200 includes a stepper motor driving chip U2; wherein,

[0061] The first input interface AIN1 of the stepper motor driver chip U2 is connected to the first GPIO interface A1 of the controller U1, and the second input interface AIN2 of the stepper motor driver chip U2 is connected to the second GPIO interface A2 of the controller U1; the first output interface AOUT1 of the stepper motor driver chip U2 is connected to the first end of the coil L1, and the second output interface AOUT2 of the stepper motor driver chip U2 is connected to the second end of the coil L1.

[0062] In one embodiment, if Figure 4 As shown, the driving module 200 further includes a first resistor R1, a second resistor R2, a first capacitor C1 and a second capacitor C2; wherein,

[0063] A first end of the first resistor R1 is connected to a power source VCC, a second end of the first resistor R1 is connected to a sleep mode input interface NSLEEP of the stepper motor driver chip U2, a first end of the second resistor R2 is connected to a current detection interface AISEN of the stepper motor driver chip U2, and a second end of the second resistor R2 is grounded;

[0064] The first end of the first capacitor C1 is connected to the power supply VCC, the second end of the first capacitor C1 is connected to the charge pump output interface VCP of the stepper motor driver chip U2, the first end of the second capacitor C2 is connected to the voltage regulator output interface VINT of the stepper motor driver chip U2, and the second end of the second capacitor C2 is grounded.

[0065] Specifically, the first input interface AIN1 and the second input interface AIN2 of the stepper motor driver chip U2 are logic input pins; the first output interface AOUT1 and the second output interface AOUT2 of the stepper motor driver chip U2 are winding outputs, connected to the coil L1; the sleep mode input interface NSLEEP of the stepper motor driver chip U2 is used for sleep mode control, a high level enables the stepper motor driver chip U2, and a low level enters the sleep mode, i.e., the low power sleep mode (turns off the stepper motor driver chip U2); the current detection interface AISEN of the stepper motor driver chip U2 is used for current control, which can be controlled by a resistor, i.e., the first Two resistors are grounded to limit the current (directly grounded when the current is not limited); the charge pump output interface VCP of the stepper motor driver chip U2 is used for the high-end FET gate drive voltage, and requires a ceramic capacitor (for example, 10nF, with a withstand voltage of 16V), that is, the first capacitor is connected to the VM pin of the stepper motor driver chip U2; the voltage stabilization output interface VINT of the stepper motor driver chip U2 is the output of the internal voltage regulator of the chip (for example, 3.3V), and requires a filter capacitor (for example, 2.2uF, with a withstand voltage of 6.3V), that is, the second capacitor is grounded; the ground interface GND of the stepper motor driver chip U2 and the heat dissipation pad interface PAD of the stepper motor driver chip U2 are grounded.

[0066] It can be understood that the high and low level change status codes encoded by the controller U1 are transmitted through two GPIO interfaces, namely Figure 4 The GPIO interface A1 and GPIO interface A2 are output to the stepper motor driver chip U2, which controls the stepper motor driver chip U2 to drive the coil L1. At this time, a current and a magnetic field with a changing direction will be generated on the coil L1. The change rule of the magnetic field is consistent with the magnetic field of the known test magnetic stripe card. The magnetic stripe card terminal device to be tested is placed near the magnetic stripe card automatic test system of this embodiment, and the magnetic stripe card terminal device to be tested can complete the magnetic stripe card reading function and realize the automatic test.

[0067] It should be noted that this embodiment proposes a simple magnetic stripe card automatic test system, which can be combined with other functional tests to be fully automated without manual intervention, thereby reducing production costs and improving production efficiency. The magnetic stripe card automatic test system has a simple structure and can be implemented independently or as part of the automated functional test based on other test tools, making it flexible to use. Compared with traditional manual testing or complex automated equipment that simulates manual testing, it greatly simplifies the circuit and reduces costs.

[0068] This embodiment provides a magnetic stripe card automatic test system, including: a control module 100, a drive module 200 and a coil L1 connected in sequence; wherein the control module 100 is used to store the card data of the magnetic stripe card, encode the card data to obtain the encoded signal and output it to the drive module 200; the drive module 200 is used to receive the encoded signal and generate a drive current according to the level change state corresponding to the encoded signal; the coil L1 is used to receive the drive current to generate a magnetic field with a changing direction; wherein the change law of the magnetic field is consistent with the magnetic field of the magnetic stripe card. In this embodiment, the signal encoded by the control module is output to the drive module, and the coil is driven by the drive module. The drive module cooperates with the coil to simulate the signal of the magnetic stripe card, thereby realizing contactless magnetic stripe card reading. At the same time, the magnetic stripe card automatic test system has simple components and low cost, thereby improving production efficiency and reducing production costs, and solving the problems of low efficiency and high cost in the magnetic stripe card function test of existing financial terminal equipment.

[0069] The present invention also provides a magnetic stripe card automatic testing method, referring to Figure 5 , Figure 5 The figure is a flow chart of an embodiment of the automatic testing method for magnetic stripe cards of the present invention.

[0070] like Figure 5 As shown, the magnetic stripe card automatic testing method includes:

[0071] Step S100: storing the card data of the magnetic stripe card, and encoding the card data to obtain an encoded signal;

[0072] Step S200: generating a driving current according to a level change state corresponding to the encoded signal;

[0073] Step S300: driving the coil based on the driving current to generate a magnetic field with changing direction; wherein the changing pattern of the magnetic field is consistent with the magnetic field of the magnetic stripe card.

[0074] Specifically, combined Figure 4 and Figure 5 , the specific steps for implementing the automated testing of magnetic stripe cards are as follows:

[0075] The winding coil with a magnetic core is connected to the driving module circuit of the magnetic stripe card automatic test system. The parameters of the coil can be: 600uH, 2Ω;

[0076] Encode the card data of the known test magnetic stripe card. The encoding clock cycle is equivalent to the speed of swiping the magnetic stripe card, which is about 500uS. After encoding, the corresponding high and low level change status codes are obtained;

[0077] The encoded signal corresponding to the high and low level change status code is passed through two GPIO interfaces (such as Figure 4 The A1 interface and A2 interface shown in the figure control the motor drive chip to drive the coil. At this time, the coil will generate a current and magnetic field with changing direction. The change law of the magnetic field is consistent with the known test magnetic stripe card;

[0078] Place the magnetic stripe card terminal device to be tested near the coil, and the magnetic stripe card terminal device to be tested can complete the magnetic stripe card reading function and realize automatic testing.

[0079] This embodiment stores the card data of the magnetic stripe card, encodes the card data to obtain the encoded signal; generates a driving current according to the level change state corresponding to the encoded signal; drives the coil based on the driving current to generate a magnetic field with a changing direction; wherein the change law of the magnetic field is consistent with the magnetic field of the magnetic stripe card. In this embodiment, without affecting the self-test of the magnetic stripe card function, a magnetic stripe card automatic testing method using an external drive to cooperate with the coil to simulate the magnetic stripe card signal is proposed, the magnetic stripe card data is encoded, the coil is driven by the encoded signal, and the magnetic stripe card data signal is simulated by the coil, thereby realizing contactless magnetic stripe card reading, thereby improving production efficiency and reducing production costs, and solving the problems of low efficiency and high cost in the magnetic stripe card function testing of existing financial terminal equipment.

[0080] In one embodiment, the method further comprises: coupling the magnetic stripe card terminal device to be tested to the coil to perform an automated test of the magnetic stripe card swiping function.

[0081] In one embodiment, the card data of the magnetic stripe card is stored, and the card data is encoded to obtain the encoded signal, including: storing the card data of the magnetic stripe card to be tested, and determining the track data according to the card data; encoding according to the track data to obtain a level change status code; and generating the encoded signal according to the level change status code.

[0082] Specifically, the card data of the magnetic stripe card to be tested is stored, and the track data is determined according to the card data. The track data may include first track data, second track data, and third track data. Here, the second track data is taken as an example for explanation. The second track is a read-only track. The second track data encoding record length includes 40 characters. The data format of the second track data includes a start mark (field length 1), a primary account number (field length 13 to 19), a field separator (field length 1), an expiration date (field length 4), a service code (field length 3), additional data (field length variable), an end mark (field length 1), and a longitudinal redundancy check bit (field length 1).

[0083] Exemplarily, encoding is performed according to the track data to obtain a level change state code, and an encoded signal is generated according to the level change state code: Figure 3 As shown, Figure 3 The figure shows the magnetic stripe card encoding rule (this embodiment is described using 010110 as an example). The known magnetic stripe card data is encoded according to the encoding rule (the encoding clock cycle is equivalent to the speed of swiping the magnetic stripe card, which is about 500uS), and the corresponding high and low level change status codes are obtained. The level change status codes are used to generate the change rules of the positive and negative currents of the coil, and the encoded signals are output through the first GPIO interface and the second GPIO interface to realize the simulation of the magnetic stripe card signal.

[0084] Specifically, Figure 4 As shown, the controller U1 needs to have at least 2 GPIO functions, and output the encoded signal through the GPIO interface (the first GPIO interface and the second GPIO interface) to control the driving module 200 (stepper motor driving chip U2) so that the coil L1 obtains alternating positive and negative current, that is, generates a changing magnetic field, which is coupled to the terminal device under test (for example, the magnetic stripe card terminal device to be tested) to complete the magnetic stripe card function test.

[0085] It should be noted that this embodiment uses the above-mentioned magnetic stripe card automated testing system to implement the magnetic stripe card automated testing method. The magnetic stripe card automated testing system can be combined with other functional tests for full automation without manual intervention, thereby reducing production costs and improving production efficiency. The magnetic stripe card automated testing system has a simple structure and can be implemented independently or as part of automated functional testing based on other test tools, making it flexible to use. Compared with traditional manual testing or complex automated equipment that simulates manual testing, it greatly simplifies the circuit and reduces costs.

[0086] It is understandable that the technical details not described in detail in the embodiment of the magnetic stripe card automatic testing method can be found in the magnetic stripe card automatic testing system as described above provided in any embodiment of the present invention, and will not be repeated here.

[0087] In addition, an embodiment of the present invention further proposes a storage medium on which a magnetic stripe card automatic testing program is stored. When the magnetic stripe card automatic testing program is executed by a processor, the steps of the magnetic stripe card automatic testing method described above are implemented.

[0088] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic device, which includes: a memory, a processor, and a magnetic stripe card automation testing program stored in the memory and runnable on the processor, and the magnetic stripe card automation testing program is configured to implement the magnetic stripe card automation testing method as described above.

[0089] Reference Figure 6 , Figure 6 The figure is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present invention.

[0090] like Figure 6 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM memory) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0091] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0092] like Figure 6 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a magnetic stripe card automatic testing program.

[0093] exist Figure 6In the electronic device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the magnetic stripe card automatic testing program stored in the memory 1005 through the processor 1001, and executes the magnetic stripe card automatic testing method provided by the embodiment of the present invention.

[0094] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0095] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0096] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0097] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0098] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0099] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A magnetic stripe card automatic testing system, characterized in that: include: The control module, the drive module and the coil are connected in sequence; wherein, The control module is used to store the card data of the magnetic stripe card, encode the card data to obtain the encoded signal and output it to the drive module; The driving module is used to receive the encoded signal and generate a driving current according to a level change state corresponding to the encoded signal; The coil is used to receive the driving current to generate a magnetic field with changing direction; wherein the changing rule of the magnetic field is consistent with the magnetic field of the magnetic stripe card.

2. The system according to claim 1, characterized in that The magnetic stripe card terminal device to be tested is coupled to the coil to perform an automated test of the magnetic stripe card swiping function.

3. The system according to claim 1, characterized in that The control module includes a controller; wherein, The controller includes a first GPIO interface and a second GPIO interface, and the first GPIO interface and the second GPIO interface of the controller are connected to the driving module.

4. The system according to claim 3, characterized in that The controller is used to store the card data of the magnetic stripe card to be tested, determine the track data according to the card data; encode according to the track data to obtain a level change status code; generate an encoded signal according to the level change status code; and output the encoded signal to the driving module through the first GPIO interface and the second GPIO interface.

5. The system according to claim 3, characterized in that The driving module includes a stepper motor driving chip; wherein, The first input interface of the stepper motor driver chip is connected to the first GPIO interface of the controller, and the second input interface of the stepper motor driver chip is connected to the second GPIO interface of the controller; the first output interface of the stepper motor driver chip is connected to the first end of the coil, and the second output interface of the stepper motor driver chip is connected to the second end of the coil.

6. The system according to claim 5, characterized in that The driving module further includes a first resistor, a second resistor, a first capacitor and a second capacitor; wherein, The first end of the first resistor is connected to a power supply, the second end of the first resistor is connected to a sleep mode input interface of the stepper motor driver chip, the first end of the second resistor is connected to a current detection interface of the stepper motor driver chip, and the second end of the second resistor is grounded; The first end of the first capacitor is connected to the power supply, the second end of the first capacitor is connected to the charge pump output interface of the stepper motor driver chip, the first end of the second capacitor is connected to the voltage regulator output interface of the stepper motor driver chip, and the second end of the second capacitor is grounded.

7. The system according to any one of claims 1 to 6, characterized in that The coil is a wound coil with a magnetic core.

8. A magnetic stripe card automated testing method, characterized in that: include: storing card data of a magnetic stripe card, and encoding the card data to obtain an encoded signal; generating a driving current according to a level change state corresponding to the encoded signal; The coil is driven based on the driving current to generate a magnetic field with changing direction; wherein the changing pattern of the magnetic field is consistent with the magnetic field of the magnetic stripe card.

9. The method according to claim 8, characterized in that The method further comprises: The magnetic stripe card terminal device to be tested is coupled to the coil to perform an automated test of the magnetic stripe card swiping function.

10. The method according to claim 8, characterized in that The storing of card data of the magnetic stripe card and encoding the card data to obtain an encoded signal comprises: storing card data of a magnetic stripe card to be tested, and determining track data according to the card data; Encoding is performed according to the track data to obtain a level change state code; An encoded signal is generated according to the level change status code.