Closed Ganesh-Shanbhag-face closed 2 years ago
I don't recommend to use this library with the esp32. esp32 has much better options for Ethernet.
The problem could be SPI speed. Try to set lower speed than the 20MHz here https://github.com/jandrassy/EthernetENC/blob/c735fd4cf6821a166ef6b36dd56bd861ba61c400/src/utility/Enc28J60Network.cpp#L39
@jandrassy I tried with that but it did not work. Can you suggest any module which works with this library on ESP32?
do you use a 3.3 V powered modules or modules with 5 V powering and SD module with a level shifter chip?
Ethernet module is working on 3.3V and SD Card module with 5V with inbuilt 3.3V regulator. So, literally both are working on 3.3V.
but then the SD card module should convert 5 V SPI to 3.3 V SPI and converts 3.3 V SPI to ?.? V SPI
No for SD Card module there is inbuilt regulator which will convert it into 3.3V and supplies to the controller/buffer as well as to the SD Card. Since the controller/buffer and SD card are powered by 3.3V there levels are 3.3V compatible.
which side of the 'buffer'?
SD Card module is using LVC125A.
LVC125A
then it is OK
I don't recommend to use this library with the esp32. esp32 as much better options for Ethernet.
The problem could be SPI speed. Try to set lower speed than the 20MHz here
Does it work this library with ESP32 ? Thanks a lot
Does it work this library with ESP32 ? Thanks a lot
It does work even it is not a recommended Ethernet solution for esp32
Thanks a lot for the quick reply... Can I ask you why it is not recommended ? Thanks a lot
Thanks a lot for the quick reply... Can I ask you why it is not recommended ? Thanks a lot
esp32 has LwIP TCP/IP stack which handles WiFi, SoftAP and the esp32 Ethernet peripheral. EthernetENC uses uIP TCP/IP stack and was designed for small MCU with a small RAM.
Hi, I am using ENC28J60 Ethernet module (SPI) and SD Card module (SPI) with ESP32 as I need wired networking on ESP32. Ethernet Module and SD Card module are using different CS pin. Ethernet Module when connected to ESP32 without connecting the SD Card module will get the IP from DHCP. But when connected with SD Card module won't work but the SD Card module works alone. What may be the problem?
And when used Ethernet Module alone although it gets IP from DHCP is not connecting to MQTT (Hive MQ Public Client). What may be the problem?