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

How to change the data rate for the BLE app beacon?

I have two devices, one is a beacon (DEVICE #1) and the other (DEVICE #2) collects information from the beacon. I'm advertising with a transmit power of 4dBm. I want to reduce the power consumption of the devices for longer battery life, for which I need to reduce the data rate of the advertisement. How can I change the data rate? and, what is the default data rate in which BLE app beacon advertises? 

I'm using this example,
DeviceDownload\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_beacon

Thank you in advance.

Parents
  • Hi,

    I need to reduce the data rate of the advertisement. How can I change the data rate?

    Adjust this value in main.c

    #define NON_CONNECTABLE_ADV_INTERVAL    MSEC_TO_UNITS(100, UNIT_0_625_MS)  /**< The advertising interval for non-connectable advertisement (100 ms). This value can vary between 100ms to 10.24s). */

    If you want to advertise e.g every 500ms, set it like this:

     

    #define NON_CONNECTABLE_ADV_INTERVAL    MSEC_TO_UNITS(500, UNIT_0_625_MS) 

Reply
  • Hi,

    I need to reduce the data rate of the advertisement. How can I change the data rate?

    Adjust this value in main.c

    #define NON_CONNECTABLE_ADV_INTERVAL    MSEC_TO_UNITS(100, UNIT_0_625_MS)  /**< The advertising interval for non-connectable advertisement (100 ms). This value can vary between 100ms to 10.24s). */

    If you want to advertise e.g every 500ms, set it like this:

     

    #define NON_CONNECTABLE_ADV_INTERVAL    MSEC_TO_UNITS(500, UNIT_0_625_MS) 

Children
  • Thank you for your reply, but adjusting #define NON_CONNECTABLE_ADV_INTERVAL changes the advertising interval but has nothing to do with the data rate. The speed at which data is transferred within the computer or between a peripheral device and the computer, measured in bytes per second is called Data-rate. The “Interval” setting determines how often your beacon will transmit its advertising packet. Both are completely different. What I needed was how to change the data rate of the advertisement, not how much time interval should be there between each advertisement packet.

    This is what I know. Please correct me if I am wrong. Thank you again for taking the time to reply.

Related