Questions tagged [hid]
HID stands for Human Interface Device, a type of computer peripheral taking input from a user and sometimes providing feedback, for example keyboard, mouse, joystick, trackball and the like.
1,278
questions
62
votes
1
answer
86k
views
Disabling mouse acceleration in Mac OS X [closed]
First of all, here's the userland question: Disabling mouse acceleration in Mac OS X @ superuser
To summarize: I want to have linear mouse response on Mac OS X. That is, no acceleration; an ...
40
votes
10
answers
25k
views
Set of unambiguous looking letters & numbers for user input
Is there an existing subset of the alphanumerics that is easier to read? In particular, is there a subset that has fewer characters that are visually ambiguous, and by removing (or equating) certain ...
40
votes
6
answers
100k
views
How can I capture raw HID input on Linux?
Short version of what I want to accomplish: I have a foot pedal (INFINITY-IN-USB-1, if that's of any interest) that is implemented as a generic HID device, and I would like it to be behave as Ctrl and ...
40
votes
5
answers
25k
views
Is it possible to make a computer behave as a bluetooth HID device?
Is it possible to make a computer behave as a bluetooth HID device? That is, given a local machine with a standard USB keyboard plugged into it, other devices could discover this machine and use it as ...
26
votes
8
answers
62k
views
.NET API for HID (USB)? [closed]
Is there an API in .NET (C#) for using USB HID (human interface) devices?
24
votes
1
answer
7k
views
How can you take ownership of a hid device?
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 ...
22
votes
3
answers
20k
views
Reading and writing to USB (HID) interrupt endpoints on Mac
I am attempting to communicate with a rather specific USB device and developing both Windows and Mac code to do so.
The device is a USB device with a HID interface (class 3) with two endpoints, an ...
20
votes
1
answer
57k
views
List of hex keyboard scan codes and USB HID keyboard documentation
Where am I able to find a list of the hex keyboard scan codes for different keyboard layouts?
I'm sending the key codes over a (fake) USB HID keyboard with the bash command echo -ne followed by the ...
20
votes
6
answers
35k
views
What is the best USB library to communicate with USB HID devices on Windows?
The library should;
Be easy to use and few lines of client code should accomplish much
Be as platform independent as possible. (In case of future ports to other platforms)
Have C++ bindings.
Be ...
20
votes
3
answers
8k
views
Simulate USB/Bluetooth HID device locally in order to inject events?
Is it possible to simulate a USB or Bluetooth device connected to Android?
I would like to make an app which is able to simulate an HID device locally. What I mean by this is: the app should make ...
19
votes
3
answers
11k
views
Need to intercept HID Keyboard events (and then block them)
I've got a RFID USB device that registers as a HID device (A USB Keyboard more or less).
I'm looking for a way to capture this input, and block/filter it before it hits the normal keyboard event ...
19
votes
4
answers
43k
views
Using Android to Communicate with a USB HID Device
I am new to USB and to Android so please forgive me if I don't explain myself clearly.
I have a USB HID device that I can communicate with in Windows. I am trying to establish communication using an ...
18
votes
4
answers
11k
views
Roll My Own Windows Joystick HID Driver?
I have a USB Joystick, and I want to write my own HID driver for it. Notably I want to inject delay between when the joystick input is received by Windows and when my application is notified of that ...
17
votes
5
answers
49k
views
Custom HID device HID report descriptor
I have a bit of a problem with generating a 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 ...
17
votes
3
answers
8k
views
Is there a JavaScript (or other) library to read driver's licenses?
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 ...
16
votes
5
answers
16k
views
Get mouse deltas using Python! (in Linux)
I know that Linux gives out a 9-bit two's complement data out of the /dev/input/mice. I also know that you can get that data via /dev/hidraw0 where hidraw is your USB device giving out raw data from ...
15
votes
2
answers
59k
views
USB HID Devices
I'm looking for one of either 2 things
1 - A working example of code using Florian's library from: http://www.florian-leitner.de/index.php/2007/08/03/hid-usb-driver-library/
This seems to be one of ...
15
votes
2
answers
11k
views
Raw access to HID devices in OS X
What is the simplest way to get raw access to HID devices on OS X?
I've been looking through the IOKit examples, but even opening a device seems needlessly complex, involving multiple callbacks and ...
14
votes
3
answers
18k
views
How can I get a String from HID device in Python with evdev?
I am new to python but have experience with HID devices and evdev. I have a 2D barcode scanner which interfaces as HID device. The goal is to get the string from a QR code. I am able to recognize the ...
14
votes
3
answers
4k
views
Developing an HID input device driver for a BLE GATT device on Windows 10
(This is a crosspost from the MSDN forums since there hasn't been any response there for quite some time and I thought I would get better answers here.)
I have a BLE device containing a custom GATT ...
13
votes
5
answers
31k
views
Write data to USB HID using JavaScript, HTML5, or any cross platform language (supports Android)
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 ...
12
votes
2
answers
12k
views
How to programmatically pair and connect a HID bluetooth device(Bluetooth Keyboard) on Android
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/...
12
votes
1
answer
3k
views
How to perform a hardware reset of a specific HID device?
The aim
Perform a hardware reset of a specific USB dongle ANT, HID device, with Delphi app.
1. CM_Request_Device_Eject function attempt
I have tried to use the CM_Request_Device_Eject function and ...
12
votes
3
answers
2k
views
Remote bluetooth camera trigger for phone
I would like to build a camera trigger for my phone by simulating a BLE keyboard that sends the Volume Up key to the phone connected by Bluetooth. I want this because I want to trigger the native ...
11
votes
3
answers
16k
views
How can i use the Bluetooth HID Device profile in Android Pie?
I am trying to write an app for Android P using the Bluetooth HID device profile service to be used as a Bluetooth keyboard. According to the documentation I am supposed to use the method ...
11
votes
2
answers
4k
views
What data can a HID device receive?
I am designing a USB keyboard with special capabilities. What information can such a HID device receive from the host?
Can I via USB:
Read data from a form on the screen?
Find out what OS the user ...
11
votes
3
answers
4k
views
Android and Guitar Hero controller
I know that the latest versions of Android (Honeycomb and ICS) have support for joysticks and gamepads.
Guitar Hero (and Garage Band) controllers are essentially USB HID devices, right?
So my ...
11
votes
2
answers
7k
views
Listen to USB keyboard with Python
The setup: a minimalistic Linux (OpenWRT on ASUS router), a USB keyboard (assume I know the device name like /dev/hiddev0)
A goal: write a python (or shell, in this case I can use it like a proxy for ...
11
votes
3
answers
6k
views
How to get human readable name for RawInput HID device?
I'm switching an application from DirectInput to RawInput for gamepad handling, and I'd like to present a human readable description for each gamepad. The ideal would be the device text that appears ...
10
votes
3
answers
20k
views
Creating a virtual HID device
I'd like to create a virtual HID device (emulate it with a driver).
It must be visible to clients that implement standard HID detection:
Call HidD_GetHidGuid() – Get the HID
device class GUID
Call ...
10
votes
2
answers
2k
views
Send data to a PS3 DualShock3 controller from a Mac (IOHIDDeviceSetReport)
I've been playing around with the HID part of IOKit lately on my Mac with a PS3 controller. I've managed to look though the sample code and connect to my controller, receive a stream of data and parse ...
10
votes
2
answers
5k
views
CreateFileA fails to open HID device in Windows
EDIT: Issue reported here: https://github.com/signal11/hidapi/issues/276
Inkling is a pen-device from Wacom. (InklingReader) is an open source project that gets real-time data from it.
I'm trying ...
9
votes
3
answers
31k
views
Serial or HID (usb) Communication in iOS (iPhone/iPad)
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 ...
9
votes
1
answer
445
views
UWP HID SendOutputReport always returns access denied, requires ReadWrite permissions
I'm trying to read a Wii Remote using the HID class, in a UWP app (C# .net), similar to this.
However, I can't seem to do much, as I can't get a Write-capable HID handle, which is required to do a ...
9
votes
1
answer
10k
views
How to reverse engineering USB/HID/BlueTooth dongle. What tools to use?
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
...
9
votes
1
answer
1k
views
How do I tell OS X to ignore the input from one of two connected USB mice?
I have two USB mice connected to my Mac, one of which I'm using as a scanner. I need access to the Generic X and Y data but I don't want that data to move the cursor. How, under either carbon or ...
8
votes
3
answers
2k
views
How can I connect to a Server Side USB (HID) Device from within an ASP.NET Application?
I'm trying to write my own controller for a USB device instead of using the SDK that comes with the product (I feel the sdk is sub-par).
The USB Device is plugged into the SAME SERVER that this ...
8
votes
1
answer
6k
views
Create iOS BLE HID service?
I tried to create a simple "Hello World" app implementing the HID service (i.e. my app acting as a simple HID button).
However, when trying this I receive the error The specified UUID is not allowed ...
8
votes
2
answers
7k
views
How to simulate a low level keypress on os x?
I am trying to generate keyboard keydown and keyup events programmatically. I am currently using CGPostKeyboardEvent to do this, but I am searching for a way to do this at a lower level. I have ...
8
votes
1
answer
2k
views
Mac low-level keyboard device corresponding to Linux /dev/input?
What is the name of the low-level keyboard device in macOS (somewhere in Darwin / Mach / IOKit) that corresponds to /dev/input in Linux? (e.g. /dev/input/event0)
Context: I'm asking because want to '...
8
votes
3
answers
2k
views
Convert events from a USB human interface device using C++
I have a USB HID touchpad that collects input. By default, when I press on the touchpad it generates carriage return (Enter) and when I try to use it as a mouse it actually enters a dragging state.
...
8
votes
1
answer
2k
views
How do I direct input Unicode from a device? I want a "Machine interface device" than "Human interface device" (HID)
For example, a USB barcode scanner can act as an HID keyboard to input characters. However, to input some foreign language other than English, e.g. Unicode, an HID keyboard could face difficulties. ...
8
votes
1
answer
745
views
Is there a way to detect whether Windows is installing a device driver?
The situation:
We have a software suite that interacts with a device we built in-house. The device uses WinUSB for communications, EXCEPT when in boot mode during firmware updates. When in boot mode, ...
8
votes
0
answers
2k
views
How to translate X11 keycode back to scancode or hid usage id reliably
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 ...
8
votes
2
answers
3k
views
Consuming a USB HID device in Windows CE 6.0 using C#
I am working on an embedded Windows CE project and am interested in accessing a USB HID device through one of its USB Host ports. All I really need to read are the raw HID specification packets.
On a ...
7
votes
2
answers
18k
views
My SetupDiEnumDeviceInterfaces is not working
I am interested to find out if I am doing this right:
//DeviceManager.h
#include <windows.h>
//#include <hidsdi.h>
#include <setupapi.h>
#include <iostream>
#include <...
7
votes
1
answer
4k
views
How to debug USB HID scancode-keycode translation in Linux
I have recently converted a 122-key terminal keyboard to USB as a configfs USB gadget (the keyboard portion is using HID codes). It works quite well, except that I cannot seem to get my Arch Linux ...
7
votes
2
answers
2k
views
Python evdev equivalent for OSX
I have written a python script that polls evdev for a HID barcode scanner (emulates a keyboard): the script works well on Linux platforms (Ubuntu). Is there an OS X Python equivalent for evdev that ...
7
votes
1
answer
11k
views
Detecting input from any USB HID in C# using HidLibrary
First of all i am new to C#. I want to create an application that detects any usb hid device (I have used HidLibrary and it detects the HIDs) but i want to get input from the hid as well (I have used ...
7
votes
2
answers
6k
views
USB HID hangs on Read() in C#
I am trying to connect to a USB digital scale. The code does connect to the scale as scale.IsConnected comes true, but it hangs on scale.Read(250) where 250 should be the timeout in milliseconds, but ...