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

Re: CAN-Do: a CAN-message Analysis Tool

Mon Jun 27, 2011 2:08 pm

You bet, this is now getting to the fun part, rather than chasing OS/MS deficencies.

1. The Dashboard is meant to "run" while messages are being loaded, either
A. read from a Log file, or
B. read from the CAN busses in real time via the COMM Ports.

Since you do not have the hardware for 1B, we do 1A.

Re-read the Log file WITH the "Run Dashboard" checkbox CHECKED. :D

Since you do not want to sit there watching for 6 hours, the "playback" of the data to the dashboard is ... rather a lot faster.

There is No playback speed control yet, or slider to re-position yourself in the Log's CAN-message stream, but I will probably add those later.

While you play with that, see if you can tell what each field/value is (or might be). Moving the cursor over many/most displays a "tip" about the source or origin of the data.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

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

Re: CAN-Do: a CAN-message Analysis Tool

Mon Jun 27, 2011 2:40 pm

Since you are interested enough to try, I will upload 3 Log files (EV, Car, and AV) from a "drive".

Also, after loading a log, the next step is to use the "Filters" to try and look at the content of CAN-message sequences to discover the meaning of the message's data bytes.

Click "See Filters", and select (click) "EV: State of Charge" and click "Graph Function".

What do you see?

Hide the Graph window, and note the graphing Max and Min values, and the data's max and min values on the Filters page.

Change the graph's Max or Min a bit and Graph Function again.

In the Filters window click "Get Addrs" and then select (click) the "5BC" line in the left-side list of Message Addresses (also called Message IDs). There are only about 3000 of these from the 6-hour log, and data bytes D1 and D2 are of interest.

The selected "EV: State of Charge" recipe says take (mask FF) all 8 bits from D1 and shift them left two bits. Then take the top 2 bits (mask C0) of D2, shift them right (negative) 6 bit positions and combine them with the D1-derived bits ... to form a 10-bit value.

Then, with a graphing a 0-value at the Graph-Window bottom, and 300 at the top ...

With a good Recipe, we start to see meaningful data.

Play, and see if you can discover the meaning of some data.

Try the other recipies.
More later.

Now, I will go "zip" and upload the "driving" logs.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

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

Re: CAN-Do: a CAN-message Analysis Tool

Mon Jun 27, 2011 2:57 pm

Three short Driving Logs are now uploaded in the one GgTest1.zip file.

I see that I need to change the dashboard's 271 = 100% SOC to
the more probably 100% raw value, of 281.

Enjoy, Later, Gary
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

lincomatic
Posts: 316
Joined: Fri Jun 10, 2011 10:01 am
Delivery Date: 06 Apr 2011
Leaf Number: 3819

Re: CAN-Do: a CAN-message Analysis Tool

Mon Jun 27, 2011 3:26 pm

Very cool! Thanks! A lot to play with. OK, now I also have to get up to speed on the CAN bus. Lots of reading to do in your other threads. Are the log files just a binary dump of what you're reading on the bus, or do you have a special format?

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

Re: CAN-Do: a CAN-message Analysis Tool

Mon Jun 27, 2011 10:07 pm

Each CAN-message has an ID, like a name. That message has up to 8 bytes of data, apparently used by Nissan as a series of (up to) 8 x 8 = 64 bits.

For a selected message on a selected CAN-buss, the information content is probably fairly fixed, though some bits can be "flags" that change the meaning of other bits in the message data.

This is most easily seen by looking at the recipe for "EV: Charging Bars" and the recipe for "EV: Capacity Bars". (Do I have those recipe names almost correct? I will check tomorrow.) The same data field has a different meaning depending upon another field's value (see the "D#, mask, equals" part of the recipe).

More info later.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

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

Re: CAN-Do: a CAN-message Analysis Tool

Tue Jul 26, 2011 3:07 pm

Free, Free, Free - Investigate the LEAF's CAN message Data

Just posted CAN-Do version 1.4.4 on-line at www.wwwsite.com/puzzles/cando/
This version adds Date/Time Stamps as message data is collected from the COM port.

Please try to run this VB6 program on your Windows system.
Please let me know the details if your OS cannot run it directly as is.

Once it runs, please download a CAN-Log file, and the latest "Recipe" file.
Then, load the Log, find the SOC "recipe" on the "Filters" page, and see the graph.

Thanks for trying this, Gary
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

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

Re: CAN-Do: a CAN-message Analysis Tool

Mon Aug 08, 2011 11:01 pm

gascant (and others),
If you want to use CAN-Do, read this thread to get started.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

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

Re: CAN-Do: a CAN-message Analysis Tool

Sun Aug 14, 2011 10:38 pm

Can-Do version 1.4.5 has been posted at:
www.wwwsite.com/puzzles/cando/

V145 added the plotting of multiple variables/functions
(in different colors) on the same Plot.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

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

Re: CAN-Do: a CAN-message Analysis Tool

Sun Aug 21, 2011 9:05 am

CAN-Do v148 has been posted at
http://www.wwwsite.com/puzzles/cando/" onclick="window.open(this.href);return false;

This versions displays Battery Pack Output (Volts and Amps) on
the CAN-Do Dashboard. It also has a way to speed up the
Dashboard display by processing only 1 of every N messages.

However, you can see (what appears to be) the DC L2 charging amps
almost "steady" at about 8 amps in (for example -8.2), and
the voltage climbing from about 350 to near 400 volts
as the "6-hour" charging Log is read in.

Also, one can plot (graph) just a subset of the messages,
to examine interesting events in more detail. Double-click and "drag"
on the Plot to select a horizontal region to display as the next "function" is graphed.

Become a LEAF-CAN detective with a Windows PC and some time.
It takes only minutes to download, run (*), and see your first plots.

(*) On many systems, no installation is required.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

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

Re: CAN-Do: a CAN-message Analysis Tool

Mon Aug 29, 2011 8:43 pm

CAN-Do version 1.49 is on-line at:
http://www.wwwsite.com/puzzles/cando/" onclick="window.open(this.href);return false;

In this version of CAN-Do, I added:
1. reading a 4th comm port for Logging the QC-CAN bus message data.
2. many tool-tips.

I hope my addition of QC Logging did not "break" the Logging process.
I have yet to try that out.
Last edited by garygid on Tue Oct 11, 2011 8:49 pm, edited 1 time in total.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

Return to “LEAF CANBus”