Skip to content

Commit 4ca14da

Browse files
CO: wrap up
1 parent 0c69851 commit 4ca14da

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

can_opener/notes.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ And no:
5252
## CAN
5353
```sh
5454
ip link show dev can0
55-
ip link set can0 type can help
56-
sudo ip link set can0 type can bitrate 500000 listen-only on
55+
sudo ip link set can0 type can bitrate 49500 listen-only on
5756
sudo ip link set can0 up
5857
candump -cae can0,0:0,#FFFFFFFF
58+
cansend can0 332#756e6c6f636b0000
5959
```
6060

6161
WARNING: listen-only
@@ -162,5 +162,13 @@ At which point, we'll find out we can't because car is going too fast...
162162
So spam 0x10c to bring that down?
163163
Maybe zero 0x1bf to protective shutoff?
164164

165+
## Write Up
165166

167+
1. check out the dashboard app, learn the serial protocol, enable debug prints
168+
2. connect logic analyzer to the CAN terminals, capture some frames
169+
* learn that the bitrate is 49.5 bps
170+
* see the 0x332 "lock" frames
171+
3. attach and configure our USB2CAN adapter
172+
4. send 0x332 "unlock" frame
173+
5. submit flag
166174

0 commit comments

Comments
 (0)