hid

How to reverse engineering USB/HID/BlueTooth dongle. What tools to use?

久未见 提交于 2019-12-03 17:43:58
问题 Need to reverse engineering bluetooth usb mouse dongle, and use mouse board to measure distance, and plot them with matplotlib I've found these tools that can help with this task: Linux lsusb usbmon usbhid-dump rfcomm hidrd-convert xxd hcitool evdev-dump Windows usblyser Bibliography: https://www.silabs.com/Support Documents/TechnicalDocs/AN249.pdf www.usb.org/developers/devclass_docs/HID1_11.pdf Usbhid-dump - digimend Linux, HID and PyUSB MagTek Credit Card Reader in Linux Evdev-dump -

Is there a JavaScript (or other) library to read driver's licenses?

依然范特西╮ 提交于 2019-12-03 16:51:59
问题 I'm working on a JavaScript project that involves reading credit cards and driver's licenses from a USB magnetic stripe reader in keyboard emulation mode. It turns out getting credit cards working was extremely easy, as they're all in the same format. However it quickly became clear that driver's licenses are much harder, as even within a single state (CA) the format varies from one card to the next. In any case, the goal is to take the raw data from swiping a driver's license (using a

How to translate X11 keycode back to scancode or hid usage id reliably

青春壹個敷衍的年華 提交于 2019-12-03 14:44:16
Almost self resolved. Background info linux keycode The below is from: linux_xmodmap_tutorial Scancode → a number your keyboard sends to a computer. For USB keyboards, it's defined by the USB standard. Keycode → a number used by Linux kernel to represent key (or mouse button/wheel). The Linux kernel translates scancode to keycode. Keysym → a name for a key. keysym is received by X11 applications. I could be wrong but what sudo evtest prints seems like scancode set 1 and since /dev/input/event* outputs are similar, at least with my system scancodes and linux keycodes are mostly same. X11

How to programmatically pair and connect a HID bluetooth device(Bluetooth Keyboard) on Android

时光总嘲笑我的痴心妄想 提交于 2019-12-03 12:32:40
问题 I am able to pair a bluetooth keyboard but not able to connect so as to make it an input device. I went through the documentation provided at developer site - http://developer.android.com/guide/topics/connectivity/bluetooth.html#Profiles It says that the Android Bluetooth API provides implementations for the following Bluetooth profiles but you can implement the interface BluetoothProfile to write your own classes to support a particular Bluetooth profile. Headset A2DP Health Device There is

How to reverse engineering USB/HID/BlueTooth dongle. What tools to use?

怎甘沉沦 提交于 2019-12-03 06:23:21
Need to reverse engineering bluetooth usb mouse dongle, and use mouse board to measure distance, and plot them with matplotlib I've found these tools that can help with this task: Linux lsusb usbmon usbhid-dump rfcomm hidrd-convert xxd hcitool evdev-dump Windows usblyser Bibliography: https://www.silabs.com/Support Documents/TechnicalDocs/AN249.pdf www.usb.org/developers/devclass_docs/HID1_11.pdf Usbhid-dump - digimend Linux, HID and PyUSB MagTek Credit Card Reader in Linux Evdev-dump - digimend Examples: lnx#> lsusb -s 2 Bus 005 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth

Is there a JavaScript (or other) library to read driver's licenses?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 05:12:34
I'm working on a JavaScript project that involves reading credit cards and driver's licenses from a USB magnetic stripe reader in keyboard emulation mode. It turns out getting credit cards working was extremely easy, as they're all in the same format. However it quickly became clear that driver's licenses are much harder, as even within a single state (CA) the format varies from one card to the next. In any case, the goal is to take the raw data from swiping a driver's license (using a magnetic stripe reader) and extract the number from it, in a way that produces the correct number for as many

Custom HID device HID report descriptor

自作多情 提交于 2019-12-03 05:10:55
问题 I have a bit of a problem with generating HID descriptor. I want to use simple reports with ID1 for input and ID2 for output with 64 bytes of data. I realized that despite rtfming and googling I still do not have a clue about some fields in HID descriptor. Can somebody please give me a hint or a manual where I can find the meaning of all descriptor fields? All I could find was examples for HID-mouse/joistick/keyboard. For example - REPORT_SIZE - is it size in bytes or in bits? And why there

How can you take ownership of a hid device?

女生的网名这么多〃 提交于 2019-12-03 03:47:51
问题 What I would like to take ownership of a hid device that may already have been plugged in, consume it's output, while preventing others(X11 or terminal) from consuming it. If I can help it, I don't want to pretend to be a terminal, but rather to monopolize a particular hid or character device. The idea is that some hid devices may be recognized as mice/keyboards by x/terminal, but a second mouse or keyboard could be used for something else, but to do that you need to make sure they aren't

Serial or HID (usb) Communication in iOS (iPhone/iPad)

柔情痞子 提交于 2019-12-03 03:39:29
I want to get data from glucose meter devices by connecting into iPhone or iPad devices. I have different vendors glucose meters some uses simple HID interface for communicate and other uses serial communication. These are the two possible ways of communication: USB to 30-Pin connector. 3.5 jack to 30-Pin Connector. USB or 3.5 jack will be connected to glucose meter and 30 pin connector will be attached with iDevice. After having hours of research I did not find much help on internet for iOS specific. I do find ORSSerialPort but I think it is for OS X apps only. There is RedPark serial Cable

Write data to USB HID using Javascript, HTML5, or any cross platform language (supports Android)

旧巷老猫 提交于 2019-12-02 23:22:35
I've written an UI in HTML5 and JavaScript. I chose this implementation so that I could share the same code between both Android Chrome and Windows 8 RT. Now, my next objective is to write data to a USB HID. The device that I'm communicating with is treated as an HID. I'm mentioning this part in case there's a way to write to an HID device rather than a USB RAW device. I've done a lot of research on the matter. But, the HTML5 specs are changing so often that maybe I missed something. Anyways, can someone suggest a language or implementation that I can use to share common code to access a USB