![]() |
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
|
![]() |
|
LinkBack | Thread Tools | Display Modes |
|
![]() |
#1 (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 08:40 AM. |
![]() |
![]() |
![]() |
#2 (permalink) |
Base Member
Join Date: Apr 2011
Location: Malaysia
Posts: 116
Drives: 09 PW 7AT 370z
Rep Power: 14 ![]() |
![]()
Wah, so many skillfull programmer here.
Gents after a long journey trying to understand why JDM car unable to read the bloody data on torque i can safely say that now with the new Nissan adv plugin on torque we (jdm) ecu can actually read from it, but limited to the custom pid by the plugin only. Im trying to figure out how to read the standard mode 1 pid but so far unsuccessfull. Can someone teach me how to put the custom pid into torque, maybe it can force torque to read it that way. Maybe the developer just bypass the polling routine for standard pid since requesting for 0000 turning null which mean the ecu did not support any pid. I would like to suggest that the moderator move this thread to tuning section since it is more related to ecu. TS, if you dont mind, i made a post at torque bhp forum to this thread and your spreadsheet at http://torque-bhp.com/forums/?wpforu...topic&t=4875.0 Car is 370z 2009 7AT JDM Last edited by ZeN; 06-09-2014 at 09:05 PM. |
![]() |
![]() |
![]() |
#3 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 ![]() |
![]()
I did a little updating and added new information, plus I put the bits in the proper order. My spreadsheet is now hosted on Dropbox to make it easier for me to keep it synced.
https://www.dropbox.com/s/cfpzb2mpj4...70Z%20CAN.xlsx So the google spreadsheet listed in your first post has been deleted. Last edited by Brad370; 06-18-2014 at 06:31 AM. |
![]() |
![]() |
![]() |
#4 (permalink) | |
A True Z Fanatic
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 (permalink) | |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 ![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#7 (permalink) |
A True Z Fanatic
Join Date: Aug 2011
Location: Perrysburg, OH
Posts: 17,992
Drives: '11 Nismo #528 GM
Rep Power: 36941 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]()
This makes it so much harder to hold off on adding CAN-bus communications to my homemade datalogger. So much useful info I can get from the ecu, especially steering angle, brake position, and throttle position.
__________________
'11 370Z Nismo #528 Fast Intentions | Stillen | Motordyne | Uprev | CSF | Zspeed | Z1 Motorsports | AST | Swift | SPC | SPL | Whiteline | Hotchkis | Bride | Schroth | Robispec | Cusco | Nismo | Volk | Forgestar | Hoosier | RJM '17 Titan Bone Stock |
![]() |
![]() |
![]() |
#8 (permalink) |
A True Z Fanatic
![]() Join Date: Aug 2012
Location: Edmonton Alberta Canada
Posts: 2,089
Drives: 40th 370z
Rep Power: 132 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]()
One way to find out, lol.
__________________
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 |
![]() |
![]() |
![]() |
#9 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 ![]() |
![]()
I've received a couple PMs asking what tools I'm using to sniff the CAN bus. Below is a pic of the VB.net app I wrote to display the info. I took a cue from radensb's screenshots for layout.
The left panel shows the CAN messages. Once the Lock Values button is pushed, all of the current values are saved and if any of them change they are highlighted in red. This makes it easy to see changes. If you click on a byte, it will show the individual bits in the Show Bits section. Then you can click on a single bit, which will lock the green block to that bit. It will show green for 1 and red for 0. This makes it easy to see changes from far away when messing with the car. I'm going to work on this some more over the next couple weeks before I let anybody else use it. I still need to add OBD PID polling so that info can be logged too. Just thought I'd share. It only works with a CANUSB adapter. Last edited by Brad370; 02-18-2020 at 08:40 AM. |
![]() |
![]() |
![]() |
#10 (permalink) |
A True Z Fanatic
Join Date: Jan 2009
Location: Kansas
Posts: 3,800
Drives: 09 Z34-TT 6MT
Rep Power: 43 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]()
Here are some ideas off the top of my head:
The VS project I have at work is a tablet friendly real-time viewer which manipulates HTML displays, so I can flip images to simulate control state, update text values, and even set text colors. One can apply logic so perhaps the text color can indicate out of range values. HTML lets people create screens beyond looking like tables. I can probably port the entire project for ODB. Below is a program I wrote at work that reads XML files which can export the list as comma or tab separated with filtering capability.
__________________
![]() Last edited by DIGItonium; 05-27-2015 at 10:04 AM. |
![]() |
![]() |
![]() |
#11 (permalink) |
A True Z Fanatic
Join Date: Jan 2009
Location: Kansas
Posts: 3,800
Drives: 09 Z34-TT 6MT
Rep Power: 43 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]()
I'll try to find time to come up with a tablet-friendly .NET application. It's based off the data viewing tool I wrote at work. Design plan:
[EDIT] Already started. I copied the project and started deleting non-essential stuff.
__________________
![]() Last edited by DIGItonium; 06-20-2014 at 12:36 PM. |
![]() |
![]() |
![]() |
#12 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 ![]() |
![]()
I did a little experimenting with DotNetBar gauge controls. It isn't pretty, but it's a proof of concept and they all update in real-time.
Last edited by Brad370; 02-18-2020 at 08:40 AM. |
![]() |
![]() |
![]() |
#13 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 ![]() |
![]()
I may have hit the mother load.
I found a way to access Nissan's proprietary PIDs. They aren't found using the standard mode $01 described here and they are 2 bytes long, not just 1. They are accessed using mode $22, but the ECU needs to be placed in a special diagnostic mode (I don't think this will impact driving at all since the dealership needs to run the car while testing it too, but I still need to try it out). I describe how I figured this all out on my blog here. All in all, I found 254 custom PIDs that are completely undocumented so it's going to take quite a bit of work to decipher them all. Please help if you can. Hopefully this will give us access to a lot more sensors and data. I'll be updating my progress on here and on my spreadsheet. They're on the "Extended PIDs" tab. Here's what I got with the key in the ON position, but the car not started. It goes PID, # bytes, then the data bytes. 1100 4 E4 41 9A 63 1101 1 61 1102 1 00 1103 1 96 1104 1 50 1105 1 00 1106 1 69 1107 1 00 1108 1 00 1109 1 00 110A 1 00 110C 1 C8 110D 1 5C 1110 1 00 1111 1 50 1112 1 00 1113 1 00 1114 1 23 1115 1 C4 1116 1 C4 1117 1 00 1118 1 00 1119 1 00 111A 1 1C 111B 1 1C 111C 1 00 111E 1 00 111F 1 5F 1120 4 3C 4C 01 81 1121 1 00 1122 1 00 1123 1 64 1124 1 64 1125 1 64 1126 1 64 1129 1 C4 112A 1 D1 112B 1 80 112D 1 00 112E 1 00 1130 1 00 1131 1 00 1132 1 00 1133 1 00 1134 1 40 1135 1 80 1136 1 00 1137 1 00 1138 1 00 1139 1 00 113A 1 80 113B 1 00 113C 1 00 113D 1 00 1140 4 07 06 00 C1 1143 1 00 1144 1 00 1145 1 01 1146 1 00 1147 1 58 1148 1 70 1149 1 00 114A 1 00 114C 1 00 114D 1 00 114E 1 00 114F 1 00 1150 1 00 1159 1 00 115A 1 00 1160 4 00 00 01 CD 1162 1 00 1163 1 80 1164 1 00 1165 1 00 1166 1 80 1174 1 00 1178 1 00 1179 1 C2 117A 1 63 117B 1 00 117D 1 15 117E 1 15 117F 1 00 1180 4 21 E0 00 00 1182 1 FF 1183 1 00 1188 1 00 1189 1 00 118A 1 00 118B 1 00 118C 1 00 1200 4 BF AF 10 71 1201 2 00 00 1203 2 00 00 1204 2 00 42 1205 2 00 42 1206 2 04 CC 1207 2 04 CC 1208 2 AB 07 1209 2 00 BF 120B 2 00 00 120C 2 00 00 120D 2 00 92 120E 2 00 8E 120F 2 00 7B 1210 2 00 7B 1214 2 01 40 1218 2 02 72 1219 2 00 00 121A 2 00 00 121B 2 15 76 121C 2 21 F7 1220 4 EC 60 E0 01 1221 2 00 AE 1222 2 00 D3 1223 2 00 EB 1225 2 01 B9 1226 2 01 B9 122A 2 02 15 122B 2 00 00 122C 2 00 00 122D 2 00 00 122E 2 00 00 122F 2 00 00 1230 2 00 00 1231 2 56 33 1232 2 45 56 1233 2 30 41 1234 2 01 18 1235 2 00 00 1236 2 00 00 1237 2 00 EF 1238 2 00 C2 1239 2 00 E4 123A 2 00 19 123B 2 00 B1 123C 2 01 44 123D 2 00 80 123E 2 00 00 123F 2 00 3B 1240 4 03 FD 00 6D 1241 2 00 CA 1243 2 00 75 1244 2 01 B1 1245 2 01 B3 1246 2 00 00 1247 2 00 03 1248 2 B6 3A 1249 2 FF D7 124A 2 FF D3 124B 2 00 79 124C 2 00 7B 124D 2 80 00 124E 2 80 00 124F 2 80 00 1250 2 00 03 125A 2 00 83 125B 2 00 82 125C 2 02 0E 125D 2 01 71 125E 2 01 BE 125F 2 FF FF 1260 4 03 80 C0 00 1267 2 00 E0 1268 2 01 15 1269 2 00 00 126B 2 01 BB 126C 2 01 BB 126D 2 01 DD 126E 2 01 EE 126F 2 01 BB 1270 2 01 BB 1271 2 01 65 1272 2 02 0F 1273 2 00 7B 1274 2 00 97 1275 2 01 BB 1276 2 01 BB 1300 4 7B FC 04 00 1301 2 00 00 1302 2 01 3F 1303 2 C0 30 1304 2 80 90 1305 2 68 44 1306 2 00 00 1307 2 00 42 1308 2 01 08 1309 2 10 02 130A 2 10 10 130B 2 00 03 130C 2 E5 E5 130D 2 10 3F 130E 2 00 7F 130F 2 DB FF 1310 2 00 03 1311 2 00 00 1313 2 00 00 1315 2 00 00 1316 2 11 1F 1317 2 00 00 1500 4 5B DB 62 00 1502 2 00 09 1503 2 00 00 1504 2 00 FF 1505 2 00 09 1506 2 00 00 1507 2 00 FF 1508 2 00 09 1509 2 00 C0 150A 2 00 3C 150B 2 00 00 150C 2 00 C0 150D 2 00 3C 150E 2 00 00 150F 2 00 C0 1510 2 00 3C 1511 2 00 00 1512 2 00 C0 1513 2 00 0C 1514 2 00 00 1515 2 00 00 1516 2 00 00 1517 2 02 02 Last edited by Brad370; 06-29-2014 at 11:35 PM. |
![]() |
![]() |
![]() |
#14 (permalink) |
A True Z Fanatic
Join Date: Jan 2009
Location: Kansas
Posts: 3,800
Drives: 09 Z34-TT 6MT
Rep Power: 43 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]()
That's pretty sweet. Unfortunately, VS failed on me and I nearly lost half of my project at work!
I created a new blank solution so I can import my existing project. I started deleting stuff and making changes. Then I needed to go back to my work project and saw a bunch of errors. It turns out VS didn't "clone" my project and copy it to the solution. ![]() So... I'm going to make a duplicate copy next time so I don't lose my stuff. I'm in the middle of releasing it, so I'll get back to it in a few weeks.
__________________
![]() |
![]() |
![]() |
![]() |
#15 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 ![]() |
![]()
Does anyone have friends at a garage that can hook up a Consult to a 370Z, make it view as much data as possible, and then send me the log files from it? This is going to be almost impossible to decode without cheating like that.
I do know that the 1100, 1120, 1140, etc. PIDs work the same way as the mode 01: 00, 20, 40, etc. PIDs. They signify which of the following bits are valid. All of the rest is actual data. It looks like 1100 & 1200 series PIDs are mainly sensors (speeds, temps, pressures, etc.) The 1300 & 1500 series PIDs looks like statuses of various things in the car. So once I figure out what those represent it's possible that I can manipulate them directly (unlock doors, VDC off, headlights, etc.) but I still need more time to play around. Also, I drove around and logged a bunch of information and confirmed that you can drive perfectly fine while the ECU is in the diagnostic mode required to get the proprietary PIDs. |
![]() |
![]() |
![]() |
Bookmarks |
Thread Tools | |
Display Modes | |
|
|