I am updating the codes for the 27kWh Soul EV to use the latest formulas in torque. see -https://torque-bhp.com/wiki/Equations
Specifically -
INT16(A:B) - Returns a 16 bit int from values A and B. Can be used in place of (A*255)+B
INT24(A:B:C) - Returns a 24bit int from the input values
INT32(A:B:C:D) - Returns a 32bit int from the input values
BIT(value:bit) - Returns the bit specified at 'bit' from the 'value'. This function replaces the use of the {value:bit} notation.
None of these are case specific, I prefer to write them as Int16(a:b), Bit(a:1), etc
The only reason for using the new formulas is to make the code easier to read and debug. Functionality doesn't change.
I am not going to update for any other car, but if someone else wants to do so ...
These formula only work in recent versions of Torque. For those using older versions I shall leave the original files in the files_no_longer_used folder.
I have also made a few minor changes.
In the file Kia_Soul_EV_VMCU_data I have inverted the Eco and Charge Timer buttons to more accurately show the state.
The label is also changed to 'Timer', from 'CH'
I have also decided to remove all the calculations that were using the average SOH.
The first value for SOH shown will be the one that simply uses the worst cell.
The average SOH was only useful when the original battery pack was new.
I now label this SOH2.
For a healthy battery pack these two values will be similar, but once the pack starts to fail only the worst SOH is useful.
I added 'Operating Seconds' to go with the existing 'Operating Time' in hours.
[code]000_Operating Seconds,OpSecs,2101,Int32(au:av:aw:ax),0,1000000000,seconds,7E4
000_Operating Time,OpTime,2101,val{000_Operating Seconds}/3600,0,1000000,hours,7E4[/code]
I have added a file Kia_Soul_EV_Cluster_data. There are some currently unknown PIDs here, and I'm hoping to find the GOM and the odometer.
A value for the odometer was found on both the Ioniq EV and the Kona64 EV
[code]002_Odometer,Odo,22b002,Int24(g:h:i),0,16777215,km,7c6[/code]
see https://github.com/JejuSoul/OBD-PIDs-for-HKMC-EVs/issues/7
I will add this value to the other cars.
The 27kWh Soul EV responds to this PID but not with the odometer.
There is a value, it reduces by 1 when you turn on any climate function, but it is not obvious what it is.
I am updating the codes for the 27kWh Soul EV to use the latest formulas in torque. see -https://torque-bhp.com/wiki/Equations Specifically - INT16(A:B) - Returns a 16 bit int from values A and B. Can be used in place of (A*255)+B INT24(A:B:C) - Returns a 24bit int from the input values INT32(A:B:C:D) - Returns a 32bit int from the input values BIT(value:bit) - Returns the bit specified at 'bit' from the 'value'. This function replaces the use of the {value:bit} notation. None of these are case specific, I prefer to write them as Int16(a:b), Bit(a:1), etc
The only reason for using the new formulas is to make the code easier to read and debug. Functionality doesn't change. I am not going to update for any other car, but if someone else wants to do so ...
These formula only work in recent versions of Torque. For those using older versions I shall leave the original files in the files_no_longer_used folder.
I have also made a few minor changes. In the file Kia_Soul_EV_VMCU_data I have inverted the Eco and Charge Timer buttons to more accurately show the state. The label is also changed to 'Timer', from 'CH'
I have also decided to remove all the calculations that were using the average SOH. The first value for SOH shown will be the one that simply uses the worst cell. The average SOH was only useful when the original battery pack was new. I now label this SOH2. For a healthy battery pack these two values will be similar, but once the pack starts to fail only the worst SOH is useful.
I added 'Operating Seconds' to go with the existing 'Operating Time' in hours. [code]000_Operating Seconds,OpSecs,2101,Int32(au:av:aw:ax),0,1000000000,seconds,7E4 000_Operating Time,OpTime,2101,val{000_Operating Seconds}/3600,0,1000000,hours,7E4[/code]
I have added a file Kia_Soul_EV_Cluster_data. There are some currently unknown PIDs here, and I'm hoping to find the GOM and the odometer. A value for the odometer was found on both the Ioniq EV and the Kona64 EV [code]002_Odometer,Odo,22b002,Int24(g:h:i),0,16777215,km,7c6[/code] see https://github.com/JejuSoul/OBD-PIDs-for-HKMC-EVs/issues/7 I will add this value to the other cars. The 27kWh Soul EV responds to this PID but not with the odometer. There is a value, it reduces by 1 when you turn on any climate function, but it is not obvious what it is.