|
RomRaider
Documentation
Community
Developers
|
|
Page 1 of 1
|
[ 12 posts ] |
|
| Author |
Message |
|
Nii-Saan
|
Post subject: CANBUS rom dumping tool. [Source included] Posted: Mon Jul 05, 2021 12:19 am |
|
 |
| Newbie |
Joined: Fri Jul 02, 2021 5:37 am Posts: 23
|
So @Pytrex has been asking me for some help on the CANBUS side of Nissan things. I wrote a program, looked through this forum for the last few days or so. But I currently have a non-working bench setup Just no communication on the 2007 Altima ECU I have, or any of the other CANBUS ECUs I normally bench flash, I am thinking its an issue with my dupont cables. So if anyone has an OP2 and a car from 2007ish to 2013ish would do me a solid and try and communicate using the app, it would be greatly appreciated if you are feeling bold try dumping the rom. I read through the log files that were posted in a couple of the threads, and from my understanding doesn't require a security context to read from anywhere in the rom, so it should be setup to dump 1mb roms currently I haven't quite got around to adding the other sizes, but that's next on the list. I will be releasing the software open source here as soon as I can verify I get good reads and will be working on writing afterwards. Lets get these CANBUS ECUs reading and writing. 
Last edited by Nii-Saan on Wed Jul 21, 2021 6:19 am, edited 4 times in total.
|
|
| Top |
|
 |
|
Nii-Saan
|
Post subject: Re: Need Help Testing CAN dumping program. (Lack of nissan) Posted: Tue Jul 06, 2021 7:24 am |
|
 |
| Newbie |
Joined: Fri Jul 02, 2021 5:37 am Posts: 23
|
I managed to get 1mb roms reading, but its incredibly slow. Takes about 30 minutes to dump a 1mb rom. I have tried every possible way I could think to speed up the read time, I'm not sure if its how I wrote it, or if the ECU is just slow to respond to bigger SID23 commands. I tried making the loop run faster, lowering timeouts, etc. If you want to give it a try; currently the only processors setup to dump are 1mb files. you need a OP2 or other j2534 device. I'll finish up adding the other canbus based processors for dumping then move on to working on writing. Lets get these nissans rolling. 
You do not have the required permissions to view the files attached to this post.
|
|
| Top |
|
 |
|
pirelli2006
|
Post subject: Re: CANBUS Nissan Dumping Posted: Tue Jul 06, 2021 9:14 am |
|
 |
| Experienced |
Joined: Tue Apr 03, 2018 6:56 am Posts: 124
|
|
kaspersky refers to the VHO Trojan virus: Trojan.MSIL.Staser.gen
|
|
| Top |
|
 |
|
Nissan1225
|
Post subject: Re: Need Help Testing CAN dumping program. (Lack of nissan) Posted: Tue Jul 06, 2021 9:39 am |
|
 |
| Newbie |
Joined: Sun Jan 01, 2017 6:17 pm Posts: 22
|
Nii-Saan wrote: I managed to get 1mb roms reading, but its incredibly slow. Takes about 30 minutes to dump a 1mb rom. I have tried every possible way I could think to speed up the read time, I'm not sure if its how I wrote it, or if the ECU is just slow to respond to bigger SID23 commands. I tried making the loop run faster, lowering timeouts, etc. If you want to give it a try; currently the only processors setup to dump are 1mb files. you need a OP2 or other j2534 device. I'll finish up adding the other canbus based processors for dumping then move on to working on writing. Lets get these nissans rolling.  You've definitely got some optimization to do, a full read on 1mb ecu should only take you about 3-4 minutes. Write (and read for some) process also changes once you get to the 2mb stuff.
|
|
| Top |
|
 |
|
Nii-Saan
|
Post subject: Re: CANBUS Nissan Dumping Posted: Tue Jul 06, 2021 5:30 pm |
|
 |
| Newbie |
Joined: Fri Jul 02, 2021 5:37 am Posts: 23
|
pirelli2006 wrote: kaspersky refers to the VHO Trojan virus: Trojan.MSIL.Staser.gen The program is not obfuscated, take a look for yourself.
|
|
| Top |
|
 |
|
Nii-Saan
|
Post subject: Re: Need Help Testing CAN dumping program. (Lack of nissan) Posted: Tue Jul 06, 2021 5:36 pm |
|
 |
| Newbie |
Joined: Fri Jul 02, 2021 5:37 am Posts: 23
|
Nissan1225 wrote: Nii-Saan wrote: I managed to get 1mb roms reading, but its incredibly slow. Takes about 30 minutes to dump a 1mb rom. I have tried every possible way I could think to speed up the read time, I'm not sure if its how I wrote it, or if the ECU is just slow to respond to bigger SID23 commands. I tried making the loop run faster, lowering timeouts, etc. If you want to give it a try; currently the only processors setup to dump are 1mb files. you need a OP2 or other j2534 device. I'll finish up adding the other canbus based processors for dumping then move on to working on writing. Lets get these nissans rolling. You've definitely got some optimization to do, a full read on 1mb ecu should only take you about 3-4 minutes. Write (and read for some) process also changes once you get to the 2mb stuff. I tested today with a 1.5mb file, and it read in about 5 minutes using the same methods. The difference i noticed were that the 1.5mb ecus were much much faster to read, as they just responded on the first SID23 message vs the 1mb ecu im using requiring 3 messages before i get the proper data back. (The echo, the start of message, then the actual data) Not sure if its just this altima ecu it also could be a bit faster if I were to read full sized dumps because iirc the max you can read is 63 bytes, and i am reading into an even package so we don't have to have an uneven sized read at the end. But thanks for the tip, ill dig deeper into it to try and optimize 1mb again.
|
|
| Top |
|
 |
|
Nii-Saan
|
Post subject: Re: CANBUS Nissan Dumping Posted: Wed Jul 07, 2021 11:01 pm |
|
 |
| Newbie |
Joined: Fri Jul 02, 2021 5:37 am Posts: 23
|
https://github.com/Nii-Saan/Nii-Saan-Can-UtilsSource posted. I just started working on writing this ecu, after going over a few threads. Looking at the back and forth between a33b and fenugrec. I am using a33bs bruteforce method, and haven't gone beyond that. I can get ecus erasing, and i believe the request transfer exit is working correctly. Want to help send a PR.
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: CANBUS Nissan Dumping Posted: Thu Jul 08, 2021 6:38 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
Nii-Saan wrote: https://github.com/Nii-Saan/Nii-Saan-Can-Utils Source posted. Awesome, glad to see this.
_________________ 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 |
|
 |
|
Nii-Saan
|
Post subject: Re: CANBUS Nissan Dumping Posted: Fri Jul 09, 2021 3:15 am |
|
 |
| Newbie |
Joined: Fri Jul 02, 2021 5:37 am Posts: 23
|
fenugrec wrote: Nii-Saan wrote: https://github.com/Nii-Saan/Nii-Saan-Can-Utils Source posted. Awesome, glad to see this. Thanks fenugrec, the last bit it needs to be able to write is figuring out how to do the SID 34 transfer because it's non standard. Generally. Mode 34 is setup where you set block sizes, and address and length of writing then use sid 36. So I'm confused with it.
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: CANBUS Nissan Dumping Posted: Fri Jul 09, 2021 10:49 am |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
Nii-Saan wrote: SID 34 transfer because it's non standard. You've seen the full CAN reflash log posted here somewhere, right ? It's non-standard but fairly self-explanatory as I recall.
_________________ 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: Reading/Writing CANBUS Roms Posted: Fri Jul 09, 2021 11:55 am |
|
 |
| RomRaider Developer |
Joined: Wed May 20, 2009 9:49 pm Posts: 7314 Location: Canada eh!
|
|
BTW, the next release of RR with CAN logging support will have a CLI tool that reads and writes over CAN.
|
|
| Top |
|
 |
|
Nii-Saan
|
Post subject: Re: Reading/Writing CANBUS Roms Posted: Fri Jul 09, 2021 3:20 pm |
|
 |
| Newbie |
Joined: Fri Jul 02, 2021 5:37 am Posts: 23
|
dschultz wrote: BTW, the next release of RR with CAN logging support will have a CLI tool that reads and writes over CAN. Reads and writes can roms? That's great news and would have saved me a few days of working on this
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 12 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 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
|
|