kcarmich
Posts: 27
Joined: Fri May 18, 2012 10:20 am
Delivery Date: 11 Oct 2011

Re: Editing the Nav Stored Locations via SD Card

Tue May 06, 2014 4:49 pm

Timehorse I found the problem...

you have a typo in your calculations above

u = ((yh & 0xFFF0) << 18) | ((yh & 0x0003) << 16) | ((xh & 0xFFF0) << 2) | (xh & 0x0003)

these should be 0xFFFC not 0xFFF0 I was missing two bits from both the X and Y in my result.

aminorjourney
Posts: 92
Joined: Fri Jul 30, 2010 10:46 pm
Location: Porland, OR
Contact: Website Twitter YouTube

Re: Editing the Nav Stored Locations via SD Card

Sun May 11, 2014 2:51 am

Timehorse,

Just sent you my data as a ZIP file. Can you look and confirm the system is the same for Europe, please?

FYI, the EU LEAFs contain navigation data for the whole of the EU.

Nikki.
Nikki Gordon-Bloomfield

Editor, co-founder, transportevolved.com
Mom, Troublemaker.

http://about.me/aminorjourney/bio

User avatar
TimeHorse
Gold Member
Posts: 999
Joined: Thu May 13, 2010 4:40 am
Delivery Date: 02 Nov 2011

Re: Editing the Nav Stored Locations via SD Card

Tue May 13, 2014 2:33 pm

kcarmich wrote:Timehorse I found the problem...

you have a typo in your calculations above

u = ((yh & 0xFFF0) << 18) | ((yh & 0x0003) << 16) | ((xh & 0xFFF0) << 2) | (xh & 0x0003)

these should be 0xFFFC not 0xFFF0 I was missing two bits from both the X and Y in my result.


Wow! Great catch! Yeah, actually it should have been 0x3FFC not 0xFFF0 since the upper 2 bits aren't used in the calculation anyway. Sorry for the typo but I fixed the original post and left a note of thanks on the bottom.
RIP CO2 Fre, 27 months, 42,282 mi & 11 bars.
unAmerican Job & Nissan's Rapid Depreciation cost $20,000!
5 hours on the road daily w/o Charge at Work on 100%.

Long Live CO2 Fre, Maxed 2013 SL, 20,000 mi/yr lease.
http://aecn.timehorse.com/

aminorjourney
Posts: 92
Joined: Fri Jul 30, 2010 10:46 pm
Location: Porland, OR
Contact: Website Twitter YouTube

Re: Editing the Nav Stored Locations via SD Card

Thu May 15, 2014 5:54 am

I just want to thank Timehorse for helping me with my trip prep. Thanks! It'll save me a lot of hassle!

Nikki.
Nikki Gordon-Bloomfield

Editor, co-founder, transportevolved.com
Mom, Troublemaker.

http://about.me/aminorjourney/bio

User avatar
TimeHorse
Gold Member
Posts: 999
Joined: Thu May 13, 2010 4:40 am
Delivery Date: 02 Nov 2011

Re: Editing the Nav Stored Locations via SD Card

Thu May 15, 2014 9:02 am

Glad I could help half of the inimitable Transportation Evolved (aminorjourney) team from the AECN team, meaning me. :) I would like to welcome anyone who's interested in joining me in developing my python script further to send me a PM and I'll add you to my access list. The code itself is public but the Trac ticker and editing access require authentication.

https://svn.timehorse.com/public-repos/ ... dresses.py

I'm looking for LEAFs in Australia, South America, Africa and East Asia if possible to compare Address Books. It looks like the European address book is just a single bit different from North America which bodes well for supporting other regions. Also would like to get the extent of the European maps. All this is to help us all rack up those EV miles/km and to do more eTrekking!
RIP CO2 Fre, 27 months, 42,282 mi & 11 bars.
unAmerican Job & Nissan's Rapid Depreciation cost $20,000!
5 hours on the road daily w/o Charge at Work on 100%.

Long Live CO2 Fre, Maxed 2013 SL, 20,000 mi/yr lease.
http://aecn.timehorse.com/

aminorjourney
Posts: 92
Joined: Fri Jul 30, 2010 10:46 pm
Location: Porland, OR
Contact: Website Twitter YouTube

Re: Editing the Nav Stored Locations via SD Card

Sat May 24, 2014 1:11 am

So... after a week where my feet didn't touch the ground, I've finally grabbed a few moments to get the coordinates of the UK map.

It appears (though I couldn't get it to go right to the edge) to run from 22 degrees North, 20 degrees west to 80 degrees north, 68 degrees east.

Does that fit in with what people are expecting?

Nikki.
Nikki Gordon-Bloomfield

Editor, co-founder, transportevolved.com
Mom, Troublemaker.

http://about.me/aminorjourney/bio

User avatar
TimeHorse
Gold Member
Posts: 999
Joined: Thu May 13, 2010 4:40 am
Delivery Date: 02 Nov 2011

Re: Editing the Nav Stored Locations via SD Card

Wed May 28, 2014 11:17 am

aminorjourney wrote:So... after a week where my feet didn't touch the ground, I've finally grabbed a few moments to get the coordinates of the UK map.

It appears (though I couldn't get it to go right to the edge) to run from 22 degrees North, 20 degrees west to 80 degrees north, 68 degrees east.

Does that fit in with what people are expecting?

Nikki.


Oh, that is interesting! Thanks Nikki! So it don't quite go to the equator after all, unlike North America where it does. 20W to 68E is interesting though clearly Iceland isn't completely covered, nor is the entire Middle East. Since this is interesting to everyone on Earth, here's a Fusion Chart of the regions we currently have covered between Nikki and myself:

https://www.google.com/fusiontables/Dat ... rcKX7RsOYc

Still a lot of Earth uncovered and one wonders what map is loaded onto an Icelandic LEAF or a Saudi LEAF (believe me, the LEAF and electric cars, generally cars that don't run on Petrol, are very popular in the Middle East; they know all about the Resource Curse they suffer from). As well as of course all of South America, Africa, Australia, China and of course Japan.

PS: Thanks a lot Google! It took me hours to figure out how to do that incredible simple map! :roll:
RIP CO2 Fre, 27 months, 42,282 mi & 11 bars.
unAmerican Job & Nissan's Rapid Depreciation cost $20,000!
5 hours on the road daily w/o Charge at Work on 100%.

Long Live CO2 Fre, Maxed 2013 SL, 20,000 mi/yr lease.
http://aecn.timehorse.com/

mjblazin
Posts: 229
Joined: Sun Mar 15, 2015 8:52 pm
Delivery Date: 11 Mar 2015
Leaf Number: 405999
Location: Dallas, TX

Re: Editing the Nav Stored Locations via SD Card

Tue May 12, 2015 1:43 pm

This thread is mainly about coding an application, but it was closest to my question.

Does the Leaf store any personal navigation info on the right SD card? I know it has capability to transfer addresses to a left SD card. Is it our responsibility to back up own data (I have a full address book) or does the system automatically do back ups to its own SD card?

Based on descriptions (I do not want to mess with the card on the right), it just a regular SD card, not a mini?
2013 SL Blue Ocean
Bought used, March 2015 12,764 miles
4th bar drop 56 month, 20,200 miles, AHr at 42.1
Replaced battery.
Appears fully loaded
Condo home, Using public charge except in emergency
Dallas, TX downtown, shaded non-temp controlled garage

scheusso
Posts: 1
Joined: Sat Jun 06, 2015 2:24 am
Delivery Date: 06 Jun 2015

Re: Editing the Nav Stored Locations via SD Card

Sun Aug 23, 2015 8:45 am

With the base of TimeHorse's script, I created a gpx2slc conversion script. Obviously It takes a gpx file and converts it to slc ;)

With TimeHorse's permission, I'd like to publish my script here. At the moment there's some limitation though:
  • A maximum of 200 POIs is supported. This limitation is coming from the Leaf's navigation system.
  • The geographic region for encoding the coordinates is currently hard-coded to Europe. This can be changed to North America in poi_collection.py line 91 by changing it Europe to North_America.

Unfortunately I cannot attach my script here, but if anyone is interested in getting it, just send me a PN with your E-Mail-Address.

In the future I plan to write a GUI, that supports filtering the contents of a gpx and then exporting to slc. Unfortunately my time is a bit limited currently and this might not happen too soon :roll:

If someone is interested in helping me on that, he's very welcome. Only some knowledge on Python and Qt is required (already started to write the GUI in Qt).

CentralTransPoint
Posts: 5
Joined: Sun Dec 20, 2015 2:37 pm
Delivery Date: 20 Dec 2015

Re: Editing the Nav Stored Locations via SD Card

Sun Dec 20, 2015 3:25 pm

Hello!

I have read all posts. But I am slightly perplexed.
If I undestand the "storedlocation.slc" file format correctly, it contains a header (256 bytes) ans items. Each item contains 30 fields.
Discussion in this thread is related to the fields 1, 2, 9, 10 and 11 (how to calculate the 9, 10, 11 field values by the values of the 1 and 2 fields.

Looks like the following post http://www.mynissanleaf.com/viewtopic.php?f=37&t=2483&start=80#p356265 contains formulas for calculation. But I have not understood how these formulas can be applied.
Does anybody understand that algorithm? If so, please write here an exact formula for calculation fields 9, 10 and 11 by fields 1 and 2 ?
Something like this:
F9 = function(F1, F2)
F10 = function(F1, F2)
F11 = function(F1, F2)

Return to “Accessories / Mods”