Implement CDC NetworkConnection Notification for subsys/usb/device/class/netusb/function_ecm.c #69211
Replies: 3 comments 5 replies
-
NetworkConnection Notification is implemented for the CDC ECM in the new USB support. |
Beta Was this translation helpful? Give feedback.
-
@jfischer-no Is this addressed at this point? When I run:
today on my MacOS developer box, I see the same issue of 'Not connected' that was described back in February:
|
Beta Was this translation helpful? Give feedback.
-
@donusry-privoro Are you able to share your diff with the fix you implemented? I am working on getting this scenario up and running on USBD-Next / NCM and running into issues, I would like to review your work and see if there is something I can bring to the table to help move things forward if you are open to it. |
Beta Was this translation helpful? Give feedback.
-
Platforms such as macOS, iOS and iPadOS will not perform DHCP negotiation with autoconf fallback without the interface being "connected".
We have a need to implement a link-local connection between a device using autoconf. I have already fixed the driver to report correct status, but I wanted to open this issue to see if you all want me to open a pull request.
This was tested using a b_u585_iot02a discovery board from ST using the
echo_server
sample located atsamples/net/sockets/echo_server
. Build withoverlay-netusb.conf
. On macOS you can seeUSB-DEV
show as "Not connected" when connected to board with example flashed.west build -b b_u585i_iot02a samples/net/sockets/echo_server -- -DOVERLAY_CONFIG=overlay-netusb.conf
With my fix and implementing a simple DHCP server you will see the following. Without DHCP you should see it fallback to "Self-assigned IP Address".
Per the CDC ECM specification,
NetworkConnection
management element is required.Beta Was this translation helpful? Give feedback.
All reactions