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

Re: Leaf Spy and Leaf Spy Pro

Thu Feb 15, 2018 11:10 am

jlv wrote:
Turbo3 wrote:There is a bug in the just released version of LeafSpy Pro 0.41.109 that crashes the app if you try to save an Elevation/Speed graph.

With 0.41.108 (and 0.41.109), LeafSpy Pro has started to lockup my OBD-II adapter again. It seems to work if I enable "slow transfer mode", but that setting doesn't appear saved. I can generate a trace if you'd like.

I will need to release an update to fix slow transfer mode not being remembered.

If you just exit the app and restart it is OK. But if you kill the app and restart the setting is lost. Still needs to be fixed. But it explains why I missed the bug in my testing as I probably did not kill the app.

==========================
Ok, found the bug. I commented out the line that reads the value back in from the Setup file. I was commenting out some unused code and missed that fact that that line was in there too and should have been kept. Exit On Trip Save is also commented out.

Version 0.41.111 has been released to fix this problem.

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

Re: Leaf Spy and Leaf Spy Pro

Thu Feb 15, 2018 12:16 pm

jlv wrote:
Turbo3 wrote:There is a bug in the just released version of LeafSpy Pro 0.41.109 that crashes the app if you try to save an Elevation/Speed graph.

With 0.41.108 (and 0.41.109), LeafSpy Pro has started to lockup my OBD-II adapter again. It seems to work if I enable "slow transfer mode", but that setting doesn't appear saved. I can generate a trace if you'd like.

When selecting delayed transfer mode (new name for slow transfer mode) in version 0.41 there is now a slider to vary the delay the Leaf adds between transfers from 10 to 70 msec. This way the Leaf can add just the delay needed without unduly slowing down the transfers.

DaveinOlyWA
Posts: 13131
Joined: Sat Apr 24, 2010 7:43 pm
Delivery Date: 16 Feb 2018
Leaf Number: 314199
Location: Olympia, WA
Contact: Website

Re: Leaf Spy and Leaf Spy Pro

Fri Feb 16, 2018 9:44 pm

Ok brought 2018 LEAF home and can't get LEAF Spy to stay connected. Sometimes its connected for 10 mins, sometimes only a few mins. I have flipped several settings around but nothing seems to make it stay connected.

any suggestions? Using Pixel XL 2. I also have Samsung Galaxy 4 I use for LEAF Spy as well. Would that be a better option?
2011 SL; 44,598 miles. 2013 S; 44,840 miles.2016 S30 deceased. 29,413 miles. 2018 S40; 8743 miles, 485 GIDs, 37.6 kwh 111.39 Ahr , SOH 96.49, Hx 114.98
My Blog; http://daveinolywa.blogspot.com" onclick="window.open(this.href);return false;

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

Re: Leaf Spy and Leaf Spy Pro

Sat Feb 17, 2018 12:23 am

DaveinOlyWA wrote:Ok brought 2018 LEAF home and can't get LEAF Spy to stay connected. Sometimes its connected for 10 mins, sometimes only a few mins. I have flipped several settings around but nothing seems to make it stay connected.

any suggestions? Using Pixel XL 2. I also have Samsung Galaxy 4 I use for LEAF Spy as well. Would that be a better option?

LeafSpy is not designed to work with the 2018 protocol. You need LeafSpy Pro.

I can refund LeafSpy so you can upgrade to Pro. Just need the email address you used to purchase it or the order number from the receipt.

I have updated the Google description for LeafSpy to make it clear it is not designed to work with the 2018 Leaf.

DaveinOlyWA
Posts: 13131
Joined: Sat Apr 24, 2010 7:43 pm
Delivery Date: 16 Feb 2018
Leaf Number: 314199
Location: Olympia, WA
Contact: Website

Re: Leaf Spy and Leaf Spy Pro

Sat Feb 17, 2018 8:36 am

Turbo3 wrote:
DaveinOlyWA wrote:Ok brought 2018 LEAF home and can't get LEAF Spy to stay connected. Sometimes its connected for 10 mins, sometimes only a few mins. I have flipped several settings around but nothing seems to make it stay connected.

any suggestions? Using Pixel XL 2. I also have Samsung Galaxy 4 I use for LEAF Spy as well. Would that be a better option?

LeafSpy is not designed to work with the 2018 protocol. You need LeafSpy Pro.

I can refund LeafSpy so you can upgrade to Pro. Just need the email address you used to purchase it or the order number from the receipt.

I have updated the Google description for LeafSpy to make it clear it is not designed to work with the 2018 Leaf.


I have LEAF Spy Pro.
2011 SL; 44,598 miles. 2013 S; 44,840 miles.2016 S30 deceased. 29,413 miles. 2018 S40; 8743 miles, 485 GIDs, 37.6 kwh 111.39 Ahr , SOH 96.49, Hx 114.98
My Blog; http://daveinolywa.blogspot.com" onclick="window.open(this.href);return false;

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

Re: Leaf Spy and Leaf Spy Pro

Sat Feb 17, 2018 10:57 am

DaveinOlyWA wrote:
Turbo3 wrote:
DaveinOlyWA wrote:Ok brought 2018 LEAF home and can't get LEAF Spy to stay connected. Sometimes its connected for 10 mins, sometimes only a few mins. I have flipped several settings around but nothing seems to make it stay connected.

any suggestions? Using Pixel XL 2. I also have Samsung Galaxy 4 I use for LEAF Spy as well. Would that be a better option?

LeafSpy is not designed to work with the 2018 protocol. You need LeafSpy Pro.

I can refund LeafSpy so you can upgrade to Pro. Just need the email address you used to purchase it or the order number from the receipt.

I have updated the Google description for LeafSpy to make it clear it is not designed to work with the 2018 Leaf.


I have LEAF Spy Pro.

Are you running the latest version 0.41.111?

If you are then take an ELM trace. See bottom of help file for how to do it.

DaveinOlyWA
Posts: 13131
Joined: Sat Apr 24, 2010 7:43 pm
Delivery Date: 16 Feb 2018
Leaf Number: 314199
Location: Olympia, WA
Contact: Website

Re: Leaf Spy and Leaf Spy Pro

Sat Feb 17, 2018 12:18 pm

Turbo3 wrote:
DaveinOlyWA wrote:
Turbo3 wrote:LeafSpy is not designed to work with the 2018 protocol. You need LeafSpy Pro.

I can refund LeafSpy so you can upgrade to Pro. Just need the email address you used to purchase it or the order number from the receipt.

I have updated the Google description for LeafSpy to make it clear it is not designed to work with the 2018 Leaf.


I have LEAF Spy Pro.

Are you running the latest version 0.41.111?

If you are then take an ELM trace. See bottom of help file for how to do it.


This version was just updated like 2-3 days ago. I will do trace and send. Thanks for quick response!
2011 SL; 44,598 miles. 2013 S; 44,840 miles.2016 S30 deceased. 29,413 miles. 2018 S40; 8743 miles, 485 GIDs, 37.6 kwh 111.39 Ahr , SOH 96.49, Hx 114.98
My Blog; http://daveinolywa.blogspot.com" onclick="window.open(this.href);return false;

BatteryCharger
Posts: 2
Joined: Mon Feb 19, 2018 7:03 pm
Delivery Date: 04 Sep 2013
Leaf Number: 415936

Re: Leaf Spy and Leaf Spy Pro

Mon Feb 19, 2018 7:28 pm

tl;dr: Trying to automate logging, don't want to drain battery, so powering down OBDII when car shuts off. Doesn't work.

--

My wife is now driving a Leaf and I'd like to log her Leaf's battery health over time. It needs to work without user intervention if I actually want data :roll: . So here's what I've done:

Basic setup:
- Android 6 device (shattered screen, but functional otherwise)
- Functional Elm327, works well, bought cheap before the "ver 2.1" problems
- DropBox sync for logs

First attempt ("proof of concept"):
- Leave the phone in the car, always running Leaf Spy Pro

This was working okay, but it was draining the phone battery quickly (not a dealbreaker, would install charge cable, but needed to charge daily). I was concerned about draining the Leaf's 12V battery, though. It seemed on the low side, which was more concerning. I'm not sure if this is a risk with the constant polling of the bus, but I thought I had a great idea to alleviate the risk...

Second attempt:
- Swap the 'always on' and 'switched on' wires in my OBDII connector so the OBDII device powers off when the car is off
- Still leave LSPro running full time

The phone battery now lasts lots of days (yay!). But I don't get logs. I tried this on my car, where I have "Exit after Trip/Chrg saved" set. When I shut the car off, I get a socket error, and LSPro doesn't shut off. So it's not seeing the sudden disappearance of the OBDII adapter as a session end (speculation).

Is this something that should work? Or is there a better way to set this up?

BatteryCharger
Posts: 2
Joined: Mon Feb 19, 2018 7:03 pm
Delivery Date: 04 Sep 2013
Leaf Number: 415936

Re: Leaf Spy and Leaf Spy Pro

Wed Feb 21, 2018 7:58 pm

I'm trying a different approach to logging (OBDII still abruptly powers down with the car, which means shutdown isn't clean, and TripChrgLog isn't updated).

I'm using Automate, an interesting app to control some things on the phone. Here's what I've programmed it to do:

1. Disable Bluetooth
2. Wait until WiFi disconnects (meaning the car has left home; note that this isn't the same is "wait until WiFi isn't connected")
3. Enable Bluetooth
4. Wait a few seconds (I think 7 is the number I arbitrarily chose to let Bluetooth link)
5. Launch Leaf Spy Pro
6. Wait 2 1/2 minutes (for some logging to happen)
7. Go back to 1

My hope was that Leaf Spy would see Bluetooth shutting off (after the 2.5 minutes in step 6) and treat it like the car is shutting down (meaning it would save TripChrgLog and exit). It notices, but switches to the yellow "Waiting to Connect" countdown. Oh well, worth a shot.

I'm hoping this will at least prevent the app from getting into a bad state caused by the sudden loss of power to OBDII, because Bluetooth is only enabled while the OBDII adapter is powered (assuming the trip is longer than around 3 minutes).

I want the TripChrgLog file because I'm tracking things over time, and 1 point per trip is a good resolution. It's interesting to plot odometer, AHr, Hx, and SOH over time. Odo goes up over time, and the others (unfortunately) go down.

Those numbers are all in the other logs, which I think I'll get even if TripChrgLog isn't being updated. I'll just extract and reformat the numbers to mimic TripChrgLog until I figure out something better.

vegastar
Posts: 208
Joined: Mon Dec 13, 2010 11:29 am
Delivery Date: 07 Jul 2011
Leaf Number: 5564
Location: Portugal

Re: Leaf Spy and Leaf Spy Pro

Thu Mar 01, 2018 6:57 am

I tried LSP in a 2018 Leaf that a dealer gave me to test for 2 days and it proved very usefull.

But I think there is a bug because it always assumed I had a 60kW.h , and I had to change it manually to a 40kW.h otherwise it couldn’t get data for the battery.
2011 Nissan LEAF since 2011-07-07, 151000 km on 2018-03-03, 7 bars, 37.9Ah.

Return to “LEAF CANBus”