Hi Sir,
目前在调试CYW20719,需要用到A2DP source +SPP的场景,我尝试把SPP demo移植到Watch demo里(手里没有20719EVK,暂时用20706测试的),出现以下log,导致SPP连接不上:
hci_control_spp_rfcomm_start_server: rfcomm_create Res: 0x6 Port: 0x0000
maxLinks:0 maxChannels:0 maxpsm:0 rfcom max links7, rfcom max ports:0
我跟踪了代码, Res:0x6 means:If there is not enough memory to allocate a control block structure.
我查了下可能是 wiced_app_cfg_buf_pools Buffer不够,我调整了如下参数,还是一样的问题:
/* { buf_size, buf_count } */
{ 64, 16 }, /* Small Buffer Pool */
{ 360, 4 }, /* Medium Buffer Pool (used for HCI & RFCOMM control messages, min recommended size is 360) */
{ 1024, 9 }, /* Large Buffer Pool (used for HCI ACL messages) */
{ 1024, 5 }, /* Extra Large Buffer Pool - Used for avdt media packets and miscellaneous (if not needed, set buf_count to 0) */
};
请帮忙分析是什么原因导致的,谢谢
Best Regards,
Leo
已解决! 转到解答。
Hi Leo,
Could you please increase the RFCOMM ports in wiced_bt_cfg_settings_t and try?
Thanks,
Anjana
Hi Leo,
Could you please increase the RFCOMM ports in wiced_bt_cfg_settings_t and try?
Thanks,
Anjana
Hi Anjana,
I have already tried like below:
.rfcomm_cfg = /* RFCOMM configuration */
{
.max_links = 7, /**< Maximum number of simultaneous RFCOMM ports */
.max_links = 7 /**< Maximum number of simultaneous RFCOMM connections */
},
const wiced_bt_cfg_buf_pool_t wiced_app_cfg_buf_pools[WICED_BT_CFG_NUM_BUF_POOLS] =
{
/* { buf_size, buf_count } */
{ 64, 16 }, /* Small Buffer Pool */
{ 272, 8 }, /* Medium Buffer Pool (used for HCI & RFCOMM control messages, min recommended size is 360) */
{ 1056, 3 }, /* Large Buffer Pool (used for HCI ACL messages) */
{ 1056, 2 }, /* Extra Large Buffer Pool - Used for avdt media packets and miscellaneous (if not needed, set buf_count to 0) */
};
But still got those logs:
hci_control_spp_rfcomm_start_server: rfcomm_create Res: 0x6 Port: 0x0000
maxLinks:0 maxChannels:0 maxpsm:0 rfcom max links7, rfcom max ports:0
Thanks,
Leo
Hi Anjana,
Sorry,It's my fault,I write max_ports as max_links in mistake.
Now,it works well,thanks.
BR,
Leo
Hi Leo,
Thanks for the confirmation.
Hope this thread also resolved then: (cyw20719/cyw20721)How to port SPP profile to watch demo?
Regards,
Anjana