Nissan 370Z Forum  

370Z CAN Bus Proprietary PID's

I have to check when i get home, but i believe it is an obd to usb based off the stn1110 chip through a raspberry pi using python Sent from

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


Like Tree110Likes

Reply
 
LinkBack Thread Tools Display Modes
Old 10-29-2018, 04:36 PM   #1 (permalink)
Base Member
 
GrayGhost's Avatar
 
Join Date: Sep 2017
Location: Florida
Posts: 109
Drives: 40TH
Rep Power: 8
GrayGhost is on a distinguished road
Default

I have to check when i get home, but i believe it is an obd to usb based off the stn1110 chip through a raspberry pi using python


Sent from my iPhone using Tapatalk
GrayGhost is offline   Reply With Quote
Old 10-30-2018, 09:18 AM   #2 (permalink)
Track Member
 
Join Date: May 2018
Location: Farmington Hills, MI
Posts: 599
Drives: 08 Expedition
Rep Power: 6766
dts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond repute
Default

I'm not familiar with the CAN solutions on the Pi. Does that just give you raw data? Can you load database files
dts3 is offline   Reply With Quote
Old 10-30-2018, 02:38 PM   #3 (permalink)
Base Member
 
GrayGhost's Avatar
 
Join Date: Sep 2017
Location: Florida
Posts: 109
Drives: 40TH
Rep Power: 8
GrayGhost is on a distinguished road
Default

Im sure there may be a way to work with database files through python but i am not sure how. I can get raw data from the obd2 by sending requests over a serial port. From my understanding of this thread, it seems that it is possible to intercept the CAN data and record what the control systems are sending back and forth. This would allow me to get some of the more interesting data like tire pressures and yaw rate etc.


Sent from my iPhone using Tapatalk
GrayGhost is offline   Reply With Quote
Old 10-30-2018, 02:39 PM   #4 (permalink)
Base Member
 
GrayGhost's Avatar
 
Join Date: Sep 2017
Location: Florida
Posts: 109
Drives: 40TH
Rep Power: 8
GrayGhost is on a distinguished road
Default

I just dont know how to intercept that CAN data


Sent from my iPhone using Tapatalk
GrayGhost is offline   Reply With Quote
Old 10-30-2018, 03:57 PM   #5 (permalink)
Track Member
 
Join Date: May 2018
Location: Farmington Hills, MI
Posts: 599
Drives: 08 Expedition
Rep Power: 6766
dts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond repute
Default

I could be misunderstanding the tools that you're using, but I would assume that the raw data that you're reading over the serial->OBD connection you have is the raw CAN data.

I'm personally using a program called CANalyzer by Vector. It interfaces to a hardware module that plugs into my laptop's USB port and then into the OBD port. I added a screenshot that shows some of the CAN traffic, including the line for the tire pressure from address 0x385. I asked about CAN database files because we could more easily give meaning to the data (Instead of showing 0x385, maybe it would say something like "tpm_ecu") and it can give interpretations of all the bytes of the response message, along with any conversion or scaling
Attached Images
File Type: png Capture.PNG (38.3 KB, 55 views)
dts3 is offline   Reply With Quote
Old 10-31-2018, 11:30 AM   #6 (permalink)
Track Member
 
Join Date: May 2018
Location: Farmington Hills, MI
Posts: 599
Drives: 08 Expedition
Rep Power: 6766
dts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond repute
Default

I should probably add that my data doesn't line up completely with the spreadsheet. I have ids that he doesn't list, which I wouldn't think too much about. But he also has ids that I don't see over the course of a ten minute log
dts3 is offline   Reply With Quote
Old 12-12-2018, 01:26 AM   #7 (permalink)
Track Member
 
Join Date: May 2018
Location: Farmington Hills, MI
Posts: 599
Drives: 08 Expedition
Rep Power: 6766
dts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond repute
Default

I just want to add a little info to this. Nothing truly helpful; just something I noticed. I have a manual base model (no rev matching) and I REALLY want to plot my current gear against other data.

I noticed that in all of my logs that I never receive any messages with id 0x421 (what's supposed to contain this data). Looking at the spreadsheet, I see that this message also transmits the S-Mode status. I remember a post I read a while back about adding rev matching to a base model, and two of the things needed are a gear position sensor and a new ECU. Given that I don't have the proper ECU (or even the actual sensor!), this has to be the reason that this message isn't on the bus. Just a heads-up to anyone with a base model trying to sniff out the CAN bus.
dts3 is offline   Reply With Quote
Old 12-12-2018, 01:58 AM   #8 (permalink)
Base Member
 
Knio's Avatar
 
Join Date: May 2011
Location: Palo Alto, CA
Posts: 141
Drives: 40th
Rep Power: 15
Knio has a spectacular aura aboutKnio has a spectacular aura about
Default

Quote:
Originally Posted by dts3 View Post
I just want to add a little info to this. Nothing truly helpful; just something I noticed. I have a manual base model (no rev matching) and I REALLY want to plot my current gear against other data.

I noticed that in all of my logs that I never receive any messages with id 0x421 (what's supposed to contain this data). Looking at the spreadsheet, I see that this message also transmits the S-Mode status. I remember a post I read a while back about adding rev matching to a base model, and two of the things needed are a gear position sensor and a new ECU. Given that I don't have the proper ECU (or even the actual sensor!), this has to be the reason that this message isn't on the bus. Just a heads-up to anyone with a base model trying to sniff out the CAN bus.
Yup, the base model does not have the gear position sensor. You could always do what my motorbike does and compute the ratio between the RPM and rear wheel speeds to look up the gear. Only works when moving and clutch engaged though.
Knio is offline   Reply With Quote
Old 12-13-2018, 11:03 PM   #9 (permalink)
Base Member
 
Join Date: Nov 2014
Location: Jacksonville
Posts: 102
Drives: 2014 370z Sport M6
Rep Power: 11
jax4557 is on a distinguished road
Default

I am starting to use an app called "realdash" for a replacement gauge cluster in my Z and have been looking into the canbus as well. I have found most of what I need but I was wondering if anyone has been able to get the message for blinkers left/right, e brake warning, and door ajar? Also, has anyone been able to pop the trunk, roll windows up and down, or alter AC systems through canbus? Thinking about running a tablet in the center with the realdash software with a custom template made only for the above car control functions.

http://www.youtube.com/watch?v=3ToWxLQaRW4


Thanks in advance,
Paul_S and Uxi like this.
__________________
BP Precision 6766 - E85 - 620hp / 550tq
jax4557 is offline   Reply With Quote
Old 12-14-2018, 01:02 AM   #10 (permalink)
Base Member
 
Knio's Avatar
 
Join Date: May 2011
Location: Palo Alto, CA
Posts: 141
Drives: 40th
Rep Power: 15
Knio has a spectacular aura aboutKnio has a spectacular aura about
Default

Quote:
Originally Posted by jax4557 View Post
I am starting to use an app called "realdash" for a replacement gauge cluster in my Z and have been looking into the canbus as well. I have found most of what I need but I was wondering if anyone has been able to get the message for blinkers left/right, e brake warning, and door ajar? Also, has anyone been able to pop the trunk, roll windows up and down, or alter AC systems through canbus? Thinking about running a tablet in the center with the realdash software with a custom template made only for the above car control functions.

http://www.youtube.com/watch?v=3ToWxLQaRW4


Thanks in advance,

The signals for blinkers, doors, and ebrake should be in the spreadsheet under the BCM.

Unfortunately I don’t think you can control anything over CAN because the input switches go directly into the BCM and not over CAN, but I could be wrong there
Knio is offline   Reply With Quote
Old 05-30-2019, 11:10 PM   #11 (permalink)
Track Member
 
Join Date: May 2018
Location: Farmington Hills, MI
Posts: 599
Drives: 08 Expedition
Rep Power: 6766
dts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond repute
Default

Quote:
Originally Posted by Knio View Post
The signals for blinkers, doors, and ebrake should be in the spreadsheet under the BCM.

Unfortunately I don’t think you can control anything over CAN because the input switches go directly into the BCM and not over CAN, but I could be wrong there
I just successfully locked/unlocked my doors over CAN based on the OP's posts and blog. This is basically repeating what he's already done. The following 3 CAN messages were sent to address 0x745:

02 10 c0 00 00 00 00 00
Enter the diagnostic session that allows us to issue service 0x30 requests (which allows commanding of the BCM)

02 3e 80 00 00 00 00 00
Tester Present. I'm sending it periodically every 2.5 seconds to keep the ECU from dropping out of the diagnostic session that I put it in.

04 30 05 00 01 00 00 00
The command to lock/unlock the doors. He's explained in the blog and in this thread what the parameters to this command mean, so I will not repost
all of that
SouthArk370Z and SeeThruHead like this.
dts3 is offline   Reply With Quote
Old 12-15-2018, 10:08 AM   #12 (permalink)
Enthusiast Member
 
Paul_S's Avatar
 
Join Date: Sep 2009
Location: England
Posts: 258
Drives: UK Yellow 370Z
Rep Power: 16
Paul_S is on a distinguished road
Default

Quote:
Originally Posted by jax4557 View Post
I am starting to use an app called "realdash" for a replacement gauge cluster in my Z and have been looking into the canbus as well. I have found most of what I need but I was wondering if anyone has been able to get the message for blinkers left/right, e brake warning, and door ajar? Also, has anyone been able to pop the trunk, roll windows up and down, or alter AC systems through canbus? Thinking about running a tablet in the center with the realdash software with a custom template made only for the above car control functions.

https://www.youtube.com/watch?v=_13IPpjElL0

Thanks in advance,
Very nice. I've not seen that before.

You might find this project interesting:

https://www.youtube.com/watch?v=_13IPpjElL0

This guy used an Arduino to talk to the canbus and wrote his own Android app to talk to that and control the HVAC.

I'm looking to do something similar myself.

The HVAC won't work on the base model unless you swap out the control unit because the base model one doesn't have canbus control.
__________________
In the UK? Check out nissansportz.com - 350Z, GT-R, 370Z and more...


2004 Sunset 350Z to 2009 Limited Edition Ultimate Yellow 370Z
Paul_S is offline   Reply With Quote
Old 12-15-2018, 10:24 AM   #13 (permalink)
Track Member
 
Join Date: May 2018
Location: Farmington Hills, MI
Posts: 599
Drives: 08 Expedition
Rep Power: 6766
dts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond repute
Default

Quote:
Originally Posted by Paul_S View Post
Very nice. I've not seen that before.

You might find this project interesting:

https://www.youtube.com/watch?v=_13IPpjElL0

This guy used an Arduino to talk to the canbus and wrote his own Android app to talk to that and control the HVAC.

I'm looking to do something similar myself.

The HVAC won't work on the base model unless you swap out the control unit because the base model one doesn't have canbus control.
That looks interesting. I have access to Vector CAN tools so that's what I've been using. I'm currently making a database file (dbc) for the 370 that I'll share when I'm done.

I figured that would be the case regarding the HVAC after seeing things mentioned in the FSM.
sig11, Paul_S and Uxi like this.
dts3 is offline   Reply With Quote
Old 12-16-2018, 10:00 PM   #14 (permalink)
Base Member
 
Join Date: Nov 2014
Location: Jacksonville
Posts: 102
Drives: 2014 370z Sport M6
Rep Power: 11
jax4557 is on a distinguished road
Default

I don't mind swapping the module if needed to talk AC via canbus but not sure what the commands are for the AC. They don't seem to be in the system.

Quote:
Originally Posted by Paul_S View Post
Very nice. I've not seen that before.

You might find this project interesting:

https://www.youtube.com/watch?v=_13IPpjElL0

This guy used an Arduino to talk to the canbus and wrote his own Android app to talk to that and control the HVAC.

I'm looking to do something similar myself.

The HVAC won't work on the base model unless you swap out the control unit because the base model one doesn't have canbus control.
__________________
BP Precision 6766 - E85 - 620hp / 550tq
jax4557 is offline   Reply With Quote
Old 12-14-2018, 02:38 AM   #15 (permalink)
Track Member
 
Join Date: May 2018
Location: Farmington Hills, MI
Posts: 599
Drives: 08 Expedition
Rep Power: 6766
dts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond reputedts3 has a reputation beyond repute
Default

The signals are indeed in the spreadsheet. The first tab labeled "370 CAN" breaks the messages down as well. As for controlling devices on the bus... I believe that the OP said he was able to control things with some of the PIDs he listed after putting the ECUs into diagnostic mode. I don't remember if it was a forum post or on his blog. OP answered a question of mine not too long ago so he's still active here.

Last edited by dts3; 12-15-2018 at 10:21 AM.
dts3 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 11:08 PM.


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