From 5a0d537face95833223268e3cdff1d905a119d56 Mon Sep 17 00:00:00 2001 From: Luca Gambarotto Date: Sat, 15 Jun 2024 10:09:23 +0200 Subject: [PATCH] Updated socket can instructions --- articles/misc/socket_can_linux/Readme.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/articles/misc/socket_can_linux/Readme.md b/articles/misc/socket_can_linux/Readme.md index 0ff727d..d441bcb 100644 --- a/articles/misc/socket_can_linux/Readme.md +++ b/articles/misc/socket_can_linux/Readme.md @@ -13,7 +13,7 @@ sudo ip link set can0 up type can bitrate 500000 Virtual CAN: ```console -sudo ip link add dev vcan0 type vcan +sudo ip link set vcan0 up type vcan ``` ## View and record dump @@ -36,5 +36,11 @@ Assume to replay a file recored on can0 on vcan0: canplayer vcan0=can0 -I candump-2024-06-13_150626.log ``` +To replay an infinite number of times: +```console +canplayer vcan0=can0 -I candump-2024-06-13_150626.log -l -i +``` + + ## References - [CAR Hacking 101](https://medium.com/@yogeshojha/car-hacking-101-practical-guide-to-exploiting-can-bus-using-instrument-cluster-simulator-part-ee998570758) \ No newline at end of file