add terminator helpers, add remote

This commit is contained in:
controllerzz
2025-12-24 19:27:14 +03:00
parent 8015b6b5f2
commit b91733c713
10 changed files with 597 additions and 5 deletions
+4 -1
View File
@@ -6,6 +6,7 @@ from uds_async import UdsClient
import logging
async def main(is_debug=False):
if is_debug:
@@ -17,12 +18,14 @@ async def main(is_debug=False):
dev = await CarBusDevice.open("COM6")
print(f"Devise SN: {await dev.get_serial()}")
await dev.open_can_channel(
channel=1,
nominal_bitrate=500_000,
)
await dev.set_terminator(channel=1, enabled=True)
await dev.ensure_terminator(channel=1, enabled=True)
isotp = await open_isotp(dev, channel=1, tx_id=0x7E0, rx_id=0x7E8)
uds = UdsClient(isotp)