Can not connect to DA14580 with ARCH_EXT_SLEEP_ON

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
liaobme
Offline
Last seen:5 months 1 day ago
加入:2018-02-28 07:10
Can not connect to DA14580 with ARCH_EXT_SLEEP_ON

Hi, Dialog,

When I run DSPS on a custom board with ARCH_SLEEP_OFF,the mobile App scanner can correctly list the service information after connection.However, if I run it with ARCH_EXT_SLEEP_ON,the service information can not be listed(the code of app_on_connection is called), the device disconnected with error code 62. What might be the problem.

Thank you!

liaobme

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi liaobme,

Hi liaobme,

Your description is quite generic, if you have extended sleep activated i suppose that you see that the device is advertising, and since the app_on_connection is triggered then you can connect, the error code that you mention 62 doens't help, check the reason on the disconnection callback in order to check the reason the the 580 reported for the disconnection.

Thanks MT_dialog

liaobme
Offline
Last seen:5 months 1 day ago
加入:2018-02-28 07:10
Hi, Dialog,

Hi, Dialog,

Actually, the 62(0x3E) is the reason obtained at disconnection callback, what does that mean?

Thank you
liaobme

MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi liaobme,

Hi liaobme,

The 0x3E is just a generic message, it corresponds to CO_ERROR_CONN_FAILED_TO_BE_EST, which just states that the connection has failed to be established. If you are able to establish a connection with no sleep but not when implement sleeping i suppose that this indicates issues with your low power clock, do you use the RCX or an XTAL32 as LP clock ?

Thanks MT_dialog

liaobme
Offline
Last seen:5 months 1 day ago
加入:2018-02-28 07:10
Hi, Dialog,

Hi, Dialog,

The problem solved when DA14580 powered from battery instead of USB line.

Thank you.