1,283 questions
0
votes
0
answers
69
views
Python loss of connection after OS USB Disconnect/Reconnect, but Python can't see the device
While I'd appreciate the answer, I'd really like to understand how to diagnose what's happening in Python.
The basic issue is that Raspberry PI OS or a driver causes some USB connections to disconnect ...
0
votes
1
answer
45
views
Mac Catalyst (MAUI): IOHID InputReportCallback not firing, IOUSBInterfaceOpen returns kIOReturnNotPermitted (0xe00002e2) for custom HID device
I am developing a .NET MAUI Mac Catalyst app (sandboxed) that communicates with a custom vendor-specific HID USB device.
Within the Catalyst app, I’m using a native iOS library (built with Objective-C ...
0
votes
0
answers
78
views
How to use HIDAPI to communicate with rp2040 keyboard and mouse composite device on the pc to control keyboard and mouse actions
I saw the keyboard and mouse device example in Adafruit_TinyUSB_Arduino\examples\HID\hid_composite and I want to send control commands through HIDAPI on the PC to perform keyboard and mouse actions. ...
0
votes
0
answers
97
views
HID reports to interact with Microsoft Teams
I am implementing an HID report descriptor for an Audio USB device that I can choose in Teams as a microphone and a speaker. Has anyone had experience with implementing Phone Mute under the telephony ...
0
votes
2
answers
207
views
Reading Barcodes using a USB scanner without keyboard mode
I have been researching this for a while and it seems the industry standard is for QR/Barcode scanners to simply emulate a keyboard and type anything scanned in. There is a number of tricks like ...
1
vote
0
answers
49
views
Mouse movement accuracy problem via Bluetooth HID
I'm developing a task automation bot in Python that remotely controls a mouse and keyboard via Bluetooth HID. The bot uses a C driver to send keyboard and mouse commands via Bluetooth, emulating an ...
1
vote
1
answer
113
views
I've read through the USB documentation, but i still don't understand where the prefixes for USB report descriptor usage pages and usages come from
I've read through the documentation for the USB HID class and the USB usages tables, and looked at examples provided.
Here:
https://www.usb.org/sites/default/files/hut1_6.pdf
https://www.usb.org/sites/...
0
votes
0
answers
213
views
HID Keyboard Not Sending Keystrokes Using Raspberry Pi Pico - Device Recognized but No Input
I am trying to implement a custom HID device using a Raspberry Pi Pico that simulates a keyboard. I have configured the GPIO1 pin to act as a button, where pressing the button should send a keypress (...
0
votes
0
answers
101
views
What should I check to solve a USB HID Write error?
I write data to host using a usb hid.
The following is the script for hid.
#!/bin/sh
usb_id=1
case "$1" in
start)
#1 mount configfs
mount -t configfs none /sys/kernel/...
0
votes
1
answer
184
views
How to disable USB HID once done, using adafruit_hid.keyboard & circuitpython
My computer won't boot due to a failed fan speed check in the Bios. My wireless keyboard won't mount in time, and if I don't hit "escape" to skip the test everything hangs.
I decided to try ...
0
votes
1
answer
136
views
stm32 simulate multi-touch device is not working
I'm using a stm32f103 board to simulate multi-touch hid device.
currently the board is recognized as touch screen device correctly, however, touch action is not executed at the host when touch event ...
0
votes
0
answers
103
views
How to Read GPIO from a CM108B Sound Card on Linux Using HID Interface
I'm using the CM108B sound card for a phone application. I need to use two GPIOs, one for writing and the other for reading. I've managed to write on my GPIOs with HID using Willy's GitHub project, ...
1
vote
0
answers
59
views
HID Device Call State Management Control Not Sending Reports
Trying to create an HID device that can detect whether a conference meeting on my pc has started or ended (Google Meet, Zoom, etc). Found a section in the HID documentation for Call State Management ...
1
vote
0
answers
41
views
HID Telephony Device Usage ID "Host Call Active" Not Changing When Start/Stop Online Meetings
Trying to create an HID device that can detect when an online meeting (such as Skype, Google Meet, Zoom) starts and ends. Trying to utilize the Telephony Device output report to make that possible, ...
0
votes
1
answer
325
views
HID REPORT is not aligned with the bytes
I'm currently creating a HID device with a STM32 to work with windows, and I struggle a lot with the Report.
I always have an "this device cannot start - error 10, the report is not aligned with ...
0
votes
0
answers
78
views
Modifying Bluetooth GATT Configurator Report Map Characteristics in SiLabs - Simplicity studio v5
As part of my application,I am working with SiLabs and following example of this text with my deice EFR32BG22 and tool Simplicity Studio V5.
I need to add a digitizer descriptor to the Bluetooth GATT ...
1
vote
1
answer
86
views
Distunguish between USB/BT for the same device
I do some experiments using hidapi lib to read controller/joystick data. Currently I am facing a problem when using PS4 Controller (might be a Problem using other devices too).
On Windows (I guess on ...
0
votes
1
answer
151
views
USB HID Consumer Volume Increment/Decrement as relative input auto-repeats on Win10
I have implemented a rotary encoder to control a Host PC's volume through as an HID device. Here's the report descriptor:
0x05, 0x0C, /* Usage Page (Consumer). */
0x09, 0x01, /* Usage (Consumer ...
0
votes
1
answer
104
views
Reading from hid reader in a BackgroundService worker, .NET 8
I am trying to read from a HID Reader with specific vendor id, product id in a .NET 8 / C# background service. I could register the device successfully but not able to read the reader when a card is ...
1
vote
0
answers
40
views
How can I keep the system keyboard fixed while receiving input from a Bluetooth HID device in a Flutter app?
Problem
I'm trying to use Bluetooth Barcord Reader with Flutter App.
When I build in Android and use Reader,
the keyboard repeat hide - show.
@override
Widget build(BuildContext context) {
return ...
1
vote
1
answer
115
views
Can windows (HidLibrary.dll) send packet to USB HID (Keyboard + vendor-defined)?
I'm trying to write a usb device by stm32f103c8t6, which is detected as keyboard to send key code to windows, and vendor-defined to send-receive custom data.
But only keyboard work.
Here is usb ...
1
vote
2
answers
351
views
How to reconnect Android BluetoothLE HID peripheral to central?
I want to make an Android phone work as a BLE HID peripheral (an absolute mouse, to be precise) using BluetoothGattServer and handling the gatt characteristics directly, rather than using the ...
0
votes
0
answers
61
views
Is there any way that I could optimize the function of open/close HID interface with a composite hid device through C++?
I'm building a program with C++ by Mac Catalyst using Xcode to communicate with a composite hid device. I wrote a endless loop to test this function. Simply speaking , the process of my loop is as ...
4
votes
1
answer
715
views
Where do the `values` for `MSC_SCAN` in `evdev` come from?
If you run something like
sudo evtest /dev/input/event7
where event7 corresponds to (say) a keyboard and you press a key, you get a report like:
Event: time 1725511187.487035, type 4 (EV_MSC), code 4 ...
1
vote
1
answer
221
views
Make leds accessible from hid device
i have a winwing rudder peddal which has three leds, but the leds are not direct accessible from usb hid evdev and
/sys/bus/hid/devices/0003:xxxx/input/inputxx/capabilities/led
reports 0.
The report ...
1
vote
1
answer
397
views
How to send Unicode in a USB HID report?
There's a question with almost an exact name name. The answer states that for (general) Unicode characters his solution was OS-dependent.
However, the HID Usage Tables 1.5 doc has a dedicated Usage ...
2
votes
2
answers
535
views
How to Read Joystick Input from Logitech Extreme 3D Pro in Python?
I'm working on a Python program to read inputs from a Logitech Extreme 3D Pro joystick. I am able to receive raw data from the joystick, but I'm struggling to correctly interpret the X and Y values ...
3
votes
0
answers
154
views
Not able to detect trackpad events on macOS using IOKit hidmanager - IOHIDManagerRegisterInputValueCallback
I am trying to detect mouse events along with device details on macos. The code detects external mouse events but doesn't detect internal trackpad events. Surprisingly the same code works on
Intel ...
0
votes
0
answers
52
views
Cannot connect to Next.js Linux HID device
I connected the smartec st-ceo11em proximity card reader device to linux. I added all the permissions I could add and it worked, the connection to the device is there. However, it does not read data ...
0
votes
0
answers
172
views
Delphi Jedi: HID connection
I need to connect to a device with Jedi for Delphi.
But I am new to HID and serial ports.
I sadly don't even know where I should start.
Well I tried to look it up and I got there:
https://wiki.delphi-...
1
vote
1
answer
84
views
macOS app and extension: How to send x,y data from HIDStylusDriver to StylusApp to Pen/Draw?
I am using HIDStylusDriver to handle stylus input:
I have a touch screen and I want to:
Control the screen. I can enable the extension and control the touch screen successfully.
Draw on this screen. ...
0
votes
0
answers
74
views
Pairing Linux hiddev file with specific device in .NET C#
On my Linux system I have 2 hiddev files (there could be more in the future):
> ls /dev/usb
hiddev0 hiddev1 lp2
And I have a bunch of USB devices:
> lsusb
Bus 001 Device 001: ID 1d6b:0002 ...
0
votes
0
answers
86
views
MCP2200 communication with HID under LINUX
I would like to use the following product as an input module(know whether a signal (12~24V DC) is present or not via the GPIO pins).
https://denkovi.com/usb-8-opto-isolated-digital-inputs-module
the ...
0
votes
2
answers
527
views
12 V USB 4 channel relay controlling
I’m trying to control a relay using Python, but I’ve hit a roadblock.
Unfortunately, I couldn’t find the datasheet for this specific relay, which means I don’t have the correct commands to send.
Here’...
1
vote
0
answers
187
views
Rust STM32 HID mouse not write report
I'm programming a stm32f103C8T6 (Blue pill) using Rust to configure as mouse device However, when I write the report, the mouse does not move and the usb device is not listed by lsusb command at any ...
1
vote
0
answers
83
views
Open device in non-exclusive mode using node-hid
I am using node-hid to access gamepad controllers in electron app. I am trying to use node-hid to open the device. But I need non-exclusive access to the device across platforms.
From my limited ...
1
vote
0
answers
114
views
Python get current keyboard / input device
I want to create a python script to read the keyboard input of one of my old keyboards and converts the input into a macro output.
All i managed to do is reading the Input of either all devices ...
0
votes
1
answer
109
views
USB touchscreen not registering multiple contacts
I'm trying to implement a USB touchscreen on a STM32. I'm making a full-speed device using ST's USB library and I'm testing it with on a Windows 10 host. The first contact registers, but when I try to ...
0
votes
1
answer
57
views
The value of Power State Property is not match HID Report Descriptor
I can found a lot HID sensor's report descriptor contain below Power State property.
HID_USAGE_SENSOR_PROPERTY_REPORTING_STATE,
HID_LOGICAL_MIN(0),
HID_LOGICAL_MAX(5),
HID_REPORT_SIZE(...
0
votes
0
answers
252
views
HidSharp write: 'Operation failed early: The parameter is incorrect'
I have a USB scanner for bar codes/QR codes/MRZ. Manufacturer name is Ecodesky, model name is EMT8661.
I have a user manual from the manufacturer, which contains a set of QR codes that allow me to ...
0
votes
1
answer
124
views
Win32 - Wait for arrival/receive notification of new HID Feature Report
I’m currently working on an application that configures RGB lighting for a USB keyboard. The keyboard adheres to the HID (Human Interface Device) specification, allowing customization through HID ...
0
votes
1
answer
454
views
How do I get a raw input device's proper display name in C#?
I am making a simple program to enumerate all of the devices currently connected to your Windows along with their pointers, then display the proper name for the device you clicked a button on your WPF ...
0
votes
0
answers
40
views
Seize Device and Work with input on MacOS [duplicate]
I'm attempting to seize focus on a USB card reader such that only my program interacts with the card read events. With the code below, it is registering when the card reader is connected or removed ...
0
votes
1
answer
62
views
I have created a 16 bit xy virtual mouse with raw-gadget. However, its too fast. This can't be normal?
So uint16 0-65535 idk the exact middle split on this cause it's a float but I do 32766 and down then 32769 and up.
Dumping the second EP, I can see when I REALLY move the mouse, it still is moving ...
1
vote
1
answer
2k
views
Ubuntu Snap Chromium can't access WebHID
I'm using Ubuntu 23.10, and trying to use a device with WebHID. I've added all appropriate rules, i.e.
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1209", ...
0
votes
1
answer
89
views
Does anyone know if the xbox360 controller uses 16bits for joysticks in its hid?
I cannot get a single hid dumper to work on windows linux etc multiple boxes, different errors etc. It's such a pain.
I'm 99% sure that it's 16bit xy's but I can't verify. It's annoying because most ...
0
votes
1
answer
113
views
More keypresses per second on STM32L476RE Keyboard emulation
I have recently got the STM32L476 to work as HID keyboard where I am able to send out the keypresses however it is very slow for my use-case. I have followed a typical example like this one.
I have ...
1
vote
2
answers
372
views
Detect vid and pid of a keyboard using python
I'm new to python but I will try my best to explain what's happening. So i want to write a python script which detects VID,PID and NAME of a keyboard and mouse using pywin32. I already wrote a script ...
0
votes
0
answers
49
views
USD-barcode-scanner not recognizing the number 3 or #
I have a usb scanner (huawei Model HC-P10) connected to a raspberry PI. I use it to pick up qrcode scans, all the scans work but the number 3 is not being recognized when scanned. The raw data shows ...
-2
votes
1
answer
114
views
Pc does not accept any input after setting up controller
After i setup a pdp xbox controller using steam, i installed the extra functionality (don't realy now the name). To make it work, i needed to restart my pc. Now my pc does not accept any input but my ...