Central engineering manual and specification for the Missouri S&T Mars Rover Design Team RoveComm protocol.
View the Project on GitHub MissouriMRDT/RoveComm_Base
Return to RoveSoDocs Guides for Today, Tomorrow, and Forever.
RoveComm provides unified packet framing over both User Datagram Protocol (UDP) and Transmission Control Protocol (TCP). Each transport layer is selected based on the specific operational characteristics of the subsystem: high-frequency streaming sensor telemetry requires minimal latency and can tolerate occasional packet drop, whereas discrete actuator switching, safety-critical E-Stop triggers, and large scientific datasets require guaranteed, ordered delivery.
The following decision matrix governs the transport layer selection across all MRDT subsystems:
| Metric | UDP Transport (Port 11000) |
TCP Transport (Port 12000) |
|---|---|---|
| Connection Model | Connectionless (fire-and-forget datagrams) | Connection-oriented (persistent 3-way handshake stream) |
| Delivery Guarantee | Best-effort (packets may drop or arrive out of order) | Guaranteed delivery with automated link-layer retransmission |
| Ordering | No ordering guarantee | Guaranteed strict FIFO packet ordering |
| Latency Profile | Sub-millisecond latency; zero head-of-line blocking | Latency spikes during packet loss due to ACK timeouts |
| Header Overhead | Low (8-byte UDP header + 6-byte RoveComm header) | Higher (20-byte TCP header + 6-byte RoveComm header) |
| Primary Use Cases | - Drive wheel motor speeds - Real-time IMU roll/pitch/yaw - Continuous GPS Doppler velocities - Teleoperation joystick commands - LiDAR telemetry streams |
- PMS E-Stop & Suicide triggers - Power bus toggle commands - Raman CCD spectrometer dataset downloads - Autonomous mission waypoint injection - Subsystem configuration updates |
UDP operates without persistent connection overhead. On the rover network, microcontroller boards broadcast high-frequency telemetry (e.g., motor current at 50 Hz, IMU heading at 100 Hz) using the RoveComm Subscription Model.
Rather than broadcasting telemetry to all network devices (which degrades wireless bandwidth over 900 MHz Rocket links), RoveComm servers only stream telemetry to clients that have explicitly requested it:
[Client Node (BaseStation / Autonomy)] [Server Node (Core / PMS / Nav)]
| |
|------------- 1. SUBSCRIBE Packet (ID: 3) ---------->|
| (Port 11000, DataCount: 0) |
| | [Registers Client IP & Port]
| | [Adds to vSubscribers List]
| |
|<------------ 2. Telemetry Stream (ID: 3100) --------|
|<------------ 3. Telemetry Stream (ID: 3101) --------|
|<------------ 4. Telemetry Stream (ID: 3103) --------|
| |
| |
|------------ 5. UNSUBSCRIBE Packet (ID: 4) --------->|
| (Port 11000, DataCount: 0) |
| | [Removes Client from List]
| |
11000 with DataID = 3 (SUBSCRIBE), DataType = UINT8_T, and DataCount = 0.RoveComm_CPP, this is bounded by ROVECOMM_ETHERNET_UDP_MAX_SUBSCRIBERS = 10.sendto().UNSUBSCRIBE packet (DataID = 4) to remove itself from the server’s streaming loop.TCP provides reliable, ordered data transfer over port 12000. However, because TCP is a byte-stream protocol rather than a message-oriented protocol, multiple RoveComm packets may arrive coalesced within a single TCP segment, or a single packet may be fragmented across multiple TCP reads.
Implementations of RoveComm over TCP MUST implement stateful buffering to extract individual packets cleanly:
Incoming TCP Stream Buffer:
[ 0x03 | 0x0F 0xA0 | 0x00 0x02 | 0x06 | 0x3F 0x80 0x00 0x00 | 0x3F 0x80 0x00 0x00 ] [ 0x03 ...
|<- - - - - - - - - - Fixed 6-Byte Header - - - - - - - ->|<- - - Payload (8 Bytes) - ->|
|< - - - - - - - - - - - - - - - Complete RoveComm Packet (14 Bytes) - - - - - - - - - >|
void ProcessTCPBuffer(std::vector<uint8_t>& receiveBuffer)
{
while (receiveBuffer.size() >= ROVECOMM_PACKET_HEADER_SIZE)
{
// 1. Inspect Header
uint8_t version = receiveBuffer[0];
if (version != ROVECOMM_VERSION)
{
// Drop corrupt byte and resynchronize
receiveBuffer.erase(receiveBuffer.begin());
continue;
}
uint16_t dataId = (receiveBuffer[1] << 8) | receiveBuffer[2];
uint16_t dataCount = (receiveBuffer[3] << 8) | receiveBuffer[4];
uint8_t dataType = receiveBuffer[5];
size_t elementSize = GetDataTypeSize(dataType);
size_t totalPacketSize = ROVECOMM_PACKET_HEADER_SIZE + (dataCount * elementSize);
// 2. Check if complete packet has arrived
if (receiveBuffer.size() < totalPacketSize)
{
// Incomplete packet; wait for next TCP socket read
break;
}
// 3. Extract and dispatch packet
RoveCommData packetBytes;
std::copy(receiveBuffer.begin(), receiveBuffer.begin() + totalPacketSize, packetBytes.unBytes);
DispatchCallbacks(packetBytes);
// 4. Remove processed frame from buffer
receiveBuffer.erase(receiveBuffer.begin(), receiveBuffer.begin() + totalPacketSize);
}
}
Wireless connections in the desert (Hanksville, UT for URC) experience RF multipath interference and periodic link drops. The TCP client layer (in Autonomy or BaseStation) implements an automated state machine for fault recovery:
PING packet (DataID = 1).PING_REPLY (DataID = 2) within 2,500 ms, the connection is marked broken.connect() until the board is back online.EStop safe state).