Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Enable Communication Between Clients Connected to ESP32 Access Point and USB Ethernet Interface (AEGHB-828) #409

Open
3 tasks done
ammarkkhan opened this issue Sep 25, 2024 · 1 comment

Comments

@ammarkkhan
Copy link

ammarkkhan commented Sep 25, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Question:

Hello ESP32 community,

I am working on a project where I have successfully configured my ESP32 to function both as an Access Point (AP) and as a USB Ethernet interface (network card). Now, I need to establish communication between clients connected to the ESP32's AP and my machine via the USB Ethernet interface.
What I have done so far:

ESP32 as an AP: I’ve set up the ESP32 to act as an Access Point. Clients can connect to it, and I can manage the connections.

ESP32 as a USB Ethernet interface: The ESP32 is working as a USB Ethernet device using TinyUSB (e.g., RNDIS/CDC-ECM), and it's recognized as a network interface on my machine.

My Questions:

How can I forward IP packets between the clients connected to the ESP32's AP and my machine over the USB Ethernet interface? I am looking for a recommended approach to set up efficient packet forwarding.

Should I use lwIP for IP forwarding, or are there other APIs or methods that would be better suited for this scenario?

Are there any example projects or additional configurations that can help optimize communication between the Wi-Fi interface and the USB Ethernet interface?

Any guidance or example code would be greatly appreciated!

Thank you in advance!

@github-actions github-actions bot changed the title How to Enable Communication Between Clients Connected to ESP32 Access Point and USB Ethernet Interface How to Enable Communication Between Clients Connected to ESP32 Access Point and USB Ethernet Interface (AEGHB-828) Sep 25, 2024
@leeebo
Copy link
Collaborator

leeebo commented Oct 8, 2024

@ammarkkhan Hi, please refer the https://github.com/espressif/esp-iot-bridge solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants