Hi,
我正在尝试修改空的\u模板\u ext项目以使用cust1配置文件。我在user\u custs1\u def.h/.c文件中添加了我的特征详细信息,并在user\u profiles\u config.h中包含了“custs1.h”
当我发送消息来创建cust1 DB时,我没有收到任何回复。我附上了从主机发送和接收的消息的屏幕截图(这是主机\u proxr项目的修改版本)。
我已经通过修改prox\u reporter\u ext项目测试了这些特性的工作情况,这已经如预期的那样工作了。
I'm unable to find the function which handles the UART messages on the DA14580. Is there any way to debug this function?
谢谢,
戈特姆
关键词:
设备:
嗨,茨戈特姆,
我很抱歉,但对我来说,还不清楚是什么问题。你能澄清一下你的问题吗?
If I understood correctly, you would like to print debugging messages over UART? If yes, please try to use the arch_printf() function. Take a look at CFG_PRINTF macro in da1458x_config_basic.h header file.
谢谢,下午好
No, I'm not trying to print debug messages.
我试图使用emp custs1概要文件ty_template_ext project. When I send the CUSTS1_CREATE_DB_REQ message to the DA14580, I do not receive any reply from it.
嗨,茨戈特姆,
我的道歉-这是我这边的误会。让我查一下,然后再给你回电话。。
谢谢,下午好
Hi PM_dialog,
Any update on this issue?
嗨,茨戈特姆,
你能在调试模式下运行它并在app\u custs1\u create\u db()函数中添加一个break porin吗?是执行正确,还是代码卡住了?
谢谢,下午好
嗨,PM\U对话,
我使用的是外部UART模板,所以我相信app\u custs1\u create\u db()不会在外部项目中调用。我确实在custs1\u create\u db\u req\u handler()中放置了一个断点,但代码从未命中这个断点
Hi PM_dialog,
Any update on this issue?
嗨,茨戈特姆,
我的建议是按照pxp\u reporter\u ext添加自定义配置文件。在pxp\u reporter\u ext项目中,您可以了解如何启用接近监视器和光盘配置文件。然后,您应该在调试模式下运行它,尝试通过UART发送相应的命令,并检查app\u custs1\u create\u db()是否执行。请在那里添加一个断点,并检查该函数是否被触发。
谢谢,下午好
嗨,PM\U对话,
You have mentioned pxp_reporter_ext project but I couldn't find such a project under the target_apps folder. I take it that you meant the prox_reporter_ext project. I have a modified version of it where I have added the cust1 task and it works perfectly for prototyping. I don't have any issues in creating the db or connectiong to a device or sending data, it works as expected. But this is only for the prox_reporter_ext project.
But now I would like to make a project for production code and that's why I used empty_template_ext.
And as I have mentioned in one of my older comments, since this is an external program, is it required for app_custs1_create_db() to be called?? Because in user_custs_config.c when BLE_APP_PRESENT is 0 (which I believe is the case for external), app_custs1_create_db and app_custs1_enable are replaced by NULL and NULL. And the prox_reporter_ext project didn't have a definition for it.
谢谢
戈特姆
嗨,PM\U对话,
这个问题有进展吗?我快到我的最后期限了,如果这个问题能很快解决就太好了
嗨,茨戈特姆,
我的道歉-这是一个输入错误,我是指SDK的prox\u reporter\u ext项目。
Let me ask you some questions in order to understand the steps that you have already done :
In case of prox_reporter_ext project, the custom 1 profile is not included – only the proximity Monitor and the DISC profiles are enabled.
为此,您修改了pro\u reporter\u ext项目并添加了自定义1配置文件。
In this step, if I understood correctly there is not any problem - the app_custs1_create_db() is executed correctly.
Did you add a break point to verify it?
So, in case of empty_template_ext, you have followed exactly the same steps in order to include the custom1 profile. Is that correct?
However, the app_custs1_create_db() is never executed – (this is the problem). Please correct me if it is anything wrong.
您能在调试模式下运行空的模板扩展项目并在该函数中添加断点吗?什么是行为?断点是否命中,或者固件是否在任何地方得到堆栈(WDOG、NMI、任何断言等)?
谢谢,下午好
嗨,PM\U对话,
下面是你所问问题的答案
问:“app\u custs1\u create\u db()执行正确。你是否添加了一个断点来验证它?”
Ans: On my proxr_reporter_ext, I am able to connect to it and view the profile. So I believe the DB creation is occuring.
About if app_custs1_create_db is executed, I had tried it sometime ago and it did not hit the breakpoint. I will verify it again tomorrow and get back to you on that.
另外,如果我正确理解了下面的代码snippppet,那么ext项目不应该调用app\u custs1\u create\u db。
I believe that BLE_APP_PRESENT is 0 for external projects.
Q: "in case of empty_template_ext, you have followed exactly the same steps in order to include the custom1 profile. Is that correct?"
Ans: Yes, I have followed the same steps
问:“然而,app\u custs1\u create\u db()从未执行过–(这就是问题所在)”
答:我认为它没有被执行,也不确定是否应该为外部项目执行。
I'll place breakpoints in the function and check for assertions and confirm the behaviour tomorrrow. Please do let me know if app_custs1_create_db is supposed to be called for ext projects
谢谢
编辑:在我的项目文件夹中找不到app\u custs1\u create\u db。这个函数应该存在于DA14580或主MCU的代码中吗?
嗨,茨戈特姆,
Just to summarize : In case of prox_reporter_ext, did you add a BKPT into the app_custs1_create_db() ? Can you please indicate if the app_custs1_create_db() is getting triggered?
如果是,是否可以将其验证到空的\u模板\u ext()中?
我假设应该调用app\u custs1\u create\u db()。有没有可能分享这两个项目与您所做的修改?
谢谢,下午好
Hi PM_dialog,
对不起,the delay in replying. I got confused and was checking the target project for the definition of app_custs1_create_db. app_custs1_create_db is being called in the host project when I ran it with empty_template_ext.
I'll share the projects by tomorrow
谢谢
嗨,PM\U对话,
我将链接附加到proxr\u reporter\u ext和empty\u template\u ext的2个目标项目以及宿主windows proxr项目。
https://drive.google.com/file/d/1LUbIPkL4PQhfg8T8tT-a_YadCQJolqZm/view?u...
I couldn't upload them as it exceeded the size limit.
谢谢
戈特姆
嗨,PM\U对话,
你能尝试一下我分享的项目吗?有最新消息吗?
谢谢
嗨,茨戈特姆,
Apologies for my late response. Just run your projects, so find below my comments :
In case of prox_reporter_ext, the project is running properly ( as you have already mentioned ) – the device starts advertising - I can connect and see the PROXR, DISS , SPOTAR and CUSTS1 profiles. I am running both \binaries\host\windows\proximity\reporter\host_proxr_sdk.exe and your provided application.
In case of empty_template_ext, the device cannot start advertising neither with the usage of SDK host_proxr_sdk.exe nor your provided Windows application.
你能帮我查一下你那边是否有广告吗?
如果您在user\u profiles\u config.h中注释掉以下内容,则可以在prox\u reporter\u ext中复制:
#include "proxr.h"
#include "diss.h"
#包括“spotar.h”
This is expected because the host_proxr_sdk.exe send GTL commands for the creation of the aforementioned profiles too. If you include all the above profiles in your provided empty_template_ext project, you will see that the device will start advertising and the Custom 1 profile is also included.
如果您有兴趣只包括自定义1配置文件,那么您应该自己修改主机\u proxr \u sdk.exe,并仅为特定配置文件发送GTL命令。这不是一个直接的实现,因为您应该删除许多GTL命令。例如,您可以在UART信号上使用逻辑分析器,并检查您应该发送或不应该发送哪些命令。为此,我的建议是将你的项目建立在prox\u reporter\u ext的基础上。
谢谢,下午好