Connect a Laptop with Windows to Peripheral UART example

Sure, my question is very stupid, but after one day I found nothing to explain the principle of the situation, I decided to ask.

I have a laptop with built-in Bluetooth 5.2 and Windows 11. It runs a terminal testing program.

I have nRF5340 DK with the example Peripheral UART installed (nRF Connect SDK1.8.0). The board works normally, I tested it with a phone with Android and nRF Connect for Mobile. Everything is working fine. The board is connected to a desktop computer on which a terminal program is running and connected to COM port ( not USB).

Windows (laptop), sees the board. After pressing adding device (on Win), the LED on the board (connected) lights up for 1 second, Windows thinks about 5 seconds, and says try again. I imagine that it will connect to the board, and a window will appear to install a serial port to which I can connect through the terminal program. No PIN display window appears. I tried to quickly press button 1, possibly to confirm, nothing. I can transmit data over the phone without the board being BONDED. Let me just say that I've been doing Nordic for 6 months, and I've learned some things. But here I can't even imagine what should happen. Google didn't help either. Does anything else need to be installed on the board?

In the final version, it should be a remote device to which with any laptop with Bluetooth 5.2, to be able to connect and through a terminal program to exchange data via serial port.

  • Connects !, I tried several times, all successful. Only the CONFIG_BT_PHY_UPDATE=n option is enough.


    But there is no Serial Port anywhere. It does not appear anywhere when the device is added. I tried tot add, through advanced Bluetooth settings, there it does not appear as a device to which to add a serial port. I also tried through the properties of the device, services, there is an empty field.
    I have a feeling that because windows add it as "Category: Heart Rate Monitor", that's why he doesn't want to add a serial port.

  • Glad to hear you're able to connect now Stefan!

    Regarding the serial port. Are you expecting to see a serial port on the PC side when the device is connected over BLE, or is it also connected to the PC serially and you don't see any logging?

    Best regards,

    Simon

  • Are you expecting to see a serial port on the PC side when the device is connected over BLE.

    Exactly!

    Until now, when I used Bluetooth modules, older versions, when I connect/add to them, a serial port appears in Windows. Once this device is added, Windows remembers it. From the software I use, just select opening port (COM XXX) and Windows connects to this device. It doesn't matter for the software whether this port is Bluetooth, a physical port, or an adapter cable (USB to XX converter).

  • Hi

    I see, that would be the Bluetooth Classic profile Serial Port Profile (SPP). This is not supported in BLE unfortunately, so this won't be possible with nRF5x series devices, which only support BLE. You will need some sort of Dongle that is connected serially to the computer to get up a serial port on the PC.

    Best regards,

    Simon

  • Bad very bad. It was the idea of everything to connect the laptop to the device via Bluetooth. But I don't know in what language software should be written to connect to the device that was added to Windows. This device is currently unusable in Windows. The most important thing was not to plug anything into the ports of the laptop, because in a few months they die purely mechanically from turning on and off USB devices. I need to seriously rethink the whole strategy.

    Thank you for your cooperation and time.

Related