Nissan Leaf OVMS
Jump to navigation
Jump to search
OVMS
Nissan Leaf OVMS Current Status
Implemented
- State of Charge based configurable full charge gids (defaults to 24kWh's 281)
- Indicates J1772 plugged in
- Indicates Quick Charging in Progress
- Reports Battery current & voltage (displayed by Android app during L2 & DC Quick Charging)
- Reports Vehicle Speed
- Reports Location
- Indicates Parked/Driving
- Reports 12v battery voltage
- Remote Climate Control and Remote Charge start
- Requires the CAN Bus write feature be enabled
- The TCU module must be unplugged if CARWINGS/Nissan Connect hardware is installed
- Gen 2 prior to 2016 Leafs and some Gen 1 cars "just work"
- Model Year 2016 cars do not work
- Some Gen 1 Leafs require a wire connected between the OVMS and the TCU wiring harness
- Gen 2 cars don't turn off! Once activated, remote climate control continues even after turning the car on and off again. You have to turn it off manually.
- 2016 Cars moved the TCU from the EV CAN bus to the CAR CAN bus and remote climate control does not work on these cars.
- Android OVMS app supports remote Climate Control
- iOS OVMS app does Climate Control using the Homelink command (Homelink 1 turns on the CC, Homelink 2 turns it off)
In progress
- Battery Temperature
- Ambient Temperature
- Historical data collection
- Collecting CAN bus frames for analysis.
OVMS Hardware
You need one each of the following
- https://www.fasttech.com/product/1000300-ovms-car-module-v2
- https://www.fasttech.com/products/1779000-nissan-leaf-obd-ii-to-db9-data-cable-for-ovms
- https://www.fasttech.com/product/1020200-universal-gps-antenna-sma-connector
- https://www.fasttech.com/product/1000500-openvehicles-ovms-gsm-antenna
You will also need a PIC microcontroller programmer to update the firmware -- the leaf support didn't make it into the production run.
Quick Start
!! Not tested yet !!
- Program the OVMS with firmware compiled from from the master branch at https://github.com/openvehicles/Open-Vehicle-Monitoring-System/
- Choose two passwords, MODULEPASS & SERVERPASS
- Choose a name for your car, NAME
- Switch the switch to the position closest to the edge of the circuit board
- Insert the SIM card
- Connect the OVMS to the OBDII port to power it up
- Send the following SMS (Uppercase is accepted in the first word, so don't worry if you phone tries to start with a capital)
- register ovms
- pass MODULEPASS
- module NAME K SMSIP NL
- Configure the APN:
- For Vodafone gprs vodafone - -
- For 2degress gprs internet - -
- server ovms.dexters-web.de MODULEPASS -
- Switch the switch to the position closet to the middle of the circuit board
Remote Climate Control
Remote Climate Control on-off on Gen 1 cars is accomplished with the EV System Activation Request Signal pin the VCU and one frame on the EV Can Bus.
- http://docslide.us/documents/nissan-leaf-2011-2012-ev-control-system.html describes two EV System Activation Request Signal connections (on page 88), both on the VCU E63 connector. Pin 96 is from the charger (on page 84) and pin 84 is from the TCU (on page 85).
- Page 160 of the AV manual shows that the EV system activation request signal is on pin 11 of the TCU plug.
- EV system activation request signal needs to be connected to 12v to wake the system up.
- http://www.mynissanleaf.com/viewtopic.php?f=44&t=4131&hilit=open+CAN+discussion&start=440#p441235 describes the CAN bus frame
Gen 2 cars are the same, but don't need the EV System Activation Request Signal, they only need the CAN bus frame.
Model year 2016 cars don't work yet.
Leaf Can Bus
- My own Wireshark dissector https://carrott.org/git/leaf-can-dissector.git based off the spreadsheet below and my own investigations
- OBD2 Pinout
- Big Spreadsheet containing partial decoding of the whole bus. My car doesn't always agree with this spreadsheet
- Active EV-CAN sampling: http://www.mynissanleaf.com/viewtopic.php?t=11676
- Overview of Leaf CAN Bus information http://lists.teslaclub.hk/pipermail/ovmsdev/2013-October/001709.html
- Service Manual http://docslide.us/documents/nissan-leaf-2011-2012-ev-control-system.html
- Climate Control http://www.mynissanleaf.com/viewtopic.php?p=438109#p438109
WIP
- 0x11a byte 0 seems to be inverter status Park == 0x11 Neutral == 0x3e D == 0x4e byte 2 0x40 and eco 0x4e
- 0x55a seems to be shifter
Other Links
- http://www.mynissanleaf.com/viewtopic.php?t=13324
- http://www.mynissanleaf.com/viewtopic.php?t=4437
- http://www.mynissanleaf.com/viewtopic.php?t=4442
- http://www.mynissanleaf.com/viewtopic.php?f=8&t=4131
- http://www.mynissanleaf.com/viewtopic.php?t=12561
- https://docs.google.com/spreadsheets/d/1K83MpqxrGzLBj4P5evtz1W0itB6dxF_16fchWpPKS0E/edit?authkey=CJi03v4F&hl=en_US&authkey=CJi03v4F&pref=2&pli=1#gid=2
- CAN Bus listener/displays http://www.mynissanleaf.com/viewtopic.php?t=13324
- http://www.mynissanleaf.com/viewtopic.php?f=44&t=4131&hilit=open+CAN+discussion&start=440
- http://lists.teslaclub.hk/pipermail/ovmsdev/2015-November/002811.html
- http://lists.teslaclub.hk/pipermail/ovmsdev/2015-November/002815.html
- http://lists.teslaclub.hk/pipermail/ovmsdev/2015-December/002823.html
- http://lists.teslaclub.hk/pipermail/ovmsdev/2015-December/002872.html
- temperature decoding http://www.mynissanleaf.com/viewtopic.php?f=44&t=11676&start=30
- charger count and evse http://www.mynissanleaf.com/viewtopic.php?f=44&t=11676&start=50#p311461
- https://drive.google.com/file/d/0B75NAHw_JRTObnhlV0tKNlBjcDA/edit?usp=sharing and http://www.mynissanleaf.com/viewtopic.php?f=44&t=4131&start=430
- http://www.mynissanleaf.com/viewtopic.php?f=44&t=11676&start=130 active polling and serial numbers
- 3d printed Round Battery socket http://www.diyelectriccar.com/forums/showthread.php/nissan-leaf-battery-pack-sniffer-175674p4.html
- Rare request-response frames http://www.mynissanleaf.com/viewtopic.php?f=44&t=22114
- No CAN Message to wake things up: http://lists.teslaclub.hk/pipermail/ovmsdev/2013-December/001919.html