From cce72e50751a78c1f07fb5b21f1019b6fac3c850 Mon Sep 17 00:00:00 2001 From: Matthew Plant Date: Tue, 18 Jul 2023 11:10:05 -0400 Subject: [PATCH] Add seniority update as alternative to adding seniority ts to heartbeat (#356) --- src/service/poc_mobile.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/service/poc_mobile.proto b/src/service/poc_mobile.proto index eaa63b1d..6113d1a3 100644 --- a/src/service/poc_mobile.proto +++ b/src/service/poc_mobile.proto @@ -197,6 +197,20 @@ enum heartbeat_validity { heartbeat_validity_too_far_from_coverage = 9; } +message seniority_update { + string cbsd_id = 1; + // Timestamp of the new seniority for the radio + uint64 new_seniority_timestamp = 2; + seniority_update_reason reason = 3; +} + +enum seniority_update_reason { + // We haven't seen a heartbeat for 72 hours + seniority_update_reason_heartbeat_not_seen = 0; + // A new coverage object replaces the old seniority + seniority_update_reason_new_coverage_claim_time = 1; +} + message speedtest_avg { bytes pub_key = 1; /// bytes/sec