timherreijgers / Domotics-base

Project containing base code for domotics projects
MIT License
0 stars 0 forks source link

When starting the mqtt_enc28j60_ethernet driver it can hang in the Ethernet.init function #38

Closed timherreijgers closed 1 year ago

timherreijgers commented 1 year ago

After further research, we concluded that this issue is not caused by the software within this project. The chip hangs when getting an IP address for the first time using DHCP. This is probably caused by either the DHCP driver within the utilized enc28j60 library, or within the specific hardware chip.

The error occurs when calling the _send function in ethernetUdp.cpp of the utilized EthernetENC libarary. The _send function is called but never finishes. When the DHCP request completes once it will stay working for a long time.

timherreijgers commented 1 year ago

https://github.com/JAndrassy/EthernetENC/blob/9428b5e970dbc9882ac2aeed94725a1dd87615b9/src/EthernetUdp.cpp#L176