Shell over WebUSB


Becker Markus
 

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?

 

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?

 

Thanks,

Markus


The contents of this e-mail and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this e-mail is received in error, please immediately notify the sender and delete the e-mail and attached documents. Please note that neither the sender nor the sender's company accept any responsibility for viruses and it is your responsibility to scan or otherwise check this e-mail and any attachments.


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