This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541 Remove DevInfo Profile

I am trying to remove the DevInfo profile from my SimpleBlePeripheral project.   When I remove devinfoservice.c and comment out the call to DevInfo_AddService() my BLE phone no longer connects.   When I look at the discovery information from my phone I see that the Device Info UUID is still included.   What additional steps do I need to remove the Dev Info profile?

Thanks,

John

[{\"characteristics\":[{\"descriptors\":[],\"characteristicUuid\":\"2a00\"},{\"descriptors\":[],\"characteristicUuid\":\"2a01\"},{\"descriptors\":[],\"characteristicUuid\":\"2a02\"},{\"descriptors\":[],\"characteristicUuid\":\"2a03\"},{\"descriptors\":[],\"characteristicUuid\":\"2a04\"}],\"serviceUuid\":\"1800\"},{\"characteristics\":[{\"descriptors\":[{\"descriptorUuid\":\"2902\"}],\"characteristicUuid\":\"2a05\"}],\"serviceUuid\":\"1801\"},{\"characteristics\":[{\"descriptors\":[],\"characteristicUuid\":\"2a23\"},{\"descriptors\":[],\"characteristicUuid\":\"2a24\"},{\"descriptors\":[],\"characteristicUuid\":\"2a25\"},{\"descriptors\":[],\"characteristicUuid\":\"2a26\"},{\"descriptors\":[],\"characteristicUuid\":\"2a27\"},{\"descriptors\":[],\"characteristicUuid\":\"2a28\"},{\"descriptors\":[],\"characteristicUuid\":\"2a29\"},{\"descriptors\":[],\"characteristicUuid\":\"2a2a\"},{\"descriptors\":[],\"characteristicUuid\":\"2a50\"}],\"serviceUuid\":\"180a\"}

  • You are doing everything correct. Did you rebuild the project?

    Also, your message is not clear, in that you are saying that your BLE phone no longer connects but then you say you are able to look at discovery information from your phone. Could you clarify what phone you are using and what app you are using?

    Another thing to do would be to connect to your peripheral from a CC2540USB dongle running BTool, and perform service discovery from BTool to see if the Dev Info Service is still included.

  • I rebuilt the project without the devinfoservice.c file but still see the service UUID from my phone's debug console log.

    My phone connects briefly and then disconnects immediately after the discovery without devinfoservice.c.  

    I am writing a phone app which works as expected when I include the devinfoservice.c file and call to invoke it.

    I will take the steps that you recommended and try to use BTool, however, is there anything in the BLE stack that requires the devinfo profile?

    Thanks,

    John

  • Apple requires that all BLE devices implements the DIS: https://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf

  • Does Android require the Device Information Service Profile as well?

  • I haven't seen any requirement like that for Android but am not sure.

  • Hi,

    Can you check on BLE device monitor? It should not get listed as a service if not included in your AddService call.

    Also. Have you modified simpleGATTprofile by any chance and included the devInfo service in it? Please retain the original simpleGATT profile and check.

    Regards,

    Arun