如何在外部处理器示例中添加自定义配置文件

⚠️
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.
9个帖子/ 0新
Last post
Swkim112.
Offline
Last seen:2个月前1年
Joined:2019-11-16 02:26
如何在外部处理器示例中添加自定义配置文件

你好对话框

I did run prox_reporter_ext(target_apps\ble_examples\prox_reporter_ext\) & reporter (host_apps\windows\proximity\reporter).
(refer my previous post ->https://support.dialog-semicondiondiondum/forums/post/dialog-smartbond-bl ...)

- 我想在此示例应用程序中添加自定义配置文件。

Do i need to modify current examples (prox_reporter_ext & reporter)?
There are many documents to add custom profile in Integrated processot case,
但我无法在我的情况下找到任何文件(使用外部处理器)

你能给我建议如何添加客户档案?

I found this from UM-B-119, but can't find Ref.[16]

2.6.2. External Processor

在存在外部处理器的情况下或在中期和高复杂性应用中,DA14585 / 586/531可以用作由称为通用传输层(GTL)的专有协议从外部处理器控制的BLE界面亚博国际官网平台网址。DA14585 / 586/531可以容纳链路层,主机协议和配置文件,外部处理器将实现应用程序功能。这两个组件将通过GTL通过GTL进行通信,串行链路可以是UART或SPI。有关外部处理器配置的更多信息以及示例应用程序可以在参考中找到。[16]。

I'm using DA14531-00FXDEVKT-P & SDK 6.0.12


Thanks in advance.

设备:
PM_Dialog
Offline
Last seen:16小时55分钟前
Staff
Joined:2018-02-08 11:03
Hi swkim112,

Hi swkim112,

There isn't any implementation or user manual for how to add a custom profile in external host application. A possible solution might be to retrieve the data from the database by using a custom message and a custom function that reads the database from the 531 and returns a message over the GTL interface to your application. For example in the 531 prox_reporter_ext in the diss service there is a function diss_set_value_req_handler () that is used in order to set data in the database (its invoked by the windows application as soon as the application has a confirmation that the device has created the database). You can create an additional function in order to retrieve the data from the database with attmdb_att_get_value() and return the value over GTL. However, it’s not a straight-forward implementation and you should develop it by yourself. Do you have a project based on this kind of application?

谢谢,PM_Dialog

Swkim112.
Offline
Last seen:2个月前1年
Joined:2019-11-16 02:26
我能够添加findme目标

我能够将Findme目标和电池服务器添加到Prox_reporter_ext中,

但是当我尝试添加cust1时,有一个错误消息。

I added following into "user_profiles_config.h

#define CFG_PRF_FMPT // Find Me Profile Target role
#define CFG_PRF_BASS // Battery Service Server Role
#define CFG_PRF_CUST1 // custom 1 server

链接......
.\out_DA14531\Objects\prox_reporter_ext_531.axf: Error: L6218E: Undefined symbol rom_cust_prf_cfg (referred from jump_table.o).
Not enough information to produce a SYMDEFs file.
没有足够的信息来生成反馈文件。
Not enough information to list image symbols.
没有足够的信息来列出图像映射中的加载地址。
完成:4个信息,0警告和1个错误消息。
“。\ OUT_DA14531 \ Objects \ prox_reporter_ext_531.axf” - 1错误,0警告。

please help to fix this problem.

Thanks in advance.

PM_Dialog
Offline
Last seen:16小时55分钟前
Staff
Joined:2018-02-08 11:03
Hi swkim112,

Hi swkim112,

As it was mentioned in my previous comment, this will not be a straight-forward implementation. The rom_cust_prf_cfg is defined in the ROM code, so that’s why you are getting this error. Couple of modifications might be done and override some ROM variables. Can you please clarify why you need the custom profile in the pxp_reporter_ex? Which is the background for your requirement and what kind of application you are planning to develop? However, I will escalate your requirements internally and I will get back to you.

谢谢,PM_Dialog

Swkim112.
Offline
Last seen:2个月前1年
Joined:2019-11-16 02:26
Hi Dialog

Hi Dialog

感谢您的回复。

该项目用于启用IOT设备,抱歉我无法提及确切的项目目的。

My project requirements are same as reporter and need to add some profiles:

- find me target - IAS : is it same as proximity reporter's IAS?

- battery service : for battery status monitoring

- SUOTA : sw update

- additional custom profile : for read / write / notify some events to / from device

通过适合于设备发送一些数据(例如发送12b byte data to device)

要启用自定义配置文件,我对您有另一个查询。

- 当我用“empty_template_ext”项目构建时,我有以下错误,请检查此项。

compiling prf_utils.c...
compiling user_custs_config.c...
..\src\custom_profile\user_custs_config.c(69): error: #20: identifier "custs1_init" is undefined
custs1_init, NULL
.. \ src \ custom_profile \ user_custs_config.c:0警告,1错误
compling user_custs1_def.c.
compling user_periph_setup.c.
compling user_empty_template_ext.c
".\out_DA14531\Objects\empty_template_ext_531.axf" - 1 Error(s), 0 Warning(s).

谢谢。

PM_Dialog
Offline
Last seen:16小时55分钟前
Staff
Joined:2018-02-08 11:03
Hi swkim112,

Hi swkim112,

Let me escalate your question internally and I will get back to you as soon as possible.

谢谢,PM_Dialog

Swkim112.
Offline
Last seen:2个月前1年
Joined:2019-11-16 02:26
你好对话框,

你好对话框,

是否有任何进展?

I'm waiting your support, please update me.

谢谢,

PM_Dialog
Offline
Last seen:16小时55分钟前
Staff
Joined:2018-02-08 11:03
Hi swkim112,

Hi swkim112,

Apologies for the delay. Probably I missed your question. I don’t have any update yet, but I will ask the Team internally again.

谢谢,PM_Dialog

PM_Dialog
Offline
Last seen:16小时55分钟前
Staff
Joined:2018-02-08 11:03
Hi swkim112,

Hi swkim112,

Can you please indicate why you need to add the custom profile in the DA14531 side? Since you would like to read / write / notify some events to / from device, you can do ii from the external device. So, you will have the custom profile in the external host, and you will need to send events to the DA14531 over GTL. Also, is your DA14531 acting as a central or as a peripheral? Do you need to add the custom profile to the pxp_reporter_ext just to enable it over the GTL?

谢谢,PM_Dialog