jpraus / arduino-opentherm

Arduino library and hardware shield to send and receive data from Opentherm devices
Other
160 stars 42 forks source link

Cant get gateway to run on esp8266 or esp32 #43

Open Bilabong0070 opened 1 year ago

Bilabong0070 commented 1 year ago

Hi,

I have been running the shield on an ATmega2560 based arduino with no problems. In trying to get the code to run on any other platform and im having issues.

WemosD1 R1 - Esp8266 - it compiles in arduino IDE2.1 with warnings "IRAM_ATTR in place of ICACHE_RAM_ATTR" it seems to run but i see no serial output from the opentherm itself. I can insert code and it outputs that from the serial, but not the opentherm itself. I have tested a forked library with this replaced and duplicated across all functions to prevent a crash. Same null result, its running but not correctly. The RxB light doesnt blink, only RxT goes from faint to flash.

ETA - reducing the voltage from master in made it function. I achieved this with a voltage divider on that pin.

Wemos D1 R32 - Esp32 - it compiles in arduino IDE2.1 no warnings - it crashes with error - CORRUPT HEAP: Bad head at 0x3ffb8acc. Expected 0xabba1234 got 0x3ffb8014, reboots and repeats.

I have tried to fix this, but im not experienced enough in code and need it to work in full gateway mode to control my heating correctly. Could you point me in the right direction please?