Results 1 to 15 of 133

Thread: Opensource LS Flashing(It's Closer Than You Think)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Fuel Injected!
    Join Date
    Mar 2013
    Posts
    1,478
    Quote Originally Posted by PeteS View Post
    Currently the hardware is pretty simple. It's 4 resistors, 1 diode and 1 optocoupler. All the magic is done in the Arduino code.
    I was almost sure you had used some cheap vpw transiever like motorola 33990 or similar auto grade one.
    It is waste of time and effort to turn the arduino in software transiever when you can hook a simple piece of hardware to do it. Not sure how stable will be in car and off the bench test. Noise might be a big stability problem if software can`t compensate. Anyway big respect for the effort. I just want to express that it might not be the most economical approach.
    VPW is 0-7 volt signal, so I guess the needed hardware is to change the 0-5 volts on the Arduino tx-rx line.
    If you want to go cheaper and software only, ditch the Arduino and link the motorola transiever with 2$ usb to ttl and find a way to control the 4x switch.

    The ELm is interesting and not the buffer but the main obstacle is that you cannot send hex data over it. You have to convert from ascii characters, and what a nightmare is to change the header.
    Attached Images Attached Images

  2. #2
    Fuel Injected!
    Join Date
    Dec 2015
    Age
    42
    Posts
    72
    Quote Originally Posted by kur4o View Post
    I

    The ELm is interesting and not the buffer but the main obstacle is that you cannot send hex data over it. You have to convert from ascii characters, and what a nightmare is to change the header.
    Buffer size is the only limit I've ever found with the elm stuff. I've read and written Vin numbers,serial numbers,BCC codes even OS segment id codes with an elm type device in Android. I actually read a bin file out over Bluetooth with my phone last night.....trust me when i say buffer size IS it's biggest drawback. Reading 192 byte blocks takes forever

    If your still stuck on the ascii to hex thing i'll give you a tip on an easy hack method I used before I learned how to change from base 10 to base16 to take care of it the conversion for me.


    Write a function that does the conversion. Here's a super easy hack method. Set your input = to an output

    0=0
    1=1
    5=5
    9=9
    A=42
    L=4C
    Q=51
    Etc.....

    Yes the statement will be huge and its 100% hack method to do this but it works.

    Store your variable
    Call the conversion function & store as a new variable
    send data from the new variable.

    Like I said it's a total hack but it'll work.


    Pm me if you'd like to discuss them elm in more depth

  3. #3
    Fuel Injected!
    Join Date
    Jun 2015
    Age
    36
    Posts
    354
    So you're keeping this under wraps...just like every other LS1 flash tool that has been done so far, except Dimented24x7's, it's all "free" until it's complete and works...then it's for sale.

    HPTuners, EFILive, Antus's flash tool...all of them started right down the exact same "Yeah let's get this done for free" path you're on right now. And all of them said "it's too complicated, I'll release it for free when it's done."

    I'm hopeful, and still willing to work on this, but won't be surprised when this comes out to be another few hundred dollar subscription, instead of a free flash tool.

  4. #4
    Fuel Injected!
    Join Date
    Dec 2015
    Age
    42
    Posts
    72
    Quote Originally Posted by Xnke View Post
    So you're keeping this under wraps...just like every other LS1 flash tool that has been done so far, except Dimented24x7's, it's all "free" until it's complete and works...then it's for sale.

    HPTuners, EFILive, Antus's flash tool...all of them started right down the exact same "Yeah let's get this done for free" path you're on right now. And all of them said "it's too complicated, I'll release it for free when it's done."

    I'm hopeful, and still willing to work on this, but won't be surprised when this comes out to be another few hundred dollar subscription, instead of a free flash tool.
    Here's some pepper to go with your salt

    https://github.com/LegacyNsfw/PcmHacks

    Publishing every thing myself and others have done that lead down this path would be well over a year of collective information. Forgive us for not having that much data formatted and laid out for others to understand right away. There are a number of people involved in this project and every one has the same goal. What makes this different is that no one person holds all the information. Loosing one of the core would seriously hurt our work BUT every thing they have done has been shared with others and WILL be made public before this is all said and done. If this goes belly up before we finish out work you can be sure at least ONE of the people involved will throw EVERYTHING online regardless of how clearly it's formatted just so that all our work will have been for nothing. The idea was that others could finish what we started if we are unable to.

    So..... no matter what happens SOMEONE WILL BE ABLE TO FINISHING THIS.

  5. #5
    Fuel Injected!
    Join Date
    Jan 2018
    Posts
    57
    If you search for my alias in the RomRaider.com forums you'll find a handful of open-source projects for Subaru, from tuning utilities to a speed-density implementation that has since been ported (by someone else) to a bunch of other Subarus besides my own, and a rev-matching patch that is still a work-in-progress but is also up on GitHub for anyone who wants it. Everything I contribute to this effort will be open source as well.

    I got involved in this effort a couple weeks ago because I bought a Corvette a few weeks ago. If you want to see the code I've written so far, it's all at the link PeteS just posted above. It's mostly just some simple dev utilities and a prototype that we're using to discuss the design of the real app, but hey... gotta start somewhere.

    There are basically three main holdups right now.

    1) The flash kernel we have now was written by a guy who can't be reached. He posts as Dimented24x7 on some other forums. His job takes him offline for long periods. We have permission to USE it, but nobody thought to ask for permission to post the source publicly before he left, and it wouldn't be right to share the source without that permission. But it works. So it will appear only in the form of a long string of bytes until he gives us his blessing to post the .asm files. (Or tell us to knock it off, in which case we'd just have to write a new one. But I don't think that's likely. And he did give us a nice reference to follow...)

    2) We want an interface that doesn't cost an arm and a leg. The proof-of-concept uses an AVT interface, but it's hard to come by and rather expensive. PeteS mentioned the Arduino project, that's got great potential. Hopefully it will be up on GitHub soon as well, but that's up to the guy who is developing it. I also just ordered a Scantools SX in hopes that we can make it work. If anyone else wants to pitch in with a better / cheaper / faster interface, that would be fantastic!

    3) The existing app needs to be rewritten for maintainability, flexibility (it's too tightly coupled to the AVT interface), and reliability. That's where I'm focusing my time.

    This will be open source when we're done. Parts might not be open source at first, but that just means that we're not done.

  6. #6
    Fuel Injected!
    Join Date
    Jun 2015
    Age
    36
    Posts
    354
    Can you use raw binary data instead of the AVT data interface? To be clearer, are you attempting to emulate the AVT852-E and are looking for less costly hardware, or are you willing to work with a direct serial translator instead?

    If so, I'll have a 1x/4x capable hardware unit posted here shortly. It'll be atmel based so you can run your current VPW implementation if you'd like, I'm putting the old design through the wringer right now to make sure it'll do what you need it to do. Also, you could simply use the Harris or Fairchild bus interface chips to do the hardware, they're discontinued but available through second-source vendors. I have been pulling them from GM body control modules, they're surface mount so you need to be good with a hotplate.

    Also the AVT interface is available directly from AVT, you can buy singles at 250ish dollars each. That's where mine came from.
    Last edited by Xnke; 02-24-2018 at 12:13 PM.

  7. #7
    Fuel Injected!
    Join Date
    Sep 2013
    Location
    Tulsa, Ok
    Age
    48
    Posts
    457
    Xnke,

    just how soon is "shortly:? :-)

    Buddrow
    If it don't fit force it, if it don't force fit f&%@ it!

  8. #8
    Fuel Injected!
    Join Date
    Jan 2018
    Posts
    57
    Quote Originally Posted by Xnke View Post
    Can you use raw binary data instead of the AVT data interface? To be clearer, are you attempting to emulate the AVT852-E and are looking for less costly hardware, or are you willing to work with a direct serial translator instead?

    If so, I'll have a 1x/4x capable hardware unit posted here shortly. It'll be atmel based so you can run your current VPW implementation if you'd like, I'm putting the old design through the wringer right now to make sure it'll do what you need it to do. Also, you could simply use the Harris or Fairchild bus interface chips to do the hardware, they're discontinued but available through second-source vendors. I have been pulling them from GM body control modules, they're surface mount so you need to be good with a hotplate.

    Also the AVT interface is available directly from AVT, you can buy singles at 250ish dollars each. That's where mine came from.
    Raw binary is fine, we're designing the next app(s) so that the raw binary payloads are totally separate from the details of the different interfaces. That should make it relatively easy to support different interfaces. Antus wrote the proof-of-concept and has an AVT, so that will probably be the first interface to work, but I'm not planning to buy one just yet. As a software developer I'd prefer the "direct serial translator" approach. But as someone who wants there to be an active community of people hacking 0411 PCMs, I really just want there to be an interface that is inexpensive and readily available. $250 could work, but that price point seems to leave a lot of room for improvement. DIY SMT isn't going to work for very many people though, so I'm not real excited about that approach.

    What do you think about getting productizing your design through service like seeedstudio.com? Or PCBs through oshpark.com, a case through shapeways.com, OBD2 connector with pigtails from Amazon, etc, etc, so anybody with a soldering iron could build one?

  9. #9
    Carb and Points!
    Join Date
    Jul 2013
    Age
    43
    Posts
    2
    Hi PeteS i would be interested in a program that just lets me change vin #s on 411 conversions,etc. since my hptuners wont let between operating systems. please pm me if you can help. i dont mind paying some if i have to for your troubles

  10. #10
    Fuel Injected!
    Join Date
    Dec 2015
    Age
    42
    Posts
    72
    If you look back a couple of posts there is a link to the Pcm Hammer and my Android app. Both are "Read Only" but both will change a vin number with out an issue.

  11. #11
    Fuel Injected!
    Join Date
    Apr 2013
    Posts
    498
    That's an amazing project. Just read the whole thread, very interesting!

    If you guys want me to add support for all this into ALDLdroid so that you can have the read/write operations and tune editing all in one Android app over Bluetooth/USB, I might be able to do that. Just hit me up at aldldroidapp at gmail.com :)
    ALDLdroid author, Android application for ALDL ECU
    https://play.google.com/store/apps/d...roux.aldldroid

    Like us on Facebook

    Visit the app's Website

  12. #12
    Fuel Injected!
    Join Date
    Dec 2015
    Age
    42
    Posts
    72
    One of the very first posts on what was required to Read or flash a PCM that I read was written by EagleMark. It's a shame he's not around to see this happen, but the trail of bread crumbs he left behind is what lead me to work on this in the first place.

    I feel privileged that I'm now able to come here today and finish his legacy. We've had read and write on the 411 for a few years now but it was costly and I know that Marks vision had something a whole lot bigger in mind...

    So this one's for Mark - I used an Android phone and a $35 Bluetooth device to 100% clone a P59 tonight, this should make every one smile a bit..


  13. #13
    Administrator
    Join Date
    May 2011
    Location
    Lakes Region, NH
    Age
    54
    Posts
    3,870
    Hi Pete,

    I believe it's fair to say Mark would really appreciate this. It's going to be a great tool. It's amazing how many times a project like this has started only to die or turn into a for-profit solution over the years.

    Thank you very much.

    Also wanted to note, with humor, the auto suggest options at 2:12.

Similar Threads

  1. GM SPS Bench Flashing
    By MYLTWON in forum OBDII Tuning
    Replies: 13
    Last Post: 07-28-2019, 06:11 AM
  2. 1228747 flashing CEL
    By LilJayV10 in forum GM EFI Systems
    Replies: 8
    Last Post: 05-13-2016, 02:52 AM
  3. lt1 flashing not going to happen?
    By rytari in forum GM EFI Systems
    Replies: 5
    Last Post: 10-08-2015, 04:25 AM
  4. Bench Flashing OBD II LT1??
    By dave w in forum OBDII Tuning
    Replies: 4
    Last Post: 01-13-2014, 03:38 AM
  5. Getting closer...
    By JeepsAndGuns in forum Gear Heads
    Replies: 15
    Last Post: 03-13-2012, 02:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •