Demo: Magnetic stripe reader

S3C used the Bus Pirate SPI sniffer mode to decode output from a serial magnetic card swipe reader. More at S3C’s site, and in the forum.

Regular Demo: articles will return next week. Demo: is a weekly series that demonstrates devices with the Bus Pirate. Come back next Monday for another new demo. Continue reading the demo below.


m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. JTAG
7.  RAW2WIRE
8. RAW3WIRE
9. PC KEYBOARD
10. LCD
(1) >5
Mode  selected
Set speed:
 1. 30KHz
 2. 125KHz
 3. 250KHz
 4.  1MHz
(1) >4
Clock polarity:
 1. Idle low *default
 2.  Idle high
(1) >2
Output clock edge:
 1. Idle to active
 2.  Active to idle *default
(2) >2
Input sample phase:
 1.  Middle *default
 2. End
(1) >2
Select output type:
 1.  Open drain (H=Hi-Z, L=GND)
 2. Normal (H=3.3V, L=GND)
(1) >1
READY
SPI>W
POWER  SUPPLIES ON
SPI>(1)
Sniff when:
 1. CS low
 2. CS high
 3.  All traffic
(1) >1
SPI bus sniffer, any key exists
[0xFF(0x00)0xFF(0x00)0x2D(0x00)0xE5(0x00)0xE6(0x00)0x31(0x00)0x97(0x00)0xF3(0x00
)0xFD(0x00)0xEB(0x00)0xFA(0x00)0x52(0x00)0xED(0x00)0xFC(0x00)0xFF(0x00)0x1B(0x00
)0xD7(0x00)0xBF(0x00)0x41(0x00)0xDF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00
)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)]

Join the Conversation

1 Comment

  1. This is awesome. I’ve been thinking about doing this, I am so happy I’ve bought one of these now :)

Leave a comment

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.