Page 24 of 208

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

Posted: Sat Nov 30, 2013 12:06 pm
by Turbo3
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).

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

Posted: Sat Nov 30, 2013 3:51 pm
by Boomer23
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?

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

Posted: Sat Nov 30, 2013 6:52 pm
by kg4bec
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

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

Posted: Sat Nov 30, 2013 9:58 pm
by garygid
I get the Battery Pack Volts and Amps from the EV-CAN bus.

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

Posted: Mon Dec 02, 2013 5:02 pm
by Turbo3
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

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

Posted: Mon Dec 02, 2013 6:23 pm
by Turbo3
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.

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

Posted: Mon Dec 02, 2013 6:51 pm
by gbarry42
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.

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

Posted: Mon Dec 02, 2013 7:06 pm
by Turbo3
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.

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

Posted: Wed Dec 04, 2013 8:45 pm
by garygid
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

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

Posted: Wed Dec 04, 2013 10:02 pm
by Turbo3
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.