Wireshark¶
Install the Required Software¶
Download and install the following software:
- Wireshark software, version 2.6.x stable release
Warning
It is important that Wireshark 2.6.x version is used. Older or newer versions may not be compatible.
- SmartRF Packet Sniffer 2, which contains sniffer firmware for the CC13xx and CC26xx family
- Uniflash, used to program devices from the CC13xx and CC26xx family
Required Hardware¶
Any device from the CC13xx and CC26xx family which supports IEEE commands can be used as a sniffer. Following is a list of all supported development boards:
Hardware Setup¶
Connect the device to the computer with Wireshark installed.
If the device is not programmed with the sniffer firmware, use Uniflash to program the sniffer firmware.
- The firmware image is called
sniffer_fw.hex
. - Depending on which device, the firmware image is found in
sniffer_fw/bin/{Device Family}/
under the SmartRF Packet Sniffer 2 installation. - For example, the firmware image for the CC26x2R LaunchPad is found
under
sniffer_fw/bin/cc26x2r1lp/
.
- The firmware image is called
Running the Packet Sniffer¶
Connect the sniffer device.
Start the Sniffer Agent from SmartRF Packet Sniffer 2.
Configure the sniffer device in the Sniffer Agent.
Start sniffer capture in the Sniffer Agent by clicking Start.
Open Wireshark with the modified target arguments.
This is detailed in the Software Setup Section in the SmartRF Packet Sniffer 2 User’s Guide. If done correctly, the Sniffer Agent is now connected to Wireshark.
Goto preferences in Wireshark with
Edit
→Preferences
.Goto the Thread Protocol dissector configuration by expanding Protocols on the right and navigating to Thread. Set the
Decode CoAP for Thread
option.Goto the CoAP Protocol dissector configuration by navigating to CoAP. Make sure that the port matches as shown below.
Goto the IEEE 802.15.4 Protocol dissector configuration by navigating to IEEE 802.15.4. Make sure that the configuration matches as shown below.
In the IEEE 802.15.4 Protocol dissector configuration, add a Thread Master key by selecting the
Edit...
button next toDecryption Keys
and clicking the+
button. Set a key entry with the following values:Decryption Key 00112233445566778899aabbccddeeff
Decryption Key Index 0
Key hash Thread hash
The packets in Wireshark should now be decrypted and dissected correctly.