<?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>Automate NRF52840 communication with bluetooth device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92567/automate-nrf52840-communication-with-bluetooth-device</link><description>Hi, 
 I have a NRF52840 and a bluetooth device. Is there a way to automate the communication by writing/reading the HEX code. It is essential for product testing. Example: Command Prompt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Oct 2022 09:05:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92567/automate-nrf52840-communication-with-bluetooth-device" /><item><title>RE: Automate NRF52840 communication with bluetooth device</title><link>https://devzone.nordicsemi.com/thread/389554?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 09:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a67905e4-d0d1-4e81-8b8d-83ac9edbdf1a</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;My knowledge about the pc-ble-driver is limited. Could you open a new ticket about that question? Then the ticket will get assigned to a person with more knowledge about it.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automate NRF52840 communication with bluetooth device</title><link>https://devzone.nordicsemi.com/thread/389470?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 16:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32b00992-819c-4d35-b9e7-cfbe4e4e7fc5</guid><dc:creator>Teoh Wei Jian</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Yes, Bluez is only for Linux.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I had been trying with pc-ble-driver-py and able to connect to my Bluetooth Device with the nRF52840 Dongle by modifying the hear_rate_collector.py script. However, I still need to send HEX packet with python which is similar like the 1401 in the nRF Connect Desktop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automate NRF52840 communication with bluetooth device</title><link>https://devzone.nordicsemi.com/thread/389099?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 12:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ef63db-8fa2-4fa5-aa3f-304d71f89afd</guid><dc:creator>Simon</dc:creator><description>[quote user="Teoh Wei Jian"]&lt;p&gt;Below is the items I wish to achieve through command prompt:&lt;/p&gt;
&lt;p&gt;1. Connect NRF52840 to a Bluetooth Device (UUT)&lt;/p&gt;
&lt;p&gt;2. Send Hex Code&lt;/p&gt;[/quote]
&lt;p&gt;If you buy an &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nrf52840-dongle"&gt;nRF52840 Dongle&lt;/a&gt;&amp;nbsp;you can run the hci_usb sample on it and connect it to a computer where you can control it from the command prompt using Bluez. It seems like this is only supported on Linux, see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74105/nrf5340-as-a-bluetooth-controller-for-windows"&gt;nRF5340 as a Bluetooth Controller for Windows&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Like this:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Bluetooth device &amp;lt;--------------Bluetooth&lt;span&gt;--------------&lt;/span&gt;&amp;gt;Dongle&amp;lt;--USB--&amp;gt;Computer&lt;/p&gt;
&lt;p&gt;You can also use the nRF52840&amp;nbsp;dongle in combination with the pc-ble-driver:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34538/how-can-i-connect-an-nrf52840-with-a-computer-over-bluetooth-5/132816"&gt;RE: How can I connect an nRF52840 with a computer over Bluetooth 5?&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py"&gt;https://github.com/NordicSemiconductor/pc-ble-driver-py&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver"&gt;https://github.com/NordicSemiconductor/pc-ble-driver&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Using either of these options, you should be able to connect and communicate with your Bluetooth device from a computer+dongle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does this seem like some good options for you? Or were you looking for direct Bluetooth communication between your Bluetooth device and the computer?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automate NRF52840 communication with bluetooth device</title><link>https://devzone.nordicsemi.com/thread/389098?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 16:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf6e440-ca93-44fb-9a2c-ca74859e9f5b</guid><dc:creator>Teoh Wei Jian</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for your reference. However, I am looking for the method to communicate with the Bluetooth device with command prompt using &lt;strong&gt;Bluetooth connection&lt;/strong&gt;. Can pynrfprog.exe do it? I always get &amp;quot;No Dongle Connected to the PC&amp;quot; when I try to send --com or --ids even with the NRF52840 connected to my laptop. Do you have any other references for it?&lt;/p&gt;
&lt;p&gt;Below is the items I wish to achieve through command prompt:&lt;/p&gt;
&lt;p&gt;1. Connect NRF52840 to a Bluetooth Device (UUT)&lt;/p&gt;
&lt;p&gt;2. Send Hex Code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automate NRF52840 communication with bluetooth device</title><link>https://devzone.nordicsemi.com/thread/389097?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 11:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751afe4b-45f5-4b26-af8a-dd156db7adc2</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Take a look at:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61926/programming-automation"&gt;Programming Automation&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf_cltools%2FUG%2Fcltools%2Fnrf_nrfjprogexe.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf_cltools%2FUG%2Fcltools%2Fnrf_nrfjprogexe.html&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_pynrfjprog%2FUG%2Fpynrfjprog%2Fpynrfjprog_lpage.html&amp;amp;cp=8_2"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_pynrfjprog%2FUG%2Fpynrfjprog%2Fpynrfjprog_lpage.html&amp;amp;cp=8_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pynrfjprog"&gt;https://github.com/NordicSemiconductor/pynrfjprog&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="left:-29px;top:49px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>