Skip to content

Instantly share code, notes, and snippets.

@ricehornet
Created February 9, 2020 19:40
Show Gist options
  • Save ricehornet/aee5a90cefbac877e2f2afde98e599dd to your computer and use it in GitHub Desktop.
Save ricehornet/aee5a90cefbac877e2f2afde98e599dd to your computer and use it in GitHub Desktop.
ASP Accessory Symmetric Key Link Manager
ASP Accessory Symmetric Key Link Manager
Unlinked
Unlinked Idle*
link_manager_process_ticks->Broadcast Timeout Expired?
valid_asp_link_challenge_received->Computing Link Key
Broadcasting Identity
notify_core_accessory_unlinked->Unlinked Idle
Broadcast Timeout Expired?
timeout expired?->Broadcasting Identity
timeout not expired?->Unlinked Idle
Linking
Computing Link Key
key_computed_ok->Store Initiator Link Parameters
key_not_computed_ok-> Error During Linking
Store Initiator Link Parameters
initiator_parameters_stored_ok->Respond Confirming Link
initiator_parameters_not_ok-> Error During Linking
Respond Confirming Link
notify_core_link_success->Linked Idle
Error During Linking
notify_core_link_failure->Unlinked Idle
Linked
Linked Idle
link_manager_process_ticks->Link Timeout Expired?
valid_unlink_command_received->Unlinking
Link Timeout Expired?
timeout expired?->Unlinking
timeout not expired?->Linked Idle
Unlinking
notify_core_link_deleted->Unlinked Idle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment