<?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>ANCS minimum requirement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19939/ancs-minimum-requirement</link><description>Hi, 
 I&amp;#39;m working on integrating ANCS on our existing and futur products. I started to port the Nordic SDK example (12.x) and it seems to work fine on nRF52, which will be fine for our futur product line that will probably based on it. 
 But I also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Feb 2017 15:57:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19939/ancs-minimum-requirement" /><item><title>RE: ANCS minimum requirement</title><link>https://devzone.nordicsemi.com/thread/77603?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 15:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6172ab3b-320e-4042-84c5-0ae286d81cb8</guid><dc:creator>ThierryC</dc:creator><description>&lt;p&gt;OK, thanks for the hint. I&amp;#39;ll try to simplify the peer manager.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS minimum requirement</title><link>https://devzone.nordicsemi.com/thread/77602?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 15:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dbdb756-4f22-42e9-884f-2d5df2803dd8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I assume you also used MicroLIB so the 2kB of heap is not counted (you can remove 2kB heap manually also)
I don&amp;#39;t think it would be simpler to write your own discovery module as you focusing on just single ANCS service and know which handles exactly you want to discover and store.&lt;/p&gt;
&lt;p&gt;About the peer manager, maybe you can try to use device manager (removed from SDK v12) instead, it should use less RAM than peer manager. Or you can think of making your own module, simply store the bond information and get read it back when needed.&lt;/p&gt;
&lt;p&gt;How much RAM/flash still exceeded after all you&amp;#39;ve done ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS minimum requirement</title><link>https://devzone.nordicsemi.com/thread/77601?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 15:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a648d6e1-e4e1-497e-8be7-610d6064c1df</guid><dc:creator>ThierryC</dc:creator><description>&lt;p&gt;Yes, I adjusted the RAM needed for the SoftDevice to the minimum required for my setup. Still not enough.
I also skipped ble_advertising, since what needed was already done on my code.
And I also saw that db_discovery and peer manager / database were the most resource consuming, and probably where I&amp;#39;ll search to squeeze, as you suggest. But difficult to extract just the minimum required from it, that&amp;#39;s where I&amp;#39;m (as optimizing my code).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS minimum requirement</title><link>https://devzone.nordicsemi.com/thread/77600?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 15:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bf110b0-1beb-4df3-aa9e-9c6cfc61a0b0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Thierry,&lt;/p&gt;
&lt;p&gt;Have you reconfigured the RAM setting for softdevice to match with what you need (the number of central and peripheral connection) ? The actual RAM needed for single link peripheral is just 0x2078 not 0x3340 as in the default configuration.&lt;/p&gt;
&lt;p&gt;There are some other module that consume quite a lot of RAM such as db_discovery, peer manager/database , ble_advertising that you may be able to improve and squeeze some juice from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS minimum requirement</title><link>https://devzone.nordicsemi.com/thread/77604?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 13:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb018fd0-d2b7-4d23-bbff-4f5ece239e3e</guid><dc:creator>ThierryC</dc:creator><description>&lt;p&gt;We use the nRF51822 CE AA. So yes, only 16 kB of RAM (and cannot change now).
And yes, I used the PCA10028 example, ported on my product. I just stub some log and nrf functions, and use my own code for advertising. But it&amp;#39;s sill about 4 kB of RAM and ~25 kB of Flash. I can make it work if I cut important part of my code, but now I&amp;#39;m looking for space in general (RAM + FLASH).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANCS minimum requirement</title><link>https://devzone.nordicsemi.com/thread/77599?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 12:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1fcc8c0-e8c3-4496-9596-31f561b0f138</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Thierry,&lt;/p&gt;
&lt;p&gt;We do have the example in SDK v12.2 for nRF51 (inside PCA10028 folder). Could you simply use the example for nRF51 ?&lt;/p&gt;
&lt;p&gt;Which nRF51 chip variant you have on your product? You may have issue with the size of RAM since we made the example for the 32kB RAM variant.
If it doesn&amp;#39;t fit your chip, we will have to simplify the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>