Replies: 3 comments 5 replies
-
If I revert two commits: then it seems to work again (?). How can I find the discussion that belongs to those commits? I'd like to know why they are done. |
Beta Was this translation helpful? Give feedback.
-
With the above changes, Windows indeed sees the device as RNDIS. However, it does not work in Linux anymore. https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/supported-usb-classes In this link, Microsoft recommends using NCM (the old situation). So I'm wondering why this change is done (and if we can't just revert it). |
Beta Was this translation helpful? Give feedback.
-
@maaikez, the changes were implemented to have at least one network USB class working on Windows "out of the box". Linux can easily use ECM, while RNDIS is primarily used on Windows & Mac (didn't test that one). At the time, the NCM was not available in the old USB stack (still isn't). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We want to enable RNDIS in our project, but since Zephyr 3.7, we have problems with RNDIS. In Linux, when connecting the device, we see
skipping garbage
in the dmesg log. The Zephyr main branch shows the same.To test this, I used the zperf sample (
samples/net/zperf
), changed theoverlay-netusb.conf
so it does not use ECM but RNDIS:CONFIG_USB_DEVICE_NETWORK_RNDIS=y
instead of
CONFIG_USB_DEVICE_NETWORK_ECM=y
For Zephyr 4, I built with:
west build -p always -b mimxrt1050_evk/mimxrt1052/qspi zephyr/samples/net/zperf -DOVERLAY_CONFIG="overlay-netusb.conf"
I also enabled dhcp and I do not get an IP address with RNDIS, but with ECM I do.
dmesg for RNDIS:
It is also strange that it is 'renamed from wwan0'.
For comparison, this is the dmesg log for ECM:
We tried to analyze the USB messages with a USB sniffer and get a lot of
Invalid PID Sequence
errors (mostlyUnconfigured Device (0) (BusIdx:0)
).Is there something wrong with the RNDIS implementation or is it a wrong configuration?
Beta Was this translation helpful? Give feedback.
All reactions