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

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

  • 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's failing in some way, but I don'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?

Related