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
|
|
LinkBack | Thread Tools | Display Modes |
06-09-2014, 09:52 PM | #16 (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 10:05 PM. |
06-17-2014, 10:28 PM | #17 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 |
Latest spreadsheet
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 07:31 AM. |
06-17-2014, 11:11 PM | #18 (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 |
06-17-2014, 11:13 PM | #19 (permalink) | |
A True Z Fanatic
|
Quote:
|
|
06-18-2014, 07:35 AM | #20 (permalink) | |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 |
Quote:
|
|
06-18-2014, 11:06 AM | #22 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 |
A somewhat silly use for this also occured to me since we can see the status of various buttons and switches in the car by monitoring the CAN bus. Here are 2 ideas:
This can be used to enter a 'code' to activate something or to identify the driver to the carputer. A code such as tapping the brake 5 times quickly. Or we can repurpose buttons for something else. I found the bit that shows whether the key is inserted into the slot beneath the VDC button (I'll add it to my spreadsheet soon). It's just a button that can be pushed if you insert your finger all the way back. Just monitoring this bit can activate something and it makes for a very stealthy switch. |
06-18-2014, 11:23 AM | #23 (permalink) | |
Premium Member
Join Date: Nov 2010
Location: South Arkansas
Posts: 8,435
Drives: 2014 Challenger
Rep Power: 324198 |
Quote:
The theft-deterrent idea should be pretty easy to implement with a relay in the push button or starter circuits. You should be able to come up with a "valet mode", using some switch (or combination) to limit RPM. I'm not sure how one would limit RPM, but you seem to have enough access via CAN to do it, if it's possible.* The possibilities are endless! One thing that I've wanted on my 7AT is to have the current gear displayed on the dash in automatic mode, as it does when in manual mode. Not sure how the dash handles it, so it may not be possible. *Edit: It sounds to me that what you are working on is basically a "dumb" tuner. If you know the right address to poke data into, you should be able to do everything the tuning software does, albeit without the benefit of the reverse-engineering done to identify all the "good" addresses.
__________________
Steering Lock Links - Search The370Z Bookmarklet - FSM @ NICOclub Mankind has progressed past the need for war but we haven't evolved that far. - NachoMahma Last edited by SouthArk370Z; 06-18-2014 at 11:28 AM. |
|
06-18-2014, 11:32 AM | #24 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 |
The ECM sends the current gear to the dash repeatedly (every 55ms on my manual Z). So the problem is that even though you could send out messages disguised to look like the message from the ECU to trick it into displaying the current gear, it would immediately be replaced with the next message from the actual ECU.
|
06-18-2014, 11:36 AM | #25 (permalink) | |
A True Z Fanatic
Join Date: May 2010
Location: nirvana
Posts: 6,394
Drives: 2023 NATM
Rep Power: 418 |
Quote:
__________________
Enjoy it. Destroy it. |
|
06-18-2014, 11:41 AM | #26 (permalink) |
Base Member
Join Date: Aug 2011
Location: online
Posts: 102
Drives: car
Rep Power: 14 |
I believe SouthArk370Z wants to be able to replaced the 'D' with the actual numeric gear value. But I think you would be in a tug-of-war with the ECU and the display might be unreadable because it would bounce back and forth between D and the gear number. Or it might cause errors.
|
06-18-2014, 02:53 PM | #27 (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 |
06-18-2014, 10:32 PM | #28 (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 09:40 AM. |
06-19-2014, 09:52 AM | #29 (permalink) |
A True Z Fanatic
Join Date: Jan 2009
Location: Kansas
Posts: 3,800
Drives: 09 Z34-TT 6MT
Rep Power: 42 |
C, C#, Java, etc., devs UNITE!
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 11:04 AM. |
06-20-2014, 10:12 AM | #30 (permalink) |
A True Z Fanatic
Join Date: Jan 2009
Location: Kansas
Posts: 3,800
Drives: 09 Z34-TT 6MT
Rep Power: 42 |
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 01:36 PM. |
Bookmarks |
|
|