<?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>enter critical section from radio dispatcher</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33689/enter-critical-section-from-radio-dispatcher</link><description>Hello, I am developing ble scanner in which I want to print data of adv reports over uart. Printing is executed in main and in on_ble_evt function I add items to circular buffer. But as I have many beacons I get too many interrupts and processor cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Apr 2018 14:15:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33689/enter-critical-section-from-radio-dispatcher" /><item><title>RE: enter critical section from radio dispatcher</title><link>https://devzone.nordicsemi.com/thread/129607?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 14:15:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63e6cf8f-9e88-4215-9511-3c565d7cb8a2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Michal&lt;/p&gt;
&lt;p&gt;It seems to me the bottle neck here is the speed of the UART,&amp;nbsp;so rather than blocking the SoftDevice I would recommend limiting the printing to a rate that the UART can handle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In other words you should skip printing some of the adv reports when you&amp;nbsp;reach a certain number of adv reports pr second.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to be clever about it you could write a system to detect repeated adv reports from the same advertiser, and avoid printing the same report over and over. Then you should be able to report a larger numbers of unique beacons before having to limit the print out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Blocking the SoftDevice itself will cause it to crash, so this I would not recommend.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>