USB to Ethernet adapter #2992
Replies: 5 comments 6 replies
-
You need to implement host driver for the dongle |
Beta Was this translation helpful? Give feedback.
-
OK that's what I suspected, but I'm not quite sure where to start. Are there any examples of host drivers for other types of device that I could use as a reference point? |
Beta Was this translation helpful? Give feedback.
-
Updated device configuration details based on the CDC (2nd) configuration:
|
Beta Was this translation helpful? Give feedback.
-
I've managed to get a working usb host driver For CDC-ECM working on CherryUSB by taking their existing cdc-ecm implementation and re-writing the netif sections to work for ESP-NETIF. However, I would much rather use tinyUSB across the board due to its better implementation of device classes and deeper integration with espressif. Here's my working demo on CherryUSB: https://github.com/gadget-man/cherryusb. And I've got an almost working version of cdc-acm-host, however it never seems to send or receive any data - I think I'm missing some control commands on enumeration of the host device class: - I'm trying to set packet filter but it always fails: https://github.com/gadget-man/cherryusb Some progress, at least.... |
Beta Was this translation helpful? Give feedback.
-
OK I've had a chance to have more of a look at this now - a working version of cdc-ecm-host for integration with esp-idf is now working and available at https://github.com/gadget-man/cdc-acm-host. Any feedback appreciated! |
Beta Was this translation helpful? Give feedback.
-
As an alternative to WiFi, I'd like to be able to connect my ESP32S3 to the network using a usb-ethernet dongle. It uses a Realtek 8152 chipset which I understand is CDC-NCM compatible. Here is the configuration descriptor:
Beta Was this translation helpful? Give feedback.
All reactions