<?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>Can I use the ancs_Tx_buffer if I merge AMS service into the project?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44957/can-i-use-the-ancs_tx_buffer-if-i-merge-ams-service-into-the-project</link><description>Now I want to add apple media service, but the ram left for me is a bit small. My project is based on the nordic ancs example , and the ams and ancs is almost the same. So could I use the same tx_buffer for both ams and ancs at the same time?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Mar 2019 13:07:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44957/can-i-use-the-ancs_tx_buffer-if-i-merge-ams-service-into-the-project" /><item><title>RE: Can I use the ancs_Tx_buffer if I merge AMS service into the project?</title><link>https://devzone.nordicsemi.com/thread/177017?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 13:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23032749-026d-4c68-94af-976494fd21e8</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;I have not tested this. But I did take a look at the code yesterday, and I do agree this should work as the services are distinguished by their handle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use the ancs_Tx_buffer if I merge AMS service into the project?</title><link>https://devzone.nordicsemi.com/thread/176838?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 02:33:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21b0a8e8-0a9d-4cad-b336-89ee5eac6bda</guid><dc:creator>cgha</dc:creator><description>&lt;p&gt;I think the ancs &amp;amp; ams read&amp;nbsp;or write is&amp;nbsp;distinguished by their handle, so it can be mixed. Right?&lt;/p&gt;
&lt;p&gt;For example, array[0] = ancs write, array[1] = ams write, then call tx_process, these two write will txed without problem since the ancs write handle and ams write handle is different.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use the ancs_Tx_buffer if I merge AMS service into the project?</title><link>https://devzone.nordicsemi.com/thread/176645?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 09:53:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b732a78-dc19-4466-bc2c-3485ec28f912</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Not sure what you mean when you say you want to use it at the same time for both service. You could most likely use the buffer for both ANCS and AMS, but you cannot place a write for AMS in the middle of a queued write for ANCS. So you need to be careful that you are able to handle both contexts in your application. You might want to considered using a larger chip with more space for code and ram?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>