-
Notifications
You must be signed in to change notification settings - Fork 10
UDP Communication Details
Mark Jessop edited this page Mar 12, 2022
·
1 revision
UDP packets are used as a means of getting telemetry packets (non-imagery data) into and out of the Wenet system, allowing other data packets to be relayed to the ground via the Wenet link.
The Wenet receiver code will emit any non-imagery packets into the local network via UDP broadcast on port 55672. The packets are emitted in the format:
{
'type': 'WENET',
'packet': [0,1,2,3,4...,255] # The packet contents, represented as a list of bytes.
}
Refer here for information on packet formats.
If a udp_listener
argument (a UDP port number) is provided to the PacketTX class, then the PacketTX class will listen on the provided port for JSON objects of the form:
{
'type': 'WENET_TX_TEXT',
'packet': 'Arbitrary text message to be downlinked'
}
{
'type': 'WENET_TX_SEC_PAYLOAD',
'id': 1, # Secondary payload ID (0-255)
'repeats': 1, # Transmit packet this many times.
'packet': [0,...,253] # Array of numbers representing the packet contents. Converted to a byte-array before transmit.
}