Goby3  3.1.5
2024.05.14
modem_driver_status.proto
Go to the documentation of this file.
1 syntax = "proto2";
2 import "goby/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  option (dccl.msg).codec_version = 3;
12 
13  required int32 src = 1 [
14  (dccl.field).min = 1,
15  (dccl.field).max = 32,
16  (dccl.field).in_head = true
17  ];
18  optional int32 dest = 2 [
19  (dccl.field).min = 1,
20  (dccl.field).max = 32,
21  (dccl.field).in_head = true
22  ];
23 
24  required double time = 3
25  [(dccl.field).codec = "_time", (dccl.field).in_head = true];
26 
27  enum Status
28  {
29  NOMINAL = 0;
30  CONNECTION_TO_MODEM_FAILED = 1;
31  MODEM_NOT_RESPONDING = 2;
32  STARTUP_FAILED = 3;
33  INVALID_CONFIGURATION = 4;
34  MANUAL_RESET = 5;
35  }
36 
37  required Status status = 4;
38 
39  optional uint32 n_resets = 5
40  [default = 0, (dccl.field).min = 0, (dccl.field).max = 10000];
41 }