Hi guys!
I found some bugs in the TPMS-code, and in the "charge-detection" for ChaDeMO.
There was some byte alignments that where off by a byte. My IDs are now correct in the SMS.
Also two of the sensor values where off by a byte, if I remember correctly.
While I was test driving yesterday, I suddenly got data from my sensors after I had driven a few hundred meters
So I managed to correct the values. Unfortunately the APP-values where quite strange but the SMS-values where correct, so I did some checking this morning and I found that the Tesla Roadsters TPMS values are like this:
Pressure = p_byte * 2.755
and
Temperature = t_byte + 40
so I have to adjust for that too when setting those values.
This also means that my summer tires are registered with the car. My car was delivered with the winter tires, so maybe the car recognizes both sets, or the sensors are cloned. I will most likely put on the winter tires this weekend, so I will know then.
DC charging is not sensed, so I removed some unnecessary code that sat/reset the charging-flag. This code was correct for standard charging, but not for ChaDeMo. Now I use byte 6 from 2101 from BMC. There we have both charging bit and separate AC and DC charging bits. Hopefully it will now detect ChaDeMo properly! It works great with regular AC-charging at least.
Might get a new version out today, but my boy is celebrating his second birthday today, so I can't promise anything