-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
sdrmodem-api.proto
77 lines (64 loc) · 1.84 KB
/
sdrmodem-api.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
syntax = "proto2";
package ru.r2cloud.sdrmodem;
enum modem_type {
GMSK = 1;
}
enum demod_destination {
FILE = 0;
SOCKET = 1;
BOTH = 2;
}
message doppler_settings {
repeated string tle = 1;
required uint32 latitude = 2; //degrees times 10^6
required uint32 longitude = 3; //degrees times 10^6
required uint32 altitude = 4; //kilometers times 10^6
}
message fsk_demodulation_settings {
required int64 demod_fsk_deviation = 1;
required uint32 demod_fsk_transition_width = 2;
required bool demod_fsk_use_dc_block = 3;
}
message fsk_modulation_settings {
required int64 mod_fsk_deviation = 1;
}
message file_settings {
required string filename = 1;
required uint64 start_time_seconds = 2;
}
message RxRequest {
required uint64 rx_center_freq = 1;
required uint64 rx_sampling_freq = 2;
required bool rx_dump_file = 3;
required int64 rx_offset = 4;
required modem_type demod_type = 5;
required uint32 demod_baud_rate = 6;
// the actual is uint8
required uint32 demod_decimation = 7;
required demod_destination demod_destination = 8;
optional doppler_settings doppler = 9;
optional fsk_demodulation_settings fsk_settings = 10;
optional file_settings file_settings = 11;
}
message TxRequest {
required uint64 tx_center_freq = 1;
required uint64 tx_sampling_freq = 2;
required bool tx_dump_file = 3;
required int64 tx_offset = 4;
required modem_type mod_type = 5;
required uint32 mod_baud_rate = 6;
optional doppler_settings doppler = 7;
optional fsk_modulation_settings fsk_settings = 8;
optional file_settings file_settings = 9;
}
enum response_status {
SUCCESS = 0;
FAILURE = 1;
}
message Response {
required response_status status = 1;
required uint32 details = 2;
}
message TxData {
required bytes data = 1;
}