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: docs/Custom Commands.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ If the command you need is not in python-OBDs tables, you can create a new `OBDC
10
10
| decoder | callable | Function used for decoding messages from the OBD adapter |
11
11
| ecu (optional) | ECU | ID of the ECU this command should listen to (`ECU.ALL` by default) |
12
12
| fast (optional) | bool | Allows python-OBD to alter this command for efficieny (`False` by default) |
13
+
| header (optional) | string | If set, use a custom header instead of the defalut one (7E0) |
13
14
14
15
15
16
Example
@@ -95,7 +96,13 @@ The `ecu` argument is a constant used to filter incoming messages. Some commands
95
96
96
97
### OBDCommand.fast
97
98
98
-
The `fast` argument tells python-OBD whether it is safe to append a `"01"` to the end of the command. This will instruct the adapter to return the first response it recieves, rather than waiting for more (and eventually reaching a timeout). This can speed up requests significantly, and is enabled for most of python-OBDs internal commands. However, for unusual commands, it is safest to leave this disabled.
99
+
The optional `fast` argument tells python-OBD whether it is safe to append a `"01"` to the end of the command. This will instruct the adapter to return the first response it recieves, rather than waiting for more (and eventually reaching a timeout). This can speed up requests significantly, and is enabled for most of python-OBDs internal commands. However, for unusual commands, it is safest to leave this disabled.
100
+
101
+
---
102
+
103
+
### OBDCommand.header
104
+
105
+
The optional `header` argument tells python-OBD to use a custom header when querying the command. If not set, python-OBD assumes that the default 7E0 header is needed for querying the command. The switch between default and custom header (and vice versa) is automatically done by python-OBD.
0 commit comments