Closed minkeetan closed 2 years ago
for the exception: can you provide a complete traceback?
sending data: yes, it's possible. once you've encoded your request, you can send it to the ECU using basically any python ISO TP package. See e.g. the isotp_send example for details.
@andlaus ,
Here is the complete traceback:
Traceback (most recent call last):
File "C:\Users\tnm1pg1\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\tnm1pg1\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\tnm1pg1\AppData\Local\Programs\Python\Python39\Scripts\odxtools.exe__main.py", line 7, in
@andlaus ,
Thanks for the answer. How about sending UDS request over Ethernet? DOIP?
Thanks for the answer. How about sending UDS request over Ethernet? DOIP?
in principle it works the same, i.e., like with CAN, you can encode the payload using odxtools but the actual send operation is out of scope, i.e. you need a external python package for that. the same also applies to other bus systems like LIN or flexray.
It fix this one, but then it goes to another issue
Traceback (most recent call last):
File "C:\Users\tnm1pg1\AppData\Local\Programs\Python\Python39\Scripts\odxtools-script.py", line 33, in
FYI, I replaced line 394 at structures.py with long_name = et_element.find("LONG-NAME").text if et_element.find("LONG-NAME") is not None else short_name and it works.
this should already be fixed in the latest master. release coming...
@andlaus , tested with version 1.2.3, it works fine. Thanks.
Hi,
I tried to load pdx with the latest version but it failed. It was working in previous version. The following is the log.
File "C:\Users\tnm1pg1\AppData\Local\Programs\Python\Python39\lib\site-packages\odxtools\odxtypes.py", line 64, in from_string return _ODX_TYPE_PARSERself.value TypeError: int() argument must be a string, a bytes-like object or a number, not 'xml.etree.ElementTree.Element'
One more thing I would like to ask is there any example on how to send the UDS service to the ECU after loading the pdx? For example like Read Data by Identifier service.