融合SPP到watch里面,SPP连接不上,出现0X06的error

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Leo_liu1
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

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

0 点赞
1 解答
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Leo,

Could you please increase the RFCOMM ports in wiced_bt_cfg_settings_t and try?

Thanks,

Anjana

在原帖中查看解决方案

4 回复数
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Leo,

Could you please increase the RFCOMM ports in wiced_bt_cfg_settings_t and try?

Thanks,

Anjana

Leo_liu1
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

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

0 点赞
Leo_liu1
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Hi Anjana,

Sorry,It's my fault,I write max_ports  as max_links in mistake.

Now,it works well,thanks.

BR,

Leo

0 点赞
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Leo,

Thanks for the confirmation.

Hope this thread also resolved then: (cyw20719/cyw20721)How to port SPP profile to watch demo?

Regards,

Anjana

0 点赞