DSPS to send notifications

⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Bharath
Offline
Last seen:1 year 5 months ago
加入:2016-04-14 07:03
DSPS to send notifications

Hi,
We want to explore sending of data read from SPI slave to the Android phone by using DSPS characteristic.
As a starting point we tried to generate a data using a system timer where I call " user_send_ble_data("HELLO",5);" from "default_app_on_connection()"
Once a connection is established, the control goes to "wrap_platform_reset()".

What is the steps being missed here? What all functions have to be called to initialize the DSPS application correctly so that I can start sending notifications to the android.

Thank you
Bharath

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

I dont think that the platform reset comes from the modification that you ve done at the default_app_on_connection(), also the DSPS uses the user_on_connection() function as a callback when connects to the central. So i suppose that you 've done additional modifications and the most probable cause for having a platform reset is that there is a memory leak in the modifications that you ve done. If you just take the DSPS project as is and you apply the function that you mention at the user_on_connection() then you should see the HELLO message printing on your screen.

Thanks MT_dialog

Bharath
Offline
Last seen:1 year 5 months ago
加入:2016-04-14 07:03
Hi MT_dialog,

Hi MT_dialog,
我已经禁用sleepmode这样做:
"sleep_mode = rwip_power_down();"
" sleep_mode = mode_idle; "
Even if I undo this change, the basic kit fails to connect and stops advertising.

Thanks
Bharath

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

I am sorry, i dont quite understand the question, you dont remove the sleep mode by doing what you have mentioned, in order to remove you just have to set the app_default_sleep_mode variable in ARCH_SLEEP_OFF.

Thanks MT_dialog