Solved! Go to Solution.
Hello Ryan,
- What are the values in the EnergyDetectList array (what do they mean, what units, etc.) in an THR_EventNwkScan.Confirm?
EnergyDetectList [16 bytes] Displays the resulting list of the energy detected (hex) in the channels provided in "ScanChannelMask" when queried "THR_NwkScanRequest". These results are in dBm * (-1).
ie. [43, 77, 6D,..] --> [-67 dBm, -119 dBm, -109 dBm, ...]
- What are the 201 bytes returned in a THR_EventNwkCreate.Confirm's Data field.
This data is the evntMonitorData_t --> aData[] (thrEventData_t) information resulted from the ChannelScan.
Which includes NwkScanResults, MacReceivedDifferentKeyIndex, BeaconInformation.
The size will depend on the number of channels to be scanned.
ie. If there's only 1 channel to scan: 201, if there are 16 channels to scan: 216
Last 1 (min) or 16(max) bytes contain the Energy Detect results per channel.
- What does an EventStatus of SelectBestChannel indicate?
That the Network will be created based on the performed Channel Scan results from scanning the channel mask
(THR_SCANCHANNEL_MASK) to detect the less congested channel.
- How do you force a network to be created on a specific channel?
Prior creating the network, manually set an specific channel and panid. When this is performed, you will notice that the THR_EventNwkCreate.Confirm with Status of "SelectBestChannel" will be omitted.
ie.
shell:
"thr set channel 17"
"thr set panid 0x1234"
thcd:
"THR_SetAttrRequest(AttributeID='Channel', Value = '17') "
"THR_SetAttrRequest(AttributeID='ShortPanId', Value = '0x1234') "
Hope this helps,
JC
Hello Ryan,
- What are the values in the EnergyDetectList array (what do they mean, what units, etc.) in an THR_EventNwkScan.Confirm?
EnergyDetectList [16 bytes] Displays the resulting list of the energy detected (hex) in the channels provided in "ScanChannelMask" when queried "THR_NwkScanRequest". These results are in dBm * (-1).
ie. [43, 77, 6D,..] --> [-67 dBm, -119 dBm, -109 dBm, ...]
- What are the 201 bytes returned in a THR_EventNwkCreate.Confirm's Data field.
This data is the evntMonitorData_t --> aData[] (thrEventData_t) information resulted from the ChannelScan.
Which includes NwkScanResults, MacReceivedDifferentKeyIndex, BeaconInformation.
The size will depend on the number of channels to be scanned.
ie. If there's only 1 channel to scan: 201, if there are 16 channels to scan: 216
Last 1 (min) or 16(max) bytes contain the Energy Detect results per channel.
- What does an EventStatus of SelectBestChannel indicate?
That the Network will be created based on the performed Channel Scan results from scanning the channel mask
(THR_SCANCHANNEL_MASK) to detect the less congested channel.
- How do you force a network to be created on a specific channel?
Prior creating the network, manually set an specific channel and panid. When this is performed, you will notice that the THR_EventNwkCreate.Confirm with Status of "SelectBestChannel" will be omitted.
ie.
shell:
"thr set channel 17"
"thr set panid 0x1234"
thcd:
"THR_SetAttrRequest(AttributeID='Channel', Value = '17') "
"THR_SetAttrRequest(AttributeID='ShortPanId', Value = '0x1234') "
Hope this helps,
JC
please,
how to choose the right scan channel? i have tried to use the default one set in test tool but i have not obtained result
Thanks
Also, what are the possible values for EventStatus?
Those are Network Create Events. See: thrEvCodesCreate_t