How to create a ethernet to wifi trasparent bridge?

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

How to create a ethernet to wifi trasparent bridge?

Postby gpezzella » Sat Dec 28, 2019 9:59 am

Hello
I have acquired express if ethernet board.

I would connect ethernet cable and propagate Internet connection through wifi.

Have some of you do this?
Could send me some link or useful material?

Thanks

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: How to create a ethernet to wifi trasparent bridge?

Postby rudi ;-) » Sun Dec 29, 2019 2:17 pm

gpezzella wrote:
Sat Dec 28, 2019 9:59 am
Hello
I have acquired express if ethernet board.

I would connect ethernet cable and propagate Internet connection through wifi.

Have some of you do this?
Could send me some link or useful material?

Thanks
hi

you mean this doing?

Image

hope this helps

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

Re: How to create a ethernet to wifi trasparent bridge?

Postby gpezzella » Sun Dec 29, 2019 7:25 pm

Hi rudi ;-)

yes this is exactly what I would do!!

The only "problem" for now is that I work with Arduino..

In a while that I learn IDF there is a simply way to upload the compile version of this project?

Thanks

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: How to create a ethernet to wifi trasparent bridge?

Postby rudi ;-) » Mon Dec 30, 2019 2:17 am

Hi

which ethernet board you would connect to the esp32?
did you get an esp32 with an eth inside ? or did you get an ETH Modul and want connect to an esp32 modul? ( which ?)

there are some arduino examples
LAN8720 and LAN8720 with internal clock, also TLK110, with eth boards and esp32 in arduiono ide
perhabs you can look at first here and check out which eth board you have
and test first the eth connection for a successful run
and then combine it with the wifi in arduino.
look to the IDF example eth2ap and eth2wifi
the second is an further example in the iot-solution repo

if you use LAN8720 perhabs you take a look to this side too for infos.

hope this helps for own start and testings :)
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

Re: How to create a ethernet to wifi trasparent bridge?

Postby gpezzella » Mon Dec 30, 2019 10:27 am

Hi Rudy, I have 2 board:

1) Expressif Ethernet-kit with tlk110
2) Wesp32 with lan8710

moreover I'm try to build my 2 board based on the above 2 chip.
If you help me to translate example in arduino I will send you working schematic of bridge. Ok?

Giuseppe
Annotazione 2018-12-30 112606.png
Annotazione 2018-12-30 112606.png (109.49 KiB) Viewed 19657 times

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: How to create a ethernet to wifi trasparent bridge?

Postby rudi ;-) » Mon Dec 30, 2019 10:53 am

gpezzella wrote:
Mon Dec 30, 2019 10:27 am
Hi Rudy, I have 2 board:

1) Expressif Ethernet-kit with tlk110
2) Wesp32 with lan8710
Hi Giuseppe,

to 1)
it is a TLK110 ETH and you find an working example in the Arduino examples Folder
try this first that this run.if it working for you then add Wifi AP.
But first try the TLK110 example.

to 2)
you mean sure the wESP32 with lan8720
you find here an Arduino example for the LAN8720
try this first and if this working for you you can step over to go Wifi AP
and so on.

btw: if you want use the internal clock you can try this arduino example with LAN8720 and internal clock

you can find few infos from hackaday about this wESP32 with LAN8720 and PoE

also have a look to the web from wESP32

you can select the wESP32 from the Arduino IDE menu:

Tools → Board → Silicognition wESP32

To use the Ethernet connection in your sketch, you need to #include <ETH.h> and call ETH.begin() to start the Ethernet peripheral. This function takes optional parameters to set the configuration, but the board support package already takes care of setting these correctly for the wESP32.

Code: Select all

#include <ETH.h>
#include <WebServer.h>
#include <ESPmDNS.h>

// Web server
WebServer server(80);

// HTTP handlers
void handleRoot() {
  server.send(200, "text/plain", "Hello from wESP32!\n");
}

void handleNotFound() {
  server.send(404, "text/plain", String("No ") + server.uri() + " here!\n");
}

void setup(){
  // Start the ethernet
  ETH.begin();
  // You can browse to wesp32demo.local with this
  MDNS.begin("wesp32demo");

  // Bind HTTP handler
  server.on("/", handleRoot);
  server.onNotFound(handleNotFound);

  // Start the Ethernet web server
  server.begin();
  // Add service to MDNS-SD
  MDNS.addService("http", "tcp", 80);
}

void loop(){
  server.handleClient();
}
gpezzella wrote:
Mon Dec 30, 2019 10:27 am

moreover I'm try to build my 2 board based on the above 2 chip.
If you help me to translate example in arduino I will send you working schematic of bridge. Ok?
try first the server examples to work out the LAN8270 and TLK110 with your Boards.
shematic of wESP32 with LAN8720 is here

the getting started with Espressif Ethernet Kit TLK110

Shematic Espressif Ethernet Kit TLK 110

Shematic Espressif Ethernet Kit PoE


hope this helps
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

Re: How to create a ethernet to wifi trasparent bridge?

Postby gpezzella » Mon Dec 30, 2019 7:48 pm

Hi Rudi

thank very much!!

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

Re: How to create a ethernet to wifi trasparent bridge?

Postby gpezzella » Mon Jan 06, 2020 7:12 pm

Hi rudi,

check this topic: viewtopic.php?f=13&t=13747

pardonme
Posts: 3
Joined: Sun Jan 05, 2020 3:13 pm

Re: How to create a ethernet to wifi trasparent bridge?

Postby pardonme » Fri Jan 24, 2020 2:23 am

Hi, did you manage to get this working with Arduino core?

I have the board running with ethernet and Wifi however there is no bridge (lwip NAT comes with arduino as standard).

Did you find an example for bridging the connections on the correct layer?

Who is online

Users browsing this forum: No registered users and 91 guests