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

    1. The disconnect doesn't use the conn_connecting call as far as I can see, but rather the connection handle or address of the device.

    2. Yes, the conn_connecting is just an event used during the connection procedure, and are cleared between connections.

    3. You need to store connection information, for example the addresses of the connected devices somewhere that you can call in order to disconnect from a specific device after connecting to multiple ones. 

    Best regards,

    Simon

  • Hi, Simon

    Thanks for reply.

    1. Here is the disconnect API in the example -static void disconnect(struct bt_conn *conn, void *data), it requires to pass bt_conn *conn object in order to call it, so I don't think it should be cleared before it is disconnected, Am I wrong?

    2. Anyway, I tried to call the disconnect function with conn_connecting as parameter, and it works, but I had to modify the connected function, not to clear it. If I clear it . If I clear it to NULL and then call disconnect function, it crashes. Any solution to this?
    3. I am keeping the MAC address of all connected devices, also tried to keep all connection objects too, so I can disconnect and connect any of them at any time, but so far it works for one connection at a time only, if I try to connect a second one while the first one is connected , it give me an error of -12, please can you tell me why?
    Regards!
    Ping
Reply
  • Hi, Simon

    Thanks for reply.

    1. Here is the disconnect API in the example -static void disconnect(struct bt_conn *conn, void *data), it requires to pass bt_conn *conn object in order to call it, so I don't think it should be cleared before it is disconnected, Am I wrong?

    2. Anyway, I tried to call the disconnect function with conn_connecting as parameter, and it works, but I had to modify the connected function, not to clear it. If I clear it . If I clear it to NULL and then call disconnect function, it crashes. Any solution to this?
    3. I am keeping the MAC address of all connected devices, also tried to keep all connection objects too, so I can disconnect and connect any of them at any time, but so far it works for one connection at a time only, if I try to connect a second one while the first one is connected , it give me an error of -12, please can you tell me why?
    Regards!
    Ping
Children
No Data
Related