This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

central multilink example not building

Hi, All

I am trying the example here ...ncs\v1.9.1\zephyr\samples\bluetooth\central_multilink\ with nRF52833dk_nrf52833 board, however it doesn't build, and saying the  maximum conn number is outside of the valid range of [1. 20]. 

What is the range of CONFIG_BT_MAX_CONN? another example says 20, but why this one set it to 62?

Another question, when a central is connected to some peripherals,  is it still able to do scanning?

Thanks you!

Ping

Parents
  • Hi

    The radio will have to stop scanning while it is connecting to a device I'm afraid, as there is only one radio, it will have to stop scanning to be able to connect. If you want the device to always be scanning, you can't do connections, and only receive data from beacons. The error reasons can be found in the errno.h header file. -11 should point to EAGAIN, telling you to try again. What exact line is returning this error, as that usually gives a pointer as to what the reason is. I'm guessing you're being told to try creating the connection later (when the scanning has stopped), as the radio will be busy when you try scanning and creating a connection at the same time.

    Best regards,

    Simon

Reply
  • Hi

    The radio will have to stop scanning while it is connecting to a device I'm afraid, as there is only one radio, it will have to stop scanning to be able to connect. If you want the device to always be scanning, you can't do connections, and only receive data from beacons. The error reasons can be found in the errno.h header file. -11 should point to EAGAIN, telling you to try again. What exact line is returning this error, as that usually gives a pointer as to what the reason is. I'm guessing you're being told to try creating the connection later (when the scanning has stopped), as the radio will be busy when you try scanning and creating a connection at the same time.

    Best regards,

    Simon

Children
No Data
Related