snstac / adsbcot

Display Aircraft in TAK - ADS-B to TAK Gateway
https://adsbcot.rtfd.io
Apache License 2.0
86 stars 22 forks source link

Not all aircrafts get sent to the destination TAK server. #2

Open zyntacz opened 3 years ago

zyntacz commented 3 years ago

Not all aircrafts get sent to the destination TAK server. Only some. Here is a dump:

DEBUG=1 adsbcot -C 127.0.0.1 -P 8087 -D http://127.0.0.1:/data/aircraft.json -I 5
2020-10-26 18:10:19,878 pycot INFO pycot.classes.__init__:175 - Using CoT Host 127.0.0.1:8087
2020-10-26 18:10:19,878 pycot DEBUG pycot.classes._setup_unicast_socket:184 - Setting up Unicast Socket.
2020-10-26 18:10:19,879 adsbcot INFO adsbcot.classes.run:94  - Running ADSBWorker
2020-10-26 18:10:19,880 adsbcot INFO adsbcot.classes.run:153  - Running CoTWorker
2020-10-26 18:10:19,887 adsbcot DEBUG adsbcot.classes._get_dump1090_feed:81  - Retrieved 2 aircraft
2020-10-26 18:10:19,888 adsbcot DEBUG adsbcot.classes._put_queue:65  - Handling ICAO24: 4409ae Flight: TAY4804
2020-10-26 18:10:19,890 adsbcot DEBUG adsbcot.classes._put_queue:65  - Handling ICAO24: 45ac54 Flight: SAS43E
2020-10-26 18:10:19,890 adsbcot DEBUG adsbcot.classes.run:159  - From msg_queue: "b'<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><event version="2.0" type="a-n-A-C-F" uid="ICAO24.4409ae" time="2020-10-26T18:10:19.888372Z" start="2020-10-26T18:10:19.888372Z" stale="2020-10-26T19:10:19.888372Z" how="m-g"><point lat="58.788208" lon="14.305262" hae="23550" ce="10" le="10" /><detail><uid Droid="ICAO24.4409ae" /><contact callsign="TAY4804" /><track course="226.0" speed="340.9" /></detail></event>'"
2020-10-26 18:10:19,892 pycot DEBUG pycot.classes.send_cot:203 - Sending CoT to 127.0.0.1:8087: "b'<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><event version="2.0" type="a-n-A-C-F" uid="ICAO24.4409ae" time="2020-10-26T18:10:19.888372Z" start="2020-10-26T18:10:19.888372Z" stale="2020-10-26T19:10:19.888372Z" how="m-g"><point lat="58.788208" lon="14.305262" hae="23550" ce="10" le="10" /><detail><uid Droid="ICAO24.4409ae" /><contact callsign="TAY4804" /><track course="226.0" speed="340.9" /></detail></event>\n'"
2020-10-26 18:10:19,893 adsbcot DEBUG adsbcot.classes.run:159  - From msg_queue: "b'<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><event version="2.0" type="a-n-A-C-F" uid="ICAO24.45ac54" time="2020-10-26T18:10:19.890306Z" start="2020-10-26T18:10:19.890306Z" stale="2020-10-26T19:10:19.890306Z" how="m-g"><point lat="58.514161" lon="13.805695" hae="24625" ce="10" le="10" /><detail><uid Droid="ICAO24.45ac54" /><contact callsign="SAS43E" /><track course="230.8" speed="313.5" /></detail></event>'"
2020-10-26 18:10:19,894 pycot DEBUG pycot.classes.send_cot:203 - Sending CoT to 127.0.0.1:8087: "b'<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><event version="2.0" type="a-n-A-C-F" uid="ICAO24.45ac54" time="2020-10-26T18:10:19.890306Z" start="2020-10-26T18:10:19.890306Z" stale="2020-10-26T19:10:19.890306Z" how="m-g"><point lat="58.514161" lon="13.805695" hae="24625" ce="10" le="10" /><detail><uid Droid="ICAO24.45ac54" /><contact callsign="SAS43E" /><track course="230.8" speed="313.5" /></detail></event>\n'"
^C2020-10-26 18:10:22,668 adsbcot DEBUG adsbcot.classes.stop:50  - Stopping ADSBWorker
2020-10-26 18:10:22,669 adsbcot DEBUG adsbcot.classes.stop:134  - Stopping ADSBWorker
2020-10-26 18:10:22,669 adsbcot DEBUG adsbcot.classes.stop:50  - Stopping ADSBWorker
2020-10-26 18:10:22,669 adsbcot DEBUG adsbcot.classes.stop:134  - Stopping ADSBWorker

Of the two aircrafts, this is the one that shows in the WinTAK client, connected to the server. <?xml version="1.0" encoding="UTF-8" standalone="yes"?><event version="2.0" type="a-n-A-C-F" uid="ICAO24.4409ae" time="2020-10-26T18:10:05.511772Z" start="2020-10-26T18:10:05.511772Z" stale="2020-10-26T19:10:05.511772Z" how="m-g"><point lat="58.80474" lon="14.338165" hae="22675" ce="10" le="10" /><detail><uid Droid="ICAO24.4409ae" /><contact callsign="TAY4804" /><track course="226.0" speed="340.9" /></detail></event>