Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add OpenDroneID Auth message to Remote ID DroneCAN message types #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions dronecan/remoteid/20036.Auth.uavcan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# DroneCAN version of MAVLink OPEN_DRONE_ID_AUTH
# see MAVLink XML for detailed description
#
uint8[<=20] id_or_mac

uint8 ODID_AUTH_TYPE_NONE = 0 # No authentication type is specified.
uint8 ODID_AUTH_TYPE_UAS_ID_SIGNATURE = 1 # Signature for the UAS (Unmanned Aircraft System) ID.
uint8 ODID_AUTH_TYPE_OPERATOR_ID_SIGNATURE = 2 # Signature for the Operator ID.
uint8 ODID_AUTH_TYPE_MESSAGE_SET_SIGNATURE = 3 # Signature for the entire message set.
uint8 ODID_AUTH_TYPE_NETWORK_REMOTE_ID = 4 # Authentication is provided by Network Remote ID.
uint8 ODID_AUTH_TYPE_SPECIFIC_AUTHENTICATION = 5 # The exact authentication type is indicated by the first byte of authentication_data and these type values are managed by ICAO.

uint8 authentication_type # ODID_AUTH_TYPE

uint8 data_page # data_page

uint8 last_page_index # This field is only present for page 0. Allowed range is 0 - 15. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h.

uint8 length # [bytes] This field is only present for page 0. Total bytes of authentication_data from all data pages. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h.

uint32 timestamp # [seconds] This field is only present for page 0. 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019.

uint8[<=23] # Opaque authentication data. For page 0, the size is only 17 bytes. For other pages, the size is 23 bytes. Shall be filled with nulls in the unused portion of the field.