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

Can't get UART Service Client demo to connect

I've spent the better part of a day trying to get the UART demo to work and I'm not having a lot of success. I did get it to connect and transmit data once - I think that happened when I pressed one of the buttons - but I haven't gotten it to work again since no matter how many buttons I press or how many times I reprogram or restart the boards.

The documentation here makes it look like once the boards are programmed they should just find each other and start working, but that's not been my experience.

Any help would be greatly appreciated. I'm on a tight work deadline to get this functioning for a tradeshow in conjunction with some other technology.

Setup details: I have SDK v11.0.0 and I compiled the ble_app_uart_c projects in both the ble_central directory and in the ble_peripheral directory. I'm using the S132 softdevice.

I used nRFgo Studio version 1.21.2.10 to program s132_nrf52_2.0.0_softdevice.hex into both boards and then I put the hex file from the central project onto one board and the hex file from the peripheral project onto the other (I compiled them using IAR. There was one change that I had to make to get the peripheral code to compile - I had to remove the references to NRF_LOG_COLOR_RED in the NRF_LOG messages).

I have a terminal program open that's connected to each dev kit. One of them shows a couple of lines of "Scan started". The other shows several lines of "UART Start!".

The UART phone application can reliably connect to the peripheral board and send data to its terminal window.

Also - the login mechanism on this site seems broken. I tried to log in with my account and it isn't working. I tried the "forgot password" thing and never received the email to reset it.

  • The central should automatically find the server and connect to it. Which boards are you testing this with? Can you try flashing the precompiled hex-files found in examples\ble_central\ble_app_uart_c\hex and examples\ble_peripheral\ble_app_uart\hex to your boards and connect to them using UART, as described in method one of the section Testing and debugging a BLE service in this tutorial? You should not press any buttons to send data, just type something in one terminal and it should pop up in the other terminal.

  • This is strange - I tried to post this message last week and it did not work, and now all of a sudden it showed up. I ended up going through the Nordic MyPage thing and getting help that way. In the end, upgrading to the latest version of the SDK (12.2.0) solved my problem and the demo is working now. The only quirk seems to be that it doesn't work immediately after programming in the files with nrfgo Studio. I have to power cycle the boards - but that's fine. Thanks!

  • Great that you got help through MyPage and got your problem solved! I'm not sure what caused this delay, I cannot see anything on our side causing delay in case postings. If you experience any similar problems at a later stage, please message me and I'll look further into it.

Related