<?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>How to switch UUID at Android apps</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11519/how-to-switch-uuid-at-android-apps</link><description>Hi 
 I now is developing Android apps on the basis of NRF UART v2.0.
My s110 NRF51 device will switch two modes for differnet 128-bit UUID. These two modes have independent service and TX/RX characteristcis.Except UUID base, the operation of these two</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Jan 2016 08:26:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11519/how-to-switch-uuid-at-android-apps" /><item><title>RE: How to switch UUID at Android apps</title><link>https://devzone.nordicsemi.com/thread/43550?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 08:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d75396af-57db-40e1-b582-9b1e8f176aeb</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Could you check the return value of &lt;code&gt;sd_ble_gatts_service_changed()&lt;/code&gt; ? Also verify that you&amp;#39;re getting the &lt;code&gt;BLE_GATTS_EVT_SC_CONFIRM&lt;/code&gt; event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to switch UUID at Android apps</title><link>https://devzone.nordicsemi.com/thread/43549?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 04:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:decd80ce-2f8b-49a5-85e1-5062ea756c7a</guid><dc:creator>Jeffery</dc:creator><description>&lt;p&gt;Dear Bjørn&lt;/p&gt;
&lt;p&gt;At my firmware code,
1.#define IS_SRVC_CHANGED_CHARACT_PRESENT 1
2. Add sd_ble_gatts_service_changed() at CONNECTED event of on_ble_evt() as below&lt;/p&gt;
&lt;p&gt;However, it still cannot change servicesat apps side.
I traced source code of  sdk8.1.0 \ble_app_hrs\pca10028\s130_with_dfu. It seems I shall set CCCD of service changed in advance. Could you tell me how to set the CCCD? Thanks.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;switch (p_ble_evt-&amp;gt;header.evt_id)
{
    case BLE_GAP_EVT_CONNECTED:  
					//Connected by upstream central. Scan start to find neighbor peripherals			
						m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;	
			
						sd_ble_gatts_service_changed(m_conn_handle, 0x0001, 0xFFFF);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to switch UUID at Android apps</title><link>https://devzone.nordicsemi.com/thread/43548?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 10:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc65a3c-5839-45ef-b92a-7c0bb91e2555</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I assume you are resetting your device and changing the services in the Attribute Table when changing modes.&lt;/p&gt;
&lt;p&gt;Allthough you are switching between two modes, the Bluetooth address remains the same and the Android phone will therefore treat it as the same device with the same services and characteritics as before and not perform a new Service Discovery unless the peripheral indicates that its services has changed.&lt;/p&gt;
&lt;p&gt;You can do this by calling &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html#ga2c8c90d73fa27ba6691ad82b4a960adc"&gt;sd_ble_gatts_service_changed()&lt;/a&gt; after connecting to indicate that the Attribute table has changed and that the peer should perform a Service Discovery.&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>