Turbo3
Gold Member
Posts: 1835
Joined: Mon Jul 19, 2010 8:34 pm
Delivery Date: 12 May 2011
Leaf Number: 002191
Location: San Jose, CA

iOS Version of LeafSpy Pro development discussion

Mon Jan 12, 2015 1:56 am

This thread will be used to give progress updates for the iOS version of Leaf Spy and for potential iOS users of this new version of Leaf Spy to comment on it.

The minimum iOS to run LeafSpy will be iOS 7. Therefore the following devices are NOT capable of running LeafSpy.

iPhone: 1st Gen, 3G, 3GS (iPhone 4 and newer are ok)
iTouch: 1st thru 4th (Only 5th Gen is ok)
iPad: 1st Gen (iPad 2 and newer are ok including iPad Air & iPad Air 2)
iPad Mini: (all models are ok)

The initial version will be Leaf Spy Pro using WiFi to connect to a WiFi OBDII adapter. I have tested three different WiFi OBDII adapters. The overhead for each is a little different with the fastest one being more that twice the speed (time it takes to loop through one set of commands). The fastest one is of the large size (3.5" long), takes a password (12345678) and report it is a v2.1. The second fastest is of the mini size with a power on/off button. The slowest is of the same large size but without needing a password.

Since I am using basically the same language for both the Android and iOS versions the screens and function will be very similar as can be seen in the below screenshots.

The actually code that handles the sending and processing of commands and data is virtually the same and is already converted over to iOS. So the Trip Log and csv log file are fully operational at this time. The iOS csv logs can be uploaded to the LeafLogger website just like the Android versions.

File structure is different as there is only one folder available to the iOS app that can be seen by iTunes. So my debug files as well as the trip log and csv logs will all be in one folder.

Converting over the screens is what takes the most time as each element of the screen (some can have 50 or more) is hand copied and adjusted for orientation and device (iPad, iPhone, iTouch). The Settings menu will take the longest as some elements are not available in iOS so must be done a different way.

Here is a list of what is currently mapped over and working:

1. Screen 1 Battery Cell bar graph and everything else on this screen
2. Screen 4 Summary with the exception of the thermometer mercury moving up and down based on pack temp is fully operational.
3. Trip Log viewer
3. Top Service screen with Read/Clear DTC buttons working
4. Read DTCs screen fully functional
5. Clear DTC screen fully functional
Last edited by Turbo3 on Thu Sep 21, 2017 11:38 am, edited 6 times in total.

Turbo3
Gold Member
Posts: 1835
Joined: Mon Jul 19, 2010 8:34 pm
Delivery Date: 12 May 2011
Leaf Number: 002191
Location: San Jose, CA

Re: iOS Version of Leaf Spy development

Mon Jan 12, 2015 1:56 am

Here are screens that have currently been mapped over to iOS and are working. These are taken from an iPhone 4.

Image Image

Image Image

Image

Image Image Image

Image Image
Last edited by Turbo3 on Mon Jan 12, 2015 2:12 am, edited 1 time in total.

Turbo3
Gold Member
Posts: 1835
Joined: Mon Jul 19, 2010 8:34 pm
Delivery Date: 12 May 2011
Leaf Number: 002191
Location: San Jose, CA

Re: iOS Version of Leaf Spy development

Mon Jan 12, 2015 1:56 am

WiFi Adapters

The WiFi OBDII adapter that works best for me now is sold by Amazon. I bought mine from a different seller who is not currently on Amazon ($22.48 -> $29.99). You might check other places for it.

LYL (LeadYourLife) brand. Version 2.1 ELM327. Requires a password of 12345678.

http://www.amazon.com/LeadYourLife-Wireless-scanner-For-engine-Diagnostic/dp/B00R59EMJY/ref=sr_1_1?ie=UTF8&qid=1421111728&sr=8-1&keywords=LeadYourLife+wifi
Last edited by Turbo3 on Mon Jan 12, 2015 6:52 pm, edited 1 time in total.

Turbo3
Gold Member
Posts: 1835
Joined: Mon Jul 19, 2010 8:34 pm
Delivery Date: 12 May 2011
Leaf Number: 002191
Location: San Jose, CA

Re: iOS Version of Leaf Spy development

Mon Jan 12, 2015 1:57 am

Current Status 1/14/2015 2:31PM

The Door Lock/Unlock screen is now functional.

Note: That on the iOS version of LeafSpy you will need to do a long tap to open and close the selector buttons which are flagged with the upside down triangle character at the end.

From iPhone 4
Image Image Image

From iPad
Image Image
Last edited by Turbo3 on Wed Jan 14, 2015 3:32 pm, edited 6 times in total.

User avatar
DNAinaGoodWay
Posts: 2751
Joined: Mon Dec 17, 2012 1:43 am
Delivery Date: 03 Dec 2012
Leaf Number: 23156
Location: Central Massachusetts

Re: iOS Version of Leaf Spy development discussion

Mon Jan 12, 2015 2:49 am

Nice work, thanks. Patiently waiting to switch from LeafStat, which is fine, just very basic.

Will there be some kind of user manual online to explain the screens, functions, and nomenclature, for those of us with no prior experience?
'12 SL last reading @ 2 yr, 22k, 260 GIDs, 62.35 Ahr

'15 SV w/QC, Mfd 5/14, Leased 8/14, 292 GIDs, 64.38 Ahr when new
@ 36 months, 34k, 270 GID, 57.49 Ahr

'17 Bolt LT



6.72 kW Array

essaunders
Posts: 375
Joined: Mon May 03, 2010 7:20 am
Delivery Date: 20 Jan 2012
Location: southern NH

Re: iOS Version of Leaf Spy development discussion

Mon Jan 12, 2015 7:14 am

How old of a device can be supported? In my perfect world I'd allocate my first gen ipod touch to the car for this application. It's probably an unrealistic goal, but on the off chance it is possible, I thought I'd ask.

KJD
Posts: 1348
Joined: Sat Jan 22, 2011 11:06 am
Delivery Date: 08 Dec 2011
Leaf Number: 15656
Location: SLC, UT
Contact: Website

Re: iOS Version of Leaf Spy development discussion

Mon Jan 12, 2015 8:11 am

Nice work as always. What do you have left to do for a general release, it looks like most of it is there now right?
2012 SL Delivered 12/08/2011
Sold 05/12/2015
2012 Tesla Model S 85

jpadc
Posts: 274
Joined: Sat Dec 13, 2014 7:25 am
Delivery Date: 20 Dec 2014
Location: Indiana & Wisconsin

Re: iOS Version of Leaf Spy development discussion

Mon Jan 12, 2015 3:48 pm

Dear Turbo3:

I'm new here so I missed most of the discussion on this. I have your Leaf Spy Pro running on an old GarminPhone. I got the Android device to run the Torque App for my Prius. I used your program when I went to evaluate a still new (never sold) 2013 LEAF that i bought just a couple weeks ago (discussed here: http://www.mynissanleaf.com/viewtopic.php?f=27&t=2099&start=1843). Your app was well worth the low cost investment just to have piece of mind regarding the health of the battery in the car.

I have 2 questions I hope you will address. One on topic, the other not so much...1) I assume the move from Bluetooth to wifi on the iOS device is because Apple does not support some Bluetooth protocol that you use in the program. What protocol is that? 2) My most used feature in Torque on the Prius was that it could (using custom PIDs developed by usbseawolf2000 on PriusChat.com) provide information about both regenerative braking and friction braking in real time. I would love it if such a feature could be added to Leaf Spy Pro. Any thoughts on that?

Thanks
2013 Leaf S /w Charge Package - Purchased new in Iowa City Dec. 2014
My previous car was a 2008 Prius Touring Package 5 - 73k Miles, 43 MPG lifetime

User avatar
jhm614
Forum Supporter
Posts: 907
Joined: Fri Apr 23, 2010 7:48 pm
Delivery Date: 30 Mar 2011
Leaf Number: 000493
Location: Arlington, TX

Re: iOS Version of Leaf Spy development discussion

Mon Jan 12, 2015 4:57 pm

Turbo3 wrote:The initial version will be Leaf Spy Pro using WiFi to connect to a WiFi OBDII adapter. I have tested three different WiFi OBDII adapters. The overhead for each is a little different with the fastest one being more that twice the speed (time it takes to loop through one set of commands). The fastest one is of the large size (3.5" long), takes a password (12345678) and report it is a v2.1. The second fastest is of the mini size with a power on/off button. The slowest is of the same large size but without needing a password.

Any chance you could post Amazon links for these?
2011 Brilliant Silver SL - 110,000 gasoline free miles so far.
4BL: 06/29/13 @ 27 months, 43,520 miles, 42.56 Ahr. New 12 bar battery: 09/09/13
4BLx2:12/31/16 @ 69 months, 99,475 miles, 42.99 Ahr.

Turbo3
Gold Member
Posts: 1835
Joined: Mon Jul 19, 2010 8:34 pm
Delivery Date: 12 May 2011
Leaf Number: 002191
Location: San Jose, CA

Re: iOS Version of Leaf Spy development discussion

Mon Jan 12, 2015 6:54 pm

jhm614 wrote:
Turbo3 wrote:The initial version will be Leaf Spy Pro using WiFi to connect to a WiFi OBDII adapter. I have tested three different WiFi OBDII adapters. The overhead for each is a little different with the fastest one being more that twice the speed (time it takes to loop through one set of commands). The fastest one is of the large size (3.5" long), takes a password (12345678) and report it is a v2.1. The second fastest is of the mini size with a power on/off button. The slowest is of the same large size but without needing a password.

Any chance you could post Amazon links for these?

See third post for a link.

Return to “LEAF CANBus”