<?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>Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52237/permanent-scan-on-a-gateway</link><description>Hello, 
 I&amp;#39;m developing a gateway and i would like to use advertising packet on sensor side to transmit data but it suggests that my gateway will be in permanent scan. I know scanning is consuming a lot but can it be used in a permanent way. i will also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2019 10:59:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52237/permanent-scan-on-a-gateway" /><item><title>RE: Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/thread/210075?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 10:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3789effd-3f74-400b-abed-b65243ef6855</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;IF you don&amp;#39;t want a timeout, check the documentation to see if there is an option for &amp;#39;No timeout&amp;#39; ...&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4137._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/thread/210071?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 10:51:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb246c6-3cbc-45c5-afe7-7c947cd3324a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;It&amp;#39;s the only way to see advertising.&lt;/p&gt;
&lt;p&gt;But, in many cases, it may not matter if you miss some advertisements.&lt;/p&gt;
&lt;p&gt;Again, it all depends on the specific requirements of your particular application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/thread/210067?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 10:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe139e89-0857-4011-98a9-a379032c5c88</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;ok, thank you for the information. So i guess when i get a timeout and i need to restart the scan, there is a short period of time during which i can lose some advertising packets ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/thread/210066?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 10:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37d4ddd7-876f-436f-b164-6192a39a8bb7</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Indeed, the gateway will get the main power.&lt;/p&gt;
&lt;p&gt;At first sight, when i started using BLE with nordic, i thought that scanning was a short phase during which a connection will be established. But now, since i know that&amp;nbsp; data can be transmited with the advertising packets, i guess i need to set my gateway in permanent scan. i just wanted to know it was the good approach and if it was someting currently used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/thread/210060?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 09:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf7bc7e-92e0-4fee-a21a-9f2b368fbc73</guid><dc:creator>awneil</dc:creator><description>[quote userid="55583" url="~/f/nordic-q-a/52237/permanent-scan-on-a-gateway"]I know scanning is consuming a lot[/quote]
&lt;p&gt;Normally, a &amp;quot;gateway&amp;quot; would be expected to have mains power ?&lt;/p&gt;
&lt;p&gt;Clearly, if your device is not scanning, then it will not be seeing any advertising!&lt;/p&gt;
&lt;p&gt;Only you can say whether that&amp;#39;s a problem for your particular application!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/thread/210058?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 09:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a24623f-0973-4dad-a863-d8c880a351dd</guid><dc:creator>Jimmy@zone</dc:creator><description>&lt;p&gt;What I know it always times out if you do not reset the timeout time e.g reset the&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;permit_duration before it expires&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/thread/210053?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 09:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a0f9051-9403-4f40-bbc6-6b397627c43f</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;what do you mean by &amp;quot;reschedule it&amp;quot; ?&lt;/p&gt;
&lt;p&gt;I just want to know if permanent scan is a good approach when i want to use advertising packet to transmit data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Permanent scan on a gateway</title><link>https://devzone.nordicsemi.com/thread/210049?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 09:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdc11fa2-bdee-402f-990c-7b1a04e35249</guid><dc:creator>Jimmy@zone</dc:creator><description>&lt;p&gt;You can reschedule it&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
zb_void_t join_finished(zb_uint8_t param)
{
    UNUSED_PARAMETER(param);
    LOG(&amp;quot;Join finished\n&amp;quot;, NULL);
    // restart join, if you do this 10 sec before it ends it will renew the time.
}


// Start.....
    LOG(&amp;quot;Network permit_joining started %d\n&amp;quot;, cmd-&amp;gt;time);
    zb_nlme_permit_joining_request_t b;
    b.permit_duration = cmd-&amp;gt;time; // Setting this to 0x00 disables join. 0x01-0xFE is valid values and reprecents s. 0xFF is used for som special join....
    ZB_SET_BUF_PARAM(ZB_BUF_FROM_REF(param), b, zb_nlme_permit_joining_request_t);
    zb_err_code = ZB_SCHEDULE_CALLBACK(zb_nlme_permit_joining_request, param);
    ZB_ERROR_CHECK(zb_err_code);

    ZB_SCHEDULE_ALARM_CANCEL(join_finished, ZB_ALARM_ALL_CB);
    zb_err_code = ZB_SCHEDULE_ALARM(join_finished, 0, ZB_TIME_ONE_SECOND * b.permit_duration);
    ZB_ERROR_CHECK(zb_err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>