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

modify manufacturer specific data and power manage

Hi,

I am developing firmware based on nRF51822 SDK for s110. I would like to modify one or two bytes at Manufacturer Specific Data area in advertising data packet. But I have a problem. What I am trying is as follows. Please give me a hint to solve this problem.

[What I want to do is ...]

  1. modify one or two bytes at Manufacturer Specific Data except length and data type before calling ble_advdata_set() in advertising_init.
  2. advertising_start
  3. power management
  4. advertise stop

(repeat 1-4)


main() { .... ble_stack_init();

for(;;)
{
  advertising_init();
  advertising_start();
  
  power_manage();
  
  err_code = sd_ble_gap_adv_stop();
  APP_ERROR_CHECK(err_code);
}

}


At first, I called nrf_delay_ms(1000) instead of power_manage() .It worked collectly. But if I replaced it with power_manage(), it doesn't work.

Thank you in advance.

Parents Reply Children
No Data
Related