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 secure_packet_v1 for secure concentrators #194

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
51 changes: 51 additions & 0 deletions src/service/poc_lora.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,56 @@ enum invalid_reason {
invalid_frequency = 13;
}

message secure_packet_v1 {
// frequency in Hz
uint64 freq = 1;

data_rate datarate = 2;

// Signal to Noise radio (0.01dB)
int32 snr = 3;

// Received Signal Strength Indicator (1 dBm)
int32 rssi = 4;

// Internal timestamp of "RX finished" event
uint32 tmst = 5;

// Globally Unique identifier of Concentrator Card
bytes card_id = 6;

optional wgs84_position pos = 7;

// time of beacon was received by concentrator (can be used for TDOA)
optional gps_time time = 8;

// signature of the RX pkt signed by Secure Concentrator Card
bytes signature = 9;
}

message wgs84_position {
// (deg) 1e-7 scale
int32 latitude = 1;

// (deg) 1e-7 scale
int32 longitude = 2;

// Height above ellipsoid (mm)
int32 height = 3;

// Horizontal accuracy estimate (mm)
uint32 hacc = 4;

// Vertical accuracy estimate (mm)
optional uint32 vacc = 5;
}

// Duration since the GPS epoc (0h 6-Jan-1980)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed comments about the well known type... better to look at this proposed guideline #208

message gps_time {
uint64 sec = 2;
uint32 nano = 3;
}

// beacon report as submitted by gateway to ingestor
message lora_beacon_report_req_v1 {
bytes pub_key = 2;
Expand Down Expand Up @@ -58,6 +108,7 @@ message lora_witness_report_req_v1 {
uint64 frequency = 8;
data_rate datarate = 10;
bytes signature = 11;
optional secure_packet_v1 secure_pkt = 12;
}

// response returned to gateway submitting witness report to ingestor
Expand Down