RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 4:18 pm

All times are UTC





Post new topic Reply to topic  [ 132 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9  Next
Author Message
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Mon Aug 16, 2021 9:53 am 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
andrey3824 wrote:
The scanner receives a response only after the second request. The requests are the same, but the answer comes only after the second. Perhaps two requests need to be sent. The second request is 330ms after the first.

Version 1.03b


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Mon Aug 16, 2021 2:48 pm 
Offline
Experienced
User avatar

Joined: Thu Jan 09, 2014 3:07 am
Posts: 652
andrey3824 wrote:
On the scanner, the time between request bytes is 9ms, on the NISPROG it is 7ms. [...] Maybe that's the problem.

Unlikely.

In sigrok try to decode the request bytes as uart , 10400bps, and make sure they match. They should.

Then, measure the wakeup pattern before the request (25ms low, 25ms high, then first byte).

_________________
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: RE5R05A TCM Definition Request
PostPosted: Mon Aug 16, 2021 3:28 pm 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
fenugrec wrote:
andrey3824 wrote:
On the scanner, the time between request bytes is 9ms, on the NISPROG it is 7ms. [...] Maybe that's the problem.

Unlikely.

In sigrok try to decode the request bytes as uart , 10400bps, and make sure they match. They should.

Then, measure the wakeup pattern before the request (25ms low, 25ms high, then first byte).

I don't need to decode this. I compared the request from the scanner and with NISPROG, they are the same. The scanner is connected to the TCM, I work with this scanner. The problem is different. I have two options why there is no answer after a NISPROG request.
1. The timings between the request bytes are different (7ms and 9ms)
2. The scanner makes two requests and only then receives a response.


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Mon Aug 16, 2021 3:30 pm 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
andrey3824 wrote:
fenugrec wrote:
andrey3824 wrote:
On the scanner, the time between request bytes is 9ms, on the NISPROG it is 7ms. [...] Maybe that's the problem.

Unlikely.

In sigrok try to decode the request bytes as uart , 10400bps, and make sure they match. They should.

Then, measure the wakeup pattern before the request (25ms low, 25ms high, then first byte).

I don't need to decode this. I compared the request from the scanner and with NISPROG, they are the same. The scanner is connected to the TCM, I work with this scanner. The problem is different. I have two options why there is no answer after a NISPROG request.
1. The timings between the request bytes are different (7ms and 9ms)
2. The scanner makes two requests and only then receives a response.


NISPROG may not work, but TCM must respond to the request. Right?


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Mon Aug 16, 2021 7:59 pm 
Offline
Experienced
User avatar

Joined: Thu Jan 09, 2014 3:07 am
Posts: 652
andrey3824 wrote:
I don't need to decode this.

If you don't even want to verify those two simple things then at least upload the .sr files. Otherwise I won't help you.

_________________
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: RE5R05A TCM Definition Request
PostPosted: Mon Aug 16, 2021 11:43 pm 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
fenugrec wrote:
andrey3824 wrote:
I don't need to decode this.

If you don't even want to verify those two simple things then at least upload the .sr files. Otherwise I won't help you.

Ok, I'll try to do this.


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Mon Aug 16, 2021 11:47 pm 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
But I do not understand the meaning of these actions. On the scanner, I saw requests that match the requests from NISPROG. But there are two differences. These are two requests before receiving a response from the scanner and the time between bytes for the scanner is 9ms, and for NISPROG it is 7ms.

Sorry to repeat myself.


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Tue Aug 17, 2021 2:02 am 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
andrey3824 wrote:
fenugrec wrote:
andrey3824 wrote:
I don't need to decode this.

If you don't even want to verify those two simple things then at least upload the .sr files. Otherwise I won't help you.

Ok, I'll try to do this.

One protocol responded positively.


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


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Tue Aug 17, 2021 3:06 am 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
I apologize for the amateurish suggestions. I figured it was enough to make the time between bytes 9ms instead of 7ms and / or make two requests instead of one (as in a scanner).
I am not a programmer and will not be able to make these fixes.


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Tue Aug 17, 2021 11:53 pm 
Offline
Experienced
User avatar

Joined: Thu Jan 09, 2014 3:07 am
Posts: 652
andrey3824 wrote:
But I do not understand the meaning of these actions.


Post your sigrok capture files (zipped).

Quote:
Decoder.jpg

the decoder should be UART with 10400 bps like I said, not "Parallel".

_________________
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: RE5R05A TCM Definition Request
PostPosted: Wed Aug 18, 2021 2:25 am 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
fenugrec wrote:
andrey3824 wrote:
But I do not understand the meaning of these actions.


Post your sigrok capture files (zipped).

Quote:
Decoder.jpg

the decoder should be UART with 10400 bps like I said, not "Parallel".

200 kHz
1 channel


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


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Wed Aug 18, 2021 3:26 pm 
Offline
Experienced
User avatar

Joined: Thu Jan 09, 2014 3:07 am
Posts: 652
andrey3824 wrote:
and / or make two requests instead of one (as in a scanner).


Have you tried sending the "nc" command twice to duplicate this ?

I have looked at your capture and confirmed your tool is sending the same init request (81 18 FC 81) as nisprog. The wakeup pattern (25 / 50 ms) from nisprog is not perfect at 26ms and 52ms but that is extremely, ridiculously difficult to generate accurately with cheap USB adapters and common OS's like windows / linux.

The 7 vs 9 ms interbyte spacing can only be changed by recompiling nisprog (see the "P4" parameter in diag_l1_send; iso14230 only specifies P4 should be between 5 and 20ms for initial connection). I'm still fairly certain this is not the main problem.

Maybe the TCM is very, very picky about the wakeup pattern (ECUs usually tolerate a few ms inaccuracy). Or it really does need two connection attempts. As I suggest, you can more or less emulate this by running 'nc' twice. If the two requests need to happen closer together then it will require some code modifications in nisprog.

_________________
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: RE5R05A TCM Definition Request
PostPosted: Wed Aug 18, 2021 3:44 pm 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
fenugrec wrote:
andrey3824 wrote:
and / or make two requests instead of one (as in a scanner).


Have you tried sending the "nc" command twice to duplicate this ?

I have looked at your capture and confirmed your tool is sending the same init request (81 18 FC 81) as nisprog. The wakeup pattern (25 / 50 ms) from nisprog is not perfect at 26ms and 52ms but that is extremely, ridiculously difficult to generate accurately with cheap USB adapters and common OS's like windows / linux.

The 7 vs 9 ms interbyte spacing can only be changed by recompiling nisprog (see the "P4" parameter in diag_l1_send; iso14230 only specifies P4 should be between 5 and 20ms for initial connection). I'm still fairly certain this is not the main problem.

Maybe the TCM is very, very picky about the wakeup pattern (ECUs usually tolerate a few ms inaccuracy). Or it really does need two connection attempts. As I suggest, you can more or less emulate this by running 'nc' twice. If the two requests need to happen closer together then it will require some code modifications in nisprog.

I didn't think to send "nc" twice, I'll try)).
As for the timings, I assumed that NISPROG itself does this. There is a dependence on the adapter and on the operating system ..


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Wed Aug 18, 2021 3:47 pm 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
andrey3824 wrote:
fenugrec wrote:
andrey3824 wrote:
and / or make two requests instead of one (as in a scanner).


Have you tried sending the "nc" command twice to duplicate this ?

I have looked at your capture and confirmed your tool is sending the same init request (81 18 FC 81) as nisprog. The wakeup pattern (25 / 50 ms) from nisprog is not perfect at 26ms and 52ms but that is extremely, ridiculously difficult to generate accurately with cheap USB adapters and common OS's like windows / linux.

The 7 vs 9 ms interbyte spacing can only be changed by recompiling nisprog (see the "P4" parameter in diag_l1_send; iso14230 only specifies P4 should be between 5 and 20ms for initial connection). I'm still fairly certain this is not the main problem.

Maybe the TCM is very, very picky about the wakeup pattern (ECUs usually tolerate a few ms inaccuracy). Or it really does need two connection attempts. As I suggest, you can more or less emulate this by running 'nc' twice. If the two requests need to happen closer together then it will require some code modifications in nisprog.

I didn't think to send "nc" twice, I'll try)).
As for the timings, I assumed that NISPROG itself does this. There is a dependence on the adapter and on the operating system ..

It is possible to put delay (300) between the "nc" commands in the ini file, for example? Will it pause between requests?


Top
 Profile  
 
 Post subject: Re: RE5R05A TCM Definition Request
PostPosted: Thu Aug 19, 2021 2:25 am 
Offline
Newbie

Joined: Thu Aug 12, 2021 3:40 pm
Posts: 18
fenugrec wrote:
andrey3824 wrote:
and / or make two requests instead of one (as in a scanner).


Have you tried sending the "nc" command twice to duplicate this ?

Delivered two nc, the time between the last byte and the next request in Nisprog is 479ms. The scanner has 331ms. No response from ecu.
If not very difficult, please correct the timings in Nisprog.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 132 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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