Note: Goby version 1 (shown here) is now considered obsolete. Please use version 2 for new projects, and consider upgrading old projects.

Goby Underwater Autonomy Project  Series: 1.1, revision: 163, released on 2013-02-06 14:23:27 -0500
protobuf/driver_base.proto
00001 import "goby/protobuf/option_extensions.proto";
00002 
00003 package goby.acomms.protobuf;
00004 
00005 message DriverConfig
00006 {
00007   optional int32 modem_id = 1 [(description)="Unique number 1-31 to identify this node", (example)="1"];
00008   
00009   enum ConnectionType { CONNECTION_SERIAL = 1; // Modem is connected by a tty serial line (e.g. RS-232)
00010                         CONNECTION_TCP_AS_CLIENT = 2; // Modem is connected by ethernet and is serving clients
00011                         CONNECTION_TCP_AS_SERVER = 3; // Modem is connected by ethernet and expects us to serve it
00012                         CONNECTION_DUAL_UDP_BROADCAST = 4; // Presently unimplemented
00013   }
00014   
00015   optional ConnectionType connection_type = 2 [default = CONNECTION_SERIAL, (description)="Physical connection type from this computer (running Goby) to the acoustic modem"];
00016   optional string line_delimiter = 3 [default = "\r\n", (description)="String used to delimit new lines for this acoustic modem"]; // delimits lines on the serial or tcp interface
00017   
00018   // required if connection_type == CONNECTION_SERIAL
00019   optional string serial_port = 4 [(description)="Serial port for CONNECTION_SERIAL", (example)="/dev/ttyS0"]; 
00020   optional uint32 serial_baud = 5 [(description)="Baud rate for CONNECTION_SERIAL", (example)="19200"]; 
00021 
00022   // required if connection_type == CONNECTION_TCP_AS_CLIENT
00023   optional string tcp_server = 6 [(description)="IP Address or domain name for the server if CONNECTION_TCP_AS_CLIENT", (example)="192.168.1.111"]; 
00024 
00025   // required if connection_type == CONNECTION_TCP_AS_CLIENT or CONNECTION_TCP_AS_SERVER
00026   optional uint32 tcp_port = 7 [(description)="Port to serve on (for CONNECTION_TCP_AS_SERVER) or to connect to (for CONNECTION_TCP_AS_CLIENT)", (example)="50010"];
00027   
00028   
00029   extensions 1000 to max;
00030   // extensions 1000-1100 used by mm_driver.proto
00031   // extensions 1201-1202 used by abc_driver.proto (example driver)
00032 }
00033 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends