Any one using ABRP with a OBDII

Hi everyone, I put together the original list of PID's for the MG5 and yeah there was an issue with the SoC. The difference was down to the buffers at each and of the battery so the reported SoC was the actual SoC of the battery rather than what is reported, hence it only going up to 97% when the car said 100% (3% buffeR) but I've managed to now correct for this.

!MG_12V_V,12V_V,220112,A*0.1,0,50,V,7E3
!MG_Batt_BusV,BattBV,22B041,INT16(A:B)*0.25,0,1000,V,7E5
!MG_Batt_Cell_Delta,CellD,,(val{!MG_Batt_CellV_Max}-val{!MG_Batt_CellV_Min})*1000,0,1000,mV,
!MG_Batt_CellV_Max,CellV_Max,22B058,INT16(A:B)*0.001,0,65,V,7E5
!MG_Batt_CellV_Min,CellV_Min,22B059,INT16(A:B)*0.001,0,65,V,7E5
!MG_Batt_Cool_Temp,BattCT,22B05C,(A/2)-40,-40,88,C,7E5
!MG_Batt_Resistance,BattR,22B045,INT16(A:B)*0.0001,0,100,Ω,7E5
!MG_Batt_Temp,BattT,,(val{!MG_Batt_Temp_High}+val{!MG_Batt_Temp_Low})/2,-40,88,°C,
!MG_Batt_Temp_High,BattTH,22B056,((A/2)-40),-40,88,°C,7E5
!MG_Batt_Temp_Low,BattTL,22B057,((A/2)-40),-40,88,°C,7E5
!MG_BattAmp,BattA,22B043,((INT16(A:B)*0.025)-1000),-1000,638.4,A,7E5
!MG_BattPower,BattP,,val{!MG_BattAmp}*val{!MG_BattVolt}/1000,-200,200,kw,
!MG_BattVolt,BattV,22B042,INT16(A:B)*0.25,0,16384,V,7E5
!MG_Charger,Charger,22B71B,A,0,10,,7E3
!MG_Charging,CHG,22B048,BIT(A:1)+BIT(A:2),0,1,,7E5
!MG_DCDC_InAmp,DCDC_InA,22B581,(INT16(A:B)-32767)*0.1,-1000,1000,A,7E3
!MG_DCDC_InVolt,DCDC_InV,22B582,INT16(A:B)*0.1,-1000,1000,V,7E3
!MG_DCDC_OutAmp,DCDC_OutA,22B583,INT16(A:B)*0.1,-1000,1000,A,7E3
!MG_DCDC_OutVolt,DCDC_OutV,22B584,INT16(A:B)*0.1,-1000,1000,V,7E3
!MG_HV_On,HVOn,22B703,A,0,10,,7E3
!MG_Ignition,Ignit,22B18C,A,0,10,,7E3
!MG_Inverter_Temp,InverterTemp,22B026,(A-40),-40,88,°C,7E5
!MG_MaxCharge,MaxCharge,22B712,INT16(A:B)*0.1,0,200,kw,7E3
!MG_Motor_Coolant,Motor_Cool,22B309,(A-40),-40,88,°C,7E3
!MG_Motor_Speed,Motor_Speed,22B402,(INT16(A:B)-32767),-32767,32767,Rpm,7E3
!MG_Motor_Temp,Motor_Temp,22B405,(A-40),-40,88,°C,7E3
!MG_Motor_Torque,Motor_Torque,22B401,(INT16(A:B)-32767),-32767,32767,Nm,7E3
!MG_SoC,SoC,22B046,(INT16(A:B)-40)/9.3,0,100,%,7E5
!MG_SoH,SoH,22B061,INT16(A:B)*0.01,0,100,%,7E5
!MG_Speed,Speed,22BA00,INT16(A:B)*0.01-199.99,-200,200,kmph,7E3
 
Last edited:
Hi everyone, I put together the original list of PID's for the MG5 and yeah there was an issue with the SoC. The difference was down to the buffers at each and of the battery so the reported SoC was the actual SoC of the battery rather than what is reported, hence it only going up to 97% when the car said 100% (3% buffeR) but I've managed to now correct for this.
I mapped a load of charging and discharging data points for OBD SoC and car's displayed SoC and Excel generated approximate formula (for ABRP but not implemented yet) - not sure if you were able to use additional values obtained from the car to get more accurate values.

Polynomial : y = -0.0039x2 + 1.0929x - 0.0331
Linear : y = 1.0889x - 0.0323
 
It's just a 4% buffer at the bottom and a 3% at the top, so you take off 4% from the reported value then divide that result by 93% to get the right SoC.

The original value comes out with a scale of 0 to 1000 so it's

(INT16(A:B)-40)/9.3

I have one of the older 50kWh models, looking at the spec's for the new 60kWh models it should still work for those as I think they still have the same 4% bottom buffer and 3% top buffer
 
It's just a 4% buffer at the bottom and a 3% at the top, so you take off 4% from the reported value then divide that result by 93% to get the right SoC.

The original value comes out with a scale of 0 to 1000 so it's

(INT16(A:B)-40)/9.3

I have one of the older 50kWh models, looking at the spec's for the new 60kWh models it should still work for those as I think they still have the same 4% bottom buffer and 3% top buffer
I’ll plug that into the values I collected - much simpler that a polynomial representation ?
 
I want to be able to enable some hidden features on my new MG HS excite using an OBD11 tool which one’s best please
 
Support us by becoming a Premium Member

Latest MG EVs video

MG ZS EV Retrospective & First Look at the MG S5 EV | Live Q&A with Owners & MGEVs Panel
Subscribe to our YouTube channel
Back
Top Bottom