Closed dbussert closed 1 year ago
@dbussert I've added a feature to PyTAK 3.7.0 that allows setting the LOCAL_ADDR of the open_connection call within asyncio. You'll want to set LOCAL_ADDR to your static IP, this can be done via the normal adsbcot config mechanisms (env vars, config file, etc).
I've not yet found a comfortable way of solving for the problem of consistently joining a multcast group from Python on Linux. My currently solution is to rely on systemd to restart adsbcot every time the network interfaces change (e.g. change ip, come up, go down, gain a route, etc).
@dbussert correction, the param is PYTAK_MULTICAST_LOCAL_ADDR
I'm using
adsbcot
withadsbexchange
pi image. I was previously using DHCP to get an IP but recently moved to a static IP by editingdhcpcd.conf
. At that point my Pi stopped outputting COT entirely. I traced the error back toadsbcot
exiting out with this error.After troubleshooting, I believe this is because there is no default route set on this Pi (LAN only). I'm using a very simple config, just output COT to default multicast SA address. Pytak may be thinkin there is no route to the multicast address, although one shouldn't be needed.
I resolved this by adding an (unnecessary) default gateway to
eth0