I am a complete newcomer to the DA14580 so please be patient if my questions are vey silly.
I followed the Software Development Guide and everything was fine until chapter 10.
I created a project from the template and added the new profile sample128
I then tried to follow chapter 11 but got stuck. I don’t know what I have to do over there.
So I thought I could just call sample128_send_val(uint8_t) directly from the main_func at arch_main.c (after I included sample128.h) but the link failed.
What I need is a simple project that has profile I can change, like the sample128, and notifies some data every second.
For the application I need a counter that increments every second to simulate the a2d measurement that will come afterwards.
On the Android we have a running app that we developed for the BLE112 and other BLE chips which we can use.
Thanks for the help
Rony
Load the proximity reporter project and take a look at app_batt.c. It performs analog to digital conversion and also has a service with a notify characteristic which sends out a notification to the client at a certain interval (I'm not quite sure what the delay is but you can easily find it). You can simply modify the battery profile code to do what you need or implement your own application code based on the battery application.
Hope this helps.
Thanks
I will see how I manage
Thanks avlasov1
Did as you suggested and it looks fine.
我能够改变代码get it over to the Android side at a higher rate and using a counter instead of the batt level.
I will try next week to better understand it and build a project from scratch.
Have a great weekend
Glad I could help.