Other Parts Discussed in Thread: SYSCONFIG
Hello,
I aim to use the pause mechanism in 15.4 DMM_Sensor_oad. I am using the code in FH mode.
For that, I tried the following things -
So, for starters, I want to pause the 15.4 stack on the Button press(used BTN2 for the same). I called the DMMPolicy_updateStackState followed by Sensor_dmmPausePolicyCb() on Button press.
To check if the radio is actually paused, I used a sniffer as well as displayed the radio_activity using - macGetRadioState(). After the Sensor and Collecter started communicating, I pressed BTN2 and found that the sensor had no adv/data_exchange packets on Wireshark.
I am facing a disconnect in the 2nd method I have used (radio state). I have called macGetRadioState() function in sensor_process function. When the sensor and collector are communicating normally, the radio state returned by the function is 1(Radio ON) or 0 (Radio OFF) accordingly. But as soon as I press BTN2 to pause the 15.4 stack, the function returns 1 continuously.
So,
1) What is the proper/graceful way to pause a stack?
2) As 15.4 stack is paused, shouldn't macGetRadioState() function to return 0 since there is no Radio-Activity.
Thanks and Regards,
Yash.