<?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>16bits to 12bits UUID conversion problem on PC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7971/16bits-to-12bits-uuid-conversion-problem-on-pc</link><description>I&amp;#39;m working on a PC application (using nrf51-ble-driver_win_0.4.1 API) to connect a BLE device and discover BLE services. 
 Today, I&amp;#39;m tying to connect the Nordic dev kit programmed with &amp;quot;Nordic_UART&amp;quot; application (providing few services). 
 When discovering</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jul 2015 14:28:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7971/16bits-to-12bits-uuid-conversion-problem-on-pc" /><item><title>RE: 16bits to 12bits UUID conversion problem on PC</title><link>https://devzone.nordicsemi.com/thread/28564?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 14:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81f16204-eeed-4f5c-8b87-ebdcffee5948</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;It works! I can then remove my local map. Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 12bits UUID conversion problem on PC</title><link>https://devzone.nordicsemi.com/thread/28565?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 14:07:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253fb2e6-d614-4132-be01-245c05b5ae14</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;btw, an easy workaround that can avoid the assertion is to set the value of &amp;quot;len&amp;quot; to something &amp;gt;16 for example 17. Then it should be fine to call sd_ble_uuid_encode().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 12bits UUID conversion problem on PC</title><link>https://devzone.nordicsemi.com/thread/28566?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 14:04:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1185f0a-fbe1-4274-b8d1-d7115f68b3fd</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Great! Thanks for the quick investigation!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 12bits UUID conversion problem on PC</title><link>https://devzone.nordicsemi.com/thread/28563?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 14:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57818400-2962-4d78-be86-c13263017715</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@jpo38: I got the confirmation from the R&amp;amp;D team that it was a bug in the serialization library in the BLE driver. We did a wrong assertion and throw error code 12 because of that bug.&lt;/p&gt;
&lt;p&gt;This explained why I couldn&amp;#39;t reproduce it when I tried directly on the nRF51 chip.&lt;/p&gt;
&lt;p&gt;This only affects sd_ble_uuid_encode. So sd_ble_uuid_vs_add() works just fine.&lt;/p&gt;
&lt;p&gt;I have reported the bug in the system, and it will be fixed in the next release of the SDK and the BLE driver.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad that you already found the workaround. Thanks for reporting the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 12bits UUID conversion problem on PC</title><link>https://devzone.nordicsemi.com/thread/28561?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 13:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e222a25a-260e-4973-a3ce-2f587ac97a08</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Great, good to know you could duplicate this. Waiting for a fix, I simply saved the mapping between types and corresponding 128bits mask on my side and do the resolution myself instead of calling &lt;code&gt;sd_ble_uuid_encode&lt;/code&gt;...so I&amp;#39;m not stuck with that anymore. But it would be nice to have it be fixed for good on your side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 12bits UUID conversion problem on PC</title><link>https://devzone.nordicsemi.com/thread/28562?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 12:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f9535dd-cc80-4ecb-b242-d4f854f277c8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@jpo38: I tried with the BLE drive, and reproduced your issue. I am talking with the developer to find the root cause. It could be an issue with the serialization library we have.&lt;/p&gt;
&lt;p&gt;I will let you know when we figure out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>