Turbo3
Gold Member
Posts: 2012
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 (previously Leaf Battery App)

Sat Nov 30, 2013 12:06 pm

TomT wrote:I'm not sure that the BT update rate is fast enough for this to be any great value...
Boomer23 wrote:I'd like the app to be able to display regen kW and include a resettable Max Regen kW field.
What CAR-CAN message ID are we talking about? Is it 0x1D5? Or motor amps 0x260?

In listen mode BT OBDII should handle about 200 frames per second. Should be more than fast enough for a dedicated monitor (i.e. nothing else going on).

User avatar
Boomer23
Posts: 3553
Joined: Sun May 23, 2010 9:57 pm
Delivery Date: 30 Mar 2011
Location: Orange County, CA

Re: Leaf Spy and Leaf Spy Pro (previously Leaf Battery App)

Sat Nov 30, 2013 3:51 pm

Turbo3 wrote:
TomT wrote:I'm not sure that the BT update rate is fast enough for this to be any great value...
Boomer23 wrote:I'd like the app to be able to display regen kW and include a resettable Max Regen kW field.
What CAR-CAN message ID are we talking about? Is it 0x1D5? Or motor amps 0x260?

In listen mode BT OBDII should handle about 200 frames per second. Should be more than fast enough for a dedicated monitor (i.e. nothing else going on).
Let's ask Gary.

Garygid, can you help supply Turbo3 with the CAR-CAN message ID for the Regen kW?
2018 Tesla Model 3 Long Range RWD
2017 Chevy Bolt EV Premier Kinetic Blue
Blog: http://drivingelectric.blogspot.com" onclick="window.open(this.href);return false;

kg4bec
Posts: 126
Joined: Thu Aug 26, 2010 12:43 pm
Delivery Date: 26 Jun 2015
Location: Birmingham, AL

Re: Leaf Spy and Leaf Spy Pro (previously Leaf Battery App)

Sat Nov 30, 2013 6:52 pm

QueenBee wrote:
Turbo3 wrote:
This brings up a good question, where this is the standard does that area of the world not have CSV files. What do they use instead?
There isn't a universally agreed upon standard but the easy fix is to just enclose the values in double quotes. Then encoding any double quotes with double double quotes.

They might also use CSV to mean character seperated values where the character is a semicolon, tab, etc.
As soon as I saw Jim's question I thought about pipe-delimited records. I'd vote for that before suggesting the use of double quotes around all fields. Just my 2 cents worth. :-)

Cheers, Bert / KG4BEC
SV Glacier Pearl
Reserved: 17-May-2010
RAQ: 1-Aug-2011
Ordered: 8-Aug-2011
AV Assessment: 26-Aug-2011 (planning to cash-and-carry)
Delivery: December 2011->week of Dec 02 -> week of Dec 10 -> DELIVERED 02-Dec-2011!! Woo Hoo!

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Leaf Spy and Leaf Spy Pro (previously Leaf Battery App)

Sat Nov 30, 2013 9:58 pm

I get the Battery Pack Volts and Amps from the EV-CAN bus.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

Turbo3
Gold Member
Posts: 2012
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 (previously Leaf Battery App)

Mon Dec 02, 2013 5:02 pm

I have been busy cleaning up the code that reading DTCs.

I am now able to read DTCs from all ECUs including from the Telematics unit (TCU). The code that read DTCs from the TCU was previously commented out because I could not get any data from the Leaf.

After investigating the problem I found that the Leaf is sending the data. The problem was that the ELM327, for some reason (firmware bug?), will not pass it on to the app but claims "NO DATA" received. Luckily I was able to find a work around. The last item in the screenshot is the DTC from the TCU. Also reordered the list so it is in alphabetical order and added a count of total DTCs at the top.

I will now move on to validating the DTC clearing code. Then it will be ready for general release.

Image

Turbo3
Gold Member
Posts: 2012
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 (previously Leaf Battery App)

Mon Dec 02, 2013 6:23 pm

DaveinOlyWA wrote:since the last update both my ahr and health have stayed the same. not sure if i should be concerned about a possible bug or be happy that my pack has reached a point of stability for the first time since i got the app?
To address this concern and insure we are always looking at fresh data I am adding a change to the code.

When first connecting to the Leaf (reading VIN) the app will now clear to zero AHr, SOH, SOC and Hx. So when you see a non-zero value you will know it was just read from the Leaf and is not old saved data.

User avatar
gbarry42
Posts: 888
Joined: Mon Jan 10, 2011 5:48 pm
Delivery Date: 06 May 2011
Location: Moonlight Beach

Re: Leaf Spy and Leaf Spy Pro (previously Leaf Battery App)

Mon Dec 02, 2013 6:51 pm

I currently rely on the fact that I can run the program later and see the last data. So I hope you will clear it only after connecting, and not just because I started the program.
And there goes the first capacity bar! At 24,000 mi on 9/9/2013.
Second bar at 30,500 mi on 2/7/2015.

Turbo3
Gold Member
Posts: 2012
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 (previously Leaf Battery App)

Mon Dec 02, 2013 7:06 pm

gbarry42 wrote:I currently rely on the fact that I can run the program later and see the last data. So I hope you will clear it only after connecting, and not just because I started the program.
Only cleared after the Leaf has started to send data. So if Leaf is off or not in range it does not get cleared.

Also, unless battery data is successfully read from the Leaf no saved data is updated.

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Leaf Spy and Leaf Spy Pro (previously Leaf Battery App)

Wed Dec 04, 2013 8:45 pm

If one has purchased LEAF Spy Pro, can they get
the LEAF Spy (standard version) for free?

The Play Store seems to indicate that one needs to buy it.

Yes, it would be nice to show others all three versions.
Thanks
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

Turbo3
Gold Member
Posts: 2012
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 (previously Leaf Battery App)

Wed Dec 04, 2013 10:02 pm

garygid wrote:If one has purchased LEAF Spy Pro, can they get
the LEAF Spy (standard version) for free?

The Play Store seems to indicate that one needs to buy it.

Yes, it would be nice to show others all three versions.
Thanks
Sorry, at the moment I don't know a way around it. Even I had to buy both versions (I did get 70% back as part of the sale though but Google wants their 30%).

Moments ago I released new versions of all three apps Lite, standard and Pro to Play Store. Lots of small fixes plus DTC clearing for the PRO version.

Did not have time to validate the DTC clearing the away I wanted too but I needed to get all the fixes out. So post any issues with DTC Clearing and I will fix them in the next release.

It will take about 90 minutes for the new versions to show up on Play Store.

UPDATE: All updated versions are now available from Play Store.

Return to “LEAF CANBus”