Skip to content

Commit 24729a4

Browse files
committed
dev: Add UZ_923_DRAFT band
1 parent b22b451 commit 24729a4

17 files changed

+6326
-1
lines changed

pkg/band/all.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,20 @@ var (
214214
ttnpb.PHYVersion_RP002_V1_0_3: US_902_928_RP2_V1_0_3,
215215
ttnpb.PHYVersion_RP002_V1_0_4: US_902_928_RP2_V1_0_4,
216216
},
217+
UZ_923_DRAFT: {
218+
ttnpb.PHYVersion_TS001_V1_0: UZ_923_Draft_Universal,
219+
ttnpb.PHYVersion_TS001_V1_0_1: UZ_923_Draft_Universal,
220+
ttnpb.PHYVersion_RP001_V1_0_2: UZ_923_Draft_Universal,
221+
ttnpb.PHYVersion_RP001_V1_0_2_REV_B: UZ_923_Draft_Universal,
222+
ttnpb.PHYVersion_RP001_V1_0_3_REV_A: UZ_923_Draft_Universal,
223+
ttnpb.PHYVersion_RP001_V1_1_REV_A: UZ_923_Draft_Universal,
224+
ttnpb.PHYVersion_RP001_V1_1_REV_B: UZ_923_Draft_Universal,
225+
ttnpb.PHYVersion_RP002_V1_0_0: UZ_923_Draft_Universal,
226+
ttnpb.PHYVersion_RP002_V1_0_1: UZ_923_Draft_Universal,
227+
ttnpb.PHYVersion_RP002_V1_0_2: UZ_923_Draft_Universal,
228+
ttnpb.PHYVersion_RP002_V1_0_3: UZ_923_Draft_Universal,
229+
ttnpb.PHYVersion_RP002_V1_0_4: UZ_923_Draft_Universal,
230+
},
217231
}
218232

219233
// LatestVersion contains the latest version of each band.
@@ -237,6 +251,7 @@ var (
237251
MA_869_870_DRAFT: ttnpb.PHYVersion_RP002_V1_0_4,
238252
RU_864_870: ttnpb.PHYVersion_RP002_V1_0_4,
239253
US_902_928: ttnpb.PHYVersion_RP002_V1_0_4,
254+
UZ_923_DRAFT: ttnpb.PHYVersion_RP002_V1_0_4,
240255
}
241256
)
242257

pkg/band/rpc_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,23 @@ func TestGetPhyVersions(t *testing.T) {
372372
ttnpb.PHYVersion_TS001_V1_0,
373373
},
374374
},
375+
{
376+
BandId: "UZ_923_DRAFT",
377+
PhyVersions: []ttnpb.PHYVersion{
378+
ttnpb.PHYVersion_RP002_V1_0_4,
379+
ttnpb.PHYVersion_RP002_V1_0_3,
380+
ttnpb.PHYVersion_RP002_V1_0_2,
381+
ttnpb.PHYVersion_RP002_V1_0_1,
382+
ttnpb.PHYVersion_RP002_V1_0_0,
383+
ttnpb.PHYVersion_RP001_V1_0_3_REV_A,
384+
ttnpb.PHYVersion_RP001_V1_1_REV_B,
385+
ttnpb.PHYVersion_RP001_V1_1_REV_A,
386+
ttnpb.PHYVersion_RP001_V1_0_2_REV_B,
387+
ttnpb.PHYVersion_RP001_V1_0_2,
388+
ttnpb.PHYVersion_TS001_V1_0_1,
389+
ttnpb.PHYVersion_TS001_V1_0,
390+
},
391+
},
375392
},
376393
},
377394
},
@@ -868,6 +885,9 @@ func TestListBands(t *testing.T) {
868885
MA_869_870_DRAFT: {
869886
ttnpb.PHYVersion_TS001_V1_0_1: All[MA_869_870_DRAFT][ttnpb.PHYVersion_TS001_V1_0_1],
870887
},
888+
UZ_923_DRAFT: {
889+
ttnpb.PHYVersion_TS001_V1_0_1: All[UZ_923_DRAFT][ttnpb.PHYVersion_TS001_V1_0_1],
890+
},
871891
}),
872892
},
873893
},

pkg/band/shared_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ func TestRelaySharedParameters(t *testing.T) {
3636
switch {
3737
case version == ttnpb.PHYVersion_RP002_V1_0_4,
3838
name == band.ISM_2400,
39-
name == band.MA_869_870_DRAFT:
39+
name == band.MA_869_870_DRAFT,
40+
name == band.UZ_923_DRAFT:
4041
expectedForwardDelay, expectedReceiveDelay = 50*time.Millisecond, 18*time.Second
4142
}
4243
a.So(phy.RelayForwardDelay, should.Equal, expectedForwardDelay)

0 commit comments

Comments
 (0)