<?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>BLE Test from PC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1876/ble-test-from-pc</link><description>Dear all 
 is there any possibility to use PC to test the nrf51822, Instead of Android/ios app? 
 preferably a lib to be used with Java, so one can have some test cases. 
 What am I trying to do? 
 I&amp;#39;d like to test the firmware locally with my PC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Mar 2014 09:19:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1876/ble-test-from-pc" /><item><title>RE: BLE Test from PC</title><link>https://devzone.nordicsemi.com/thread/8107?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2014 09:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c0c232-d421-465d-9514-b89d296ed814</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Neither me nor the API developer have ever heard about this, so we need some further details. It seems that it is the register reading that&amp;#39;s failing in some way, but I don&amp;#39;t really have any great ideas on why. Can you please post this separately, making sure to include the full log file and information on your Windows version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Test from PC</title><link>https://devzone.nordicsemi.com/thread/8106?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2014 00:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ffae799-3fef-4cd2-8803-2ef408361e82</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to enumerate usb, and it hands there... the log says:&lt;/p&gt;
&lt;p&gt;6;00:20:17.5944 [MainThread] Initialize
MasterEmulator, Version=2.1.7.8226, Culture=neutral, PublicKeyToken=null
7;00:20:17.7534 [MainThread] SerialNumberToComport called with serial number: 480105xxx
8;00:20:17.7534 [MainThread] Opening SYSTEM\CurrentControlSet\Enum\USB\VID_1366&amp;amp;PID_0101
9;00:20:17.7534 [MainThread] Opening SYSTEM\CurrentControlSet\Enum\USB\VID_1366&amp;amp;PID_0105
10;00:20:17.7534 [MainThread] Contains this serialNumber: path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1366&amp;amp;PID_0105\000480105xxx
11;00:20:17.7534 [MainThread] A security error has been detected.
12;00:20:17.7534 [MainThread] Error accessing key. Skipping.
13;00:20:17.7534 [MainThread] SerialNumberToComport for serial 480105xxx returned .&lt;/p&gt;
&lt;p&gt;am I missing some security setup?&lt;/p&gt;
&lt;p&gt;when running precompiled demo, the log is good:&lt;/p&gt;
&lt;p&gt;;00:01:05.8775 [MainThread] Initialize
MasterEmulator, Version=2.1.7.8226, Culture=neutral, PublicKeyToken=null
1;00:01:06.0345 [MainThread] SerialNumberToComport for serial 480105xxx returned COM12.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Test from PC</title><link>https://devzone.nordicsemi.com/thread/8105?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2014 17:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d952a67-c56e-4ad6-b020-b8bc3d47a605</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;I think I like the Master Emulator APIs :-) awesome and straightforward...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Test from PC</title><link>https://devzone.nordicsemi.com/thread/8104?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2014 14:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f58bf7d-dd98-4977-a12e-7733d1fc1a07</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;let me try with c# and .dll first :-) the HCI interface would be an option as I would probably need only a subset of commands. But, again it is time, and the fact that it will not be supported makes it priority 2.&lt;/p&gt;
&lt;p&gt;thank you for your support!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll text updates on this topic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Test from PC</title><link>https://devzone.nordicsemi.com/thread/8103?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2014 14:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5582720-9e09-4167-ba23-645620160944</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I was afraid complexity of the DLL might make that difficult, yes...  Unfortunately, I don&amp;#39;t yet have anything like that.&lt;/p&gt;
&lt;p&gt;The only option I can think of, if you&amp;#39;re feeling adventurous, is to try to implement something by doing raw HCI commands from Java, directly to the serial port exposed by the Master Emulator firmware. This would however be completely unsupported: I can&amp;#39;t help with the exact commands or responses, and things may break with future versions, with you getting to keep both pieces. You&amp;#39;d therefore have to reverse-engineer the protocol MCP uses to talk to the dongle by looking at the messages in its log file, and try to recreate those in your own Java application. But if you only need specific scenarios, and you only want to verify that those keep working with future firmware versions, that may actually be doable...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Test from PC</title><link>https://devzone.nordicsemi.com/thread/8102?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2014 14:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8368ad5f-4bf0-42f1-8fb8-e04b4c22f47e</guid><dc:creator>Oleh</dc:creator><description>&lt;p&gt;thank you Ole, I have tried to load MasterEmulator in Java via JNA, but there are callbacks and structures which is not a trivial job to port.&lt;/p&gt;
&lt;p&gt;In case you have an ANSI-C version of MasterEmulator :-) that would be awesome !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Test from PC</title><link>https://devzone.nordicsemi.com/thread/8101?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2014 13:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:339ad174-2e86-4354-a8bb-f83a12d67462</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I&amp;#39;m not aware of any BLE libraries for Java, but I&amp;#39;d just like to highlight that the Master Emulator API is C# based, not C++. If you absolutely want to use Java, it doesn&amp;#39;t really help you though, but for now, this API is the only one I know about, and the best we have to offer. As you probably know, it&amp;#39;s installed into C:\Program Files (x86)\Nordic Semiconductor\Master Emulator\2.1.7.8226 with the Master Control Panel.&lt;/p&gt;
&lt;p&gt;Edit: It also seems as if &lt;a href="http://www.codeproject.com/Articles/378826/How-to-wrap-a-Csharp-library-for-use-in-Java"&gt;it may be possible to trick Java into calling C# code&lt;/a&gt;, but I&amp;#39;m uncertain how that would work with Master Emulator&amp;#39;s many callback and event functions...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>