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:
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
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
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