使用DSPS设备演示提供了我尝试添加课题。
I've followed the Training_06_suota_example_v1.1_0.pdf and also thehttps://support.dialog-semicondiondiondiondum/guide/faq-da1458x-software-peri ...
我有一切要编译,我还检查了Prox Reporter源代码以比较。
However after everything compiles and loaded to test, I no longer see DSPS advertised in the Dialog DSPS app or see it in the SUOTA app.
The code seems to be running because I can see the quadrature encoder I wrote working and because I can see it on a different BLE scanning app and can connect and see its advertising data.
我认为问题是
#define user_advertise_data“\ x11 \ x07 \ xb7 \ x5c \ x49 \ xd2 \ x04 \ xa3 \ x40 \ x71 \ xa0 \ xb5 \ x35 \ x85 \ x3e \ xb0 \ x83 \ x07”
adv_uuid_suotar_service.
我不认为我了解如何正确地格式化user_advertise_data。“\ x11 \ x07 \ xb7 \ x5c \ x49 \ xd2 \ x04 \ xa3 \ x40 \ x71 \ xa3 \ x40 \ x71 \ x85 \ x3e \ x35 \ x85 \ x3e \ xb0 \ x83 \ xb0 \ x83 \ x07”这是默认的DSPS字符串。
感谢您的帮助!
我认为我开始得到它,我编辑了在定义的末尾添加了adv_uuid_suotar_service(“\ xf5 \ xfe”/ * suotar service * /),并将大小从0x11更改为0x13
#define USER_ADVERTISE_DATA "\x13\x07\xb7\x5c\x49\xd2\x04\xa3\x40\x71\xa0\xb5\x35\x85\x3e\xb0\x83\x07\xF5\xFE"
I also added it to:
#define sps_service_uuid {0xb7,0x5c,0x49,0xd2,0x04,0xa3,0x40,0x71,0xa0,0xb5,0x35,0x85,0x3e,0xb0,0x83,0x07,0xF5,0xFe}
#define sps_server_tx_uuid {0xb8,0x5c,0x49,0xd2,0x04,0xa3,0x40,0x71,0xa0,0xb5,0x35,0x85,0x3e,0xb0,0x83,0x07,0xF5,0xFe}
#define sps_server_rx_uuid {0xba,0x5c,0x49,0xD2,0x04,0xa3,0x40,0x71,0xa0,0xb5,0x35,0x85,0x3e,0xb0,0x83,0x07,0xF5,0xFe}
#define sps_flow_ctrl_uuid {0xb9,0x5c,0x49,0xd2,0x04,0xa3,0x40,0x71,0xa0,0xb5,0x35,0x85,0x3e,0xb0,0x83,0x07,0xF5,0xFe}
However, when I try to compile I get these errors:
.. \ .. \ common \ src \ profiles \ spss \ user_sps_config.h(94):错误:#146:太多初始化值
static const struct att_uuid_128 sps_service = {
ps_service_uuid};
searching further I see a define in att.h (ATT_UUID_128_LEN) I added 2 bytes to it and it compiles and works. I can see the device in the DSPS app. Nothing on the SUOTA app though.
Edit:
该应用程序似乎不稳定,它在广告上显示了一次,但现在它只在Arch_System.c中崩溃后崩溃
Changing ATT_UUID_128_LEN back to 0x0010 fixed the crashing problem. Need to figure out how to add the SUOTA adv string and not crash now...
......
嗨DLO,
Suota是一个配置文件,DSP是一个演示项目,所以为了使DSPS的偶像功能您必须要做的是将Suota配置文件添加到DSPS演示,除了OTA项目还有一些指导方针在软件实现部分中的常见问题解答(如何将Suota配置文件添加到我的SDK应用程序),对于5.0.3 SDK,与5.0.4 SDK相当相同。您将能够在支持网站的顶级菜单上找到常见问题解答部分,请检查下面的链接:
https://support.dialog-semicondiondiondum/guide/frequencess-asked-questions.
从您在您发布的内容中提到的,我想在开始教程中描述的过程之前,您已将Suota配置文件添加到DSPS项目。你能分享你定义广告数据吗?此外,表明有点清楚是非常有帮助的,这是你的问题吗?你能够拥有Suota,但你不知道如何将它添加到广告字符串中?
谢谢,PM_DIALOG.
你好,
在开始Suota之前,我尝试过常见问题,但它似乎并没有应用于DA14586,因为它使用了Suotar而不是Spotar,而且我没有找到Spotar文件Int He SDK文件夹的DSPS项目。我在用户配置模块中找到了#define文件,它已被包含在内。因此,我将Suotar文件添加到Keil的项目中,并在SDK示例中查看代理报告器中的辅线示例,以确保事项尽可能接近。
我认为偶然是在代码中正确实施的,但不是对苏格达应用程序的广告看。我试图解释的是我如何尝试放置广告:
这是原始的DSP广告字符串:
#define USER_ADVERTISE_DATA "\x11\x07\xb7\x5c\x49\xd2\x04\xa3\x40\x71\xa0\xb5\x35\x85\x3e\xb0\x83\x07"
这是修改的一个添加Adv_uuid_suotar_service
#define USER_ADVERTISE_DATA "\x13\x07\xb7\x5c\x49\xd2\x04\xa3\x40\x71\xa0\xb5\x35\x85\x3e\xb0\x83\x07\xF5\xFE"
Compiling this worked, but didn't show anything on the app either.
Then I also added it to:
#define sps_service_uuid {0xb7,0x5c,0x49,0xd2,0x04,0xa3,0x40,0x71,0xa0,0xb5,0x35,0x85,0x3e,0xb0,0x83,0x07,0xF5,0xFe}
#define sps_server_tx_uuid {0xb8,0x5c,0x49,0xd2,0x04,0xa3,0x40,0x71,0xa0,0xb5,0x35,0x85,0x3e,0xb0,0x83,0x07,0xF5,0xFe}
#define sps_server_rx_uuid {0xba,0x5c,0x49,0xD2,0x04,0xa3,0x40,0x71,0xa0,0xb5,0x35,0x85,0x3e,0xb0,0x83,0x07,0xF5,0xFe}
#define sps_flow_ctrl_uuid {0xb9,0x5c,0x49,0xd2,0x04,0xa3,0x40,0x71,0xa0,0xb5,0x35,0x85,0x3e,0xb0,0x83,0x07,0xF5,0xFe}
However, when I try to compile I get these errors:
.. \ .. \ common \ src \ profiles \ spss \ user_sps_config.h(94):错误:#146:太多初始化值
static const struct att_uuid_128 sps_service = {
ps_service_uuid};
进一步搜索我在Att.h(att_uuid_128_len)中看到了一个define我向它添加了2个字节并编译。然而,在此之后,当我尝试运行时它会崩溃。调试器向我展示了其中一个错误处理程序。
Attached is my project files without including the SDK files.
谢谢您的支持!
嗨DLO,
The key information for SUOTA application is to check is the complete list of 16bits service UUID, to see whether it's 0xFEF5, otherwise the device will be filtered off.
因此,请更新广告数据如下:
#define user_advertise_data“\ x11 \ x07 \ xb7 \ x5c \ x49 \ xd2 \ x04 \ xa3 \ x40 \ x71 \ xa0 \ xb5 \ x35 \ x85 \ x3e \ xb0 \ x83 \ x07 \x03\x03\xF5\xFE“
将16bits服务的完整列表添加到广告数据的“0x03,0x03,0xf5,0xF5”。
谢谢,PM_DIALOG.
谢谢你!这是非常informative.