Goby v2
modem_driver_status.proto
1 
2 import "goby/common/protobuf/option_extensions.proto";
3 import "dccl/option_extensions.proto";
4 
5 package goby.acomms.protobuf;
6 
7 message ModemDriverStatus
8 {
9  option (dccl.msg).id = 0x0201;
10  option (dccl.msg).max_bytes = 32;
11 
12  required int32 src = 1 [
13  (dccl.field).min = 1,
14  (dccl.field).max = 32,
15  (dccl.field).in_head = true
16  ];
17  optional int32 dest = 2 [
18  (dccl.field).min = 1,
19  (dccl.field).max = 32,
20  (dccl.field).in_head = true
21  ];
22 
23  required double time = 3
24  [(dccl.field).codec = "_time", (dccl.field).in_head = true];
25 
26  enum Status
27  {
28  NOMINAL = 0;
29  CONNECTION_TO_MODEM_FAILED = 1;
30  MODEM_NOT_RESPONDING = 2;
31  STARTUP_FAILED = 3;
32  INVALID_CONFIGURATION = 4;
33  MANUAL_RESET = 5;
34  }
35 
36  required Status status = 4;
37 
38  optional uint32 n_resets = 5
39  [default = 0, (dccl.field).min = 0, (dccl.field).max = 10000];
40 }