Hello, i would like to know if there is a way to point to esp32 netif ethernet interface (like "en1" or "ETH_DEF") while using an HAL library from software that runs on linux. I already figured out how to port the storage HAL, filesystem HAL and threads HAL, and i'm currently trying to port the ethernet HAL, with no success.
The library show the following line to choose a virtual network interface using NIC names:
I've tried every possible combination from esp_netif ("/dev/net/en1", "en1", "eth0", "eth", "ETH_DEF", etc) and couldn't get it to work, and i have already configured the ethernet interface and obtained these parameters (i'm using the WT32-ETH01 board):
So i was wondering if i'm really ABLE to point that interface in the first place, because esp uses freertos and i don't know if i can use these NIC names on this operating system.
ESP32 virtual network interface
ESP32 virtual network interface
Last edited by pmoneta on Thu Jul 27, 2023 9:58 am, edited 1 time in total.
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 virtual network interface
This probably doesn't work as any Linux calls on that interface don't have an equivalent in LwIP (the TCP/IP stack ESP-IDF uses). Possibly you need to track down those calls and change them to their ESP-IDF equivalents.
Re: ESP32 virtual network interface
So i should point to the ethernet driver and not netif? I didnt find any esp32 interface in the programming guide
Re: ESP32 virtual network interface
Thanks! i figured out that i have to create my own HAL for esp32!
-
- Posts: 1
- Joined: Wed Oct 04, 2023 12:46 pm
Re: ESP32 virtual network interface
I am also interrested in this setup. Can you share some of your progress?
Re: ESP32 virtual network interface
sry for the late response. what do you want to know?andreaslundeen wrote: ↑Wed Oct 04, 2023 1:04 pmI am also interrested in this setup. Can you share some of your progress?
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 108 guests