Ford FG Falcon HVAC Display
Originally Created by Kyle May 2018, Original version uses an arduino + can shield to send CAN data over serial, this version aims to use the can0 interface available with Socketcan. FG Falcon related software and CAN Data available at https://github.com/jakka351/fg-falcon.
Note: This code is under the GPLv3 license. Any modifications must have the source code distributed under this license.
This is a Python GUI (Kivy) version, where an Arduino would be used to read the CAN data and send it over serial to a Raspberry Pi or similar, and the Kivy app would display the information on the head unit's screen via RCA composite input.
HVACDisplay.py
: Receives the HVAC information from the Arduino and displays it on the GUI.HVACDisplay.kv
: The UI markup for the Python app.
edit "/etc/modules" to include:
can
can_dev
can_raw
vcan
Append the following to '/boot/config.txt':
dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=25
(If using a PiCan Board set oscillator to 16000000)
oscillator=16000000
Add the following to '/etc/network/interfaces':
auto can0
iface can0 inet manual
pre-up /sbin/ip link set can0 type can bitrate 125000 triple-sampling on restart-ms 100
up /sbin/ifconfig can0 up txqueuelen 1000
down /sbin/ifconfig can0 down
Install Required Packages for Socketcan Can-Utils
sudo apt update -y && sudo apt upgrade -y &&
sudo apt install -y can-utils libsocketcan2 libsocketcan-dev python-can python3-can
Bring the can0 interface up
sudo ip link set can0 type can bitrate 125000 triple-sampling on restart-ms 100
sudo ifconfig can0 up txqueuelen 1000
Test the script with socketcan virtual can interface, vcan0 and candump log files
sudo modprobe vcan0
sudo ip link add dev vcan0 type vcan
sudo ifconfig vcan0 up txqueuelen 1000
Use canplayer to run the candump log
canplayer -I ./candump.log -v vcan0=can0 -v
Candump logs available here
sudo git clone https://github.com/techcoder20/RPI-Kivy-Installer.git ~/RPI-Kivy-Installer
cd ~/RPI-Kivy-Installer
sudo chmod +x install.sh
sudo ./install.sh
https://github.com/jakka351/FG-Falcon
https://github.com/KyleMay/Ford-FG-ICC
https://github.com/jakka351/can0swc
https://fordforums.com.au/showthread.php?t=11430769
https://fordforums.com.au/showthread.php?t=11475851
https://github.com/linux-can/can-utils