Pairing and Bonding problem with the ancs device

⚠️
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.
54 posts / 0 new
Last post
lizhuobin
Offline
Last seen:3 months 2 weeks ago
Joined:2014-08-15 05:08
Pairing and Bonding problem with the ancs device

Dear Dialog,

We have add ancc service on our device,

Iphone pair and bond The device and iphone can send message to the device.

and then, I reboot the device and iphone can not reconnet to the device.

The firmware generated by DA14580_ANCS_3.120.1.5 has the same problem.

Best Regards,

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi lizhuobin,

Hi lizhuobin,

Are you storing the bonding data in a non-volatatile memory, and do you restore the bonding data when the device finishes booting in order when the phone issues an encryption request the device to accept the request since its bonded? Do you have a sniffer to check the command that the phone issues to the da ? and when the command is issued is the corresponding handler executed (encryptionrequest_handler) ? Also can you please check if you unpair your device are you able to connect and pair again ?

Thanks MT_dialog

gyz
Offline
Last seen:2 years 3 weeks ago
Joined:2015-10-10 07:49
你好,我使用DA14580_ANCS_3.120.1.5

你好,我使用DA14580_ANCS_3.120.1.5 编译出来的程序,烧到固件能检测到信号,但是检测到0个服务,因此没法和手机建立连接,请问您知道是什么原因么?

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi gyz,

Hi gyz,

This is an english forum, so i am not sure if i totally understand your question since i translated it over google, now regarding your question, the ANCS profile on the 580 implemets a client and not a server, therefore there are no characteristics to read, it doesn't expose any services except for the DISS service, so you should be able to connect and see just the DISS service. The ANCS Client reference application demonstrates the use of the Apple Notification Center Client (ANCC) profile to connect and receive notifications from an iOS device. Please check the application notes UM-B-032_ANCS_Reference_application and UM-B-031_ANCS_profile_specification.pdf for more info and how to setup a simple demo.

Thanks MT_dialog

ppaszkow
Offline
Last seen:5 years 3 weeks ago
Joined:2015-10-28 23:56
Hello Dialog,

Hello Dialog,

The ANCS is supported in SDK3, however I am struggling with getting it to work on SDK5. Can I request for support of ANCS in SDK5? Or please provide details on best way to port this.

More generally which SDK do you recommend for development? SDK3 seems to have more profiles supported.

Thank you

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi ppaszkow,

Hi ppaszkow,

The SDK5 is a better choice than SDK3 since all known bugs has been fixed and it provides a more complete api system for the user in order to interact with the BLE functions. Regarding the porting of the profile, since there's already an implementation of the profile and a working example on SDK3 it shouldn't be hard to make the porting. Since there is allready the application implementation of the profile (app_ancc.c and app_ancc_task.c) you can take as an example the implementation of an allready existing profile (like the battery or the proximity service).

Thanks MT_dialog

ppaszkow
Offline
Last seen:5 years 3 weeks ago
Joined:2015-10-28 23:56
Thank you for your

Thank you for your recommendation. I've tried exactly that, I took app_ancc* from SDK3 and ported it to SDK5, using battery and proximity profiles as examples. Unfortunately I wasn't successful yet. I think some hooks are missing or incorrect.

Currently I can see that upon connection:
gattc_cmp_evt_handler() in ancc_task.c is called, but it fails at statement:
if (ancc_env->nb_svc > 0) [around line 810]

I also see that gattc_disc_svc_ind_handler() in the ancc_task.c is never called. This is probably why ancc_env->nb_svc == 0. How do I enable this? I looked at the battery example and it looks similar.

I could provide my diffs if it's appropriate, but I would really appreciate support on this. Can I request Dialog to perform this exercise of porting ANCS from SDK3 to SDK5. Then I can do the same thing for other profiles which need porting... for example ANPS.

thank you

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi ppaszkow,

Hi ppaszkow,

A mail has been sent to the registered email address.

Thanks MT_dialog

ppaszkow
Offline
Last seen:5 years 3 weeks ago
Joined:2015-10-28 23:56
Great, thank you!

Great, thank you!

dobin
Offline
Last seen:2 weeks 6 days ago
Joined:2015-09-16 10:21
Hi MT_dialog:

Hi MT_dialog:

你能给我一个例子在SDK5小区呢?? I tried it but have many errors.

Thanks.

orient
Offline
Last seen:4 years 3 months ago
Joined:2015-07-20 04:11
hi dialgo staff, could you

hi dialgo staff, could you give me a example about ANCS in SDK5 too? Thanks

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi dobin

Hi dobin

A mail has been sent to the registered email address.

Thanks MT_dialog

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi orient,

Hi orient,

A mail has been sent to the registered email account.

Thanks MT_dialog

eochoa13
Offline
Last seen:4 years 6 months ago
Joined:2014-08-15 04:08
Hi MT_dialog:

Hi MT_dialog:

你能给我一个例子吗NCS in SDK5 too??

Thanks.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi eochoa13,

Hi eochoa13,

A mail has been sent to the registered email address.

Thanks MT_dialog

daniellsk
Offline
Last seen:4 years 6 months ago
Joined:2016-05-31 21:17
Hi MT_dialog,

Hi MT_dialog,
Could you please provide me tutorial/example/SDK for IOS ANCS? Also, can you provide me the WeChat SDK as well if it can help me to develop WeChat notification to my BLE device?

Thanks!

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi daniellsk,

Hi daniellsk,

下的微信可以参考设计section of the 580 in the support site along with the documentation. In order to be able to download the fw you have to accept the licence agreement of the SDK. Please go to product DA14580 and navigate to software and tools. There you 'll see a padlock icon - click that, accept the agreement, and you will be granted with SDK access in a couple of days.

Thanks MT_dialog

Beck Peng
Offline
Last seen:3 years 8 months ago
Joined:2016-03-08 08:43
Hi MT_dialog:

Hi MT_dialog:

你能给我一个例子吗NCS in SDK5 too??

Thanks.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Beck Peng,

Hi Beck Peng,

A mail has been sent to the registered email.

Thanks MT_dialog

politec
Offline
Last seen:4 years 3 months ago
Joined:2016-10-09 08:56
Hi MT_dialog:

Hi MT_dialog:

你能给我一个例子吗NCS in SDK5 too??

Thanks.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi politec,

Hi politec,

Before i can send you any mail or code example, you will have to get your access in the SDK granted. Please go to product DA14580 and navigate to software and tools. There you 'll see a padlock icon - click that, accept the agreement, and you will be granted will SDK access in a couple of days. After that you will be able to download code from the support site and i will be able to give you source code.

Thanks MT_dialog

politec
Offline
Last seen:4 years 3 months ago
Joined:2016-10-09 08:56
followed your instruction,

followed your instruction, permission granted. Hopefully you can send me code example now. (ANCS in SDK 5).
thank you.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi politec,

Hi politec,

A mail has been sent to the registered email address.

Thanks MT_dialog

politec
Offline
Last seen:4 years 3 months ago
Joined:2016-10-09 08:56
Thanks MT_dialog,

Thank you

KeNT
Offline
Last seen:4 years 5 months ago
Joined:2016-01-22 07:35
Hi MT_dialog:

Hi MT_dialog:

你能给我一个例子吗NCS in SDK5 too?

Thanks.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi KeNT,

Hi KeNT,

A mail is sent to the registered email address.

Thanks MT_dialog

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi sanpo_brain,

Hi sanpo_brain,

Please dont post in Chinese, this is an English forum. You can post your question at the Chinese forum.

Thanks MT_dialog

Nobu
Offline
Last seen:11 months 3 weeks ago
Joined:2015-06-09 07:40
Could you send an example

Could you send an example code about ANCS application in SDK5 also to me, please.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Nobu,

Hi Nobu,

A mail is sent to the registered email address.

Thanks MT_dialog

sanpo_brain
Offline
Last seen:3 years 9 months ago
Joined:2015-08-27 07:32
Hi MT_dialog:

Hi MT_dialog:

Could you give me an example about ANCS in SDK5 too?

Thanks.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi sanpo_brain,

Hi sanpo_brain,

A mail is sent to the registered email address.

Thanks MT_dialog

sanpo_brain
Offline
Last seen:3 years 9 months ago
Joined:2015-08-27 07:32
Thank you for a reply.

Thank you for a reply.

However, the email did not arrive.
Will you send it once again?

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi sanpo_brain,

Hi sanpo_brain,

The mail is re-sent to the registered email address.

Thanks MT_dialog

sanpo_brain
Offline
Last seen:3 years 9 months ago
Joined:2015-08-27 07:32
I received it. Thank you !

I received it.
Thank you !

sanpo_brain
Offline
Last seen:3 years 9 months ago
Joined:2015-08-27 07:32
Hi MT_dialog

Hi MT_dialog

Though CFG_MEM_MAP_EXT_SLEEP is defined, about the sample which you gave,
it becomes the current value more than 500uA.
Will ExtendedSleep become effective now?

Thank you.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi sanpo_brain,

Hi sanpo_brain,

The CFG_MEM_MAP_EXT_SLEEP doesn't control the sleep configuration but the corresponding memory configuration depending on the sleep mode that you choose, in order to put the device in sleep mode just go in the user_config.h file and set the app_default_sleep_mode to ARCH_EXT_SLEEP_ON, that will force the device to operate under sleep mode.

Thanks MT_dialog

sanpo_brain
Offline
Last seen:3 years 9 months ago
Joined:2015-08-27 07:32
A consumption current fell

A consumption current fell down.

Thank you!

sanpo_brain
Offline
Last seen:3 years 9 months ago
Joined:2015-08-27 07:32
Hi MT_dialog

Hi MT_dialog

I execute a program in Sleep-Off, and can I switch to ExtendedSleep during processing?
In addition, is the reverse possible, too?
Please advise the timing and point if possible.

thank you.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi sanpo_brain,

Hi sanpo_brain,

Please dont post questions on irrelevant topics, you can always create a new post for your question.

Yes, during execution you can invoke arch_disable_sleep() to disable the sleep feature and by invoking the arch_set_extended_sleep() you will be able to re-enable it again.

Thanks MT_dialog

yuangang0101
Offline
Last seen:1 year 5 months ago
Joined:2014-02-18 08:58
Hi MT_dialog:

Hi MT_dialog:

Could you give me an example about ANCS in SDK5 too?

Thanks.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi yuangang0101,

Hi yuangang0101,

A mail is sent to the registered email address.

Thanks MT_dialog

kingwheat
Offline
Last seen:1 year 6 days ago
Joined:2016-12-08 09:21
Could you give me an example

Could you give me an example about ANCS in SDK5 too? Now I am going to change from the SDK3 to the SDK5, Thanks!

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Kingwheat,

Hi Kingwheat,

A mail is send to the registered email address.

Thanks MT_dialog

Tomoyuki Doi
Offline
Last seen:2 years 6 months ago
Joined:2014-05-01 08:15
Could you give me an example

Could you give me an example about ANCS in SDK5 too?

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Tomoyuki Doi,

Hi Tomoyuki Doi,

A mail is sent to the registered email address.

Thanks MT_dialog

Michaelxiao
Offline
Last seen:2 years 1 month ago
Joined:2015-12-09 02:57
Could you give me an example

Hi dialog,

Could you give me an example about ANCS in SDK5 too?

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Michaelxiao,

Hi Michaelxiao,

A mail is sent to the registered email address.

Thanks MT_dialog

DanHuang
Offline
Last seen:1 month 1 day ago
Joined:2017-10-11 15:11
Hi Dialog ,

Hi Dialog ,
I'm working on ANCS porting , Could you please give the example code in SDK5 for me?

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
Joined:2015-06-08 11:34
Hi DanHuang,

Hi DanHuang,

A mail is send to the registered email address.

Thanks MT_Dialog

EdwinHsu
Offline
Last seen:3 months 2 weeks ago
Joined:2018-05-13 16:46
Hi MT_dialog,

Hi MT_dialog,
Could you please provide me tutorial/example/SDK for IOS ANCS?
Could you give me an example about ANCS in SDK5 too? Now I am going to change from the SDK3 to the SDK5.

Thanks!

PM_Dialog
Offline
Last seen:23 hours 43 min ago
Staff
Joined:2018-02-08 11:03
Hi EdwinHsu,

Hi EdwinHsu,

We will get contact with you in the registered email address as soon as possible.

Thanks, PM_Dialog

Pages

Topic locked