WebUSB not working

Getting issues connecting to the proffieboard via webusb. Board plugged in, SD card unmounted, set to web interface when flashing.

I hit the USB button in the web browser and I get a little icon on my chrome tab indicating it’s connected, but the page never changes from USB BLE to the actual board options.

On inspection this is in the console for the page

Blockquote
Uncaught (in promise) DOMException: Failed to execute ‘requestDevice’ on ‘USB’: No device selected.
Blockquote

Any ideas? Manually editing the presets.ini was also proving unreliable, board was just totally ignoring any changes I made and not even reading from the tmp. I’ve defined save state and such though so should have been fine.

I moved this to a new thread.
There is a strong preference for starting new threads on this forum when seeking help.

That said, what version of ProffieOS are you using?
What browser?
What OS is your computer running?

Oh, and also: What version do you have of the arduino-proffieboard plugin?

Wasn’t sure if it needed a new thread or not - thanks!

ProffieOS v7.10
Chrome Version 116.0.5845.188
Windows 11
Arduino plugin v 3.6

What URL are you loading the proffieOS workbench from?

https://profezzorn.github.io/lightsaber-web-bluetooth/app.html

Just that one

Not sure what’s going on here.
I’m going to try it in windows on my computer to see if that reveals any interesting problems.

1 Like

Lovely thank you - keep me updated!

So I tried it, but of course it works just fine for me, which means I don’t know what is causing problems for you.

I suppose it could be some sort of chrome extension messing with it?

Just run chrome with the --disable-extensions --disable-plugins flags and still nothing. It seems to connect to board fine, the page just doesn’t…do anything? Just sits there

Just out of curiosity, do you have “Mass Storage” enabled on the board (USB Type) and is the computer accessing your SD perhaps?

I disabled the mass storage thinking that maybe that was causing a problem, it’s just webusb and serial at the moment. However I have just tested on my laptop and it works perfectly fine - so it could perhaps be a way the USB is interfacing with my regular computer? It’s very odd though that the same board, in the same browser, doesn’t behave on my PC. Any ideas where to start? Would hate to have to break out the old busted laptop anytime I want to do a reconfig

Sorry, not really my area of expertise. At least you narrowed the cause to your PC.

try using firefox and see if that helps, I’m guessing it maybe some type of setting on the chrome setting.

Firefox does not support webusb from what I can gather

1 Like

Microsoft edge, which does support webusb, gives me this

Uncaught (in promise) DOMException: Failed to execute ‘open’ on ‘USBDevice’: An operation that changes interface state is in progress.
at RunUSB (https://profezzorn.github.io/lightsaber-web-bluetooth/app.html:1295:20)

Try the USB workbench difficulties thread

So, if this works well on another computer…

Maybe it is…

  • a driver issue?
  • a usb port issue?
  • a race condition? (if one comuter is much faster than the other.)
  • an antivirus program?
  • some other program messing with USB devices?

Unfortunately it’s pretty hard to know…

One possibility is that you at some point ran zadig on one or more of the ProffieOS devices. Doing that can mess up WebUSB. Another possibility is that something else has managed to assign a driver to the WebUSB endpoint somehow. Either way, checking and uninstalling the driver that is assigned to the webusb endpoint might be a good idea.

How would I work out which driver is assigned to the endpoint?