Notices
ECU Flash

Mitsulogger for iPhone??

Thread Tools
 
Search this Thread
 
Old Nov 21, 2009 | 11:15 AM
  #1  
MalibuJack's Avatar
Thread Starter
EvoM Guru
20 Year Member
iTrader: (5)
 
Joined: Feb 2003
Posts: 10,572
Likes: 14
From: Royse City, TX
Mitsulogger for iPhone??

I've never been able to afford a Mac, however I recently had become motivated to build a VMWare "Hackintosh" until I can finally buy one.

I have since updated the VMWare image, and installed the iPhone SDK and XCode.....

Anyway, About a year ago, I built a USB Host adapter for the iPhone, I recently got it to recognize the Openport 1.3u cable (actually the FTDI KKL cable which shares similar hardware) and a Thumb Drive (though the O/S won't do anything with it)

What does this mean, well, it means that I am able to read/write serial data through the accessory port API's on the iPhone 3GS (It doesn't work on a 2G Iphone and I don't own a 3G second gen or any version of the touch)

I've done some very very very rudimentary work using the iPhone developer tools on a Hackintosh in VMware, I'm not much of a C++ programmer so learning Objective C and getting up to speed and doing anything productive just hasn't been a fast process.

My first experiments have been somewhat encouraging, I've been able to set the baud rate, initialize the interface, and read a few bytes from a 2005 Evo ECU on a bench harness.

In reality this doesn't mean much, I had to use some undocumented API's to set the unusual baud rates required, so the odds of an app like this being approved for the app store are pretty low.

However this is a MAJOR step if there is any real market/need/desire for this stuff anymore.
Reply
Old Nov 21, 2009 | 11:23 AM
  #2  
MalibuJack's Avatar
Thread Starter
EvoM Guru
20 Year Member
iTrader: (5)
 
Joined: Feb 2003
Posts: 10,572
Likes: 14
From: Royse City, TX
http://pargon.nl/?p=6

Thats similar to the original adapter I put together, its original purpose was the allow sync to a physical serial port.. I had success at that time using the serial port and communicating to a host system (FROM THE iPHONE using a jailbroken phone and communicating with the host system using a serial terminal app for the jailbroken iphone)

If you notice the dock connector doesn't appear to have a complete serial port implementation, so you have to init the ECU at 5baud then switch to the communication baud rate.

These are nonstandard rates and therefore "Difficult" to convince the iPhone to do for you.

Last edited by MalibuJack; Nov 21, 2009 at 11:25 AM.
Reply
Old Nov 21, 2009 | 12:27 PM
  #3  
donour's Avatar
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Very cool jack. I'm interested of course.

d
Reply
Old Nov 21, 2009 | 12:40 PM
  #4  
jroller's Avatar
Evolving Member
iTrader: (1)
 
Joined: May 2006
Posts: 334
Likes: 0
From: San Diego
Originally Posted by MalibuJack
I've never been able to afford a Mac, however I recently had become motivated to build a VMWare "Hackintosh" until I can finally buy one.

I have since updated the VMWare image, and installed the iPhone SDK and XCode.....

Anyway, About a year ago, I built a USB Host adapter for the iPhone, I recently got it to recognize the Openport 1.3u cable (actually the FTDI KKL cable which shares similar hardware) and a Thumb Drive (though the O/S won't do anything with it)

What does this mean, well, it means that I am able to read/write serial data through the accessory port API's on the iPhone 3GS (It doesn't work on a 2G Iphone and I don't own a 3G second gen or any version of the touch)

I've done some very very very rudimentary work using the iPhone developer tools on a Hackintosh in VMware, I'm not much of a C++ programmer so learning Objective C and getting up to speed and doing anything productive just hasn't been a fast process.

My first experiments have been somewhat encouraging, I've been able to set the baud rate, initialize the interface, and read a few bytes from a 2005 Evo ECU on a bench harness.

In reality this doesn't mean much, I had to use some undocumented API's to set the unusual baud rates required, so the odds of an app like this being approved for the app store are pretty low.

However this is a MAJOR step if there is any real market/need/desire for this stuff anymore.
MalibuJack the constant tinkerer. I can tell you this, if you build it they will come, imagine being able to make changes in your car from your iPhone.

Maybe download a map from your tuner and upload while at the track. I have fantasied about such working however I have little or no programming skills. Im much more adept with a socket or wrench.

It was kicking my as last week to put Windows7 on my new MacBook with Parallels, and the only reason I did that was so I could run my Auto Enginuity software to scan OBD-II and diesel truck cylinder contribution, buzz test, as well as log.

Good luck
Reply
Old Nov 21, 2009 | 12:41 PM
  #5  
jroller's Avatar
Evolving Member
iTrader: (1)
 
Joined: May 2006
Posts: 334
Likes: 0
From: San Diego
Keep us posted.
Reply
Old Nov 21, 2009 | 12:58 PM
  #6  
MalibuJack's Avatar
Thread Starter
EvoM Guru
20 Year Member
iTrader: (5)
 
Joined: Feb 2003
Posts: 10,572
Likes: 14
From: Royse City, TX
Oh I had also forgotten to mention that I began porting Mitsulogger to MacOSX (Leopard and Snow Leopard) since I don't rely too heavily on third party components for a large portion of mitsulogger and the .NET libraries for OSX (and Linux) have matured to the point that it more or less works with a few small issues.

Reflashing unfortunately probably won't happen without more access to low level API's, and the reflash feature requires the voltage to be boosted by combining the 12v of the battery with 5v from the port.. Any Smartphone Host adapter wouldn't provide any power to its port, if it did, it wouldn't be enough to trigger reflash (2 to 3.2v if it were possible, not quite enough to power up anything other than a very small thumb drive)
Reply
Old Nov 21, 2009 | 12:59 PM
  #7  
MalibuJack's Avatar
Thread Starter
EvoM Guru
20 Year Member
iTrader: (5)
 
Joined: Feb 2003
Posts: 10,572
Likes: 14
From: Royse City, TX
Parallels has its share of issues with Windows 7.. VMWare Fusion works fine, and Apple just updated boot camp to support it.
Reply
Old Nov 21, 2009 | 01:07 PM
  #8  
Evoryder's Avatar
Evolved Member
iTrader: (55)
 
Joined: Apr 2004
Posts: 7,383
Likes: 10
From: ☼ Florida ☼
This would be nice
Reply
Old Nov 21, 2009 | 01:27 PM
  #9  
donour's Avatar
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by MalibuJack
Parallels has its share of issues with Windows 7.. VMWare Fusion works fine, and Apple just updated boot camp to support it.
And virtualbox is free.

Seriously jack. If I can help, let me know. It's too bad I still have a 2g iphone. It was $599 with a 2 year contract!

d
Reply
Old Nov 21, 2009 | 01:30 PM
  #10  
Steve93Talon's Avatar
Evolving Member
iTrader: (5)
 
Joined: Mar 2006
Posts: 491
Likes: 0
From: Phila, PA
Originally Posted by MalibuJack
Oh I had also forgotten to mention that I began porting Mitsulogger to MacOSX (Leopard and Snow Leopard)
I love you.
Reply
Old Nov 22, 2009 | 07:25 AM
  #11  
ethan169's Avatar
Evolved Member
iTrader: (3)
 
Joined: Mar 2007
Posts: 562
Likes: 0
From: Connecticut / Vermont
This is really interesting stuff Jack.

Great work!

Subscribed
Reply
Old Nov 22, 2009 | 07:30 AM
  #12  
buchnerj's Avatar
Evolved Member
iTrader: (19)
 
Joined: Jul 2007
Posts: 1,497
Likes: 2
From: the burgh, pa
Subscribed.

I have a 3gs IPhone, and use macintosh osx snow leopard. I am alright with programming and took a few classes on C++, so if you need me to test, or help out at all let me know...
Best of luck!
Reply
Old Nov 22, 2009 | 07:31 AM
  #13  
MalibuJack's Avatar
Thread Starter
EvoM Guru
20 Year Member
iTrader: (5)
 
Joined: Feb 2003
Posts: 10,572
Likes: 14
From: Royse City, TX
A little tease..

It doesn't do much yet, it basically just initialized the interface and gets back an acknowledgement when its connected.

Right now I'm evaluating Mono, MonoDevelop, and Monotouch for this, which made it a little easier to get this far.. But its getting there I suppose..



The hard part is actually getting information on how to recognize and utilize the accessory port (The same port that others are using to create external GPS devices and whatnot since it works almost identically) without using undocumented API calls.
Attached Thumbnails Mitsulogger for iPhone??-imitsulogger.jpg  
Reply
Old Nov 22, 2009 | 06:15 PM
  #14  
MalibuJack's Avatar
Thread Starter
EvoM Guru
20 Year Member
iTrader: (5)
 
Joined: Feb 2003
Posts: 10,572
Likes: 14
From: Royse City, TX
Originally Posted by donour
And virtualbox is free.

Seriously jack. If I can help, let me know. It's too bad I still have a 2g iphone. It was $599 with a 2 year contract!

d
I'll try to catch you online later this week.
Reply
Old Nov 22, 2009 | 06:21 PM
  #15  
4g94T's Avatar
Evolved Member
iTrader: (18)
 
Joined: May 2004
Posts: 2,069
Likes: 0
From: California
this is awesome...

i always log when i drive, but i hate having to have the laptop on the passenger seat
Reply



All times are GMT -7. The time now is 03:49 AM.