2

Does anyone know if the following is possible? Any advice would be much appreciated.

I am programming an Ethernet connected Arduino to be a webserver. What would be ideal is a small portable "router" so I can take the whole test setup and my laptop without depending on my home/company network.

My idea:

  • Set up an ESP32 as an access point
  • Connect an ENC28J60 module to it

I hope:

  • My laptop can connect to the ESP over WiFi (status: done)
  • My board can connect over UTP
  • They both get IP addresses
  • I can test the Arduino webserver from my laptop

What I found is that I could use the Ethercard for ESP32 or the [EthernetENC][2] libraries.

I've been trying with EthernetENC, but no luck. Is this even possible?

enter image description here

This is my minimal code for the ESP32 so far:

#include <WiFi.h>
#include <SPI.h>
#include <EthernetENC.h>

const char* ssid = "ESP32router01";
const char* pass = "01234567";          // At least 8 characters

void setup() { 
  WiFi.softAP(ssid, pass);
  Ethernet.init(5);
}

void loop() {
}
6
  • 2
    remove the Arduino and the ENC28J60 from the project Commented Jun 11, 2022 at 22:28
  • forum.arduino.cc/t/… Commented Jun 12, 2022 at 5:06
  • esp8266 Arduino supports routing between network interfaces and supports enc28j60 as network interface in WiFi library. STA and SofftAP are the network interfaces you know. I don't know if it supports routing for the 'new' network interlaces Commented Jun 12, 2022 at 8:54
  • @Juraj : Thanks, the TL-WR702N would be the easy/convenient way, I'll consider that. But I also have an ESP8266 at hand so I can explore your suggestion. Commented Jun 12, 2022 at 17:28
  • I'm still planning on doing this project and have found: github.com/martin-ger/… - This library supports an ENC28J60 ethener adapter so that's what I'll be trying, I don't know when but I'll try to post my findings. Commented Jul 11, 2022 at 16:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.