Dialog Semiconductor customer support - #da14580 #read-characteristic https://support.dialog-semiconductor.com/resource-keywords/da14580-read-characteristic en Software Design guiding - DA14580 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/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: 
0000年结婚,2019年2月13日21:14:29 + r91_andersson 284997 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/software-design-guiding-da14580#comments