Two services on a single device

Here's what we're trying to do. We have a gesture recognition wearable that is intended to be used as a remote control for a smartphone. But some smartphone functions are easier to implement using the HID service and some using a custom service. We have the wearable and the phone connected and both services are shown in nRF Connect but if we pair with the HID service first we cannot connect to the custom service using a custom app on the smartphone. Similarly, if we pair to the custom service first, we cannot use the HID service. How do we get both services to work simultaneously from one device?

Parents
  • Hello,

    Karl is out of office, so I will look into your questions. 

    I am sorry but there is a lot of information in this ticket. Is it correct that you are trying to connect, then add a new service after the connection? You are not trying to have two concurrent connections with the same device, right?

    Your snippet:

    "cus_init.custom_value_char_attr_md. ..."

    Where do you use this? The custom_calue_char_attr_md is not something coming from us, so it must be something that you wrote. I understand the context, and that you are trying to say that the device needs to be paired to use this characteristic, but perhaps you can show how it is used in your code?

    If the issue is that you do not see the other service on the mobile phone, do you see it if you try to connect to it using nRF Connect for Desktop -> Bluetooth Low Energy?

    BR,

    Edvin

Reply
  • Hello,

    Karl is out of office, so I will look into your questions. 

    I am sorry but there is a lot of information in this ticket. Is it correct that you are trying to connect, then add a new service after the connection? You are not trying to have two concurrent connections with the same device, right?

    Your snippet:

    "cus_init.custom_value_char_attr_md. ..."

    Where do you use this? The custom_calue_char_attr_md is not something coming from us, so it must be something that you wrote. I understand the context, and that you are trying to say that the device needs to be paired to use this characteristic, but perhaps you can show how it is used in your code?

    If the issue is that you do not see the other service on the mobile phone, do you see it if you try to connect to it using nRF Connect for Desktop -> Bluetooth Low Energy?

    BR,

    Edvin

Children
No Data
Related