Jump to content

Recommended Posts

Made a new test during Friday evening, at first the real time data worked fine in the driving mode and I received the data in ABRP that was uploaded by LeafSpy. However unfortunately it stopped working after a while and I also saw some error messages in LeafSpy (they disappear so quickly that I did not get a screenshot).

Regarding display SoC and Gids, I need to read further on the topic to be able to give some input. But probably it is best to base it on Gids as Gyula proposes.

 @Gyula, do you know if the lower end of the SoC window is fixed (ex LBW, VLBW and 0% display SoC) and it is only the upper end of the SoC window that shrinks with decreased SOH? I guess that would make it simpler.

Link to comment
Share on other sites

1 hour ago, Jilldris said:

Made a new test during Friday evening, at first the real time data worked fine in the driving mode and I received the data in ABRP that was uploaded by LeafSpy. However unfortunately it stopped working after a while and I also saw some error messages in LeafSpy (they disappear so quickly that I did not get a screenshot).

Regarding display SoC and Gids, I need to read further on the topic to be able to give some input. But probably it is best to base it on Gids as Gyula proposes.

 @Gyula, do you know if the lower end of the SoC window is fixed (ex LBW, VLBW and 0% display SoC) and it is only the upper end of the SoC window that shrinks with decreased SOH? I guess that would make it simpler.

Saw that one in the log, had a divide-by-zero error that should be solved now.  Great to see that you're seeing data in driving mode now!

Link to comment
Share on other sites

45 minutes ago, Jason (ABRP) said:

Saw that one in the log, had a divide-by-zero error that should be solved now.  Great to see that you're seeing data in driving mode now!

Ah ok, perfect! Will try again but will take some time until I have access to the car. 

Link to comment
Share on other sites

No rush, there's several others logging Leaf data already just from having the instructions posted on the blog, so if errors are generated I'll see them and fix them.  Will probably be some growing pains due to the different format between LeafSpy and Torque

Link to comment
Share on other sites

I get this error every 2 seconds or something in leaf spy, I'm not really sure if it's related to ABRP. 

 

@Jilldris what do you mean by real time data in ABRP ? Yesterday when I was trying ABRP, I saw the percentage where the car should be, but did not see data from leaf spy.

 

@Jason (ABRP) how can we now that our data is sent correctly to you ? On Thursday I made a test Liege to Gembloux (Belgium) and yesterday Liège to Brussels and back to Liège.

 

Screenshot_20181202-185736_LeafSpy Pro.jpg

Link to comment
Share on other sites

@Benja - That error means I'm still sending the wrong response from the server.  Torque expects one kind of response, and I haven't quite figured out how to format the response the way LeafSpy expects, I suppose.  If it's any consolation, I do see some data from several leafs, so it's likely yours is one of them! Send me a PM if you want me to check on your information directly, so we can figure out which one is yours.

I am working on a telemetry display so you can just look at a little page on the planner to see your data and confirm it exists.

  • Thanks 1
Link to comment
Share on other sites

To use the LeafSpy data while driving, all you have to do is get LeafSpy flowing data to the server, then start a plan on the website, it'll ask you if you want to use the live data to start the plan and then when you start driving it'll show you a graph tracking your progress versus the planned progress.  Word of warning, I still have some naive assumptions about the SoC percentage, so it won't quite match the plan yet.

Link to comment
Share on other sites

As a matter of fact, we do take that into account! We used charts like the ones published by Fastned (link) to create the charge curves for the various Leaf models.  It should be very close to what you actually experience in the vehicle.  I will also note that we don't take battery temperature into account when charging yet.  Sometime in the future, perhaps.

  • Thanks 1
Link to comment
Share on other sites

Couple initial comparisons from a brand new 2019 LEAF, almost all freeway driving using cruise control set at the speed limit. Obviously very limited data, but so far the battery usage has been close to the ABRP estimate, except when heated seats and heater are in use, when it can materially exceed the estimate.

Let me know if there's a more helpful way I can provide this information than simply dumping it in here.

 

https://abetterrouteplanner.com/?plan_uuid=4116fdbc-5092-4f26-a664-c6ec454bb4d4

  • Leg 1
    • Planned: 20%
    • Actual:  18%
  • Leg 2
    • Planned: 8%
    • Actual:  9%

https://abetterrouteplanner.com/?plan_uuid=667e2ab4-5ef2-46b9-86dd-dcc1fb9eff59

  • Leg 1
    • Planned: 28%
    • Actual: 31%
  • NOTE: 1x seat warmer, moderate heater usage, heated steering wheel

https://abetterrouteplanner.com/?plan_uuid=a348ca4a-537d-40cd-943d-e61fb35626a7

  • Overall (did not track legs)
    • Planned: 13%
    • Actual:  18%
  • NOTE: 2x seat warmer, moderate heater usage, heated steering wheel
Link to comment
Share on other sites

That's perfect, actually, great to know our alpha estimates are quite close! I see you adjusted the temperature in those plans, I assume to match the temperature of the day?

I'm glad that the planner is slightly pessimistic compared to your actual driving results, until we can bring the quality up to snuff with real-life driving data I'd rather it under-promise so your car can over-deliver.  If you'd like to do a direct comparison on your trip one of the best ways to do so is to have your phone up on your dashboard with ABRP and the plan open.  It will offer a battery display:

in_car_shot.png

If you adjust that display using the arrows to match your actual SoC (or tap the middle of the battery if our number is accurate), we'll log that and use that to improve our Leaf model. 

Link to comment
Share on other sites

Quote

I see you adjusted the temperature in those plans, I assume to match the temperature of the day?

That's correct, although it looks like I forgot to adjust the last one. It's not far off though. I also added extra weight for another passenger + cargo, trying to get as close as possible.

As far as the interface in your screenshot, am I just supposed to record the SoC whenever I am able?

Link to comment
Share on other sites

21 hours ago, Rav said:

Will you be adding the 60 kWh battery option for the Nissan leaf anytime soon?

Yep, once a published charge curve is available, I suppose I could estimate it, but given that this is the first Leaf to charge >50kW, I think I'd end up pretty wrong.  That and there are substantial differences between the 24, 30, and 40kWh variants already.

8 hours ago, jakedouglas said:

That's correct, although it looks like I forgot to adjust the last one. It's not far off though. I also added extra weight for another passenger + cargo, trying to get as close as possible.

As far as the interface in your screenshot, am I just supposed to record the SoC whenever I am able?

Yes, exactly! If our prediction spot on, tap the middle of the battery icon.  If our prediction is off, adjust using the < > buttons.  Either way, it will get logged and we can use it to improve the model.

Link to comment
Share on other sites

Yesterday I managed to submit SoC for one route, but another I couldn't get to work. I didn't want to have my phone open while driving, so I open it when I arrived at the destination. The first time it reflected that I was now at the destination and gave me the estimated SoC, which I adjusted and submitted. However the second time, it did not acknowledge that I had moved at all and still showed my location as the being the starting point of the trip.

Probably just unreliable from having the phone asleep while driving, but it would be nice to support that if possible.

Link to comment
Share on other sites

On 11/13/2018 at 2:10 AM, Jason (ABRP) said:

That's an added layer of complication for ABRP, since it means that what's reported by LeafSpy via the server logging is likely different what's reported in the car.  I'd prefer to have the car and telemetry in the website match up so there's no confusion on the part of the driver.

According the the User's Manual I only have SoC, AHr capacity (which is useless without the current voltage), Lat/Long, and a whole host of other fairly useless parameters.

I suspect that for simplicity's sake, they've marked 10% (actual) as 0% (displayed) for all of their vehicles.  For now, until I get some better data, I'll assume that's the case, and adjust the consumption and usable battery size accordingly.  Honestly, this is probably the better way to go, to predict routes conservatively until we get really solid driving data.

More Data, better results! But, 

could I check my uploads? I don't know if they works? (Leaf Spy pro) 

Link to comment
Share on other sites

On 1/8/2019 at 3:09 AM, Jason (ABRP) said:

Yep, once a published charge curve is available, I suppose I could estimate it, but given that this is the first Leaf to charge >50kW, I think I'd end up pretty wrong.  That and there are substantial differences between the 24, 30, and 40kWh variants already.

Yes, exactly! If our prediction spot on, tap the middle of the battery icon.  If our prediction is off, adjust using the < > buttons.  Either way, it will get logged and we can use it to improve the model.

Do you use the new charge curve of the Nissan Leaf 2? Or the old "rapidgate" curve. 

The charging speed is now improved. (late 2018 Models) 

?

Graphic/Data from Tsla Bjorn

Screenshot_20190110-001826.png

Link to comment
Share on other sites

7 hours ago, jakedouglas said:

Yesterday I managed to submit SoC for one route, but another I couldn't get to work. I didn't want to have my phone open while driving, so I open it when I arrived at the destination. The first time it reflected that I was now at the destination and gave me the estimated SoC, which I adjusted and submitted. However the second time, it did not acknowledge that I had moved at all and still showed my location as the being the starting point of the trip.

Probably just unreliable from having the phone asleep while driving, but it would be nice to support that if possible.

Very likely.  iOS and Android both squash webpages in the background.  Not easy to do from a website, but will be much more doable when we get around to building an app.

 
1 hour ago, Stefan_K said:

More Data, better results! But, 

could I check my uploads? I don't know if they works? (Leaf Spy pro) 

I don't see an entry in the system for you (anything resembling stefan), and I see a lot of logging of "unknown user tried to send us data", so is it possible you have not yet registered on the planner site? 

1 hour ago, Stefan_K said:

Do you use the new charge curve of the Nissan Leaf 2? Or the old "rapidgate" curve. 

The charging speed is now improved. (late 2018 Models) 

?

Graphic/Data from Tsla Bjorn

We use the non-rapidgate "ideal" charge curve for the 2018 leaf.  When I get some time I will try to guess the Leaf e+ charge curve so we can get that in the planner and give it a shot!

  • Like 1
Link to comment
Share on other sites

I recorded a 250km trip including 3 fast charges earlier this week but I have no way of knowing whether it was successfully sent to ABRP.  Obviously i can tweak numbers such as reference usage @ 110km/h and battery degradation to get a match between my data and ABRP.  However your numbers don't exactly line up, regardless of actual results.

https://abetterrouteplanner.com/?plan_uuid=7d5ca443-9203-4f00-a84e-2d3c4091636b  is a 249km trip averaging 6.22 km/kWh.  Battery usage is 208% of capacity and working that backwards it implies the battery capacity is 19.2 kWh.  The saved settings for this are 24 kWh model with zero battery degradation.  That should be a (usable) battery capacity of around 22.5 kWh.

Incidentally the speed limit in NZ is 100km/h - any chance of being able to put in reference usage @ nominated speed?  For our car it appears to be about 5.7 km/kWh at 100 km/h and I have modelled using 5km/kWh @110.

Here is my basic analysis of the trip data using both dash and Leafspy log data.  The last couple of columns are my estimates of usable capacity and numbers below the table are totals for overall efficiency calculations.

Time Odo Bat % km/kWh chg kWh SOC SOH GID 100% - GID 100% - Chg/Use
10:53:00 13521 87%     85.8% 90.0% 222 20.4  
11:50:00 13590 32% 7.4   39.6% 90.0% 83 20.8 17.0
12:05:00 13590 65%   6.53 67.3% 90.3% 167 20.6 19.8
13:01:00 13648 23% 7.3   30.9% 90.3% 59 20.5 18.9
16:10:00 13648 23%     30.1% 90.7% 58 20.2  
16:19:00 13652 19% 4.7   27.2% 90.7% 50 21.1  
16:40:00 13652 70%   10.55 71.5% 90.7% 181 20.7 20.7
17:28:00 13709 25% 6.8   34.0% 90.7% 66 21.1 18.6
17:50:00 13709 80%   10.67 79.8% 91.3% 207 20.7 19.4
18:44:00 13779 23% 6.3   31.8% 91.3% 62 21.6 19.5
                20.8 19.1
  258 203%              
                42.1 38.8
                6.12 6.65

 

Link to comment
Share on other sites

We made a trip last weekend. After adjusting the consumption which seems to be ~200wh/km now in winter the prediction was very accuracy. And I really liked the mapless mode! Well done!

A couple of times I had problem with that LeafSpy lost connection and reconnected again. It might be my OBD adapter that is not that good. However everytime that happend it seemed to send strange data to ABRP. At least some times if showed negative SOC value which caused a dip in the actual SOC plot, see picture. Is there some possibility to detected this and filter this kind of rubbish data?

image.thumb.png.580f6bb34a88903b64f29eb0fb4a4c64.png

Another thing I noticed was that actual SOC is no longer the same value as showed in LeafSpy. I guess you have added some kind of calculation to estimate the SOC shown in the car display instead. Is that correct? Unfortunatly it did not correspond so well for us. Is it possible to propose another way to calculate it, or maybe this corrsponds well for others?

 

Edited by Jilldris
Link to comment
Share on other sites

As it turns out, I had another user propose a computation method to me in private messages, hopefully it matches up with what you were going to suggest!  Decoding the inputs I'm receiving from LeafSpy, here's the formula he proposed to use to replicate the displayed SoC:
Gids/(Gids_max*Ahr/Ahr_max)

Where Gids_max = 281, 365, 460 and Ahr_max = 65.4, 83.5, 112.6 (respectively for the 24, 30, 40kWh Leafs)

The idea being that Gids is a measure of the current actual capacity of the battery, and Ahr is the measure of the maximum capacity of the battery with degradation included.  I've implemented this now on the server, so hopefully it doesn't cause any issues and matches up better to your displayed SoC! I've also changed it so that it won't do anything with data that includes a negative SoC.  Did you have any other ways you'd want the filter to behave?

If you'd like to review what LeafSpy sends my way, and make a different suggestion it's on pgs 39-40 of the LeafSpy user manual

  • Like 1
Link to comment
Share on other sites

17 hours ago, Jason (ABRP) said:

As it turns out, I had another user propose a computation method to me in private messages, hopefully it matches up with what you were going to suggest!  Decoding the inputs I'm receiving from LeafSpy, here's the formula he proposed to use to replicate the displayed SoC:
 Gids/(Gids_max*Ahr/Ahr_max)

 Where Gids_max = 281, 365, 460 and Ahr_max = 65.4, 83.5, 112.6 (respectively for the 24, 30, 40kWh Leafs)

 The idea being that Gids is a measure of the current actual capacity of the battery, and Ahr is the measure of the maximum capacity of the battery with degradation included.  I've implemented this now on the server, so hopefully it doesn't cause any issues and matches up better to your displayed SoC! I've also changed it so that it won't do anything with data that includes a negative SoC.  Did you have any other ways you'd want the filter to behave?

 If you'd like to review what LeafSpy sends my way, and make a different suggestion it's on pgs 39-40 of the LeafSpy user manual

Interesting. Was this the calculation used last weekend or have it been added later?

Sounds smart to use Ahr/Ahr_max to calculate SOH. However I see some discrepancy’s with our car, maybe the cars are different to some extent? Regarding Ahr_max I looked at some old saved data where I can see SOH and Ahr. When calculating Ahr at 100 SOH for our car it is 115,44, see below.

image.png.e2dd4c94606f05a8561857507995d89d.png

Also regarding GIDS. Our car charges usually to 490-500 GIDS when full, e.g. quite much more than 460.  
The formula also assumes that GIDS are 0 when the display shows 0% which is probably never the case. Our car rather have ~50 GIDS when the display shows 0%.

So for our car I would say that the formula would more be more like below (if I did not mess up the straight line equation :classic_tongue: )
SOC=(Gids/((Gids_max/Gids_min)*(Ahr/Ahr_min)-Gids_min))-(1/((Gids_max/Gids_min)*(Ahr/Ahr_min)-1))
Where
Gids_max=495
Gids_min=50
Ahr_max=115,44

This assumes the SOC window only shrinks from the top with decreasing SOH, does anyone knows if that is they case? Anyway it is probably a very good approximation.

 

Regarding the filter for faulty data. Thanks for the quick fix for that! Amazingly quick as always! ?

image.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...