# Command Spreadsheet
## Setting up vcan
```
$ sudo modprobe can
$ sudo modprobe vcan
$ sudo ip link add dev vcan0 type vcan
$ sudo ip link set up vcan0
```

## icsim
Link: https://github.com/zombieCraig/ICSim

Installing it 
```
$ sudo apt-get install libsdl2-dev libsdl2-image-dev
$ make all
```
Running it
```
$ ./icsim vcan0
```
And in a different terminal:
```
$ ./controls vcan0
```

## uds-server
Link: https://github.com/zombieCraig/uds-server

Installing it
```
$ make
```

```
$ ./uds-server vcan0
```

## caringcaribou
Link: https://github.com/CaringCaribou/caringcaribou

Installing it
```
$ python setup.py install
```

All tools actually, we can use it for UDS over CAN
```
$ cc.py -i vcan0 uds discovery
$ cc.py -i vcan0 uds serivces 0x710 0x 77a
```



## Use of can-utils to see packets
See all packets inside the network:
```
$ candump vcan0
```

If we want to log it:

```
$ candump -l vcan0
```

To see changing bytes with cansniffer, -c highlights them in red

```
$ cansniffer -c vcan0
```

Using Ctrl+3+enter refresh the colors and changing bytes