<?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 notify the advertising device by pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94745/how-to-notify-the-advertising-device-by-pc-ble-driver-py</link><description>Hi, 
 I try to advertise nrf52840 dongle on pc to build a connection with nrf5340 uart service. Although I try to modify the advertising program by advertising.py and heart_rate_collector.py, I still can&amp;#39;t succeed in notifying the uart handle. Here is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Dec 2022 00:39:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94745/how-to-notify-the-advertising-device-by-pc-ble-driver-py" /><item><title>RE: How to notify the advertising device by pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/401158?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 00:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f1bb2d-5230-4d44-9336-85fc475a0b64</guid><dc:creator>zhaoyuan</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply because I was sick.&lt;/p&gt;
&lt;p&gt;Yes, our nRF5340 adopts NUS sample. We want to receive the data from 5340 to pc and collect as well as plot the data&amp;nbsp;&lt;span&gt;synchronously at a speed of 300&amp;nbsp;kbps. Thus, we use nRF52840 and pc-ble-driver. Would you give us some advice on our plan?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your attention.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;zhaoyuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to notify the advertising device by pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/400913?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 15:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deff2352-54b8-4af1-99d2-aadab521833b</guid><dc:creator>Elfving</dc:creator><description>[quote user="zhaoyuan"]Have you met this problem?[/quote]
&lt;p&gt;No, I haven&amp;#39;t personally.&lt;/p&gt;
[quote user="zhaoyuan"] I am not very familiar with BLE.[/quote][quote user="zhaoyuan"] I would be grateful if you could give me some advice[/quote]
&lt;p&gt;In that case I would recommend you to rather work on something a bit newer and easier than pc-ble-driver.&amp;nbsp;The lack of documentation can make it really difficult to work with.&lt;/p&gt;
&lt;p&gt;What are you trying to achieve?&amp;nbsp;Maybe the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/bluetooth/shell_bt_nus/README.html"&gt;NUS sample&lt;/a&gt; has all the features you need?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to notify the advertising device by pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/400685?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 15:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e820f9a-28fc-4a07-af44-c55bd974f92f</guid><dc:creator>zhaoyuan</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;It really helps. Thank you for your kindly help! By the way, I try to notify the uart over ble handle but get nothing, which however works in scaning way. Have you met this problem? I am not very familiar with BLE. I would be grateful if you could give me some advice. Here is the logs.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;zhaoyuan&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2022-12-14 23:41:24,604 [4704/LogThread] Successfully opened COM16. Baud rate: 1000000. Flow control: none. Parity: none.
2022-12-14 23:41:24,604 [4704/LogThread] evt&amp;gt; severity(20) message(Successfully opened COM16. Baud rate: 1000000. Flow control: none. Parity: none.)
2022-12-14 23:41:24,605 [18004/StatusThread] RpcAppStatus.resetPerformed: Target Reset performed
2022-12-14 23:41:24,605 [18004/StatusThread] evt&amp;gt; status code(RpcAppStatus.resetPerformed) message(Target Reset performed)
2022-12-14 23:41:25,850 [18004/StatusThread] RpcAppStatus.connectionActive: Connection active
2022-12-14 23:41:25,850 [18004/StatusThread] evt&amp;gt; status code(RpcAppStatus.connectionActive) message(Connection active)
New connection: 3
2022-12-14 23:41:26,022 [19220/EventThread] Exception: MTU exchange reply failed. Common causes are: missing att_mtu setting in ble_cfg_set, different config tags used in ble_cfg_set and adv_start.
2022-12-14 23:41:26,023 [19220/EventThread] &amp;lt;FrameSummary file D:\zhaoyuan_data\dsp\brain_usb\pc-ble-driver-py-master\pc_ble_driver_py\ble_driver.py, line 3001 in ble_event_handler_sync&amp;gt;
2022-12-14 23:41:26,023 [19220/EventThread] &amp;lt;FrameSummary file D:\zhaoyuan_data\dsp\brain_usb\pc-ble-driver-py-master\pc_ble_driver_py\ble_adapter.py, line 800 in on_gatts_evt_exchange_mtu_request&amp;gt;
2022-12-14 23:41:26,023 [19220/EventThread] 
2022-12-14 23:41:26,024 [19220/EventThread] evt&amp;gt; on_gattc_evt_prim_srvc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Service uuid(0x1801) start handle(1) end handle(8)
 Service uuid(0x1800) start handle(9) end handle(13)
2022-12-14 23:41:26,037 [19220/EventThread] evt&amp;gt; on_gattc_evt_prim_srvc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Service uuid(0x0001) start handle(14) end handle(19)
2022-12-14 23:41:26,051 [19220/EventThread] evt&amp;gt; on_gattc_evt_prim_srvc_disc_rsp status(BLEGattStatusCode.attribute_not_found) conn(3)
 
2022-12-14 23:41:26,066 [19220/EventThread] evt&amp;gt; on_gattc_evt_char_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Characteristic uuid(0x2A05) properties(BLECharProperties(broadcast=0, read=0, write_wo_resp=0, write=0, notify=0, indicate=1, auth_signed_wr=0)) declaration handle(2) value handle(3)
 Characteristic uuid(0x2B29) properties(BLECharProperties(broadcast=0, read=1, write_wo_resp=0, write=1, notify=0, indicate=0, auth_signed_wr=0)) declaration handle(5) value handle(6)
2022-12-14 23:41:26,127 [19220/EventThread] evt&amp;gt; on_gattc_evt_char_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Characteristic uuid(0x2B2A) properties(BLECharProperties(broadcast=0, read=1, write_wo_resp=0, write=0, notify=0, indicate=0, auth_signed_wr=0)) declaration handle(7) value handle(8)
2022-12-14 23:41:26,142 [19220/EventThread] evt&amp;gt; on_gattc_evt_char_disc_rsp status(BLEGattStatusCode.attribute_not_found) conn(3)
 
2022-12-14 23:41:26,156 [19220/EventThread] evt&amp;gt; on_gattc_evt_desc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Descriptor uuid(0x2A05) handle(3)
 Descriptor uuid(0x2902 (Standard.cccd)) handle(4)
2022-12-14 23:41:26,217 [19220/EventThread] evt&amp;gt; on_gattc_evt_desc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Descriptor uuid(0x2B29) handle(6)
2022-12-14 23:41:26,277 [19220/EventThread] evt&amp;gt; on_gattc_evt_desc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Descriptor uuid(0x2B2A) handle(8)
2022-12-14 23:41:26,292 [19220/EventThread] evt&amp;gt; on_gattc_evt_char_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Characteristic uuid(0x2A00) properties(BLECharProperties(broadcast=0, read=1, write_wo_resp=0, write=0, notify=0, indicate=0, auth_signed_wr=0)) declaration handle(10) value handle(11)
 Characteristic uuid(0x2A01) properties(BLECharProperties(broadcast=0, read=1, write_wo_resp=0, write=0, notify=0, indicate=0, auth_signed_wr=0)) declaration handle(12) value handle(13)
2022-12-14 23:41:26,306 [19220/EventThread] evt&amp;gt; on_gattc_evt_char_disc_rsp status(BLEGattStatusCode.attribute_not_found) conn(3)
 
2022-12-14 23:41:26,367 [19220/EventThread] evt&amp;gt; on_gattc_evt_desc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Descriptor uuid(0x2A00) handle(11)
2022-12-14 23:41:26,427 [19220/EventThread] evt&amp;gt; on_gattc_evt_desc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Descriptor uuid(0x2A01) handle(13)
2022-12-14 23:41:26,441 [19220/EventThread] evt&amp;gt; on_gattc_evt_char_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Characteristic uuid(0x0003) properties(BLECharProperties(broadcast=0, read=0, write_wo_resp=0, write=0, notify=1, indicate=0, auth_signed_wr=0)) declaration handle(15) value handle(16)
2022-12-14 23:41:26,456 [19220/EventThread] evt&amp;gt; on_gattc_evt_char_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Characteristic uuid(0x0002) properties(BLECharProperties(broadcast=0, read=0, write_wo_resp=1, write=1, notify=0, indicate=0, auth_signed_wr=0)) declaration handle(18) value handle(19)
2022-12-14 23:41:26,516 [19220/EventThread] evt&amp;gt; on_gattc_evt_char_disc_rsp status(BLEGattStatusCode.attribute_not_found) conn(3)
 
2022-12-14 23:41:26,576 [19220/EventThread] evt&amp;gt; on_gattc_evt_desc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Descriptor uuid(0x0003) handle(16)
2022-12-14 23:41:26,591 [19220/EventThread] evt&amp;gt; on_gattc_evt_desc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Descriptor uuid(0x2902 (Standard.cccd)) handle(17)
2022-12-14 23:41:26,606 [19220/EventThread] evt&amp;gt; on_gattc_evt_desc_disc_rsp status(BLEGattStatusCode.success) conn(3)
 Descriptor uuid(0x0002) handle(19)
2022-12-14 23:41:26,666 [19220/EventThread] evt&amp;gt; on_gattc_evt_write_rsp conn(3)
 status(BLEGattStatusCode.success)
 error_handle(0)
 attr_handle(17)
 write_op(BLEGattWriteOperation.write_req)
 offset(0)
 data([])
2022-12-14 23:41:36,675 [4704/LogThread] serial port COM16 closed.
2022-12-14 23:41:36,675 [4704/LogThread] evt&amp;gt; severity(20) message(serial port COM16 closed.)
2022-12-14 23:41:36,675 [16984/MainThread] close result 0
2022-12-14 23:41:36,675 [16984/MainThread] Stopping workers
2022-12-14 23:41:37,681 [16984/MainThread] Workers stopped

Process finished with exit code 0
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to notify the advertising device by pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/400677?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 15:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8abba526-15d5-49c6-ba30-a547a4ef5725</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Z&lt;span&gt;haoyuan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am not&amp;nbsp;seeing any &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py/blob/cc3a9d259b9363524823aa4a48dbe6991eca6bd7/pc_ble_driver_py/examples/heart_rate_collector.py#L116"&gt;service discovery&lt;/a&gt; in your code. Maybe that is why its not getting any CCCDs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to notify the advertising device by pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/400281?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 06:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f080f0b-33c8-4d31-aa9a-c9e52aa99c7d</guid><dc:creator>zhaoyuan</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Thank you for your&amp;nbsp;attention. I am still struggling with this problem and try to solve it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;zhaoyuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to notify the advertising device by pc-ble-driver-py?</title><link>https://devzone.nordicsemi.com/thread/400190?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 14:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:857080d8-9901-4d97-b63c-5fb4ea41d2a5</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Just letting you know that I am looking into it, but I will have to get back to you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>