juergenH87 / python-can-j1939

The package provides SAE J1939 support for Python developers
MIT License
90 stars 51 forks source link

Receive Address Claimed Message PGN 60928 #44

Open gardenvariety42 opened 1 year ago

gardenvariety42 commented 1 year ago

Hi,

First things first, thank you for this package, it works beautifully! My problem likely has a simple solution but I've been looking for a few hours and am not seeing it right now. I need to receive a global message to get the source address and name of the connecting hardware. The message is PGN 60928. After my simulated ecu requests it, I get the message on the bus but python-can-j1939 will not handle it. As far as I can see, all other messages are handled properly. Help, or an alternative way of getting the needed information, would be greatly appreciated.

grant-allan-ctct commented 10 months ago

I've just noticed that this Issue relates to #57 and also #48. I think the workaround mentioned on Issue 48 could be leveraged to solve the current need.

If you can call add_listener to add a can.Printer() listener, for example, you will see every message printed to the console, and sifting through that haystack, you should see what you need. Or you could write a custom listener that grabs exactly the information that you're looking for - I think that I will be headed down that track myself before too long.