2 Inverters connected to one BMS #15
Replies: 6 comments 1 reply
-
Perfect, thanks for the info. |
Beta Was this translation helpful? Give feedback.
-
Unfortunatelly, my BLE version on Olimex LAN doesn't work for me stable . Communication with BMS seem to be correct and stable , but CAN communication works just for 30minutes. Then it says OFF. After downloading ESP again , it works for another 30min. |
Beta Was this translation helpful? Give feedback.
-
Hello Sleeper85. Could you please tell me how I can restart ESP32 when Canbus communication is OFF ? |
Beta Was this translation helpful? Give feedback.
-
Automatically with programming? |
Beta Was this translation helpful? Give feedback.
-
YAML code : button:
- platform: restart
name: "Restart button"
id: restart_button
internal: true Lambda code : id(restart_button).press(); This should be added to this part of the code. if (id(can_ack_counter) < 20) { // Inverter ACK ? => CANBUS ON
id(can_ack_counter)++; // CANBUS ACK counter ++
id(can_msg_counter)++; // CANBUS MSG counter ++
return true; // Condition OK
}
else if (id(can_status) == "OFF") { // CANBUS already OFF ?
return false; // Nothing to do
}
else {
id(can_status) = "OFF"; // Set CANBUS Status to OFF
id(canbus_status).publish_state(id(can_status)); // Publish text sensor
ESP_LOGI("main", "No rx can 0x305 reply, Inverter not connected/responding...");
return false; // Condition NOK
} Maybe like this: if (id(can_ack_counter) < 60) { // Inverter ACK ? => CANBUS ON
id(can_ack_counter)++; // CANBUS ACK counter ++
id(can_msg_counter)++; // CANBUS MSG counter ++
return true; // Condition OK
}
else if (id(can_status) == "OFF") { // CANBUS already OFF ?
id(restart_button).press(); // ESP32 restart
return false;
}
else {
id(can_status) = "OFF"; // Set CANBUS Status to OFF
id(canbus_status).publish_state(id(can_status)); // Publish text sensor
ESP_LOGI("main", "No rx can 0x305 reply, Inverter not connected/responding...");
return false; // Condition NOK
} |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. I found on some forums, to use button for that , but it looks crazy for me. I will try. Thank you very much again |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Today I started to using 2 inverters ( Goodwe ) connected to one BMS ( JKBMS ver 11 ) . I have one ESP board connected using cable to BMS TTL port, and another ESP connected over Bluetooth. Both inverters have their own CAN connected to ESP. It works for me for few hour without any problem.
Beta Was this translation helpful? Give feedback.
All reactions