Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alphafox02/antsdr_dji_droneid
/ functions
Functions
28 in github.com/alphafox02/antsdr_dji_droneid
⨍
Functions
28
◇
Types & classes
2
↓ 6 callers
Method
_respond
(self, body, content_type, status=200)
dragonscope.py:168
↓ 4 callers
Function
is_valid_latlon
Check if latitude and longitude are within valid ranges AND not exactly zero.
dji_receiver.py:350
↓ 2 callers
Function
load_config
Load config from dragonscope.cfg next to this script.
dragonscope.py:27
↓ 2 callers
Function
parse_new_fw_line
Parse a dji_O,... text line from the new firmware (drone_dji_rid_decode). Returns same dict structure as parse_data_1() for unified downstrea
dji_receiver.py:198
↓ 2 callers
Function
reload_config
Reload config from disk. Picks up new license keys without restart.
dragonscope.py:189
↓ 1 callers
Method
_handle_query
(self, parsed)
dragonscope.py:139
↓ 1 callers
Function
call_remote
Forward to remote endpoint, return raw response.
dragonscope.py:99
↓ 1 callers
Function
format_as_zmq_json
Formats the parsed data into a ZMQ-compatible list of messages. Works identically for legacy binary and new firmware text input.
dji_receiver.py:412
↓ 1 callers
Function
get_device_id
Hardware fingerprint tied to physical board. Stable across reboots and network changes: - Pi (ARM): CPU serial from /proc/cpuinfo (burne
dragonscope.py:48
↓ 1 callers
Function
get_sensor_gps
Thread-safe read of cached sensor GPS.
dji_receiver.py:406
↓ 1 callers
Function
haversine_distance_km
(lat1: float, lon1: float, lat2: float, lon2: float)
dji_receiver.py:355
↓ 1 callers
Function
main
()
dji_receiver.py:687
↓ 1 callers
Function
main
()
dragonscope.py:219
↓ 1 callers
Function
parse_args
()
dji_receiver.py:70
↓ 1 callers
Function
parse_data_1
Parses data of package type 0x01 from legacy firmware binary format. Returns a dictionary with the fields needed to build a ZMQ-compatible JS
dji_receiver.py:119
↓ 1 callers
Function
parse_frame
Parses the raw binary frame from legacy AntSDR firmware.
dji_receiver.py:107
↓ 1 callers
Function
poll_monitor_for_gps
Non-blocking poll of the monitor socket. If a valid GPS arrives, update cache.
dji_receiver.py:380
↓ 1 callers
Function
send_zmq_message
(zmq_pub_socket: zmq.Socket, message_list: list)
dji_receiver.py:505
↓ 1 callers
Function
setup_logging
(debug: bool)
dji_receiver.py:90
↓ 1 callers
Function
setup_monitor_sub
Create a SUB socket to the WarDragon system monitor (publishes JSON with gps_data).
dji_receiver.py:366
Function
config_watcher
Periodically check if config has been updated.
dragonscope.py:209
Method
do_GET
(self)
dragonscope.py:126
Function
iso_timestamp_now
Return current UTC time as an ISO8601 string with 'Z' suffix.
dji_receiver.py:98
Function
legacy_tcp_client
Connects to AntSDR via TCP (legacy firmware), receives binary frames, parses them, and puts parsed dicts into the shared queue.
dji_receiver.py:518
Method
log_message
(self, fmt, *args)
dragonscope.py:178
Function
new_fw_connection_handler
Handle a single connection from a new-firmware AntSDR.
dji_receiver.py:559
Function
new_fw_tcp_server
TCP server that accepts connections from new-firmware AntSDR daemons. Each connection is handled in its own thread to support multiple AntSDR
dji_receiver.py:608
Function
new_fw_udp_server
UDP server for DragonScope-bridged AntSDR firmware.
dji_receiver.py:641