<?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>Custom 128 UUID and Service Data = unknown error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4007/custom-128-uuid-and-service-data-unknown-error</link><description>hi, 
 I have been reading some posts regarding similar issues, but I am not able to nail down this one.
I am trying to create a custom 128 UUID and associate some Service Data to this service. I would like to broadcast only (connection less). 
 I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Oct 2014 13:11:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4007/custom-128-uuid-and-service-data-unknown-error" /><item><title>RE: Custom 128 UUID and Service Data = unknown error</title><link>https://devzone.nordicsemi.com/thread/14400?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 13:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ebd67a6-c1ce-4b5f-8c31-76e7e3e39723</guid><dc:creator>zeusminos</dc:creator><description>&lt;p&gt;Thanks for your help Petter :-). You guys ROCK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 128 UUID and Service Data = unknown error</title><link>https://devzone.nordicsemi.com/thread/14399?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 12:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f57a21-16fb-42e3-8cae-6e28d0c36cf5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I experience the same thing. The advertisment packet becomes too big, by changing it you increase it from 30 to 33 bytes. I used the debugger and checked the &lt;code&gt;len_advdata&lt;/code&gt; in&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sd_ble_gap_adv_data_set(p_encoded_advdata, len_advdata, p_encoded_srdata, len_srdata);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If you have more questions, please ask them separately, and link to this one if it&amp;#39;s relevant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 128 UUID and Service Data = unknown error</title><link>https://devzone.nordicsemi.com/thread/14398?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 12:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7051c6d-fcb2-4902-8c7e-063211c71555</guid><dc:creator>zeusminos</dc:creator><description>&lt;p&gt;Peter,&lt;/p&gt;
&lt;p&gt;Seems like the root of my headaches was Luna. I switch to Kepler and the latest GNU ARM toolchanis + latest Jlink (firmware/software) and your code &lt;strong&gt;ble_app_template_128UUID.rar&lt;/strong&gt; seems to work. I can see the 128 UUID, but something kind of strange is that as soon as I switch from:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advdata.name_type               = BLE_ADVDATA_NO_NAME;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advdata.name_type               = BLE_ADVDATA_SHORT_NAME;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advdata.name_type               = BLE_ADVDATA_FULL_NAME;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The system does not broadcast anymore. I am using a 1 character string under device name&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define DEVICE_NAME                     &amp;quot;N&amp;quot;                          
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Any idea why?&lt;/p&gt;
&lt;p&gt;P.S I have not debug this issue yet.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;Cheers
Dan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 128 UUID and Service Data = unknown error</title><link>https://devzone.nordicsemi.com/thread/14397?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 11:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3799f754-ae64-4072-aa20-b19050cb94d7</guid><dc:creator>zeusminos</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;Well that narrows my search to: eclipse/jlink software/firmware.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll keep you posted with the latest news.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 128 UUID and Service Data = unknown error</title><link>https://devzone.nordicsemi.com/thread/14396?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 06:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a60fa52d-50d6-43b3-bf0a-b0a68d2b6181</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m using Keil, Windows 7, J-Link V4.86. But that doesn&amp;#39;t affect the hex file, try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 128 UUID and Service Data = unknown error</title><link>https://devzone.nordicsemi.com/thread/14395?ContentTypeID=1</link><pubDate>Thu, 09 Oct 2014 06:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0518eec-930a-4ed8-bfa5-4d43a98cfffb</guid><dc:creator>zeusminos</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;I am going to use Kepler 4.3 SR2 instead with the latest &lt;a href="https://launchpad.net/gcc-arm-embedded/+announcement/12983"&gt;&lt;strong&gt;&lt;em&gt;GNU toolchains&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Could you please let me know the versions that you have in your system:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Segger jlink (PC and firmware version)&lt;/li&gt;
&lt;li&gt;GNU ARM toolchain version&lt;/li&gt;
&lt;li&gt;Eclipse version&lt;/li&gt;
&lt;li&gt;OS version&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Are you using the &lt;a href="http://gnuarmeclipse.livius.net/blog/"&gt;&lt;strong&gt;&lt;em&gt;GNU ARM Eclipse plugin&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt; if yes what version?&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 128 UUID and Service Data = unknown error</title><link>https://devzone.nordicsemi.com/thread/14394?ContentTypeID=1</link><pubDate>Tue, 07 Oct 2014 13:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d6cce3f-3ed2-4ba5-a377-b3f6eff4b697</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I suspect your advertisement packet is simply too big. You should be able to find a more meaningful error code if you turn off Optimization (set it to Level 0) under C/C++ tab in Options for target.&lt;/p&gt;
&lt;p&gt;Is the device advertising (no error) if you set the name type to it &lt;code&gt;BLE_ADVDATA_NO_NAME&lt;/code&gt;? Obviously you can&amp;#39;t identify your device with the name anymore, use the address or your UUID instead.&lt;/p&gt;
&lt;p&gt;I tested this quickly with an example; you can find my dirty code below. I used SDK 6.1.0 and S110 7.0.0.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_128UUID.rar"&gt;ble_app_template_128UUID.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Edit: I have tested your hex files.&lt;/p&gt;
&lt;p&gt;ble_app_template_128UUID_s110_xxaa.hex works fine.&lt;/p&gt;
&lt;p&gt;ble_app_lbs_s110_xxaa.hex doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Are you sure &lt;code&gt;err_code = sd_ble_gap_ppcp_set(&amp;amp;gap_conn_params);&lt;/code&gt; gives an error? I find that very strange.&lt;/p&gt;
&lt;p&gt;Could you just do the following in nRFgo Studio:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Erase all&lt;/li&gt;
&lt;li&gt;Click the Program SoftDevice tab and select
s110_nrf51822_7.0.0_softdevice.hex&lt;/li&gt;
&lt;li&gt;Click the Program Application tab and select
ble_app_template_128UUID_s110_xxaa.hex&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>