# WebUSB help

**URL:** <https://crucible.hubbe.net/t/webusb-help/1573>\
**Category:** ProffieOS\
**Created:** [March 20, 2022, 7:51pm UTC](https://crucible.hubbe.net/t/webusb-help/1573 "2022-03-20T19:51:28Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![BanthaPooDoo](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/banthapoodoo/32/894_2.png) [@BanthaPooDoo](https://crucible.hubbe.net/u/BanthaPooDoo)\
**Post date:** [March 20, 2022, 7:51pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/1 "2022-03-20T19:51:29Z")

</div>

I just upgraded to os 6.9 and after following the tutorials to update config to a 6.x file its working but i cannot get webusb to stay connected to the proffie. I seems to drop the connection while im editing the settings. I am using usb not ble and have tried a few different cables just to make sure its not a connector issue.  
I can program and upload with arduino ide no problems. just keeps dropping in webusb app. I am using the latest version of chrome.

Any help on where to check for the issue  
Dave

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 20, 2022, 7:53pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/2 "2022-03-20T19:53:49Z")

</div>

> [@BanthaPooDoo](#):
>
> os 6.9

There is no 6.9. Maybe you meant 6.6? (or 5.9?)  
What OS is your computer using?  
What browser are you you using?  
Dropping the connection is a problem that other people have reported, but I’ve never been able to figure out what’s causing it, so I’m motivated to figure it out if you’re williing to work with me on it.

---

<div class="post-metadata">

**Author:** ![BanthaPooDoo](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/banthapoodoo/32/894_2.png) [@BanthaPooDoo](https://crucible.hubbe.net/u/BanthaPooDoo)\
**Post date:** [March 20, 2022, 8:12pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/3 "2022-03-20T20:12:32Z")

</div>

You are correct 6.6 it was a typo. Im using windows 10 home edition version 21h2 and os build 19044.1586. I have been using chrome Version 99.0.4844.74. I was thinking that i might try another browser that is webusb enabled. We have to use chrome at work and are usually having problems with it on a regular basis. Any suggestions on other browsers and i will check them and see what i can come up with.  
Ans as i checked the version of chrome it just updated on me, i can check the new version later this evening and see if anything changed.  
Anything else you need let me know. I like the webusb so much better than the old code reflash cycle.  
Dave

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 20, 2022, 9:45pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/4 "2022-03-20T21:45:27Z")

</div>

No, my suggestion was going to be chrome actually.  
The next step would be to check the javascript console and see if there are any interesting error messages there. (Dot-dot-dot menu → More Tools → Development Tools → Console tab.) If we’re lucky it will tell us what’s going on.  
There is also an internal chrome URL or two that might be helpful, like: chrome://usb-internals/ but I’m not sure what to look for there.

---

<div class="post-metadata">

**Author:** ![BanthaPooDoo](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/banthapoodoo/32/894_2.png) [@BanthaPooDoo](https://crucible.hubbe.net/u/BanthaPooDoo)\
**Post date:** [March 20, 2022, 9:53pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/5 "2022-03-20T21:53:06Z")

</div>

Ok so i connected and the console shows that is working. I went into the setting, gear button. and got this shortly after the page loaded  
app.html:1346 Uncaught (in promise) DOMException: A transfer error has occurred.

| | RunUSB | @ | app.html:1346 |
| --- | --- | --- | --- |
| | await in RunUSB (async) | | |
| | onclick | | |

Here is the console log for a few seconds after the initial error  
Uncaught (in promise) DOMException: A transfer error has occurred.  
RunUSB @ app.html:1346  
await in RunUSB (async)  
onclick @ app.html:1563  
app.html:477 Sending get\_preset  
app.html:477 Sending off  
app.html:477 Sending on  
app.html:477 Sending off  
app.html:1356 Loop exit!  
app.html:836 Uncaught (in promise) timeout  
Off @ app.html:836  
await in Off (async)  
onclick @ app.html:1639  
app.html:830 Uncaught (in promise) timeout  
On @ app.html:830  
await in On (async)  
onclick @ app.html:1636  
app.html:836 Uncaught (in promise) timeout  
Off @ app.html:836  
await in Off (async)  
onclick @ app.html:1639  
app.html:1360 Uncaught (in promise) timeout  
DoRunLoop @ app.html:1360  
await in DoRunLoop (async)  
Run2 @ app.html:1279  
await in Run2 (async)  
RunUSB @ app.html:1341  
await in RunUSB (async)  
onclick @ app.html:1563  
app.html:1350 DoRunLoop  
app.html:477 Sending get\_preset  
4app.html:1 Uncaught (in promise) DOMException: A transfer error has occurred.  
app.html:1356 Loop exit!  
app.html:1360 Uncaught (in promise) timeout  
DoRunLoop @ app.html:1360  
setTimeout (async)  
WatchDog @ app.html:460  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
(anonymous) @ app.html:481  
Send @ app.html:476  
Loop @ app.html:1387  
await in Loop (async)  
DoRunLoop @ app.html:1354  
Run2 @ app.html:1279  
await in Run2 (async)  
RunUSB @ app.html:1341  
await in RunUSB (async)  
onclick @ app.html:1563  
app.html:1350 DoRunLoop  
app.html:477 Sending get\_preset  
app.html:1356 Loop exit!  
app.html:1360 Uncaught (in promise) timeout  
DoRunLoop @ app.html:1360  
setTimeout (async)  
WatchDog @ app.html:460  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
(anonymous) @ app.html:481  
Send @ app.html:476  
Loop @ app.html:1387  
DoRunLoop @ app.html:1354  
setTimeout (async)  
WatchDog @ app.html:460  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
(anonymous) @ app.html:481  
Send @ app.html:476  
Loop @ app.html:1387  
await in Loop (async)  
DoRunLoop @ app.html:1354  
Run2 @ app.html:1279  
await in Run2 (async)  
RunUSB @ app.html:1341  
await in RunUSB (async)  
onclick @ app.html:1563  
app.html:1350 DoRunLoop  
app.html:477 Sending get\_preset  
app.html:1356 Loop exit!  
app.html:1360 Uncaught (in promise) timeout  
DoRunLoop @ app.html:1360  
setTimeout (async)  
WatchDog @ app.html:460  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
(anonymous) @ app.html:481  
Send @ app.html:476  
Loop @ app.html:1387  
DoRunLoop @ app.html:1354  
setTimeout (async)  
WatchDog @ app.html:460  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
(anonymous) @ app.html:481  
Send @ app.html:476  
Loop @ app.html:1387  
DoRunLoop @ app.html:1354  
setTimeout (async)  
WatchDog @ app.html:460  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
WatchDog @ app.html:462  
setTimeout (async)  
RunWatchDog @ app.html:468  
(anonymous) @ app.html:481  
Send @ app.html:476  
Loop @ app.html:1387  
await in Loop (async)  
DoRunLoop @ app.html:1354  
Run2 @ app.html:1279  
await in Run2 (async)  
RunUSB @ app.html:1341  
await in RunUSB (async)  
onclick @ app.html:1563  
app.html:1350 DoRunLoop  
app.html:477 Sending get\_preset

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 20, 2022, 10:19pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/6 "2022-03-20T22:19:04Z")

</div>

> [@BanthaPooDoo](#):
>
> Uncaught (in promise) DOMException: A transfer error has occurred.  
> RunUSB @ app.html:1346  
> await in RunUSB (async)  
> onclick @ app.html:1563

Wonder if this is the cause, or the result of whatever the problem is?  
Either way, there is not a lot of information here unfortunately.

What can you tell me about your board? When/where did you get it and so forth? I don’t suppose you have any other boards/sabers we can compare with?

---

<div class="post-metadata">

**Author:** ![BanthaPooDoo](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/banthapoodoo/32/894_2.png) [@BanthaPooDoo](https://crucible.hubbe.net/u/BanthaPooDoo)\
**Post date:** [March 20, 2022, 11:17pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/7 "2022-03-20T23:17:34Z")

</div>

I know its the 3rd proffie i bought, its about yr and a half old. I dont remember where i got it from, possibly saber bay. I do have 2 other sabers i can upgrade to 6.6. I did try opera and had the same problem. I also checked the java updater and there was an update. Im going to try again they the updated java.  
I can try upgrading they other sabers tomorrow.  
Dave

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 21, 2022, 5:17am UTC](https://crucible.hubbe.net/t/webusb-help/1573/8 "2022-03-21T05:17:17Z")

</div>

AFAIK, there is no Java involved here, so updating Java shouldn’t make a difference.

It you’ve tried more than one browser, then that probably means that it’s not the browsers fault. (Although Chrome and Edge shares a lot of code, so they can have the same bugs.)

So… If it’s not the cable, and not the browser, then it must be…

1. proffieos workbench
2. windows
3. proffieos
4. the proffieboard itself

If we can narrow it down to one of these, then it will be much easier to start actually figuring out what the problem is.

I think the next thing to check is the serial monitor though. Like, does it say anything interesting when the disconnect happens? Does the serial monitor stay connected, or does it also disconnect?’

---

<div class="post-metadata">

**Author:** ![BanthaPooDoo](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/banthapoodoo/32/894_2.png) [@BanthaPooDoo](https://crucible.hubbe.net/u/BanthaPooDoo)\
**Post date:** [March 21, 2022, 8:26pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/9 "2022-03-21T20:26:08Z")

</div>

Ok Prof get ready. I upgraded my original saber to 6.6 and tried changing the settings with chrome. I got the same transfer error. I then loaded arduino ide and opened the serial monitor. Here comes the head scratcher, I was able to edit the blade settings in the webusb app without a problem. i then closed the browser and disconnected the saber and tried again. I was able to get into the app and edit the settings again. But the second time i did get the transfer error after i was done editing it and clicked the button to go back to the main app menu.  
All the while the serial monitor was showing the correct input commands and output responses.  
But when i got the transfer error there were no error messages in the serial monitor. It looked like everything was working. I will try with another saber later tonight and remember to copy and paste the results.  
Now I am scratching my head, you would figure that there would be an error in the serial monitor if something was not responding correctly.  
I am going to try on my linux machine as well as my android phone to see if i get the same results.  
Dave

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 21, 2022, 8:38pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/10 "2022-03-21T20:38:54Z")

</div>

So, the board basically has a _separate_ serial monitor for the webusb connection.  
So you can’t see the commands that are executed there, but you will see some debug messages while that is happening. You may also be able to use the “monitor serial” command to see what’s going on on the weusb connection.

One good thing though; if the serial monitor keeps working while the webusb connection fails, that rules out proffieos crashing, which is one possible reason why webusb would not be working.

---

<div class="post-metadata">

**Author:** ![BanthaPooDoo](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/banthapoodoo/32/894_2.png) [@BanthaPooDoo](https://crucible.hubbe.net/u/BanthaPooDoo)\
**Post date:** [March 21, 2022, 8:54pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/11 "2022-03-21T20:54:00Z")

</div>

Yes, i could not see the commands but i could see the status output via the serial monitor as well as the basic responce of the board.  
Can the webusb be used without fetts mods? If so i may rey a fresh install and see what happens.

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 21, 2022, 9:14pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/12 "2022-03-21T21:14:35Z")

</div>

> [@BanthaPooDoo](#):
>
> Can the webusb be used without fetts mods? If so i may rey a fresh install and see what happens.

Yes.  
A few options are only available with the fett263 prop, but most are available with any prop.

---

<div class="post-metadata">

**Author:** ![MegtoothSith](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/megtoothsith/32/659_2.png) [@MegtoothSith](https://crucible.hubbe.net/u/MegtoothSith)\
**Post date:** [March 22, 2022, 10:56pm UTC](https://crucible.hubbe.net/t/webusb-help/1573/13 "2022-03-22T22:56:15Z")

</div>

Ill try ooening serial minitor, then webusb on my sabers that arent connecting to webusb. My proffieboard 3.7, and now 3 proffie 2.2s (all from Electronics 1,2,3 wont connect to webusb. When you click on usb connectiin in the app, it never advances to the workbench screen. Im also on windows 10, and using chrome.

All my KR Sabers proffie 2.2s work fine.

???..

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 23, 2022, 12:04am UTC](https://crucible.hubbe.net/t/webusb-help/1573/14 "2022-03-23T00:04:13Z")

</div>

MegtoothSith, please start a separate thread to avoid making things confusing.  
If some boards work, but not others, then there must be one of the following things:

1. chrome itself is paired with some of these boards already, and a bug somewhere is preventing that from working.
2. The OS is for some reason assigning different drivers to these boards.
3. Some minor, difference in the configuration of these boards is randomly causing problems for webusb. (Can be tested by using the _same_ configuration for different boards.)
4. Some difference in the hardware of the CPU is causing these to work differently. (Which shouldn’t happen if they are the same cpu model, unless st-micro did an oops, or the CPUs are fake.)

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [March 23, 2022, 12:04am UTC](https://crucible.hubbe.net/t/webusb-help/1573/15 "2022-03-23T00:04:14Z")

</div>

Have you tried on a different computer yet?

---

<div class="post-metadata">

**Author:** ![MegtoothSith](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/megtoothsith/32/659_2.png) [@MegtoothSith](https://crucible.hubbe.net/u/MegtoothSith)\
**Post date:** [March 23, 2022, 12:17am UTC](https://crucible.hubbe.net/t/webusb-help/1573/16 "2022-03-23T00:17:30Z")

</div>

I already have a thread, but Ill bump it with new info.

---

<div class="post-metadata">

**Author:** ![BanthaPooDoo](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/banthapoodoo/32/894_2.png) [@BanthaPooDoo](https://crucible.hubbe.net/u/BanthaPooDoo)\
**Post date:** [March 27, 2022, 12:25am UTC](https://crucible.hubbe.net/t/webusb-help/1573/17 "2022-03-27T00:25:26Z")

</div>

Hey all, Sorry for the delay, got sick this week. I was able to work on some trying other ideas. I tried my linux computer and it kept disconnecting. I also upgraded to 6.7 and tried that. When i checked the console it was the same transfer error. I didnt have a chance to try my phone or another windows machine since my other laptop has crapped out.  
I was able to get most of the colors set. One issue that did seem to be constant was that when i was working on the drag settings it would disconnect.  
The odd thing is that that the board was still connected in windows and i could access the sd card as well as use the serial monitor in arduino ide.  
On the linux machine i was able to load the webusb successfully once and it disconnected while adjusting the blade colors. After that it wouldnt connect through web usb at all. I even restarted linux and reconnected it and i was able to use the serial monitor and get the information with arduino ide, but webusb would not work at all.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [March 27, 2022, 1:16am UTC](https://crucible.hubbe.net/t/webusb-help/1573/18 "2022-03-27T01:16:29Z")

</div>

reply deleted…
