<?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 get full uuids in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46845/how-to-get-full-uuids-in-pc-ble-driver-py</link><description>I&amp;#39;m using python code based on the heart_rate_collector.py example in pc-ble-driver-py to scan for devices and connect to a peripheral device. 
 
 This all works fine, except that when I try to enable notifications on a particular (known to exist) characteristic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 May 2019 15:03:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46845/how-to-get-full-uuids-in-pc-ble-driver-py" /><item><title>RE: How to get full uuids in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/186017?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 15:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d242a38-da5d-4750-b21b-12540e6d21a0</guid><dc:creator>KVAJOH</dc:creator><description>&lt;p&gt;I have sort of the same &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46526/adding-custom-service-uuid-in-pc_ble_driver_py/183442?focus=true"&gt;problem&lt;/a&gt;. Just got hit with the a Ctrl-C/Ctrl-V from this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/17720/read-characteristic-using-pc-ble-driver-py-bindings"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get full uuids in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/184980?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 16:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96067838-8d58-4c40-8d19-e76df34b848a</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;While ilw&amp;#39;s awesome answer enabled me to debug my issue, it does not actually answer the question of how to access the full discovered UUIDs (which would be very useful for debugging, and for other folks writing scanners).&amp;nbsp; So I&amp;#39;ll leave the question open until more people can pitch in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get full uuids in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/184979?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 16:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9e4f2ea-59c7-415f-87a9-9a1250e13af5</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;ilw, thank you! &amp;nbsp; I did try ble_vs_uuid_add() and that did work.&amp;nbsp; My BASE_UUID bytes were reversed though (probably why notification wasn&amp;#39;t working either), I had to reorder them and then it worked okay.&lt;/p&gt;
&lt;p&gt;For the Nordic guys:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Why is ble_vs_uuid_add necessary? Can&amp;#39;t the driver code work with all the UUIDs actually present/discovered, not just the ones it knows?&amp;nbsp; and&lt;/p&gt;
&lt;p&gt;2. How does pc-ble-driver-js do this?&amp;nbsp; Clearly the nRF Connect desktop app doesn&amp;#39;t have this limitation as it works fine with any UUIDs, and that runs on top of pc-ble-driver-js.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get full uuids in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/184967?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 15:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a87dfa-2c91-4ae8-9804-5a46a89a740c</guid><dc:creator>ilw</dc:creator><description>&lt;p&gt;you need to tell it the base vendor specific id before it will properly populate the characteristic/service uuids.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See the NUS collector example by &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen Holmefjord&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29848/how-to-use-pca10040-as-dongle-scanner"&gt;devzone.nordicsemi.com/.../how-to-use-pca10040-as-dongle-scanner&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the line:&lt;/p&gt;
&lt;p&gt;self.adapter.driver.ble_vs_uuid_add(BASE_UUID)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;is crucial...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then you can print out lots of info with:&lt;/p&gt;
&lt;p&gt;for s in self.adapter.db_conns[new_conn].services:&lt;br /&gt;&amp;nbsp; &amp;nbsp; print(str(s))&lt;br /&gt;&amp;nbsp; &amp;nbsp; for c in s.chars :&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(str(c))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get full uuids in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/184905?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 12:54:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40f178ab-2037-49ca-9b36-097e8acc63f9</guid><dc:creator>ilw</dc:creator><description>&lt;p&gt;Sorry i don&amp;#39;t have an answer, but I am coincidentally wondering exactly the same thing today.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit: made a mistake...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>