Firmata-like protocol for WebUSB on TinyUSB? #580
Replies: 4 comments 5 replies
-
this is a massive amount of work to take on. if you'd like, you can try! but as webserial is just as non-standard as webusb, we recommend just use webserial with firmata. |
Beta Was this translation helpful? Give feedback.
-
Each protocol has its own pros and cons (webserial and webusb) and both are still experimental and available on chrome only. Personally i prefer webusb, because of issues with webserial on linux, but i have to agree, it is big project to do it with webusb or webserial. It would be 2 parts project:
|
Beta Was this translation helpful? Give feedback.
-
It is a great idea. But it is at application level and not part of the usb stack. WebUSB to tinyusb is a stream data, so yeah I think you could use any (existing) open protocol on top of it |
Beta Was this translation helpful? Give feedback.
-
For those of you wondering why I'm investigating this (and why it's important) here's what we're considering right now on the IMPAct project (an initiative ATMakers is running in 2021 with several universities) |
Beta Was this translation helpful? Give feedback.
-
Hi folks,
First thanks for TinyUSB - it's so much improved over the past year!
I am aware of WebSerial, however, because it's not a standard feature, as well as not wanting to go through the overhead of JSON or the like I am looking for a true WebUSB protocol that we can use to read from sensors and configure microcontroller-based systems.
Ideally, this protocol would allow the browser (Javascript) to:
This feels a bit like Firmata, so I thought there probably is some groundwork laid here - perhaps I shouldn't start from scratch :-)
Does anyone know of something like this for WebUSB? Can Firmata run over WebUSB? Does anyone want to play with me on this if we do start from scratch? It seems like something that would be very handy for things like the Circuit Playground Express.
You're welcome to tell me this isn't a TinyUSB idea, but it's one of the easiest stacks to use on WebUSB and this seems like the kind of protocol that would be easy to expose up to the CircuitPython layer, etc.
Bill
Beta Was this translation helpful? Give feedback.
All reactions