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

How to interact with connected devices through the device manger

Hello, I started implementing a project with the device manager. I am using the S120 as central. I am able to connect to 3 peripherals at the same time (also nordic nrf51822). So in general, the device manger does its work. But now, I can not find the information how to interact (write a characteristic) with one specific peripheral/peer. I believe, writing a characteristic will be done with sd_ble_gattc_write(...). But where to get the right handle?

Also I don`t know, how to disconnect from a specific peer. Must these tasks be done by the client handling? Or can that be done directly with the device manager.

Is there an existing example?

I also had a look to the device manager tutorial and it helped a lot when setting up the device manager. But the tasks I mentioned are not described.

Thanks for any help/hint/link.

Regards, BTprogrammer

Parents
  • Ok, after looking into the multilink example, I am pretty sure that I have to discover all the services and characteristics that are available on the connected peer. Right!? Normally I would say this doubles the work. Because I know with what kind of device I am connected. So I should know which, services and characteristics are available. For example, I know, that the device I want to interact with, has two services, one with 20 characteristics, and one with 4 characteristics. Which data fields do I have to adjust when looking at the multilink example? Or will all these information be stored in the m_client[].srv_db data field when doing a discover? Is there an example, how to set up a propper communication to a peripheral on the central side?

    Regards, BTprogrammer

Reply
  • Ok, after looking into the multilink example, I am pretty sure that I have to discover all the services and characteristics that are available on the connected peer. Right!? Normally I would say this doubles the work. Because I know with what kind of device I am connected. So I should know which, services and characteristics are available. For example, I know, that the device I want to interact with, has two services, one with 20 characteristics, and one with 4 characteristics. Which data fields do I have to adjust when looking at the multilink example? Or will all these information be stored in the m_client[].srv_db data field when doing a discover? Is there an example, how to set up a propper communication to a peripheral on the central side?

    Regards, BTprogrammer

Children
No Data
Related