Compare commits

...

5 Commits

Author SHA1 Message Date
Maxime JOURDAN ac3b612121
Merge 5a2a231dea into ad0502685e 2025-03-03 02:35:11 +01:00
Ali Labbene ad0502685e [DOC] Update './Projects/Release_Notes.html' 2025-02-28 12:08:03 +01:00
Maxime JOURDAN 5a2a231dea fix typo 2023-04-03 19:15:35 +02:00
Maxime JOURDAN 78bc3c4a6d Add return status for LmHandlerJoin function 2023-04-03 19:08:05 +02:00
Maxime JOURDAN 2ccbb7479f fix comment format 2023-04-03 19:06:41 +02:00
4 changed files with 46 additions and 10 deletions

View File

@ -595,8 +595,10 @@ TimerTime_t LmHandlerGetDutyCycleWaitTime( void )
return DutyCycleWaitTime; return DutyCycleWaitTime;
} }
void LmHandlerJoin( ActivationType_t mode, bool forceRejoin ) LmHandlerErrorStatus_t LmHandlerJoin( ActivationType_t mode, bool forceRejoin )
{ {
LmHandlerErrorStatus_t lmhStatus = LORAMAC_HANDLER_ERROR;
LoRaMacStatus_t status;
MlmeReq_t mlmeReq; MlmeReq_t mlmeReq;
mlmeReq.Type = MLME_JOIN; mlmeReq.Type = MLME_JOIN;
@ -611,7 +613,12 @@ void LmHandlerJoin( ActivationType_t mode, bool forceRejoin )
LoRaMacStart(); LoRaMacStart();
#if (defined( LORAMAC_VERSION ) && ( LORAMAC_VERSION == 0x01000300 )) #if (defined( LORAMAC_VERSION ) && ( LORAMAC_VERSION == 0x01000300 ))
/* Starts the OTAA join procedure */ /* Starts the OTAA join procedure */
LoRaMacMlmeRequest( &mlmeReq ); status = LoRaMacMlmeRequest( &mlmeReq );
if( status == LORAMAC_STATUS_OK )
{
lmhStatus = LORAMAC_STATUS_OK;
}
#endif /* LORAMAC_VERSION */ #endif /* LORAMAC_VERSION */
} }
else else
@ -661,7 +668,7 @@ void LmHandlerJoin( ActivationType_t mode, bool forceRejoin )
{ {
LmHandlerCallbacks->OnJoinRequest( &JoinParams ); LmHandlerCallbacks->OnJoinRequest( &JoinParams );
} }
LmHandlerRequestClass( LmHandlerParams.DefaultClass ); lmhStatus = LmHandlerRequestClass( LmHandlerParams.DefaultClass );
#endif /* LORAMAC_VERSION */ #endif /* LORAMAC_VERSION */
} }
@ -669,10 +676,17 @@ void LmHandlerJoin( ActivationType_t mode, bool forceRejoin )
if( ( CtxRestoreDone == false ) || ( forceRejoin == true ) ) if( ( CtxRestoreDone == false ) || ( forceRejoin == true ) )
{ {
/* Starts the join procedure */ /* Starts the join procedure */
LoRaMacMlmeRequest( &mlmeReq ); status = LoRaMacMlmeRequest( &mlmeReq );
if( status == LORAMAC_STATUS_OK )
{
lmhStatus = LORAMAC_STATUS_OK;
}
} }
DutyCycleWaitTime = mlmeReq.ReqReturn.DutyCycleWaitTime; DutyCycleWaitTime = mlmeReq.ReqReturn.DutyCycleWaitTime;
#endif /* LORAMAC_VERSION */ #endif /* LORAMAC_VERSION */
return lmhStatus;
} }
LmHandlerFlagStatus_t LmHandlerJoinStatus( void ) LmHandlerFlagStatus_t LmHandlerJoinStatus( void )

View File

@ -363,8 +363,12 @@ TimerTime_t LmHandlerGetDutyCycleWaitTime( void );
* *
* \param [in] mode Activation mode (OTAA or ABP) * \param [in] mode Activation mode (OTAA or ABP)
* \param [in] forceRejoin Flag to force the rejoin even if LoRaWAN context can be restored * \param [in] forceRejoin Flag to force the rejoin even if LoRaWAN context can be restored
*
* \retval status Returns \ref LORAMAC_HANDLER_SUCCESS if request has been
* processed else if device not yet joined a network \ref LORAMAC_HANDLER_NO_NETWORK_JOINED
* else \ref LORAMAC_HANDLER_ERROR
*/ */
void LmHandlerJoin( ActivationType_t mode, bool forceRejoin ); LmHandlerErrorStatus_t LmHandlerJoin( ActivationType_t mode, bool forceRejoin );
/*! /*!
* Check whether the Device is joined to the network * Check whether the Device is joined to the network
@ -394,7 +398,7 @@ LmHandlerErrorStatus_t LmHandlerPingSlotReq( uint8_t periodicity );
* *
* \retval status Returns \ref LORAMAC_HANDLER_SUCCESS if request has been * \retval status Returns \ref LORAMAC_HANDLER_SUCCESS if request has been
* processed else if device not yet joined a network \ref LORAMAC_HANDLER_NO_NETWORK_JOINED * processed else if device not yet joined a network \ref LORAMAC_HANDLER_NO_NETWORK_JOINED
else \ref LORAMAC_HANDLER_ERROR * else \ref LORAMAC_HANDLER_ERROR
*/ */
LmHandlerErrorStatus_t LmHandlerRequestClass( DeviceClass_t newClass ); LmHandlerErrorStatus_t LmHandlerRequestClass( DeviceClass_t newClass );

View File

@ -78,7 +78,7 @@ series</li>
<div class="collapse"> <div class="collapse">
<input type="checkbox" id="collapse-section5" checked aria-hidden="true"> <input type="checkbox" id="collapse-section5" checked aria-hidden="true">
<label for="collapse-section5" aria-hidden="true"><strong>V1.3.1 / <label for="collapse-section5" aria-hidden="true"><strong>V1.3.1 /
29-November-2024</strong></label> 20-December-2024</strong></label>
<div> <div>
<h2 id="main-changes">Main Changes</h2> <h2 id="main-changes">Main Changes</h2>
<h3 id="patch-release">Patch Release</h3> <h3 id="patch-release">Patch Release</h3>
@ -124,7 +124,8 @@ class="icon-st-update"></span></td>
</tr> </tr>
<tr> <tr>
<td style="text-align: left;">NUCLEO-WL55JC</td> <td style="text-align: left;">NUCLEO-WL55JC</td>
<td style="text-align: left;">Demonstrations</td> <td style="text-align: left;">Demonstrations <span
class="icon-st-update"></span></td>
<td style="text-align: left;">Projects\NUCLEO-WL55JC\Demonstrations</td> <td style="text-align: left;">Projects\NUCLEO-WL55JC\Demonstrations</td>
</tr> </tr>
<tr> <tr>
@ -186,6 +187,14 @@ RTC</li>
<li>Set the ulExpectedIdleTime flag before entering in low power mode in <li>Set the ulExpectedIdleTime flag before entering in low power mode in
PreSleepProcessing</li> PreSleepProcessing</li>
</ul></li> </ul></li>
<li><strong>Applications/LoRaWAN/LoRaWAN_AT_Slave</strong>
<ul>
<li>Update CubeMonitor RF test panel</li>
</ul></li>
<li><strong>Applications/LoRaWAN/LoRaWAN_AT_Slave_DualCore</strong>
<ul>
<li>Update CubeMonitor RF test panel</li>
</ul></li>
<li><strong>Applications/LoRaWAN_FUOTA_DualCore</strong> <li><strong>Applications/LoRaWAN_FUOTA_DualCore</strong>
<ul> <ul>
<li>Fix compilation on Linux host due to lower case letters used in file <li>Fix compilation on Linux host due to lower case letters used in file
@ -201,6 +210,10 @@ names</li>
<li>Fix compilation on Linux host due to lower case letters used in file <li>Fix compilation on Linux host due to lower case letters used in file
names</li> names</li>
</ul></li> </ul></li>
<li><strong>Demonstrations/LocalNetwork/LocalNetwork_Concentrator/</strong>
<ul>
<li>Update CubeMonitor RF demo panel</li>
</ul></li>
<li><strong>Examples/PWR/PWR_STOP2_RTC</strong> <li><strong>Examples/PWR/PWR_STOP2_RTC</strong>
<ul> <ul>
<li>Fix PWR_STOP2_RTC test due to uninitialized RCC_OscInitStruct <li>Fix PWR_STOP2_RTC test due to uninitialized RCC_OscInitStruct
@ -223,11 +236,16 @@ struct</li>
<li><strong>Applications/LoRaWAN_FUOTA_DualCore_ExtFlash</strong> <li><strong>Applications/LoRaWAN_FUOTA_DualCore_ExtFlash</strong>
<ul> <ul>
<li>Fix compilation on Linux host due to lower case letters used in file <li>Fix compilation on Linux host due to lower case letters used in file
names<br /> names</li>
</li> </ul></li>
<li><strong>Applications/LoRaWAN/LoRaWAN_AT_Slave</strong>
<ul>
<li>Update CubeMonitor RF test panel</li>
</ul></li> </ul></li>
</ul></li> </ul></li>
</ul> </ul>
<p><br />
</p>
<h2 id="known-limitations">Known Limitations</h2> <h2 id="known-limitations">Known Limitations</h2>
<ul> <ul>
<li><strong>LL/HAL</strong> <li><strong>LL/HAL</strong>