syssi / esphome-seplos-bms

ESPHome component to monitor a Seplos Battery Management System (Seplos-BMS) via UART or RS485
Apache License 2.0
63 stars 29 forks source link

Add mosfet control #20

Closed cristi2005 closed 1 year ago

cristi2005 commented 2 years ago

Hi,

Can you add mosfet controll button in this implementations ?

Thank you, Cristi

syssi commented 2 years ago

If you provide some testing I'm happy to be able to add the feature.

cristi2005 commented 2 years ago

Sure, you tell me what tests you need me to do and I do them. Thanks

syssi commented 2 years ago

Are you able to talk to your Seplos device using the Battery Monitor software of the manufacturer? Could you provide screenshots of the different tabs? Does the software provide switches to control the Mosfets? I'm trying to find out some control frames. The protocol description doesn't help because the important parts how to send commands to the BMS are missing.

cristi2005 commented 2 years ago

When I try to stop the input or output of the mosfets, it gives me the error in the attached picture. I think the commands are blocked from the software :(

seplos

syssi commented 2 years ago

This control switch is at the calibrate tab? I could try to implement the command but it's useless for your battery because it looks like your BMS rejects the request.

cristi2005 commented 2 years ago

Yes it is in calibrate tab. For the moment I have RS485 variant with comunication with the inverter but I ordered CAN bus variant and with will come in next week and I play with him and I see if can swich on or of the mosfets.

syssi commented 2 years ago

I've extracted the payload of the different buttons:

# Disable discharging mosfet
~20004645A00600001FFC5D

# Disable charging mosfet
~20004645A00600011FFC5C

# Enable current limit control
~20004645A006000210FC71

# Enable temperature control
~20004645A006000310FC70

# Shutdown system
~20004645A006000400FC70

# Restore factory defaults
~20004645A006000500FC6F

See also https://github.com/syssi/esphome-seplos-bms/issues/8

syssi commented 1 year ago

Let's close this issue and use #8 for further discussions!