tomu-samples icon indicating copy to clipboard operation
tomu-samples copied to clipboard

Create a WebUSB compatible example

Open mithro opened this issue 7 years ago • 4 comments
trafficstars

  • https://wicg.github.io/webusb/
  • https://developers.google.com/web/updates/2016/03/access-usb-devices-on-the-web

Ultimately it would be awesome if someone could go to the Tomu website to do a firmware upgrade of their device!

mithro avatar Dec 17 '17 18:12 mithro

This demo would be good to get working -> https://github.com/sowbug/weblight

mithro avatar Dec 17 '17 18:12 mithro

I would love to port this example to TOMU and started doing a few basic things like vendor and product ID changes to a fork of the above repo, but until the crowd-sourced hardware is released I can’t get but so much done on it.

cbrightly avatar Mar 13 '18 21:03 cbrightly

I believe the samples are already WebUSB compatible as far as flashing with no changes, since the https://dfu.tomu.im is simply using DFU under the hood in Javascript, you just need to make sure you hit the HTTPS site to allow access to devices. You can also use https://devanlai.github.io/webdfu/dfu-util/ to update your Tomu bootloader and flash programs, which interestingly I found before I knew about Tomu having its own copy of that site. :)

After reading up further on the above example I agree it could be awesome to interact with the Tomu without having to flash, so maybe dropping a "WebUSB enable" payload like the Serial emulation payload and then being able to send commands to it from a website dynamically instead of having to compile and flash all the time or run a serial emulator to communicate.

dragon788 avatar Jun 26 '18 03:06 dragon788

I got a working demo with the usb_simple sample going: https://auscompgeek.github.io/tomu-web-led/

auscompgeek avatar Aug 27 '18 01:08 auscompgeek