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.

CC2640: PC Driver for a BLE Connection with the CC2640 Microcontroller

Part Number: CC2640

Hello,


I build a Board with the CC2640F128 µC to sample same Data and stream them over Bluetooth. I already realised the UART to BLE Bridge Example, and it works fine. Now i would like to set up a direct Connection with the PC. By now i understand that there is not something like a serial port Profile in BLE, but I wonder if there is some Driver or something like that to realise Something similar. I know there are some similar threads, but by now i didn't find any solution for this Problem, so sorry for ask this Question once more.

If there is Nothing to use "out of the Box" can you give me some hints where i have to Start, to write the BLE driver for Windows or Linux?

Sorry for this stupid Question, I'm sure i just overlook or don't understand the decisive Point.


Best wishes.

  • Hi JCS,

    I would recommend you look at the Serial Port Profile example project (spp_over_ble)we have on the SimpleLink Github page: github.com/.../ble_examples-2.2

  • Hi Rachel,

    Thank you very much for your replay!

    I have built the example project and it works well, but do i unterstand that rightly that this example just establish a connection between two microcontrollers? I was looking for something like the spp_ble_client part from this example but just for the PC.

    Or can I use the spp_ble_server project on the CC2640 with the PC as counterpart and i just don't know how? (I can see and connect to the µC with the PC. But can't use a virtual COM port like on the Serial Port Profile in Bluetooth Classic)

    I hope this is not a too stupid question ;-)

    Best wishes.

  • When you test SPP example, you can connect CC2640 UART with serial-to-USB cable to PC and input messages to transmit to other SPP.
  • Hi YiKai,

    Thank you very much for your idea!

    Unfortunately is this not what i want. I need to connect the µC direct to the PC, not only for debugging.

    I want a direct connection to the PC, like the "BLE Scanner" App on Android. I wonder that there is no example where i can start with. Some example where only a µC and a PC is involved. I guess I'm still to blind to see, but I thought this is the main Task for BLE.

    Best regards

  • I was properly searching on the wrong side. It turns out that there is an easy way to communicate with BLE to the CC2640 over Linux using BlueZ with gatttool and PyGatt https://github.com/peplin/pygatt .
    This seems like a good way to start for my :-)

    Best wishes.