The one stop tool for everything automotive related
You will need to have rust installed link
To compile for raspberry pi first you'll have to run
rustup target add armv7-unknown-linux-gnueabihf
After cloning the repo you can start the caravel cli with the following command in the main folder:
cargo run
The cli will start up and expect some user input. The following commands are accepted:
help
Shows the available commands
send
Send a can message. Accepts options such as can id -i/--id, message to be sent -m/--message and the cycle time if it should be sent cyclically -c/--cyclic
receive
Receive can messages. Accepts options such as can id -i/--id and number of messages to receive -n/--messages
exit
Exits the cli
send -i 35b -m "some message" -c 0
Sends 1 time message with can id 35b and message "some message"receive -i 40a -n 10
Waits to receive 10 times can message with id 40a
There is a powershell deploy script under the scripts folder. It needs to be ran with the desired ip as argument. \n If you want to run it on Agata leave the argument empty. From the main folder run the following command on windows:
.\scripts\deploy.ps1 192.168.1.1
cargo build --target armv7-unknown-linux-gnueabihf