Skip to content

Treat UAS ID Types based on data type accordingly#139

Open
kc2rxo wants to merge 1 commit intoArduPilot:masterfrom
kc2rxo:ardurid-issue-124
Open

Treat UAS ID Types based on data type accordingly#139
kc2rxo wants to merge 1 commit intoArduPilot:masterfrom
kc2rxo:ardurid-issue-124

Conversation

@kc2rxo
Copy link

@kc2rxo kc2rxo commented Jan 25, 2024

F3411-22a defines the UAS ID Types to have the following data types:

  1. Serial Numbers as ASCII string
  2. CAA Assigned ID as ASCII string
  3. UTM Assigned ID as UUIDv4 (encoded as bytes)
  4. Specific Session ID as bytes

This PR fixes an issue (documented in #124) where the use of ODID_COPY_STR (specifically the strncpy function within it) was incorrectly truncating UAS IDs (specifically ID Types 3 and 4) on the first occurrence of a 0 or null byte.

ID Types 3 and 4 are byte structures as defined in F3411-22a and should be treated as such.
@kc2rxo
Copy link
Author

kc2rxo commented Nov 9, 2025

@tridge -- repinging this particular PR as it provides a fix to a rather insidious bug I uncovered for UTM Assigned IDs and Specific Session IDs.

I have been running the fix on my own development units that supports Specific Session IDs, specifically the DRIP Entity Tag (DET, RFC9374) since the PR was opened without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant