syssi / esphome-pace-bms

ESPHome component to monitor and control a PACE Battery Management System (PACE-BMS) via RS485 (Modbus)
Apache License 2.0
31 stars 10 forks source link

Example to not boot - maybe a beginner issue #26

Closed Dome89 closed 2 months ago

Dome89 commented 8 months ago

Hello First of all, great project! I have been looking for something like this. Unfortunately I can't get it to work. I flashed the example on a D1 mini but it won't boot. The wifi connection is fine, but that's it.

I am still waiting for the RS485 adapter, but I think the log says it will not work at all. Am I right? Can anyone help me?

Eingabeaufforderung - esphome run esp8266-example.yaml.txt

syssi commented 8 months ago

Please remove the (complete) mqtt section just for testing. Is the setup stable without the mqtt component?

Dome89 commented 8 months ago

Hi, Thanks for your quick reply. It looks better, but now the D1 is not connecting to the WIFI. Please see the attached log. Is this how it should look?

Eingabeaufforderung - esphome run esp8266-example_-MQTT.yaml.txt

YAYASIMPSON commented 4 months ago

i have same problem with same log !

syssi commented 4 months ago

Please update ESPHome and give it another try!

syssi commented 4 months ago

@YAYASIMPSON Could you provide some logs too?

yessiman81 commented 4 months ago

I have the same problem logs_bms_compile.txt logs (3).txt

syssi commented 4 months ago
[19:25:30][C][ota:483]: There have been 1 suspected unsuccessful boot attempts.
[19:25:30]
[19:25:30]User exception (panic/abort/assert)
[19:25:30]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[19:25:30]
[19:25:30]Unhandled C++ exception: OOM
[19:25:30]
[19:25:30]>>>stack>>>
WARNING Found stack trace! Trying to decode it
[19:25:30]
[19:25:30]ctx: cont
[19:25:30]sp: 3ffffdc0 end: 3fffffd0 offset: 0010
[19:25:30]3ffffdd0:  00000000 3fff290c 00000014 40223a40  
WARNING Decoded 0x40223a40: operator new(unsigned int)
[19:25:30]3ffffde0:  3fffbfbc 3fff5acc 3fffbeec 402135c3  
WARNING Decoded 0x402135c3: esphome::modbus_controller::ModbusController::add_sensor_item(esphome::modbus_controller::SensorItem*)
[19:25:30]3ffffdf0:  00000000 4021a074 00000020 401012a4  
WARNING Decoded 0x4021a074: setup
WARNING Decoded 0x401012a4: malloc
[19:25:30]3ffffe00:  3fffbfbc 00000020 00000030 3fff25cc  
[19:25:30]3ffffe10:  00000000 3fff290c 3fff245c 4021a0a6  
WARNING Decoded 0x4021a0a6: setup
[19:25:30]3ffffe20:  00000001 00000000 00000000 feefeffe  
[19:25:30]3ffffe30:  3fffbf04 3fff71b8 40227f0c 40212fe8  
WARNING Decoded 0x40227f0c: std::_Function_handler<esphome::optional<float> (esphome::modbus_controller::ModbusNumber*, float, std::vector<unsigned short, std::allocator<unsigned short> >&), setup::{lambda(esphome::modbus_controller::ModbusNumber*, float, std::vector<unsigned short, std::allocator<unsigned short> >&)#58}>::_M_manager(std::_Any_data&, std::_Function_handler<esphome::optional<float> (esphome::modbus_controller::ModbusNumber*, float, std::vector<unsigned short, std::allocator<unsigned short> >&), setup::{lambda(esphome::modbus_controller::ModbusNumber*, float, std::vector<unsigned short, std::allocator<unsigned short> >&)#58}> const&, std::_Manager_operation) at main.cpp
WARNING Decoded 0x40212fe8: std::_Function_handler<esphome::optional<float> (esphome::modbus_controller::ModbusNumber*, float, std::vector<unsigned short, std::allocator<unsigned short> >&), setup::{lambda(esphome::modbus_controller::ModbusNumber*, float, std::vector<unsigned short, std::allocator<unsigned short> >&)#58}>::_M_invoke(std::_Any_data const&, esphome::modbus_controller::ModbusNumber*&&, float&&, std::vector<unsigned short, std::allocator<unsigned short> >&) at main.cpp
[19:25:31]3ffffe40:  6265642f 00006775 3ffffe50 00000000 <
[19:25:31]3ffffe50:  6c666600 00656e69 0000001e 00000000  
[19:25:31]3ffffe60:  00000100 00000000 00000000 00000000  
[19:25:31]3ffffe70:  00000000 00000000 00000000 00000000  
[19:25:31]3ffffe80:  00000000 00000000 00000000 3fffff84  
[19:25:31]3ffffe90:  00000001 0000001d 6c61646e feef0065  
[19:25:31]3ffffea0:  feefeffe 3ffffe8c 00000001 65636170  
[19:25:31]3ffffeb0:  736d622d feefef00 feefeffe feefeffe  
[19:25:31]3ffffec0:  feefeffe feefeffe feefeffe feefeffe  
[19:25:31]3ffffed0:  feefeffe feefeffe feefeffe 3ffffe8c  
[19:25:31]3ffffee0:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3ffffef0:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff00:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff10:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff20:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff30:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff40:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff50:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff60:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff70:  00000001 3ffffe8c 00000001 3ffffe8c  
[19:25:31]3fffff80:  00000001 3fff8ae4 feefeffe feefeffe  
[19:25:31]3fffff90:  3fff8944 3fffbf04 3fffbfbc feefeffe  
[19:25:31]3fffffa0:  feefeffe feefeffe feefeffe 3fff2c18  
[19:25:31]3fffffb0:  3fffdad0 00000000 3fff2bec 40223e38  
WARNING Decoded 0x40223e38: loop_wrapper() at core_esp8266_main.cpp
[19:25:31]3fffffc0:  feefeffe feefeffe 3fffdab0 401006b5  
WARNING Decoded 0x401006b5: cont_wrapper
[19:25:31]<<<stack<<<
[19:25:31]
[19:25:31]last failed alloc call: 402135C3(20)
WARNING Memory allocation of 20 bytes failed at 402135C3
WARNING Decoded 0x402135c3: esphome::modbus_controller::ModbusController::add_sensor_item(esphome::modbus_controller::SensorItem*)
[19:25:31]
[19:25:31]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[19:25:31]
[19:25:31]last failed alloc caller: 0x402135c3
[19:25:31]
[19:25:31] ets Jan  8 2013,rst cause:2, boot mode:(3,6)
[19:25:31]
[19:25:31]load 0x4010f000, len 3424, room 16 
[19:25:31]tail 0
[19:25:31]chksum 0x2e
[19:25:31]load 0x3fff20b8, len 40, room 8 
[19:25:31]tail 0
[19:25:31]chksum 0x2b
[19:25:31]csum 0x2b
[19:25:31]v00095db0
[19:25:31]~ld
[19:25:31]\x8c\xe3\xec\x83'\xe4\x9b{\x82\xf2g|\xec$
                                                   \x8c
                                                       d`c\x92\x9f|;\x92d\x9co\xe0
                                                                                  \x82g\xe3d`\x84\xe2s\x9bd\x84l\x8c
                                                                                                                    \xfe[I][logger:034]: Log initialized
[19:25:31][C][ota:483]: There have been 2 suspected unsuccessful boot attempts.
[19:25:31]
[19:25:31]User exception (panic/abort/assert)
[19:25:31]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[19:25:31]
[19:25:31]Unhandled C++ exception: OOM
[19:25:31]
[19:25:31]>>>stack>>>
syssi commented 4 months ago

The number of sensors at the YAML example are too much and causes the OOM (out of memory exception). Please remove some unneeded sections and give it another try.