<?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>nRF52 DK + NUS (BLE UART) app + Python</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97167/nrf52-dk-nus-ble-uart-app-python</link><description>I&amp;#39;m running the NUS demo on my nRF52 DK board and I can connect and send/receive data using the nRF Toolbox app on Android. 
 Now I&amp;#39;d like to use Python from my (Windows 11) laptop. I installed the Python Bleak library and from Python and I can find the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Mar 2023 08:56:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97167/nrf52-dk-nus-ble-uart-app-python" /><item><title>RE: nRF52 DK + NUS (BLE UART) app + Python</title><link>https://devzone.nordicsemi.com/thread/412922?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 08:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcd53fc9-7ab9-476e-b547-25f76adb6f17</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bret,&amp;nbsp;&lt;br /&gt;All BLE server would support service discovery procedure. If you can use a phone and connect to the device and can get the services&amp;amp; characteristic that mean the service discovery has been performed.&amp;nbsp;&lt;br /&gt;I would suggest to use &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;nRF Sniffer&lt;/a&gt; to track what happen over the air.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK + NUS (BLE UART) app + Python</title><link>https://devzone.nordicsemi.com/thread/412865?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 02:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2596e0b7-022f-4078-8641-23704ff7f261</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;After I connect, I see the DK connect light turn on, so I know I&amp;#39;m connecting. But the Bleak Client services list is empty.&amp;nbsp;Is it possible that the NUS demo does not have services discovery enabled?&lt;br /&gt;I&amp;#39;ll try the same code with the HRS demo and see if any services are discovered.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DK + NUS (BLE UART) app + Python</title><link>https://devzone.nordicsemi.com/thread/412663?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 09:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd181e8b-ac28-4cdd-92a7-6587d4a93a14</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bret,&amp;nbsp;&lt;br /&gt;I&amp;#39;m not very familiar with the PythonBleak library but as with any BLE central, you would need to perform a service discover to be able to get the handle ID of the characteristic.&amp;nbsp;&lt;br /&gt;In other words you can not directly write to a characteristic with just the UUID. You need to discover the attribute table to get the handle ID of the characteristic that matches the UUID you are looking for.&amp;nbsp;&lt;br /&gt;Please double check if the UUID of the characteristic you are planning to write to match with what on the peripheral.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I would suggest to get familiar with the library by testing with some standard BLE service before you move to NUS, for example heart rate service.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>