<?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 write to a custom 128 UUID service using pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27280/how-to-write-to-a-custom-128-uuid-service-using-pc-ble-driver-py</link><description>I am using pc-ble-driver-py to configure an nRF52832 demo board as a BLE central device. I currently have the heart_rate_collector.py example working. However, what I would like to do now is scan for all BLE peripheral devices, collect to one arbitrarily</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Nov 2017 10:42:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27280/how-to-write-to-a-custom-128-uuid-service-using-pc-ble-driver-py" /><item><title>RE: How to write to a custom 128 UUID service using pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/thread/107732?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 10:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba4dc7d-d874-478c-8547-dbd69d03b3e0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you look in the documentation of the Nordic UART service, you can see that the service have the 15-bit offset UUID 0x0001, RX characteristic have 16-bit offset UUID 0x0002, and TX charactertistic have 16-bit offset UUID of 0x0003. Both the service and the two charactertistics use the same base UUID of &lt;code&gt;6E400000-B5A3-F393-E0A9-E50E24DCCA9E&lt;/code&gt;. You should define your charactertistics in the same way, first define the base UUID, and then define the charactertistics UUIDs using this base UUID:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BASE_UUID          = BLEUUIDBase([0x00, 0x11, 0x00, 0x00, 0x22, 0x33, 0x44, 0x55, 
                                  0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD]);
SERIALWRITE_UUID   = BLEUUID(0x20D0, BASE_UUID);
SERIALNOTIFY_UUID  = BLEUUID(0x818B, BASE_UUID);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write to a custom 128 UUID service using pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/thread/107731?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 16:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d341c29c-7754-4e3d-9ed9-d433bdfa1674</guid><dc:creator>mr_jj</dc:creator><description>&lt;p&gt;In my custom service, I have a base uuid and a write and notify characteristic. The write characteristic is:
add_serialwrite_params.uuid                = 0x20D0;
And the notify characterisic is:
add_serialnotify_params.uuid                = 0x818B;&lt;/p&gt;
&lt;p&gt;How should the UUID for these custom characteristics be created?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write to a custom 128 UUID service using pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/thread/107730?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 16:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:297bde36-f2a9-43ab-b802-cf4d584e8a79</guid><dc:creator>mr_jj</dc:creator><description>&lt;p&gt;I am a bit confused as to what the purpose of this line is: NUS_TX_UUID = BLEUUID(0x0003, BASE_UUID)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write to a custom 128 UUID service using pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/thread/107729?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 15:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c27115aa-b0a4-48ab-b44b-2efc53618cb2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not tested with any recent versions of pc-ble-driver-py, but could you check if &lt;a href="https://devzone.nordicsemi.com/question/96450/nrf-dongle-as-uart-client-python/?answer=96453#post-id-96453"&gt;this solution&lt;/a&gt; is working for you?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>