File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ And no:
52
52
## CAN
53
53
``` sh
54
54
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
57
56
sudo ip link set can0 up
58
57
candump -cae can0,0:0,# FFFFFFFF
58
+ cansend can0 332#756e6c6f636b0000
59
59
```
60
60
61
61
WARNING: listen-only
@@ -162,5 +162,13 @@ At which point, we'll find out we can't because car is going too fast...
162
162
So spam 0x10c to bring that down?
163
163
Maybe zero 0x1bf to protective shutoff?
164
164
165
+ ## Write Up
165
166
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
166
174
You can’t perform that action at this time.
0 commit comments