Re: Shell over WebUSB


Andrei
 

Hi Markus,

On Thu, Nov 07, 2019 at 07:59:02AM +0000, Becker Markus wrote:
Hi,

I have enjoyed the WebUSB sample application and it works nicely as
expected.

Is there a possibility to bind the Zephyr Shell to WebUSB?
Yes, I had some dirty hacks working, never went upstream, the JS part is
still here: https://github.com/finikorg/webusb-zephyr-demo

I saw that the webusb.c/.h files are in the samples directory. Is it
planned that they live in subsys/usb/class/ and can enabled in parallel to
e.g. CDC-ACM?
webusb defines interface with 2 endpoints just for tests, to put it to
class we need some Spec.

Probably for the shell you could implement subsys/shell/shell_webusb.c
similar to shell_telnet.c or shell_uart.c.

We can probably create also third endpoint for logs and have special log
screen...

I have created issue for that: https://github.com/zephyrproject-rtos/zephyr/issues/20409

Best regards
Andrei Emeltchenko

Join users@lists.zephyrproject.org to automatically receive all group messages.