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

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Fri Apr 05, 2013 9:58 pm

Suggestions:
1. To make the horizontal axis more readable, put tic
marks every 5 bars, and numbers every 10.

2. To make the vertical axis more readable, draw lines
every 2, 3, or 4 mv, and label every other line.

Caution: Getting these Requested values requires
writing to the CAN bus, and the car might not be well
tested with these requests happening while driving.
So, it might be best to limit them to occasional use.

But, so far tests using the Requests seem encoursging.
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

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: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Sat Apr 06, 2013 12:05 am

Here are the suggested updates to the x/y axis labels.

Image

I see there is a bug in the min value setting as the bottom level should be 0.0001 mv lower than min voltage. As a result the lowest cell (#11) has no green bar.

Maybe use a large font for x-axis labels and not rotate them 90 degrees.

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

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Sat Apr 06, 2013 4:47 am

Looking good.
Yes, you could not rotate the horizontal axis labels,
and use the same font as the vertical axis.

Having the max value go to the top is good, it just uses the graph area better.

Having the min value "at" the bottom axis is also OK, since there are
usually only a few, the no-bar aspect makes it easy to find, and again
the plot area is used better. Also, the low label on the vertical axis is
always the min value, easy to find and can be read directly.

To solve the missing-bar look of the min-height bars, I made these
bars one pixel high. You might find that effect pleasing.
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

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

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Sat Apr 06, 2013 5:32 am

You might add one black pixel column between
the vertical axis bar and the first green bar.

You are showing (as it works out on this phone's screen)
4 green bars, and a wider space, which is fine.
Your current version shows 3 groups of 5 already.

However, in optimizing for this screen resolution,
if one wanted to even bother, you could show groups of 5
bars, then an extra space, to match the tic marks, and save
a couple of pixels. Since the wider spaces appear because
of floating to integer conversion, just removing a few pixels
from the width of the plot should make the spacing
become 5 bars instead of 4 bars.

------
I believe that you want to add additional screens, and
a Navigation button could be Index, going to a set of
GoTo Screen buttons. So, see below...

Eventually the two buttons and Connected status box
could be not drawn on this screen, giving more room
to use for making a readable display.

Then, when the screen is touched (not in the upper icon area)
the control/navigation buttons could appear, quickly
overlaying the current data screen.

These Navigation buttons might include Prev and Next
to get through a series of data screens, but there might
be an "index" ("Go To... ") button that goes to a screen of
buttons that go directly to the desired data screens.

So, tap for Control, like Start and Stop, Settings, and
Index (or GoTo), then a second tap on GoTo (or Index),
and a third tap taking one to the desired data screen,
usually showing the "old" data, so the user could
study the same data as displayed several different
ways.

Another Control button would be Re-Request, or Update,
or some such that would re-Request the data for the
current screen, or set of screens. Perhaps a future
feature would be auto-request every N seconds, but
that should NOT be the default, for liability reasons.
The writing of a Request to the CAN bus is then entirely
done at the user's request, either once manually (the
power-On default of N = 0), or periodically, but only
after being specifically set up by the user.

Screens that just use passive listening reading of the
CAN bus can be updated as often as the messages
and data-processing allows.

The Connected status might be done with the system
Bluetooth icon, which looks dimmed on your screen.
But, the system might have other icons available,
or you could make one for your own, and put it in an
unused corner.
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

GregH
Posts: 860
Joined: Fri Jul 01, 2011 4:16 pm
Delivery Date: 13 Jun 2011
Leaf Number: 26967
Location: Irvine, CA

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Sat Apr 06, 2013 6:33 am

garygid wrote:Is your CAP% a percent of 66 amp-hours capacity, which is assuming
that a new battery pack holds 66 amp-hours when "fully" charged
to 281 GIDs?

Is this SOC just a high-resolution version of the SOC read from
the EV bus messages?

Note that the %SOC is of little use during driving, and the extra
precision is useless. When the capacity is down to 50%, the SOC
will still read around 95% after a full charge, but the %GIDs (percentage
of 281) will read about 50%, indicating an estimate of the usable
fuel on board.

Also, since the battery pack declines in voltage as it is discharged,
one amp-hour from a nearly fully charged pack provides more energy
than one amp-hour provides when the pack is mostly discharged, a
ratio of about 4:3 between the two.
IMHO I don't think we should assume that all Nissan EVs (or future Leafs for that matter) will always have 66Ah battery packs or charge to 281Gids.. When you have an absolute like Gids or Ah, I'd much rather just see the actual number... Just sayin.

Yes, the 24bit SOC is the same as the 0x55b EV-CAN message. Ie when it rolls over from 74.1999 to 74.2000 the 0x55b message will roll from 74.1 to 74.2.

And yes, agreed 4 decimal places of precision is somewhat silly and yes agree that Gids are more valuable to the driver than SOC.
'17 blue Volt Premier w/ACC
'12 SL black Leaf
'11 SL blue Leaf
RAV4-EV 2002-2005
Gen1 & Gen2 EV1 1997-2003
PV 2.4Kw, 10kWh lithium battery SCE TOU-DA

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

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Sat Apr 06, 2013 7:29 am

Yes, pretty much any number is meaningless
without some kind of units or reference.

But, wonderful progress in understanding the
results of the Querys.

Now, perhaps we can find a way to query the
hardware/firmware numbers of the different
internal components, the VIN, etc.?

In ICE cars, there is a message to broadcast that asks
each member on the bus to respond with some kind
if ID and perhaps other info.
See SOC/GID-Meter and CAN-Do Info
2010 Prius, now for sale
2011 LEAF, sold in 2015
2018 Tesla Model 3
2014 Tesla S, Model 3 in 2019
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
To Sell: X-treme 5000Li EV motorcycle

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: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Sat Apr 06, 2013 9:44 am

Fixed min y-axis bug, changed x-axis labels and added AHr value. The CAP starting AHr will be user changable to give correct % remaining to handle the case of minor pack differences or when Nissan comes out with higher capacity batteries. I like to be able to see how much capacity I have lost.

Android scales the drawing to fit the current screen size. So the extra pixels added are not under my control. On my Nexus 7 there are no extra pixels every four bars. Buttons and placement are in no way final. Just the way the iMiev code was written. This is still mostly temporary coding. Needs major rework on the inner workings before it is ready for testing by others.

Image

I need to work on WattsLeft sales and taxes, so there will not be any updates for a day or so.

laalan
Posts: 106
Joined: Thu Apr 14, 2011 6:18 pm
Delivery Date: 11 Oct 2018
Leaf Number: 300383
Location: Orange, CA

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Sat Apr 06, 2013 1:52 pm

Is there an easy summary such as buy this adapter, do this to it, and install this software found at this location on my Android devices. Like a wikipedia how to summary?

Would love to do it. Too many posts to pour through.

Thank you for all the efforts people have expended on this. What an awesome community!
Delivered 7/1/2011 &
a second one 8/1/2011 (orphan)
Traded both in and picked up Red 2013 6/18/13 + Tesla S
May 2015 RAV4 EV
Orange, CA

sirfergy
Posts: 104
Joined: Wed Mar 30, 2011 3:57 pm
Delivery Date: 28 Jun 2011
Leaf Number: 4777

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Tue Apr 09, 2013 8:55 pm

For those of you who use Windows Phone 8, I have a test app that is able to send commands and receive data from the ELM327 Bluetooth OBD II reader when connected to the LEAF. It's a long ways away from a full application, but there is hope that this will work on platforms other than Android!

kubel
Posts: 1609
Joined: Mon Feb 13, 2012 11:38 am
Leaf Number: 19628
Location: Southeast Michigan

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Sat Apr 13, 2013 6:56 pm

Looking exciting.
2012 Nissan LEAF SV
20% degradation in 42k miles
Leased 5-17-2012, Returned 1-15-2016


2017 Chevy Volt LT
Siren Red Tintcoat
Leased 10-21-2016

Return to “LEAF CANBus”