diff --git a/README.md b/README.md index b62327f..5db8379 100644 --- a/README.md +++ b/README.md @@ -244,6 +244,12 @@ print("VIN:", vin.decode(errors="ignore")) ```` ## Удалённая работа через внешний сервер +### 0. Бесплатный Сервер/Relay +Можно воспользоваться бесплатным сервером: + + IP: 185.42.26.80 + PORT: 9000 + ### 1. Сервер/Relay На сервере устанавливаем библиотеку carbus-lib, далее запускаем сервер diff --git a/example/remote_can_periodic_message.py b/example/remote_can_periodic_message.py index 4aa0d53..d111d18 100644 --- a/example/remote_can_periodic_message.py +++ b/example/remote_can_periodic_message.py @@ -4,7 +4,7 @@ from carbus_async import CarBusDevice, PeriodicCanSender, open_remote_device async def main(is_debug=False): - dev = await open_remote_device("84.54.37.149", 9000, serial=5957, password="1234") + dev = await open_remote_device("185.42.26.80", 9000, serial=5957, password="1234") await dev.open_can_channel( channel=1, @@ -25,7 +25,7 @@ async def main(is_debug=False): channel=1, can_id=0x100, data=b"\x00" * 8, - period_s=0.2, + period_s=0.001, modify=mod) sender.add( diff --git a/example/remote_relay.py b/example/remote_relay.py index b4d47ef..2c96d8c 100644 --- a/example/remote_relay.py +++ b/example/remote_relay.py @@ -16,7 +16,7 @@ async def main(is_debug=False): ) logging.getLogger("carbus_async.wire").setLevel(logging.DEBUG) - dev = await open_remote_device("84.54.37.149", 9000, serial=5957, password="1234") + dev = await open_remote_device("185.42.26.80", 9000, serial=5957, password="1234") print(f"Devise SN: {await dev.get_serial()}")