9999#define AS923_MIN_RF_FREQUENCY 915000000
100100#if (defined( REGION_VERSION ) && ( REGION_VERSION == 0x02010003 ))
101101#define AS923_MAX_RF_FREQUENCY 921000000
102- #else
102+ #else
103103#define AS923_MAX_RF_FREQUENCY 928000000
104104#endif
105105
169169#undef AS923_RX_MAX_DATARATE
170170#define AS923_RX_MAX_DATARATE DR_5
171171
172- #undef AS923_DEFAULT_MAX_EIRP
173- #define AS923_DEFAULT_MAX_EIRP 13.0f
174-
175172/*!
176173 * STD-T108 Ver1.4 does not require dwell-time enforcement when using LBT on channels 28 to 38
177174 */
202199#undef AS923_RX_MAX_DATARATE
203200#define AS923_RX_MAX_DATARATE DR_5
204201
205- #undef AS923_DEFAULT_MAX_EIRP
206- #define AS923_DEFAULT_MAX_EIRP 13.0f
207-
208202/*!
209203 * STD-T108 Ver1.4 does not require dwell-time enforcement when using DC on channels 28 to 38
210204 */
217211#undef AS923_DUTY_CYCLE_ENABLED
218212#define AS923_DUTY_CYCLE_ENABLED 1
219213
220- #elif ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP_CH37_CH61_LBT_DC )
214+ #elif ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP_CH33_CH61_LBT_DC )
221215
222216/*
223- * STD-T108 Ver1.4 allows the use of channels 37 to 61 with LBT and DC.
217+ * STD-T108 Ver1.4 allows the use of channels 33 to 61 with LBT and DC.
224218 * However dwell time enforcement must be enabled
225219 */
226220
227- // Channel plan CHANNEL_PLAN_GROUP_AS923_1_JP_CH37_CH61_LBT_DC
221+ // Channel plan CHANNEL_PLAN_GROUP_AS923_1_JP_CH33_CH61_LBT_DC
228222
229223#define REGION_AS923_FREQ_OFFSET 0
230224
231225/*!
232- * Restrict AS923 frequencies to channels 37 to 61
226+ * Restrict AS923 frequencies to channels 33 to 61
233227 * Center frequencies 922.4 MHz to 928.0 MHz @ 200 kHz max bandwidth
234228 */
235229#define AS923_MIN_RF_FREQUENCY 922400000
241235#undef AS923_RX_MAX_DATARATE
242236#define AS923_RX_MAX_DATARATE DR_5
243237
244- #undef AS923_DEFAULT_MAX_EIRP
245- #define AS923_DEFAULT_MAX_EIRP 13.0f
246-
247238/*!
248239 * Enable duty cycle enforcement
249240 */
250241#undef AS923_DUTY_CYCLE_ENABLED
251242#define AS923_DUTY_CYCLE_ENABLED 1
252243
253244/*!
254- * STD-T108 Ver1.4 requires a carrier sense time of at least 128 us on channels 37 to 61
245+ * STD-T108 Ver1.4 requires a carrier sense time of at least 128 us on channels 33 to 61
255246 */
256247#undef AS923_CARRIER_SENSE_TIME
257248#define AS923_CARRIER_SENSE_TIME 1
@@ -562,10 +553,10 @@ void RegionAS923SetBandTxDone( SetBandTxDoneParams_t* txDone )
562553#if defined( REGION_AS923 )
563554#if (defined( REGION_VERSION ) && ( REGION_VERSION == 0x01010003 ))
564555 RegionCommonSetBandTxDone ( & RegionNvmGroup1 -> Bands [RegionNvmGroup2 -> Channels [txDone -> Channel ].Band ],
565- txDone -> LastTxAirTime , txDone -> Joined , txDone -> ElapsedTimeSinceStartUp );
556+ txDone -> LastTxAirTime , txDone -> Joined , txDone -> ElapsedTimeSinceTxBackoffRefTime );
566557#elif (defined( REGION_VERSION ) && (( REGION_VERSION == 0x02010001 ) || ( REGION_VERSION == 0x02010003 )))
567558 RegionCommonSetBandTxDone ( & RegionBands [RegionNvmGroup2 -> Channels [txDone -> Channel ].Band ],
568- txDone -> LastTxAirTime , txDone -> Joined , txDone -> ElapsedTimeSinceStartUp );
559+ txDone -> LastTxAirTime , txDone -> Joined , txDone -> ElapsedTimeSinceTxBackoffRefTime );
569560#endif /* REGION_VERSION */
570561#endif /* REGION_AS923 */
571562}
@@ -617,7 +608,7 @@ void RegionAS923InitDefaults( InitDefaultsParams_t* params )
617608
618609#if ( ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP ) || \
619610 ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP_CH24_CH38_LBT ) || \
620- ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP_CH37_CH61_LBT_DC ) )
611+ ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP_CH33_CH61_LBT_DC ) )
621612 RegionNvmGroup2 -> RssiFreeThreshold = AS923_RSSI_FREE_TH ;
622613 RegionNvmGroup2 -> CarrierSenseTime = AS923_CARRIER_SENSE_TIME ;
623614#endif
@@ -1023,7 +1014,6 @@ uint8_t RegionAS923RxParamSetupReq( RxParamSetupReqParams_t* rxParamSetupReq )
10231014{
10241015 uint8_t status = 0x07 ;
10251016#if defined( REGION_AS923 )
1026-
10271017 // Verify radio frequency
10281018 if ( VerifyRfFreq ( rxParamSetupReq -> Frequency ) == false )
10291019 {
@@ -1181,7 +1171,7 @@ LoRaMacStatus_t RegionAS923NextChannel( NextChanParams_t* nextChanParams, uint8_
11811171 identifyChannelsParam .DutyCycleEnabled = nextChanParams -> DutyCycleEnabled ;
11821172 identifyChannelsParam .MaxBands = AS923_MAX_NB_BANDS ;
11831173
1184- identifyChannelsParam .ElapsedTimeSinceStartUp = nextChanParams -> ElapsedTimeSinceStartUp ;
1174+ identifyChannelsParam .ElapsedTimeSinceTxBackoffRefTime = nextChanParams -> ElapsedTimeSinceTxBackoffRefTime ;
11851175 identifyChannelsParam .LastTxIsJoinRequest = nextChanParams -> LastTxIsJoinRequest ;
11861176 identifyChannelsParam .ExpectedTimeOnAir = GetTimeOnAir ( nextChanParams -> Datarate , nextChanParams -> PktLen );
11871177
@@ -1194,7 +1184,7 @@ LoRaMacStatus_t RegionAS923NextChannel( NextChanParams_t* nextChanParams, uint8_
11941184 {
11951185#if (( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP ) || \
11961186 ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP_CH24_CH38_LBT ) || \
1197- ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP_CH37_CH61_LBT_DC ) )
1187+ ( REGION_AS923_DEFAULT_CHANNEL_PLAN == CHANNEL_PLAN_GROUP_AS923_1_JP_CH33_CH61_LBT_DC ) )
11981188 // Executes the LBT algorithm when operating in Japan
11991189 uint8_t channelNext = 0 ;
12001190
0 commit comments