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

Re: Editing the Nav Stored Locations via SD Card

Sun Mar 27, 2011 7:09 pm

These two positions seem to be about 300 to 400 feet apart, right?
See SOC/GID-Meter and CAN-Do Info
2011 LEAF, sold in 2015
2010 Prius, 2014 silver Tesla S
Nissan EVSE, mod to 240/120v 16A
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

User avatar
evnow
Moderator
Posts: 11431
Joined: Thu Apr 22, 2010 11:41 am
Delivery Date: 25 Feb 2011
Leaf Number: 303
Location: Seattle, WA

Re: Editing the Nav Stored Locations via SD Card

Sun Mar 27, 2011 7:12 pm

garygid wrote:These two positions seem to be about 300 to 400 feet apart, right?

Not sure. I don't remember how I stored the location (whether it was infront of the charger or using carwings route planner).
1st Leaf : 2/28/2011 to 5/6/2013
2nd Leaf : 5/4/2013 to 3/21/2017
Volt : 3/25/2017 to ?

EVNation
Posts: 162
Joined: Tue Aug 31, 2010 2:31 pm
Delivery Date: 26 Jun 2015
Location: Redondo Beach, CA
Contact: Website

Re: Editing the Nav Stored Locations via SD Card

Sun Mar 27, 2011 7:54 pm

garygid wrote:Will the Import work with ONLY the ".slc" file in the userdata folder?


As far as I know, that is true. There is no way in the car interface to select a file.

EVNation
Posts: 162
Joined: Tue Aug 31, 2010 2:31 pm
Delivery Date: 26 Jun 2015
Location: Redondo Beach, CA
Contact: Website

Re: Editing the Nav Stored Locations via SD Card

Sun Mar 27, 2011 7:59 pm

evnow wrote:As expected, the import worked fine and is showing all the 17 locations.

BTW, I had also stored Rairdon's earlier - so here is the comparison.

Code: Select all

47.338402,-122.220001,0,00,00,00,526169646F6E204E697373616E00,00,-1551855391,69,490,,,,,0,0,-1,0,1,44,0,-1,3000,-1,4294967295,65535,65535

47.338889,-122.221111,0,00,00,00,33355448205354204E4500,00,-1551855392,1882,556,,,,,0,0,-1,0,1,0,0,-1,3000,-1,4294967295,65535,65535


The good news is it looks like my geocode is working correct. The difference is your location is just more accurate since you did it right from the charge station and I have it from Google map search. So I can use your data as a refinement. Thanks.

Alex82
Posts: 1
Joined: Wed Jun 13, 2012 2:13 am
Delivery Date: 13 Jun 2012

Re: Editing the Nav Stored Locations via SD Card

Wed Jun 13, 2012 2:46 am

EVNation wrote:
evnow wrote:As expected, the import worked fine and is showing all the 17 locations.

BTW, I had also stored Rairdon's earlier - so here is the comparison.

Code: Select all

47.338402,-122.220001,0,00,00,00,526169646F6E204E697373616E00,00,-1551855391,69,490,,,,,0,0,-1,0,1,44,0,-1,3000,-1,4294967295,65535,65535

47.338889,-122.221111,0,00,00,00,33355448205354204E4500,00,-1551855392,1882,556,,,,,0,0,-1,0,1,0,0,-1,3000,-1,4294967295,65535,65535


The good news is it looks like my geocode is working correct. The difference is your location is just more accurate since you did it right from the charge station and I have it from Google map search. So I can use your data as a refinement. Thanks.


Hi! There are any new news? It turned out to make a program to generate the file storedlocations.slc?

millenniumtree
Posts: 2
Joined: Sun May 20, 2012 8:50 pm

Re: Editing the Nav Stored Locations via SD Card

Fri Aug 24, 2012 10:58 pm

I'll introduce myself - I'm Steve from Madison, Wisconsin. I'm a web developer, and a couple months ago, my wife and I finally received our Leaf.
I putz around in the garage with bikes, welding, cars, boats, house projects and basically anything else that tickles my fancy. Blah blah blah - that's me. :P

I threw together a little Drupal website for our local Leaf Owner's Club - http://madison.leafers.org
Huge thanks to EVNation for getting the ball rolling on this thread - I've put my head to it for the past few days and I think I've made something cool!

http://madison.leafers.org/chargers

At first glance, it's nothing too special, but the points on the map came directly from our Leaf address book backup.

Leaf->Site:
* Put SD in Leaf - Export address book
* Put card in computer or smartphone
* Go to website and upload the file
* New chargers are automatically added to the site
- Your home charger is removed from the data
- Non-charger points of interest are ignored

Site->Leaf: (currently not built)
* Navigate the map to an area and click a download link
* Save the file to an SD card in the correct location so the Leaf can read it
* Put card into Leaf and Import the backup

This might duplicate records if you already have chargers logged, so the best way to handle it would be to first upload your existing backup, then download a backup with either:
New points you don't already have (import without clearing first)
or All your existing points plus new ones (clear address book and import)

Here's a list of the fields and what I think they do - further backups from more Leafs will tell for sure on some of them.
I have no idea yet what fields with numbers do.

Code: Select all

array (
  'lat',
  'lon',
  'group', (personal preference - not very useful)
  'phone_number',
  'name_custom', (when you rename a record in the Leaf, it goes here)
  6,
  'street', (street name as found on Leaf)
  'street_number', (address number)
  'leaf_location_1',  (these three are the Leaf's internal location data, which are not easily generated from a lat/lon (they're compiled map codes)
  'leaf_location_2',
  'leaf_location_3',
  'charger_type', (0=not a charger, 1=L2, 2=quick charger)
  13,
  14,
  15,
  16,
  17, (my home loc had a 0 here, all others had a 1 - need more backups to confirm anything more about that)
  18,
  19,
  20,
  'icon', (internal icon code - 44=normal charger, 30=restaurant, etc)
  22,
  23,
  'distance', (distance + 2000 from point at which the sound plays)
  'direction', (not at all sure what this does in the car)
  26,
  27,
  28,
)


Eventually, I'd like to have anyone/everyone be able to upload/download location backups. The Navigation system in the Leaf is really quite good - all it needs is up-to-date charger data!
Another hope for the future is a smartphone app to sync address book data onto a microSD card.

Anyway, let me know what you think so far, and PM me some backups if you want to help out - they will provide some test data for building out the next features - especially filtering by location.

Solangelist
Posts: 13
Joined: Sun Jun 03, 2012 9:13 am
Delivery Date: 26 Apr 2012
Leaf Number: 123456

Re: Editing the Nav Stored Locations via SD Card

Sat Mar 30, 2013 3:07 pm

This thread is interesting!

I have a basic background q. to this: How do you download the data to an sdcard? How do you upload the modified data?

Do you a second sdcard (the right slot has currently the original sdcard that came up with the car) in the left slot for this? Has card to be preformatted? Or does the sw in the car auto format it? Perhaps all of these basics are covered in another thread here? Could somebody please point me that way? Thank you.

jeffsevpage
Posts: 1
Joined: Sun Jan 19, 2014 12:37 am
Delivery Date: 19 Jan 2014

Re: Editing the Nav Stored Locations via SD Card

Sun Jan 19, 2014 12:50 am

I'm sorry if you know this already. But if you copy and paste 34.009722,-118.489722 into google maps it will show you in the world where its located. In your case these co-ordinates are at 1807-1821 Main St Santa Monica, CA 90401, USA. This is my first attempt at posting in this Forum. Be kind. LOL

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

Fri Jan 31, 2014 7:55 pm

I guess this is the best thread to continue the quest for the bast charge station finder integrated.

Since I got a 2013, it looks like some charge stations, like AFAICT ChargePoint, will report their usage to the Nav system now. But the flaw on the LEAF is still it only more or less talks to Aeronvironment (self_ and ChargePoint. In this area many if not most of the stations are on the SemaConnect network, which happens to be a local company, and now NRG eVgo is big in this region too with a lot of CHAdeMO units popping up around here. None of those stations are being pushed to the LEAF by Nissan, never mind their charging status. So being able to load them into your car automatically so you don't have to drive round and round trying to find one is a major bonus!

Seconds, isn't the closest "distance" you can set 300m? That's what I always use (I have my LEAF set to metric). Why are you calculating the distance plus 2km? Or do you mean 2000 ft which is about 600m?

You think direction is n/2047*360 degrees?

And the last 3 values are clearly not used because they encode, respectively:

-1 (singed 32-bit)
-1 (signed 16-bit)
-1 (signed 16-bit)

And the wiki needs some serious updating.

I just transferred all the Address data from #CO2Fre1 2012 Nissan LEAF SL to my new leased 2013 LEAF SL and they seemed to import perfectly. Which is good because 2 years of charging stations would be a nightmare to try and re-input one-by-one. If we're still trying to collect these, I'd be happy to share some of my data, as long as you promise to redact the non-charging station addresses (or I may do so myself).

And as for the Charging Station flag, what is used for Trickle, what is used for CHAdeMO? I have some of each stored. Can someone post a formula/equation for the weird navigation data. I'm not surprised it doesn't contain altitude even though knowing which floor of a parking garage the EVSE was on would be handy, but if it is using that crazy grid can you express it in terms of x and y for longitude and latitude and a, b, c for the fields we're given?

2014-02-01 Edit 1: I just looked over the Direction data for my saved stations and 0 to 2047 is not the correct interpretation as I have some addresses with values greater than that. AFAICT it's much simpler, it's just the angle multiplied by 10, as in 270.0 degrees is written 2700.
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/

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 Feb 20, 2014 2:00 pm

I finished my python script except for parsing the Grid Data location which others who figured out the algorithm are no longer following this thread. You can see the Python code at https://svn.timehorse.com/public-repos/ ... dresses.py

It would make a good back-end for a my web server with mod_python. But right now, can folks across the world do me a favor and give me the longitude, latitude, grid data, grid x and grid y for a set of addresses so I can see if I can parse this strange algorithm that takes a finite 2-dimensional construct and reduces it to a single dimension. Like, are South American numbers negative?

I wish I had my LEAF to test but it's currently FUBAR all because of a couple of shredded tyres. :(
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/

Return to “Accessories / Mods”