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

Tue Apr 02, 2013 12:52 pm

The "limitation" is on the stock ELM327. If you open it up and swap from CAR-CAN pins to EV-CAN then you can duplicate the WattsLeft live screens.

In the picture at the top I show two versions of the ELM327. The larger one uses four screws so would be fairly easy to change for someone with moderate soldering skills. The "mini" one is sealed closed and looks to be directly connected to the OBDII pins. So one would need to break open the case and cut traces and solder in jumper wires. This is more complicated.

At this time I have not swapped from CAR to EV pins. I want to see what can be done with a standard ELM327 that anyone can buy and use. Having to open it up and make changes greatly limits the number of people who could do this. I am looking for a low cost, easy to get setup monitor for everyone (standard ELM327 + Android APP total cost <$20). The software might even be a Plug-In for Torque but I have not looked into their API.

User avatar
surfingslovak
Vendor
Posts: 3809
Joined: Mon Jun 13, 2011 1:35 pm

Re: Using clone ELM327 Bluetooth OBDII adapter with Leaf

Tue Apr 02, 2013 1:14 pm

Turbo3 wrote:Having to open it up and make changes greatly limits the number of people who could do this. I am looking for a low cost, easy to get setup monitor for everyone (standard ELM327 + Android APP total cost <$20).
Agreed. Perhaps a CAR to EV adapter could be built. It's another unnecessary complication, but perhaps easier to do for the end user than swapping pins.

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

Tue Apr 02, 2013 1:45 pm

surfingslovak wrote:
GregH wrote:That's pretty cool! Maybe we should be spending more time working on ELM327 bluetooth apps for our smartphones rather than new CAN display boards... hmm...
:o
Ha! Only kidding myself I guess.. I'm an embedded hack, not an iOS hack..
'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: 12464
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

Tue Apr 02, 2013 2:21 pm

See this "Android CAN Monitoring App" thread:
http://myimiev.com/forum/viewtopic.php?f=10&t=764" onclick="window.open(this.href);return false;
and deciphering CAN...
http://myimiev.com/forum/viewtopic.php?f=10&t=763" onclick="window.open(this.href);return false;
and iMiEV CAN...
http://myimiev.com/forum/viewtopic.php?f=10&t=727" onclick="window.open(this.href);return false;

They have made some good use of Bluetooth and
ELM-like devices.

Warning: I tried to modify the OBDLink SX
to read other CAN buses, but it seems to have died. :oops:
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

Wed Apr 03, 2013 11:13 pm

Usings Gary's above links I have made some quick and dirty changes to the iMiev APP to take Leaf battery data and work with the ELM327. Needs more work to clean up the display to display all 96 CP voltages. There should be max/min values on the y-axis and the x-axis only goes from CP 1 to 88. I took two traces to see if the data would be the same or close.

Image

Image

Ok, I see now that it only goes up to CP 79 on the ATT Fusion 2 (on the Nexus 7 it goes to 88). So the bars and/or labels for 80 to 88 are probably messing up the y-axis label. Should be easy to fix. For some reason my Nexus 7 running this program will not open a serial connection. Other programs on the Nexus 7 do link to the ELM327 so seems like a Basic4android issues.

These pictures were taken of my ATT Fusion 2 Prepaid phone. Only $39 at Fry's. Don't use the phone part so no service (always in Airplane mode).

It appears that the white background is the problem. The background should be black as it is on the test data before the Leaf data is read in.

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

Thu Apr 04, 2013 10:26 am

Ok, fixed two bugs in moving the battery data into the internal display array. There was no problem with the graphing routine. It was just doing what I told it to do with the bad data I gave it.

If you count you will see that all 96 Cell Pair Voltages are displayed.

Image

Image

Need to add some validation code to make sure only valid data is moved into the array in the case where a response message is lost.

I also want to add a button to request an update. Right now I have to stop then restart the program to get another reading. Also want to try speeding up the data from the Leaf. Right now the frames are sent every 32 msec.

Image
Last edited by Turbo3 on Thu Apr 04, 2013 11:24 am, edited 1 time in total.

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

Thu Apr 04, 2013 11:19 am

Very Cool!! How about some battery temps?
'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: 12464
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

Thu Apr 04, 2013 11:31 am

Good work.

What inexpensive smartphone is Android, with Bluetooth, and
can operate on WiFi or Bluetooth, and has Google Play (to get apps),
all without a monthly phone payment?

My Vizio Android Tablet is/was just shy $200 at Costco, but
I have used it with these iMiEV apps, taking a CAR CAN log from
them and having CAN-Do send selected messages out the PC's
USB port using a mini USB-to-Bluetooth adapter.

Your Fusion 2 at Fry's for $39 seems to be... gone.
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

Thu Apr 04, 2013 11:48 am

You need to watch the Fry's weekly ads. The first one I bought was $79.99 then a few weeks later they dropped it to $59.99 so I went back to Fry's and got $20 back from them. Then in the 3/15/2013 ad it was going for $39.99 so my brother was able to pick up another one for me. Stock number is #7312974.

The code to save the battery/temp is actually from TickTock's CANary code. So adding Temp is just a matter of sending "2104" after I load all the battery data. The code is already there to receive and save the temp data.

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

Thu Apr 04, 2013 2:48 pm

Added the four pack temperatures below the graph. Converted to F using raw thermistor number.

Added simple check to force all pack voltages to be between 3.0 to 4.4 volts. If not it is replaced with 4.0. Later it will be changed to set a flag to get another set of values. So this is temporary to prevent the all white background seen on the first screens.

Image

Next will add max/min/avg voltages like on TickTock's CANary CP screen.

Return to “LEAF CANBus”