You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/udsoncan/examples.rst
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,10 +71,12 @@ In this example, we show how to use :class:`PythonIsoTpConnection<udsoncan.conne
71
71
Note that, in order to run this code, both ``python-can`` and ``can-isotp`` must be installed.
72
72
73
73
.. code-block:: python
74
-
75
-
from can.interfaces.vector import VectorBus
74
+
75
+
import can
76
+
import can.interfaces.vector import VectorBus
76
77
from udsoncan.connections import PythonIsoTpConnection
77
78
from udsoncan.client import Client
79
+
import udsoncan.configs
78
80
import isotp
79
81
80
82
# Refer to isotp documentation for full details about parameters
@@ -95,15 +97,18 @@ Note that, in order to run this code, both ``python-can`` and ``can-isotp`` must
95
97
'rate_limit_enable': False, # Disable the rate limiter
96
98
'rate_limit_max_bitrate': 1000000, # Ignored when rate_limit_enable=False. Sets the max bitrate when rate_limit_enable=True
97
99
'rate_limit_window_size': 0.2, # Ignored when rate_limit_enable=False. Sets the averaging window size for bitrate calculation when rate_limit_enable=True
98
-
'listen_mode': False# Does not use the listen_mode which prevent transmission.
100
+
'listen_mode': False,# Does not use the listen_mode which prevent transmission.
0 commit comments