Software Design guiding - DA14580

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
r91_andersson
Offline
Last seen:2 years 1 month ago
Joined:2019-01-13 17:40
Software Design guiding - DA14580

Hi,

Setup:
We are currently developing an application where we have an MCU that communicates with the Dialog BLE-ship over UART. We also have an android application that can read/set values for each of the characteristics on the BLE chip.

My main concern and question are that I can't find any callback for the read-characteristics in your SDK sample. Is it meant that we shouldn't implement read-callbacks for the ship 580?

In that case, suppose we want to read a value that the MCU holds (for example an external temperature sensor), then from what I understand, we first have to write to a characteristic on the BLE chip, the BLE chip will subsequently execute a UART command to read the temperature sensor-value, once this is retrieved from the MCU, we update the value with "ke_msg_send" for the corresponding characteristic. And then we send the (write)response up to the android-application(I might think that we are experiencing a timeout and disconnect atm in this step). After this step, we know that the value is updated on the BLE-chip and we can then proceed by reading the value by executing a "read" on the characteristic.

Have I understood the concept correct? Otherwise, I would be happy to get some inputs for improving the design.

BR
Robin

Device:
PM_Dialog
Offline
Last seen:19 hours 52 min ago
Staff
Joined:2018-02-08 11:03
Hi r91_andersson,

Hi r91_andersson,

In order to get indicated that someone is trying to read your characteristic and get a callback triggered, you will have to implement the ATTS_READ_REQ_IND, for implementing this please check the following post:

https://support.dialog-semiconductor.com/gattcreadcmdind-da14580

Thanks, PM_Dialog