⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
11个帖子/ 0新
最后一篇
Herochua617.
离线
最后一次露面:3 years 11 months ago
加入:2017-01-18 12:46
HRP档案创作

你好呀,

我正在遇到HRPS配置文件。我正在尝试创建一个HRP配置文件,以便它可以与传感器连接。我遵循UM-003的示例,以便播放实现心率概况,我还阅读了关于它的链接(https://support.dialog-semiconductor.com/hrps-application-side)。在我的附件中是我在Keil MDK中获得的错误。谢谢!

附件:
Device:
lt_dialog(未经验证)
嗨Herochua617,

嗨Herochua617,
你定义了这个结构吗?struct bass_create_db_cfm?您需要定义一个,更好地使用正确的名称,例如struct hrps_create_db_cfm.便于维护。作为要定义的结构的内容以及要放入结构的位置,您可以参考BASS的完成方式。

Herochua617.
离线
最后一次露面:3 years 11 months ago
加入:2017-01-18 12:46
你好呀,

你好呀,

I have already changed the definition of struct bass_create_db_cfm to struct hrps_create_db_cfm and some of the errors have gone. However, I would like to ask any suggestion for my remaining errors? Thank you very much! I have declared the #include "app_hrps.h". You can have a look on the attachment that I have attached to this message.

Herochua617.
离线
最后一次露面:3 years 11 months ago
加入:2017-01-18 12:46
你好呀,

你好呀,

I found that my heart rate profile cannot advertise. I do not know where is the problem and it seems I have already done all the configuration and there is no error detected from Keil MDK of my coding. I hope that you can have a look. I have followed the linkhttps://support.dialog-semiconductor.com/hrps-application-side并且我修改了App_hrps和app_hrps_task的代码。我只看到BLE扫描仪应用中的设备信息,通用访问和通用属性,我看不到心率概况。请谢谢!(附件4)

附件:
lt_dialog(未经验证)
嗨hereochua617,

嗨hereochua617,
您能检查是否正确定义了关联的宏?

Herochua617.
离线
最后一次露面:3 years 11 months ago
加入:2017-01-18 12:46
嗨lt_dialog,

嗨lt_dialog,

我已经将App_hrps.c和app_hrps_task.c分别与app_diss.c和app_diss_task.c中进行了比较,我已经删除了#if hrps_disabled和#if hrps_idle ||ble_hr_sensor。Keil MDK我没有错误。我发现我需要定义uuid吗?或者它已经在HRPS.C和HRPS_TASK.C中完成。除此之外,我不需要遵循示例128示例,因为Sample128用于制作新配置文件,并且由于HRP配置文件已存在于源文件中。但是,我仍然想知道问题在哪里。我看不到BLE扫描仪应用中的心率档案。谢谢,顺便说一句,我需要改变这个(附件5),以便使它宣传?

附件:
mt_dialog.
离线
最后一次露面:2个月1周前
职员
加入:2015-06-08 11:34
嗨Herochua617,

嗨Herochua617,

心率形象在SDK只有the implementation of the profile and not how the application will handle it (for example the DISS profile has an implementation of the application side, the DISS profile besides the diss.c and diss_task.c files it also has available the files app_diss.c and app_diss_task.c files, those files give the ability to your application to handle the functionallity of the profile itself). So in order to use the hrp profile you will have to create those file and handle the messages that the profile will exchange with your application. Please have a look at the FAQ's on the support site at the Software Implementation section, there are a couple of FAQ's that explain this aspect of the profile and also the hrp is a standard profile with a 16Bit UUID, it has nothing to do with 128Bit example. Assuming that you ve allready done that (i mean create the app_....c file for the heart rate profile) if your device isn't able to advertise then i assume that something is wrong withe the database creation. For example, lets take the diss profile As soon as you create the database the diss_create_db_req_handler() should execute and send a message DISS_CREATE_DB_CFM that your application should handle. The app_diss_task.c file should handle that message and the diss_create_db_cfm_handler should execute, after that function has executed and initialized the database with the required values it should send an APP_MODULE_INIT_CMP_EVT in order for the device to continue to the next profile or start the advertising procedure. If the completion message from the profile isn't handled then the device won't proceed to the advertising procedure or initiate your next profile, if there is one.

谢谢mt_dialog.

Herochua617.
离线
最后一次露面:3 years 11 months ago
加入:2017-01-18 12:46
你好呀,

你好呀,

I have initialized all the handlers. I do not know where I have gone wrong since I referred to the app_diss_task.c. Please refer to the attachment 6. But I found that there is a problem that is being showed up. When I load my codes into the development kit once I plugged into the board to the pc, the code able to load into the development kit but the heart rate profile cannot be advertised and only device information service is there with Generic access and attribute. However, I found that when I try to load the code the second time by pressing the debug key in Keil MDK, I found that the link between the board with the PC will suddenly being shutdown and what is the reason, this is happening and it might be the reason why my heart rate service is not being advertise. Thank you very much, MT_Dialog.

附件:
Herochua617.
离线
最后一次露面:3 years 11 months ago
加入:2017-01-18 12:46
你好呀,

你好呀,

I am able to see the profile now. But however, it seems that it is no giving any values when i turned on the notifications. Do you see any problems in my handlers? or app_hrps.c? Do I need to set a timer? And since I am not using the SDK 5, and I do not have the app_easy_timer so what is the easiest wat to implement a timer callback function? I would like to create a loop like in the custom profile in the sdk 5 where there is a function call app_adcvall_timer_cb_handler(). How can I implement the same thing in sdk 3?. Thanks

mt_dialog.
离线
最后一次露面:2个月1周前
职员
加入:2015-06-08 11:34
嗨Herochua617,

嗨Herochua617,

您必须调试这一点,以检查设备未到达广告程序的原因(将断点到代码应该通过的功能,并检查是否触发了正确的功能,以便触发正确的功能)初始化完成,我可以发布所发布的附件的内容是,在hrps_create_db_cfm_handler()函数中,您可以发送HRPS_CREATE_DB_CFM消息和APP_MODULE_INIT_CMP_EVT。HRPS_CREATE_DB_CFM消息由HRPS_TASK.C文件中的HRPS_CREATE_DB_REQ_HANDLER()发送,并且仅应该从HRPS_CREATE_DB_CFM_HANDLER()中发送APP_MODULE_INIT_CMP_EVT消息,以便声明数据库已启动,以便设备将继续初始化数据库或开始广告。关于JLINK和PC之间的丢失连接,我假设您使用超过5.0.4的SDK,并且您正在使用睡眠。因此,如果您想在FW执行时调试,则转到5.0.4 SDK或从项目中删除睡眠。

您是否从申请中发送任何东西,以便在另一边查看数据?请查看RW BLE心率概况(HRP)接口规范,在配置文件和API文档中,以便了解如何正确使用配置文件。还要关于SDK3中的计时器和常规SDK3文档您可以查看DocumentS部分,在已停止的文档中,SDK3文档。

谢谢mt_dialog.

Herochua617.
离线
最后一次露面:3 years 11 months ago
加入:2017-01-18 12:46
你好呀。

你好呀。

Thanks for your response. I have another question but is not very related to this forum topic so I've asked it in a new topic. Please follow up with this link (https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...)。非常感谢你。