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
Add Support for WWH OBD (0x42) ReadDtcInformation Subfunction
- New toplevel client function get_wwh_obd_dtc_by_status_mask()
- Added constants for FunctionalGroupId in Dtc helper
- Updated documentation
- Updated unit tests
Performs a ``ReadDTCInformation`` service request with subfunction ``reportWWHOBDDTCByMaskRecord``
1367
+
1368
+
Reads all the WWH OBD Diagnostic Trouble Codes that have a functional_group, class, status and a severity matching the given masks.
1369
+
The server will check all of its DTCs and if ( (Dtc.status & status_mask) != 0 && (Dtc.severity & severity) !=0), then the DTCs match the filter and are sent back to the client.
1370
+
Note: severity_mask and dtc_class are combined into a single byte to populate DTCSeverityMask- see Table D.11.
:param functional_group_id: Functional Group ID to search for (FGID) (0x00 to 0xFF) :ref:`Dtc.FunctionalGroupIdentifiers<DTC_FunctionalGroupIdentifiers>`
1375
+
:type functional_group_id: int
1376
+
1377
+
:param status_mask: The status mask against which the DTCs are tested.
1378
+
:type status_mask: int or :ref:`Dtc.Status<DTC_Status>`
1379
+
1380
+
:param severity_mask: The severity mask against which the DTCs are tested. (Optionas 0x20, 0x40, or 0x80)
1381
+
:type severity_mask: int or :ref:`Dtc.Severity<DTC_Severity>`
1382
+
1383
+
:param dtc_class: The GTR DTC class mask against which the DTCs are tested. (Options 0x01, 0x02, 0x04, 0x08)
1384
+
:type dtc_class: int
1385
+
1386
+
:return: The server response parsed by :meth:`ReadDTCInformation.interpret_response<udsoncan.services.ReadDTCInformation.interpret_response>`
Provides a list of FunctionalGroupIdentifiers (Table D.15) which are used by the :ref:`ReadDTCInformation<ReadDtcInformation>` when requesting a number of DTCs.
43
+
"""
44
+
EMISSIONS_SYSTEM_GROUP=0x33
45
+
SAFETY_SYSTEM_GROUP=0xD0
46
+
VOBD_SYSTEM=0xFE
47
+
40
48
# DTC Status byte
41
49
# This byte is an 8-bit flag indicating how much we are sure that a DTC is active.
0 commit comments