Main Menu

Menu

Tuesday, 13 December 2011

Read Magnetic Stripe Card in Thunder Board through Mbed NXP1768

Here I will describe how I manage to read the data of a normal bank magnetic stripe card with the Thunder Board, via the mbed NXP1678 module.

The next image depicts the block diagram of the project.

The project has 3 different interfaces.
The first step is to create the interface/driver for the communication between the Device that reads the 2 stripes of the magnetic card with the mbed NXP1768 PIC. In my case the driver can read in both directions the magnetic card. So the two LEDs indicate the direction of successful reading.
After the completion of this step I implemented the interface between the mbed and the Thunder Board which is divided in two parts: a) Serial between the mbed and the FTDI module and b) USB connection between the FTDI module and the Thunder Board.
Finally, to read the string that the mbed is sending to the Thunder Board, which is running Android Froyo, I had to enable the driver during the compilation of the system (FTDI driver), had all the permissions of the specific usb port and finally to set the baud rate of this usb port:
>stty 9600 -F /dev/ttyUSB0.
After setting the baud rate of the serial communication a cat command is enough to read the string that the mbed sends.
>cat /dev/ttyUSB0.

No comments:

Post a Comment