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
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,59 +6,62 @@ Examples
6
6
Different layers of intelligence (1 to 4)
7
7
-----------------------------------------
8
8
9
-
In the following examples, we will request an ECU reset in 4 different ways. We will start by crafting a binary payload manually, then we will add a layer of interpretation making the code more comprehensive each time.
9
+
In the following examples, we will request aa Routine Start with the RoutineControl service in 4 different ways.
10
+
We will start by crafting a binary payload manually, then we will add a layer of interpretation making the code more comprehensive each time.
10
11
11
12
1. Raw Connection
12
13
#################
13
14
14
15
.. code-block:: python
15
16
16
-
my_connection.send(b'\x11\x01\x77\x88\x99') # Sends ECU Reset, with subfunction = 1
17
+
my_connection.send(b'\x31\x01\x12\x34') # Sends RoutineControl, with ControlType=1, Routine ID=0x1234
0 commit comments