mirror of
https://github.com/controllerzz/carbus_lib.git
synced 2026-07-15 16:30:16 +03:00
add terminator helpers, add remote
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user