我可以通过Chrome应用程序访问USB

我可以通过Chrome应用程序访问USB

本文介绍了我可以通过Chrome应用程序访问USB HID设备吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的小加密狗我想通过发送/接收基本USB消息进行调试。它枚举为一个HID设备(就像一个额外的鼠标),但我担心我将无法访问它。我忘记了硬件并且几天都无法测试它。

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.

继续构建chrome扩展以测试它是否徒劳无功?

Is it a futile effort to continue building a chrome extension to test it?

Chrome应用程序,USB文档:

入门示例:

Chrome App, USB documentation:https://developer.chrome.com/apps/app_usbGetting-started example:https://github.com/GoogleChrome/chrome-app-samples/tree/master/usb/knob

推荐答案

Google Chrome现在提出了一个USB HID API。请查看API:

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

在此消息发布时,API仍被定义为实验性的。但它是功能性的。
我刚刚写了一个教程来解释如何使用这个API。

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.

看看:

这篇关于我可以通过Chrome应用程序访问USB HID设备吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 02:29