This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Serial Port profile for BLE device

Hello, I've just purchased nRF52 dev kit and I'm using ble_app_uart example from SDK_12.2 to send/receive data from one pc (which is connected to the dev kit through usb) to a laptop. Although the laptop pairs with my bluetooth device, it does not assign a virtual com port to it. As I read in some posts, ble doesn't support serial port profile and it is suggested to build our own custom service (devzone.nordicsemi.com/.../)

It is essential for me to assign a virtual com port in order to communicate with my labview application (and building a custom service is not possible since it's not my area of expertise), is there any piece of code I could use to provide that functionality or should I give up on ble and find a classic bluetooth device? Thank you in advance.

  • You can try the UART/Serial Port Emulation over BLE example for this. The on-board segger jlink lite will provide the virtual com port interface (UART <->USB bridge).

  • Hello, thank you for your quick reply! I am using this example but, if I am getting it right, it is only creating a virtual com port on the usb side (in my case the pc connected to the Dev kit). What I want is to assign a virtual com port to the laptop that is paired with the bluetooth device. The advertising name in this example is Nordic_uart, my laptop finds it and connection is established successfully but no serial port is assigned to it.

  • Correct, it only creates a virtual comp port on the usb side, which is not directly tied to the BLE connection. So Bluetooth classic might be the best alternative if this is a requirement.

    That said, this would be possible if you can connect the computer to a 52 kit (or custom 52 board with serial vcom support) instead of using built-in BLE HW. Note that we also have a central example for the same: Nordic UART Service Client example