Hi,
i'm trying to set one characteristic value in dependence of another characteristic.
For example i want to write my characteristic for starting an led-blinking process. When the process is started, i want to set an indication flag to see if the process is started. How do i realise that? My idea was to put it in another characteristic because i don't want to put the read/write-no-resp property (don't know why but my android app can't handle it.. the onCharacteristicWrite callback is never fired when i try to write an characteristic with read and write enabled). Or should i put the indication value in a descriptor?
How can put characteristic values internally from device side? (Not written via bluetooth) Didn't figure out how i can do it. I tried to get the information out of the ADC-examples but can't see which code i need for implementing it for my purpose.
Thanks again!
Jan
Hi JanFeld,
Have you tried the property 'write' with your android app?
Yes, i tried property "write". I read out the properties via my app, to check if the da14580 has some configuration faults and i saw that the characteristic has the property-value "6".
In my understanding the value 6 indicates a combination of two properties (for example property 2 and 4 wich is 2 for read and 4 for write_no_resp). In the code for my device i changed it to write (0x00000008) and compiled it as usual. I cleared the cache of my app, complete android cache, bluetooth cache and restartet it twice. But the value just remains the same.
Thanks,
Jan
Hi JanFeld,
I am not sure i understand what you are trying to do but in order to change the value of a characteristic in the database from your device and not from your phone you can use the attmdb_att_set_value() function in order to do so. You can find an example of that function in the custs1_val_ntf_req_handler() function in the custs1_task.c file in any SDK5 project that implements the custom profile.
Thanks MT_dialog
Thanks for the information with the
attmdb_att_set_value()
我终于发现了为什么my app didn't work. Now it works fine. No problems with properties or notifications.But i have another question.. How can i debug the DA14580 with watching the ports? If i try to enable "trace" in Keil µVision it always stips working in debug mode. Do i have to configure it or do i need additional hardware something like a debug connector? I want to see the ports and single values while i'm testing.
Thanks,
Jan
Hi JanFeld,
You will need a .sfr file in order to use the system viewer, check the following posthttp://support.dialog-semiconductor.com/peripherals-not-visible-keil-deb...
Thanks MT_dialog