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.

Using BLE on the CC2541 Breakout Board

Other Parts Discussed in Thread: CC2541, CC2540

I have recently purchased a CC2541 evaluation module with a SOC_BB and CC Debugger.

Want to program a GATT server appplication on the SoC with a client on a bluetooth v4.0 enabled PC.

Are special drivers or the CC2540 USB dongle required for the PC? Am having difficulties pairing the devices.

Regards

  • Hi Luke,

    The CC2540 USB dongle is pre-programmed to be used as a packet sniffer out of the box.

    If you would like to use it together with BTool to send/receive BLE commands you can flash it with the HostTestRelease hex file provided with the stack and install the driver described in ch 4.5.1 in the BLE developers user's guide (http://www.ti.com/lit/ug/swru271e/swru271e.pdf)

    For more information on BTool usage and how to flash the dongle, see the CC2540 Mini DK user's guide (http://www.ti.com/lit/ug/swru270c/swru270c.pdf)

    The simplest example to flash onto the CC2541 EM is the SimpleBLEPeripheral project (choosing the "CC2541" configuration under "Workspace" in IAR) which will advertise for 30sec when powered on and should be visible both through a PC or through BTool when scanning for devices.

    Regards,
    Svend 



  • Hello Svend, thank you very much for responding to my post. I have already flashed the SimpleBLEPeriphal project onto the SoC and have been able to find the advertising device. However I am uncertain on how to send and recieve packets to and from the CC2541 following finding the advertisement. Is there TI sniffer software available independent of a usb dongle and run able on the Bluetooth connection on the PC? As I do not and will not have access to the usb dongle in the near future. Regards, Luke
  • Luke,

    We don't have examples for using a built-in BT4 connection in a PC to communicate without the USB dongle.
    You would need Windows 8.1 and a working BLE radio on your computer for it to work as far as I can see.

    Microsoft's Developer Network seems to provide example BLE projects for Windows 8 and CC2540 that you might be able to help you get started:
    http://code.msdn.microsoft.com/windowsdesktop/Bluetooth-Generic-4f4ea968

    Otherwise if you have an iPhone >= 4S you can interface the CC2540 with that much easier than through Win8.
    A number of examples can be found in our wik:
    http://www.ti.com/ble-wiki or on the Apple Apps Store.

    Regards,
    Svend