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

Peripheral UART Sample on Thingy:91

Hello,

I am having some issues with the peripheral UART sample on the Thingy:91. I used Segger Embedded Studios with the thingy91_nrf52840 as the board, I was able to successfully upload the application to the nrf52840, and I can see it on nRF Connect on my phone but it's not very consistent and it does not seem to actually connect.

I am using an Android mobile device. I uploaded the application using the nRF9160dk as a external debug probe. I'm new to Bluetooth so I'm not sure if I did not upload the application correctly or perhaps I missed a setting for Bluetooth?

Thank you for your time.

  • Hi

    I assume this is the peripheral_UART sample project you have flashed onto your Thingy:91?

    Can you upload the log from nRFConnect on your phone when trying to connect to the UART peripheral? You should be able to see a disconnect or "failed to connect" reason in the nRFConnect log.

    Best regards,

    Simon

  • Thanks for getting back to me, here is what the log says.

    nRF Connect, 2021-05-18
    Nordic_UART_Service (C0:63:4B:FD:DA:BF)
    V 11:38:05.988 Connecting to C0:63:4B:FD:DA:BF...
    D 11:38:05.988 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
    D 11:38:35.993 [Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)
    E 11:38:35.994 Error 133 (0x85): GATT ERROR
    I 11:38:35.994 Disconnected

  • Ok

    Unfortunately that doesn't help a lot, as error 133 can be multiple different things. Have you done any debugging on the Thingy:91 when you try to connect to it using your phone? It would be interesting to see the debug log here for some further information.

    What board have you built the project for when building and flashing the project? You might have to make some changes to the board you're using. Also what UART instance are you using by default. Remember that the communication between the onboard nRF91 and nRF52 also uses UART (UART0 I believe) for communication. You can also check out this case that has a discussion on using the other UART instance on the nRF52 for communication.

    Best regards,

    Simon

Related