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

Grab Central Device Information

Hey Guys,

I have the nrf52840 as the peripheral and my application use varies depending on which central I am connecting to in terms of: 

PC ( Windows or macOS or Linux)

Phone(Andriod or iOS)

Tablet (Android or iOs)

Is there any way that once my peripheral is connected to the central, it asks "what are you?" "What operating system do you use?" etc.. 

Perhaps get the central UUID and parse that so I can identify what I have connected to?

Any help is appreciated!

Thanks,

Almog

Parents
  • Hi,

    The device may have an Appearance characteristic in the Generic Access service, but testing with my phone I see that this field is 0 which means "unknown". It may be possible to deduce from the Device Name characteristic (also in the Generic Access service), but especially for smartphones that would be a lot of different names.

    If you have an app that you made yourself for the central, then it would be easier (and less error prone) if the different behavior is triggered from that app on the central instead. Either through a characteristic on the peripheral device for controlling the behavior, or through a custom characteristic on the peripheral device for communicating what kind of device the central is.

    Regards,
    Terje

Reply
  • Hi,

    The device may have an Appearance characteristic in the Generic Access service, but testing with my phone I see that this field is 0 which means "unknown". It may be possible to deduce from the Device Name characteristic (also in the Generic Access service), but especially for smartphones that would be a lot of different names.

    If you have an app that you made yourself for the central, then it would be easier (and less error prone) if the different behavior is triggered from that app on the central instead. Either through a characteristic on the peripheral device for controlling the behavior, or through a custom characteristic on the peripheral device for communicating what kind of device the central is.

    Regards,
    Terje

Children
No Data
Related