-
Notifications
You must be signed in to change notification settings - Fork 154
CAN Notes
Günter Obiltschnig edited this page Dec 26, 2020
·
1 revision
socketcan.endpoints.1.interface = vcan0 socketcan.endpoints.1.events.enable = true socketcan.endpoints.1.events.enable = true socketcan.endpoints.1.filter.1.id = 0 socketcan.endpoints.1.filter.1.mask = 0
socketcan.endpoints.1.filter.1.id = 127 socketcan.endpoints.1.filter.1.mask = 0
socketcan.endpoints.1.filter.1.id = 127 socketcan.endpoints.1.filter.2.id = 52 socketcan.endpoints.1.filter.3.id = 64
$ sudo modprobe vcan $ sudo ip link add dev vcan0 type vcan $ sudo ip link set up vcan0
$ sudo apt-get install can-utils
$ candump vcan0 -i
CAN Byte Order
0x0102 0x08ab
Offset Big Little
0 01 02
1 02 01
2 08 ab
3 ab 08
4
5
6
7
Bit
Byte 0 76543210
1 0
2 8
3 16
4 24
5 32
6 48
7 56
<signalDefinition>
<message id="127">
<signal name="outsideTemperature">
<data offset="0" length="12"/>
<range min="0" max="123"/>
<value physicalQuantity="temperature"
physicalUnit="degC"
type="signed"
slope="0.1"
intercept="-40"/>
</signal>
</message>
</signalDefinition>
Types: unsigned
signed
single
double