add free relay server

This commit is contained in:
controllerzz 2025-12-25 18:59:52 +03:00
parent 5f40847b81
commit 32163c0001
3 changed files with 9 additions and 3 deletions

View File

@ -244,6 +244,12 @@ print("VIN:", vin.decode(errors="ignore"))
````
## Удалённая работа через внешний сервер
### 0. Бесплатный Сервер/Relay
Можно воспользоваться бесплатным сервером:
IP: 185.42.26.80
PORT: 9000
### 1. Сервер/Relay
На сервере устанавливаем библиотеку carbus-lib, далее запускаем сервер

View File

@ -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(

View File

@ -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()}")