<?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>pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18930/pc-ble-driver-connection-problem</link><description>Hello, I am developing with pc-ble-driver using python. I noticed that the Bluetooth connection becomes disconnected when I alt tab out of the gui I made. Is there a solution for this and why is this happening. When this happens nothing appears on the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Jan 2017 09:42:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18930/pc-ble-driver-connection-problem" /><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73161?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 09:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae8d93d0-d22c-462e-92c0-26e4fee02acc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The connectivity firmware for S132 v3.0.0 is available in SDK 12.1.0 and SDK 12.2.0, in &lt;code&gt;[SDK_ROOT]\examples\ble_central_and_peripheral\ble_connectivity\pca10040\ser_s132_hci&lt;/code&gt;. Note that you have to patch your SDK using the patch and method &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver#compiling-the-connectivity-hex-files"&gt;described here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73164?ContentTypeID=1</link><pubDate>Sun, 29 Jan 2017 23:37:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe68892f-35f4-4162-a738-c593782cc7df</guid><dc:creator>Jong yoon lee</dc:creator><description>&lt;p&gt;Hello,
How do I compile one for 1M.
Is there a repository I can download and change these parameters?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73163?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 08:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:583c1935-67fb-4275-b54a-1c1850c0c17a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, it is 115K.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73162?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 18:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f24574e-fe4e-42af-9453-d87e7e84975a</guid><dc:creator>Jong yoon lee</dc:creator><description>&lt;p&gt;Thank you so much for your support.What is the communication speed of the firmware you posted. Is it 115K?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73160?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 10:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ec037f7-eb39-471c-8d2a-2084738da9b1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which version of pc-ble-driver-py do you use? Error code 0x04 means &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v0.9.0/group__nrf__error.html#ga7ef4d466b79b31c6325f8b7af5d4f75f"&gt;NRF_ERROR_NO_MEM&lt;/a&gt;, so I think the problem with more than 5 connections is due to not enough RAM available for the softdevice in the precompiled connectivity hex-file. I compiled the &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/connectivity_5F00_pca10040_5F00_s132_5F00_3.0.0.hex"&gt;connectivity firmware&lt;/a&gt; for PCA10040 with increased RAM space for softdevice and tested with pc-ble-driver-py v0.8.0 (can be installed using &lt;code&gt;pip install pc-ble-driver-py==0.8.0&lt;/code&gt;) and this works with CONNECTIONS set to 8.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73159?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 16:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:292c8533-a6e0-4be9-b0e3-33a9b3243393</guid><dc:creator>Jong yoon lee</dc:creator><description>&lt;p&gt;Today I will do the same test with the sampling rate high( maybe 100 HZ) and let you know of the result.
Thank you
update: I did the test for 100Hz and I did not have any connection issue. I will test with the  1M hex for the next test. I still get the random problem stated above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73158?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 16:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b86ebe2-a8ee-4289-9199-817aef80a2b6</guid><dc:creator>Jong yoon lee</dc:creator><description>&lt;p&gt;Also, When the central device is advertising and trying to connect with the perperial device, it would give me these errors sometime. What does these error mean and what do I need to do to fix them&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;New connection: 0
Disconnected: 0 BLEHci.conn_failed_to_be_established
Traceback (most recent call last):
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 187, in &amp;lt;module&amp;gt;
    main(serial_port)
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 151, in main
    conn_handle = collector.connect_and_discover()
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 90, in connect_and_discover
    att_mtu = self.adapter.att_mtu_exchange(new_conn)
  File &amp;quot;C:\Python27\lib\site-packages\pc_ble_driver_py\ble_adapter.py&amp;quot;, line 166, in att_mtu_exchange
    return self.db_conns[conn_handle].att_mtu
KeyError: 0L


-------------------------------------------------------------------------------------------------------------

Connection: 1, 0x2A37 (Standard.heart_rate) = [22L, 220L, 121L, 1L, 120L, 1L, 119L, 1L, 118L, 1L, 117L, 1L, 116L, 1L]
Received advertisment report, address: 0xDC6CA5B384C1, device_name: Nordic_HRM
Connection: 0, 0x2A37 (Standard.heart_rate) = [21L, 14L, 1L, 175L, 1L, 174L, 1L, 173L, 1L, 172L, 1L, 171L, 1L, 170L, 1L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [5L, 24L, 1L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [5L, 34L, 1L]
Connection: 1, 0x2A37 (Standard.heart_rate) = [6L, 230L]
Connection: 1, 0x2A37 (Standard.heart_rate) = [6L, 240L]
Connection: 1, 0x2A37 (Standard.heart_rate) = [22L, 250L, 115L, 1L, 114L, 1L, 113L, 1L, 112L, 1L, 111L, 1L, 110L, 1L]
Connection: 1, 0x2A37 (Standard.heart_rate) = [7L, 4L, 1L]
Connection: 0, 0x2A19 (Standard.battery_level) = [88L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [21L, 44L, 1L, 169L, 1L, 168L, 1L, 167L, 1L, 166L, 1L, 165L, 1L, 164L, 1L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [5L, 34L, 1L]
New connection: 2
Connection: 1, 0x2A37 (Standard.heart_rate) = [7L, 14L, 1L]
Connection: 1, 0x2A37 (Standard.heart_rate) = [23L, 24L, 1L, 109L, 1L, 108L, 1L, 107L, 1L, 106L, 1L, 105L, 1L, 104L, 1L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [5L, 24L, 1L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [21L, 14L, 1L, 163L, 1L, 162L, 1L, 161L, 1L, 160L, 1L, 159L, 1L, 158L, 1L]
Connection: 1, 0x2A37 (Standard.heart_rate) = [7L, 34L, 1L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [5L, 4L, 1L]
Disconnected: 2 BLEHci.conn_failed_to_be_established
Connection: 1, 0x2A37 (Standard.heart_rate) = [7L, 44L, 1L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [4L, 250L]
Connection: 1, 0x2A37 (Standard.heart_rate) = [23L, 34L, 1L, 103L, 1L, 102L, 1L, 101L, 1L, 100L, 1L, 99L, 1L, 98L, 1L]
Connection: 0, 0x2A37 (Standard.heart_rate) = [20L, 240L, 157L, 1L, 156L, 1L, 155L, 1L, 154L, 1L, 153L, 1L, 152L, 1L]

Traceback (most recent call last):
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 189, in &amp;lt;module&amp;gt;
    main(serial_port)
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 151, in main
    conn_handle = collector.connect_and_discover()
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 90, in connect_and_discover
    att_mtu = self.adapter.att_mtu_exchange(new_conn)
  File &amp;quot;C:\Python27\lib\site-packages\pc_ble_driver_py\ble_adapter.py&amp;quot;, line 166, in att_mtu_exchange
    return self.db_conns[conn_handle].att_mtu
KeyError: 2L
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73157?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 15:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d350101c-4624-4f6c-beb3-11699369ee88</guid><dc:creator>Jong yoon lee</dc:creator><description>&lt;p&gt;Hello,
I did some test with the examples given(heart_rate_collector.py) as you suggested.
I changed the CONNECTIONS to 5 and ran it over night with a youtube video on. There wasn&amp;#39;t any connection problems at all
Hoverever I found some bugs? that happened with the example.First, my application needs to have 8 ble connected concurrently but the example given only always up to 5 connections and if I try any number higher than 5, it would give this error&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;C:\Python27\Lib\site-packages\pc_ble_driver_py\examples&amp;gt;python heart_rate_collector.py NRF52
        0 : COM3: 682160565

Enter your choice: 0
Serial port used: COM3
Enabling larger ATT MTUs
Traceback (most recent call last):
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 189, in &amp;lt;module&amp;gt;
    main(serial_port)
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 149, in main
    collector.open()
  File &amp;quot;heart_rate_collector.py&amp;quot;, line 78, in open
    self.adapter.driver.ble_enable(ble_enable_params)
  File &amp;quot;C:\Python27\lib\site-packages\wrapt\wrappers.py&amp;quot;, line 561, in __call__
    args, kwargs)
  File &amp;quot;C:\Python27\lib\site-packages\pc_ble_driver_py\ble_driver.py&amp;quot;, line 126, in wrapper
    raise NordicSemiException(&amp;#39;Failed to {}. Error code: {}&amp;#39;.format(wrapped.__name__, err_code))
pc_ble_driver_py.exceptions.NordicSemiException: Failed to ble_enable. Error code: 4
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73156?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 12:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:499f76a1-efd2-4dad-8023-f2ca2bd5e879</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you using the nRF52 DK with the pc-ble-driver or another board? Have you tried doing some debugging to see where in your program the error occurs? Can you try &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py/blob/master/python/pc_ble_driver_py/examples/heart_rate_collector.py"&gt;the example provided with the pc-ble-driver-py&lt;/a&gt; to see if this has similar problems?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73154?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 09:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8324046-f4ae-412a-a703-44a08898fe22</guid><dc:creator>Jong yoon lee</dc:creator><description>&lt;p&gt;Thank you for looking into my problem.
I would say that something is wrong with my gui if I get this problem right away but this problem also happens for long runs. So I would get the same symptoms when I run the driver for a long time ( so i will get disconnected with all my connected peripheral ble devices ~40 minutes into running my program). Do you have any comments on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pc-ble-driver connection problem</title><link>https://devzone.nordicsemi.com/thread/73155?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 09:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9317e2e2-dc4e-48b7-9e3b-6421b8bdfbc4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It sounds like there is an issue with your GUI. Have you tried running the command line examples? The error code you get (12289 - 0x3001) is &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group__ble__err.html#ga521db6a097589b80939d76cb453fad3c"&gt;&lt;code&gt;BLE_ERROR_NOT_ENABLED&lt;/code&gt;&lt;/a&gt;, which means that &lt;em&gt;sd_ble_enable has not been called&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>