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:
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
你好,我使用DA14580_ANCS_3.120.1.5 编译出来的程序,烧到固件能检测到信号,但是检测到0个服务,因此没法和手机建立连接,请问您知道是什么原因么?
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
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
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
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
Hi ppaszkow,
A mail has been sent to the registered email address.
Thanks MT_dialog
Great, thank you!
Hi MT_dialog:
你能给我一个例子在SDK5小区呢?? I tried it but have many errors.
Thanks.
hi dialgo staff, could you give me a example about ANCS in SDK5 too? Thanks
Hi dobin
A mail has been sent to the registered email address.
Thanks MT_dialog
Hi orient,
A mail has been sent to the registered email account.
Thanks MT_dialog
Hi MT_dialog:
你能给我一个例子吗NCS in SDK5 too??
Thanks.
Hi eochoa13,
A mail has been sent to the registered email address.
Thanks 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!
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
Hi MT_dialog:
你能给我一个例子吗NCS in SDK5 too??
Thanks.
Hi Beck Peng,
A mail has been sent to the registered email.
Thanks MT_dialog
Hi MT_dialog:
你能给我一个例子吗NCS in SDK5 too??
Thanks.
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
followed your instruction, permission granted. Hopefully you can send me code example now. (ANCS in SDK 5).
thank you.
Hi politec,
A mail has been sent to the registered email address.
Thanks MT_dialog
Thank you
Hi MT_dialog:
你能给我一个例子吗NCS in SDK5 too?
Thanks.
Hi KeNT,
A mail is sent to the registered email address.
Thanks MT_dialog
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
Could you send an example code about ANCS application in SDK5 also to me, please.
Hi Nobu,
A mail is sent to the registered email address.
Thanks MT_dialog
Hi MT_dialog:
Could you give me an example about ANCS in SDK5 too?
Thanks.
Hi sanpo_brain,
A mail is sent to the registered email address.
Thanks MT_dialog
Thank you for a reply.
However, the email did not arrive.
Will you send it once again?
Hi sanpo_brain,
The mail is re-sent to the registered email address.
Thanks MT_dialog
I received it.
Thank you !
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.
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
A consumption current fell down.
Thank you!
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.
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
Hi MT_dialog:
Could you give me an example about ANCS in SDK5 too?
Thanks.
Hi yuangang0101,
A mail is sent to the registered email address.
Thanks MT_dialog
Could you give me an example about ANCS in SDK5 too? Now I am going to change from the SDK3 to the SDK5, Thanks!
Hi Kingwheat,
A mail is send to the registered email address.
Thanks MT_dialog
Could you give me an example about ANCS in SDK5 too?
Hi Tomoyuki Doi,
A mail is sent to the registered email address.
Thanks MT_dialog
Hi dialog,
Could you give me an example about ANCS in SDK5 too?
Hi Michaelxiao,
A mail is sent to the registered email address.
Thanks MT_dialog
Hi Dialog ,
I'm working on ANCS porting , Could you please give the example code in SDK5 for me?
Hi DanHuang,
A mail is send to the registered email address.
Thanks 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!
Hi EdwinHsu,
We will get contact with you in the registered email address as soon as possible.
Thanks, PM_Dialog
Pages