WebUSB和RFID读取器 [英] WebUSB and RFID readers

查看:265
本文介绍了WebUSB和RFID读取器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人有通过WebUSB使RFID阅读器工作的经验。我使用的读者是 https://www.parallax.com/product/28340

I was wondering if anyone had any experience getting RFID readers to work through WebUSB. The reader I'm using is the https://www.parallax.com/product/28340 .

根据我的读物,我必须编写一个驱动程序才能从设备中读取内容。我只是想知道是否有人为此做过什么,最终他们做了什么。

From what I've read, I'd have to write a driver to read from the device. I was just wondering if anyone has done any work regarding this and what they ended up doing.

这里的目标是读取RFID标签,而无需使用其他应用程序将其馈送到

The goal here is to read RFID tags without using another application to feed it to the web application.

谢谢!

推荐答案

RFID阅读器使用FTDI FT232R芯片提供串行到USB接口。如果主机操作系统具有用于该芯片的驱动程序或已安装FTDI虚拟COM端口驱动程序,则当您的应用程序通过WebUSB API请求该设备时,浏览器将无法连接到该设备,因为该设备提供的USB接口已经

The USB variant of that RFID reader uses an FTDI FT232R chip to provide a serial-to-USB interface. If the host operating system has a driver for this chip or the FTDI Virtual COM port drivers are installed then the browser will be unable to connect to the device when your application requests it through the WebUSB API because the USB interface presented by the device will already be claimed by the driver.

如果您能够保证未加载虚拟COM端口驱动程序,则可以使用WebUSB API编写驱动程序以控制设备。

If you are able to guarantee that the Virtual COM port driver is not loaded then you will be able to write a driver using the WebUSB API to control the device.

这篇关于WebUSB和RFID读取器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆