<?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>Automating writing to a custom BLE characteristic using Windows PC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38517/automating-writing-to-a-custom-ble-characteristic-using-windows-pc</link><description>I am trying to find the optimal way to automate some tests that I run on my BLE device. In this test, I need to write a specific hex value to a custom BLE characteristic of my device. I have this working manually in two different ways: 
 
 Connected my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Sep 2018 13:04:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38517/automating-writing-to-a-custom-ble-characteristic-using-windows-pc" /><item><title>RE: Automating writing to a custom BLE characteristic using Windows PC</title><link>https://devzone.nordicsemi.com/thread/148833?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 13:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23947ba5-1876-412d-9b17-122785fcd85e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nRF Connect cannot be scripted easily, so if you want to use the nRF52840 dongle, the &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver"&gt;pc-ble-driver&lt;/a&gt; (with it&amp;#39;s &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py"&gt;Python&lt;/a&gt; or &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-js"&gt;JavaScript&lt;/a&gt; wrappers) is probably the most relevant. However, this can be a bit cumbersome to use, as all it does is give you the SoftDevice API on the PC side.&lt;/p&gt;
&lt;p&gt;If you just want control a generic BLE device via a script language, then it is perhaps better to use the native BLE device on your PC together with something like &lt;a href="https://github.com/IanHarvey/bluepy"&gt;bluepy&lt;/a&gt; (Python) or &lt;a href="https://github.com/noble/noble"&gt;noble&lt;/a&gt; (Node.js).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>