Using the Kinetis Protocol Analyzer Adapter with Multiple USB-KW40Z BLE Sniffers

Document created by Alexandru Balmus Employee on Jan 20, 2016
Version 1Show Document
  • View in full screen mode

What you need:

  • USB-KW40Z boards (at least 3 recommended)
  • Kinetis KW40Z Connectivity Software
  • Kinetis Protocol Analyzer Adapter
  • Wireshark

Consult the USB-KW40Z getting started guide for an in depth tutorial on how to program the boards with the sniffer software and how to install and use the Kinetis Protocol Analyzer Adapter and Wireshark.

For best performance at least 3 boards are needed to continuously monitor all 3 BLE advertising channels: 37, 38 and 39. If you have more then it’s even better. Having less than 3 sniffer boards will lead to the BLE sniffer setup missing some advertising packets and connection events. If only 1 or 2 boards are present they will have to jump between the 3 advertising channels.

After the initial setup is complete make sure the boards are plugged into USB ports and then start the Kinetis Protocol Analyzer Adapter software.

Immediately after the application is started it will start looking for the sniffers:

1 detecting Sniffers.png

After the sniffers are detected the application window should look like the screenshot below. There should be a separate row shown for each sniffer board which is plugged in (3 in the example below – COM32, COM34, and COM33).

2 Sniffers Detected.png

Set each sniffer on a different advertising channel and (37, 38 and 39) and if you’re looking to sniff a specific device enable the Address Filter checkbox and enter the device’s address in the adjacent field as shown in the screenshot below. Use the same device address for all sniffer devices.

3 Select Channel And Address Filters.png

Press the “shark fin” button in the upper right of the window to start Wireshark.

After Wireshark starts select the PCAP IF shown in the Kinetis Protocol Analyzer Adapter window and start capturing packets. Local Area Connection 2 is the PCAP IF in the example.

4 Wireshark interface.png

Wireshark will start showing the captured packets and the sniffers will catch Connection Request packets sent to the target device on any of the advertising channels.

5 Wireshark capture.png

Useful tip:

You can use the btle.advertising_header.length != 0 or btle.data_header.length != 0 filter in Wireshark to filter out empty BLE packets.

Attachments

    Outcomes