Skip to content

Do DAQ( XCP_on_CAN) with a ECU that doesn't support GET_DAQ_PROCESSOR_INFO #230

@GarethGZ

Description

@GarethGZ

@christoph2
Hi, I tested your example in #184 with a real ECU. The ECU doesn't support GET_DAQ_PROCESSOR_INFO, so the error was thrown below. Please give some advice.

[PyXCP] XCPonCAN - Filters used: [{'can_id': 2033, 'can_mask': 2047, 'extended': False}]
[PyXCP] XCPonCAN - State: BusState.ACTIVE
Level 9 Received: Timestamp: 1755157627.265973 ID: 7f1 S Rx DL: 8 ff 05 c0 08 bus.py:131
08 00 01 01 Channel: 0
Level 9 Received: Timestamp: 1755157627.269473 ID: 7f1 S Rx DL: 8 ff 00 01 00 bus.py:131
2b 00 00 60 Channel: 0
Level 9 Received: Timestamp: 1755157627.274373 ID: 7f1 S Rx DL: 6 ff 00 00 00 bus.py:131
00 00 Channel: 0
setup DAQ lists.
Level 9 Received: Timestamp: 1755157627.278113 ID: 7f1 S Rx DL: 2 fe 20 bus.py:131
Channel: 0
[PyXCP] ERROR | Traceback (most recent call last):
File "d:\Programs\Python\Python313\Lib\site-packages\pyxcp\daq_stim_init_.py", line 47, in setup
self.daq_info = self.xcp_master.getDaqInfo(include_event_lists=False) # by_GZ
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\Programs\Python\Python313\Lib\site-packages\pyxcp\master\master.py", line 1675, in getDaqInfo
dpi = self.getDaqProcessorInfo()
File "d:\Programs\Python\Python313\Lib\site-packages\pyxcp\master\errorhandler.py", line 437, in inner
res = executor(inst, func, arguments)
File "d:\Programs\Python\Python313\Lib\site-packages\pyxcp\master\errorhandler.py", line 398, in call
preActions, actions, repeater = handler.actions(*getActions(inst.service, self.error_code))
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\Programs\Python\Python313\Lib\site-packages\pyxcp\master\errorhandler.py", line 277, in actions
raise SystemExit("Could not proceed due to unhandled error (USE_A2L).", self.error_code)
pyxcp.master.errorhandler.SystemExit: SystemExit(error_code=ERR_CMD_UNKNOWN, message='Could not proceed due to unhandled error (USE_A2L).')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "d:\LocalVSCode\PYTHON_WS\pyxcp_test\pyxcp_test.py", line 68, in
daq_parser.setup()
~~~~~~~~~~~~~~~~^^
File "d:\Programs\Python\Python313\Lib\site-packages\pyxcp\daq_stim_init_.py", line 87, in setup
raise TypeError(f"DAQ_INFO corrupted: {e}") from e
TypeError: DAQ_INFO corrupted: SystemExit(error_code=ERR_CMD_UNKNOWN, message='Could not proceed due to unhandled error (USE_A2L).')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions