cancel
Showing results for 
Search instead for 
Did you mean: 

Thread time sync using WB55

maldini15
Visitor
Hello all,
 
I am trying to use the time sync service from openThread, using a P-NUCLEO-WB55. For that purpose, I am using the sample Thread_FTD_Coap_Multicast that is working properly. I am using the latest stm32wb5x_Thread_FTD_fw.bin image for the wireless co-processor.
 
To test the time sync, I call otNetworkTimeSetSyncPeriod on the current thread instance before enabling the thread service:
 
error = otNetworkTimeSetSyncPeriod(instance, 30);
if (error != OT_ERROR_NONE) {
APP_THREAD_Error(ERR_THREAD_START, error);
}
error = otIp6SetEnabled(NULL, true);
if (error != OT_ERROR_NONE) {
APP_THREAD_Error(ERR_THREAD_IPV6_ENABLE, error);
}
error = otThreadSetEnabled(NULL, true);
if (error != OT_ERROR_NONE) {
APP_THREAD_Error(ERR_THREAD_START, error);
 
The issue is that otNetworkTimeSetSyncPeriod is returning 126, that is not even a known otError. Also the device does not seem to be sending any sync packets as a router. Is there any known issue with the time sync implementation, or am I doing something wrong?
 
 
 
Kind regards and thanks in advance

 

0 REPLIES 0