Datalogging EV-CAN Bus Information through OBDII

Toyota Rav4 EV Forum

Help Support Toyota Rav4 EV Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

TonyWilliams

Well-known member
Joined
Nov 14, 2012
Messages
4,131
Location
San Diego county, California USA
We opened up the communications "Gateway computer" module at the left rear of the Rav4, and logged data for a future "energy level" instrument.


Rav4loggingData1_zps3fed23f5.jpg




Here is the Tesla proprietary connector. Pins 6 and 14 carry all the good stuff. The purple-ish connector is the antenna for the cellular phone:


Rav4loggingDataTeslaPort_zps1b504574.jpg




Here's a picture of the hardware. It has an AT&T SIM card on it, cellular phone, and other assorted hardware to communicate the data in the car to Tesla and Toyota:


Rav4loggingDataECUcard_zps15e5bfc9.jpg




We did log off the OBD2 port under the dash, but it doesn't appear to have any EV data:


Rav4loggingData4_zps010f43f8.jpg




Here's a stream of data from "102". The data at the left is the time in milliseconds. This stream went up numerically (in hexidecimal) as the car charged, and stopped when the charge was interrupted. We also did a drive with all the equipment connected to log that data as well:


Rav4loggingData2_zps455625e4.jpg
 
Hi Tony. If I may ask, what was the purpose of what you were doing? ANd what future "energy level" instrument are you referring to?
 
Dsinned said:
Hi Tony. If I may ask, what was the purpose of what you were doing? ANd what future "energy level" instrument are you referring to?

We will have an instrument similar to those built for the Nissan LEAF that will display, amongst other things, a percentage of usable power left, and whatever info that folks find interesting.

It makes for a much easier time determining range. The percentages at the left of my range chart will actually mean something :cool:



pic



Gid-meter-300x179.jpg
 
Looks like a neat gadget Tony. Are you planning to share you knowledge on how to make such a thing with the forum members here, or is this something you plan to sell on Ebay or something commerically? Will it be easy to install?
 
Dsinned said:
Looks like a neat gadget Tony. Are you planning to share you knowledge on how to make such a thing with the forum members here, or is this something you plan to sell on Ebay or something commerically? Will it be easy to install?

The first one pictured, "LEAFscan", will be available soon at http://www.EVSEupgrade.com, however it has not been adapted (yet) to the Rav4.

There are several models and one kit on the market for a "Gidmeter" (the second picture in the post above). They all just plug into the OBD2 port, and you can put it anywhere you want. The port on Rav4, unfortunately, is in the left rear corner of the car. So, we either need to route one twisted pair from there to the dash area, or find the signal for pin 6 and 14 somewhere in that area to tap into. Since I plan to run a dedicated 12v to the trailer lights which will also power the fuel filler door light, I'll run a twisted pair with it.

The meter will show the usable energy in a percent, which will be particularly helpful in the Rav4 with no "fuel gauge" indications for anything above 80%.

Yes, we share all knowledge. We even encourage folks who are tech savvy to help us find and identify signals. What we do is download all the data streams (with a current Gidmeter), then using a program written specifically to do this called "CANDO", we try to match up the hundreds of signals to the various pieces of information.

Obviously, one of those bits of info that we want first is the Tesla report of battery capacity (which we may have already found). That will be the basis for our fuel gauge. In the Nissan LEAF, that information is based on an inductive coulomb counter, and reported in 80 watt/hour units. Therefore, a 24kWh LEAF battery would show 24k/80 = 300 "Gids".

Like the Rav4, it doesn't use all that 24kWh capacity, so at 100% charging, the LEAF shows 281 Gids multiplied by 80 = 22.48kWh stored. Therefore, we make 281 = 100% on the Gidmeter. Turtle mode comes on at about 3%, and the relay opens at 2% to disconnect the battery (dead on the road). So, the real formula for usable percent should be 281 Gids - 8 Gids at the bottom = 273 usable Gids.

There is energy expended to pull that energy out of the battery that will make the the total usable in a LEAF at 21kWh for a new condition, 70F or greater temperature battery. As the battery degrades, or is cold, the usable energy will be less, and reflected in the Gidmeter.

These are many of the same things I expect with the Rav4.
 
Tony, I still have the Gidmeter from my traded in LEAF. Will I eventually be able to modify it to interface with the RAV4 EV or should I sell it and wait for the RAV4 EV Gidmeter?
 
Ampster said:
Any update on the Gidometer for the RAV?
According to Phil, there is an ethernet port on the box in the trunk. Conveniently, there is a power outlet (cigarette lighter right there). I would think the best way to do a gidometer is to add a router with wireless capability via the ethernet port to the box. Then add a wireless display to show the SOC. However, one need to decode the CAN bus (which is in the box where the proposed router is connected to).
 
Sorry, I haven't worked on it at all. We have a OPENevse workshop coming up Feb 9, so maybe we'll look at it then.

My house is being painted this week, and I also decided to clean out the garage, paint the floor, install more charge stations, add lighting, blah, blah, blah.

Tony
 
waidy said:
Ampster said:
Any update on the Gidometer for the RAV?
According to Phil, there is an ethernet port on the box in the trunk. Conveniently, there is a power outlet (cigarette lighter right there). I would think the best way to do a gidometer is to add a router with wireless capability via the ethernet port to the box. Then add a wireless display to show the SOC. However, one need to decode the CAN bus (which is in the box where the proposed router is connected to).

My plan was a simple twisted pair fished from the rear mounted Tesla communications box to the dash area. But, you method certainly has merit. I could watch SOC from any computer anywhere in the world!
 
TonyWilliams said:
Sorry, I haven't worked on it at all. We have a OPENevse workshop coming up Feb 9, so maybe we'll look at it then.

My house is being painted this week, and I also decided to clean out the garage, paint the floor, install more charge stations, add lighting, blah, blah, blah.

Tony

I'll bet the SO is happy that some of her "Honeydo" projects are getting done.
 
Has anyone played around with the OBD II port on the Rav4 EV? A lot of the stuff one normally sees there is ICE-engine oriented. Has anyone plugged a monitor in to see what the Rav4 does while you're driving it?

(I'm tempted to get a monitor just to try it out but the Rav4 is the only vehicle i own new enough to have an OBD II port, so if there's nothing useful there, it'd be silly...)
 
There are no standard PIDs on the front (Toyota) OBD port. Everything is Toyota proprietary. Because there are no emissions, there are no requirements to provide the standard PIDs.
 
Hi Tony... Have you had any time to make progress on this effort? I'm not planning to renew the Safety Connect subscription, but would love to see SoC and get charge completion notifications. A data-logging device connected to a hotspot or cellular-tether device would be a perfect solution.
 
ken830 said:
Hi Tony... Have you had any time to make progress on this effort? I'm not planning to renew the Safety Connect subscription, but would love to see SoC and get charge completion notifications. A data-logging device connected to a hotspot or cellular-tether device would be a perfect solution.

Sorry, but I haven't had time to commercialize this.
 
TonyWilliams said:
ken830 said:
Hi Tony... Have you had any time to make progress on this effort? I'm not planning to renew the Safety Connect subscription, but would love to see SoC and get charge completion notifications. A data-logging device connected to a hotspot or cellular-tether device would be a perfect solution.

Sorry, but I haven't had time to commercialize this.

I understand. You mentioned in your post three years ago that you are willing to share all knowledge. Assuming you have something worth sharing, are you still willing to do so? Thanks!
 
Hi all-

I'm hoping some folks are still following this thread and might have some input. I'm a newer Rav4 EV owner, and for the last few weeks I've been poking through CAN data that I've logged from both the Toyota and Tesla buses. Fortunately many of the Model S decodes scattered around the 'net are the same or adaptable to our Rav's.

Is anyone else working on decoding these messages? I haven't found any threads in the forums here yet. Personally I'd like to develop a small display screen to provide me with a real-time display of volts, amps, kW, remaining kWhr, pack temp, min/max cell voltage, etc.

-Matt
 
I am waiting for a Panda OBDII reader from Comma AI which will give me access to all the databuses. I've heard it is easy to decrypt the proprietary data and will have a go at doing so.
 
Back
Top