node-hid 未显示所有 USB 设备

Mat*_*rio 1 macos hid nfc node.js acr122

我在此调用中使用node-hid

HID.devices()
Run Code Online (Sandbox Code Playgroud)

我应该得到所有连接的USB设备的列表,这里的指南中列出

结果我得到了这个设备列表:

[ { vendorId: 1452,
  productId: 33346,
  path: 'USB_05ac_8242_6500000',
  serialNumber: '',
  manufacturer: 'Apple Computer, Inc.',
  product: 'Apple IR',
  release: 22,
  interface: -1 },
{ vendorId: 1452,
  productId: 567,
  path: 'USB_05ac_0237_6300000',
  serialNumber: '',
  manufacturer: 'Apple Inc.',
  product: 'Apple Internal Keyboard / Trackpad',
  release: 144,
  interface: -1 },
{ vendorId: 1452,
  productId: 567,
  path: 'USB_05ac_0237_6300000',
  serialNumber: '',
  manufacturer: 'Apple Inc.',
  product: 'Apple Internal Keyboard / Trackpad',
  release: 144,
  interface: -1 },
{ vendorId: 0,
  productId: 0,
  path: '',
  serialNumber: '',
  manufacturer: '',
  product: 'Apple Mikey HID Driver',
  release: 0,
  interface: -1 },
{ vendorId: 1452,
  productId: 567,
  path: 'USB_05ac_0237_6300000',
  serialNumber: '',
  manufacturer: 'Apple Inc.',
  product: 'Apple Internal Keyboard / Trackpad',
  release: 144,
  interface: -1 },
{ vendorId: 1452,
  productId: 567,
  path: 'USB_05ac_0237_6300000',
  serialNumber: '',
  manufacturer: 'Apple Inc.',
  product: 'Apple Internal Keyboard / Trackpad',
  release: 144,
  interface: -1 } ]
Run Code Online (Sandbox Code Playgroud)

其中不包括通过 USB 连接到我的 Mac 的 ACR122U-A9 设备(ACS Ltd 提供的 NFC/RFID 设备)。

连接到 Mac 的所有外围设备都列在下面System Report -> Hardware -> USB,这里是屏幕截图:ACR122U 连接到 Mac

你能想出如何解决这个问题吗?

Mic*_*and 6

node-hid 是一个从 node.js 访问 USB HID 设备的库。HID.devices()因此将只列出 USB HID设备,而不仅仅是任何 USB 设备。

ACR122U 是CCID(智能卡读卡器的 USB 类)而非 HID(人机接口设备的 USB 类)设备。因此,它不能被 node-hid 列出。