hi:
There is an example of webusb next in Zephyr's latest Samples. I ran it with nrf52840 and encountered an error requesting the Microsoft operating system 2.0 descriptor set. I would like to confirm if nrf52840 supports webusb next
hi:
There is an example of webusb next in Zephyr's latest Samples. I ran it with nrf52840 and encountered an error requesting the Microsoft operating system 2.0 descriptor set. I would like to confirm if nrf52840 supports webusb next
Hi,
The WebUSB-next sample should work out of the box on the nRF52840 DK. Can you check where the device shows up in the device manager? It should appear as "Zephyr WebUSB sample" under "Universal Serial Bus devices".
Best regards,
Marte
It's just a USB port that dynamically switches between two functions, hid keyboard and webUSB. Now I found that if hid device is configured on the device tree, webUSB cannot be used. Is there any way to achieve this requirement
Hi
Marte is on vacation so I will take over the case. As Webusb-next is not currently a part of our SDK and only available on upstream Zephyr I'm asking internally regarding the support and will update when I hear something
Regards
Runar
Hi,
The reason you are not able to get HID keyboard and WebUSB-next to work at the same time is most likely related to the missing subset header, which is currently present only if CDC ACM is enabled: https://github.com/zephyrproject-rtos/zephyr/blob/3f6d78c26c6fa1126eda7de51183bcf055afe9e7/samples/subsys/usb/webusb-next/src/msosv2.h#L34-L45.
The sample should be modified to include the subset header if the HID class is added to it.
Best regards,
Marte
Hi,
The reason you are not able to get HID keyboard and WebUSB-next to work at the same time is most likely related to the missing subset header, which is currently present only if CDC ACM is enabled: https://github.com/zephyrproject-rtos/zephyr/blob/3f6d78c26c6fa1126eda7de51183bcf055afe9e7/samples/subsys/usb/webusb-next/src/msosv2.h#L34-L45.
The sample should be modified to include the subset header if the HID class is added to it.
Best regards,
Marte