can_2_soc2 = ((unsigned
int) can_databuffer[4] << 8) + can_databuffer[5];
Initially I got the 5th and 6th array
elements, but noticed that I had it wrong... so I changed to
4th and 5th...
And finally at the debug sms handler:
s = stp_i ( s, " SOC=", can_2_soc2 );
I changed the strings abit and can
see that the new code is running, but do not understand
how come a completely different values are reported - the
value is from can_databuffer[5] and can_databuffer[6].
So the 301 contains the following
bytes (viewed with PCAN) 00 00 0e 7d 01 b2 0a 4a.
The SOC is supposed to
be in 0E7D (actually it is the DOD), but I am getting
the 0AB2 in the can_2_soc2 value.