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

How to increase Advertising data size?

Hai

I'm using nrf52811 and sdk17.1.

I tried all peripheral examples But I can't set advertising data to more than 31 bytes.

If I increase the data size some parameters like names are trimmed.

I think in BLE 5.0 we can advertise more than 31 bytes of data.

how to advertise more than 31 bytes of data?

Thanks in advance

Parents
  • Hi Bosemani, 

    You would need to use extended advertising if you want to send more than 31 bytes. To do that you need to set :  init.config.ble_adv_extended_enabled = true;

    when you call ble_advertising_init().

    Please have a look at the ble_app_rscs example in SDK v17.1 we advertise with a very long name in the example :) 

  • Hai Hung Bui,

    Thank you for your Quick responce.

    I loaded ble_app_rscs example in SDK v17.1 without any changes.

    In the nRF Connect app I'm getting only the Device name "nRF Running Sp"

    but in code Device name is "nRF Running Speed and Cadence Sensor Example Application"

  • Hi Bosemani, 
    I'm sorry that I didn't notice that you were using nRF52811. If you use nRF52811 and S112, advertising extension is not supported. I would suggest to switch to nRF52832 and you can use S132 which supports it.

  • Hai Hung Bui,

    Thank you..It's Working In nRF52832 DK.

    But I want to implement it in nrf52811 or nrf52820.

    I saw your shared image. In S140, it supports the Advertising extension also for chips nRF52811 and nRF52820.

    Is anything changes have to do in S140 to load to nrf52820?

Reply Children
  • Hi Bosemani, 

    Yes you can use S140 on a nRF52811 but the problem of that is that the S140 requires 156kB of flash when the flash size of nRF52811 is 192kB.

    So the softdevice occupied most of the flash space of the nRF52811 and there is very little space left for the bootloader and the application. If you don't plan to do DFU update for your product then it would be fine but if you want to update the application via OTA DFU then it could be a challenge. 

Related