|
RomRaider
Documentation
Community
Developers
|
| Author |
Message |
|
fenugrec
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Mon Nov 05, 2018 7:42 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
dschultz wrote: Settings P3_MIN has the greatest affect. At setting of 10 gives about 30 queries/sec for a small packet of only four parameters. Neat ! I'd definitely keep P4 at 0, but I wouldn't go much below 5ms for P3, although in my experience the ECU just pipes that data right through with 0ms interbyte, as it should be. 30 queries/sec is decent I think for that case - anyway the 1kB/s link saturates pretty fast.
_________________ 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 |
|
 |
|
a33b
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Tue Nov 06, 2018 1:57 am |
|
 |
| Experienced |
Joined: Sat Jun 24, 2017 2:23 pm Posts: 315
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Fri Nov 09, 2018 7:58 pm |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
fenugrec wrote: I think TXmode=6 does that (i.e. 21 81 06 01) but I don't know how to stop the stream. I didn't investigate a lot, I remember trying briefly and drowning in a flood of responses. I believe sending break condition on the k-line will stop the ECU from transmitting. I'm not sure how to do that using J2534 though.
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Fri Nov 09, 2018 10:11 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
dschultz wrote: I believe a sending break condition on the k-line will stop the ECU from transmitting. Good point. In that case why not just a fastinit ioctl ? The few extra 100ms for the full init shouldn't matter since that only happen when the user stops logging ?
_________________ 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 |
|
 |
|
Sasha_A80
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Sat Nov 10, 2018 7:47 am |
|
 |
| Senior Member |
Joined: Mon Jan 19, 2009 2:31 pm Posts: 1615 Location: Moscow, Russia
|
dschultz wrote: fenugrec wrote: I think TXmode=6 does that (i.e. 21 81 06 01) but I don't know how to stop the stream. I didn't investigate a lot, I remember trying briefly and drowning in a flood of responses. I believe a sending break condition on the k-line will stop the ECU from transmitting. I'm not sure how to do that using J2534 though. Most probably sending any data from logger\scanner will be a break condition. Subaru Denso\Subaru Hitachi ecu stops sending logging data while k-line collision takes place.
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Sat Nov 10, 2018 10:33 am |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
|
Yes with SSM I can clear the line by sending to the ECU causing a data collision, this is not working for me with the Nissan ECU. Fast init doesn't do it. Sending a full packet of zeros doesn't stop it nor does a packet with all 0xFF. Setting baud to 5 and sending zeros doesn't work. I can momentarily ground the k-line and comms is restored. Hence my wish to send a break signal. Probably easier to do with a dumb serial interface cable, but there's no option to IOCTL a break signal in J2534.
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Sat Nov 10, 2018 10:44 am |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
dschultz wrote: Fast init doesn't do it. Strange. Do you know what the traffic looks like on the bus ? does the J2534 hardware wait for a gap to insert its fastinit or does it just clobber whatever's happening ? And if you sent a regular message like maybe TesterPresent (3E), would it be transmitted in a window between two replies ?
_________________ 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 |
|
 |
|
Sasha_A80
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Sat Nov 10, 2018 11:00 am |
|
 |
| Senior Member |
Joined: Mon Jan 19, 2009 2:31 pm Posts: 1615 Location: Moscow, Russia
|
dschultz wrote: Setting baud to 5 and sending zeros doesn't work. I can momentarily ground the k-line and comms is restored. Hence my wish to send a break signal. Probably easier to do with a dumb serial interface cable, but there's no option to IOCTL a break signal in J2534. Zero at 5 bps is really long enough to simulate break at any reasonable communication baud rate. May it be that J2534 ignores your request till k-line activity stops by it's own way ? Then dumb k-line will be the only solution.
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Sat Nov 10, 2018 7:41 pm |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
fenugrec wrote: dschultz wrote: Fast init doesn't do it. Strange. Do you know what the traffic looks like on the bus ? does the J2534 hardware wait for a gap to insert its fastinit or does it just clobber whatever's happening ? And if you sent a regular message like maybe TesterPresent (3E), would it be transmitted in a window between two replies ? I'll have to trace the K-line to see if there's any attempt to send my J2534 command. I'm not sure if the J2534 hardware waits for a quiet bus before sending. I would think not as with the SSM protocol I can TX a command and it stops the ECU from sending. I have not tried a TesterPresent command yet.
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: Nissan Petrol\Diesel extended PIDs request Posted: Sun Nov 11, 2018 11:43 am |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
|
I may have this sorted out. The comment about sending between ECU messages got me thinking. J2534 write will try to send and confirm that the write took place. Then there's the ISO14230 P2 + P3 timers to account for. So I fiddled a bit and found that a J2534 non-blocking write with a WAIT_P3_MIN_ONLY write flag set will stop the ECU from sending, but only if P3_MIN is under 3msecs.
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: Nissan Logger Support Posted: Sun Nov 11, 2018 9:29 pm |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
This is a bit of logging overkill... Attachment: fastK.png My Mongoose J2534 cable can't keep up, it complains about RX buffer overruns. Tactrix OP2 seems to handle it.
You do not have the required permissions to view the files attached to this post.
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: Nissan Logger Support Posted: Sun Nov 11, 2018 9:46 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
dschultz wrote: This is a bit of logging overkill... hahahaha not too shabby for a lousy 10.4kbps link ! I'm surprised any decent J2534 cable can't keep up... that's really not crazy throughput, compared to CAN...
_________________ 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 |
|
 |
|
dschultz
|
Post subject: Re: Nissan Logger Support Posted: Thu Nov 29, 2018 9:50 pm |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
|
I think we are getting close to a beta release. We still need some refinement to the logging parameters, but that's not code related. Here, we are logging both parameters and switches. A total response length of ~35 bytes with a pretty decent response rate. This is about the most items you can log before hitting the K-line max packet size (including loopback data).
You do not have the required permissions to view the files attached to this post.
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: Nissan Logger Support Posted: Fri Nov 30, 2018 12:17 am |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
|
BTW: is there a command that will reset the ECU clearing all learned adaptions in the process?
|
|
| Top |
|
 |
|
r3dph15h
|
Post subject: Re: Nissan Logger Support Posted: Sat Dec 01, 2018 11:58 am |
|
 |
| Newbie |
Joined: Sun Sep 02, 2018 12:46 pm Posts: 22
|
dschultz wrote: I think we are getting close to a beta release. We still need some refinement to the logging parameters, but that's not code related. Here, we are logging both parameters and switches. A total response length of ~35 bytes with a pretty decent response rate. This is about the most items you can log before hitting the K-line max packet size (including loopback data). Awesome! Ready to test out the beta when it's ready. 
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 3 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
|
|