Repository contains Python app to read/write MSR using msr606
- Clone
- Make sure you have pySerial (
pip install --user pyserial
) - If you do not have
pip
you might need to install it. Possibly byeasy_install -U pip
to install serial: pip3.4 install --index-url=[URL HERE] pySerial --user
trigger read: ./msr.py -d /dev/cu.usbserial -r
trigger write: ./msr.py -d /dev/cu.usbserial -w -t 2 "PAN=YYMMSSS?โ
example:
./msr.py -d /dev/cu.usbserial -w -t 2 "PAN=67030010054610102=1808101?"
./msr.py -d /dev/cu.usbserial -w -t 2 "PAN=1=%6277201287475229^00000000^X?3="
./msr.py -d /dev/cu.usbserial -w -t 2 ";60514362659100004742?"
- Reading:
./msr.py -d /dev/cu.usbserial -r
- Writing:
./msr.py -d /dev/cu.usbserial -w -t 2 "PAN=YYMMSSS?"
NOTE: While writing track 2: ommit the beginning ;
char
BCMC 67030010054610102=1808101?
CUP 6210947000000021=1808101?
JCB 3569990010082211=1808101?
Diners 36070500001376=1808101?
Discover 6510000000000166=1808101?
Amex 374245455400001=1808101?
Visa 4761739001010010=1808101?
Maestro 6799990200000001114=1808101?
Mastercard 5413330002001155=1808101?