vekexasia / comfoair-esp32

Interact with Zehnder Comfoair with esp32
Other
124 stars 40 forks source link

Bootloop after flashing the ESPHome version #47

Closed SkullboyNL closed 1 year ago

SkullboyNL commented 1 year ago

I am trying to flash the ESPHome version, but then the ESP enters a boot loop. I've tried different configurations, but it's still stuck in the bootloop. The error i get after flashing:

01:49:05]E (10278) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[01:49:05]E (10278) task_wdt:  - loopTask (CPU 1)
[01:49:05]E (10278) task_wdt: Tasks currently running:
[01:49:05]E (10278) task_wdt: CPU 0: IDLE
[01:49:05]E (10278) task_wdt: CPU 1: CAN_LORX
[01:49:05]E (10278) task_wdt: Aborting.
[01:49:05]
[01:49:05]abort() was called at PC 0x400ef275 on core 0
[01:49:05]
[01:49:05]
[01:49:05]Backtrace:0x400836b5:0x3ffbea2c |<-CORRUPTED
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x400836b5: panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402

Current yaml:

esphome:
  name: air-11

esp32:
  board: nodemcu-32s
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "gfhgfhgshbhbdbvfdg3354dsgf"

wifi:
  ssid: "*****"
  password: "******"

external_components:
  - source: github://vekexasia/comfoair-esp32
    components: [ comfoair ]

comfoair:

Am I doing something wrong or am I missing another configuration line?

vekexasia commented 1 year ago

hey, can you take a picture of wiring?

SkullboyNL commented 1 year ago

I first tried without the can module, so only a separate ESP32. Then tried with the can module connected TX to GPIO21 and RX to GPIO25 not yet connected to the comfoair but still the same error message.

Does the ESP not start if the ESP does not receive a signal from the comfoair?

lskuba commented 1 year ago

I also have bootloop problem after I add below to my yaml:

external_components:
  - source: github://vekexasia/comfoair-esp32
    components: [ comfoair ]

comfoair:
TroLoos commented 1 year ago

Same here, wanted to switch to ESPHome and it does go into a bootloop.

[C][ota:469]: There have been 0 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
E (10347) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (10347) task_wdt:  - loopTask (CPU 1)
E (10347) task_wdt: Tasks currently running:
E (10347) task_wdt: CPU 0: IDLE
E (10347) task_wdt: CPU 1: CAN_LORX
E (10347) task_wdt: Aborting.

abort() was called at PC 0x400f9a98 on core 0

Backtrace:0x400836dd:0x3ffbea2c |<-CORRUPTED

My setup is: ESP32 DEVKIT V1 with SN65HVD230, CAN module connected TX -> G25, RX -> G21 (I also tried G4 and G5 from previous MQTT version - BTW, what should it be?).

My YAML is as follows:

esphome:
  name: comfoairv2
  friendly_name: comfoairv2

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: arduino

external_components:
  - source: github://vekexasia/comfoair-esp32
    components: [ comfoair ]

logger:
  level: DEBUG

api:
  encryption:
    key: "*REDACTED*"

ota:
  password: "*REDACTED*"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  ap:
    ssid: "Comfoairv2 Hotspot"
    password: "*REDACTED*"

captive_portal:

comfoair:
vekexasia commented 1 year ago

That is strange can you share how you wired the board and which board it is?

On Sun, May 21, 2023, 19:22 TroLoos @.***> wrote:

Same here, wanted to switch to ESPHome and it does go into a bootloop.

`[C][ota:469]: There have been 0 suspected unsuccessful boot attempts. [D][esp32.preferences:114]: Saving 1 preferences to flash... [D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed [I][app:029]: Running through setup()... E (10347) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (10347) task_wdt: - loopTask (CPU 1) E (10347) task_wdt: Tasks currently running: E (10347) task_wdt: CPU 0: IDLE E (10347) task_wdt: CPU 1: CAN_LORX E (10347) task_wdt: Aborting.

abort() was called at PC 0x400f9a98 on core 0

Backtrace:0x400836dd:0x3ffbea2c |<-CORRUPTED`

My setup is: ESP32 DEVKIT V1 with SN65HVD230, CAN module connected TX -> G25, RX -> G21 (I also tried G4 and G5 from previous MQTT version - BTW, what should it be?).

My YAML is as follows:

`esphome: name: comfoairv2 friendly_name: comfoairv2

esp32: board: esp32doit-devkit-v1 framework: type: arduino

external_components:

  • source: github://vekexasia/comfoair-esp32 components: [ comfoair ]

logger: level: DEBUG

api: encryption: key: "REDACTED"

ota: password: "REDACTED"

wifi: ssid: !secret wifi_ssid password: !secret wifi_password

ap: ssid: "Comfoairv2 Hotspot" password: "REDACTED"

captive_portal:

comfoair:`

— Reply to this email directly, view it on GitHub https://github.com/vekexasia/comfoair-esp32/issues/47#issuecomment-1556231216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQ6SYTW64B27YLTM5LL7DXHJFMPANCNFSM6AAAAAAXXWMYYE . You are receiving this because you commented.Message ID: @.***>

TroLoos commented 1 year ago

That is strange can you share how you wired the board and which board it is?

Well, I have exactly this board:

https://botland.com.pl/moduly-wifi-i-bt-esp32/8893-esp32-wifi-bt-42-platforma-z-modulem-esp-wroom-32-zgodny-z-esp32-devkit-5904422337438.html

with Waveshare CAN controller:

https://botland.com.pl/magistrala-can/6960-modul-z-interfejsem-can-sn65hvd230-waveshare-3945-5904422300715.html

As I mentioned - I tried to connect TX to G4 and RX to G5 (from previous setup with MQTT), and also according to new guide TX to G25 and RX to G21 - none work correctly. As far as I can tell - wiring was all right because it worked fine with MQTT version.

I actually just ordered another CAN module to check if the problem might be there, and also AZDelivery D1 Mini NodeMCU ESP32 to be as much compliant with the guide as possible. I will check it out on Wednesday and let you know the result.

vekexasia commented 1 year ago

CAn you have a try right now?

vekexasia commented 1 year ago

Apparently there was some recent changes in esp32_can which apparently introduced some issues. I needed to rollback to a prev commit.

Possibly related to https://github.com/collin80/esp32_can/issues/47

SkullboyNL commented 1 year ago

It is working now thankyou.

TroLoos commented 1 year ago

What a great support, thank you! Awesome project @vekexasia.

lskuba commented 1 year ago

thank you this also resolved that issue for me