RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 9:12 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 114 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
Author Message
 Post subject: Nissan Logger Support
PostPosted: Tue Oct 30, 2018 7:42 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Has anyone expanded on or validated these PIDs?
I'm going to start a Logger definition and want to describe any known logging parameters and their SID/PID values and scalings.

Here's the supported SID/PIDs for the ECU I have:
2100 80000000
221100 E4419A41
221120 282C0901
221140 1F040080
221200 B5AF00F1
221220 E86013FF
221240 B3000000
221300 7FFC2000
221400 EEBBFFF8
221500 5B5B6000
Attachment:
ncs.png

Sasha_A80 wrote:
Getting Started

Non-OBD II Hitachi MEC31-571 Ecu

Nissan 23710-CD416 VQ35DE

1 byte
1101 Coolant
1102 VehicleSpeed
1103 Battery 80mv
1106 IntakeAirTemp
110A IgnitionTiming
1110 Purge
1118 HO2S1B1
1119 HO2S1B2
111A HO2S2B1
111B HO2S2B2
1123 A/F ALPHA B1
1124 A/F ALPHA B2
1150 O2SEN HTR DUTY

......
2 bytes
1201 EngineSpeed 0.09765625rpm
1204 MAFv_B1 5mv
1206 InjPulse_B1 .01ms
1207 InjPulse_B2 .01ms
120D AcceleratorSensor1
120E AcceleratorSensor2
120F ThrottleSensor1
1210 ThrottleSensor2
121A VehicleSpeed
......

This definately does not correspond to Nissan Diesel extended PIDs


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Tue Oct 30, 2018 10:59 pm 
Offline
Experienced

Joined: Sat Jun 24, 2017 2:23 pm
Posts: 315
dschultz wrote:
Has anyone expanded on or validated these PIDs?
I'm going to start a Logger definition and want to describe any known logging parameters and their SID/PID values and scalings.

Here's the supported SID/PIDs for the ECU I have:
2100 80000000
221100 E4419A41
221120 282C0901
221140 1F040080
221200 B5AF00F1
221220 E86013FF
221240 B3000000
221300 7FFC2000
221400 EEBBFFF8
221500 5B5B6000
Attachment:
ncs.png


Very exciting! I am willing to help fill in the blanks or with the defs themselves. Is the logger using the 10.4 kbit/s protocol?

CID/PID spreadsheet; https://docs.google.com/spreadsheets/d/ ... IipSvC7xhQ


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Wed Oct 31, 2018 7:12 am 
Offline
Experienced
User avatar

Joined: Wed Jan 08, 2014 11:07 pm
Posts: 652
Whoa, very nice progress @dschultz !

I like your spreadsheet a33b; have you thought of adding a column for "A2L name" and "scaling source" (to keep a trace of how the scaling was obtained, in case some conflicts ever arise between ROMs).

PS what happens in the spreadsheet with the CIDs > 1300 ? they're weirdly formatted, i.e. "13010" - or would that be CID 1301, bit 0 ?

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Wed Oct 31, 2018 9:20 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
a33b wrote:
Very exciting! I am willing to help fill in the blanks or with the defs themselves. Is the logger using the 10.4 kbit/s protocol?

Yes it's 10400 baud.
Can you include in the spreadsheet a column for ecu_init_byte, ecu_init_bit and datasize?
I know data size if fairly well grouped by SID/PID, but we'll still need it for the def file.
I'll provide the mapping for each SID/PID to ecu_init_byte, ecu_init_bit.

For any parameter of interest that is not directly obtained through SID/PID then we can read the direct RAM address.

I have ECU ID ZD89A, if you have a def for it let me know.


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Wed Oct 31, 2018 9:21 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
fenugrec wrote:
Whoa, very nice progress @dschultz !
Thanks, but it's been much slower than I expected till now.


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Wed Oct 31, 2018 12:20 pm 
Offline
Experienced
User avatar

Joined: Wed Jan 08, 2014 11:07 pm
Posts: 652
dschultz wrote:
Can you include in the spreadsheet a column for ecu_init_byte, ecu_init_bit and datasize?


The question wasn't addressed to me, but what are ecu_init_byte and ecu_init_bit ?

Quote:
I have ECU ID ZD89A, if you have a def for it let me know.

Least I could do is take care of that. I'll have a basic one ready later today.

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Wed Oct 31, 2018 7:09 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
fenugrec wrote:
dschultz wrote:
Can you include in the spreadsheet a column for ecu_init_byte, ecu_init_bit and datasize?


The question wasn't addressed to me, but what are ecu_init_byte and ecu_init_bit ?

Internal to RR Logger it's a mapping of the supported SID/CID pulled from the ECU when RR Logger first connects. RR builds an internal mapping and then uses this info to filter out the logger def parameters that do not apply to the connected ECU. In this example they are: ecubyteindex & ecubit
Code:
<parameter id="P2" name="Coolant Temperature" desc="P2-Coolant Temperature" ecubyteindex="39" ecubit="7" target="1">
  <address>0x221101</address>
    <conversions>
      <conversion units="F" expr="32+9*(x-40)/5" format="0" gauge_min="-40" gauge_max="420" gauge_step="50" />
      <conversion units="C" expr="x-40" format="0" gauge_min="-40" gauge_max="215" gauge_step="25"/>
    </conversions>
</parameter>

If you string the ECU ID and all the possible SID/CIDs together you get a 200byte sequence.
Each bit in that sequence maps to a logger parameter and if set then the ECU will report a value for it.

For my ECU the sequence is:
Code:
5A315A44383941 |
8000000000000000000000000000000000000000000000000000000000000000 |
E4419A41282C09011F0400800000000000000000000000000000000000000000 |
B5AF00F1E86013FFB30000000000000000000000000000000000000000000000 |
7FFC200000000000000000000000000000000000000000000000000000000000 |
EEBBFFF800000000000000000000000000000000000000000000000000000000 |
5B5B60000000000000000000000000000000000000000000000000000000000000
I put the | into the sequence to separate the SID/CID groups. Basically from the top down:
ECU_ID |
SID 21 |
SID 2211 |
SID 2212 |
SID 2213 |
SID 2214 |
SID 2215


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Wed Oct 31, 2018 11:13 pm 
Offline
Experienced
User avatar

Joined: Wed Jan 08, 2014 11:07 pm
Posts: 652
dschultz wrote:
Internal to RR Logger it's a mapping of the supported SID/CID pulled from the ECU when RR Logger first connects. ..


Ah, I see, thanks. But in
Code:
<parameter id="P2" name="Coolant Temperature" desc="P2-Coolant Temperature" ecubyteindex="39" ecubit="7" target="1">
  <address>0x221101</address>
 .....


Isn't the information given by ecubyteindex and ecubit somewhat redundant with the 'address' field ? Granted, probably not a serious problem if that's in a logger def that isn't normally user-edited.

Just made a basic def for ZD89A with a few maps, just to have a starting point:
https://github.com/fenugrec/NissanDefs/ ... /ZD89A.xml

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Thu Nov 01, 2018 12:01 am 
Offline
Experienced

Joined: Sat Jun 24, 2017 2:23 pm
Posts: 315
dschultz wrote:
Can you include in the spreadsheet a column for ecu_init_byte, ecu_init_bit and datasize?
I know data size if fairly well grouped by SID/PID, but we'll still need it for the def file.
I'll provide the mapping for each SID/PID to ecu_init_byte, ecu_init_bit.

I probably can, but you're using different terms than I've become familiar with. ecu_init_byte and ecu_init_bit? Just saw you responded above this post...

dschultz wrote:
For any parameter of interest that is not directly obtained through SID/PID then we can read the direct RAM address.
This is a great option, I've had to hack the SIDs to attempt this (some of the junk notes in the spreadsheet I attached)


Last edited by dschultz on Tue Nov 20, 2018 10:36 am, edited 2 times in total.
Question already answered


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Thu Nov 01, 2018 12:04 am 
Offline
Experienced

Joined: Sat Jun 24, 2017 2:23 pm
Posts: 315
fenugrec wrote:
I like your spreadsheet a33b; have you thought of adding a column for "A2L name" and "scaling source" (to keep a trace of how the scaling was obtained, in case some conflicts ever arise between ROMs).

Good idea, I was mostly using this for RE purposes within the disassembly. Now that a logger is coming I agree that some more effort should be expended to verify as many as possible.
fenugrec wrote:
PS what happens in the spreadsheet with the CIDs > 1300 ? they're weirdly formatted, i.e. "13010" - or would that be CID 1301, bit 0 ?
Correct


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Thu Nov 01, 2018 9:46 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
a33b wrote:
dschultz wrote:
Can you include in the spreadsheet a column for ecu_init_byte, ecu_init_bit and datasize?
I know data size if fairly well grouped by SID/PID, but we'll still need it for the def file.
I'll provide the mapping for each SID/PID to ecu_init_byte, ecu_init_bit.

I probably can, but you're using different terms than I've become familiar with. ecu_init_byte and ecu_init_bit? Just saw you responded above this post...
This is for the parameters of the Logger definition, it's only defined once and then you will forget all about it unless we discover new parameters in these SID/CID combos not currently defined.



BTW: The RR Logger for the Nissan protocol will only work with a J2534 cable on Windows.
I use the Tactrix Openport 2 & Drew Tech Mongoose ISO/CAN. I have a couple of others but have not tested them yet. I find the Tactrix OP2 has the best performance (although the new MongoosePro might close the gap, I have the original version).
It might work on Linux (not yet tested) but only with the OP2 cable and this driver.


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Thu Nov 01, 2018 4:55 pm 
Offline
Experienced
User avatar

Joined: Wed Jan 08, 2014 11:07 pm
Posts: 652
dschultz wrote:
The RR Logger for the Nissan protocol will only work with a J2534 cable on Windows.

Understandable, it's so much easier than manually managing K comms.
Did I dream or does the SSM code have pretty much all we would need for 10.4k comms over a simple serial-K adapter ? Of course I'd rather have everybody (including me) using J2534 hardware for everything, but it's still much more expensive, and nisprog only supports dumb cables.

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Thu Nov 01, 2018 5:24 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
SSM is simple. Set baud to 4800 8-n-1 and just start your queries. None of that silly KWP wakeup tomfoolery dancing mating ritual.


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Thu Nov 01, 2018 5:34 pm 
Offline
Experienced
User avatar

Joined: Wed Jan 08, 2014 11:07 pm
Posts: 652
dschultz wrote:
SSM is simple. Set baud to 4800 8-n-1 and just start your queries.


Ah my bad, I thought I had seen fastinit / wakeup code. I probably got that idea seeing how the packets are formatted mostly like iso14230.

So the next project (ha ha) is to have nisprog/libdiag expose a J2534 API with a dumb K cable backend ! Doable, but not worth my time.

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
 Post subject: Re: Nissan Logger Support
PostPosted: Fri Nov 02, 2018 5:47 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
a33b wrote:
fenugrec wrote:
PS what happens in the spreadsheet with the CIDs > 1300 ? they're weirdly formatted, i.e. "13010" - or would that be CID 1301, bit 0 ?
Correct

So from this I gather that each bit returned is effectively a switch (on/off), correct?

If the reply to 1301 is a byte, is each bit supported or is it possible that say only 5 of 8 bits contain real values?

how would you interpret this?
Mode221305 Request = 052213050401
Mode221305 Response = 056213054844


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 114 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl