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

Fri Apr 05, 2013 2:53 pm

Yes there will be a setup screen where you can change various parameters like sample times.

I have just added one of the most important pieces of information you will need, your battery pack health.

After SOC there is now a CAP value which should be the current capacity of you battery pack. This is how much energy you can store in the battery not how much is currently there. I my case with about 24,000 miles my max gids at 100% charge is 263 (263/281 = 93.59%).

This could be important information if you are going to buy a used Leaf. So even if SOC is 10% the CAP still tells you how high you could charge it to.

Image

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

Fri Apr 05, 2013 3:34 pm

Will the source code for your app be available? I'm primarily interested in the Bluetooth stuff and the commands.

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

Fri Apr 05, 2013 3:54 pm

There is still alot of work to do on the code. So for now, I will probably just make the apk file available for testing.

Are you familiar with Basic4android? I am learning as I go.

Things to do:
- Auto polling for data
- Gary's Histogram code for CP voltages
- Screen to show braking split between regen and physical brakes.
- Saving data to uSD card
- Parameter setting menu
- Trip/Charge duration timer
- Power/Regen meter (if battery current/voltage is readable from CAR-CAN)

What other things are people interested in seeing?

One thing to keep in mind is that the BT OBDII adapter is always powered on when plugged in. It is warm to the touch when I pull it out. So it draws a lot of current. I will have to measure the current some time. My WattsLeft product draws less than 2ma in sleep mode so there is no danger of draining the 12 volt battery if left in all the time. That may not be the case for the BT OBDII adapter.

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

Fri Apr 05, 2013 4:09 pm

The internet has a few examples of Windows Phone 8 working with SPP based Bluetooth devices, so I wanted to see how you send commands, and which commands so I can try it on WP8.

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

Fri Apr 05, 2013 4:21 pm

The commands I issue to get the pack data are listed on the first page. They look like modem commands and start with AT. The last one "21 02 is the request to the car. Look for GregH's post on how to decode it.

If you go to the ELM website you can download their manual (http://www.elmelectronics.com" onclick="window.open(this.href);return false; look for ELM327 OBD to RS232 Interpreter).

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

Fri Apr 05, 2013 4:40 pm

I didn't see any posts on where SoC and Capacity for the LEAF are, would you mind detailing?

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

Fri Apr 05, 2013 5:42 pm

I guess GregH has not had time to update his post yet. He just found those two this morning.

Group 1 (21 01) SOC = 5th line last three bytes, CAP = 6th (last) line second, third and fourth bytes.

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

Fri Apr 05, 2013 7:01 pm

Thanks!

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

Fri Apr 05, 2013 9:19 pm

Turbo3 wrote:I guess GregH has not had time to update his post yet. He just found those two this morning.

Group 1 (21 01) SOC = 5th line last three bytes, CAP = 6th (last) line second, third and fourth bytes.
I've added the hi-res SOC info to the first post in my thread, also copied the temperature data there as well. I'd been hesitant to post the capacity details until we can get a few more cars to confirm, but it looks like the Ah capacity as XX.XXXX Ah (66Ah in a new battery) and its in the 3rd-5th bytes on the last line of group 1. My new pack reports 0A12E6... 66.0198Ah.
'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

Fri Apr 05, 2013 9:47 pm

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.
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

Return to “LEAF CANBus”