-
Notifications
You must be signed in to change notification settings - Fork 101
Additional consideration
Future contributions and changes may require documentation to be expanded. All that information will be documented here. NOTE: The install script will create and configure all of the items below except for the brightness module and socketcan functionality (because not everyone has that display or setup).
Some things to consider when configuring your system:
- Utilize the experimental gl driver with Fake KMS for qt-gstreamer usage (explained below)
- Set the background color to black and hide any desktop elements (icons, panel, dock, etc.)
- Set USB permissions (explained below)
sudo raspi-config
Using the arrow keys, Choose Advanced Options > GL Driver > G2 GL (Fake KMS) OpenGL desktop driver with fake KMS > Ok > Finish > Reboot
In order to use OpenAuto with Linux-based OS (i.e. RaspbianOS), a rule must be created that allows communication with USB devices in R/W mode.
NOTE - sudo
must be used when creating the rules file due to the permissions on the directory in this location
cd /etc/udev/rules.d
sudo nano openauto.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="*", ATTR{idProduct}=="*", MODE="0660", GROUP="plugdev"
NOTE - This rule allows for any USB device to be opened in R/W mode by any app installed on the system. It is considered unsecure.
3. If you have the official Raspberry Pi 7" touchscreen, add the following rule as well (if not, skip this step):
# udev rules to allow write access to all users for Raspberry Pi 7" Touch Screen
SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness"_
sudo apt install -y can-utils libsocketcan2 libsocketcan-dev
# CAN-BUS Overlay
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
dtoverlay=mcp2515-can1,oscillator=8000000,interrupt=26 # Optional
dtparam=spi=on
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 125
down /sbin/ifconfig can0 down
auto can1 # Optional
iface can1 inet manual
pre-up /sbin/ip link set can1 type can bitrate 500000 triple-sampling on restart-ms 100
up /sbin/ifconfig can1 up txqueuelen 500
down /sbin/ifconfig can1 down
sudo reboot
dmesg | grep mcp && ifconfig | grep can
[ 3.139428] mcp251x spi0.1 can0: MCP2515 successfully initialized.
[ 3.150549] mcp251x spi0.0 can1: MCP2515 successfully initialized.
can0: flags=193<UP,RUNNING,NOARP> mtu 16
can1: flags=193<UP,RUNNING,NOARP> mtu 16
sudo apt install -y can-utils libsocketcan2 libsocketcan-dev
auto slcan0
iface can0 inet manual
pre-up /bin/slcand -o -s 500000 /dev/ttyACM0 && sbin/ip link set up slcan0
up /sbin/ifconfig slcan0 up
down /sbin/ifconfig slcan0 down
sudo reboot
ifconfig | grep can
slcan0: flags=193<UP,RUNNING,NOARP> mtu 16