Difference between revisions of "Magtek"
From Bashlinux
Line 5: | Line 5: | ||
== Usage Page == |
== Usage Page == |
||
+ | {| class="wikitable" |
||
− | || Usage ID (Hex) || Usage Name || Usage Type || Report Type || |
||
+ | ! Usage ID (Hex) |
||
⚫ | |||
+ | ! Usage Name |
||
⚫ | |||
+ | ! Usage Type |
||
⚫ | |||
+ | ! Report Type |
||
⚫ | |||
+ | |- |
||
⚫ | |||
+ | | 1 |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | | Collection |
||
− | | {color:#ff6600}{*}30{*}{color} | {color:#ff6600}{*}Track 1 data{*}{color} | {color:#ff6600}{*}Data{*}{color} | {color:#ff6600}{*}Input{*}{color} | |
||
+ | | None |
||
− | | 31 | Track 2 data | Data | Input | |
||
+ | |- |
||
− | | 32 | Track 3 data | Data | Input | |
||
+ | | 20 |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | 21 |
||
⚫ | |||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | 22 |
||
⚫ | |||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | 28 |
||
⚫ | |||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | 29 |
||
⚫ | |||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | 2A |
||
⚫ | |||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | <span style="color:#ff6600">30</span> |
||
+ | | <span style="color:#ff6600">Track 1 data</span> |
||
+ | | <span style="color:#ff6600">Data</span> |
||
+ | | <span style="color:#ff6600">Input</span> |
||
+ | |- |
||
+ | | 31 |
||
+ | | Track 2 data |
||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | 32 |
||
+ | | Track 3 data |
||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | 38 |
||
⚫ | |||
+ | | Data |
||
+ | | Input |
||
+ | |- |
||
+ | | 20 |
||
⚫ | |||
+ | | Data |
||
+ | | Feature |
||
+ | |} |
||
== Modes == |
== Modes == |
||
Line 31: | Line 84: | ||
<tt>xxxx:0002</tt> Product ID matches Keyboard Emulation |
<tt>xxxx:0002</tt> Product ID matches Keyboard Emulation |
||
− | The mode could be switched using <code>magtek_setf.py</code> script available on |
+ | The mode could be switched using <code>magtek_setf.py</code> script available on Bashlinux scripts on terminal. |
== References == |
== References == |
Latest revision as of 05:03, 16 June 2015
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.