Turbo3
Gold Member
Posts: 2011
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

Fri Jun 14, 2019 7:23 pm

DaveinOlyWA wrote:What does the charge alarm do?
Requested by a user so he can start a charge in the garage and then receive an alarm on his phone when the charge level has reached a preset SOC%. Then he can manually stop the charge. Works best if you use a WiFi OBDII which would have longer range than Bluetooth. Phone can be off because LeafSpy Pro is running in the background (the part of LeafSpy that reads SOC from the Leaf).

Turbo3
Gold Member
Posts: 2011
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

Fri Jun 14, 2019 7:35 pm

virol wrote:
Turbo3 wrote:
virol wrote:Welcome back Turbo3 :)

I will check out asap this testversion for android onto my leaf 2018 and keep you informed here.....

Already some remark: the relais clicking noise is also there onto a 2018 Leaf when the car is off (with the last official version) do I think the safe mode you implemented for older leafs is also nessesarry for the 2018 Leaf .

Regards
Safe Mode uses a passive way to detect if the Leaf has been turned on. This is what prevents the clicking when the Leaf is asleep and a connection is attempted.

However, passive mode cannot detect if a 2018 or newer Leaf is on or off. So the active mode must be used which will cause the relay clicking if the Leaf is asleep.

One solution for 2018 and newer Leafs would be to require the user to go through a manual connect step each time they switch to the app. The user would then insure the Leaf is on before attempting to connect to the Leaf. On way to do this would be to require the 2018+ user to go into the OBDII selection menu and select their OBDII device each time they switch to the app.

Right now a connection is automatically attempted whenever LeafSpy is in the foreground. Safe Mode just adds a condition that LeafSpy must detect CAN activity first indicating the Leaf is on.
I understand that from leaf 2018+ there is no more (passive) CAN activity onto the ODB plug.
another approch can be when the leaf is off (asleep) and leafspy begins to poll with active CAN commands AND there is no answer (fi polling the SOH or VIN will not give a valid responce) than instruct leafspy to stop sending active commands to protect the relay clicking and assume the leaf is off..... (showing then a reconnect screen or something)

have a nice we
Yes, that can be done. There is code that handles the timeout when the Leaf does not respond which today delays a few seconds and retries. I can change that code for a 2018+ Leaf so the Service code sets a flag the foreground code can check and then ask the user to turn on the Leaf and press connect to continue. The foreground code can then tell the Service code to retry the command. I will need the message in Japanese, French and German.

The Service code runs all the time (even when the device is off) whereas the foreground code only runs when the app has the screen.

Turbo3
Gold Member
Posts: 2011
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

Fri Jun 14, 2019 8:11 pm

lorenfb wrote:Turbo3 had indicated that Pro would have the ability to calculate battery resistance similar to TM-Spy & LeafDD. Can't find it either
noted in the manual nor the app itself. I would like to determine the battery resistance of the 2019 40kWh, and compare to my 2013.
Have I missed it during my search?
Sorry about that. I seem to have forgotten that request so not included in this test release of LeafSpy Pro.

As I recall now, the way it would work is you detect the voltage drop for a given large current increase.

I might see if I can implement this in a custom screen with instructions on how to run the measurement. With all accessories off and starting from a stop then floor it for a few seconds while staying within the posted speed limits. The custom screen would allow for frequent reads of the High Voltage battery volt and current.

lorenfb
Posts: 2244
Joined: Tue Dec 17, 2013 10:53 pm
Delivery Date: 22 Nov 2013
Leaf Number: 416635
Location: SoCal

Re: Leaf Spy and Leaf Spy Pro

Fri Jun 14, 2019 11:57 pm

Turbo3 wrote:
lorenfb wrote:Turbo3 had indicated that Pro would have the ability to calculate battery resistance similar to TM-Spy & LeafDD. Can't find it either
noted in the manual nor the app itself. I would like to determine the battery resistance of the 2019 40kWh, and compare to my 2013.
Have I missed it during my search?
Sorry about that. I seem to have forgotten that request so not included in this test release of LeafSpy Pro.

As I recall now, the way it would work is you detect the voltage drop for a given large current increase.

I might see if I can implement this in a custom screen with instructions on how to run the measurement. With all accessories off and starting from a stop then floor it for a few seconds while staying within the posted speed limits. The custom screen would allow for frequent reads of the High Voltage battery volt and current.
Thanks Turbo3 for remembering this topic. I've been able to do the test using LeafSpy as described here;
http://mynissanleaf.com/viewtopic.php?f ... 20#p559503

If you could integrate the few steps used into a single operation, that would simplify the process for others interested in that type of Leaf data.

Here's how you did it for TM-Spy;

https://teslamotorsclub.com/tmc/posts/1381783/

The graphic of TM-Spy is more insightful than the simple numeric results.

Greatly appreciate all your efforts to continually improve LeafSpy based on users' requests.
#1 Leaf SL MY 9/13: 74K miles, 48 Ahrs, 5.2 miles/kWh (average), Hx=70, SOH=78, L2 - 100% > 1000, temp < 95F, (DOD) > 20 Ahrs
#2 Leaf SL MY 12/18: 4.5K miles, 115 Ahrs, 5.5 miles/kWh (average), Hx=98, SOH=99, DOD > 20%, temp < 105F

crunchy3d
Posts: 21
Joined: Mon Dec 10, 2018 9:42 am
Delivery Date: 20 Sep 2018

Re: Leaf Spy and Leaf Spy Pro

Mon Jun 17, 2019 1:32 am

Turbo3 wrote:- Added option in Settings/Logging to allow logging of Cell Voltages to be disabled. This will speed up logging by not reading the 96 cell voltages and shunt values from the Leaf. This is overwritten if the currently displayed screen require displaying cell/shunt data.
- The time it takes to cycle through reading all the data currently being read from the Leaf can be displayed in the lower right status area by selecting the "Hide Connect Status" option in Settings/Screen. This is helpful when evaluating different OBDII adapters for performance or to see the update speed of a custom gauge screen. Time is in seconds.
Thank you very much! Hardly waiting to test it on my next trip! ;)

Turbo3
Gold Member
Posts: 2011
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

Mon Jun 17, 2019 7:25 pm

lorenfb wrote:
Turbo3 wrote:
lorenfb wrote:Turbo3 had indicated that Pro would have the ability to calculate battery resistance similar to TM-Spy & LeafDD. Can't find it either
noted in the manual nor the app itself. I would like to determine the battery resistance of the 2019 40kWh, and compare to my 2013.
Have I missed it during my search?
Sorry about that. I seem to have forgotten that request so not included in this test release of LeafSpy Pro.

As I recall now, the way it would work is you detect the voltage drop for a given large current increase.

I might see if I can implement this in a custom screen with instructions on how to run the measurement. With all accessories off and starting from a stop then floor it for a few seconds while staying within the posted speed limits. The custom screen would allow for frequent reads of the High Voltage battery volt and current.
Thanks Turbo3 for remembering this topic. I've been able to do the test using LeafSpy as described here;
http://mynissanleaf.com/viewtopic.php?f ... 20#p559503

If you could integrate the few steps used into a single operation, that would simplify the process for others interested in that type of Leaf data.

Here's how you did it for TM-Spy;

https://teslamotorsclub.com/tmc/posts/1381783/

The graphic of TM-Spy is more insightful than the simple numeric results.

Greatly appreciate all your efforts to continually improve LeafSpy based on users' requests.
After thinking about it I now see you can collect the data to create the graph with this new test version.

Go to the custom Screen 3 and load one of the BMS Grp1 screens. To start the test tap the black circle in the upper left corner and data including the HV Battery Voltage and Current will be saved to a csv file which you can then plot in excel. The data file will be saved in the Custom Screens folder with a name like this "BMS_Grp01_xxxxxxxxxxxxx.csv" where xxxxxx will be date/time, part of ViN and device unique information.

This data will be saved at 5 to 7 samples per second so should give you a good graph. Tap the flashing Red dot in upper left corner to stop recording data.

Later I can look at adding a graph element so you can directly plot the graph on a new custom screen 3 get like in TM-Spy.

lorenfb
Posts: 2244
Joined: Tue Dec 17, 2013 10:53 pm
Delivery Date: 22 Nov 2013
Leaf Number: 416635
Location: SoCal

Re: Leaf Spy and Leaf Spy Pro

Mon Jun 17, 2019 9:38 pm

Turbo3 wrote:
lorenfb wrote:
Turbo3 wrote: Sorry about that. I seem to have forgotten that request so not included in this test release of LeafSpy Pro.

As I recall now, the way it would work is you detect the voltage drop for a given large current increase.

I might see if I can implement this in a custom screen with instructions on how to run the measurement. With all accessories off and starting from a stop then floor it for a few seconds while staying within the posted speed limits. The custom screen would allow for frequent reads of the High Voltage battery volt and current.
Thanks Turbo3 for remembering this topic. I've been able to do the test using LeafSpy as described here;
http://mynissanleaf.com/viewtopic.php?f ... 20#p559503

If you could integrate the few steps used into a single operation, that would simplify the process for others interested in that type of Leaf data.

Here's how you did it for TM-Spy;

https://teslamotorsclub.com/tmc/posts/1381783/

The graphic of TM-Spy is more insightful than the simple numeric results.

Greatly appreciate all your efforts to continually improve LeafSpy based on users' requests.
After thinking about it I now see you can collect the data to create the graph with this new test version.

Go to the custom Screen 3 and load one of the BMS Grp1 screens. To start the test tap the black circle in the upper left corner and data including the HV Battery Voltage and Current will be saved to a csv file which you can then plot in excel. The data file will be saved in the Custom Screens folder with a name like this "BMS_Grp01_xxxxxxxxxxxxx.csv" where xxxxxx will be date/time, part of ViN and device unique information.

This data will be saved at 5 to 7 samples per second so should give you a good graph. Tap the flashing Red dot in upper left corner to stop recording data.

Later I can look at adding a graph element so you can directly plot the graph on a new custom screen 3 get like in TM-Spy.
Thanks Turbo3. I'll try it in the next few days.
#1 Leaf SL MY 9/13: 74K miles, 48 Ahrs, 5.2 miles/kWh (average), Hx=70, SOH=78, L2 - 100% > 1000, temp < 95F, (DOD) > 20 Ahrs
#2 Leaf SL MY 12/18: 4.5K miles, 115 Ahrs, 5.5 miles/kWh (average), Hx=98, SOH=99, DOD > 20%, temp < 105F

crunchy3d
Posts: 21
Joined: Mon Dec 10, 2018 9:42 am
Delivery Date: 20 Sep 2018

Re: Leaf Spy and Leaf Spy Pro

Mon Jun 17, 2019 11:04 pm

crunchy3d wrote:
Turbo3 wrote:- Added option in Settings/Logging to allow logging of Cell Voltages to be disabled. This will speed up logging by not reading the 96 cell voltages and shunt values from the Leaf. This is overwritten if the currently displayed screen require displaying cell/shunt data.
- The time it takes to cycle through reading all the data currently being read from the Leaf can be displayed in the lower right status area by selecting the "Hide Connect Status" option in Settings/Screen. This is helpful when evaluating different OBDII adapters for performance or to see the update speed of a custom gauge screen. Time is in seconds.
Thank you very much! Hardly waiting to test it on my next trip! ;)
Unfortunately, from updating to beta version I can't get any new Log files. Only TripChrgLog*.csv file is updated with new trips, while Log_*.scv files are not created or new data appended to old file (in the same day, of course).
My settings are (the relevant ones):

Logging:
- Enable Data Logging
- Deselected Log Cell Voltages

No Dropbox or Server

Does anybody get new data written to Log file (have I missed something?)?

crunchy3d
Posts: 21
Joined: Mon Dec 10, 2018 9:42 am
Delivery Date: 20 Sep 2018

Re: Leaf Spy and Leaf Spy Pro

Mon Jun 17, 2019 11:23 pm

crunchy3d wrote:Unfortunately, from updating to beta version I can't get any new Log files. Only TripChrgLog*.csv file is updated with new trips, while Log_*.scv files are not created or new data appended to old file (in the same day, of course).
My settings are (the relevant ones):

Logging:
- Enable Data Logging
- Deselected Log Cell Voltages

No Dropbox or Server

Does anybody get new data written to Log file (have I missed something?)?
New info. If "Log Cell Voltages" in menu "Logging" is selected (checkbox is selected), the Log_*.scv file is created. Otherwise Log_*.scv file is not created!
@Turbo3, I suppose it is a bug and Log_*.scv file should be created in both cases, except that cell voltages are not written if the checkbox is not selected?

Turbo3
Gold Member
Posts: 2011
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

Tue Jun 18, 2019 7:52 am

crunchy3d wrote:
crunchy3d wrote:Unfortunately, from updating to beta version I can't get any new Log files. Only TripChrgLog*.csv file is updated with new trips, while Log_*.scv files are not created or new data appended to old file (in the same day, of course).
My settings are (the relevant ones):

Logging:
- Enable Data Logging
- Deselected Log Cell Voltages

No Dropbox or Server

Does anybody get new data written to Log file (have I missed something?)?
New info. If "Log Cell Voltages" in menu "Logging" is selected (checkbox is selected), the Log_*.scv file is created. Otherwise Log_*.scv file is not created!
@Turbo3, I suppose it is a bug and Log_*.scv file should be created in both cases, except that cell voltages are not written if the checkbox is not selected?
Thanks for the additional information that helps.

I implemented this function for the iOS version where I tested it. Then I ported it over to the Android version which I think I did not actually test so I am probably missing a little code when I ported it over.

Should be a quick fix but I am out of town right now so will not be able to test a new version until next week. If I have time I will try to release an untested new test version later today to tomorrow.

Return to “LEAF CANBus”