Bootstrapping a Raspberry Pi 5 to function as DAQ for early car testing/before DAQ26 is here.
- Username:
per - Password:
per - IP in AP mode:
10.42.0.1 - SSH:
ssh [email protected] - Wifi passoword:
12345678 - Wifi SSID:
PER-DaqRpi Wifi
The Pi should turn on and init all 3 canables and start logging without any intervention
- On laptop: connect to
PER-DaqRpi Wifi(password:12345678) - On laptop: move to the
millanfolder (cd millan) - On laptop: copy logs:
bash scp_logs.sh - On laptop: rename
millan/copied/logsto something likemillan/copied/logs_some_text_that_is_useful - Remove old logs:
bash ssh.shand then (now on RPI)cd PER-RpiDaq/millan/logsand thenrm -vr *
- Don't remove the
logsfolder itself other wise the loggers will crash - This is done because the RPI keeps bad real time
- :money: :vd_happy:
- Grey top =
ttyCANable0= VCAN - Grey bottom =
ttyCANable1= MCAN - Blue top =
ttyCANable2= Tranducer
(once)
- canable udev rules:
millan/99-canable.rules->/etc/udev/rules.d/99-canable.rulessudo udevadm control --reload-rules && sudo udevadm trigger
- systemd services:
millan/vcan.service->/etc/systemd/system/vcan.servicemillan/mcan.service->/etc/systemd/system/mcan.servicemillan/tcan.service->/etc/systemd/system/tcan.service-
sudo systemctl daemon-reload && \ sudo systemctl enable vcan.service && sudo systemctl start vcan.service && \ sudo systemctl enable mcan.service && sudo systemctl start mcan.service && \ sudo systemctl enable tcan.service && sudo systemctl start tcan.service
(once)
sudo nmcli device wifi hotspot \
ifname wlan0 \
ssid "PER-RpiDaq Wifi" \
password "12345678" \
con-name "hotspot"sudo nmcli connection modify hotspot \
connection.autoconnect yes \
connection.autoconnect-priority 999