<?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>Automate nRF52840 Dongle running pc-nrfconnect-ble</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/86819/automate-nrf52840-dongle-running-pc-nrfconnect-ble</link><description>Hello, 
 I&amp;#39;m very unexperienced with low-level programming, so I apologize is some of my questions make little sense. 
 We have this board that sends telemetry data using a nRF52840 to a Window 10 PC. Looking for a quick and dirty way to scan for the</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 02 Jun 2022 07:14:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/86819/automate-nrf52840-dongle-running-pc-nrfconnect-ble" /><item><title>RE: Automate nRF52840 Dongle running pc-nrfconnect-ble</title><link>https://test-devzone.nordicsemi.com/thread/370583?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 07:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a70596-f9c8-487c-a483-da3289151133</guid><dc:creator>user4240</dc:creator><description>&lt;p&gt;Good to hear that you found a solution, thanks for the update. &lt;/p&gt;
[quote userid="115195" url="~/f/nordic-q-a/86819/automate-nrf52840-dongle-running-pc-nrfconnect-ble/370556#370556"]&lt;span&gt;Quick side note, I also tried to write a .NET C# application using Windows UWP&amp;nbsp;BluetoothLEAdvertisementWatcher and some cheapo USB Bluetooth adapters from Amazon, but even after enabling the&amp;nbsp;&lt;/span&gt;&lt;span&gt;AllowExtendedAdvertisements property, I wasn&amp;#39;t able to scan extended advertisements, only the BLE legacy ones.&lt;/span&gt;[/quote]
&lt;p&gt;Extended advertisements must also be supported by the Bluetooth adapter. Maybe that is why it did not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automate nRF52840 Dongle running pc-nrfconnect-ble</title><link>https://test-devzone.nordicsemi.com/thread/370556?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 04:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a9ed59f-4d55-4b2d-831c-bc4df288aecb</guid><dc:creator>user115195</dc:creator><description>&lt;p&gt;Thank you very much Vidar, unfortunately I wasn&amp;#39;t able to take the time to learn Python (my programming experience is currently limited to Labview and VB 6.0 ;-).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;At the&amp;nbsp;end I took a different approach.&amp;nbsp; First I was able to open &amp;quot;pc-ble-driver&amp;quot; in VS2022 and build the &amp;quot;heart_rate_collector&amp;quot;.&amp;nbsp; Then I modified the code to allow extended advertisements and to ouput the rssi.&amp;nbsp; Once I got the EXE where I wanted, I simply run it using System Exec.vi in Labview.&lt;/p&gt;
&lt;p&gt;Not the most elegant solution, but it&amp;#39;s the quick and dirty way for someone looking for a very basic interface between the &lt;span&gt;nRF52840&amp;nbsp;dongle and Labview.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Quick side note, I also tried to write a .NET C# application using Windows UWP&amp;nbsp;BluetoothLEAdvertisementWatcher and some cheapo USB Bluetooth adapters from Amazon, but even after enabling the&amp;nbsp;&lt;/span&gt;&lt;span&gt;AllowExtendedAdvertisements property, I wasn&amp;#39;t able to scan extended advertisements, only the BLE legacy ones.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automate nRF52840 Dongle running pc-nrfconnect-ble</title><link>https://test-devzone.nordicsemi.com/thread/362888?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 13:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d697181f-7594-42ce-b666-cc2fe5733001</guid><dc:creator>user4240</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Attached below is a python script for the &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py"&gt;pc-ble-driver-py&lt;/a&gt; I quickly put together which will connect to any BLE device named &amp;#39;TARGET_DEV_NAME&amp;#39; and start logging the RSSI. You can use it with the same dongle and FW you use with the Bluetooth low energy app.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1362.rssi_5F00_logger.py"&gt;test-devzone.nordicsemi.com/.../1362.rssi_5F00_logger.py&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Steps for testing the script:&lt;/p&gt;
&lt;p&gt;1. Install pc-ble-driver-py through PyPi: $ pip install --user pc-ble-driver-py&lt;/p&gt;
&lt;p&gt;2. Change TARGET_DEV_NAME in the script to match your device.&lt;/p&gt;
&lt;p&gt;3. Run script with python: $ python3 rssi_logger.py NRF52 &amp;lt;COM port for nrf52840 dongle&amp;gt;&lt;/p&gt;
&lt;p&gt;After the connection has been established you should start seeing the measured RSSIs from the connection:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ python3 rssi_logger.py NRF52 /dev/ttyACM0
Serial port used: /dev/ttyACM0
2022-04-11 15:54:27,049 [139762313049856/LogThread] Successfully opened /dev/ttyACM0. Baud rate: 1000000. Flow control: none. Parity: none.
Received advertisment report, address: 0xC4A1E304973B, device_name: Nordic_UART
New connection: 0
Client requesting to update ATT MTU to 247 bytes
Max rx octets: 251
Max tx octets: 251
Max rx time: 2120
Max tx time: 2120
RSSI: -39
RSSI: -37
RSSI: -37
RSSI: -37
RSSI: -40
RSSI: -42
RSSI: -38
RSSI: -39
RSSI: -39
RSSI: -39
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I do not have much experience with LabView, but I hope you will be able to parse the log output from it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>