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

timer event stops advertising

hi everyone. i have an issue with app timer. i m using SDK 9 and softdevice v8.0. in my code i used ble_app_template project and changed something according to my goals (for example) i create timer and start as in the template project and every timer event handle i update my advertisement data (sequence: advertisement stop-->update adv data--> advertisemt start). my problem, sometimes, soft device stops advertising and at next timer handle it starts again. i think problem comes from not properly set up scheduler or interrupt priority but i don't know how to. . Can someone help me to fix this problem? Thanks in advance.

samet

edit: here is my code you see the code it is a beacon project, i update scan resp data at every half of hour.

main.c

  • Hi Martin, I was on a trip so sorry for late reply, and also thank you and all nordic team for being helpful.

    Martin, At the MCP side you already know that user can not change advertising interval and window. but in my bluegiga script i can sert interval and window which i want. Right now , my scan window and scan interval are both set to $30 (which is 0x30 and 0x30=48D --> 48*0.625=30 ms ). you see advertisement interval and window are equal and short. at the nordic side i used all off three advertisement channels (37, 38 and 39) and there is not any reason to frustrate for scanner side.

    Anyway, today i set a GSM telemetry logger device with bluegiga scanner, tommorrow i will notice you about results. my best regards. Samet.

  • hi martin,

    i have tested the firmware about 4 days. it seems it is ok. thanks .

Related