virol
Posts: 26
Joined: Sun Sep 23, 2018 9:38 am
Delivery Date: 17 Sep 2018
Leaf Number: 2018
Location: Belgium

Re: LEAF CANbus decoding. (Open discussion)

Thu Jun 11, 2020 8:21 am

Send it to the AV-CAN on the OBD2 port, AV-CAN-H (pin 11) AV-CAN-L (pin 3)

0x681 04 10 40 0D 8C FF FF FF //Flip between map and FM
0x681 04 10 40 0D A3 FF FF FF

0x681 03 10 20 0D FF FF FF FF //Turns off the radio
@ dala,

thx for that already

do you have code for pressing the Ok button on the touchscreen at startup?

what do you think, is it possible to send these codes by a odb adapter with elm AT instructions, and so yes have you experiance into this by giving us a AT sequence to do such a thing

thx for your coding

User avatar
Dala
Forum Supporter
Posts: 261
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)

Thu Jun 11, 2020 8:33 am

virol wrote:
do you have code for pressing the Ok button on the touchscreen at startup?

what do you think, is it possible to send these codes by a odb adapter with elm AT instructions, and so yes have you experiance into this by giving us a AT sequence to do such a thing

thx for your coding
It should be as easy as sending that FM button keypress (or map).

In theory a standard bluetooth OBD2 adapter + smartphone app could send this, but the AV-CAN pins are not at the correct PINs, so you would need to make an adapter OBD2->OBD2 cable for it.

Easiest way to make a permanent mount is to code a small code on some CAN compatible device and permanently mount it on the car. Examples would be OVMS, Muxsan CAN-bridge, Arduino w/ CAN-shield, Raspberry PI with CAN interface etc. Anything goes :)

mux
Posts: 303
Joined: Sat Jan 13, 2018 3:52 am
Delivery Date: 13 Oct 2011
Leaf Number: 6177

Re: LEAF CANbus decoding. (Open discussion)

Thu Jun 11, 2020 10:37 pm

I think this has to be tried out today... I should make a low-cost CAN message sender version of the CAN bridge for this kind of stuff, the current CAN bridge is way too expensive and uses a bit too much power to just insert it everywhere in the car.

virol
Posts: 26
Joined: Sun Sep 23, 2018 9:38 am
Delivery Date: 17 Sep 2018
Leaf Number: 2018
Location: Belgium

Re: LEAF CANbus decoding. (Open discussion)

Fri Jun 12, 2020 1:02 am

mux wrote:
Thu Jun 11, 2020 10:37 pm
I think this has to be tried out today... I should make a low-cost CAN message sender version of the CAN bridge for this kind of stuff, the current CAN bridge is way too expensive and uses a bit too much power to just insert it everywhere in the car.
@Mux

Great idea……

Perhaps some software that can send CAN messages over a LE dongle, so the dongle can be stay plugged in the car for use with leafspy and also for sending special CAN messages.

or
a hardware piece male/female ODB connectors housing with in between the µp for sending the CAN messages, so this can also stay plugged in together with the dongle for leafspy

User avatar
Dala
Forum Supporter
Posts: 261
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 Jun 12, 2020 3:04 am

Here is more information on how AV-CAN operates, kudos again to Jonas Andersson!

https://www.dropbox.com/s/8rix9phhi57nk ... .xlsx?dl=0

virol
Posts: 26
Joined: Sun Sep 23, 2018 9:38 am
Delivery Date: 17 Sep 2018
Leaf Number: 2018
Location: Belgium

Re: LEAF CANbus decoding. (Open discussion)

Sat Jun 13, 2020 2:11 am

Dala wrote:
Fri Jun 12, 2020 3:04 am
Here is more information on how AV-CAN operates, kudos again to Jonas Andersson!

https://www.dropbox.com/s/8rix9phhi57nk ... .xlsx?dl=0
Thx for this extra info.....

When I understand it right, only hardware buttons can be generated by the AV-CAN bus

The OK button at each new startup of the car witch must be accepted on the touchscreen ( to accept NissanConnect) can NOT be generated then?


In the same context, as anybody the Can codes for the other hardware buttons (speedlimit, cancel, set, reset, etc) but then onto the EV Can bus

coleafrado

Re: LEAF CANbus decoding. (Open discussion)

Sat Jun 13, 2020 5:17 am

virol wrote:
Fri Jun 12, 2020 1:02 am
@Mux

Great idea……

Perhaps some software that can send CAN messages over a LE dongle, so the dongle can be stay plugged in the car for use with leafspy and also for sending special CAN messages.

or
a hardware piece male/female ODB connectors housing with in between the µp for sending the CAN messages, so this can also stay plugged in together with the dongle for leafspy
AV-CAN is on different pins from the ordinary CAN used by Leafspy, so the cheap adapters won't be able to write to it. Most 2011-13 Leaf owners would probably be fine paying $20 for a nag-deleter - so maybe a cheap passthrough adapter with a single USB and CAN PHY would work.

Andrey
Posts: 50
Joined: Tue May 21, 2019 9:56 pm
Delivery Date: 04 May 2019
Leaf Number: 019812

Re: LEAF CANbus decoding. (Open discussion)

Mon Jun 15, 2020 10:59 pm

I need to find out battery id for @Dala, but he's in Finland and i'm in US so he can't borrow me his tool. Does anybody know how to collect battery id from EV-CAN (H/L pins, 12/13 pins from under-dash OBD2) with some Arduino + wiring?

coleafrado

Re: LEAF CANbus decoding. (Open discussion)

Tue Jun 16, 2020 12:35 am

Andrey wrote:
Mon Jun 15, 2020 10:59 pm
I need to find out battery id for @Dala, but he's in Finland and i'm in US so he can't borrow me his tool. Does anybody know how to collect battery id from EV-CAN (H/L pins, 12/13 pins from under-dash OBD2) with some Arduino + wiring?
https://www.sparkfun.com/products/13262

User avatar
Dala
Forum Supporter
Posts: 261
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)

Sat Jun 27, 2020 12:39 am

I've released a video that goes into detail on how the BatteryID works on the EV-CAN. Might be interesting to you :D
https://www.youtube.com/watch?v=NoBLoSyhoKQ

Return to “LEAF CANBus”