Setting up a custom GATT Client

Hello! 

I have a GATT Server in the form of a nrf52840-DK that has been given to me from a company that has a custom service on the server using CCCD. I have the full documentation of the service so all necessary information is available there for me.
However they want me to create a GATT Client, as a part of a thesis work, with another nrf52840-DK to handle the incoming data.
Since I am very new at this I am not really sure what to look for in terms of how to develop this, what is the correct way to do this? Is it called setting up a custom service or what is this called?

I have already finished the BLE academy course so I am somewhat familiar with the terminology but I am not sure what exactly to search for in terms of guides/documentation/walkthroughs to solve this problem.

Thank you in advance for the help and feel free to ask me if something is unclear.

Parents
  • Hi,

    Is it called setting up a custom service or what is this called?

    This can be called setting up a GATT client to communicate with a custom service.

    Since you mention that you have all the documentation of the custom service, you will need to note the information, like UUIDs of the custom service, it's characteristics, the properties of each characteristic and the format and type of data that each characteristic handles You will also need the CCCD.

    You will have to initialize the BLE stack, followed by a scan for devices and then connect to the GATT server. Then you can discover the custom service and it's characteristics, after connection. If the custom service uses notifications, write to the CCCD to enable them.

    We have the BLE Central tutorial.  I would also suggest you to take a look at the Devacademy course on the GATT operations.

    Regards,

    Priyanka

Reply
  • Hi,

    Is it called setting up a custom service or what is this called?

    This can be called setting up a GATT client to communicate with a custom service.

    Since you mention that you have all the documentation of the custom service, you will need to note the information, like UUIDs of the custom service, it's characteristics, the properties of each characteristic and the format and type of data that each characteristic handles You will also need the CCCD.

    You will have to initialize the BLE stack, followed by a scan for devices and then connect to the GATT server. Then you can discover the custom service and it's characteristics, after connection. If the custom service uses notifications, write to the CCCD to enable them.

    We have the BLE Central tutorial.  I would also suggest you to take a look at the Devacademy course on the GATT operations.

    Regards,

    Priyanka

Children
No Data
Related