Closed
Description
Hey,
I want to use multiple rx ids for responding to upcoming frames.
tp_addr = isotp.Address(isotp.AddressingMode.Normal_11bits, txid=0x123, rxid=0x456)
In the above block, the module only filters the 0x456 ID according to gives the response. But I want to filter more than one ID like can module in python. For instance, I want to filter "0x111", "0x222", "0x333" at the same time. Is it possible?
For changing address I created that function but I don't want to call it every process. I need different approach for handling multiple rxids.
def set_can_addresses(self, physical_can_request_id, physical_can_response_id):
try:
txid = int.from_bytes(physical_can_request_id[:-1], 'big')
rxid = int.from_bytes(physical_can_response_id[:-1], 'big')
self.tp_addr = isotp.Address(isotp.AddressingMode.Normal_29bits, txid=txid, rxid=rxid)
self.stack = isotp.NotifierBasedCanStack(bus=self.bus, notifier=self.notifier, address=self.tp_addr, params=isotp_params.isotp_params)
self.stack.set_sleep_timing(0, 0)
except Exception as e:
print(e)
Best regards
Metadata
Metadata
Assignees
Labels
No labels