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

    This seems to be a bug with the latest NCS version when not using the latest nRFConnect and Toolchain Manager versions. Can you please try to uninstall NCS, update the Toolchain manager, and reinstall NCS? 

    The latest version should be nRFConnect v3.7.0 and Toolchain Manager v0.9.3.

    Best regards,

    Simon

  • First of all i reinstall NCS.

    Let me upgrade the situation. I now try run peripheal_hr_coded and central_hr_coded to see if coded_phy works properly, both in the custom board fanstel, and they had connected. That is fine because mean that Kconfig and defconfig of the custom board is working properly. 

    I install and configure Wireshark to work with a nrf52840 dongle as sniffer and i am not be able to see any adv packets coming of peripheal_hr_coded device. That's strange, isn't it?

    I pick the code of scan on coded and advertise on coded of these projects (peripheal_hr_coded , central_hr_coded) copying it to UART project. The main functions copied are scan_init() and bt_ready() and functions inside them, same with scann_params/conn_params

    So is possible that peripheal is adv correctly, but both devices don't connect to other reasons. 

    When i try to debug the central appears this error:

    That error remains, is an debug error? Or could be the problem that not allow my connection?

    If i you need more information don't doubt on ask for it.

    Thanks for the help, regards.

  • I install and configure Wireshark to work with a nrf52840 dongle as sniffer and i am not be able to see any adv packets coming of peripheal_hr_coded device. That's strange, isn't it?

    I have another upgrade, i check my configuration on Wireshark, now i am able to see the coded adv packets, so i can check that the device is advertising satisfactorily.

    So definitely the issue may be on the connection parameters and filters, or here:

    When i try to debug the central appears this error:

    If it isn't an debug bug.

    Any information is welcome.

    Thanks, regards.

  • How is possible that they doesn't connect? the configuration of scann init is the default config of UART project as:

    I added to Kconfig:

    Maybe there are some missed config?

Reply Children
No Data
Related