Regarding Serial Port Service in SDK 3

⚠️
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.
6 posts / 0 new
Last post
herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
Regarding Serial Port Service in SDK 3

Hi there,

This document UM-B-038 is using the SDK 5 for the Serial Port Service. I am just curious, can I do SPS in SDK 3 instead? This is because I know how to create a profile in SDK 3 since there are documents for it whilst for SDK 5, there are only document for creating a custom profile. Thanks.

Device:
JE_Dialog
Offline
Last seen:3 days 3 hours ago
工作人员
加入:2013-12-05 14:02
Hi There, please see Tutorial

Hi There, please see Tutorial 2 & 3 on the tutorials section on the "documents" tab. These explain how to add custom profiles. We dont support the DSPS on SDk3, only on SDk5.

BR JE_Dialog

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

Hi herochua617,

Since the SDK5 is the most recent SDK that carries all the fixes and patches, this is what Dialog suggests in using, yes it is possible to backport the DSPS from SDK5 to SDK3 (as mention by JE this is not supported) but this will take you much longer to do so, than start learning using the custom profiles on SDK5 (which by the way are much more simpler than using the custom profiles from SDK3). If you would like my personal opinion you should start getting familiar with SDK5 and not with the SDK3, there are also documents for custom profiles in SDK5, apart from the tutorials mentioned, you can have a look at the UM-B-051_DA1458x_Software Platform Reference.pdf in Appendix D. Additionally in the SDK5 itself the projects app_ble_profile and app_ble_peripheral have examples in using the custom profile on SDK5.

Thanks MT_dialog

herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
Hi MT_dialog,

Hi MT_dialog,

如果我想实现的heart rate profile in the SDK 5 instead of using the custom profile? Which documents should I refer to? I can copy the source file of hrps from SDK 3.

Thanks

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

Hi herochua617,

Please dont post questions on irrelevant topics, you can always create a new thread.

Regarding your question, yes you can implement the hrp profile on SDK5 you need to include the profile layer hrps.c and hrps_task.c and then you need to create the app_hrps.c/.h and app_hrps_task.c/.h in order to interface with the profile level. Please check for some quidelines in the FAQ, in the Software Implementation section "How can i add a profile to my project when there isn't an implementation on application level ?".

Thanks MT_dialog

herochua617
Offline
Last seen:3 years 11 months ago
加入:2017-01-18 12:46
Thanks. It helps.

Thanks. It helps.