hid

USB: low latency (< 1ms) with interrupt transfer and raw HID

微笑、不失礼 提交于 2019-12-05 05:17:10
问题 I have a project that requires reading an external IMU gyroscope data at regular interval and sending the data over to an Android phone. I am using a teensy 2.0 board to query the IMU via I2C and send it over USB using raw HID. I am using RawHID variable which is declared in usb_api.h of usb_rawhid of teensyduino. I have read that a full-speed USB using interrupt transfer can have a 1ms maximum latency and would like to achieve this 1ms maximum latency. I am not sure what to look for to

How to get human readable name for RawInput HID device?

空扰寡人 提交于 2019-12-04 18:39:13
问题 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 in device manager, but the USB product description would also do. Any method should work without administrator permission. So far I've found one set of clues: there seems to be a text field in the registry under HKLM\SYSTEM\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM

HidDevice.FromIdAsync returns null with readwrite

╄→尐↘猪︶ㄣ 提交于 2019-12-04 14:26:49
I am trying to port a library from classic desktop to UWP. It all works like planned except for one thing. When I try to open a HID connection to the device(A wiimote) it won't connect if the permissions are on readwrite. It does work with read only permissions. What could be the problem. The permissions in the manifest are set to the correct values. EDIT: I checked the DeviceAccessStatus to see if the permissions are not good but it returns DeviceAccessStatus.Allowed Manifest code <Capabilities> <Capability Name="internetClient" /> <DeviceCapability Name="humaninterfacedevice"> <Device Id=

Can I access USB HID device via a Chrome App?

孤街浪徒 提交于 2019-12-04 12:10:56
I have a simple little dongle I want to debug by sending/receiving basic USB messages. It enumerates as an HID device (like an additional mouse), but am worried that I won't have access to it. I forgot the hardware and can't test with it for a couple days. Is it a futile effort to continue building a chrome extension to test it? Chrome App, USB documentation: https://developer.chrome.com/apps/app_usb Getting-started example: https://github.com/GoogleChrome/chrome-app-samples/tree/master/usb/knob Google Chrome now proposes a USB HID API. Have a look at the API: https://developer.chrome.com/apps

INF file for HID device - setting name and icon

让人想犯罪 __ 提交于 2019-12-04 07:19:42
I'm looking to create an inf file for a HID device (which has a custom VID/PID). I just want to replace the strings "HID-compliant device" and "USB Input Device" for our device with our strings. I know this will need signing by Microsoft, but is there a good example of how to do this? MikroDel Example of custom HID INF file on MSDN may help you 来源: https://stackoverflow.com/questions/19401162/inf-file-for-hid-device-setting-name-and-icon

How can i use the Bluetooth HID Device profile in Android Pie?

做~自己de王妃 提交于 2019-12-04 05:30:26
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 BluetoothAdapter.getProfileProxy(Context, BluetoothProfile.ServiceListener, int) to get the BluetoothHidDevice proxy object. During debug on my Android Pie device (Nokia 7 plus) the service listener never get called ( onServiceConnected ), and i get the following error in Logcat: Could not bind to Bluetooth HID Device Service with Intent { act=android.bluetooth.IBluetoothHidDevice } If I change the last param

Getting mouse events from HIDManager in OSX with C++

余生长醉 提交于 2019-12-04 05:12:47
I'm porting a game from pc to osx and I'm getting stuck with input events. The main game window is a cocoa app that interfaces with a C++ backend. The pc code uses DirectInput and windows messages to generate keyboard and mouse events that the game understands. When I first started the port I replaced the windows messages with Carbon event handling, but since discovered that Cocoa apps don't fire off carbon events. I did a bit more reading and discovered the HIDManager which seemed to do what I want and was accessible from c++. Using the information in the post here Using IOHIDManager to Get

Find out which process has an exclusive lock on a USB device handle

瘦欲@ 提交于 2019-12-04 01:07:26
问题 I have a library that reads/writes to a USB-device using CreateFile() API. The device happens to implement the HID-device profile, such that it's compatible with Microsoft's HID class driver. Some other application installed on the system is opening the device in read/write mode with no share mode. Which prevents my library (and anything that consumes it) from working with the device. I suppose that's the rub with being an HID-compatible device -- other driver software (mice, controllers,

Connection to specific HID profile bluetooth device

十年热恋 提交于 2019-12-03 21:48:58
问题 I connect bluetooth barcode scanner to my android tablet. barcode scanner is bonded with android device as a input device - HID profile. it shows as keyboard or mouse in system bluetooth manager. i discovered that bluetooth profile input device class exist but is hidden. class and btprofile constants have @hide annotaions in android docs. hidden class: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.3.1_r1/android/bluetooth/BluetoothInputDevice.java here

What is the best usb library to communicate with usb HID devices on Windows?

风流意气都作罢 提交于 2019-12-03 18:36:04
问题 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 mature and stable I would also like to be notified of most HID events through callbacks. I have considered the following alternatives: *libhid - (Unfortunately?) this is GPL and cannot be used in my application. *WDK - Seems to be a bit low-level for my use. I don`t need that kind of control