This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE Test from PC

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'd like to test the firmware locally with my PC before sending a tag to develop Android/ios app. But is seems that BLE library for java is not available (for pc at least).

There are some solutions like:

  • lib for pyton
  • masteremulator.dll , but it is a C++ lib so I cannot access it via JNA
  • tx/rx lib, but it is a low level interface, that will send/receive byte buffers.

anyone having the same "problem" .

Thank you OL

EDIT: more precisely I'm searching a GATT Server Library

Parents
  • I'm not aware of any BLE libraries for Java, but I'd just like to highlight that the Master Emulator API is C# based, not C++. If you absolutely want to use Java, it doesn'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's installed into C:\Program Files (x86)\Nordic Semiconductor\Master Emulator\2.1.7.8226 with the Master Control Panel.

    Edit: It also seems as if it may be possible to trick Java into calling C# code, but I'm uncertain how that would work with Master Emulator's many callback and event functions...

  • I'm trying to enumerate usb, and it hands there... the log says:

    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&PID_0101 9;00:20:17.7534 [MainThread] Opening SYSTEM\CurrentControlSet\Enum\USB\VID_1366&PID_0105 10;00:20:17.7534 [MainThread] Contains this serialNumber: path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1366&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 .

    am I missing some security setup?

    when running precompiled demo, the log is good:

    ;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.

Reply
  • I'm trying to enumerate usb, and it hands there... the log says:

    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&PID_0101 9;00:20:17.7534 [MainThread] Opening SYSTEM\CurrentControlSet\Enum\USB\VID_1366&PID_0105 10;00:20:17.7534 [MainThread] Contains this serialNumber: path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1366&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 .

    am I missing some security setup?

    when running precompiled demo, the log is good:

    ;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.

Children
No Data
Related