Other Parts Discussed in Thread: CC1310
Tool/software: Code Composer Studio
hey guys,
we are currently adapting the frequency hopping code from the newest CC1310 15.4 Stack SDK sensor example. We'd like to lower the power consumption for sleepy sensor nodes before association and we have some questions, though the first one is the one relating to the title.
1. I was now wondering, in jdllc_join() or jdllc_rejoin() before the Ssf_setTrickleClock() is set, RX is activated ApiMac_mlmeSetReqBool(ApiMac_attribute_RxOnWhenIdle, true);. But that doesn't make sense to me, since the sensor has not yet send its PAS or PCS asynchronous message. These messages are send when the trickle clock expires. I understand, that since in the example even for sleepy devices RXOnWhenIdle is always true, this is not a big issue, but there is no drawback by setting RxOnWhenIdle after calling sendAsyncReq(), right?
2. I see that if the sensor restarts or if handleMaxDataFail() is called, it starts the TrickleClock() again and waits for a new PC message, but what if the collector has been exchanged and has a new PAN_ID. Than the sensor would have to eventually call Jdllc_sendDisassociationRequest(); to start from the beginning, right? However, I if FH is enabled sensor goes into orphan state only updateState(Jdllc_states_orphan); and waits for a new PC message. (and again ApiMac_mlmeSetReqBool(ApiMac_attribute_RxOnWhenIdle, true); is called before the TrickleClock() is set.)
3. Our dwell time is set to 250ms, according to https://software-dl.ti.com/simplelink/esd/simplelink_cc13x2_26x2_sdk/3.30.00.03/exports/docs/ti154stack/html/ti154stack/frequency-hopping-mode.html
we should send a message each 25min to ensure sync, however, we only send data messages or poll once an hour and only have sleepy end nodes. Is it necessary, to reduce the interval?
best wishes and stay healthy
Slev1n