Page 1 of 1

ESP32 & ENC28J60

Posted: Sun Oct 01, 2023 7:52 pm
by Frco007
Hi

Can anyone help me what am I doing wrong?
The compiler reports an error...

Br

Re: ESP32 & ENC28J60

Posted: Mon Oct 02, 2023 8:53 am
by medelec35
Hello.
I have moved this to bugs as it's nothing you have done wrong.

Thank you for bringing this to our attention

Re: ESP32 & ENC28J60

Posted: Mon Oct 02, 2023 3:18 pm
by medelec35
Hi.
Ben has updated the component, so it should now be available when you select Help > Library Updates...

Re: ESP32 & ENC28J60

Posted: Thu Oct 12, 2023 11:00 am
by Frco007
Hi.
I just compiled the program and it only works when I RUN it with debug.
Can you please check where the error is? PING does not work and if I send the string "P21" (TCP) to IP 192.168.1.90, PORT 555, it returns Could not connect. Are mask and GW settings not necessary by ENC28J60? These settings exist for the W5500 LAN interface.

After I upgrading ESP32 WROOM to V9 (Library Updates), the compiler does not work again. When I revert ESP\ESP32_WROOM_32.fcdx to V8 the compiler works.
I would like to ask if you can check where the problem is that the program works for me in debug mode, but physically the module ENC28J60 does not work when I compile the program (with V8).

Best regards,

Re: ESP32 & ENC28J60

Posted: Thu Oct 12, 2023 5:32 pm
by chipfryer27
Hi

Can you post your current chart as I am a bit confused. The one you posted earlier has an IP of 192.168.100.90 a MAC of 0-0-200-10-0-0 and is running on Port 80 (which is a generic browser port, HTTP).

It has been years since I last used one of the modules but as far as I am aware (and I could very well be wrong) the module operates at Data Link layer (layer 2) so only communicates using MAC addresses. Unless you have further code / libraries etc to handle the higher layers then you won't get too far trying to use TCP/IP.

Regards

Re: ESP32 & ENC28J60

Posted: Sun Oct 15, 2023 10:57 am
by Frco007
Hi

Last chart which I used is in attach file.
ESP32_Server_INPUT_LAN_NOVO.fcfx
(28.15 KiB) Downloaded 134 times

Re: ESP32 & ENC28J60

Posted: Sun Oct 15, 2023 12:39 pm
by chipfryer27
Hi

There is an example of using the module as a server on the WiKi

https://www.flowcode.co.uk/wiki/index.p ... etworking)

It might throw some light?

Regards