Reputation:
After connecting the USB to the raspberry pie,
I have loaded the devices with node-usb .
The desired device was found by the device's VID and PID.
Then I open the device and try to read the data.
But this._open () , error: LIBUSB_ERROR_ACCESS I get this error occured.
How do I give permission?
I did not solve it even though I tried this.
fs.chmod('/media/pi/EFD0-AA20', 511);
below is my code.
usb.on('attach', function(device) {
var devices = usb.getDeviceList();
var sandisk_ultrafit = usb.findByIds(1921, 21891);
sandisk_ultrafit.open();
});
Upvotes: 2
Views: 2181
Reputation: 1
In My Linux Machine
VID of my usb is 0781
Upvotes: 0