Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
iridium_driver.proto
Go to the documentation of this file.
1syntax = "proto2";
2import "goby/acomms/protobuf/driver_base.proto";
3import "goby/acomms/protobuf/modem_message.proto";
4import "dccl/option_extensions.proto";
5
6package goby.acomms.iridium.protobuf;
7
8enum DeviceType
9{
10 DEVICE_VOICE_ENABLED_ISU =
11 1; // e.g. 9523, etc.: device capable of making calls
12 DEVICE_IRIDIUM_9602_9603 = 2; // RockBLOCK, etc.
13}
14message Config
15{
16 message Remote
17 {
18 required string iridium_number = 1;
19 required int32 modem_id = 2;
20 }
21
22 optional Remote remote = 1;
23 optional uint32 max_frame_size = 2 [default = 1500];
24 optional int32 target_bit_rate = 3 [default = 2400];
25 repeated string config = 4;
26 optional int32 dial_attempts = 5 [default = 3];
27 optional int32 debug_client_port = 6;
28
29 optional int32 hangup_seconds_after_empty = 8 [default = 30];
30 optional int32 start_timeout = 9 [default = 20];
31 optional bool use_dtr = 10 [default = false];
32 optional int32 handshake_hangup_seconds = 12 [default = 5];
33
34 optional bool enable_sbdring_automatic_registration = 13 [default = true];
35
36 optional DeviceType device = 14 [default = DEVICE_VOICE_ENABLED_ISU];
37
38 // +CSQ bars required to start an SBD session
39 optional int32 sbd_min_signal_strength = 15 [default = 2];
40 // after a failed SBD session, wait this long (doubling on each consecutive
41 // failure, up to sbd_retry_backoff_max) before starting another
42 optional int32 sbd_retry_backoff_initial = 16 [default = 60]; // seconds
43 optional int32 sbd_retry_backoff_max = 17 [default = 600]; // seconds
44 // each back-off is extended by a random [0, fraction) of itself
45 optional double sbd_retry_jitter_fraction = 18 [default = 0.25];
46 // delay each SBD session started by the MAC by a random [0, value) so that
47 // sessions don't land on the top of the second or minute
48 optional double sbd_session_jitter = 19 [default = 5]; // seconds
49 // minimum time from one SBD session to the next session started by the MAC
50 // (0 = no minimum). Iridium recommends 60 s for frequent-reporting applications.
51 optional int32 sbd_min_session_interval = 20 [default = 0]; // seconds
52 // +SBDST session timeout set on the modem, so a stalled session ends with MO
53 // status 17 (0 = leave the modem default of no timeout)
54 optional int32 sbd_session_timeout = 21 [default = 50]; // seconds
55 // send AT*F on shutdown so that the modem can safely have its power removed
56 // afterwards. The modem stops responding to commands until it is power cycled.
57 optional bool flush_eeprom_on_shutdown = 22 [default = false];
58}
59
60extend goby.acomms.protobuf.DriverConfig
61{
62 optional Config config = 1381;
63}
64
65message RockblockReceive
66{
67 option (dccl.msg).unit_system = "si";
68
69 optional int32 momsn = 1;
70 optional double iridium_latitude = 2 [(dccl.field) = {
71 units { derived_dimensions: "plane_angle" system: "angle::degree" }
72 }];
73 optional double iridium_longitude = 3 [(dccl.field) = {
74 units { derived_dimensions: "plane_angle" system: "angle::degree" }
75 }];
76
77 // Short Burst Data Developers Guide:
78 // The CEP radius provides the radius (in Kilometers) around the center
79 // point within which the IMEI is located with a 80% probability of
80 // accuracy.
81 optional double iridium_cep_radius = 4 [
82 (dccl.field) = { units { prefix: "kilo" derived_dimensions: "length" } }
83 ];
84
85 optional int32 serial = 5;
86 optional string imei = 6;
87 optional string device_type = 7;
88 optional string transmit_time = 8;
89 optional bool jwt_verified = 9 [default = false];
90}
91
92message RockblockTransmit
93{
94 required bool success =
95 1; // true if HTTP result = 200, and body status == OK
96
97 optional int32 mt_id = 2;
98
99 enum Error
100 {
101 ERROR_SUCCESS = -1;
102 ERROR_PARSE_FAILURE = -2;
103
104 // == rockblock error code
105 // https://docs.rockblock.rock7.com/reference/testinput
106 ROCKBLOCK_ERROR_INVALID_LOGIN_CREDENTIALS = 10;
107 ROCKBLOCK_ERROR_IMEI_NOT_FOUND_ON_YOUR_ACCOUNT = 11;
108 ROCKBLOCK_ERROR_HAS_NO_LINE_RENTAL = 12;
109 ROCKBLOCK_ERROR_ACCOUNT_HAS_INSUFFICIENT_CREDIT = 13;
110 ROCKBLOCK_ERROR_COULD_NOT_DECODE_HEX_DATA = 14;
111 ROCKBLOCK_ERROR_DATA_TOO_LONG = 15;
112 ROCKBLOCK_ERROR_NO_DATA = 16;
113 ROCKBLOCK_ERROR_SYSTEM_ERROR = 99;
114 ROCKBLOCK_ERROR_UNKNOWN = 100;
115
116 // from cpp-httplib
117 HTTP_ERROR_UNKNOWN = 101;
118 HTTP_ERROR_CONNECTION = 102;
119 HTTP_ERROR_BINDIPADDRESS = 103;
120 HTTP_ERROR_READ = 104;
121 HTTP_ERROR_WRITE = 105;
122 HTTP_ERROR_EXCEEDREDIRECTCOUNT = 106;
123 HTTP_ERROR_CANCELED = 107;
124 HTTP_ERROR_SSLCONNECTION = 108;
125 HTTP_ERROR_SSLLOADINGCERTS = 109;
126 HTTP_ERROR_SSLSERVERVERIFICATION = 110;
127 HTTP_ERROR_UNSUPPORTEDMULTIPARTBOUNDARYCHARS = 111;
128 HTTP_ERROR_COMPRESSION = 112;
129 HTTP_ERROR_CONNECTIONTIMEOUT = 113;
130 HTTP_ERROR_PROXYCONNECTION = 114;
131 }
132 optional Error error = 10 [default = ERROR_SUCCESS];
133}
134
135message Transmission
136{
137 optional bool if_no_data_do_mailbox_check = 1 [default = true];
138
139 optional RockblockReceive rockblock_rx = 10;
140 optional RockblockTransmit rockblock_tx = 11;
141}
142
143extend goby.acomms.protobuf.ModemTransmission
144{
145 optional Transmission transmission = 1381;
146}
147
148message Report
149{
150 enum RSSI
151 {
152 RSSI_0_BARS = 0;
153 RSSI_1_BARS = 1;
154 RSSI_2_BARS = 2;
155 RSSI_3_BARS = 3;
156 RSSI_4_BARS = 4;
157 RSSI_5_BARS = 5;
158 };
159 optional RSSI rssi = 1;
160
161 enum SBDBlockReason
162 {
163 SBD_NOT_BLOCKED = 0;
164 SBD_BLOCKED_RETRY_BACKOFF = 1;
165 SBD_BLOCKED_TRAFFIC_MANAGEMENT = 2;
166 }
167 optional SBDBlockReason sbd_block_reason = 2;
168 // seconds until SBD sessions may start again
169 optional int32 sbd_blocked_seconds = 3;
170}
171
172extend goby.acomms.protobuf.ModemReport
173{
174 optional Report report = 1381;
175}
176
177// subset of goby.acomms.protobuf.ModemTransmission
178message IridiumHeader
179{
180 option (dccl.msg).id = 0;
181 option (dccl.msg).max_bytes = 7;
182 option (dccl.msg).codec_version = 3;
183
184 required int32 src = 1 [(dccl.field).min = 0, (dccl.field).max = 30];
185
186 required int32 dest = 2 [(dccl.field).min = 0, (dccl.field).max = 30];
187
188 optional int32 rate = 3 [(dccl.field).min = 0, (dccl.field).max = 1];
189
190 required goby.acomms.protobuf.ModemTransmission.TransmissionType type = 4;
191
192 optional bool ack_requested = 5;
193 optional uint32 frame_start = 6
194 [(dccl.field).min = 0, (dccl.field).max = 0xFFFF];
195 optional int32 acked_frame = 7
196 [(dccl.field).min = 0, (dccl.field).max = 0xFFFF];
197}