<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>timer event stops advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10626/timer-event-stops-advertising</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Dec 2015 10:30:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10626/timer-event-stops-advertising" /><item><title>RE: timer event stops advertising</title><link>https://devzone.nordicsemi.com/thread/39641?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2015 10:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49426289-2715-42bc-afd7-2962878106cd</guid><dc:creator>samet kocatepe</dc:creator><description>&lt;p&gt;hi martin,&lt;/p&gt;
&lt;p&gt;i have tested the firmware about 4 days. it seems it is ok.
thanks .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer event stops advertising</title><link>https://devzone.nordicsemi.com/thread/39640?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 12:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dc6c55b-b7a7-4eef-91b5-d2cd6875b271</guid><dc:creator>samet kocatepe</dc:creator><description>&lt;p&gt;Hi Martin, I was on a trip so sorry for late reply, and also thank you and all nordic team for being  helpful.&lt;/p&gt;
&lt;p&gt;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  --&amp;gt; 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.&lt;/p&gt;
&lt;p&gt;Anyway, today i set a GSM telemetry logger device  with bluegiga scanner, tommorrow i will notice you about results.
my best regards. Samet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer event stops advertising</title><link>https://devzone.nordicsemi.com/thread/39639?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2015 14:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b9f124-9a1f-4876-9266-0b97f55ee420</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think I have the answer to your question regarding the pauses in the advertising. The problem is not the timers, but the interval at which you are advertising. In your code you have the following line:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NON_CONNECTABLE_ADV_INTERVAL    MSEC_TO_UNITS(500, UNIT_0_625_MS)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;meaning, as I&amp;#39;m sure you know, that you are advertising every 500 ms. This is a relatively long interval and your scanners (your bluegiga and MCP) needs to take this into account if you want to capture every advertising packet. So I tried your code and I too saw what seemed to be a regular pause in the advertising using MCP, so I pulled out my sniffer from my drawer and was able to produce this graph:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/interval.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;As you can see, even though it might not seem so in MCP the device is actually advertising every 500 ms all the time. So the issue is actually on your scanner side. Have a look at this image:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Scan.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Your scan intervals are probably too long and your scan window lengths are too short and this makes it hard for you scanner to &amp;quot;hit&amp;quot; the advertising packets. That is why you see the pauses. You get these regular pauses because for a certain amount of time the scan windows overlap with the advertising interval, but over time the window will drift in time compared to the advertising packet until the windows are not hitting the advertising packets at all. Then a couple of seconds later the windows have drifted even further and overlap the advertising packets again. So I adjusted the scan window and interval to 510 ms and 511 ms respectively in MCP (hit &amp;quot;File -&amp;gt; Options -&amp;gt; Scanning&amp;quot;). This means that MCP scans for 510 ms, stops for 1 ms, scans for 510, and so on, making it very likely to hit every advertising packet. Now I could see the device advertising regularly all the time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer event stops advertising</title><link>https://devzone.nordicsemi.com/thread/39638?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 10:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6c00057-578c-4b61-915c-2343045c8026</guid><dc:creator>samet kocatepe</dc:creator><description>&lt;p&gt;in two ways, one is my bluegiga ble module (espesially for this beacon) , it scans  and reports to me via serial port and i log it using &lt;a href="https://sites.google.com/site/terminalbpp/"&gt;terminal.exe&lt;/a&gt; .Terminal.exe is a com port listener and  shows  time and also can log. another way is nrf master control panel android app.
when beacon stops advertising, bluegiga modul and nRF MCP app  can not find any devices simutanously. and after some times it continues to advertsing .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer event stops advertising</title><link>https://devzone.nordicsemi.com/thread/39637?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 09:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b9daea-468b-4b43-a869-fb32953ba642</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi, I thought I should let you know that I&amp;#39;m still looking into this. May I ask what methods you use to observe that the softdevice stops advertising?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer event stops advertising</title><link>https://devzone.nordicsemi.com/thread/39636?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2015 10:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43cf8428-5f18-4b2f-a6f7-578dea866655</guid><dc:creator>samet kocatepe</dc:creator><description>&lt;p&gt;hi martin i updated my question and attached main.c file.
thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer event stops advertising</title><link>https://devzone.nordicsemi.com/thread/39635?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2015 13:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c780e80c-41c5-42af-840e-f5ea90024f67</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi, Can you please upload your main.c file? If you are not comfortable doing it here in public you can submit it on our &lt;a href="https://www.nordicsemi.com/eng/Support-Community"&gt;official support portal&lt;/a&gt; for confidentiality.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>