@@ -413,7 +413,7 @@ func TestUplinkScenarios(t *testing.T) {
413
413
ExpectedControllerHandleRXInfo : expectedControllerHandleRXInfo ,
414
414
ExpectedApplicationHandleDataUp : expectedApplicationPushDataUpNoData ,
415
415
ExpectedApplicationGetDataDown : expectedGetDataDown ,
416
- ExpectedFCntUp : 0 ,
416
+ ExpectedFCntUp : 1 ,
417
417
ExpectedFCntDown : 0 ,
418
418
},
419
419
}
@@ -446,7 +446,7 @@ func TestUplinkScenarios(t *testing.T) {
446
446
ExpectedControllerHandleRXInfo : expectedControllerHandleRXInfo ,
447
447
ExpectedApplicationHandleDataUp : expectedApplicationPushDataUp ,
448
448
ExpectedApplicationGetDataDown : expectedGetDataDown ,
449
- ExpectedFCntUp : 10 ,
449
+ ExpectedFCntUp : 11 ,
450
450
ExpectedFCntDown : 5 ,
451
451
},
452
452
{
@@ -470,7 +470,7 @@ func TestUplinkScenarios(t *testing.T) {
470
470
ExpectedControllerHandleRXInfo : expectedControllerHandleRXInfo ,
471
471
ExpectedApplicationHandleDataUp : expectedApplicationPushDataUpNoData ,
472
472
ExpectedApplicationGetDataDown : expectedGetDataDown ,
473
- ExpectedFCntUp : 10 ,
473
+ ExpectedFCntUp : 11 ,
474
474
ExpectedFCntDown : 5 ,
475
475
},
476
476
{
@@ -516,7 +516,7 @@ func TestUplinkScenarios(t *testing.T) {
516
516
},
517
517
},
518
518
},
519
- ExpectedFCntUp : 10 ,
519
+ ExpectedFCntUp : 11 ,
520
520
ExpectedFCntDown : 6 ,
521
521
},
522
522
{
@@ -561,7 +561,7 @@ func TestUplinkScenarios(t *testing.T) {
561
561
},
562
562
},
563
563
},
564
- ExpectedFCntUp : 10 ,
564
+ ExpectedFCntUp : 11 ,
565
565
ExpectedFCntDown : 6 ,
566
566
},
567
567
{
@@ -606,7 +606,7 @@ func TestUplinkScenarios(t *testing.T) {
606
606
},
607
607
},
608
608
},
609
- ExpectedFCntUp : 10 ,
609
+ ExpectedFCntUp : 11 ,
610
610
ExpectedFCntDown : 6 ,
611
611
},
612
612
{
@@ -656,7 +656,7 @@ func TestUplinkScenarios(t *testing.T) {
656
656
},
657
657
},
658
658
},
659
- ExpectedFCntUp : 10 ,
659
+ ExpectedFCntUp : 11 ,
660
660
ExpectedFCntDown : 6 ,
661
661
},
662
662
{
@@ -701,7 +701,7 @@ func TestUplinkScenarios(t *testing.T) {
701
701
},
702
702
},
703
703
},
704
- ExpectedFCntUp : 10 ,
704
+ ExpectedFCntUp : 11 ,
705
705
ExpectedFCntDown : 6 ,
706
706
},
707
707
{
@@ -731,7 +731,7 @@ func TestUplinkScenarios(t *testing.T) {
731
731
{AppEUI : ns .AppEUI [:], DevEUI : ns .DevEUI [:], Data : []byte {2 }},
732
732
{AppEUI : ns .AppEUI [:], DevEUI : ns .DevEUI [:], Data : []byte {3 , 1 }},
733
733
},
734
- ExpectedFCntUp : 10 ,
734
+ ExpectedFCntUp : 11 ,
735
735
ExpectedFCntDown : 5 ,
736
736
},
737
737
{
@@ -763,7 +763,7 @@ func TestUplinkScenarios(t *testing.T) {
763
763
{AppEUI : ns .AppEUI [:], DevEUI : ns .DevEUI [:], FrmPayload : true , Data : []byte {2 }},
764
764
{AppEUI : ns .AppEUI [:], DevEUI : ns .DevEUI [:], FrmPayload : true , Data : []byte {3 , 1 }},
765
765
},
766
- ExpectedFCntUp : 10 ,
766
+ ExpectedFCntUp : 11 ,
767
767
ExpectedFCntDown : 5 ,
768
768
},
769
769
{
@@ -788,7 +788,7 @@ func TestUplinkScenarios(t *testing.T) {
788
788
ExpectedControllerHandleRXInfo : expectedControllerHandleRXInfo ,
789
789
ExpectedApplicationHandleDataUp : expectedApplicationPushDataUpFCntRollOver ,
790
790
ExpectedApplicationGetDataDown : expectedGetDataDown ,
791
- ExpectedFCntUp : 65536 ,
791
+ ExpectedFCntUp : 65537 ,
792
792
ExpectedFCntDown : 5 ,
793
793
},
794
794
}
@@ -848,7 +848,7 @@ func TestUplinkScenarios(t *testing.T) {
848
848
},
849
849
},
850
850
},
851
- ExpectedFCntUp : 10 ,
851
+ ExpectedFCntUp : 11 ,
852
852
ExpectedFCntDown : 6 ,
853
853
},
854
854
{
@@ -907,7 +907,7 @@ func TestUplinkScenarios(t *testing.T) {
907
907
},
908
908
},
909
909
},
910
- ExpectedFCntUp : 10 ,
910
+ ExpectedFCntUp : 11 ,
911
911
ExpectedFCntDown : 6 ,
912
912
},
913
913
{
@@ -960,7 +960,7 @@ func TestUplinkScenarios(t *testing.T) {
960
960
},
961
961
},
962
962
},
963
- ExpectedFCntUp : 10 ,
963
+ ExpectedFCntUp : 11 ,
964
964
ExpectedFCntDown : 6 ,
965
965
},
966
966
{
@@ -1022,7 +1022,7 @@ func TestUplinkScenarios(t *testing.T) {
1022
1022
{DevEUI : ns .DevEUI , FRMPayload : true , Data : []byte {6 }},
1023
1023
{DevEUI : ns .DevEUI , FRMPayload : true , Data : []byte {8 , 3 }},
1024
1024
},
1025
- ExpectedFCntUp : 10 ,
1025
+ ExpectedFCntUp : 11 ,
1026
1026
ExpectedFCntDown : 6 ,
1027
1027
},
1028
1028
{
@@ -1096,7 +1096,7 @@ func TestUplinkScenarios(t *testing.T) {
1096
1096
ExpectedTXMACPayloadQueue : []queue.MACPayload {
1097
1097
{DevEUI : ns .DevEUI , Data : []byte {2 , 10 , 6 }},
1098
1098
},
1099
- ExpectedFCntUp : 10 ,
1099
+ ExpectedFCntUp : 11 ,
1100
1100
ExpectedFCntDown : 6 ,
1101
1101
},
1102
1102
}
@@ -1155,7 +1155,7 @@ func TestUplinkScenarios(t *testing.T) {
1155
1155
},
1156
1156
},
1157
1157
},
1158
- ExpectedFCntUp : 10 ,
1158
+ ExpectedFCntUp : 11 ,
1159
1159
ExpectedFCntDown : 6 ,
1160
1160
},
1161
1161
{
@@ -1209,7 +1209,7 @@ func TestUplinkScenarios(t *testing.T) {
1209
1209
},
1210
1210
},
1211
1211
},
1212
- ExpectedFCntUp : 10 ,
1212
+ ExpectedFCntUp : 11 ,
1213
1213
ExpectedFCntDown : 6 ,
1214
1214
},
1215
1215
{
@@ -1260,7 +1260,7 @@ func TestUplinkScenarios(t *testing.T) {
1260
1260
},
1261
1261
},
1262
1262
},
1263
- ExpectedFCntUp : 10 ,
1263
+ ExpectedFCntUp : 11 ,
1264
1264
ExpectedFCntDown : 5 , // will be incremented after the node ACKs the frame
1265
1265
},
1266
1266
{
@@ -1288,7 +1288,7 @@ func TestUplinkScenarios(t *testing.T) {
1288
1288
ExpectedControllerHandleRXInfo : expectedControllerHandleRXInfo ,
1289
1289
ExpectedApplicationHandleDataUp : expectedApplicationPushDataUpNoData ,
1290
1290
ExpectedApplicationGetDataDown : expectedGetDataDown ,
1291
- ExpectedFCntUp : 10 ,
1291
+ ExpectedFCntUp : 11 ,
1292
1292
ExpectedFCntDown : 5 , // payload has been discarded, nothing to transmit
1293
1293
},
1294
1294
{
@@ -1344,7 +1344,7 @@ func TestUplinkScenarios(t *testing.T) {
1344
1344
},
1345
1345
},
1346
1346
},
1347
- ExpectedFCntUp : 10 ,
1347
+ ExpectedFCntUp : 11 ,
1348
1348
ExpectedFCntDown : 6 ,
1349
1349
ExpectedApplicationGetDataDown : expectedGetDataDown ,
1350
1350
ExpectedTXMACPayloadQueue : []queue.MACPayload {
0 commit comments