intrepidcs / python_ics

Library for interfacing with Intrepid devices in Python
MIT License
63 stars 31 forks source link

How to transmit/receive 15765 message to/from multiple nodes with functional addressing ids #93

Closed alwaysberay closed 3 years ago

alwaysberay commented 3 years ago

How to transmit/receive 15765 message to/from multiple nodes with functional addressing ids, like below.

10 DB FE F1   03 22 F1 B0 00 00 00 00 [0012] Can29BitId
14 2A F1 40   04 62 F1 B0 40 55 55 55 [0012] Can29BitId 
14 2A F1 41   04 62 F1 B0 41 55 55 55 [0012] Can29BitId 
14 1A F1 BF   04 62 F1 B0 BF 55 55 55 [0012] Can29BitId 
14 2A F1 18   04 62 F1 B0 18 55 55 55 [0012] Can29BitId
drebbe-intrepid commented 3 years ago

Can you provide source to that output please?

alwaysberay commented 3 years ago

Thanks for your reply. That's just an example about expected behavior. That is --

  1. Transmit a UDS service message to all nodes using functional addressing
  2. Receive all response messages from all nodes
  3. Handle FC events if needed Is it possible to do the about things with 15765 message functions?
drebbe-intrepid commented 3 years ago

When you send a message Functionally, the responses back are all physically addressed. In your code you would need to setup the ISO15765 Rx messages for the IDs you are expecting to get back. If you are unsure of the possible IDs that could come back, sending a request out and see the IDs that come back is one way to get the IDs to look for and configure. You would also need to know the pattern required for the flow control back to the ECUs. Depending on your protocol you are working with, that could be OEM specific.

drebbe-intrepid commented 3 years ago

I'm going to assume this isn't an issue anymore and going to go ahead and close this out. Please re-open if needed.