错误:Windows计算机上的LIBUSB_ERROR_ACCESS

时间:2018-08-17 20:19:53

标签: javascript node.js windows bluetooth

我当时使用贵族节点模块连接到蓝牙设备,我的代码在Mac机器上可以正常工作,但是在Windows机器上却遇到一些问题。我遵循了https://github.com/noble/noble#windows

贵族团队建议的所有步骤

但是我遇到这个错误,为什么会这样?

this.__open()
     ^
Error: LIBUSB_ERROR_ACCESS
at Device.usb.Device.open (C:\Users\Temp\Desktop\proj\node_modules\usb\usb.js:33:7)
at BluetoothHciSocket.bindUser (C:\Users\Temp\Desktop\proj\node_modules\bluetooth-hci-socket\lib\usb.js:73:19)
at BluetoothHciSocket.bindRaw (C:\Users\Temp\Desktop\proj\node_modules\bluetooth-hci-socket\lib\usb.js:28:8)
at Hci.init (C:\Users\Temp\Desktop\proj\node_modules\noble\lib\hci-socket\hci.js:101:35)
at NobleBindings.init (C:\Users\Temp\Desktop\proj\node_modules\noble\lib\hci-socket\bindings.js:82:13)
at Noble.<anonymous> (C:\Users\Temp\Desktop\proj\node_modules\noble\lib\noble.js:57:24)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:188:16)

0 个答案:

没有答案