jblance / mpp-solar

Python package to communicate to MPP Solar PIP-4048MS inverters (and similar)
MIT License
360 stars 149 forks source link

PACE BMS protocol #480

Open ols-hub opened 6 months ago

ols-hub commented 6 months ago

Hello, Could you implement PACE BMS in jkbms program ?

Here is documentation: https://github.com/syssi/esphome-pace-bms/tree/main/docs

I use RS232 connection to get information from BMS. I tried jkserial protocol (jkbms -p /dev/ttyUSB0 -P jkserial) and I receive bad data:

Command: getBalancerData - Get Balancer Data
--------------------------------------------------------------------------------
Parameter                  Value                Unit
cells_connected            64.0                     
voltage_cell01             0.0                  V   
voltage_cell02             1.088                V   
voltage_cell03             24.577               V   
voltage_cell04             3.584                V   
voltage_cell05             0.002                V   
voltage_cell06             0.008                V   
voltage_cell07             24.579               V   
voltage_cell08             0.512                V   
voltage_cell09             -24.574              V   
voltage_cell10             2.048                V   
voltage_cell11             0.09                 V   
voltage_cell12             26.624               V   
voltage_cell13             0.0                  V   
voltage_cell14             4.608                V   
voltage_cell15             0.064                V   
voltage_cell16             0.0                  V   
mos_temp                   2816                 °C  
battery_t1                 36                   °C  
battery_t2                 24832                °C  
battery_voltage            1.44                 V   
battery_current            -163.84              A   
percent_remain             10                   %   
cycle_count                5                        
total_capacity             6094884              Ahr 
battery_warning_message    0002                     
battery_status_information 0200                     
balancer_active            76                       
capacity_setting           150994945            Ahr 
charge_enabled             11                       
discharge_enabled          16                       
--------------------------------------------------------------------------------

As you see connection is OK, but data mapping is wrong.

jblance commented 5 months ago

Looking at the docs Im surprised you get a response at all Can you post the output of a debug run so I can see the raw response and see how it relates to the docs you linked to