<?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 128bits to 16bits convert problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7345/16bits-to-128bits-to-16bits-convert-problem</link><description>When discovering services using nrf51-ble-driver_win_0.4.1 driver, some ID are received with type BLE_UUID_TYPE_UNKNOWN. So I assume they are 128bits. I then retrieve the 128bits value (using sd_ble_gattc_read) and then register it using sd_ble_uuid_vs_add</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jul 2015 14:04:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7345/16bits-to-128bits-to-16bits-convert-problem" /><item><title>RE: 16bits to 128bits to 16bits convert problem</title><link>https://devzone.nordicsemi.com/thread/26015?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 14:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d34e7ce-07ed-4d10-abcc-3eb4e6fa9746</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;I posted a similar report here:
&lt;a href="https://devzone.nordicsemi.com/question/43421/16bits-to-12bits-uuid-conversion-problem-on-pc/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; (with easier to understand explanation).&lt;/p&gt;
&lt;p&gt;It was answered as being a bug in the driver by Hung Bui.&lt;/p&gt;
&lt;p&gt;Note that I also posted a workaround in the comment:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;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 sd_ble_uuid_encode...so I&amp;#39;m
not stuck with that anymore. But it
would be nice to have it be fixed for&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 128bits to 16bits convert problem</title><link>https://devzone.nordicsemi.com/thread/26014?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2015 12:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77853e54-13eb-429c-965f-b190522b317d</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Im&amp;#39; sorry but I could not make this ble_nus code work on PC...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 128bits to 16bits convert problem</title><link>https://devzone.nordicsemi.com/thread/26013?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 08:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:136c9ae9-4a70-43b4-9333-dc90aad7e2a7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@jpo38: Sorry for late response, my comment was missing. The BLE driver work in the way that it  use the serialization firmware running on the nRF51 to transfer the command from PC to the softdevice on nRF51. The result of a command should be the same either if the command is called from the chip or from the PC.  Maybe you can try to port the ble_app_uart to used with ble-driver-win for testing ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 128bits to 16bits convert problem</title><link>https://devzone.nordicsemi.com/thread/26012?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2015 12:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ca081d7-d1bb-4d2f-a8be-e5af72227f7e</guid><dc:creator>jpo38</dc:creator><description>&lt;p&gt;Maybe I&amp;#39;m missing something. But the ble_nus.c you&amp;#39;re pointing me to is firmware code rigth? I&amp;#39;m experiencing this issue in my software on PC, when trying to connect a remote device using 128bits UUIDs...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 16bits to 128bits to 16bits convert problem</title><link>https://devzone.nordicsemi.com/thread/26011?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2015 09:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a3bdefc-987d-4032-91c9-038a067d4649</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@jpo38: I did a quick test here but couldn&amp;#39;t reproduce your issue.
I added this line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	err_code= sd_ble_uuid_encode(&amp;amp;ble_uuid, &amp;amp;len, restored128.uuid128);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to line 256 in ble_nus.c (SDK v8.1) in the ble_app_uart example, where we also declare a 128 bit UUID base, and I got the len = 16 and the restored128.uuid128 has the 128 bit UUID array.&lt;/p&gt;
&lt;p&gt;Could you please make sure you have added the uuid successfully ? What was your uuid_type ?
Could you also try with the ble_nus.c ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>