Hi,
What does the "Enable services" button in the MCP do?
What are the Master Emulator API equivalent command to duplicate the "Enable services" button in the MCP?
Thank you, Virgil
Hi,
What does the "Enable services" button in the MCP do?
What are the Master Emulator API equivalent command to duplicate the "Enable services" button in the MCP?
Thank you, Virgil
Hi Virgil,
The Enable services button enables the Notification state for every characteristic for every service available on the connect BLE device. I'm not familiar with the "Master Emulator API" but essentially you would be looking for a function that enables notifications for a characteristic.
If you connect with MCP and then click Enable Services, you'll see that all characteristics with the Notify property in their CCCD will be set to 0x0100 which is the value for Notification Enabled.
Hope this helps,
Eric
Hi Virgil,
The Enable services button enables the Notification state for every characteristic for every service available on the connect BLE device. I'm not familiar with the "Master Emulator API" but essentially you would be looking for a function that enables notifications for a characteristic.
If you connect with MCP and then click Enable Services, you'll see that all characteristics with the Notify property in their CCCD will be set to 0x0100 which is the value for Notification Enabled.
Hope this helps,
Eric
Hi Eric,
Thanks for the reply.
Yes this helped. Now I just need to know what the command(s) in the Master Emulator API to set it to a "1". The Master Emulator API is part of Nordic's MCP download that is located in : C:\Program Files (x86)\Nordic Semiconductor\Master Emulator\2.1.13.14\Documentation. Can you please help me with that.
Thank you,
Virgil
I'm not 100% certain, but in looking through the docs, it would seem that after connecting and discovering services, you should then call DiscoverPipes method which retrieves all of the characteristics. Then you can call OpenRemotePipe to enable notifications for a particular pipe (characteristic). Or, to mimic Enable Services, there is an OpenAllRemotePipes method. Again, I haven't used this API but that seems to be the process for enabling notifications on a characteristic.
Please try EricS' suggestion. You can look at one of the example applications to see how this is done.
An alternative would be to use the pc_ble_driver which interfaces our connectivity solution, This way you can use softdevice commands in your test environment. There is also a JS wrapper if that suites you better. Unfortunately we don't have a wrapper for C#.
Hi,
I will try Eric's and your recommendations as well as look at both the "pc_ble_driver" and the "JS wrapper".
Best regards, Virgil