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
votes
0answers
15 views

Playstation controller missing buttons in Linux

I'm trying to use a PS2 Guitar Hero II controller on PC/Linux. After trying out multiple Playstation-to-usb adapters, I've finally found one that does not cause any input lag. However I've ...
-1
votes
0answers
9 views

HID Keyboard simulation using arduino

I'm a beginner in Arduino and want to simulate HID keyboard using Arduino UNO. How do I connect the arduino as HID to computer?
0
votes
1answer
22 views

Combine keyboard & consumer control in descriptor

I have a hid_discriptor which looks like this: // from USB HID Specification 1.1, Appendix B.1 const uint8_t hid_descriptor_keyboard_boot_mode[] = { /* Keyboard */ 0x05, 0x01, ...
0
votes
0answers
31 views

Control Transfer failing Android Unity

I am trying to configure a neonode sensor by doing a controlTransfer over USB. My transfer keeps failing even though I have given my android device(a hikey 960 board) permisssion to the USB and the ...
0
votes
0answers
8 views

Re-opening a HID device immediately after closing: enumeration fails

I'm using a USB HID device that needs to be closed and re-enumerated after updating its flash memory. If I immediately re-open the device after closing, it doesn't show up in the enumeration. If I ...
-3
votes
0answers
30 views

Can i have ble events in my app, recieved by my iphone from connected ble hid device

I have an ble hid hardware device which i've connected with my iphone through settings/bluetooth app, the device is sending hid events to iphone on pressing button of the hardware device, On pressing ...
-1
votes
0answers
24 views

Do we need to write a Linux device driver for a HID Device

We have a PIC Microcontroller which is interfaced to Cash Drawer. This PIC Microcontroller is connected to our Intel SoC board over USB. The microcontroller will: Communicate with the SoC via HID USB....
0
votes
0answers
12 views

GetRawInputDeviceInfo from a HID Device

I have a problem with this code : case WM_INPUT: translate(wParam, lParam); void FrameNotifier::translate(WPARAM wParam, LPARAM lParam) { stringstream os; UINT rawDatasSize; ...
0
votes
1answer
21 views

Creating virtual HID device vhidmini2

I'm trying to create a virtual HID device for Windows 10 1809, but I'm stuck. I use Visual Studio 2017 and I would like to start with the vhidmini2 example, available at: https://github.com/Microsoft/...
0
votes
0answers
15 views

No surround 7.1 on Windows 10

I'm having trouble with a 7.1 surround headset on windows 10 (Pro) : when i test it in sound setting only the left and right speakers are working, it is detected as a surround 7.1 speaker. This thing ...
0
votes
0answers
11 views

Under Windows, is it possible to directly control an RGB keyboard by writing HID feature requests rather than going through an app?

Most of the RGB keyboard apps are rather large and memory hungry, often because they are not written efficiently (eg, are not native or standard OS bytecode apps), so I'm wondering if they can be ...
0
votes
0answers
11 views

Why does hid.enumerate() get a SEGV called from Flask but not from command line?

I am getting a SEGV when calling hid_enumerate(), but only when it's called from within my macOS-based Flask microserver. The questions: Any hints on how to isolate this bug better? (See Details ...
0
votes
1answer
23 views

Keyboard battery level inquiry on a Microsoft modern keyboard

Recently bought a Microsoft modern keyboard with fingerprint id. It has no way to tell the battery percentage besides battery drained red light. It registers in device manager as Hid Keyboard Device. ...
0
votes
1answer
72 views

Detecting the buttons on a Bluetooth Remote (HID over GATT)

I have a Bluetooth LE Remote which I would like to pair with my Raspberry Pi Zero. ] I was able to successfully pair the remote with an Android phone and it then worked like a Keyboard and I was ...
0
votes
0answers
30 views

HID over GATT : report map is wrongly interpreted

I want to use HID over GATT on my ESP32 to handle a remote control : play/pause,scan next, scan previous, mute ... but it is not interpreted in the same way according the phone i use. The report map ...
0
votes
0answers
17 views

Reading/emulating USB switch device event using python

I have a simple single USB switch plugged into my laptop (Namely Smartbox Joycable). How would I go about listening to the event generated when the switch is pressed, then emulating the event through ...
1
vote
0answers
21 views

What are the EXECUTE, AGAIN, etc. keys for in USB HID usage codes?

I found these in the list of USB HID usage codes: 0x74 Keyboard Execute 0x75 Keyboard Help 0x76 Keyboard Menu 0x77 Keyboard Select 0x78 Keyboard Stop 0x79 Keyboard Again (source ...
0
votes
0answers
25 views

How to debug Windows USB HID controller delay?

What I'm trying to do is to connect Wii Nunchuk to Windows PC. I've written the ARM firmware which handles the controller side. I've also written a Windows app that polls the data. Everything works ...
0
votes
1answer
58 views

Physical keyboard event hooking does not work with Master-Detail app in Xamarin iOS Forms

My need is to hook events from HID scanner ( which works same as physical keyboard ) to read barcode in Xamarin forms on Master-detail app. I dont have any input field on my page. I found that it ...
0
votes
0answers
25 views

API to retrieve HID descriptor repeatedly?

My company produces Precision Touchpad (PTP) device for notebooks with Windows 10. The PTP is a Human Input Device over I2C interface. The firmware engineer is trying to reproduce the enumeration ...
1
vote
1answer
32 views

Write to HID with Chip Selection with .NET Console App

Hi I am writing a simple console app that needs to write bytes to MCP2210 USB to SPI Master I found this library over here, seems to do good job with connecting the device and reading the metadata. I ...
1
vote
1answer
44 views

How to read the home key on an iOS keyboard using IOHIDManager or Bluetooth?

I am attempting to use the home key on an iOS keyboard for the purpose of an Esc key. I am able to use IOHIDManager to read the keys on the keyboard with the exception of the iOS home key. My ...
0
votes
0answers
23 views

How should I implement a USB remote driver for Android?

I have to develop the driver for a remote control which can be plugged into the USB host port of an Android device. This remote control provides key presses through the USB HID class. It also provides ...
0
votes
1answer
21 views

What Android APIs do I need to perform a USB control transfer (setup, data, status) on a HID device?

I am developing the driver for a USB HID controller linked to my Android device using USB-host. All vendor-specific operations enabling me to poll the status of the controller, or to set different ...
0
votes
0answers
34 views

Not able to read/write from BLE device on Windows 10

I'm trying to establish communication between BLE HID device and Windows machine. I'm using custom HID descriptor. I could verify that the firmware on hardware is working using readymade api running ...
0
votes
1answer
43 views

Getting Error: System.Exception: Could not get device interface detail. Error code: 122 when using HID.Net and USB.Net

I have a Console App (.Net Core) project that is using the Hid.Net Library, where the end goal is to connect with my HID game controllers and read data from it, but as a starting point in ...
1
vote
0answers
90 views

Increase Report Size From 64 bytes to 256 bytes CUSTOM USB HID?

I want to transfer 256 bytes from host to stm32f103 device over USB Custom HID interface Currently, 64 bytes Read/Write is Working Following is the Report Descriptor in my stm32: /** Usb HID report ...
0
votes
0answers
11 views

When using Pure Java HID-API the SETUP transaction times out after 1.5 seconds waiting for the IN I would like to extend the timeout

I am using Pure Java HID-API and I can get it to communicate with my device. I have a setup transaction that causes a change in the mode of operation on the actual device/product attached and I have ...
0
votes
0answers
20 views

How does the usb keyboard initialize the lock state?

I want to make a USB HID keyboard. I can get the status of LEDs with the output report form PC, but when I insert the keyboard into the PC, it will not send this report until the status of LEDS ...
0
votes
0answers
17 views

Associate HID Touch Device with 3M monitor

I used the accepted answer in the thread Associate HID Touch Device with Pnp Monitor to create a tool that will tell me whether touch is configured for my multi-monitor touch setup. My setup uses 10 ...
0
votes
2answers
374 views

Windows API USB IO (winusb.dll)

Edit: This question evolved over time. The basic question was about how to connect to a and read/write to/from a USB device in Windows. Eventually I answered the question with the help of @benvoigt. ...
0
votes
0answers
26 views

c callback function to objective-c [duplicate]

I am using xcode 9 in osx 13 (High Sierra). I wanted to create device manager (osx console executable) by using hid api. So I've used IOHIDManagerCreate function like the following: manager = ...
5
votes
0answers
509 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 ...
0
votes
0answers
22 views

USB-HID working with IIO but now with hidraw subsystem (Chibios firmware)

My uC is connected to a Linux kernel through a USB interface. It is running Chibios 16.1.0 firmware to send data collected from HID sensors to the Linux kernel. Running on a Linux kernel 4.x, the ...
0
votes
0answers
60 views

Make 3rd Party program on Windows believe a HID device is connected

It may seems to be an unusual question at first but let me explain what I try to do. I've developed a program which is able to hook into a 3rd party program called PS4 Remote Play. The PS4 Remote ...
0
votes
0answers
16 views

Windows device check about mouse or keyboard

I want to know if an conncected USB device belongs to a mouse or keyboard. Therefore I iterate recursively the device tree from the HID to the ROOT. I know on the way all about the device and ...
1
vote
0answers
35 views

HIDAPI on linux doesn't seem to recognize descriptors

Got a device reported in dmesg as: [ 7679.312788] hid-generic 0003:16D0:0E70.0012: hiddev0,hidraw0: USB HID v1.01 Device [.de.nonchip TinyStick HIDSTM1640] on usb-0000:00:13.0-3/input0 the actual ...
0
votes
0answers
77 views

Why does my Report Descriptor is **UNAVAILABLE** in lsusb?

I am programming a USB-HID device based on STM32 CubeMX Mouse example. I made some modifications (interface, endpoints, report descriptor, etc using the CustomHID Class template) and I am currently ...
2
votes
1answer
90 views

Writing to HID keyboard works on Linux but not on Windows

I am attempting to set the LED's of my RGB keyboard by sending HID packets to it via my Java program, with the Java HIDAPI wrapper found here. I've been successful so far, but only on my Linux laptop....
0
votes
0answers
17 views

How to program the bluetooth module RN42 into combo mode?

In the Bluetooth HID Profile manual of the module RN42 the manual says that to configure the HID flag register into combo modo we have to put SH,0011 however I tried this and it doesn't change to ...
1
vote
1answer
10 views

If the user is using their mouse left-handed, are .leftMouseDown and .rightMouseDown swapped?

I want to know that the system handles this for me. I really hope it does. If the user is left-handed, and so the left and right mouse buttons' meanings are swapped, then do all NSEvent things ...
0
votes
0answers
58 views

(Mac) trying to read input from USB Device with a Callback - Input values getting mixed up and needing to NSLog for code to work

Context: I'm trying to write a script that can fully disable/customize mouse acceleration on Mac. I haven't found a way to block mouseMoved events using Quartz Event Services (CGEventTap), so I tried ...
0
votes
0answers
55 views

Detaching or preventing extra keyboard / HID device from attaching to Linux console or X and then using it from my own background process

Is there any way to just "disconnect" an extra keyboard from the Linux console & X subsystems? I see that when there are multiple keyboards connected, all of them send keystrokes. cat /proc/bus/...
0
votes
0answers
43 views

USB HID input Read not connecting

Trying to connect and read USB barcode reader and able to connect and read well by using evdev in python and tried the same in node js with various npm packages like node-hid node-red-contrib-usbhid ...
0
votes
1answer
60 views

mbed: compiling with USBDevice library results in error

I've been attempting to compile a simple example of a USB Keyboard for my STM32 Nucleo F303K8 (I've been following the examples at https://os.mbed.com/handbook/USBKeyboard and https://www.hackerspace-...
-1
votes
1answer
50 views

How to integrate an HID USB Controller?

I'm at a standstill. I have this non-standard game controller which I would like to integrate into an application. It has three joysticks, and fifteen possible buttons. It is an HID compliant USB-...
0
votes
1answer
58 views

Crash of UWP's HID library

I am developing a UWP application to work with HID devices. The application is working correctly almost all the time. But it often crashes when I close or collapse/restore. I got exception Access ...
0
votes
0answers
17 views

Mapping InputDevice to BluetoothDevice

When a BLE HID device is added by Android for accepting inputs for InputEvents etc, I can see that InputDevice shows name, Pid and Vid, but is there any way I could map it to an individual BLE device? ...
2
votes
0answers
157 views

BLE HID over GATT callback is not called

I work to a Android app that connect to a BLE device that implement HID over GATT communication protocol. What I have to do is to get some notification from device when a button is pressed, turn on ...
0
votes
0answers
48 views

Is it possible to read/write to a USB device on OS X without writing a device driver in C++?

I'm interested in writing an HID USB Device Driver for OS X entirely in Golang, but I can't find any recent documentation that hasn't been marked as deprecated. On Linux, I'm familiar with writing to ...

http://mssss.yulina-kosm.ru