Payload Catalogue Metadata
Introduction
The payload catalogue is a JSON file that describes the payloads and functions a Payload Manager presents: names, product details, documentation links, service bindings, inhibition and measurement inventories, and capability profiles. It is published through the Component Metadata service as COMP_METADATA_TYPE_PAYLOAD_CATALOGUE, and follows payloads.schema.json.
A capability profile is a separate JSON document, referenced from the catalogue by its SHA-256 digest, that declares a function's typed properties, actions, events, outputs, resources, and constraints, through which the payload's own API is exposed. The same schema file defines it as capabilityProfileDocument.
The runtime messages of the Generic Payload Protocol work without the catalogue, once a Client has confirmed from PAYLOAD_CATALOGUE_STATUS that it supports the Payload Manager's definitions (Versions). Examples of every document are listed in Examples.
Concepts
Runtime Messages and Metadata
PAYLOAD_INFO carries what a Client needs at runtime: identity, function_type, payload_category, activation_pattern, capability_flags, descriptor_revision, and short labels. The catalogue adds labels, which can be longer than the runtime short labels, and descriptions, vendor and product details, documentation links, service bindings, the inhibition and measurement inventories, capability profiles, and namespaced vendor data.
The runtime messages are authoritative for identity, capabilities, state, and operations. The catalogue duplicates only the identity values that Binding Entries to Functions matches, and if they disagree with PAYLOAD_INFO, a Client uses the runtime value and marks the metadata stale. PAYLOAD_INFO's short labels are never compared with the catalogue's labels. Metadata describes a function and never grants permission to operate it.
A function's identity is defined in Payload Manager, Payloads and Functions. Labels are for display, and matching always uses the numeric identifiers.
Versions
None of these values is learned from the packet header:
| Value | Versions |
|---|---|
descriptor_revision | The description of one function within its instance epoch. |
schemaVersion | The catalogue's JSON format. |
definitionManifest digest | The shared definitions of one MAVLink-M release: the dialect XML, the catalogue schemas, every included definition such as common.xml at the revision the release pins, any related definition such as development.xml for operator control, and any dictionaries that affect interpretation (definition-manifest.schema.json). Each release has one canonical manifest, so every build of a release reports the same digest, whatever revision of the included definitions it is generated against. |
profileVersion | One revision of one capability profile, identified with profileId. |
profileSchemaVersion | A capability profile's JSON format. |
HEARTBEAT.mavlink_version is the wire protocol version. The XML version and dialect elements are generator inputs, CRC_EXTRA protects framing, and the catalogue CRC protects the file bytes. None of these negotiates support or proves agreement on meanings, which comes only from the verified manifest. This dialect claims no MAV_PROTOCOL_CAPABILITY bit.
Each implementation records the manifest digests and schema versions it supports in its release configuration, and treats any other version, including a future one, as unsupported. A receiver learns a Payload Manager's manifest digest from definition_manifest_sha256 in its PAYLOAD_CATALOGUE_STATUS, or from the catalogue's definitionManifest, and a catalogue whose digest differs from the runtime one is invalid (Validating Documents). It then applies these rules:
- If the manifest digest is supported, it interprets the payload messages, with or without the catalogue, and the catalogue too when its
schemaVersionis supported. - If the manifest is supported but the catalogue schema is not, it ignores the catalogue and uses only the runtime fields.
- If the manifest is missing, unverified, or unsupported, it does not interpret
PAYLOAD_*values or send payload requests. It may still route the packets and use common MAVLink services. It may also send a genericDISARMorDEACTIVATEthat thePAYLOAD_INFOof a function withoutPROTECTIVEadvertises, since a stop's meaning does not depend on the catalogue (Stops), and ages the reports it reads as Clock Estimates defines. For that it reads only the identity fields,capability_flags, and labels ofPAYLOAD_INFO, theactivation_stateofPAYLOAD_STATEwith the fields that make it current (observation_time_usec,time_basis,valid_for_msec,time_uncertainty_usec,instance_epoch, andreport_sequence), and thePAYLOAD_OPERATION_STATUSthat answers the stop, which it sends as aPAYLOAD_OPERATION_REQUEST. These four messages change in later releases only through MAVLink 2 extension fields, and theDISARMandDEACTIVATEvalues, their flag bits, thePROTECTIVEflag bit, the activation states, the time basis values, and the stop's stages and results are never reassigned, so the Client reads them with its own definitions and can see which functions are armed and when a stop has made one safe.
Capability Profiles
A capability profile is how a payload's own API is exposed. Each action stands for one call in that API and each property for one setting, and the profile gives the call's typed parameters and result, or the setting's type and range. Events and outputs stand for the notifications and data the API produces. The Payload Manager, or the Executing Component, turns an accepted request into that call over an interface this protocol does not define (Common Set-ups), within the limits of Operations and Events. Each entry's documentationUri can link the API documentation it maps to.
(profileId, profileVersion) names a profile, and sha256 is the digest of its exact published bytes: no canonical serialisation is applied, so whitespace, key order, and line endings are part of the content. Every Payload Manager serves those bytes unchanged and uncompressed. A Client that has verified the digest caches the document indefinitely. A download that claims the same profileId and profileVersion but hashes differently is a verification failure, not a new revision.
A function exposes only the profiles its catalogue entry names. Pointing it at a different profile or version changes its descriptor (Runtime Changes), and a Client then discards the capability semantics built from the old binding and resolves the new one before using it.
One profile document can be bound to many functions, so what is specific to a deployment is declared in the catalogue, in terms of each binding's instanceKey:
resourceScoperesolves each of the profile's resources to a pool for this binding, exclusive or shared through asharedPoolId, and for a discrete-activation resource gives theresource_idreported inPAYLOAD_RESOURCE.- The catalogue's top-level
constraintslist declares relationships between bindings, such as two actions that must not run at the same time. A constraint inside a profile applies only within the binding that binds it.
The schema defines each field. A Client applies a catalogue constraint only once every member's profile is verified. Until then the constraint is unresolved; a member whose binding is missing, or whose profile does not declare the named key, makes the catalogue invalid (Validating Documents). Missing or stale resource reports, and unresolved constraints, never mean exclusive, shared, or permitted.
Implementation and Messages
Messages between Client and Payload Manager
Publishing the Catalogue
The Payload Manager:
- Answers a request for
COMPONENT_METADATAwith the URI and CRC of its general metadata file. - Lists
COMP_METADATA_TYPE_PAYLOAD_CATALOGUEin that file at a stable URI, withoutfileCrc, because the catalogue changes while the component runs. - Hosts the catalogue at that URI, preferably on the vehicle over MAVLink FTP.
- Sends
PAYLOAD_CATALOGUE_STATUSafter startup and after every change, and when requested.
A listed entry shows that a catalogue is offered; whether the Client can use it depends on the version checks. When the entry is missing, the request times out, or the download fails, support is unknown.
A Payload Manager answers a solicited request for PAYLOAD_CATALOGUE_STATUS within 1000 ms of receiving it. One that builds its catalogue from functions on other components answers with AVAILABLE only after it has confirmed, since the request arrived, the current description of every contributing component; otherwise it answers GENERATING or UNAVAILABLE, and UNAVAILABLE when that confirmation has not finished within the 1000 ms (Functions on Other Components). For a function that an Executing Component carries out, it publishes a capabilityProfileRef only once it has established that the Executing Component serves the payload-operation bindings of the profile document with that sha256 as declared, and otherwise reports the catalogue UNAVAILABLE, because Clients cache a verified profile document as the function's contract. The profile's other bindings count as implemented when the component serving them supports that service, and an events binding as Event Bindings defines.
Retrieving the Catalogue and Profiles
A Client enforces these limits while it downloads and decodes, before schema validation allocates the whole document. An application profile may use smaller limits but not larger ones, except that it may raise the transfer timeouts below for its link rate.
| Resource | Catalogue | Capability profile |
|---|---|---|
| Bytes received | 1 MiB | 256 KiB |
| Decompressed JSON bytes | 4 MiB | Not compressed |
| JSON nesting depth, including nested schemas | 16 | 16 |
| Total decoded JSON values | 65536 | 16384 |
| Combined decoded string storage | 2 MiB | 512 KiB |
| Payload entries | 256 | |
| Function entries in one payload | 256 | |
| Function entries in the catalogue | 1024 | |
| Inhibition or measurement entries in one function | 256 each | |
| Service bindings in one function | 32 | |
| Selector properties in one service binding | 16 | |
| Vendor-data properties in one object | 32 | |
| Catalogue constraint entries | 256 | |
| Property, action, event, output, resource, and constraint entries, combined | 256 | |
| Members in one constraint | 32 | 32 |
| Property names, labels, names, schema titles, versions, serial numbers, service names, identifiers, and keys | 128 code points | 128 code points |
| Descriptions | 4096 code points | 4096 code points |
| URIs | 2048 code points | 2048 code points |
The value-count and string-storage limits stop a document of many small values from passing the per-entry limits, and vendorData relaxes none of them. One catalogue-validation pass downloads at most 64 distinct (profileId, profileVersion) pairs and 8 MiB of profile JSON; profiles beyond that are unavailable for the functions that need them. A duplicate object key makes a document invalid.
Documents are transferred with one of these profiles:
| Transfer | URI | Connection timeout | Idle timeout | Total per attempt |
|---|---|---|---|---|
| MAVLink FTP | mftp:/// absolute path, resolved against the component that advertised the metadata | Not applicable | 10 s | 120 s |
| HTTPS | https:// with certificate and hostname validation | 5 s | 10 s | 30 s |
Over a 9600 bit/s telemetry radio, for example, MAVLink FTP carries at most about 960 bytes a second, so one 120 s attempt fetches at most about 115 KB, and an application profile for such a link raises the total timeout to fit its largest catalogue. Other schemes, user information, and fragments are not supported. An HTTPS Client follows at most three redirects, each of which stays HTTPS and passes its network policy, and a redirect does not restart the total timeout. Documentation URIs are display links and are never fetched during validation.
A catalogue is uncompressed JSON ending in .json or one XZ stream ending in .json.xz. The Client selects the form from the path, never from a content-encoding header or the content. It computes the CRC over the exact bytes received and, for XZ, decodes with a streaming decoder limited to 16 MiB of memory, stops once the output exceeds 4 MiB, and rejects trailing or concatenated streams and a second compression layer. A Payload Manager compresses an XZ catalogue with an LZMA2 dictionary of at most 8 MiB, the dictionary of XZ preset 6, so that a decoder within that memory limit can decode it. A capability profile is uncompressed JSON ending in .json; over HTTPS the Client sends Accept-Encoding: identity and rejects any other Content-Encoding, so it hashes the published bytes.
A Client makes at most three attempts in a row for one announced file, with bounded backoff, and then waits at least one verification period before the next series. A status naming a different file cancels the transfer and resets the count (Catalogue Download Retried After a Dropout).
Validating Documents
After a catalogue transfer, the Client checks in this order:
- The CRC-32 of the bytes received matches the latest
AVAILABLEPAYLOAD_CATALOGUE_STATUS. - An XZ file decompresses within the limits.
- The JSON parses within the depth, value, and string limits, with no duplicate key.
- The document validates against the supported schema and the limits, and meets the rules the schema describes but its structure cannot enforce: the uniqueness and
instanceKeyrules in its root description, and the member andownerrules ofcatalogueConstraint. managerEpoch,catalogueRevision, the payload and function counts, and thedefinitionManifestdigest match the status, and every entry matches its runtime function (Binding Entries to Functions).- The latest status still names the same file. The cache is then replaced in one step.
Runtime reports can lag a new file, since the new PAYLOAD_INFO may be lost or arrive after the download. When check 5 fails only because runtime reports carry a lower descriptor_revision, or a different instance_epoch, than the file, or because no PAYLOAD_INFO has arrived for a function the file lists, the Client requests PAYLOAD_INFO for those functions and runs check 5 again on the bytes it holds, once, without counting that as an attempt.
After a profile transfer, the Client checks in this order:
- The path ends in
.jsonand the response was not content-encoded. - The SHA-256 of the bytes received matches
capabilityProfileRef.sha256. - The JSON parses within the limits, with no duplicate key.
- The document validates against
capabilityProfileDocument, every embedded schema validates against the restrictedcapabilitySchemasubset, and the document meets the uniqueness rules in the schema's root description. Bindings nested under different entries share one set ofbindingIdandbindingKeyvalues, and every constraint member andownernames a key the same document declares. profileIdandprofileVersionmatch the reference.- The function's
descriptor_revisionhas not changed since the reference was read.
Once every profile the catalogue binds is verified, the Client checks the rules that span documents, as the schema describes them: the constraint-member and prevents rules in its root description, the composition rule in capabilityProfileDocument, and the resourceScope, resourceId, and eventScope rules in capabilityProfileRef. For each event bound to events, it also checks that the sending component's events metadata defines the event under its eventScope ID, with the identity arguments first and the remaining argument names and types matching dataSchema, and that no other event that the same component sends has that ID, unless it is the same profile event, with the same profileId, profileVersion, and eventId. A Client whose copy of the events metadata does not define an eventScope ID reads that metadata again, at most once per catalogue revision, before it marks the event unusable. An event that fails either check is unusable, and the rest of the catalogue and profile is unaffected.
A document that fails any check is invalid, the same as one that fails the schema. capabilitySchema excludes $ref and pattern, so evaluation needs no network and no regular-expression budget. A Client evaluates schemas within the document's depth and value limits, only to validate input, output, and property values; nothing in a profile is executed.
A Client presents the outcome of retrieval and validation as:
| Outcome | Presentation |
|---|---|
| Transfer in progress | Metadata downloading, with runtime information still shown |
| Timeout, unreachable URI, or unavailable service | Metadata unavailable, or metadata stale when a valid cache exists |
| Any failed check | Metadata invalid, or metadata stale when a valid cache exists |
| A valid cached file that no longer matches the status or the runtime functions | Metadata stale |
A Client may show a local reason, such as "CRC mismatch", but never text from a rejected document. In every failure state it suppresses completeness and safety conclusions and enables no operation from rejected or stale metadata.
Binding Entries to Functions
A Client applies a catalogue entry only when all of these match the runtime messages from the same Payload Manager: managerEpoch and catalogueRevision match PAYLOAD_CATALOGUE_STATUS, and payloadId, instanceEpoch, functionId, and descriptorRevision match PAYLOAD_INFO. Every current function has exactly one matching entry.
A VENDOR_DEFINED function's entry names its private definition with privateTypeKey, which no other function type uses. The schema cannot check this, because the catalogue does not carry function_type.
A function that advertises the inhibition or measurement capability lists its inventory and the matching service binding. The Payload Manager reports every listed inhibition as PAYLOAD_INHIBIT defines, including its renewal. Each inhibition entry lists in prevents the operations it can keep from running, by kind or as one action or property of a bound profile, as the schema defines, so a Client can show which controls it blocks, and step 13 of the Processing Order answers INHIBITED only for an inhibition that lists the request.
genericOperations says which of a function's generic operations can be cancelled and how soon the Payload Manager answers a cancel (Operations). It does not advertise the operations; only PAYLOAD_INFO does.
Service Bindings
A service binding names a MAVLink service that can identify the function. This guide defines these names for the first schema version:
| Name | Service |
|---|---|
camera | Camera Protocol |
gimbal-v2 | Gimbal Protocol v2 |
distance-sensor | DISTANCE_SENSOR |
esad | MAVLink-M ESAD state, arming, and configuration messages |
events | The Events interface: EVENT, with CURRENT_EVENT_SEQUENCE, REQUEST_EVENT, and RESPONSE_EVENT_ERROR |
gripper | MAV_CMD_DO_GRIPPER, answered by COMMAND_ACK |
parachute | MAV_CMD_DO_PARACHUTE, answered by COMMAND_ACK |
payload-state | PAYLOAD_STATE |
payload-inhibit | PAYLOAD_INHIBIT |
payload-measurement | PAYLOAD_MEASUREMENT |
payload-operation | The operation exchange, PAYLOAD_OPERATION_REQUEST, for profile operations |
storage-information | STORAGE_INFORMATION, for remaining storage capacity |
winch | MAV_CMD_DO_WINCH, answered by COMMAND_ACK, with WINCH_STATUS |
mavlink-ftp | MAVLink FTP, for a file identified by a completed action's result |
A binding stays within the Payload Manager's MAVLink system. targetComponentId is where the service's commands go and defaults to the Payload Manager's component; a report-only service ignores it. reportComponentId is where its reports come from, and defaults to targetComponentId and then to the Payload Manager. selectors carries the service's own instance selectors:
| Service | Selector | How identity is confirmed |
|---|---|---|
camera | cameraDeviceId | Replies come from the report component and, where present, repeat the camera device ID. |
gimbal-v2 | gimbalDeviceId | Status names the selected gimbal device. |
distance-sensor | sensorId | The packet source and DISTANCE_SENSOR.id. Report-only. |
esad | esadId, optionally storeId | Commands carry these fields, and ESAD_STATE from the report component repeats them. |
events | None | The packet source, the EVENT.id that eventScope gives, and the event's identity arguments (Event Bindings). Report-only. |
gripper | gripperId | Commands carry it in param 1, from 1 upwards, since 0 targets every gripper. In a mission item, which the autopilot carries out, param 1 is the gripperId of a gripper connected to the autopilot, and the component ID of a gripper that is its own MAVLink component, its binding's targetComponentId. A mission item cannot select one of several grippers at the same component other than the autopilot's, such as two that the Payload Manager serves at its own component, so a catalogue that needs a gripper operated from a mission binds it at a component that serves no other gripper. The command has no report, so the COMMAND_ACK from the target component confirms the instance. |
parachute | None | The command has no instance selector, so the target component alone identifies the parachute. A catalogue binds parachute to a given target component from at most one function; when two or more do, every one of those bindings is invalid, and no Client sends the command through them. |
storage-information | storageId | The packet source and STORAGE_INFORMATION.storage_id. Report-only. |
winch | winchInstance | Commands carry it in param 1, from 1 upwards. WINCH_STATUS has no instance field, so it confirms the instance only when no other function binds winch with the same reportComponentId; otherwise the binding's reports count for neither function. |
A binding is valid only if the service can select the function's instance in commands and confirm the same instance as the table above says: in reports, or, for a service with no report, in the acknowledgement from its target component. A winch binding whose reports cannot confirm the instance stays valid for commands, and its reports count for neither function. SENSOR_TASKING and the track messages cannot, so they are not bound per function.
payload-operation is needed only for profile operations, since generic operations need no metadata. It needs no selectors, because its request carries the logical identity, and its binding carries no extension contract, because the profile declares the input and result.
New shared service names are lowercase words separated by hyphens. A private name starts with vendor. and a reverse-domain namespace. A Client preserves an unknown name for display or forwarding and never selects a control interface by it.
Event Bindings
A profile event binds the events service so that a Client with no payload-specific code can show it. The sending component is the reportComponentId of the function's events service binding, and by default the Payload Manager.
It lists COMP_METADATA_TYPE_EVENTS in its own general metadata, and that file defines each bound event. A sender whose events metadata can change while it runs, for example when a function whose profile it has not met before is attached, lists it without fileCrc.
A component other than the listing Payload Manager sends a function's bound events only when the Payload Manager gives it the function's payload_id, function_id, and instance_epoch, and each new instance_epoch before it sends an event of that instance, over an interface this protocol does not define. Otherwise the Payload Manager sends that function's events itself.
An event's 32-bit ID combines the 8-bit component ID of its events namespace, normally the sending component's MAVLink component ID, with a 24-bit sub-ID, so the same profile event can have a different ID on each deployment. The catalogue gives it in the eventScope of the function's capabilityProfileRef, not in the profile.
EVENT has no payload fields, so the first three arguments of every bound event are payload_id (uint16_t), function_id (uint16_t), and instance_epoch (uint64_t). They take 12 of the 40 argument bytes. The remaining arguments carry the event's data, named and typed as the profile's dataSchema declares. libevents, whose format the events metadata follows, limits an event's arguments to 25 bytes by default (config.ini), and its validator rejects a larger event (validate.py). A profile event whose data fits in the 13 bytes left after the identity arguments therefore works with the usual tooling.
An events binding counts as implemented only when the events metadata of the sending component defines the event under the ID that the capabilityProfileRef's eventScope gives, with the three identity arguments first and the event's data arguments after them.
Runtime Changes
- Startup: the Payload Manager creates a new nonzero
manager_epoch, startscatalogue_revisionandreport_sequenceat 1, publishes the catalogue before reporting itAVAILABLE, and sendsPAYLOAD_INFOfor every function. One that cannot create a restart identity reportsmanager_epoch0. - Attachment: the payload gets a
payload_idand a nonzeroinstance_epochgreater than any thatpayload_idhad before, or 0 only where that field allows it, and its function IDs stay stable for that instance. - Replacement: a slot may keep its
payload_id, but the replacement gets a greaterinstance_epoch. Clients follow Instance Changes. - Descriptor change: a change to a function's type, category, activation pattern, capabilities, labels, product information, documentation, service bindings, profile references (including
instanceKey,resourceScope, andeventScope),genericOperations, or inventories increases itsdescriptor_revision. A change to a catalogue constraint increases thedescriptor_revisionof every function it names, before or after the change. - Removal: where possible, the Payload Manager first reports
PAYLOAD_STATEwith availabilityNOT_PRESENT, then removes the entries, and any catalogue constraint naming them, from the next catalogue. A removedfunction_idis not reused within the sameinstance_epoch, and a removedpayload_idis not given to different hardware without a newinstance_epoch.
Each change produces a complete replacement file, made available at the stable URI in one step. The Payload Manager then sends AVAILABLE status with the new revision, CRC, and counts. While a file is being built it may report GENERATING and keep serving the last complete one. A Client whose download does not match the latest CRC requests the status again and retries.
Catalogue Status and the Inventory Lease
A Client may treat its cached catalogue as the complete, current inventory only while it holds a catalogue inventory lease. Only a solicited confirmation establishes or renews the lease: an AVAILABLE PAYLOAD_CATALOGUE_STATUS from the expected Payload Manager whose manager_epoch, catalogue_revision, catalogue_file_crc, payload_count, and function_count match the validated file, and whose correlation key matches a request the Client is still waiting on. The key is the requester_system_id, requester_component_id, session_id, and request_id that a solicited reply copies from the request it answers.
- The Client chooses a verification period
P, polls at least once perP, and sets each request's response timeout, measured from its first send, no longer thanPand at least 1000 ms plus its allowance for the round trip, since a Payload Manager answers within 1000 ms of receipt. The lease expires three periods after the Client first sent the request that the last solicited confirmation answered. An application profile may shorten this, but not lengthen it. The watchdog uses the Client's monotonic clock and neverobservation_time_usec. - A reply confirms only when all four correlation values match a request the Client is still waiting on, it arrives within that request's response timeout, and the Client has already validated the file it names. A reply that arrives before then, such as the one that announced the file, confirms nothing. A reply that arrives after its request's timeout matches nothing and renews nothing. A streamed or unsolicited status, which carries
request_id0, can make the lease stale but never renews it, and neither does a command acknowledgement, a heartbeat, or any other report. - The requester identity comes from the packet source of
MAV_CMD_REQUEST_MESSAGE, becauseCOMMAND_LONGhas no field for an original requester. Only a forwarder that keeps the Client's packet source can carry it; a Gateway that sends the command on under its own identity receives a reply that no Client behind it can match. - The lease becomes stale at once when a status from the expected Payload Manager, streamed or solicited, reports a different epoch, revision, CRC, or count, or
GENERATING,UNAVAILABLE, orUNKNOWN. A status thatreport_sequenceorders before one already accepted in the samemanager_epochis an out-of-order copy and is discarded, as that field defines. - The Client never reuses a
request_idwithin a session, including after a timeout, and uses asession_idit has never used before under the same requester identity after a restart or once itsrequest_idrange is exhausted. A resend of the same command under the Command Protocol keeps itsrequest_idand is not a reuse. Because no two of its requests share the four values, a delayed reply to an earlier request, or a reply to another Client, cannot match a new request, and a matching reply was generated after its request was sent. - A Client that cannot guarantee a never-used
session_idafter a restart, for example one without persistent storage, never treats a reply as a solicited confirmation. A random session value does not meet this rule, although one from a source that differs between starts is enough for an operation request (Repeated Requests and Records). The same applies when the Payload Manager answers with zero correlation fields. - Clients that share one requester system and component ID are indistinguishable. They coordinate their session values or use distinct component IDs.
Without a current lease, the Client keeps the last valid catalogue for labels and reconciliation but marks it stale. Each report still shows with its own freshness, but the inventory is unverified, so conclusions such as "all expected inhibition records report clear" are suppressed. Reports that keep arriving for the records in the old catalogue do not show that nothing was added.
Caching
A Client keys a cached catalogue by the reporting system and component, the verified manifest digest, schemaVersion, manager_epoch, catalogue_revision, and file CRC. A function description adds payload_id, instance_epoch, function_id, and descriptor_revision, and inhibition and measurement descriptions add their IDs. A capability profile is keyed only by (profileId, profileVersion, sha256), never goes stale, and is shared by every function that references it.
A Client replaces a cache only with a document that passed every check, and marks cached descriptions stale as soon as it adopts a new epoch or a revision, CRC, or binding differs. When retrieval fails it keeps the last valid file, marked stale, and retries as Retrieving the Catalogue and Profiles defines. UNAVAILABLE is a normal state and does not stop runtime reporting.
Capability Profile Fallback
A profile is unusable while it is downloading, when its profileSchemaVersion is unknown, or when it fails a check. The function's runtime reports and advertised generic operations keep working, because none of them depends on a profile. The Client does not guess the capability from the function's type, label, or another profile, sends no profile operation for it, and enables no control that depends on it. It shows the capability as unsupported when no verified profile has been available, and as unavailable or stale when one was. An unusable event is shown as unsupported in the same way.
A verified profile proves only that the Client and the Payload Manager agree on what an action or property means. The Payload Manager still checks every request, in the Processing Order.
Message/Command/Enum Summary
| Message | Description |
|---|---|
PAYLOAD_CATALOGUE_STATUS | Current catalogue version, CRC, counts, and definition manifest digest, and the answer to a correlated status request. |
PAYLOAD_INFO | Runtime description of one function, including the descriptor_revision a catalogue entry matches. |
COMPONENT_METADATA | URI and CRC of the component's general metadata file. |
| Command | Description |
|---|---|
MAV_CMD_REQUEST_MESSAGE | Requests COMPONENT_METADATA, or PAYLOAD_CATALOGUE_STATUS under a correlation key. |
MAV_CMD_SET_MESSAGE_INTERVAL | Requests periodic delivery of PAYLOAD_CATALOGUE_STATUS. |
| Enum | Description |
|---|---|
COMP_METADATA_TYPE | Component Metadata types: this dialect adds COMP_METADATA_TYPE_PAYLOAD_CATALOGUE for the payload catalogue, and bound events use COMP_METADATA_TYPE_EVENTS. |
PAYLOAD_CATALOGUE_STATE | Whether the catalogue can be downloaded. |
| Schema | Description |
|---|---|
payloads.schema.json | The payload catalogue, and the capability profile document as capabilityProfileDocument. |
definition-manifest.schema.json | The immutable manifest of one release's definitions. |
Examples
The examples are in component_metadata/examples/.
| File | Shows |
|---|---|
payloads.example.json | A catalogue with four civil payloads: an EO/IR gimbal whose cameras, gimbal, and rangefinder bind their standard services; a parachute released through the autopilot; an environmental survey sensor and recorder that share one storage pool; and a dual actuator unit under a catalogue-level constraint. |
capability-profile-survey-sensor.example.json | A sample output and a storage resource declared for sharing. |
capability-profile-survey-recorder.example.json | Actions with typed input, a file output over MAVLink FTP, a shared-resource constraint, and an event bound to the Events interface. |
capability-profile.example.json | A linear actuator: a move action with typed input and result, a read-only property, and a writable one, each linked to its API documentation. |
capability-profile-parachute.example.json | State properties and actions bound to MAV_CMD_DO_PARACHUTE, with their lifecycle effects. |
capability-profile-gripper.example.json | Grip and release actions with typed input, used in the protocol guide's sequences. No function in the catalogue example binds it. |
events.example.json | Events metadata in libevents format, defining the recorder's event with its identity arguments. |
definition-manifest.example.json | The manifest of one release's definitions, with their digests. |
general.example.json | General metadata listing the payload catalogue and the events metadata. |
Sequences
Arguments name XML fields, some shortened: request and session are request_id and session_id, revision is catalogue_revision, CRC is catalogue_file_crc, manifest is definition_manifest_sha256, and requester gives the requester's system/component pair. A catalogue status lists its catalogue_state first, and an operation status lists its stage and then its result. Arrows between the Payload Manager and a payload or Executing Component carry the link labels of Common Set-ups.
Catalogue Retrieval
The general metadata file is always read from the Payload Manager over MAVLink FTP, as COMPONENT_METADATA requires. The catalogue it points to may be hosted elsewhere, here on a file server. The reply to request 1 arrives before any file has been validated, so the lease starts only with the reply to request 2, sent after validation.
sequenceDiagram
participant C as Client
participant M as Payload Manager
participant F as File server
C->>M: MAV_CMD_REQUEST_MESSAGE(COMPONENT_METADATA)
M-->>C: COMMAND_ACK(ACCEPTED)
M-->>C: COMPONENT_METADATA(general file URI and CRC)
C->>M: MAVLink FTP: read general metadata
M-->>C: Lists COMP_METADATA_TYPE_PAYLOAD_CATALOGUE and its URI
C->>M: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=1, session=7)
M-->>C: COMMAND_ACK(ACCEPTED)
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=3, CRC, manifest, session=7, request=1)
Note over C: The manifest digest is supported, so the runtime messages can be interpreted
C->>F: Fetch catalogue
F-->>C: Catalogue bytes
C->>C: Validate, then fetch and verify each referenced profile
C->>M: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=2, session=7)
M-->>C: COMMAND_ACK(ACCEPTED)
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=3, CRC, session=7, request=2)
Note over C: The reply matches a waiting request and the validated file, so the lease starts
Catalogue Change
sequenceDiagram
participant C as Client
participant M as Payload Manager
participant P as Payload 16
participant F as File server
P-->>M: Device interface: attached
M->>F: Publish complete revision 4
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=4, request=0)
Note over C: Different revision: the lease is stale at once
C->>F: Fetch catalogue
F-->>C: Revision 4 bytes
C->>C: Validate
C->>M: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=6, session=7)
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=4, session=7, request=6)
Note over C: Solicited confirmation of the new file renews the lease
Late Reply to a Lease Poll
Poll A times out and poll B's reply is lost. A's reply arrives late, after the catalogue has moved on, and matches nothing. The lease is not renewed and expires on schedule unless a later poll is answered.
sequenceDiagram
participant C as Client
participant M as Payload Manager
C->>M: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=17) at 0 s
Note over C: Request 17 times out at 1.5 s
C->>M: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=18) at 2 s
M-->>C: PAYLOAD_CATALOGUE_STATUS(revision=7, request=17) at 2.1 s
Note over C: No longer waiting on 17: matches nothing
M--xC: PAYLOAD_CATALOGUE_STATUS(revision=8, request=18) lost
Profile Retrieval and Verification
After validating the catalogue, the Client fetches and hashes each referenced profile. The recorder's profile does not match its digest, so its profile operations show as unsupported, while its generic operations keep working.
sequenceDiagram
participant C as Client
participant M as Payload Manager
participant P as Payload 12
participant F as File server
C->>F: Fetch com.example.survey.sensor v1
F-->>C: Profile bytes
C->>C: SHA-256 matches, document validates
C->>F: Fetch com.example.survey.recorder v1
F-->>C: Profile bytes
C->>C: SHA-256 does not match capabilityProfileRef.sha256
Note over C: Recording shown as unsupported, no profile operation sent for it
C->>M: PAYLOAD_OPERATION_REQUEST(request=5, payload 12, function 2, RUN_SELF_TEST)
M->>P: Device interface: run self-test
P-->>M: Device interface: passed
M-->>C: PAYLOAD_OPERATION_STATUS(request=5, COMPLETED, SUCCESS)
Download That Races a Change
Revision 5 is published and announced before the Client fetches it, but the catalogue changes again to revision 6 during the download, and the status for revision 6 is lost. The bytes it receives do not match the CRC it holds, so it requests the status again and retries.
sequenceDiagram
participant C as Client
participant M as Payload Manager
participant P1 as Payload 16
participant P2 as Payload 17
participant F as File server
P1-->>M: Device interface: attached
M-->>C: PAYLOAD_CATALOGUE_STATUS(GENERATING, request=0)
Note over C: Lease stale. The last complete file is still served
M->>F: Publish complete revision 5
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=5, CRC=A, request=0)
C->>F: Fetch catalogue
P2-->>M: Device interface: attached
M->>F: Publish complete revision 6
M--xC: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=6, CRC=B, request=0) lost
F-->>C: Revision 6 bytes
C->>C: CRC is B, not A: check fails
C->>M: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=3, session=7)
M-->>C: COMMAND_ACK(ACCEPTED)
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=6, CRC=B, session=7, request=3)
C->>F: Fetch catalogue
F-->>C: Revision 6 bytes
C->>C: CRC matches: validate
Catalogue Download Retried After a Dropout
A link dropout just after takeoff fails three attempts to fetch the same file. The catalogue does not change, so no status names a different file, and the Client starts the next series after one verification period.
sequenceDiagram
participant C as Client
participant F as File server
Note over C,F: The link drops out just after takeoff
C->>F: Fetch catalogue, attempt 1
F--xC: Transfer fails
C->>F: Fetch catalogue, attempt 2, after a backoff
F--xC: Transfer fails
C->>F: Fetch catalogue, attempt 3, after a longer backoff
F--xC: Transfer fails
Note over C: Three attempts in a row: wait at least one verification period
Note over C,F: The link recovers
C->>F: Fetch catalogue, first attempt of the next series
F-->>C: Catalogue bytes
C->>C: CRC matches: validate
Functions on Other Components
Payload Manager 1/191 presents a function that Executing Component 1/150 executes. It lists the function's profile, and answers a status request with AVAILABLE, only after confirming that 1/150 serves the profile's payload-operation bindings. How it confirms this is not defined by this protocol.
sequenceDiagram
participant C as Client
participant M as Payload Manager 1/191
participant E as Executing Component 1/150
participant F as File server
C->>M: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=4, session=7)
M-->>C: COMMAND_ACK(ACCEPTED)
M->>E: Confirmation: check current description
Note over E: No answer
Note over M: Not confirmed within 1000 ms of the request
M-->>C: PAYLOAD_CATALOGUE_STATUS(UNAVAILABLE, session=7, request=4)
M->>E: Confirmation: check current description
E-->>M: Confirmation: serves the bindings of the profile with the declared sha256
M->>F: Publish revision 2 with the profile reference
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=2, request=0)
C->>M: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=5, session=7)
M-->>C: COMMAND_ACK(ACCEPTED)
M->>E: Confirmation: check current description
E-->>M: Confirmation: unchanged
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=2, session=7, request=5)
Catalogue Status Through a Forwarder or Gateway
COMMAND_LONG has no field for an original requester, so the requester of a catalogue status is the command's packet source. A forwarder that keeps the Client's packet source gets a reply the Client can match. A Gateway that sends the command on under its own identity gets a reply that no Client behind it can match.
sequenceDiagram
participant C1 as Client 255/190
participant W as Forwarder
participant C2 as Client 254/190
participant G as Gateway 1/191
participant M as Payload Manager 1/1
C1->>W: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=5, session=7)
W->>M: Same packet, source 255/190
M-->>W: PAYLOAD_CATALOGUE_STATUS(requester=255/190, session=7, request=5)
W-->>C1: PAYLOAD_CATALOGUE_STATUS(requester=255/190, session=7, request=5)
Note over C1: Matches its request: lease renewed
C2->>G: MAV_CMD_REQUEST_MESSAGE(PAYLOAD_CATALOGUE_STATUS, request=5, session=9)
G->>M: MAV_CMD_REQUEST_MESSAGE, source 1/191
M-->>G: PAYLOAD_CATALOGUE_STATUS(requester=1/191, session=9, request=5)
G-->>C2: PAYLOAD_CATALOGUE_STATUS(requester=1/191, session=9, request=5)
Note over C2: Requester is not 254/190: matches nothing
Payload Removal
The Payload Manager reports that the payload has gone, then publishes a revision without its entries or any constraint that named them.
sequenceDiagram
participant C as Client
participant M as Payload Manager
participant P as Payload 13
participant F as File server
P-->>M: Device interface: detached
M-->>C: PAYLOAD_STATE(payload 13, function 1, availability=NOT_PRESENT)
M-->>C: PAYLOAD_STATE(payload 13, function 2, availability=NOT_PRESENT)
M->>F: Publish complete revision 8 without payload 13
M-->>C: PAYLOAD_CATALOGUE_STATUS(AVAILABLE, revision=8, payload_count=3, function_count=7)
C->>F: Fetch catalogue
F-->>C: Revision 8 bytes
Note over C: Payload 13 and the dual-actuator constraint are gone
How to Implement the Payload Manager Interface
Messages to send:
COMPONENT_METADATA, listingCOMP_METADATA_TYPE_PAYLOAD_CATALOGUEin the general file (Publishing the Catalogue).PAYLOAD_CATALOGUE_STATUSafter startup, after every change, and when requested, with the correlation fields its description defines and the digest of its release's definition manifest (Versions), a solicited reply within 1000 ms of the request and addressed to its packet source (Publishing the Catalogue).
Documents to serve:
- The catalogue, published as one complete replacement for each change (Runtime Changes).
- Each capability profile as its exact published bytes. A profile for a function another component executes is referenced only under the rule in Publishing the Catalogue.
- The events metadata, listed as
COMP_METADATA_TYPE_EVENTSin the general file, when the Payload Manager sends a function's bound events (Event Bindings).
Commands to answer:
MAV_CMD_REQUEST_MESSAGEforCOMPONENT_METADATAandPAYLOAD_CATALOGUE_STATUS, andMAV_CMD_SET_MESSAGE_INTERVALforPAYLOAD_CATALOGUE_STATUS, as Querying and Streaming Reports defines.
How to Implement the Client Interface
Commands to send:
MAV_CMD_REQUEST_MESSAGEforCOMPONENT_METADATA(Publishing the Catalogue).MAV_CMD_REQUEST_MESSAGEforPAYLOAD_CATALOGUE_STATUSat least once per verification period, with arequest_idandsession_idnever used before (Catalogue Status and the Inventory Lease).
Documents to fetch:
- The catalogue and each profile, within the limits and transfer profiles in Retrieving the Catalogue and Profiles, checked in the order in Validating Documents.
- The events metadata of each component that sends bound events (Event Bindings).
- Only definitions and schema versions the Client supports (Versions).
- Caches keyed and replaced only as Caching defines.
- Stale or invalid metadata shown as such, with completeness and safety conclusions suppressed (Validating Documents).
- An unusable profile's capabilities shown as unsupported, with nothing guessed (Capability Profile Fallback), and a constraint left unresolved until every member's profile is verified (Capability Profiles).
Messages to handle:
PAYLOAD_CATALOGUE_STATUS, whosedefinition_manifest_sha256is checked against the supported digests before anyPAYLOAD_*value is interpreted (Versions), and where only a solicited, matching reply that arrives after the file it names is validated renews the lease, any differing status makes it stale, and a lowerreport_sequenceis discarded (Catalogue Status and the Inventory Lease).PAYLOAD_INFO, to which a catalogue entry applies only when its identifiers match (Binding Entries to Functions), and whose runtime values win over the catalogue (Runtime Messages and Metadata).