esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 36 forks source link

Using radon_eye_rd200 platform causes boot loop #4123

Open spikeygg opened 1 year ago

spikeygg commented 1 year ago

The problem

I'm trying to use the platform radon_eye_rd200 and even trimming the yaml down to complete basics (no wifi, no captive_portal, no api, etc.), the ESP32 modules will just boot loop. I've tried 3 different ESP devices and have others I could try. I'm currently using an early ESPHome hack to connect to the rd200 with so I know it's possible and works.

For reference, here's the hack: https://community.home-assistant.io/t/radoneye-ble-interface/94962/50

I took the hacked working ESP32 device, flashed it with the small yaml file which only uses the radon_eye_rd200 platform. I saw it boot looping, I flashed it back to the hacked ESPHome and it works again. I would like to stop using the hack version because I've found that it no longer compiles correctly on ESPHome and therefore I can no longer update this device with the latest ESPHome.

I've included a simple YAML that causes boot loop below.

I've included a boot loop log snippet from flashing an ESP32 device with it. It was captured through USB

This is the device I was using: image

Which version of ESPHome has the issue?

2022.12.8 (but it's been there since the start of this platform)

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.2.0 (but as above, started when platform was included in ESPHome)

What platform are you using?

ESP32

Board

nodemcu-32s

Component causing the issue

radon_eye_rd200

Example YAML snippet

esphome:
  name: radon

esp32:
  board: nodemcu-32s

logger:
  level: DEBUG

esp32_ble_tracker:

ble_client:
  - mac_address: F4:0C:75:57:64:22
    id: radon1

sensor:
  - platform: radon_eye_rd200
    ble_client_id: radon1
    radon:
      name: Radon1

Anything in the logs that might be useful for us?

[D][esp32_ble_client:048]: [0] [F4:0C:75:57:64:22] Found device
[D][esp32_ble_tracker:216]: Pausing scan to make connection...
[I][esp32_ble_client:064]: [0] [F4:0C:75:57:64:22] 0x01 Attempting BLE connection
[I][radon_eye_rd200:015]: Connected successfully!
[D][esp32_ble_tracker:327]: Starting scan...
[D][sensor:127]: 'Radon1': Sending state 49.58000 Bq/m³ with 0 decimals of accuracy
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400d546e  PS      : 0x00060a30  A0      : 0x800d4f29  A1      : 0x3ffc84b0  
A2      : 0x00000000  A3      : 0x428e147b  A4      : 0x0000008f  A5      : 0x3ffbc780  
A6      : 0x007bee88  A7      : 0x003fffff  A8      : 0x800d54a0  A9      : 0x3ffc8450  
A10     : 0x807f40fe  A11     : 0x3ffc29d8  A12     : 0x00000000  A13     : 0x3ffc847c  
A14     : 0x3ffbc840  A15     : 0x00000000  SAR     : 0x0000001f  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000058  LBEG    : 0x400906b1  LEND    : 0x400906c1  LCOUNT  : 0xffffffe7  

Backtrace:0x400d546b:0x3ffc84b00x400d4f26:0x3ffc84e0 0x400d50ed:0x3ffc8500 0x400d5105:0x3ffc8580 0x400d1fae:0x3ffc85a0 0x4018d7d1:0x3ffc85d0 0x400d4410:0x3ffc85f0 0x4018d8b5:0x3ffc8700 0x4018d949:0x3ffc8720 0x400d55e4:0x3ffc8740 0x400d7462:0x3ffc8770 0x400d8aa5:0x3ffc8790 

ELF file SHA256: 0000000000000000

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[I][logger:258]: Log initialized
[I][app:029]: Running through setup()...
[D][esp32_ble_tracker:327]: Starting scan...
[I][app:062]: setup() finished successfully!
[W][radon_eye_rd200:141]: Connection in progress
[I][app:102]: ESPHome version 2022.12.8 compiled on Feb  4 2023, 00:08:23
[C][logger:293]: Logger:
[C][logger:294]:   Level: DEBUG
[C][logger:295]:   Log Baud Rate: 115200
[C][logger:296]:   Hardware UART: UART0
[C][radon_eye_rd200:166]:   Radon 'Radon1'
[C][radon_eye_rd200:166]:     State Class: 'measurement'
[C][radon_eye_rd200:166]:     Unit of Measurement: 'Bq/m³'
[C][radon_eye_rd200:166]:     Accuracy Decimals: 0
[C][radon_eye_rd200:166]:     Icon: 'mdi:radioactive'
[C][esp32_ble_tracker:870]: BLE Tracker:
[C][esp32_ble_tracker:871]:   Scan Duration: 300 s
[C][esp32_ble_tracker:872]:   Scan Interval: 320.0 ms
[C][esp32_ble_tracker:873]:   Scan Window: 30.0 ms
[C][esp32_ble_tracker:874]:   Scan Type: ACTIVE
[C][esp32_ble_tracker:875]:   Continuous Scanning: True
[C][ble_client:027]: BLE Client:
[C][ble_client:028]:   Address: F4:0C:75:57:64:22
[D][esp32_ble_client:048]: [0] [F4:0C:75:57:64:22] Found device
[D][esp32_ble_tracker:216]: Pausing scan to make connection...
[I][esp32_ble_client:064]: [0] [F4:0C:75:57:64:22] 0x01 Attempting BLE connection
[I][radon_eye_rd200:015]: Connected successfully!
[D][esp32_ble_tracker:327]: Starting scan...
[D][sensor:127]: 'Radon1': Sending state 49.58000 Bq/m³ with 0 decimals of accuracy
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400d546e  PS      : 0x00060a30  A0      : 0x800d4f29  A1      : 0x3ffc84b0  
A2      : 0x00000000  A3      : 0x428e147b  A4      : 0x0000008f  A5      : 0x3ffbc780  
A6      : 0x007bee88  A7      : 0x003fffff  A8      : 0x800d54a0  A9      : 0x3ffc8450  
A10     : 0x71f28344  A11     : 0x3ffc29d8  A12     : 0x00000000  A13     : 0x3ffc847c  
A14     : 0x3ffbc840  A15     : 0x00000000  SAR     : 0x0000001f  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000058  LBEG    : 0x400906b1  LEND    : 0x400906c1  LCOUNT  : 0xffffffe7  

Backtrace:0x400d546b:0x3ffc84b00x400d4f26:0x3ffc84e0 0x400d50ed:0x3ffc8500 0x400d5105:0x3ffc8580 0x400d1fae:0x3ffc85a0 0x4018d7d1:0x3ffc85d0 0x400d4410:0x3ffc85f0 0x4018d8b5:0x3ffc8700 0x4018d949:0x3ffc8720 0x400d55e4:0x3ffc8740 0x400d7462:0x3ffc8770 0x400d8aa5:0x3ffc8790 

ELF file SHA256: 0000000000000000

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[I][logger:258]: Log initialized
[I][app:029]: Running through setup()...
[D][esp32_ble_tracker:327]: Starting scan...
[I][app:062]: setup() finished successfully!
[W][radon_eye_rd200:141]: Connection in progress
[I][app:102]: ESPHome version 2022.12.8 compiled on Feb  4 2023, 00:08:23
[C][logger:293]: Logger:
[C][logger:294]:   Level: DEBUG
[C][logger:295]:   Log Baud Rate: 115200
[C][logger:296]:   Hardware UART: UART0
[C][radon_eye_rd200:166]:   Radon 'Radon1'
[C][radon_eye_rd200:166]:     State Class: 'measurement'
[C][radon_eye_rd200:166]:     Unit of Measurement: 'Bq/m³'
[C][radon_eye_rd200:166]:     Accuracy Decimals: 0
[C][radon_eye_rd200:166]:     Icon: 'mdi:radioactive'
[C][esp32_ble_tracker:870]: BLE Tracker:
[C][esp32_ble_tracker:871]:   Scan Duration: 300 s
[C][esp32_ble_tracker:872]:   Scan Interval: 320.0 ms
[C][esp32_ble_tracker:873]:   Scan Window: 30.0 ms
[C][esp32_ble_tracker:874]:   Scan Type: ACTIVE
[C][esp32_ble_tracker:875]:   Continuous Scanning: True
[C][ble_client:027]: BLE Client:
[C][ble_client:028]:   Address: F4:0C:75:57:64:22
[D][esp32_ble_client:048]: [0] [F4:0C:75:57:64:22] Found device
[D][esp32_ble_tracker:216]: Pausing scan to make connection...
[I][esp32_ble_client:064]: [0] [F4:0C:75:57:64:22] 0x01 Attempting BLE connection
[I][radon_eye_rd200:015]: Connected successfully!
[D][esp32_ble_tracker:327]: Starting scan...
[D][sensor:127]: 'Radon1': Sending state 49.58000 Bq/m³ with 0 decimals of accuracy
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400d546e  PS      : 0x00060c30  A0      : 0x800d4f29  A1      : 0x3ffc84b0  
A2      : 0x00000000  A3      : 0x428e147b  A4      : 0x0000008f  A5      : 0x3ffbc780  
A6      : 0x007bee88  A7      : 0x003fffff  A8      : 0x800d54a0  A9      : 0x3ffc8450  
A10     : 0xa202bf02  A11     : 0x3ffc29d8  A12     : 0x00000000  A13     : 0x3ffc847c  
A14     : 0x3ffbc840  A15     : 0x00000000  SAR     : 0x0000001f  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000058  LBEG    : 0x400906b1  LEND    : 0x400906c1  LCOUNT  : 0xffffffe7  

Backtrace:0x400d546b:0x3ffc84b00x400d4f26:0x3ffc84e0 0x400d50ed:0x3ffc8500 0x400d5105:0x3ffc8580 0x400d1fae:0x3ffc85a0 0x4018d7d1:0x3ffc85d0 0x400d4410:0x3ffc85f0 0x4018d8b5:0x3ffc8700 0x4018d949:0x3ffc8720 0x400d55e4:0x3ffc8740 0x400d7462:0x3ffc8770 0x400d8aa5:0x3ffc8790 

ELF file SHA256: 0000000000000000

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[I][logger:258]: Log initialized
[I][app:029]: Running through setup()...
[D][esp32_ble_tracker:327]: Starting scan...
[I][app:062]: setup() finished successfully!
[W][radon_eye_rd200:141]: Connection in progress
[I][app:102]: ESPHome version 2022.12.8 compiled on Feb  4 2023, 00:08:23
[C][logger:293]: Logger:
[C][logger:294]:   Level: DEBUG
[C][logger:295]:   Log Baud Rate: 115200
[C][logger:296]:   Hardware UART: UART0
[C][radon_eye_rd200:166]:   Radon 'Radon1'
[C][radon_eye_rd200:166]:     State Class: 'measurement'
[C][radon_eye_rd200:166]:     Unit of Measurement: 'Bq/m³'
[C][radon_eye_rd200:166]:     Accuracy Decimals: 0
[C][radon_eye_rd200:166]:     Icon: 'mdi:radioactive'
[C][esp32_ble_tracker:870]: BLE Tracker:
[C][esp32_ble_tracker:871]:   Scan Duration: 300 s
[C][esp32_ble_tracker:872]:   Scan Interval: 320.0 ms
[C][esp32_ble_tracker:873]:   Scan Window: 30.0 ms
[C][esp32_ble_tracker:874]:   Scan Type: ACTIVE
[C][esp32_ble_tracker:875]:   Continuous Scanning: True
[C][ble_client:027]: BLE Client:
[C][ble_client:028]:   Address: F4:0C:75:57:64:22

Additional information

No response

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.