I have a spark fun magnetic card reader that I cut the cords on to connect to my arduino (+5v, gnd, rx, tx)
here is the model: https://www.sparkfun.com/products/11096?
I connected the TX and RX to pins 2 + 3, and am using SoftwareSerial to read the incoming data.
Here is the code that i'm working with:
SoftwareSerial mySerial(2, 3); // RX, TX
// Open serial communications and wait for port to open:
void loop() // run over and over
inByte = mySerial.read();
When I swipe my school's id, I get this string of ascii numbers:
I'm wondering if anyone has any insight to get this data into a readable format. In the reader's datasheet it says the data should be separated like this:
Track 1 start character：％ End character：？
Track 2 start character：； End character：？
Track 3 start character：＋ End character：？
Enter key is end character of the whole data packet.
Any help would be greattly appreciated!!!