--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-app...@chromium.org.
To post to this group, send email to chromi...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
I am trying to send some vendor command to my USB device under Chrome Book.
after doing a bit research, i tried to use the chrome.usb API from here.
https://developer.chrome.com/apps/app_usb
and I have found some samples from here.
https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/usb/device-info
the sample I have tried, both working on Windows7, and Ubutnu14, but NOT on chrome Book.
which Ubuntu14 need root privilege, normal mode will show "permission is denied." under chrome.runtime.lastError.message
so I reckon, if we can get enough privilege on Chrome Book? we can also access(unlock) the USB device from chrome api.
Failed chrome book sample
Windows can work
Ubuntu can work.
Forget to mentioned the code.
I fail at trying to open USB handle.
Doesn’t matter I am using either one, they failed
chrome.usb.openDevice(device, function(handle)
chrome.usb.findDevices({"vendorId": device.vendorId, "productId": device.productId}, function(handles)
chrome.usb.openDevice says “permission is denied”
and
chrome.usb.findDevices not return fail message, but the handles it has return, has 0 length.
Means nothing device is found.
--
--