Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
janus_driver.proto
Go to the documentation of this file.
1/* Copyright (c) 2020 mission systems pty ltd */
2
3syntax = "proto2";
4import "goby/protobuf/option_extensions.proto";
5import "dccl/option_extensions.proto";
6import "goby/acomms/protobuf/driver_base.proto"; // load up message DriverBaseConfig
7
8package goby.acomms.janus.protobuf;
9message Config
10{
11 optional int32 verbosity = 1 [
12 default = 0,
13 (goby.field).description =
14 "Verbosity for Janus commands"
15 ];
16
17 optional int32 class_id = 2 [
18 default = 16,
19 (dccl.field).min = 0,
20 (dccl.field).max = 255,
21 (goby.field).description =
22 "Class ID for Janus Plugin"
23 ];
24
25 optional int32 application_type = 3 [
26 default = 0,
27 (dccl.field).min = 0,
28 (dccl.field).max = 255,
29 (goby.field).description =
30 "Application ID for Janus Plugin"
31 ];
32
33 optional uint32 pset_id = 4 [
34 default = 1,
35 (dccl.field).min = 1,
36 (dccl.field).max = 255,
37 (goby.field).description =
38 "Parameter Set ID"
39 ];
40
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"
46 ];
47
48 optional uint32 pset_center_freq = 6 [
49 default = 0,
50 (dccl.field).min = 0,
51 (goby.field).description =
52 "Center Frequency for Acomms Transmission"
53 ];
54
55 optional uint32 pset_bandwidth = 7 [
56 default = 0,
57 (dccl.field).min = 0,
58 (goby.field).description =
59 "Bandwidth for Acomms Transmission"
60 ];
61
62 optional uint32 chip_len_exp = 8 [
63 default = 0,
64 (dccl.field).min = 0,
65 (goby.field).description =
66 "Chip length dyadic exponent"
67 ];
68
69 optional uint32 sequence_32_chips = 9 [
70 default = 2933675936,
71 (dccl.field).min = 0,
72 (goby.field).description =
73 "Initial fixed sequence of 32 chips. Default value is equivalent to JANUS_32_CHIP_SEQUENCE"
74 ];
75
76 optional string stream_driver = 10 [
77 default = "alsa",
78 (dccl.field).max_length = 5,
79 (goby.field).description =
80 "Driver Type (null, raw, wav, fifo, alsa, pulse, wmm)"
81 ];
82
83 optional string stream_driver_args = 11 [
84 (goby.field).description =
85 "Driver Arguments. (device name)"
86 ];
87
88
89 optional uint32 stream_fs = 12 [
90 default = 48000,
91 (dccl.field).min = 0,
92 (dccl.field).max = 100000,
93 (goby.field).description =
94 "Sampling Frequency (Hz)"
95 ];
96
97 optional string stream_format = 13 [
98 default = "S16",
99 (dccl.field).max_length = 6,
100 (goby.field).description =
101 "Format (S8, S10, S12, S14, S16, S24, S24_32, S32, FLOAT, DOUBLE)"
102 ];
103
104 optional uint32 stream_channel_count = 14 [
105 default = 1,
106 (dccl.field).min = 1,
107 (goby.field).description =
108 "Number of stream channels"
109 ];
110
111 optional uint32 stream_channel = 15 [
112 default = 0,
113 (dccl.field).min = 0,
114 (goby.field).description =
115 "Signal Channel"
116 ];
117
118 optional bool stream_passband = 16 [
119 default = true,
120 (goby.field).description =
121 "Passband or Baseband Signal"
122 ];
123
124 optional double stream_amp = 17 [
125 default = 0.95,
126 (dccl.field).min = 0.0,
127 (dccl.field).max = 1.0,
128 (goby.field).description =
129 "Stream amplitude factor"
130 ];
131
132 optional uint32 stream_mul = 18 [
133 default = 1,
134 (dccl.field).min = 1,
135 (goby.field).description =
136 "Force number of output samples to be a multiple of a given number."
137 ];
138
139 // tx parameters
140 optional bool pad = 19 [
141 default = true,
142 (goby.field).description =
143 "Padding: enabled/disabled."
144 ];
145
146 optional bool wut = 20 [
147 default = false,
148 (goby.field).description =
149 "Wake Up Tones: enabled/disabled."
150 ];
151
152 // rx parameters
153 optional bool doppler_correction = 21 [
154 default = true,
155 (goby.field).description =
156 "Doppler Correction: enabled/disabled."
157 ];
158
159 optional double doppler_max_speed = 22 [
160 default = 5.0,
161 (goby.field).description =
162 "Doppler correction: maximum speed [m/s]."
163 ];
164
165 optional bool compute_channel_spectrogram = 23 [
166 default = false,
167 (goby.field).description =
168 "Channel Spectrogram Computation: enabled/disabled."
169 ];
170
171 optional double detection_threshold = 24 [
172 default = 2.5,
173 (goby.field).description =
174 "Detection threshold.."
175 ];
176
177 optional bool colored_bit_prob = 25 [
178 default = false,
179 (dccl.field).min = 0,
180 (dccl.field).max = 1,
181 (goby.field).description =
182 "Colored Bit Probabilities: enable/disable"
183 ];
184
185 optional double cbp_high2medium = 26 [
186 default = 0.2,
187 (goby.field).description =
188 "Colored Bit Probabilities: High to Medium Probability Threshold"
189 ];
190
191 optional double cbp_medium2low = 27 [
192 default = 0.35,
193 (goby.field).description =
194 "Colored Bit Probabilities: Medium to Low Probability Threshold"
195 ];
196}
197
198// added 1444 in modem driver
199extend goby.acomms.protobuf.DriverConfig
200{
201 optional Config rx_config = 1444;
202 optional Config tx_config = 1445;
203}