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

config required for multiple ble devices

Hi, I am using SDK v12.2 and gcc compiler. S132 softdevice for nrf51 controller. image description

I am using muliple nrf51 devices to connect each other and share sensor data with each other. I am thinking to set one as central and others are peripheral.

Now, I am able to connect 1 central with 1 peripheral. But not able to connect other peripherals. I think i need to change the following config macro(but not sure about what is RAM value i will have to set after that).

#define CENTRAL_LINK_COUNT      1                               /**< Number of central links used by the application. When changing this number remember to adjust the RAM settings*/
#define PERIPHERAL_LINK_COUNT   0                               /**< Number of peripheral links used by the application. When changing this number remember to adjust the RAM settings*/
Parents
  • Nooooooooooooooo, you cannot use S132 for nRF51. Then when adding Central roles to work in parallel: beside changing these easy things such as constants and SD init with RAM limits etc. you will indeed put all the logic to treat these links inside you application FW! You will need to store the handles and treat each event separately based on which handle it is coming from.

Reply
  • Nooooooooooooooo, you cannot use S132 for nRF51. Then when adding Central roles to work in parallel: beside changing these easy things such as constants and SD init with RAM limits etc. you will indeed put all the logic to treat these links inside you application FW! You will need to store the handles and treat each event separately based on which handle it is coming from.

Children
Related