Android/Elm327 Pcm Flash App (LS Droid Read only released) - LS1TECH - Camaro and Firebird Forum Discussion

Go Back  LS1TECH - Camaro and Firebird Forum Discussion > LS1-LS2-LS3-LS6-LS7 PERFORMANCE > PCM Diagnostics & Tuning
Reload this Page >

Android/Elm327 Pcm Flash App (LS Droid Read only released)

Notices
PCM Diagnostics & Tuning HP Tuners | Diablo | Pantera EFI
Sponsored by:
Sponsored by:

Android/Elm327 Pcm Flash App (LS Droid Read only released)

Old 11-20-2017, 11:47 PM
  #1  
TECH Apprentice
Thread Starter
 
Join Date: Oct 2017
Posts: 321
Default LS Droid Android/Elm based flashing (Write testing in progress)

Hello, I'm posting this here looking for input, suggestions, general feed back and to see if anyone is interested in helping further develop some features of this app.

The problem I see is a pcm that's almost 20 years old is still any thing but simple or cheap to be able to do any thing to. Given the advancements in technology I'm surprised that we haven't seen more open source tuning products like a lot of other car brands have seen.

Cost to flash pcm using open source tools - $290~ for the AVT interface the follow tools use..... success varies
About 3 years ago dimented24x7 released his flash tool in this thread. https://www.thirdgen.org/forums/diy-prom/696609-houston-we-have-reflash.html
About 4 years ago Pcmhacking released this tool https://pcmhacking.net/forums/viewto...​​

Commercial Tools to flash and tune - $600-$1000
Efi Live
Hp Tuners

Hand Held Tuners - $250-$500
Basic Performance/Economy tunes that are 50 state legal.

Android Flash Proof of Concept
About 9 months ago I started tinkering with Android and I was amazed at how much processing power is packed into a modern smart phone. Well a few months back I was having a conversion with a couple of guys about another smart phone app I created and they were like you should take this to the next level.....how cool it would be to be able to "Mod" your car with a smart phone. I wrote off the comments as a couple of drunks rambling but as time wore on the idea was nagging at the back of my head....what if it was possible. I'm a facts person, meaning until I can see proof something can't be done or you can mathematically prove it then it's still possible. So I decided to see if my initial thoughts that's of it being ludicrous to think a phone could flash a pcm with any type of Elm Bluetooth dongle was even possible. I sat down and spent about 3 or 4 hours tinkering with things and data logging some commercial flash tools. I then wrote some macros to mimic the commands and headers that were being used and "played" the macros back while reading the pcm's log in another window and I about fell out of my chair when I was able to change 1 digit of the pcm's serial number. That was enough to make me start putting some time into trying to see just how far I could go and well....I haven't reached the limit yet.

While I do not have any thing as far along as the "Black Box Flash"(dimented24x7) or the "LS1 Flash Tool" (by Antus over at pcmhacking.net) I do have a tool that's under development and has a couple of functions that are working. What makes this unique is it's being done on an Android phone using a Bluetooth dongle with a relatively cheap hardware interface(ObdLink MX that emulates the Elm327 protocol.)

There are 2 breeds of Pcm's this app is being developed for; the 99-02 512kb pcm (also know as the 0411 PCM) and the 1mb version that looks identical to the 0411 pcm that was used from 2003-2007.
Currently the app can do several things safely having been tested on more then a dozen pcm's with out any issues.
  1. Read the Pcm Operating system ID number, the current calibration of the OS, the Bcc code and the Seed.
  2. The app can automatically calculate the Key to unlock the PCM( provided the Pcm is not tuner locked) and is capable of unlock the Pcm making Read/Write possible
  3. Allow manual Key entry to unlock the Pcm if the app is unable to automatically calculate the correct key based off the Seed.
  4. Read the Vin number from the Pcm AND can change the Vin number to any thing you want regardless if it's a valid Vin for any car ever built.
  5. Read the Serial Number of the Flash chip AND can change the serial number. The 99-02 Pcm serial number can be changed permanently while the 03-07 Serial Number is only changed until the Pcm is rebooted.
  6. Brute force Key cracking, this allows you to unlock tuner locked Pcm's. It's slow but that's due to security built into the pcm and the fact there are 65,000 possible keys to try.

Now some of the features that I am working out all the details on before implementing in the app.....
  1. A brute force Key cracking method (very early stage and has been added into a version of the app), this would allow you to crack any Key used on tuner locked Pcm's. Now Working
  2. Change the Key used to unlock the Pcm, for example return a tuner locked Pcm's Key back to the original setting.
  3. Change the BCC code
  4. Change Vats/Pass key code

What Needs to be done still......
  1. Create or find bootloaders that can be used to Read and Write a .bin file legally.
  2. Setup reading/Writing with an external file in a .bin format. (Have already worked out reading/writing to text files)
  3. Determine if it would be more beneficial to design an interface that allows basic changes such as Security removal, disable certain sensors & codes(for off road use only of course), change gear ratio and tire size, alter ship points, speed limiter, rev limiter and any other basic feature you could think of rather then a full flash.

Here's a short demo video of some of the working features of the app, I started working on this about 2 months ago and while it's by no means a priority it's come a long ways.

https://www.youtube.com/watch?v=b1Uz...ature=youtu.be


StatisticallyI have been very successful thus far with out any pcm damage. I started this with 12 pcm's and have only bricked 1 so far and that was done while trying to make the serial number change permanent on the 1mb Pcm. Nothing else I have done so far has caused any damage to the pcm or the calibration file on the pcm.


Depending on what the app ends up being able to do this will likely end up being a free or very inexpensive with likely no vehicle limits like hand held tuners. It's hard to think that a Pcm thats been around for almost 20 years is still so costly to make any changes too yet brand new cell phones are being cracked and rooted within days of them being released.

Thoughts, questions, comments or suggestions welcome......

Thanks

Last edited by PeteS160; 12-18-2018 at 12:18 PM. Reason: title update
PeteS160 is offline  
Old 11-22-2017, 10:48 PM
  #2  
TECH Junkie
iTrader: (1)
 
Join Date: Sep 2004
Location: Stockbridge GA
Posts: 3,006
Default

You should collaborate with the HPT/EFI guys to allow their software to function with Android/Linux. Don't re-invent the wheel, just make it roll smoother for everybody. An Android capable full tuning suite would be a moneymaker for everyone.
gametech is offline  
Old 11-24-2017, 09:38 AM
  #3  
LS1Tech Sponsor
 
Join Date: Nov 2008
Location: Santa Ana, CA. USA
Posts: 2,155
Default Cell Interface GUI

Hi Pete, your GUI could be made more simple.

I will help if you ask ?

Lance
pantera_efi is offline  
Old 11-24-2017, 09:49 AM
  #4  
TECH Senior Member
iTrader: (96)
 
01ssreda4's Avatar
 
Join Date: Aug 2007
Location: Turnin' Wrenches Infractions: 005
Posts: 24,133
Default

He doesnt want advice Lance, he wants to be told how wonderful his idea is. Notice the complete lack of enthusiasm gained here. See, I was right, and Im not afraid to admit it.
01ssreda4 is offline  
Old 11-24-2017, 11:42 AM
  #5  
10 Second Club
iTrader: (7)
 
HioSSilver's Avatar
 
Join Date: Aug 2002
Location: Winchester, VA
Posts: 4,808
Default

Be great if you could tune and logg from your phone.
HioSSilver is online now  
Old 11-24-2017, 03:11 PM
  #6  
TECH Senior Member
iTrader: (96)
 
01ssreda4's Avatar
 
Join Date: Aug 2007
Location: Turnin' Wrenches Infractions: 005
Posts: 24,133
Default

Not sure phones have that much computing data yet......
01ssreda4 is offline  
Old 11-24-2017, 08:30 PM
  #7  
TECH Apprentice
Thread Starter
 
Join Date: Oct 2017
Posts: 321
Default

Originally Posted by 01ssreda4 View Post
He doesnt want advice Lance, he wants to be told how wonderful his idea is. Notice the complete lack of enthusiasm gained here. See, I was right, and Im not afraid to admit it.
Your in the wrong thread, this is not about tow/haul.
PeteS160 is offline  
Old 11-24-2017, 09:22 PM
  #8  
TECH Senior Member
 
Join Date: Jun 2016
Location: Central Cal.
Posts: 8,661
Default

Not a single post above mentions Tow/Haul. Are YOU in the right thread?
G Atsma is online now  
Old 11-24-2017, 09:25 PM
  #9  
TECH Apprentice
Thread Starter
 
Join Date: Oct 2017
Posts: 321
Default

Originally Posted by 01ssreda4 View Post
Not sure phones have that much computing data yet......
To keep this thread on track he's some comparison data for how far phones have come and what's actually required using commerical tuning suites like Hp Tuners or Efi Live.

Samsung S7
Chipset Exynos 8890 -Class, Octa-core processor
CPU Octa-core (4 physical cores @2.3 GHz ) +(4 physical [email protected] GHz)
GPU Mali-T880 MP12 @ 2560x1440 resolution
MEMORY 4 GB RAM

Hp Tuners minimum requirements
HP Tuners VCM Suite Windows 7 Minimum system requirments
  • 1 GH CPU
  • 512 Mb RAM
  • USB 1.1


EfiLive minimum requirements
Configuration Recommended Minimum
1 CPU Pentium class @ 500MHz
Memory min 32Mb
USB 1.1

Usb 1.1
USB 1.1 maximum transfer rate of 12Mbits/second.

Bluetooth
Bluetooth 4.0 speeds are similar to Bluetooth 3.0 of up to 25Mbps.

SD Card Storage:
Using the S7 as an example the phones will accept up to 256 gig XC-1 Sd card
Read speeds of 80 mbps in real world testing
Write speeds of 40Mbps in real world testing

Common 5400 RPM HDD found in laptop computers
Partition to partition write speed is around 19 MB/sec
An average IDE drive @5400 Rpm should manage a sustained transfer rate of about 50-60 MB/s to another drive that's similar




Now that you've had a chance to glance over the comparisons it's pretty easy to see that phones have advanced well beyond even minimum requirements of "Modern" turning software. I can think of a few reasons that the big players have stayed out of the mobile market and the biggest one that comes to mind is change. Companies have developed a product that has worked well for years using a PC type computer. They only continue to add to the existing software that they have already developed and since it requires no additional cost to create new software they are unwilling to advance.

Now I'm not by any means advocating that a full blown tuning suit on a phone would be in any way superior or even on the same level as a Pc based program. I would take the PC any day of the week for easy of use working on a bin file. However reading and writing that bin file with a laptop is cumbersome and a bit risky a lot of the time. Laptops simply are not designed for use in a vehicle, so reading or flashing a bin can be a bit of a chore especially if the file will be modified on a different computer and need to be transferred by flash drive or by email.


Some Drawbacks of the laptop method currently in use

If you change gear ratio or even tire size.....currently your only option if to drag out the laptop and reflash the calibration unless you have a vehicle locked hand held tuner.
Change the speed/Rpm limiter......your dragging out the laptop
Change shift points....yep you'll need that laptop
Start your Ls swapped car for the 1st time.....if the pcm wasn't bench flashed... yup you'll be needing that laptop
Disable downstream o2 codes after your cat delete......damn that laptop gets dragged around a lot.
And when you do turn on your laptop you'll find out windows has to finish update's before you can even use the damn thing. Now you need to make sure the laptop battery is changed enough for you to read the pcm, make the changes you need and then reflash the calibration....... and you also need to make sure you tuned the key off after reading the pcm or the car's battery is likely to go dead while your re-flashing the pcm.
PeteS160 is offline  
Old 11-24-2017, 09:27 PM
  #10  
TECH Apprentice
Thread Starter
 
Join Date: Oct 2017
Posts: 321
Default

Originally Posted by G Atsma View Post
Not a single post above mentions Tow/Haul. Are YOU in the right thread?
Same guy was bashing a free app I posted in another thread.
PeteS160 is offline  
Old 11-24-2017, 09:38 PM
  #11  
TECH Senior Member
 
Join Date: Jun 2016
Location: Central Cal.
Posts: 8,661
Default

OK, but along with the bashing were some good questions and advice from some very knowledgeable people on how to make it apply to the audience in this forum. You want people to use what you offer, LISTEN to those trying to help you! Don't go all superior on us here! Lance Nist of Pantera, for example, has been around this stuff (including what you do) longer than many of us have been alive. Don't shine him on. He could tell you a thing or two. Accept the feedback people offer, and you will move your product.
G Atsma is online now  
Old 11-24-2017, 09:40 PM
  #12  
TECH Senior Member
iTrader: (96)
 
01ssreda4's Avatar
 
Join Date: Aug 2007
Location: Turnin' Wrenches Infractions: 005
Posts: 24,133
Default

Originally Posted by PeteS160 View Post
Your in the wrong thread, this is not about tow/haul.
Sorry I thought this was a copy and paste. After reading it my honest opinion is you are sorta in the same boat as the other thread. I'm not trying to be a negative Nancy but I'm a realistic thinker. Very very few people need to read or change a vin. When it can data log Or actually alter the pcm file then you'll be on to something. Even if it's simple like tire swap changes or disabling SES lights permanently. Until then it sounds like a useful gadget that very few people will actually need. And again, I don't think phones can process that type of information enough to be useful. IF they could, suites like hptuners would already have it developed don't ya think?
01ssreda4 is offline  
Old 11-24-2017, 09:51 PM
  #13  
TECH Apprentice
Thread Starter
 
Join Date: Oct 2017
Posts: 321
Default

Originally Posted by gametech View Post
You should collaborate with the HPT/EFI guys to allow their software to function with Android/Linux. Don't re-invent the wheel, just make it roll smoother for everybody. An Android capable full tuning suite would be a moneymaker for everyone.
It's been asked on both forums a number of times in the past and both companies have made it clear they were not really interested. It'll be more likely you will be able to run Hp Tuners/Efi Live using windows ARM on an Android Device. But that still doesn't overcome the licensing issue. Well.....technically I can already overcome the licensing on either but it's the point that a computer that's nearly 20 years old is still restricted the same way it was when it was the hottest thing on the market.

There have been a number of people that have created solutions but never bothered to finish them or expand the programs capabilities past a single pcm. As they people walked away or lost interest in this the project rather then opensource the work they've done they choose to stash it away making others start from scratch rather then letting someone else build in their work.

If you look at the import crowed they have a number of opensource or very inexpensive tuning/flashing options and that's because a lot of them worked together to get to where they are today. I have spoken with 3 individuals in the last couple of months all who are more then capable of creating Read/Write programs but they don't have the desire to work on things like this any more. The hardware is no longer the limiting factor as is was a number of years ago, there are other much cheaper options then the AVT interface that has been proven to work . I have proof of that on my desk, I have an unbranded interface of questionable build quality that's able to flash 512K or 1mb pcm's....and it cost less then $10 bucks in parts to build buying from websites like Mouser or Dig-key. Yet once again.... the software it use's it unstable and buggy with no support.
PeteS160 is offline  
Old 11-24-2017, 09:55 PM
  #14  
TECH Apprentice
Thread Starter
 
Join Date: Oct 2017
Posts: 321
Default

Originally Posted by G Atsma View Post
OK, but along with the bashing were some good questions and advice from some very knowledgeable people on how to make it apply to the audience in this forum. You want people to use what you offer, LISTEN to those trying to help you! Don't go all superior on us here! Lance Nist of Pantera, for example, has been around this stuff (including what you do) longer than many of us have been alive. Don't shine him on. He could tell you a thing or two. Accept the feedback people offer, and you will move your product.
I messaged him before I posted a single response in this thread.

I'm looking for input from people that can see the potential of what I'm working on. In my app's current state it's going to have a very few that understand what i'm doing but may be able to take it to the next level.
PeteS160 is offline  
Old 11-24-2017, 10:01 PM
  #15  
TECH Junkie
iTrader: (1)
 
Join Date: Sep 2004
Location: Stockbridge GA
Posts: 3,006
Default

Originally Posted by PeteS160 View Post
It's been asked on both forums a number of times in the past and both companies have made it clear they were not really interested. It'll be more likely you will be able to run Hp Tuners/Efi Live using windows ARM on an Android Device. But that still doesn't overcome the licensing issue. Well.....technically I can already overcome the licensing on either but it's the point that a computer that's nearly 20 years old is still restricted the same way it was when it was the hottest thing on the market.

There have been a number of people that have created solutions but never bothered to finish them or expand the programs capabilities past a single pcm. As they people walked away or lost interest in this the project rather then opensource the work they've done they choose to stash it away making others start from scratch rather then letting someone else build in their work.

If you look at the import crowed they have a number of opensource or very inexpensive tuning/flashing options and that's because a lot of them worked together to get to where they are today. I have spoken with 3 individuals in the last couple of months all who are more then capable of creating Read/Write programs but they don't have the desire to work on things like this any more. The hardware is no longer the limiting factor as is was a number of years ago, there are other much cheaper options then the AVT interface that has been proven to work . I have proof of that on my desk, I have an unbranded interface of questionable build quality that's able to flash 512K or 1mb pcm's....and it cost less then $10 bucks in parts to build buying from websites like Mouser or Dig-key. Yet once again.... the software it use's it unstable and buggy with no support.
Your explanation doesn't really surprise me. However, it would be awesome to do normal full tuning at the desktop, then be able to do flashes and logging with the cellphone. I suppose it does make sense that paid tuning software would be kept away from open source platforms, as that would probably negate their ability to enforce licensing.
gametech is offline  
Old 11-24-2017, 10:30 PM
  #16  
TECH Apprentice
Thread Starter
 
Join Date: Oct 2017
Posts: 321
Default

Originally Posted by 01ssreda4 View Post
Sorry I thought this was a copy and paste. After reading it my honest opinion is you are sorta in the same boat as the other thread. I'm not trying to be a negative Nancy but I'm a realistic thinker. Very very few people need to read or change a vin. When it can data log Or actually alter the pcm file then you'll be on to something. Even if it's simple like tire swap changes or disabling SES lights permanently. Until then it sounds like a useful gadget that very few people will actually need. And again, I don't think phones can process that type of information enough to be useful. IF they could, suites like hptuners would already have it developed don't ya think?
It's not the intent of the app but currently it can circumvent Vin number and Serial number Pcm licensing used by both big tuning companies.......but your right it's not like any one's ever tried to save a buck licensing a pcm.

The app IS writing to the pcm even just changing the vin number or serial number. I'm using block write mode and writing to the the pcm's NvRam using mode 28 to silence the bus, mode 27 to unlock the pcm and mode 34 to send the data being altered to the physical address the data is stored in the NvRam , when the apps done writing it reboots the pcm and the changes made to the NvRam are loaded onto the flash chip making the changes no different then if it had just as if it had been done as a calibration only flash. The difference between this method and a calibration flash is you can plug pull while writing to the NvRam with no damage to the pcm or any of the data contained on the pcm's flash chip making it much safer for the pcm while I was working out a Read/Write method using Android W/Bluetooth dongle.

PeteS160 is offline  
Old 11-24-2017, 11:30 PM
  #17  
TECH Junkie
iTrader: (1)
 
Join Date: Sep 2004
Location: Stockbridge GA
Posts: 3,006
Default

Just a thought, but I currently have Android radios in 2 of my cars, and have played with ELM bluetooth adapters. It would be awesome to have tuning capability utilizing my in-dash stereo. This would be even more convenient than using a phone.
gametech is offline  
Old 11-25-2017, 12:05 AM
  #18  
TECH Apprentice
Thread Starter
 
Join Date: Oct 2017
Posts: 321
Default

Originally Posted by gametech View Post
Just a thought, but I currently have Android radios in 2 of my cars, and have played with ELM bluetooth adapters. It would be awesome to have tuning capability utilizing my in-dash stereo. This would be even more convenient than using a phone.
That is the exact thing that started the conversation for android based pcm flashing. The app I have does work on android car radios but the display doesn't scale real well since it's setup for a portrait display currently. I had considered also writing a data logging app that could run on an android head unit but given the amount of apps like torque in the playstore it just didn't seem like it would be all that useful. I personally can't stand app's like torque simply because of the display. I prefer commercial scan tool type data feeds but that's because it's what I've used in my line of work for the last 20 years.

Is there actually a need for an app that's only focus is data logging for tuning purposes?
PeteS160 is offline  
Old 11-25-2017, 08:49 AM
  #19  
TECH Senior Member
iTrader: (96)
 
01ssreda4's Avatar
 
Join Date: Aug 2007
Location: Turnin' Wrenches Infractions: 005
Posts: 24,133
Default

Originally Posted by gametech View Post
Your explanation doesn't really surprise me. However, it would be awesome to do normal full tuning at the desktop, then be able to do flashes and logging with the cellphone. I suppose it does make sense that paid tuning software would be kept away from open source platforms, as that would probably negate their ability to enforce licensing.
Flashes and logging from a phone? Sounds great but my phone rarely runs any apps without glitching in some form or fashion. If you can't run facebook without ******* up, I'm not using you to tune my cars PCM. Plain and simple.
01ssreda4 is offline  
Old 11-25-2017, 10:22 AM
  #20  
11 Second Club
 
Join Date: Dec 2016
Posts: 499
Default

Get rid of your shitty Walmart phone. LMAO.
qweedqwag is offline  

Thread Tools
Search this Thread
Quick Reply: Android/Elm327 Pcm Flash App (LS Droid Read only released)


About Us Archive Advertising Cookie Policy Privacy Statement Terms of Service

© 2018 MH Sub I, LLC dba Internet Brands

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
 
  • Ask a Question
    Get answers from community experts
Question Title:
Description:
Your question will be posted in: