Im not sure if this is the right place for this... I wanted to start a thread that could serve as a central location for complete CAN Bus decoding. There
|
|
LinkBack | Thread Tools | Display Modes |
05-06-2014, 01:48 AM | #1 (permalink) |
Base Member
Join Date: Jan 2014
Location: California
Posts: 148
Drives: 09 Nissan 370Z GM M6
Rep Power: 6721 |
370Z CAN Bus Proprietary PID's
Im not sure if this is the right place for this...
I wanted to start a thread that could serve as a central location for complete CAN Bus decoding. There is a great deal potential in being able to understand the non-stnadard PID's flying around the Z CAN bus. I have some CAN hardware on order. My plan is to log the bus information during normal driving. Who's up for some data analysis!? My thought is to attempt to analyze the logged data to see what PID data changes and when to try to figure out what is going on and create more complete documentation. Current sources: [370Z] https://github.com/Knio/carhack/blob...issan.markdown Nissan 370Z CAN Hacking | Stray Bytes https://docs.google.com/spreadsheet/...=sharing#gid=0 CAN-bus project [Other Nissan] http://www.mynissanleaf.com/viewtopic.php?f=44&t=4131 If anyone has more information or sources, please contribute! Last edited by radensb; 05-06-2014 at 08:40 PM. Reason: Added sources |
05-06-2014, 03:39 AM | #2 (permalink) |
A True Z Fanatic
Join Date: Aug 2011
Location: Pine grove, Pa
Posts: 2,136
Drives: 2 feet, 3 pedals
Rep Power: 6775 |
Is there a stereo on this bus? lol
__________________
P99rs Head Unit--- Amps- 2 Pioneer Prs800d --- Zapco ST1000MX---Zapco ST-4XSQ---- SI BM mk5 Subs---SI TM65v2 Midbass--- SI M3 mids--- SI M25 xbl2 tweeters ----- 2016 MECA street class 3rd place at world finals |
05-06-2014, 10:29 AM | #4 (permalink) |
A True Z Fanatic
Join Date: Aug 2012
Location: Edmonton Alberta Canada
Posts: 2,089
Drives: 40th 370z
Rep Power: 132 |
I am currently running this app on my phone. Looks like they have mapped out a bunch of the Nissan only PIDs...
https://play.google.com/store/apps/d...eeo.niadvanced
__________________
2007 Chevy Duramax - EFILive Tuned By Me 2010 40th W/ Nav - Boosted Performance - UpRev Tuned By Me The Mrs. Ride -2012 335XI N55 BMW - Cobb Tuned By Me, Built by her My Build --> http://www.the370z.com/members-370z-...39s-build.html |
05-06-2014, 03:19 PM | #5 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 |
My Nissan Leaf Forum • View topic - LEAF CANbus decoding. (Open discussion)
They are trying to decode the Nissan Leaf CAN bus, but there are many similarities. |
05-06-2014, 03:56 PM | #6 (permalink) | |
Base Member
Join Date: Jan 2014
Location: California
Posts: 148
Drives: 09 Nissan 370Z GM M6
Rep Power: 6721 |
Quote:
|
|
05-08-2014, 11:12 PM | #7 (permalink) |
Base Member
Join Date: Jan 2014
Location: California
Posts: 148
Drives: 09 Nissan 370Z GM M6
Rep Power: 6721 |
Sweet usable data ...
Just got my CAN bus interface hardware. I wrote a simple program that reads the data on the CAN and prints the PID and data in HEX to a console.
Let the reverse engineering continue! |
05-08-2014, 11:41 PM | #8 (permalink) |
Premium Member
Join Date: Nov 2010
Location: South Arkansas
Posts: 8,435
Drives: 2014 Challenger
Rep Power: 324198 |
I have an ELM-based CAN-to-USB adapter. Would it be possible to get a copy of your program?
__________________
Steering Lock Links - Search The370Z Bookmarklet - FSM @ NICOclub Mankind has progressed past the need for war but we haven't evolved that far. - NachoMahma |
05-09-2014, 12:44 PM | #9 (permalink) | |
Base Member
Join Date: Jan 2014
Location: California
Posts: 148
Drives: 09 Nissan 370Z GM M6
Rep Power: 6721 |
Quote:
I just used Hercules to view the COM port. RS232 terminal, serial port terminal, udp terminal, tcp/ip client server - Hercules The hardware you have should do this already. If you use Hercules, you can log data just as I have. The advantage of having such a low level interface is that once I start understanding what the data is, I can program my Arduino to start doing stuff with it! I am writing a program now that will allow me to view all the data on the CAN simultaneously by PID. That way, I can start messing with stuff in the car and see what data changes and how. |
|
05-09-2014, 04:43 PM | #10 (permalink) | ||
Premium Member
Join Date: Nov 2010
Location: South Arkansas
Posts: 8,435
Drives: 2014 Challenger
Rep Power: 324198 |
Quote:
Quote:
Please keep us posted on your progress.
__________________
Steering Lock Links - Search The370Z Bookmarklet - FSM @ NICOclub Mankind has progressed past the need for war but we haven't evolved that far. - NachoMahma |
||
05-13-2014, 02:30 AM | #11 (permalink) |
Base Member
Join Date: Jan 2014
Location: California
Posts: 148
Drives: 09 Nissan 370Z GM M6
Rep Power: 6721 |
Update
I wrote a test tool for the incoming CAN data. The program reads in the CAN stream from the arduino and displays unique ID's and their data length. When the ID repeats, the line containing that ID gets updated. This allows me to view a static arrangement of all the PID's and watch how their data changes in real time.
Output format: XXX: XX XX XX XX XX XX XX XX PID: D0 D1 D2 D3 D4 D5 D6 D7 |
05-13-2014, 01:01 PM | #12 (permalink) |
Base Member
Join Date: Apr 2014
Location: Colorado Springs, CO
Posts: 48
Drives: 2015 Focus ST ST3
Rep Power: 11 |
Introducing the CANBus Triple! - Mazdaspeed Forums
Back when I had my Mazdaspeed3 This guy was messing around with doing a CANBus interface unit for the car. He seems to have some pretty good posts outlining the process he used to get it working. I know it's not the same car, nor do I have experience with it, but maybe something helpful for you. |
05-13-2014, 02:34 PM | #13 (permalink) |
A True Z Fanatic
Join Date: Jan 2009
Location: Kansas
Posts: 3,800
Drives: 09 Z34-TT 6MT
Rep Power: 42 |
Nice! I've been thinking about the same project in which I want to output to a composite video input of my head unit with the Arduino. I want to refresh the entire screen instead of printing it out in log format. The only issue I have is the resolution, so I thought about using a Raspberry Pi and write a Java app to make it look pretty on the screen with a touch friendly UI. Among other features, real-time plotting like an oscilloscope, bar charts, and the ability to view peak and hold.
All I need to do is query the data in real-time (similar to the console output) given the list of PIDs, and then parse the raw data. This is something I'm already doing at work in the .NET world. Although my other option is to get a hold of Mono for Visual Studio so I can quickly code stuff in C#, but then it'll be an Android app. BTW... what sort of response do you get if the PID doesn't exist?
__________________
Last edited by DIGItonium; 05-13-2014 at 02:43 PM. |
05-13-2014, 03:01 PM | #14 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 |
He's just listening in on the CAN bus and printing it to a screen. You don't have to send any commands unless you want to start querying the OBD2 type information. The information he has printed is actually used by the car to function.
|
05-13-2014, 03:16 PM | #15 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 |
radensb, when you start logging we should decide on a standard format so we can exchange logs and input them into whatever programs we write.
Here's an example I did early on using excel, but my VB.net program is coming together slowly which automates the process of comparing and graphing information to figure out what they mean. I start by backing out of my driveway and then I drove around my neighborhood a bit (reverse = -1, neutral = 0, first = 1, etc.). Last edited by Brad370; 02-18-2020 at 09:40 AM. |
Bookmarks |
|
|