1/* Copyright (c) 2020 mission systems pty ltd */
4import "goby/protobuf/option_extensions.proto";
5import "dccl/option_extensions.proto";
6import "goby/acomms/protobuf/driver_base.proto"; // load up message DriverBaseConfig
8package goby.acomms.janus.protobuf;
11 optional int32 verbosity = 1 [
13 (goby.field).description =
14 "Verbosity for Janus commands"
17 optional int32 class_id = 2 [
20 (dccl.field).max = 255,
21 (goby.field).description =
22 "Class ID for Janus Plugin"
25 optional int32 application_type = 3 [
28 (dccl.field).max = 255,
29 (goby.field).description =
30 "Application ID for Janus Plugin"
33 optional uint32 pset_id = 4 [
36 (dccl.field).max = 255,
37 (goby.field).description =
41 optional string pset_file = 5 [
42 default = "/usr/local/share/janus/etc/parameter_sets.csv",
43 (dccl.field).max_length = 50,
44 (goby.field).description =
45 "Parameter file to read center freq and bandwidth from. Will be ignored if pset_center_freq and pset_bandwidth are not zero"
48 optional uint32 pset_center_freq = 6 [
51 (goby.field).description =
52 "Center Frequency for Acomms Transmission"
55 optional uint32 pset_bandwidth = 7 [
58 (goby.field).description =
59 "Bandwidth for Acomms Transmission"
62 optional uint32 chip_len_exp = 8 [
65 (goby.field).description =
66 "Chip length dyadic exponent"
69 optional uint32 sequence_32_chips = 9 [
72 (goby.field).description =
73 "Initial fixed sequence of 32 chips. Default value is equivalent to JANUS_32_CHIP_SEQUENCE"
76 optional string stream_driver = 10 [
78 (dccl.field).max_length = 5,
79 (goby.field).description =
80 "Driver Type (null, raw, wav, fifo, alsa, pulse, wmm)"
83 optional string stream_driver_args = 11 [
84 (goby.field).description =
85 "Driver Arguments. (device name)"
89 optional uint32 stream_fs = 12 [
92 (dccl.field).max = 100000,
93 (goby.field).description =
94 "Sampling Frequency (Hz)"
97 optional string stream_format = 13 [
99 (dccl.field).max_length = 6,
100 (goby.field).description =
101 "Format (S8, S10, S12, S14, S16, S24, S24_32, S32, FLOAT, DOUBLE)"
104 optional uint32 stream_channel_count = 14 [
106 (dccl.field).min = 1,
107 (goby.field).description =
108 "Number of stream channels"
111 optional uint32 stream_channel = 15 [
113 (dccl.field).min = 0,
114 (goby.field).description =
118 optional bool stream_passband = 16 [
120 (goby.field).description =
121 "Passband or Baseband Signal"
124 optional double stream_amp = 17 [
126 (dccl.field).min = 0.0,
127 (dccl.field).max = 1.0,
128 (goby.field).description =
129 "Stream amplitude factor"
132 optional uint32 stream_mul = 18 [
134 (dccl.field).min = 1,
135 (goby.field).description =
136 "Force number of output samples to be a multiple of a given number."
140 optional bool pad = 19 [
142 (goby.field).description =
143 "Padding: enabled/disabled."
146 optional bool wut = 20 [
148 (goby.field).description =
149 "Wake Up Tones: enabled/disabled."
153 optional bool doppler_correction = 21 [
155 (goby.field).description =
156 "Doppler Correction: enabled/disabled."
159 optional double doppler_max_speed = 22 [
161 (goby.field).description =
162 "Doppler correction: maximum speed [m/s]."
165 optional bool compute_channel_spectrogram = 23 [
167 (goby.field).description =
168 "Channel Spectrogram Computation: enabled/disabled."
171 optional double detection_threshold = 24 [
173 (goby.field).description =
174 "Detection threshold.."
177 optional bool colored_bit_prob = 25 [
179 (dccl.field).min = 0,
180 (dccl.field).max = 1,
181 (goby.field).description =
182 "Colored Bit Probabilities: enable/disable"
185 optional double cbp_high2medium = 26 [
187 (goby.field).description =
188 "Colored Bit Probabilities: High to Medium Probability Threshold"
191 optional double cbp_medium2low = 27 [
193 (goby.field).description =
194 "Colored Bit Probabilities: Medium to Low Probability Threshold"
198// added 1444 in modem driver
199extend goby.acomms.protobuf.DriverConfig
201 optional Config rx_config = 1444;
202 optional Config tx_config = 1445;