<?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 read advertising/service data from Smartphone?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4411/how-to-read-advertising-service-data-from-smartphone</link><description>Hi everyone,
after i made fast progress with my last &amp;quot;problem&amp;quot; ( devzone.nordicsemi.com/.../) , my Arduino and nRF8001 is working without an error. 
 Within my sketch, i use &amp;#39;lib_aci_open_adv_pipe&amp;#39; on an broadcasting-pipe (pipe 1) and then &amp;#39;lib_aci_set_local_data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Nov 2014 06:42:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4411/how-to-read-advertising-service-data-from-smartphone" /><item><title>RE: How to read advertising/service data from Smartphone?</title><link>https://devzone.nordicsemi.com/thread/15666?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2014 06:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62321f31-481a-42eb-9c5d-394452aa1285</guid><dc:creator>DennisEB</dc:creator><description>&lt;p&gt;Hi Star Destroyer,
yes, you are right, i can see now &amp;quot;some&amp;quot; data in nRF Master Control Panel. I can see this types:
0x01
0x03
0x09
0x16&lt;/p&gt;
&lt;p&gt;In type 0x16 the Value is &amp;quot;0x400009&amp;quot;. In my sketch, there is this part:&lt;/p&gt;
&lt;p&gt;uint8_t test1 = 9;
lib_aci_set_local_data(&amp;amp;aci_state, 2, &amp;amp;test1, sizeof(test1));&lt;/p&gt;
&lt;p&gt;So i can see this &amp;quot;9&amp;quot; in nRF Master Control as Service Data. But my new problem is, uint8 maximum value is &amp;quot;255&amp;quot;. Change to uint16 doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;I think its not possible to send a String like &amp;quot;4829.7450,N,00908.1385,E&amp;quot; (thats the String i want to send as Service Data, two coordinates from GPS Shield).&lt;/p&gt;
&lt;p&gt;If this is not possible, the BLE-Stuff is useless for me :(&lt;/p&gt;
&lt;p&gt;And i still have the question to WHAT i have to listen for to get my service data displayed, if i write my own android app with Eclipse or Android Studio.&lt;/p&gt;
&lt;p&gt;EDIT: An important question: How often can i update service data in sketch?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read advertising/service data from Smartphone?</title><link>https://devzone.nordicsemi.com/thread/15665?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2014 14:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7220e8e-8daa-4d86-b0e0-cffacf332271</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;You can use the master control panel for Android and verify that your BTLE board is actually advertising. You should be able to see the advertising with Service Data.
The format for the Service Data is&lt;/p&gt;
&lt;p&gt;&amp;lt;Length(1 byte)&amp;gt; &amp;lt;AD type(1 byte) = 0x016&amp;gt; &lt;/p&gt;
&lt;p&gt;You will also see the flags AD type i,e   &amp;lt; AD data&amp;gt;, then you may see the AD types for Name (shortened or complete) and other AD types for Services.&lt;/p&gt;
&lt;p&gt;Open the XML file that you are using in the nRFgo studio -&amp;gt; nRF8001 Configuration -&amp;gt; GAP Settings
Look the the &amp;quot;Select fields to advertise&amp;quot; and &amp;quot;Resulting Advertising Packet&amp;quot; , to see what is actually getting advertised.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>