Replies: 2 comments 1 reply
-
The value The LoRaWAN specifications say that the value of The handling of LoRaMac-node/src/mac/LoRaMac.c Lines 2537 to 2578 in 23bb8cf As you can observe the expected received time is the time since GPS epoch. Which then is converted to UNIX time for the system clock. (Please note that it excludes the leap seconds. Meaning that the UNIX time will be off by a few seconds) Where have you obtained this value? In the future it would be nice if you could post this kind of questions on the project Discussions tab. It is a better place to engage discussions and then we can agree if it is an issue or not. |
Beta Was this translation helpful? Give feedback.
-
Yes, I get this value in sysTime = SysTimeAdd( sysTimeCurrent, SysTimeSub( sysTime, MacCtx.LastTxSysTime ) );
printf("time=%u.%d\r\n", (unsigned int)sysTime.Seconds, Because I did not appear In static void MlmeConfirm( MlmeConfirm_t *mlmeConfirm )
{
LmHandlerPackagesNotify( PACKAGE_MLME_CONFIRM, mlmeConfirm );
switch( mlmeConfirm->MlmeRequest )
{
case MLME_BEACON_ACQUISITION:
{
if( mlmeConfirm->Status == LORAMAC_EVENT_INFO_STATUS_OK )
{
LmHandlerPingSlotReq( 3 );
printf("BEA_ACQ_OK\r\n");
}
else
{
// Beacon not acquired
// Request Device Time again.
LmHandlerDeviceTimeReq( );
printf("BEA_ACQ_FAIL\r\n");
}
}
break;
} I certainly don't mind moving to the Discussions tab. |
Beta Was this translation helpful? Give feedback.
-
When I use the DEVICE_TIME_REQ command, in SRV_MAC_DEVICE_TIME_ANS I read that the returned GPS time is 1669186181 and the converted UTC time is Nov 27, 2032 06:49:23. Obviously this is the wrong value. Why does this happen?Is this time generated by the gateway’s GPS or by the server?
Beta Was this translation helpful? Give feedback.
All reactions