lucasfr
Posts: 2
Joined: Mon Jul 27, 2020 1:07 pm
Delivery Date: 27 Jul 2020
Leaf Number: 2

Re: LEAF CANbus decoding. (Open discussion)

Thu Nov 19, 2020 11:40 am

Hi, I'm not using all 3 at the same time. I am using Pi + OBD or Pi + 2515 (modified to 5V). I would like to warn you that I have already made progress. But now I need the OBD command table saying what is in the vehicle data.
If anyone can help I appreciate it.

Thanks.

bearer wrote:
Mon Nov 16, 2020 2:54 am
lucasfr wrote:
Tue Nov 10, 2020 7:13 am

I'm using Raspberry Pi 4 + 2515 + OBD + Arduino and nothing worked.
Pi + 2515 + OBD? Not sure i follow, the OBD adapter you link to is wireless bluetooth so no need for the 2515. And if you're trying to use a 2515 module with tja1050 transciever i think you'll have problems with the transciever needing 5v?

ginetto
Posts: 8
Joined: Mon Sep 16, 2019 11:32 pm
Delivery Date: 17 Sep 2019

Re: LEAF CANbus decoding. (Open discussion)

Thu Nov 19, 2020 1:57 pm

lucasfr wrote:
Thu Nov 19, 2020 11:40 am
But now I need the OBD command table saying what is in the vehicle data.
are you looking this db? https://github.com/dalathegreat/leaf_can_bus_messages

bearer
Posts: 11
Joined: Sun Sep 11, 2016 12:56 am
Delivery Date: 11 Sep 2016
Leaf Number: 012853

Re: LEAF CANbus decoding. (Open discussion)

Mon Nov 23, 2020 3:29 am

ref hardware these were pretty cheap, I stumbled onto when looking for CH55x dev boards and ordered a few of those as well
$6.20 https://www.electrodragon.com/product/can-usb-debugger-board/
$3.50 https://www.electrodragon.com/product/raspberry-pi-rs-485-can-shield/

pottorf
Posts: 1
Joined: Tue Sep 22, 2020 6:52 am

Re: LEAF CANbus decoding. (Open discussion)

Thu Nov 26, 2020 9:26 am

ginetto wrote:
Thu Nov 19, 2020 1:57 pm
lucasfr wrote:
Thu Nov 19, 2020 11:40 am
But now I need the OBD command table saying what is in the vehicle data.
are you looking this db? https://github.com/dalathegreat/leaf_can_bus_messages
this db is pretty confusing and not helpful, since its not really clear what is the msgID in the OBDII request you can send to the car or what is the msgID in the response you get. I just needed to know how the OBDII frame is divided, eg. when you send the request 0210C0 to the LEAF, what does 02 means, 10, etc.

bearer
Posts: 11
Joined: Sun Sep 11, 2016 12:56 am
Delivery Date: 11 Sep 2016
Leaf Number: 012853

Re: LEAF CANbus decoding. (Open discussion)

Thu Nov 26, 2020 1:41 pm

pottorf wrote:I just needed to know how the OBDII frame is divided,
If you look up the message id in the .dbc file it will show how the frame for that message is divided and encoded? or are you referring to something higher level like UDS?

User avatar
Dala
Forum Supporter
Posts: 260
Joined: Sun Oct 28, 2018 11:24 am
Delivery Date: 01 Jan 2015
Leaf Number: 316851
Location: Finland
Contact: Website

Re: LEAF CANbus decoding. (Open discussion)

Fri Nov 27, 2020 1:48 am

The .DBC file I maintain is for passive listening to EV/AV/CAR-CAN. If you start to send active data-requests you are going to need something completely different, I haven't had time to make such a file yet (and I'm not even sure that it is possible with the Kvaser Database Editor).

Manually decrypting it is your only option. Check how OVMS has done their implementation on active polling https://github.com/openvehicles/Open-Ve ... anleaf.cpp

Return to “LEAF CANBus”