So tonight's exercise was to be some exploring of the high speed can bus looking for things like TPMS... I quickly learned that my cheapo chinese v1.2a elm327 reader can't reliably maintain a 500kbps connection so what am I to do now?
This puppy apparently is about as good as it gets... and will hopefully arrive in the next week or so. in the meantime I've powered up my old xp x32 VM, installed my bluetooth drivers and am going to see if I can sniff the virtual serial port with portion and hope to pick off some of the well hidden Mazda PIDs. |
1 Attachment(s)
Wow, that was easy.
Yes, I know... I need to balance my tire pressure... lol... tpms light has been coming on in the mornings this past week. |
More progress ...
Code:
83659 0.00000000 ??? IRP_MJ_WRITE BtPort1 Length 7: 22D102. Anyway, I'll be able to validate soon enough. The possibility of the data being there un-encoded is really exciting for me! |
bah... looked a little deeper ... likely a fluke .. D1 02 appears to be the PID just echoing back... if anything 89 is the value for this pid... now what the hell do I make of 0x89/137 ???
|
1 Attachment(s)
Originally Posted by ShellDude
(Post 4245730)
bah... looked a little deeper ... likely a fluke .. D1 02 appears to be the PID just echoing back... if anything 89 is the value for this pid... now what the hell do I make of 0x89/137 ???
https://www.rx8club.com/attachment.p...1&d=1336022091 oops, that came out big. Anyhow, 62 is the response code from the TPM and I think 759 is its identifier, D102 is the PID, and 89 is the value. This is all hex though, so 0x89 = 137. Guessing that the scaling is X/10 so 13.7Volts? I think tire pressure is in the C90x range, and scaling is X*1.373 |
Dude, you rock!
|
I'll portmon just one of the tpms pids tomorrow night. Have been meaning to get back to them.
|
coming along great, car pc's rock. i wish someone wud sell these things
|
Oh, and you're right oltman... The Mazda PID for battery voltage was in the sampling I was scouring. Values match.
|
So I recorded individual sessions tonight for:
Here's the full conversation (I dropped the unimportant responses) I recorded for requesting TPMS tire pressure for wheel #1: Code:
ATE1 151 * 1.373 = 207.323 kPa We have a winner! I'll post up the others in the next day or two. |
So it just dawned on me and I confirmed by briefly looking at my Tire #2 pressure log. All 4 come back for 22C9011
0x93 = 147 * 1.373 = 201.831 kPa 0x88 = 136 * 1.373 = 186.728 kPa (I really do need to get around to putting air in this tire) 0x93 = 147 * 1.373 = 201.831 kPa 0x97 = 151 * 1.373 = 207.323 kPa |
Awesome!
:) |
Here's the header and pid for TPMS Temperature:
ATSH0007DF 22C9021 last 4 bytes of the response are each tire's temperature in hex similar to how pressure comes back. Once converted to decimal subtract 40 and you then have the tire temperature in celsius. |
Engine Brake and Engine In Gear don't look quite right. I may need to re-record them.
|
Was having a hard time getting libVoyager to read alternate/multiple ECUs and came up with a hack of sorts to work around it.
I use its built in RoutineScan class with a refresh interval of 500ms to retrieve mode 1 PIDs --- a handful of which I added myself to its sqlite database: Code:
hs.setRoutineScanDelay(500); And I pretty much bypass it to get at the mode 22 PIDs supplied by the TPMS ECU once every 5 seconds: Code:
obd.getHs().getEBT().sendATCommand2("ATSH000751"); |
2 Attachment(s)
Starting to run out of things to do (good sign -- means I'm getting closer to releasing the code)
For the Fuel Level PID I skinned a Warning Light for it and tied in a blink effect + notification sound for when the current level is < 15% |
For anyone interested (I'm actually considering one as a backup) Buy.com has a refurbed 3G version of the Streak 7 up today for $189.99
http://www.buy.com/prod/dell-streak-...230985256.html |
Another decent tablet deal... looks like Polaroid rebranded one of the China MIDs.
Ice Cream Sandwich... $120 ... heard you can get it even cheaper elsewhere and I'm very confident it would fit just fine in the OEM nav hood. http://www.buy.com/prod/polaroid-7-a...ngid=211101545 |
Originally Posted by ShellDude
(Post 4261472)
Another decent tablet deal... looks like Polaroid rebranded one of the China MIDs.
Ice Cream Sandwich... $120 ... heard you can get it even cheaper elsewhere and I'm very confident it would fit just fine in the OEM nav hood. http://www.buy.com/prod/polaroid-7-a...ngid=211101545 |
yeah, that would suck
|
1 Attachment(s)
finally got around to adding tire temperature.
next I hope to track down the addresses for the cruise control buttons like what PS is doing with the rxduino. |
that is sick man i am gonna have to try this how much for a pre-programmed tablet?
|
I don't plan on selling anything listed here... It's much more so a build type thread for similar enthusiasts.
I also plan on open sourcing my front-end and bluetooth library at some point once I'm happy with them baseline code wise. I may release a commercial version of it on Google Play with a couple different skins, but that'll likely be the extent of it. Some of the logic I implemented within the front-end may also be utilized to release some stealth tracking software too. It's all really just one big proof of concept. |
It was worth a shot not the best with the programming of the androids guess this will make me learn. Thanks anyway just ordered the dash kit looking for a tablet now
|
sweet project dude!
OEM nav screen is a joke! |
All times are GMT -5. The time now is 08:13 PM. |
© 2024 MH Sub I, LLC dba Internet Brands