Magtek
From Bashlinux
The elo touchscreen has attached an Mag-Tek USB Swipe Reader and must be treated ad hid device. The reading process is done by hiddev that comes suppoted by CentOS kernel.
The "usage" of interest is the number 30 Track 1 data, the complete usage is: 0xff000030
Usage Page
Usage ID (Hex) | Usage Name | Usage Type | Report Type |
---|---|---|---|
1 | Decoding reader device | Collection | None |
20 | Track 1 decode status | Data | Input |
21 | Track 2 decode status | Data | Input |
22 | Track 3 decode status | Data | Input |
28 | Track 1 data length | Data | Input |
29 | Track 2 data length | Data | Input |
2A | Track 3 data length | Data | Input |
30 | Track 1 data | Data | Input |
31 | Track 2 data | Data | Input |
32 | Track 3 data | Data | Input |
38 | Card encode type | Data | Input |
20 | Command message | Data | Feature |
Modes
The Mag-Tek device is able to work in 2 modes:
- Keyboard Emulation, found on system as:
0801:0001 Mag-Tek
- HID Mode, found on system as:
0801:0002 Mag-Tek Mini Swipe Reader
Where: 0801:xxxx Vendor ID matches Mag-Tek xxxx:0001 Product ID matches HID Mode xxxx:0002 Product ID matches Keyboard Emulation
The mode could be switched using magtek_setf.py
script available on Bashlinux scripts on terminal.