Difference between revisions of "Magtek"

From Bashlinux
Jump to: navigation, search
(Created page with "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. Th...")
 
Line 34: Line 34:
   
 
== References ==
 
== References ==
  +
* [http://wiki.bashlinux.com/w/images/f/fd/Magtek_-_USB_HID_for_Swipe_Readers.pdf Magtek_-_USB_HID_for_Swipe_Readers.pdf]
 
* [http://www.mjmwired.net/kernel/Documentation/usb/hiddev.txt hiddev.txt]
 
* [http://www.mjmwired.net/kernel/Documentation/usb/hiddev.txt hiddev.txt]
 
* [http://users.sosdg.org/~qiyong/lxr/source/include/linux/hiddev.c Linux Cross Reference]
 
* [http://users.sosdg.org/~qiyong/lxr/source/include/linux/hiddev.c Linux Cross Reference]

Revision as of 04:15, 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 | | {color:#ff6600}{*}30{*}{color} | {color:#ff6600}{*}Track 1 data{*}{color} | {color:#ff6600}{*}Data{*}{color} | {color:#ff6600}{*}Input{*}{color} | | 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 uwink scripts on terminal.

References