- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi cypress team,
I am working on CYBT-343026 with SPP sample code. we'd like to improve SPP throughput, how can we tune the parameters within wiced_bt_l2cap_cfg_information_t based on SPP example code
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can try to use the following to configure the parameters.
/**
*
* Function wiced_bt_l2cap_register
*
* Other layers call this function to register for L2CAP
* services.
*
* @param[in] psm: PSM value
* @param[in] p_cb_info: L2CAP cb info
* @param[in] context: Caller context to return in callbacks
*
* @return PSM to use or zero if error. Typically, the PSM returned
* is the same as was passed in, but for an outgoing-only
* connection to a dynamic PSM, a "virtual" PSM is returned
* and should be used in the calls to wiced_bt_l2cap_connect_req()
* and BTM_SetSecurityLevel().
*
*/
uint16_t wiced_bt_l2cap_register (uint16_t psm, wiced_bt_l2cap_appl_information_t *p_cb_information, void *context);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's the through put speed you expect?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Our packet is not so large but it comes very fast. So we don't need large MTU but the minimum latency.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe 50-150byte per packet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you test it with the default parameter? Per my experience, the default parameter should satisfy your application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you tell me what's the default value of wiced_bt_l2cap_cfg_information_t and how can we modify it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The parameters are configured in different places. It is configured by the upper layer. For example, if you are using the RFCOMM, the FCS should be enabled by default which is defined in the profile.
If you want to change the flush timeout, you can use the API wiced_bt_l2cap_set_flush_timeout().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have already tried wiced_bt_l2cap_set_flush_timeout(), but we want to configure this structure :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can try to use the following to configure the parameters.
/**
*
* Function wiced_bt_l2cap_register
*
* Other layers call this function to register for L2CAP
* services.
*
* @param[in] psm: PSM value
* @param[in] p_cb_info: L2CAP cb info
* @param[in] context: Caller context to return in callbacks
*
* @return PSM to use or zero if error. Typically, the PSM returned
* is the same as was passed in, but for an outgoing-only
* connection to a dynamic PSM, a "virtual" PSM is returned
* and should be used in the calls to wiced_bt_l2cap_connect_req()
* and BTM_SetSecurityLevel().
*
*/
uint16_t wiced_bt_l2cap_register (uint16_t psm, wiced_bt_l2cap_appl_information_t *p_cb_information, void *context);