5 posts / 0 new
Last post
Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
A newcomer's request

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

avlasov1
Offline
Last seen:6 years 6 months ago
加入:2014-05-15 16:58
Load the proximity reporter

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.

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
Thanks

Thanks
I will see how I manage

Rony
Offline
Last seen:4 years 8 months ago
Master
加入:2014-05-15 15:02
Thanks avlasov1

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

avlasov1
Offline
Last seen:6 years 6 months ago
加入:2014-05-15 16:58
Glad I could help.

Glad I could help.