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

Multicentral Zephyr Development Examples or Documentation

I have a development environment using Zephyr; setup and working from the documentation I found for the nRF Connect SDK.  I am using SES and am able to debug the provided examples.  How do I alter the build options for the examples?  Right clicking the project only has a greyed out "Options".  I am attempting to alter the UART Central example to connect to multiple peripheral devices.  I can't find any good documentation doesn't seem to touch on this subject at all.  Starting a scan after the first device connects leads to that device immediately trying to connect again.  It appears like it reconnects automatically.  Ideally I would like to catch it during the scan phase and not enter the connection phase if I am already connected?  Also, having the scan running during UART data transmission gives me a ENOTCONN error.  Anyone try to do something similar?

Parents
  • Take a look at this link to get started. Take a look at section 2.2 Create a light intensity controller. Regarding Zephyr with BLE, we recommend to use the standard nRF5 SDK. However, if you really want to use NCS for BLE, you can do this. I will get back to you on connecting to multiple devices, as a colleague of mine has done exactly this.

  • You should be able to add the following code to the relevant zephyr code in the prj.conf file: CONFIG_BT_MAX_CONN=n, where you change n to be the number of connections you have. In the LTE Gateway example, we show how you can connect the 52840 via BLE to a Nordic Thingy:52.

  • I am sorry for the delay. Lately, a huge portion of the support team has been on Christmas vacation. Most of the staff will be back 6 of January 2020 and you can be sure to get an answer shortly after that.

    Best regards,

    Simon

  • I gave up, and have shifted from a multi-central application to an ANT shared channel using the Nordic SDK. I hope I will have better results.

  • Okay, good luck with your new approach.

    However, it seems like this issue is fixed in the newest versions of NCS.

    Best regards,

    Simon

  • I tried the latest version of NCS before I gave up, and still had loads of problems.

  • Okay, do you want me to look into these problems or have you given up this approach?

Reply Children