1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
# coding: utf-8
"""
Python CANtact dump example.
A simple example of dumping frames to stdout using the cantact module.
Note, most users will want to use the python-can package instead
of direct access! See send_one.py for an example.
"""
# create the interface
=
# set the CAN bitrate
# enable channel 0
# start the interface
# wait for frame with 10 ms timeout
=
# received frame
# ctrl-c pressed, close the interface
break