-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.proto
151 lines (138 loc) · 3.99 KB
/
enums.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// Copyright © 2020 The Things Industries B.V.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package org.packetbroker.v3;
option go_package = "go.packetbroker.org/api/v3;packetbroker";
// LoRaWAN region as defined in Regional Parameters.
enum Region {
UNKNOWN_REGION = 0;
EU_863_870 = 1;
US_902_928 = 2;
CN_779_787 = 3;
EU_433 = 4;
AU_915_928 = 5;
CN_470_510 = 6;
AS_923 = 7;
// AS923 group 1
AS_923_1 = 11;
// AS923 group 2
AS_923_2 = 12;
// AS923 group 3
AS_923_3 = 13;
KR_920_923 = 8;
IN_865_867 = 9;
RU_864_870 = 10;
// LoRa 2.4 GHz
WW_2G4 = 14;
}
// LoRaWAN class for transmitting downlink.
enum DownlinkMessageClass {
CLASS_A = 0;
CLASS_B = 1;
CLASS_C = 2;
}
// Priority of a downlink message.
enum DownlinkMessagePriority {
// Lowest priority.
LOWEST = 0;
// Low priority.
LOW = 1;
// Normal priority.
NORMAL = 2;
// High priority.
// Sets the HiPriority flag in the LoRaWAN Backend Interfaces XmitDataReq message.
HIGH = 3;
// Highest priority.
// Sets the HiPriority flag in the LoRaWAN Backend Interfaces XmitDataReq message.
HIGHEST = 4;
}
enum MessageDeliveryState {
// The message has been accepted for forwarding or delivery.
ACCEPTED = 0;
// The message has been forwarded to another host for delivery.
FORWARDED = 1;
// The message has been delivered to the receiver.
DELIVERED = 2;
// The message has been processed by the receiver.
PROCESSED = 3;
}
enum UplinkMessageProcessingError {
UPLINK_UNKNOWN_ERROR = 0;
// The message does not pass the routing policy.
UPLINK_ROUTING_POLICY = 1;
// A matching device session could not be found.
// This can be caused by an unknown DevAddr or a MIC check failure.
MATCH_SESSION = 2;
// Internal error.
UPLINK_INTERNAL = 3;
// No Home Network endpoints found.
NO_HOME_NETWORK_ENDPOINTS = 4;
}
enum DownlinkMessageProcessingError {
DOWNLINK_UNKNOWN_ERROR = 0;
// The packet was sent too late for transmission, i.e. the window closed.
TOO_LATE = 1;
// The packet was sent too early for transmission, i.e. the transmission time is too far in the future.
TOO_EARLY = 2;
// There was a collision with another packet.
COLLISION_PACKET = 3;
// There was a collision with the class B beacon.
COLLISION_BEACON = 4;
// Wrong frequency.
TX_FREQUENCY = 5;
// Wrong TX power.
TX_POWER = 6;
// No GPS lock while the transmission requires an absolute time.
GPS_UNLOCKED = 7;
// The message does not pass the routing policy.
DOWNLINK_ROUTING_POLICY = 8;
// Internal error.
DOWNLINK_INTERNAL = 9;
}
enum TerrestrialAntennaPlacement {
// Unknown antenna placement.
UNKNOWN_PLACEMENT = 0;
// Indoor antenna placement.
INDOOR = 1;
// Outdoor antenna placement.
OUTDOOR = 2;
}
enum Modulation {
// LoRa modulation.
LORA = 0;
// FSK modulation.
FSK = 1;
}
enum Right {
// Right to list networks and get network information.
READ_NETWORK = 0;
// Right to read contact information of networks.
READ_NETWORK_CONTACT = 1;
// Right to list network tenants and read tenants information.
READ_TENANT = 2;
// Right to read contact information of tenants.
READ_TENANT_CONTACT = 3;
// Right to list routing policies.
READ_ROUTING_POLICY = 4;
// Right to list the route table.
READ_ROUTE_TABLE = 5;
// Right to read target authentication information.
READ_TARGET_AUTH = 6;
}
enum TargetProtocol {
// LoRaWAN Backend Interfaces (TS002) 1.0.
TS002_V1_0 = 0;
// LoRaWAN Backend Interfaces (TS002) 1.1.0.
TS002_V1_1_0 = 1;
}