6 posts / 0 new
Last post
miceline
Connecting OVMS to Leaf 2018

Hi I am trying to connect OVMS to a 2018 Leaf. This is what I have found out so far.

can1 of the ovms doesn't seem to be connected. can2 is connected I can send and receive information using the OVMS shell commands. can2 only works when the car is turned on seems to me that this is how LeafSpy is talking to the car also.

I have googled around and found the following diagrams for the OBD2 of a 2018 Nissan leaf and it shows only 1 can connection on the diagnostics port pin 6 and 14. 

I am intrested from OVMS is to capture battery percentage and state of charge. I was wondering if I can connect can1 of the OVMS directly to the TCU can bus pins 6 and 7.

https://pasteboard.co/IBDbBFs.png

Any recomendations ? To check before doing this ?

Thanks.

markwj
markwj's picture
Is this the 40kWh Leaf? If so

Is this the 40kWh Leaf? If so, the CAN bus connection arrangements changed in that new model and the passive CAN bus messages used by OVMS are no longer available on the OBDII connector. We are looking into alternative ways of doing this (active polling), but the currently firmware only supports the earlier Nissan Leaf cars.

miceline
Hi Markwj thanks for the

Hi Markwj thanks for the reply.
Yes this is the 40kWh version.
The only problem with the "active poling" solution on the OBII connector is that the car needs to be started (turned on) in order for the OVMS to communicate over the CAN bus, this contradicts most of the remote functionalities. Back to the purpose of my question was if it is safe to connect the OVMS directly to the TCU CAN Lines. What do you think ? should I do some other observation before ? connecting a oscilloscoop ? If I can get the OVMS connected I can help out to test and write code changes for it to work using the TCU lines.

Side note right now I can collect Battery data on the OVMS using can2 on the OBII port with active poling. I have adjusted the Leaf code for this. But I was more interested in collecting the data when the car is turned off.

Best regards,

glynhudson
>The only problem with the

>The only problem with the "active poling" solution on the OBII connector is that the car needs to be started (turned on) in order for the OVMS to communicate over the CAN bus, this contradicts most of the remote functionalities.

Whenever the car is charging / pre-heating or driving the CAN bus will be "ON" i.e any time the SoC can change OVMS will be able to monitor it. When the car is off OVMS cannot read any data, however it doesn't need to since nothing is happening!

Yes, it's safe to connect OVMS to the CAN lines. However, on the 40kWh leaf you won't see any data without polling.

We're currently working on a solution for this and have some dev FW to enable polling, see https://github.com/glynhudson/Open-Vehicle-Monitoring-System-3/pull/1/

molnarnor
molnarnor's picture
>We're currently working on a

>We're currently working on a solution for this and have some dev FW to enable polling

Hello Glyn,

how could I receive/download this modified (Leaf 40kWh compatible) FW to my OVMS device?

I have enabled the edge option, in order to have the latest FWs, but it doesn't want to communicate with my 2018 Leaf 40kWh.

Thank you very much in advance,

Norbert

 

 

glynhudson
OVMS can still monitor 12V

OVMS can still monitor 12V battery voltage and GPS position when the car is off therefore could detect a flatbed theft...there is even a "flat bed theft" push notification mobile app alert :-)

Log in or register to post comments
randomness