This is a hacky tool to monitor the boat data during tests.
Just follow: https://www.tech-sparks.com/raspberry-pi-auto-connect-to-wifi/
sudo apt update -y && \
sudo apt install -y --no-install-recommends git cpufrequtilsecho '\nX11Forwarding yes' | sudo tee -a /etc/ssh/sshd_configecho 'dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25' | sudo tee -a /boot/config.txt
sudo sed -i '/dtparam=spi=on/s/^#//g' /boot/config.txtecho 'GOVERNOR="performance"' | sudo tee -a /etc/default/cpufrequtils
sudo systemctl restart cpufrequtilssudo sed -i 's/#xserver-command=X/xserver-command=X -s 0 -dpms/' /etc/lightdm/lightdm.confgit clone https://github.com/ZeniteSolar/simple_can_monitor
cd simple_can_monitor
./build.shTo install and run it as a systemd service, run:
build.shTo uninstall it:
sudo systemctl disable simple_can_monitor.serviceTo stop it:
sudo systemctl stop simple_can_monitor.serviceThe Messages shown can be changed by directly changing the main.py code.
Add a virtual can interface:
sudo ip link add dev vcan0 type vcanTo run the script on a given terminal, just call:
run.shThen, play some candump file:
canplayer vcan0=can0 -I ~/ZeniteSolar/2023/can_data/01072023/datasets/can/candump/candump-2023-07-01_145823.log