<?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 can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94164/how-can-i-notify-a-handle-defined-by-myself-in-pc-ble-driver-py</link><description>Hi, 
 I try to use nrf52840 dongle and pc-ble-driver-py to connect nrf5340 and get the data from it. The handle and uuid is obtained from nRF Connect for Desktop BLE and the data sent by nrf5340 also can be obtained by notifying the Nordic Uart Tx handle</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Nov 2022 08:51:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94164/how-can-i-notify-a-handle-defined-by-myself-in-pc-ble-driver-py" /><item><title>RE: How can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/397800?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 08:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c72459ef-95a4-47f5-8067-a7ae226fb99b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you have a look at e.g. the&amp;nbsp;heart_rate_collector example, you get the data in &amp;#39;data&amp;#39; in &lt;span class="pl-en"&gt;&lt;span class="pl-token" data-hydro-click-hmac="2160a0ddf2e908e2adfc566ebe720725fb2ae4c596fde7aeee760b30ddb00691"&gt;on_notification&lt;/span&gt;&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class="pl-s1"&gt;&lt;span class="pl-token" data-hydro-click-hmac="da9c78c1c24ad9d9ee063d85439cba2fd2773d89644fdb343df34feab59befde"&gt;self&lt;/span&gt;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span class="pl-s1"&gt;ble_adapter&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span class="pl-s1"&gt;&lt;span class="pl-token" data-hydro-click-hmac="49ecb390fe2a81306d41a7a38c0d02a8999bfefc888844304eed193c0e522146"&gt;conn_handle&lt;/span&gt;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span class="pl-s1"&gt;&lt;span class="pl-token" data-hydro-click-hmac="000e095cb9fc5ea3e8dafc727498eede0352f705582a26f8368de0473f194c75"&gt;uuid&lt;/span&gt;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;strong&gt;&lt;span class="pl-s1"&gt;&lt;span class="pl-token" data-hydro-click-hmac="bc020a53a0c24bc4f7420ad1b039ae9a8b32006c4faaf8138628111929e40ee6"&gt;data&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py/blob/master/pc_ble_driver_py/examples/heart_rate_collector.py#L162"&gt;https://github.com/NordicSemiconductor/pc-ble-driver-py/blob/master/pc_ble_driver_py/examples/heart_rate_collector.py#L162&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/397792?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 08:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10560851-9041-46c0-adde-d611660349a4</guid><dc:creator>zhaoyuan</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thank you for your helpful advice. I have another problem that I wonder to know where I can get the data notified from nrf5340. I can&amp;#39;t find the data in any variable provided by &lt;span&gt;enable_notification such as result. Currently it seems to get data and print it as log.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/397576?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 09:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd3a2273-8354-4fab-9b85-34e3b8651939</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have the function conn_param_update() you can use. Changing to 2MPY should help as well,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;phy_update(). And also&amp;nbsp; &lt;span&gt;&lt;span&gt;data_length_update() and&amp;nbsp;att_mtu_exchange()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/397521?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 02:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08ab9cf4-d21d-4282-bdc7-bec39a82a82e</guid><dc:creator>zhaoyuan</dc:creator><description>&lt;p&gt;Thank you for your reply. I find that&amp;nbsp;&lt;span&gt;connection interval&amp;nbsp;&lt;/span&gt;is defined in &lt;span&gt;ble_driver.py.&amp;nbsp;Can&lt;/span&gt;&amp;nbsp;the parameter such as&amp;nbsp;&lt;span&gt;connection interval be directly modified in ble_driver.py or any other api?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/397408?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 12:23:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83349ddb-780f-448a-b186-7bb21a410bdd</guid><dc:creator>Sigurd</dc:creator><description>[quote user="zhaoyuan"] I can get the data from enable_notification now.[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="zhaoyuan"]However, the speed is much lower than the speed by the desktop tool, which is 10kbps contrast to 100kbps.&amp;nbsp;[/quote]
&lt;p&gt;Could be a difference in connection interval, and if ATT MTU, DLE, etc is used or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/397304?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 05:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e084f7d-9371-414f-9c4b-161d965e487f</guid><dc:creator>zhaoyuan</dc:creator><description>&lt;p&gt;I find that I get a wrong uuid and handle. What I need is the uuid and handle of UART Tx but I took CCCD&amp;#39;s uuid and handle. I can get the data from enable_notification now. However, the speed is much lower than the speed by the desktop tool, which is 10kbps contrast to 100kbps.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And the function &amp;quot;&lt;span&gt;self&lt;/span&gt;.adapter.enable_notification&amp;quot; seems to get data and print it as log, but I want to store&amp;nbsp;the data in a variable&amp;nbsp;and process it in the future. I wonder if there is any other appropriate function or api in&amp;nbsp;&lt;span&gt;pc-ble-driver-py. Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/397301?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 04:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b91f451-701b-43ae-afd5-5680c952103c</guid><dc:creator>zhaoyuan</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;Thanks for your relpy.&lt;/p&gt;
&lt;p&gt;1) The pc-ble-driver-py I use is verision 0.17.0.&lt;/p&gt;
&lt;p&gt;2) Yes, I get handle in this way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I notify a handle defined by myself in pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/397199?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 14:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc516630-aa43-4b84-9da1-d16feacf8b58</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) What version of pc-ble-driver-py are you using?&lt;/p&gt;
&lt;p&gt;2) You hovered the mouse over the CCCD, and got the handle like this?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669212851595v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>