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

BLE masteremulator.dll - Problem with masteremulator. bond() method

Hi,

I have been experimenting with the master emulator .dll - I started with the HidDemo project which is written in C#. This seems to work perfectly well.

I have rewritten ( translated ?) the demo code into VB.NET ( Visual Studio Express 2010). Everything seems to be ok until I try to call masteremulator.bond(securityparameters). In my version this fails. As far as I can see the security parameters I am sending to the method are the same as those sent by the HidDemo bond function.

I have attached a word document with both sets of code and the securityparameters exposed. I have also attached attached the log that the masteremulator dll has churned out (sorry it is in verbose mode).

I fully expect to find that I am missing something glaringly obvious, but for the moment I can see the wood for the trees! :)

Thanks in advance to anyone who can spot the problem.

Regards

Godric

master_emulator_log.txt

Parents
  • I have not made very much further progress I am afraid. I just don't seem to be able to call masterEmulator.DiscoverPipes() properly. It always throws me back out with a 'no pipes have been setup' message. I have gone as far as calling it from a separate thread with task.factory.StartNew - and that doesn't seem to make any difference.

    I have attached a .txt file with the code involved. Examples of how the classes are setup before DiscoverPipes is called - and the ex.StackTrace I get back. ( I don't know whether this will be of any help to Nordic).

    I have also included the logs and similar diagnostics for HidDemo by way of comparison.

    I may need to have to think of developing the application in Visual C - but I would prefer to avoid this if I can.

    Regards

    Godric

    BLEDiagnostics.txt

Reply
  • I have not made very much further progress I am afraid. I just don't seem to be able to call masterEmulator.DiscoverPipes() properly. It always throws me back out with a 'no pipes have been setup' message. I have gone as far as calling it from a separate thread with task.factory.StartNew - and that doesn't seem to make any difference.

    I have attached a .txt file with the code involved. Examples of how the classes are setup before DiscoverPipes is called - and the ex.StackTrace I get back. ( I don't know whether this will be of any help to Nordic).

    I have also included the logs and similar diagnostics for HidDemo by way of comparison.

    I may need to have to think of developing the application in Visual C - but I would prefer to avoid this if I can.

    Regards

    Godric

    BLEDiagnostics.txt

Children
No Data
Related