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

    Is there a specific reason you're using an nRF5340 as the peripheral here? It is a rather complex SoC, and peripherals are usually doing more simple tasks. 

    I'm not sure I understand your question here. The benefits of higher throughput is that you'll be able to send more data in a shorter amount of time. Both of these chips support everything from Coded PHY (125kbps over longer ranges) to 2MBPS PHY.

    Best regards,

    Simon

  • No, there isn´t a reason for use a nrf53 as peripheal, do you think that use a nrf53 as central to manage 20 connections can have some beneffits compared with nrf52?

    Sorry but in scan parameters i can't find any options that say anything of extended scan, can you specify where i must change that option please?

Reply Children
Related