Enabling WiFi & Ethernet together
-
- Posts: 1
- Joined: Thu Feb 23, 2017 1:42 pm
Enabling WiFi & Ethernet together
Hi all,
I have designed a communication card which has bluetooth, wifi and ethernet. I have searched about ESP32 and I am confused. Can i use Wifi and Ethernet at same time? Do you have reference design for this.
Best regards
I have designed a communication card which has bluetooth, wifi and ethernet. I have searched about ESP32 and I am confused. Can i use Wifi and Ethernet at same time? Do you have reference design for this.
Best regards
Re: Enabling WiFi & Ethernet together
Hi mertkahyaoglu,
From the software side, this is possible at the moment if you enable both WiFi and Ethernet in the "Component Config" section of IDF config. (At the moment, due to a bug, you have enable both in configuration but you don't have to use both.)
The two interfaces will be treated as independent in the LWIP TCP/IP library (ie you can bind sockets to either interface, and outgoing packets should be routed based IP packet destination address). We don't have support for source based routing or routing packets between the interfaces (ie there's no support for the ESP32 to act as a tiny WiFi router), although I think this could be technically possible.
There also isn't an example for this configuration in IDF yet, but you can make one by combining the code from one of the WiFi-based examples with the Ethernet example. Let us know if you have any trouble making this work.
From the hardware side, we don't have an official ethernet reference design yet but one will be available.
Angus
From the software side, this is possible at the moment if you enable both WiFi and Ethernet in the "Component Config" section of IDF config. (At the moment, due to a bug, you have enable both in configuration but you don't have to use both.)
The two interfaces will be treated as independent in the LWIP TCP/IP library (ie you can bind sockets to either interface, and outgoing packets should be routed based IP packet destination address). We don't have support for source based routing or routing packets between the interfaces (ie there's no support for the ESP32 to act as a tiny WiFi router), although I think this could be technically possible.
There also isn't an example for this configuration in IDF yet, but you can make one by combining the code from one of the WiFi-based examples with the Ethernet example. Let us know if you have any trouble making this work.
From the hardware side, we don't have an official ethernet reference design yet but one will be available.
Angus
-
- Posts: 34
- Joined: Wed Feb 15, 2017 8:31 pm
Re: Enabling WiFi & Ethernet together
Hi All,
I already tested the ESP32 with a LAN Board from waveshare, the DP8348, and it works very good!
Now I would like to connect the ESP32 direct to my PC via the Ethernet interface, but I am not sure if it is possible at the moment.
I am asking becasue what I see now is all related to Wifi, example the DHCP stop does not work for ethernet ..
Thanks for any advice..
Regards
Juan
I already tested the ESP32 with a LAN Board from waveshare, the DP8348, and it works very good!
Now I would like to connect the ESP32 direct to my PC via the Ethernet interface, but I am not sure if it is possible at the moment.
I am asking becasue what I see now is all related to Wifi, example the DHCP stop does not work for ethernet ..
Thanks for any advice..
Regards
Juan
-
- Posts: 1
- Joined: Mon Sep 04, 2017 9:09 am
Re: Enabling WiFi & Ethernet together
Hello. I'm trying to set up esp32 as an access point. Make a bridge between Ethernet LAN8720 and wifi. I looked through the Internet and didn`t found ready solutions.
Prompt please the decision or where to search for the decision.
Thank you.
Prompt please the decision or where to search for the decision.
Thank you.
-
- Posts: 1
- Joined: Wed Oct 18, 2017 1:41 pm
Re: Enabling WiFi & Ethernet together
How to connect ESP32 to an Ethernet converter here i am using USR TCP32T2 Please help me with the code and connection
mail: ramkumar.d@nipun.net
thanks in advance
mail: ramkumar.d@nipun.net
thanks in advance
Re: Enabling WiFi & Ethernet together
ghostzero2000 Any headway on your project?
Cheers
James
Cheers
James
Re: Enabling WiFi & Ethernet together
Hi Espressif System Developers,
We are working on ESP8266 and ESP32 based chip and modules since one year and currently we are using ESP32 IDF 2.1 Stable IDF for our product development purpose.
Now, We want to use Ethernet and WiFi together in our board and application because we don't know customer side impact like Ethernet can be accessed or WiFi can be accessed
So, Can I use and access both ESP32 and Ethernet together into ESP32 IDF 2.1 SDK?
We are working on ESP8266 and ESP32 based chip and modules since one year and currently we are using ESP32 IDF 2.1 Stable IDF for our product development purpose.
Now, We want to use Ethernet and WiFi together in our board and application because we don't know customer side impact like Ethernet can be accessed or WiFi can be accessed
So, Can I use and access both ESP32 and Ethernet together into ESP32 IDF 2.1 SDK?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Enabling WiFi & Ethernet together
Hi,
Let me know if anyone has tried before to configure and use WiFi and Ethernet both together into application using ESP32 IDF.
Let me know if anyone has tried before to configure and use WiFi and Ethernet both together into application using ESP32 IDF.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Enabling WiFi & Ethernet together
Hi Espressif Developer,
Any update regarding this?
Any update regarding this?
Regards,
Ritesh Prajapati
Ritesh Prajapati
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: Enabling WiFi & Ethernet together
Hi,
I tried Enabling WiFi & Ethernet together by mixing code of wifi and ethernet given in esp idf.
but it cant work. the processor is getting reboot again and again.
[0;32mI (243) cpu_start: Starting scheduler on PRO CPU.[0m
assertion "res == pdTRUE" failed: file "C:/esp32/esp-idf/components/esp32/dport_access.c", line 187, function: esp_dport_access_int_init
abort() was called at PC 0x400d5313 on core 1
Backtrace: 0x40092cb8:0x3ffe7ce0 0x40092e8f:0x3ffe7d00 0x400d5313:0x3ffe7d20 0x400d2cbe:0x3ffe7d50 0x40081028:0x3ffe7d80 0x40081091:0x3ffe7da0 0x40007c31:0x3ffe7dc0 0x4000073d:0x3ffe7e30
Rebooting...
I tried Enabling WiFi & Ethernet together by mixing code of wifi and ethernet given in esp idf.
but it cant work. the processor is getting reboot again and again.
[0;32mI (243) cpu_start: Starting scheduler on PRO CPU.[0m
assertion "res == pdTRUE" failed: file "C:/esp32/esp-idf/components/esp32/dport_access.c", line 187, function: esp_dport_access_int_init
abort() was called at PC 0x400d5313 on core 1
Backtrace: 0x40092cb8:0x3ffe7ce0 0x40092e8f:0x3ffe7d00 0x400d5313:0x3ffe7d20 0x400d2cbe:0x3ffe7d50 0x40081028:0x3ffe7d80 0x40081091:0x3ffe7da0 0x40007c31:0x3ffe7dc0 0x4000073d:0x3ffe7e30
Rebooting...
--
Somesh Burkule
Somesh Burkule
Who is online
Users browsing this forum: No registered users and 94 guests