<?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>Handling different offset in BaseUUID and pc_ble_driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36371/handling-different-offset-in-baseuuid-and-pc_ble_driver</link><description>Hi, 
 I&amp;#39;m trying to use the pc_ble_driver_py framework and an NRF51/52 dongle to connect to a BLE device. The BLE device in question has some custom defined services for operation and DFU (not a nordic device). 
 The custom services UUID offset works</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Jul 2018 23:05:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36371/handling-different-offset-in-baseuuid-and-pc_ble_driver" /><item><title>RE: Handling different offset in BaseUUID and pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/140463?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 23:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52e1ffcf-4bd1-432b-9778-61912c94c559</guid><dc:creator>gtorres</dc:creator><description>&lt;p&gt;I am going to expose the attr_handle through the python interface. I think that&amp;#39;s what is missing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks Terje.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling different offset in BaseUUID and pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/140462?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 22:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7de889e3-44bb-426a-b9b4-30804ad212f2</guid><dc:creator>gtorres</dc:creator><description>&lt;p&gt;Terje,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That worked, but it does not allow me to tell which characteristic is actually triggering a notification. I can subscribe to two different base UUIDs with the same offset (because bytes 12 and 13 are constant). The &amp;quot;on_notification&amp;quot; function gets called with a uuid parameter that is the same for both characteristics, even though they have different bases. When inspecting the uuid object passed, it looks like the base uuid is not populated (set to None).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Without a meaningful way to tell which characteristic is triggering a notification, its nearly impossible to piece together a message. Do you know if there is a way to tell them apart?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In my example, the UUID field is simply set with `e4bc` for both characteristics.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Gabe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling different offset in BaseUUID and pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/140450?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 17:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cd6da45-a761-49b6-bca8-5ae9245dfd07</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Then I think there should be a call somewhere to BLEEnableParams() where you set vs_uuid_count. See for instance the pc-ble-driver-py heart rate collector example, &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py/blob/master/python/pc_ble_driver_py/examples/heart_rate_collector.py"&gt;heart_rate_collector.py&lt;/a&gt;, lines 69 to 73. That should be the way to configure the SoftDevice in pc-ble-driver-py.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling different offset in BaseUUID and pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/140297?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 22:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:856b5914-41c9-4753-9e88-d2c7cf51d013</guid><dc:creator>gtorres</dc:creator><description>&lt;p&gt;Terje,&lt;/p&gt;
&lt;p&gt;Yes, I&amp;#39;m using&amp;nbsp;&lt;span&gt;pc-ble-driver-py&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling different offset in BaseUUID and pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/140289?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 19:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e996cb-afaa-43e4-8a9f-68c643d4b22c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you use the SoftDevice Handler from our SDK (which most SDK examples do) then it is &lt;code&gt;NRF_SDH_BLE_VS_UUID_COUNT&lt;/code&gt; in sdk_config.h.&lt;/p&gt;
&lt;p&gt;Edit: Whoops, sorry, didn&amp;#39;t realize the python comment. Are you using pc-ble-driver-py?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling different offset in BaseUUID and pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/140278?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 17:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e8d0f03-eac1-448d-ae72-ccca2ebe93a0</guid><dc:creator>gtorres</dc:creator><description>&lt;p&gt;Terje,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply. Can you point me in the&amp;nbsp;right direction as to where I can change the base uuid limit? I&amp;#39;m not sure if that is part of the softdevice that is flashed to the dongle or part of the shared library that the python bindings use.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Gabe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling different offset in BaseUUID and pc_ble_driver</title><link>https://devzone.nordicsemi.com/thread/140206?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 12:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a344cd8-2770-44a2-8ef8-b79cecbad57c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The system with base UUIDs that are combined with a 16 bit value to form a full 128 bit UUID are made specifically to use bytes 12 and 13 as the shorter 16 bit portion of the full 128 bit UUID. This is handled internally in the SoftDevice and cannot be changed.&lt;/p&gt;
&lt;p&gt;That means you must do as you describe and manually create a set of base UUIDs and 16 bit UUIDs in order to compose the actual 128 bit UUIDs that you need. And, as you wrote, accept the memory usage resulting from such an approach.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>