<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Unable to connect to device with pc-ble-driver-py 0.16.3</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88808/unable-to-connect-to-device-with-pc-ble-driver-py-0-16-3</link><description>I&amp;#39;m running on Windows 10 and am trying to connect to my BMD-350 development board with an NRF52832. 
 I&amp;#39;ve also attempted to execute this with Python 3.9 and 3.8 (both installed via source, both 32-bit). 
 When attempting to run the heart_rate_collector</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 13 Jun 2022 14:26:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88808/unable-to-connect-to-device-with-pc-ble-driver-py-0-16-3" /><item><title>RE: Unable to connect to device with pc-ble-driver-py 0.16.3</title><link>https://test-devzone.nordicsemi.com/thread/372197?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 14:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ad51831-c2ef-4acf-9dae-6d9c2dffc11b</guid><dc:creator>user112836</dc:creator><description>&lt;p&gt;&lt;span&gt;I resolved my issue. I was apparently programming the connectivity hex file incorrectly. Before, I was flashing the device through:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;nrfjprog --snr &amp;lt;mac-id&amp;gt; --program &amp;lt;connectivity-hex-file&amp;gt; --chiperase --family NRF52&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I ended up getting it to work by flashing the device through the nRF Connect For Desktop UI. Not sure why this is the case, but good enough for me &lt;span class="emoticon" data-url="https://test-devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61b.svg" title="Stuck out tongue"&gt;&amp;#x1f61b;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with pc-ble-driver-py 0.16.3</title><link>https://test-devzone.nordicsemi.com/thread/372190?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 14:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96a15010-7cf1-4aa1-a898-382b0cca425f</guid><dc:creator>user112836</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/88808/unable-to-connect-to-device-with-pc-ble-driver-py-0-16-3/372180#372180"]Can you post the output from that? Did you get &amp;quot;&lt;span&gt;Port &amp;quot;{}&amp;quot; already flashed with connectivity firmware&amp;quot; ? or &amp;quot;Flashing Port&amp;quot;-&amp;gt; &amp;quot;Firmware flashed&amp;quot; ?&lt;/span&gt;[/quote]
&lt;p&gt;&lt;code&gt;&amp;gt; python .\venv\Lib\site-packages\pc_ble_driver_py\examples\serial_port_enum.py NRF52 COM4&lt;/code&gt;&lt;br /&gt;&lt;code&gt;enum_serial_ports: 1 serial ports found&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Serial port #0:&lt;/code&gt;&lt;br /&gt;&lt;code&gt;|&lt;/code&gt;&lt;br /&gt;&lt;code&gt;|- Port: &amp;quot;COM4&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;|- Manufacturer: &amp;quot;SEGGER&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;|- Serial Number: &amp;quot;682623702&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;|- PnP ID: &amp;quot;USB\VID_1366&amp;amp;PID_1015&amp;amp;MI_00\8&amp;amp;2B796293&amp;amp;0&amp;amp;0000&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;|- Location ID: &amp;quot;&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;|- Vendor ID: &amp;quot;&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;|_ Product ID: &amp;quot;&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Port &amp;quot;COM4&amp;quot; already flashed with connectivity firmware&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;gt; python .\venv\Lib\site-packages\pc_ble_driver_py\examples\heart_rate_collector.py NRF52 COM4 &lt;/code&gt;&lt;br /&gt;&lt;code&gt;Serial port used: COM4&lt;/code&gt;&lt;br /&gt;&lt;code&gt;2022-06-13 09:01:40,265 [7748/LogThread] Successfully opened COM4. Baud rate: 1000000. Flow control: none. Parity: none.&lt;/code&gt;&lt;br /&gt;&lt;code&gt;2022-06-13 09:01:40,266 [7748/LogThread] evt&amp;gt; severity(20) message(Successfully opened COM4. Baud rate: 1000000. Flow control: none. Parity: none.)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;2022-06-13 09:01:40,266 [10860/StatusThread] RpcAppStatus.resetPerformed: Target Reset performed&lt;/code&gt;&lt;br /&gt;&lt;code&gt;2022-06-13 09:01:40,267 [10860/StatusThread] evt&amp;gt; status code(RpcAppStatus.resetPerformed) message(Target Reset performed)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;2022-06-13 09:01:42,452 [10860/StatusThread] RpcAppStatus.pktSendMaxRetriesReached: No response from device. Tried to send packet 6 times.&lt;/code&gt;&lt;br /&gt;&lt;code&gt;2022-06-13 09:01:42,452 [10860/StatusThread] evt&amp;gt; status code(RpcAppStatus.pktSendMaxRetriesReached) message(No response from device. Tried to send packet 6 times.)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Traceback (most recent call last):&lt;/code&gt;&lt;br /&gt;&lt;code&gt; File &amp;quot;.\venv\Lib\site-packages\pc_ble_driver_py\examples\heart_rate_collector.py&amp;quot;, line 216, in &amp;lt;module&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt; main(serial_port)&lt;/code&gt;&lt;br /&gt;&lt;code&gt; File &amp;quot;.\venv\Lib\site-packages\pc_ble_driver_py\examples\heart_rate_collector.py&amp;quot;, line 174, in main&lt;/code&gt;&lt;br /&gt;&lt;code&gt; collector.open()&lt;/code&gt;&lt;br /&gt;&lt;code&gt; File &amp;quot;.\venv\Lib\site-packages\pc_ble_driver_py\examples\heart_rate_collector.py&amp;quot;, line 86, in open&lt;/code&gt;&lt;br /&gt;&lt;code&gt; self.adapter.driver.open()&lt;/code&gt;&lt;br /&gt;&lt;code&gt; File &amp;quot;&amp;lt;path-to&amp;gt;\venv\lib\site-packages\pc_ble_driver_py\ble_driver.py&amp;quot;, line 103, in wrapper&lt;/code&gt;&lt;br /&gt;&lt;code&gt; raise NordicSemiException(&lt;/code&gt;&lt;br /&gt;&lt;code&gt;pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: NRF_ERROR_TIMEOUT&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;I&amp;#39;ve also tried this with both 32-bit and 64-bit Python versions without success. This run was testing with pc-ble-driver-py 0.14.2 as I wanted to check if a previous version would work, but you can see this fails as well.&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with pc-ble-driver-py 0.16.3</title><link>https://test-devzone.nordicsemi.com/thread/372180?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 13:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fddc47a-fdad-4a7c-9e08-290b7033164b</guid><dc:creator>user15146</dc:creator><description>[quote user="LimeSlice"]Hi, yes serial_port_enum.py works fine. I get that COM4 is the only COM port available for the NRF which is correct.[/quote]
&lt;p&gt;Can you post the output from that? Did you get &amp;quot;&lt;span&gt;Port &amp;quot;{}&amp;quot; already flashed with connectivity firmware&amp;quot; ? or &amp;quot;Flashing Port&amp;quot;-&amp;gt; &amp;quot;Firmware flashed&amp;quot; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does&amp;nbsp;heart_rate_collector.py work after you run&amp;nbsp;serial_port_enum.py ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with pc-ble-driver-py 0.16.3</title><link>https://test-devzone.nordicsemi.com/thread/371954?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 16:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3eaaa98-bb5c-4be2-aa0f-1a3a3f40c072</guid><dc:creator>user112836</dc:creator><description>&lt;p&gt;Hi, yes serial_port_enum.py works fine. I get that COM4 is the only COM port available for the NRF which is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to connect to device with pc-ble-driver-py 0.16.3</title><link>https://test-devzone.nordicsemi.com/thread/371904?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 12:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b637a19-536a-44fa-962f-5bb07cf4ca3d</guid><dc:creator>user15146</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""](No response from device. Tried to send packet 6 times.)[/quote]
&lt;p&gt;Are you sure that you are using the correct COM port? Does running the&amp;nbsp;serial_port_enum.py example work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>