Nissan 370Z Forum  

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

Go Back   Nissan 370Z Forum > Nissan 370Z Tech Area > Engine & Drivetrain > Tuning


Like Tree110Likes

Reply
 
LinkBack Thread Tools Display Modes
Old 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
radensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond repute
Default 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!
Paul_S and Uxi like this.

Last edited by radensb; 05-06-2014 at 08:40 PM. Reason: Added sources
radensb is offline   Reply With Quote
Old 05-06-2014, 03:39 AM   #2 (permalink)
A True Z Fanatic
 
RonRizz's Avatar
 
Join Date: Aug 2011
Location: Pine grove, Pa
Posts: 2,136
Drives: 2 feet, 3 pedals
Rep Power: 6775
RonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond reputeRonRizz has a reputation beyond repute
Default

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
RonRizz is offline   Reply With Quote
Old 05-06-2014, 09:47 AM   #3 (permalink)
Base Member
 
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14
Brad370 is on a distinguished road
Default

Straybytes.com is my blog. I haven't worked on that in a while because I've been distracted by other projects. I can help if you have any questions though.
Paul_S and radensb like this.
Brad370 is offline   Reply With Quote
Old 05-06-2014, 10:29 AM   #4 (permalink)
A True Z Fanatic
 
Mitco39's Avatar
 
Join Date: Aug 2012
Location: Edmonton Alberta Canada
Posts: 2,089
Drives: 40th 370z
Rep Power: 132
Mitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond reputeMitco39 has a reputation beyond repute
Default

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
radensb likes this.
__________________
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
Mitco39 is offline   Reply With Quote
Old 05-06-2014, 03:19 PM   #5 (permalink)
Base Member
 
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14
Brad370 is on a distinguished road
Default

Quote:
Originally Posted by radensb View Post
If anyone has more information or sources, please contribute!
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.
radensb likes this.
Brad370 is offline   Reply With Quote
Old 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
radensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond repute
Default

Quote:
Originally Posted by Mitco39 View Post
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
I wonder if its possible to see the CAN data to understand what the bytes for each PID mean??
radensb is offline   Reply With Quote
Old 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
radensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond repute
Default 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!
DIGItonium, GaleForce and Mitco39 like this.
radensb is offline   Reply With Quote
Old 05-08-2014, 11:41 PM   #8 (permalink)
Premium Member
 
SouthArk370Z's Avatar
 
Join Date: Nov 2010
Location: South Arkansas
Posts: 8,435
Drives: 2014 Challenger
Rep Power: 324198
SouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond repute
Default

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
SouthArk370Z is offline   Reply With Quote
Old 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
radensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond repute
Default

Quote:
Originally Posted by SouthArk370Z View Post
I have an ELM-based CAN-to-USB adapter. Would it be possible to get a copy of your program?
I don't believe my code will help you in your case. My code is C++ firmware code that gets loaded to an Arduino and communicates directly to a MCP2515 CAN controller chip via the SPI protocol. That data is then translated to UART to communicate to the PC to see the results.


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.
gomer_110 likes this.
radensb is offline   Reply With Quote
Old 05-09-2014, 04:43 PM   #10 (permalink)
Premium Member
 
SouthArk370Z's Avatar
 
Join Date: Nov 2010
Location: South Arkansas
Posts: 8,435
Drives: 2014 Challenger
Rep Power: 324198
SouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond reputeSouthArk370Z has a reputation beyond repute
Default

Quote:
Originally Posted by radensb View Post
I don't believe my code will help you in your case. My code is C++ firmware code that gets loaded to an Arduino and communicates directly to a MCP2515 CAN controller chip via the SPI protocol. That data is then translated to UART to communicate to the PC to see the results.
Ah. OK.

Quote:
Originally Posted by radensb View Post
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 hardware/software I have found work great for monitoring params if you know the PID, but I haven't found a free program that will do bus sniffing.


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
SouthArk370Z is offline   Reply With Quote
Old 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
radensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond reputeradensb has a reputation beyond repute
Default 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


radensb is offline   Reply With Quote
Old 05-13-2014, 01:01 PM   #12 (permalink)
Base Member
 
RLami's Avatar
 
Join Date: Apr 2014
Location: Colorado Springs, CO
Posts: 48
Drives: 2015 Focus ST ST3
Rep Power: 11
RLami is on a distinguished road
Default

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.
etx likes this.
RLami is offline   Reply With Quote
Old 05-13-2014, 02:34 PM   #13 (permalink)
A True Z Fanatic
 
DIGItonium's Avatar
 
Join Date: Jan 2009
Location: Kansas
Posts: 3,800
Drives: 09 Z34-TT 6MT
Rep Power: 42
DIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond reputeDIGItonium has a reputation beyond repute
Default

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?
__________________
http://www.the370z.com/image.php?type=sigpic&userid=950&dateline=13162988  42

Last edited by DIGItonium; 05-13-2014 at 02:43 PM.
DIGItonium is offline   Reply With Quote
Old 05-13-2014, 03:01 PM   #14 (permalink)
Base Member
 
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14
Brad370 is on a distinguished road
Default

Quote:
Originally Posted by DIGItonium View Post
BTW... what sort of response do you get if the PID doesn't exist?
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.
Brad370 is offline   Reply With Quote
Old 05-13-2014, 03:16 PM   #15 (permalink)
Base Member
 
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14
Brad370 is on a distinguished road
Default

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.).

Fountainhead likes this.

Last edited by Brad370; 02-18-2020 at 09:40 AM.
Brad370 is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 PL2