Comments (13)
From the exclamation point on the "SparkFun Pro Micro" entry in Device Manager screenshot it looks like Windows is not recognizing the descriptors that this library adds and automatically loading the right driver. The device's other interface, the USB serial device, is properly recognized and has the right driver loaded. Can you look at the properties for the broken device and show us what error Windows reports?
from arduino.
hi @reillyeon
Now the issue is, SecurityError: Access Denied
Showing by Zadig software, for Sparkfun Pro Micro board, 2 different device drivers;
interface 0 ( usbser )
interface 2 ( no driver )
Should install winusb driver here ?
events for the broken device;
Device USB\VID_1B4F&PID_9204&MI_02\7&28d8bbf4&0&0002 was configured.
Driver Name: null
Class Guid: {00000000-0000-0000-0000-000000000000}
Driver Date:
Driver Version:
Driver Provider:
Driver Section:
Driver Rank: 0x0
Matching Device Id:
Outranked Drivers:
Device Updated: false
Parent Device: USB\VID_1B4F&PID_9204\WUART
chrome errors;
- error when page loaded,
- error when clicked the connect button
from arduino.
Using the Zadig tool to force the WinUSB driver to load will work around the problem I described in my last comment. The Microsoft OS 2.0 descriptors that this library adds to the device should be telling Windows to load that driver by default.
Recent builds of Chrome have a tool for debugging these issues but you will need to run it on a platform other than Windows, or use the Zadig tool first so that you can overcome the "access denied" error. This tool mimics the steps that Windows and Chrome perform when enumerating a new USB device but display the results in a way that can help to debug issues.
- Visit chrome://usb-internals.
- Click on the "Devices" tab.
- Find your device in the list and click its "Inspect" button.
- Click the "Show WebUSB & Microsoft OS 2.0 Descriptors" button.
- Expand the "Microsoft OS 2.0 Descriptor" and "Microsoft OS 2.0 Descriptor Set Information" nodes and click the "GET" button next to the vendor code.
- Expand the "Microsoft OS 2.0 Compatible ID Descriptor" node.
- The "Compatible ID string" should be equal to "WINUSB". If any of these descriptors fail to load (the tool is reading them directly from the USB device as you click the "get" buttons) that means that there is a bug in the library and your device isn't responding correctly. This would explain why Windows is not behaving as expected.
from arduino.
I tried zadig winusb install, but the issue still remains.
Now, reserved windows.
I tested on Android OK, a successful communication between arduino and chrome.
Do webusb support readline parser with newline delimiters ?
from arduino.
I tried zadig winusb install, but the issue still remains.
Have you tried the debugging steps I suggested?
Do webusb support readline parser with newline delimiters ?
WebUSB provides the ability to read data from the device using USB transfers. Parsing that data is the responsibility of your application.
from arduino.
There is a problem with get descriptors;
from arduino.
As a sanity check can you make sure that the device or configuration descriptors can be read correctly. If they can then there is a bug in this library which needs to be investigated.
from arduino.
Really sorry but I am not good at programming. There must be a sequential error in my code when calling; request/get/open of device and port. Do you think so ?
Here I would ask if WCID driver is useful.
from arduino.
If you think there is an error in your code please post it here.
The normal "install driver" option is fine. Please confirm that when you've installed the driver you no longer get an "access denied" error. Please post a screenshot of the chrome://usb-internals tool where you have clicked the "Get Device Descriptor" button after installing the WinUSB driver.
from arduino.
Firstly please excuse for I keep you busy.
Winusb driver installed by Zadig.
And this flow:
When opened page;
SecurityError: Access Denied
After clicked "Connect" button to force reconnect;
Pop-up appears
select device and done paired
SecurityError: Access Denied
Here usb internals for all the get are clicked:
from arduino.
Need setting in chrome flags ?
from arduino.
No Chrome flags are necessary. Since this device is working for you on Android please try these steps in chrome://usb-internals on your Android device to compare.
from arduino.
Earlier I played with chrome flags.
Now, restored to DEFAULT.
And then IT WORKS !!
Github page on Windows Chrome and my Sparkfun Arduino board;
Connect, send, receive, data communication is OK.
Thank you very much.
from arduino.
Related Issues (20)
- atmega32u4 only connects to Windows not Mac HOT 2
- No devices detected with Seeeduino Xiao
- how set baudrate? what default speed? HOT 3
- Add teensy support
- TI 83 Premium CE doesn't leave exam mode HOT 1
- MRKZero support? HOT 2
- Is webUSB supported for Arduino Uno R3 HOT 2
- WebUSB requires a board that supports USB client device mode HOT 2
- Arduino UNO support
- CUSTOM PID/VID HOT 1
- Question about usage of controlTransferOut() at connect() and disconnect() in serial.js HOT 3
- Getting Started mentions hardware/arduino/avr/cores/arduino/USBCore.h when there is no such file on Github HOT 2
- Not working with Seeeduino XIAO HOT 15
- WebUSB not working anymore with SAMD Board Version > 1.8.10 HOT 1
- No Connecting Device. HOT 3
- Can not download https://github.com/kimio-kosaka/webUSB-arduino/archive/v1.0.0.tar.gz HOT 1
- SAM Support?
- Feature Request: Arduino PortentaH7 HOT 9
- GitPod Integration HOT 1
- how can i insert a value in the console without use the keyboard? i mean, a button that I press and isert a value, what is the function to insert? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino.