在HTPT配置文件中无法找不到“task_app_ht”

13个帖子/ 0新
最后一篇
rongame.
离线
最后一次露面:6年2个月前
加入:2014-12-17 05:26
在HTPT配置文件中无法找不到“task_app_ht”

SDK版本:3.0.6
芯片组:DA14580

我需要获得健康的温度,所以我添加了健康温度计曲线温度计配置文件,并在Ak_apps \ keil_projects \ template \ template_fh \ fh_project_template.uvProj上进行测试基础。

要将HTPT配置文件添加为这些步骤:
。#define cfg_prf_htpt 1
#define cfg_app_ht.
in file 'da14580_config.h'

。add the file 'app_ht.c' 'app_ht_task.c' into group 'app' in keil IDE
。添加'.. \ .. \ .. \ src \ modules \ app \ src \ app_profiles \ ht'到项目的包含路径
。将以下指令添加到文件'app_template_proj.h'中
#if(ble_ht_thermom)
#include“app_ht.h”
#include“app_ht_task.h”
#万一

。将指令添加到文件'app_template_proj.c'中

。function bool app_db_init_func(void)
#if(ble_ht_thermom)
案例(app_ht_task):
{
app_ht_create_db_send();
} 休息;
#endif // ble_user_prof_server.

。函数void app_init_func(void)
#if(ble_ht_thermom)
app_ht_init();
#万一

。function void app_connection_func(struct gapc_connection_req_ind const *param)
#if ble_ht_thermom.
app_ht_enable_prf(app_env.conhdl);
#endif // ble_ht_thermom.

After doing these, when build the project but fail , and it shows the 'TASK_APP_HT' is undefined. Would you please help me to add the HTPT profile to my project?

py_dialog.
离线
最后一次露面:2 years 10 months ago
职员
加入:2014-08-25 09:59
嗨rongame,

嗨rongame,

请在枚举ke_task_type中添加定义task_app_ht在枚举ke_task_type中,并在路径中添加此头文件。

Regards!
PY

rongame.
离线
最后一次露面:6年2个月前
加入:2014-12-17 05:26
非常感谢!

非常感谢!

cmnguyen
离线
最后一次露面:5年1周前
加入:2015-04-14 20:40
到目前为止,我设置了

到目前为止,我设置了通信,但是当我使用ConnectionManager读出有效载荷时,我没有无法从UUID 0x2a1c和0x2a1d的温度值。无论我在代码中更改了什么,UUID 0x2a1d和测量间隔0x2a21中的测量类型始终读取01和00。如果你有任何建议,我真的很欣赏。谢谢。

rongame.
离线
最后一次露面:6年2个月前
加入:2014-12-17 05:26
建造是可以的

建立项目是可以的。但运行此项目后,我发现UUID 0x2A1C(温度测量)和UUID 0x2A1E(中间温度)无法读取。但UUID 0x2a1d,0x2a21是可以的。为什么?

cmnguyen
离线
最后一次露面:5年1周前
加入:2015-04-14 20:40
你知道如何解决这个问题

你知道如何解决这个问题。我面对同样的事情。因为我迷路了挖掘代码,这真的很生气。只想知道你是否找到解决方案?

mboudreacult
离线
最后一次露面:11个月2周前
加入:2015-05-22 14:10
Hi ,

Hi ,

你弄清楚问题是什么吗?
我面临着同样的问题。

谢谢。

je_dialog.
离线
最后一次露面:1个月5天前
职员
加入:2013-12-05 14:02
Hi There, I wasn't clear

嗨,在那里,我不清楚你回复哪个部分的线程:你看过AN-B-029 WHCH是一个新的一步一步一步的创建自定义配置文件 - 它也是一个很好的普遍调试指南来了解如何SDK与UUID相关的工作。BR JE_DIALOG.

mboudreacult
离线
最后一次露面:11个月2周前
加入:2015-05-22 14:10
是的,我已经通过了

是的,我已经通过了文件。
Turns out I just found out how to fix it.

App_htpt依赖于计时器实例来生成其随机数据。我最初虽然在初始化配置文件时将启动此计时器。它不是。计时器在htpt_meas_intv_chg_ind_handler中唯一的位置。此函数管理测量间隔(INTV)特性的变化。因此,为了启动计时器(在保持原始HTPT结构的同时),我们需要覆盖间隔特征(由客户端完成,例如电话)。

完成此操作后,配置文件将在数据库中启动泵送数据。但是,我仍然无法读取这些价值观。我必须启用“表示”温度测量特性的“指示”属性。

这对我来说是这样做的。我周期性地从HT配置文件收到数据。

希望这可以帮助某人。

PS:这有什么意义对你,JE吗?

wuzesheng
离线
最后一次露面:5 years 4 months ago
加入:2014-11-14 11:24
我跑了相同的程序,

我跑了相同的程序,并出错了这样:
.. \ .. \ .. \ .. \ .. \ .. \ .. \ src \ modules \ app \ src \ app_profiles \ ht \ app_ht_task.c(35):错误:#5:无法打开源输入文件“app_display.h”:没有这样的文件或目录

我无法在SDK目录下找到名为'app_display.h'的文件,如何解决这个问题?

mansonhui
离线
最后一次露面:1 year 5 months ago
加入:2014-07-15 10:33
I comment the include file

我评论包含文件'app_display.h'。

mansonhui
离线
最后一次露面:1 year 5 months ago
加入:2014-07-15 10:33
我想开发一个ble

我想开发一个BLE健康温度计,使用标准的HTP配置文件,我的SDK是SDK5.0.1,但如何开始我的设计?

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

嗨Mansonhui,

你必须增加你的模板部分概要文件and then create the the app_htc_task and app_htc in order to interact with the profile. You can check the app implementation of the thermometer profile in the SDK3 in order to get an idea about the implementation (DA14580_581_583_SDK_3.0.10\dk_apps\src\modules\app\src\app_profiles\ht). To add the profile in SDK5 you just have to add the header file of the profile you need in the user_profiles_config.h in the profiles area. Check the UM-B-051 and the UM-B-050 pdf in order to get started with the new SDK.

谢谢mt_dialog.