Tool/software:
I was debugging through code for the sensor/collector project and found that the energy detect scan is not coming back with any scan values. It is setup without a network since when devices are paired it just uses the stored channel value. What I see is that the channels to be scanned is set to 1 and it calls scanCnfCb(ApiMac_mlmeScanCnf_t *pData) and gets to the ApiMac_scantype_active check which is when it looks for the energyDetect values and pData->resultListSize is 0.
The original question was:
We are needing to verify that the energy detection for picking a channel is working. This will let us know if a channel is busy that it won’t be picked as the active channel for communication.
We are thinking we can busy out a set of frequencies using Smart RF Studio by sending data to those frequencies at a rapid pace and then check if the application picks a freq. outside of the busy frequencies.
When I was testing this, it seemed to still pick the same first frequency that it would normally choose.
Can you indicate if this should work or what a valid test would be for this so we can verify this functionality of the protocol?
After debugging the code trying to at least see what values I could get, I can't see any values coming back from the scanning.
Thanks,
Kevin