@@ -657,6 +657,10 @@ void TheThingsNetwork::configureUS915(uint8_t fsb)
657
657
658
658
void TheThingsNetwork::configureAS920_923 ()
659
659
{
660
+ /* RN2903AS 1.0.3rc9 defaults
661
+ * CH0 = 923.2MHz
662
+ * CH1 = 923.4MHz
663
+ */
660
664
sendMacSet (MAC_ADR, " off" ); // TODO: remove when ADR is implemented for this plan
661
665
sendMacSet (MAC_RX2, " 2 923200000" );
662
666
@@ -686,11 +690,15 @@ void TheThingsNetwork::configureAS920_923()
686
690
687
691
void TheThingsNetwork::configureAS923_925 ()
688
692
{
693
+ /* RN2903AS 1.0.3rc9 defaults
694
+ * CH0 = 923.2MHz
695
+ * CH1 = 923.4MHz
696
+ */
689
697
sendMacSet (MAC_ADR, " off" ); // TODO: remove when ADR is implemented for this plan
690
698
sendMacSet (MAC_RX2, " 2 923200000" );
691
699
692
700
char buf[10 ];
693
- uint32_t freq = 923200000 ;
701
+ uint32_t freq = 923600000 ;
694
702
uint8_t ch;
695
703
for (ch = 0 ; ch < 8 ; ch++)
696
704
{
@@ -718,20 +726,21 @@ void TheThingsNetwork::configureKR920_923()
718
726
sendMacSet (MAC_ADR, " off" ); // TODO: remove when ADR is implemented for this plan
719
727
sendMacSet (MAC_RX2, " 0 921900000" ); // KR still uses SF12 for now. Might change to SF9 later.
720
728
729
+ // disable two default LoRaWAN channels
730
+ sendChSet (MAC_CHANNEL_STATUS, 0 , " off" );
731
+ sendChSet (MAC_CHANNEL_STATUS, 1 , " off" );
732
+
721
733
char buf[10 ];
722
734
uint32_t freq = 922100000 ;
723
735
uint8_t ch;
724
- for (ch = 0 ; ch < 8 ; ch++)
736
+ for (ch = 2 ; ch < 9 ; ch++)
725
737
{
726
738
sendChSet (MAC_CHANNEL_DCYCLE, ch, " 799" );
727
- if (ch > 1 )
728
- {
729
- sprintf (buf, " %lu" , freq);
730
- sendChSet (MAC_CHANNEL_FREQ, ch, buf);
731
- sendChSet (MAC_CHANNEL_DRRANGE, ch, " 0 5" );
732
- sendChSet (MAC_CHANNEL_STATUS, ch, " on" );
733
- freq = freq + 200000 ;
734
- }
739
+ sprintf (buf, " %lu" , freq);
740
+ sendChSet (MAC_CHANNEL_FREQ, ch, buf);
741
+ sendChSet (MAC_CHANNEL_DRRANGE, ch, " 0 5" );
742
+ sendChSet (MAC_CHANNEL_STATUS, ch, " on" );
743
+ freq = freq + 200000 ;
735
744
}
736
745
sendMacSet (MAC_PWRIDX, TTN_PWRIDX_KR920_923);
737
746
}
0 commit comments