This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I write a custom Windows app to read packets using the CC2540 USB Dongle?

Other Parts Discussed in Thread: CC2540, BLE-STACK

We have been successfully using the TI SmartRF Packet Sniffer with the CC2540 USB Dongle (the one that comes with the CC2540DK) to monitor packets coming from our BLE hardware.

Now I have a need to write some custom code that will run on a Windows PC, listen to the packets the USB Dongle sees, and take action based on them.

Is there an example somewhere to do this?

Thanks.

How can I write a custom Windows app to read packets using the CC2540 USB Dongle?

  • Hello Jim,

    The Packet Sniffer is not provided as a lib, but you can build a product that uses the HostTest application to scan for BLE Advertisements. See the PC Examples section on the BLE Wiki. The communication to the dongle is via USB-CDC (Serial), so you just need an app that can write to a Windows COM port and implement the TI Vendor Specific HCI protocol. Refer to the included documentation in the BLE-Stack v1.4.1 SDK.

    Best wishes