<?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>BLE APP UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52831/ble-app-uart</link><description>Hello, 
 This example I got it working with nrf toolbox app, but I was wondering if this should work also with a win7 PC. https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/usbd_cdc_acm_example.html I got this window: 
 
 But it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Oct 2019 09:27:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52831/ble-app-uart" /><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/214315?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 09:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c76d8435-6b7f-4f3d-b574-2c5153c53e98</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Karelv,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just to reply to your previous comment on pc-ble-drive-py installation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have not used the python bindings of the&amp;nbsp;&lt;span&gt;pc-ble-driver, but conflicting python installations could be an issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As for the nRF52840 dongle support, I know that its lagging a bit behind the&amp;nbsp;pc-ble-driver thats written in C, which supports the nRF52840 dongle so if you&amp;#39;re not locked to python, then you could use that instead.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="karelv"]&lt;br /&gt;I wrote a little python script, it uses pygatt, which I believe does not work on windows...&lt;br /&gt;In linux it worked.&lt;br /&gt;Can you comment if this is the way to go?[/quote]
&lt;p&gt;Which Windows version are you using? Could be that there isnt proper support for BLE in your particular version or that pygatt has not been updated to support the windows driver. On linux I would guess that its using Bluez which usually works like a charm.&lt;/p&gt;
&lt;p&gt;I am not very experienced with pygatt so&amp;nbsp; might not be the right person to ask. I have a javascript library called noble and a c library called gattool on a Raspberry Pi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/214316?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 09:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4c6d973-1d15-4eac-9183-2e1031a2f3cf</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Karelv,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just to reply to your previous comment on pc-ble-drive-py installation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have not used the python bindings of the&amp;nbsp;&lt;span&gt;pc-ble-driver, but conflicting python installations could be an issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As for the nRF52840 dongle support, I know that its lagging a bit behind the&amp;nbsp;pc-ble-driver thats written in C, which supports the nRF52840 dongle so if you&amp;#39;re not locked to python, then you could use that instead.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="karelv"]&lt;br /&gt;I wrote a little python script, it uses pygatt, which I believe does not work on windows...&lt;br /&gt;In linux it worked.&lt;br /&gt;Can you comment if this is the way to go?[/quote]
&lt;p&gt;Which Windows version are you using? Could be that there isnt proper support for BLE in your particular version or that pygatt has not been updated to support the windows driver. On linux I would guess that its using Bluez which usually works like a charm.&lt;/p&gt;
&lt;p&gt;I am not very experienced with pygatt so&amp;nbsp; might not be the right person to ask. I have a javascript library called noble and a c library called gattool on a Raspberry Pi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/214241?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 23:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd37535a-9781-437f-bf0b-04d8500e753a</guid><dc:creator>karelv</dc:creator><description>&lt;p&gt;Hello Bjorn,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I wrote a little python script, it uses pygatt, which I believe does not work on windows...&lt;br /&gt;In linux it worked.&lt;br /&gt;Can you comment if this is the way to go?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Karel.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="python"&gt;#!/usr/bin/env python

import binascii
import pygatt

from time import sleep

YOUR_DEVICE_ADDRESS = &amp;quot;11:22:33:44:55:66&amp;quot;
# Many devices, e.g. Fitbit, use random addressing - this is required to connect.
ADDRESS_TYPE = pygatt.BLEAddressType.random

adapter = pygatt.GATTToolBackend()
adapter.start()
device = adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)

uuid_write = None
uuid_notify = None

print(&amp;quot;scanning {}:&amp;quot;.format(YOUR_DEVICE_ADDRESS))
for uuid in device.discover_characteristics().keys():
  if str(uuid) == &amp;quot;6e400002-b5a3-f393-e0a9-e50e24dcca9e&amp;quot;: # write PC to BLE-UART...
    device.char_write(uuid, bytearray([0x33, 0x33, 0x30]))
    uuid_write = uuid
    continue

  if str(uuid) == &amp;quot;6e400003-b5a3-f393-e0a9-e50e24dcca9e&amp;quot;: # notify PC from BLE-UART...
    uuid_notify = uuid
    continue

  print(&amp;quot;Read UUID %s: &amp;quot; % (uuid))
  print(&amp;quot;%s&amp;quot; % (binascii.hexlify(device.char_read(uuid))))

print(&amp;quot;notification mode..&amp;quot;)


def cb_ble_uart(handle, data):
  print(&amp;quot;cb_ble_uart&amp;quot;, data)


device.subscribe(uuid_notify, cb_ble_uart)

for i in range(10):
  device.char_write(uuid_write, bytearray([0x33, 0x33]))
  sleep(1)

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/214230?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 22:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bb92ec5-2524-4465-8d89-e52f86f7f3e9</guid><dc:creator>karelv</dc:creator><description>&lt;p&gt;Hello Bjorn,&lt;/p&gt;
&lt;p&gt;I installed this driver, but my python3 installation complains:&lt;br /&gt;&lt;em&gt;ModuleNotFoundError: No module named &amp;#39;Queue&amp;#39;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So installed using python2.7, it installs well, but it seems not to be able to import&amp;nbsp;&amp;nbsp;pc_ble_driver_py.&lt;/p&gt;
&lt;p&gt;(can be due to my &amp;quot;abandoned&amp;quot; python2 installation...)&lt;/p&gt;
&lt;p&gt;On top I found this issue:&amp;nbsp;&lt;br /&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py/issues/64#issuecomment-477932904"&gt;https://github.com/NordicSemiconductor/pc-ble-driver-py/issues/64#issuecomment-477932904&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So&amp;nbsp;probably it won&amp;#39;t work with my nrf52840 dongle anyways...&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Karel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/214055?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 08:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efe32e3f-1e5f-4071-9b09-a918294c19bf</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Karel,&lt;/p&gt;
&lt;p&gt;we do have the &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py"&gt;pc-ble-driver-py&lt;/a&gt;&amp;nbsp;which is a serialization library over serial port that provides Python bindings for our nrf-ble-driver library.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/214025?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 02:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50e813ea-1764-46cf-bf68-5e48ee125225</guid><dc:creator>karelv</dc:creator><description>&lt;p&gt;Hello Bjorn,&lt;/p&gt;
&lt;p&gt;Yes, understood!&lt;br /&gt;Any idea if I can interface this BLE-UART from this demo&amp;nbsp;from within a python program?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Karel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/213115?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 07:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42a9bf0c-915c-4c4e-a89c-2c0b70996c37</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The&amp;nbsp;&lt;a title="UART/Serial Port Emulation over BLE" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_nus_eval.html?cp=5_1_4_2_2_24"&gt;UART/Serial Port Emulation over BLE&lt;/a&gt;&amp;nbsp;example will not echo the sent data back to the Toolbox/nrf Connect/ NRf UART application, but it will send the data out on the UART of the nRF52. So if you send data from one of the smartphone apps then the sent message will be outputted on the UART of the nRF52 and vice versa, any data sent to the nRF52 over UART will be sent over BLE to the smartphone app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/213078?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 00:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ff39f39-0d9c-4049-87f1-48b554b282a0</guid><dc:creator>karelv</dc:creator><description>&lt;p&gt;Sorry, I was too quick; the example is a little more complex. It deals with 2 UARTs. Now I can receive info from nRF52 to toolbox app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/213076?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 23:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4d174ae-c715-4c4c-860e-6ff55744d93d</guid><dc:creator>karelv</dc:creator><description>&lt;p&gt;In fact the nRF Toolbox / UART only can sent something to the nRF52, it never replies.&lt;br /&gt;I added one line of code as I don&amp;#39;t know how the toolbox is sending a \r or \n, such that it ends with a 0, it also echo the received string. So sending &amp;quot;test0&amp;quot; should trigger the nRF52 to send &amp;quot;test0&amp;quot; back to the toolbox-app, but it doesn&amp;#39;t.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE APP UART</title><link>https://devzone.nordicsemi.com/thread/213075?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 23:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7aa4a19-177b-427d-8768-f6f8f8d9c671</guid><dc:creator>karelv</dc:creator><description>&lt;p&gt;Actually I am looking for a python way to interact with this BLE-UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>