This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Master Emulator random behaviour

I am developing a windows application, using the MasterEmulator api. I am discovering BLE devices with scan parameter Active and Passive. The result is that most of the time data from the advertising packet is returned and sometimes the data from the scan response. Both advertising data contain (different) ManufacturerSpecificData.

I have searched in the forum and found Ole stating that it is not possible to have manufacturer data in both the advertising data and the scan response. (hope I interpreted this right).

However, the softdevice supports this and the Master Control Panel displays it consistently correct.

I expect the MasterEmulator api to return the scan response data when requesting Active scanning, and to return advertising data when requesting Passive scanning.

So testing this with a C# application shows that performing scanning Active and Passive scanning, one after the other in the same method, the results vary. Most of the time the advertising data is returned when Active scanning. And just repeating the Discover Devices with a button click, so without restarting the app, shows varying results.

Can someone explain or classify it as a bug or tell me how to get consistent behaviour?

Thank you.

Parents Reply Children
  • Unfortunately, I don't really have a lot of good options on Windows 7. Windows 8 provides native BLE APIs that could be used, but those are not available on Windows 7.

    You may be able to get something working with Broadcom's API, since they are the manufacturer of most chips used in USB dongles, but this is unfortunately not anything we really have any experience with: http://www.broadcom.com/support/bluetooth/sdk.php

    I'm sorry for not being able to give better suggestions, but the ecosystem around BLE is primarily targeted towards new devices and platforms.

  • By the way, it would also be possible to make some custom USB dongle with the upcoming Central softdevice, and use that as a production solution. This would however require you to do the development of the API between your application and the dongle yourself, possibly based on the SDK work in the SDK.

Related