|
RomRaider
Documentation
Community
Developers
|
| Author |
Message |
|
gabedude
|
Post subject: Posted: Tue Feb 27, 2007 4:41 pm |
|
 |
| RomRaider Developer |
 |
Joined: Tue Jan 23, 2007 5:11 pm Posts: 966 Location: Hillsboro, Oregon
|
http://java.sun.com/j2se/1.3/docs/guide ... C.doc.html
Hmm, kinda like COM. I know that crap too well. Well, it would be something new to learn, so I'd do the command line stuff first (talking to the flashing class) and then do the JNI (or someone else would) that talks to the flashing class as well. You could then have a command line flasher as well as part of the build. That way, if there are changes needed in the flash code, we just change the flashing class and the command line flasher as well as the JNI interface both are built with the change in it.
|
|
| Top |
|
 |
|
gabedude
|
Post subject: Posted: Tue Feb 27, 2007 4:46 pm |
|
 |
| RomRaider Developer |
 |
Joined: Tue Jan 23, 2007 5:11 pm Posts: 966 Location: Hillsboro, Oregon
|
kascade wrote: surely a JNI solution is the best solution? i don't think anyone here has the sort of experience or knowledge that colby has built up to maintain a java port, let alone add support for new ecus to it. and i don't believe anyone wants to be porting every new release that he puts out. surely a jni wrapper around his dll would be easier to maintain, and give us (almost) free support for the latest ecu versions each time he upgrades.
porting to java will be a world of pain for little gain. my 2cents anyway..
Totally agree. I can get rid of his MFC stuff, replacing it with STL stuff (works better than MFC in the GCC and newer MS compilers anyway), feed it back to him (hopefully he would abandon using MFC, except in MS only .cpp files) and we could just drag and drop the class into the build, make the installer, makes sure it builds on windows, linux, macos, freebsd, etc). You can use the JNI wrapper and a command line flasher utility that way. Would be easy to maintain the flash code as long as colby is willing to do this with us.
|
|
| Top |
|
 |
|
drees
|
Post subject: Posted: Wed Feb 28, 2007 3:07 am |
|
 |
| RomRaider Developer |
 |
Joined: Thu Mar 23, 2006 5:21 am Posts: 454 Location: San Diego, CA
|
|
OK, here's the plan then:
1. gabedude will port flashing code from MFC to something that compiles with gcc/g++ and is cross platform (Windows, Linux, Mac). Command line is OK for first iteration to prove proof of concept.
2. Define API and port flasher to JNI.
3. At that point, we can figure out whether or not it's worth porting completely to Java.
Ideally we could work on a common flashing core interface w/Colby as kascade suggests. Has anyone talked to to him about doing this?
|
|
| Top |
|
 |
|
gabedude
|
Post subject: Posted: Wed Feb 28, 2007 9:40 am |
|
 |
| RomRaider Developer |
 |
Joined: Tue Jan 23, 2007 5:11 pm Posts: 966 Location: Hillsboro, Oregon
|
drees wrote: OK, here's the plan then:
1. gabedude will port flashing code from MFC to something that compiles with gcc/g++ and is cross platform (Windows, Linux, Mac). Command line is OK for first iteration to prove proof of concept.
2. Define API and port flasher to JNI.
3. At that point, we can figure out whether or not it's worth porting completely to Java.
Ideally we could work on a common flashing core interface w/Colby as kascade suggests. Has anyone talked to to him about doing this?
I'm down for my portion. Got my logs all the way to work this morning, so I am confident that the driver is up to snuff to do the flashing part.  I Pm'd colby, but since he has never spoken with me, he prolly thinks I'm just some nut. 
|
|
| Top |
|
 |
|
gabedude
|
Post subject: Posted: Wed Feb 28, 2007 11:28 pm |
|
 |
| RomRaider Developer |
 |
Joined: Tue Jan 23, 2007 5:11 pm Posts: 966 Location: Hillsboro, Oregon
|
I am ready to start this guys. I have a dev env setup, tatrix drivers working, and everything. Waitin on source. 
|
|
| Top |
|
 |
|
drees
|
Post subject: Posted: Thu Mar 01, 2007 3:15 am |
|
 |
| RomRaider Developer |
 |
Joined: Thu Mar 23, 2006 5:21 am Posts: 454 Location: San Diego, CA
|
|
PM Jared if Colby doesn't get back to you.
|
|
| Top |
|
 |
|
gabedude
|
Post subject: Posted: Thu Mar 01, 2007 10:21 am |
|
 |
| RomRaider Developer |
 |
Joined: Tue Jan 23, 2007 5:11 pm Posts: 966 Location: Hillsboro, Oregon
|
drees wrote: PM Jared if Colby doesn't get back to you.
I got it now. Gonna start werkin on it tonight. 
|
|
| Top |
|
 |
|
gabedude
|
Post subject: Posted: Thu Mar 01, 2007 12:47 pm |
|
 |
| RomRaider Developer |
 |
Joined: Tue Jan 23, 2007 5:11 pm Posts: 966 Location: Hillsboro, Oregon
|
Ok, I took a little break and had a looksie at the code. Colby did a nice job of making this easily "portable". MFC is not being used much if at all (all of the routines seem to use standard C++ includes and QT stuff for the gui). I have come close to isolating the flash code. My plan is to get a port of ecuflash for linux working (and cross my fingers that i don't brick my ecu on the first test (of course I'd do a test write first.  ). Then, I will strip out the code that talks to the serial port doing the flashing and make it into its own class. I wish I had an ECU to sit on a bench and test with though. That would be ideal, but I think this is doable. Definietly too much stuff to port to java guys. There is alot of assembler and C++ mixed in here. Its easier just to modularize the flash portion with pre-processor ifdef's for the differences between OS's than to move it all to java.  Feed this module back to colby and the changes to the way his gui calls the flash routines and we will be integrated and set. Then we can write a JNI wrapper around the flashing class, and colby can use his QT gui as well with the same flashing class. I think its doable and the best/easiest way to go. 
|
|
| Top |
|
 |
|
Tgui
|
Post subject: Posted: Thu Mar 01, 2007 2:40 pm |
|
 |
| RomRaider Developer |
Joined: Tue Jul 11, 2006 9:25 pm Posts: 1025
|
|
| Top |
|
 |
|
qoncept
|
Post subject: Posted: Thu Mar 01, 2007 3:04 pm |
|
 |
| Administrator |
 |
Joined: Fri Jan 13, 2006 12:33 pm Posts: 2079 Location: Palo, IA
|
|
We could probably get some donations together to get an ECU for you to flash with. Let me know if you'll want one.
_________________ - Jared
|
|
| Top |
|
 |
|
Tgui
|
Post subject: Posted: Thu Mar 01, 2007 3:22 pm |
|
 |
| RomRaider Developer |
Joined: Tue Jul 11, 2006 9:25 pm Posts: 1025
|
qoncept wrote: We could probably get some donations together to get an ECU for you to flash with. Let me know if you'll want one.
Ohhh a donation drive!!! Do I get a coffee cup if I donate more than $20?
I'd chip in. By the way, what do we do with the assets associated with RomRaider? Jared, do you end up keeping them with you to keep them centralized? (which I would prefer).
|
|
| Top |
|
 |
|
gabedude
|
Post subject: Posted: Thu Mar 01, 2007 3:29 pm |
|
 |
| RomRaider Developer |
 |
Joined: Tue Jan 23, 2007 5:11 pm Posts: 966 Location: Hillsboro, Oregon
|
qoncept wrote: We could probably get some donations together to get an ECU for you to flash with. Let me know if you'll want one.
Let me get the port going first and I will test the read on my ecu. If that goes well, then I will want an ECU to test flash on to ensure it does not brick it.
Thanks for adding me as a developer, BTW. 
|
|
| Top |
|
 |
|
gabedude
|
Post subject: Posted: Thu Mar 01, 2007 3:34 pm |
|
 |
| RomRaider Developer |
 |
Joined: Tue Jan 23, 2007 5:11 pm Posts: 966 Location: Hillsboro, Oregon
|
|
| Top |
|
 |
|
Tgui
|
Post subject: Posted: Thu Mar 01, 2007 6:29 pm |
|
 |
| RomRaider Developer |
Joined: Tue Jul 11, 2006 9:25 pm Posts: 1025
|
|
Jared, how does the JTable rewrite go? I'm doing lots of JTable research with my Utec proof of concept program, it should have JTable versions of the tables we currently use. You want em?
Here is one of my JTables.
You do not have the required permissions to view the files attached to this post.
|
|
| Top |
|
 |
|
Tgui
|
Post subject: Posted: Wed Mar 21, 2007 3:53 pm |
|
 |
| RomRaider Developer |
Joined: Tue Jul 11, 2006 9:25 pm Posts: 1025
|
Gabedude...
Hows all that ECU Flash stuff going? 
|
|
| Top |
|
 |
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
|
|