aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: b6cf48bae37cd978705444d3a19d0d2f76e208f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Work in progress.

Reading CAN messages from CAN ids I want, decode and append to a file. Use it with [remote_plot](https://git.flylightning.xyz/remote_plot/)

build, install, and run
```sh
make
sudo make install
mycan
```

usage
```sh
# use default can0 network interface
mycan
# use vcan0 network interface
mycan vcan0
```

all_SRE_edited.c and all_SRE_edited.h are auto generated by [dbcc](https://github.com/howerj/dbcc) via `dbcc all_SRE_edited.dbc`, see Makfile. all_SRE_edited.dbc is edited from [SR-16 Custom BMS.dbc](https://github.com/spartanracingelectric/SR16-CustomBMS/blob/main/SR-16%20Custom%20BMS.dbc) by editing some lines to make dbcc work.

Infrastructure configs not included yet on raspberry pi:
- /etc/wireguard/wg0.conf wireguard config
- /etc/NetworkManager/system-connections/wg0.nmconnection networkmanager wireguard config imported from wireguard config
- /etc/modules-load.d/wireguard.conf autostart load wireguard kernel module, see <https://wiki.archlinux.org/title/Kernel_module#systemd>
- /etc/systemd/system/can0.service autostart CAN network interface configs
- /home/Spartan_Racing_Charger/.config/systemd/user/mycan.service autostart mycan