AnsweredAssumed Answered

Thread THCI Network Event Field Definitions

Question asked by RYAN BRYNGELSON on Oct 26, 2016
Latest reply on Oct 26, 2016 by Juan Carlos Pacheco
What are the values in the EnergyDetectList array (what do they mean, what units, etc.) in an THR_EventNwkScan.Confirm?  For example...
RX: THR_EventNwkScan.Confirm 02 CF 50 2B 00 00 01 00 26 00 00 F8 FF 07 03 03 0A 00 10 43 77 6D 4D 2D 3D 7A 77 40 19 20 36 43 23 23 3A 02 01 00 BE FC 11 87 01 00 98 73 1A 3B AA
Sync [1 byte] = 02
OpGroup [1 byte] = CF
OpCode [1 byte] = 50
Length [2 bytes] = 00 2B
InstanceId [1 byte] = 00
EventStatus [2 bytes] = 00 01 (ScanResult)
DataSize [2 bytes] = 00 26
ScanChannelMask [4 bytes] = 07 FF F8 00
ScanType [1 byte] = 03 (EnergyDetectAndActiveScan)
ScanDuration [1 byte] = 03
maxThrNwkToDiscover [2 bytes] = 00 0A
EnergyDetectEntries [1 byte] = 10
EnergyDetectList [16 bytes] = [43, 77, 6D, 4D, 2D, 3D, 7A, 77, 40, 19, 20, 36, 43, 23, 23, 3A]
NwkDiscoveryEntries [1 byte] = 02
NumOfRcvdBeacons [2 bytes] = 00 01
PanId [2 bytes] = FC BE
Channel [1 byte] = 11
Reserved [1 byte] = 87
NumOfRcvdBeacons [2 bytes] = 00 01
PanId [2 bytes] = 73 98
Channel [1 byte] = 1A
Reserved [1 byte] = 3B
CRC [1 byte] = AA
What are the 201 bytes returned in a THR_EventNwkCreate.Confirm's Data field.  What does an EventStatus of SelectBestChannel indicate?  How do you force a network to be created on a specific channel?  For example...
RX: THR_EventNwkCreate.Confirm 02 CF 51 CE 00 00 03 00 C9 00 00 00 02 00 03 02 1E 00 01 00 00 00 CC 35 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 2B
Sync [1 byte] = 02
OpGroup [1 byte] = CF
OpCode [1 byte] = 51
Length [2 bytes] = 00 CE
InstanceId [1 byte] = 00
EventStatus [2 bytes] = 00 03 (SelectBestChannel)
DataSize [2 bytes] = 00 C9
Data [201 bytes] = [00, 00, 02, 00, 03, 02, 1E, 00, 01, 00, 00, 00, CC, 35, 00, 20, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 74]
CRC [1 byte] = 2B
The events that come through THCI_EvMonitor (in thci.c), are they defined anywhere?  THR_EventGeneral.Confirm and THR_EventNwkCommissioning.Indication are defined in the THCI reference manual, but seemingly not anywhere else.
Thanks,
Ryan

Outcomes