Changes to perform to convert FTD to SED

85 views
Skip to first unread message

Nikhil Komalan

unread,
Sep 24, 2021, 1:45:24 AM9/24/21
to openthread-users
Hello,

I have created a firmware for end device running on battery using a Full Thread device example from nRF5 sdk for thread. But now i wish to convert the same example to run for Sleepy End Device.

So what are the changes i have to perform related to open thread stack for migrating FTD example to SED example?

In thread initialization i am performing this :
  1. Set radio mode to THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE
  2. Set Poll Period
  3. Set child timeout
  4. Auto-commissioning  true
Anything else i have to add ? 

Also i want to have clarity regarding this Polling parameter in thread initialization.
1. Does this polling period signifies the time period for which sleepy device will listen to its parent
OR
2. Does it signifies the time period after which sleepy device will listen for particular duration.

Although by the name of the parameter, 1st one sounds right one still wanted to confirm. And if 1st option is right than at what point of time my sleepy end device (publisher) will listen to it's parent device for the specified Polling Period ?

Thanks & Regards,
Nikhil Komalan

Jonathan Hui

unread,
Sep 24, 2021, 2:00:46 AM9/24/21
to Nikhil Komalan, openthread-users
To enable Sleepy End Device (SED) functionality, you need to set the device mode to `rx-off-when-idle`. When calling the OpenThread API directly, use the otThreadSetLinkMode() function.

The poll period sets the period at which the device will send an IEEE 802.15.4 Data Request to poll for messages buffered on its parent. See the Thread Group's The Value of Low Power white paper to learn more about how SEDs work.

Note that `THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE` is specific to the Nordic SDK. I would suggest submitting Nordic-specific inquiries to Nordic DevZone

--
Jonathan Hui



--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/f7c470f5-679c-4725-865e-0c96830225bbn%40googlegroups.com.

Nikhil Komalan

unread,
Sep 24, 2021, 4:55:16 AM9/24/21
to openthread-users
Hello,

Thanks for the white paper link. In the use case example regarding environmental sensor profile it quotes
as example " The sensor checks in with the parent to see if there’s data like a reconfigure report
command every 4s.
".  So this 4 second is set using otLinkSetPollPeriod right ?

Jonathan Hui

unread,
Sep 25, 2021, 1:43:01 AM9/25/21
to Nikhil Komalan, openthread-users
On Fri, Sep 24, 2021 at 1:55 AM Nikhil Komalan <nkoma...@gmail.com> wrote:

Thanks for the white paper link. In the use case example regarding environmental sensor profile it quotes
as example " The sensor checks in with the parent to see if there’s data like a reconfigure report
command every 4s.
".  So this 4 second is set using otLinkSetPollPeriod right ?

Yes. Correct.

--
Jonathan Hui

Reply all
Reply to author
Forward
0 new messages