Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I access USB HID device via a Chrome App?

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

like image 328
tarabyte Avatar asked Jan 11 '23 19:01

tarabyte


1 Answers

Google Chrome now proposes a USB HID API. Have a look at the API: https://developer.chrome.com/apps/hid

The API is still defined as experimental at the time of this message. But it is functional. I have just written a tutorial to explain how to use this API.

Have a look: http://www.appnearme.com/blog/2014/7/21/chrome-usb-hid-controlling-your-usb-device-javascr/

like image 105
OlivierM Avatar answered Jan 21 '23 15:01

OlivierM