Goby v2
pb_modem_driver.proto
1 
2 import "goby/acomms/protobuf/driver_base.proto"; // load up message DriverBaseConfig
3 import "goby/acomms/protobuf/modem_message.proto"; // load up message ModemTransmission
4 
5 import "goby/common/protobuf/zero_mq_node_config.proto";
6 import "dccl/option_extensions.proto";
7 
8 message PBDriverConfig
9 {
10  extend goby.acomms.protobuf.DriverConfig
11  {
12  optional goby.common.protobuf.ZeroMQServiceConfig.Socket
13  request_socket = 1321;
14  optional double query_interval_seconds = 1322 [default = 1];
15  optional int32 max_frame_size = 1323 [default = 65536];
16  optional double reset_interval_seconds = 1324 [default = 120];
17  repeated int32 rate_to_bytes = 1325;
18  repeated int32 rate_to_frames = 1326;
19  }
20 }
21 
22 message PBDriverTransmission
23 {
24  enum TransmissionType
25  {
26  BASE_TYPE = 0;
27  PB_DRIVER_POLL = 1;
28  }
29  extend goby.acomms.protobuf.ModemTransmission
30  {
31  optional TransmissionType type = 1321 [default = BASE_TYPE];
32 
33  // used in PB_DRIVER_POLL message
34  optional int32 poll_src = 1322 [(dccl.field).omit = true];
35  optional int32 poll_dest = 1323 [(dccl.field).omit = true];
36  }
37 }