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

Help to set UART example to work only on coded PHY

Hi everyone,

My project consists on a nrf5340dk working as a peripheal UART, i set the advertisment to coded phy like this:

Setting the child image as hr_coded for be available to work on coded. This is my output, so i think that is working but i am not sure:

The central UART is inside of a nrf52840 of a custom board fanstel BC840, which is configured like this video explain https://www.youtube.com/watch?v=KSivO9Cf1TE&t=474s

I need to make the scan only on coded_phy, for that i set up the next:

But unfortunately both devices don´t connect, and when i debug central it seem is crashing:

I think maybe i missed something on Kconfig of board... but i don´t know.

My way to implement is correct? There are a better and cleaner way to do it? My parameters of setup for scan and conn have sense? 

My custom board works well with the example without changes.

The aim of this project is send 100 bytes of data every 100ms. The next steps will be have one central constantly scanning, and when one peripheal is available make a connection and start to exchange data, but the central will keep scanning until have the max 20 connections simultaneously.

Any suggestions, examples, corrections or ideas are very welcome.

Thank u everybody,

regards.

Parents
  • Hi

    Sorry about the late reply, I've been out of office the past few days. 

    Indeed, it seems like your peripheral is running as expected. The "No ID Address" error is not due to the application, but rather the Toolchain Manager, the assert you see further down is related to the Bluetooth controller somehow, so you're probably right in that it is something in your central's parameters or configs that's causing these asserts. I'm not able to reproduce this error on my end with the central_hr_coded example in NCS v1.6.0 (Toolchain Manager v0.9.4 and nRFConnect v3.7.0). By default, the central_hr_coded sample project enable scan filters and extended adv/scanning, and does not run into any errors. What exactly have you changed from the sample project to the project you have now?

    Best regards,

    Simon

    EDIT: For reference, to get rid of the "No ID address" message you're seeing you need to uninstall NCS, the toolchain manager and nRFConnect for Desktop entirely before reinstalling it all. This is due to some issue that we're working on fixing with the Toolchain Manager where it doesn't delete all the settings pages correctly when installing a new NCS version. Applications should run fine anyways though.

  • Finally i succed connecting both devices, changing the filter of conexion of UUID to Name of device. Thanks for the help, i can jump into the next steep trying multilink, i will post new doubts on new threads

  • Hi   And  

    Nice post! Can you please tell me that you used peripheral_UartCentral_Uart to add Coded_Phy Connectable features from the peripheral_hr_coded & Central_hr_coded right?

    In the end, when you type something on uart peripheral and press enter it shows on uart central in connectable mode am I right?

    thanks and regards,

    Muhammad Usman

Reply Children
No Data
Related