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

AIROC™ Bluetooth Forum Discussions

wenchilo
Level 4
First like received 25 replies posted 25 sign-ins
Level 4

Hi, I am using CYBT343026 with spp project, and I want to increase the transport speed. But I can't find where to change the mtu size. Could you please tell me where to change the size of mtu.

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator 500 solutions authored 250 sign-ins 1000 replies posted
Moderator

Please refer to the API and structure. You can use the parameter rfcomm_mtu.

/**
* Following structure is used to register application with wiced_bt_spp library
*/
typedef struct
{
uint8_t rfcomm_scn; /**< Application selects RFCOMM SCN that
it publishes in the SDP and need to
pass the same value for library to use. */
uint16_t rfcomm_mtu; /**< MTU to be be used by the RFCOMM layer */
wiced_bt_spp_connection_up_callback_t p_connection_up_callback; /**< iAP2 connection established */
wiced_bt_spp_connection_failed_callback_t p_connection_failed_callback; /**< iAP2 connection establishment failed */
wiced_bt_spp_service_not_found_callback_t p_service_not_found_callback; /**< iAP2 service not found */
wiced_bt_spp_connection_down_callback_t p_connection_down_callback; /**< iAP2 connection disconnected */
wiced_bt_spp_rx_data_callback_t p_rx_data_callback; /**< Data packet received */

} wiced_bt_spp_reg_t;

/**
* Function wiced_bt_spp_startup
*
* Initialize SPP library and starts the RFCOMM service.
*
* @param[in] p_reg : Registration control block that includes RFCOMM SCN and callbacks
* @return wiced_result_t : Result of operation
*/
wiced_result_t wiced_bt_spp_startup(wiced_bt_spp_reg_t *p_reg);

View solution in original post

0 Likes
1 Reply
Owen_Zhang123
Moderator
Moderator 500 solutions authored 250 sign-ins 1000 replies posted
Moderator

Please refer to the API and structure. You can use the parameter rfcomm_mtu.

/**
* Following structure is used to register application with wiced_bt_spp library
*/
typedef struct
{
uint8_t rfcomm_scn; /**< Application selects RFCOMM SCN that
it publishes in the SDP and need to
pass the same value for library to use. */
uint16_t rfcomm_mtu; /**< MTU to be be used by the RFCOMM layer */
wiced_bt_spp_connection_up_callback_t p_connection_up_callback; /**< iAP2 connection established */
wiced_bt_spp_connection_failed_callback_t p_connection_failed_callback; /**< iAP2 connection establishment failed */
wiced_bt_spp_service_not_found_callback_t p_service_not_found_callback; /**< iAP2 service not found */
wiced_bt_spp_connection_down_callback_t p_connection_down_callback; /**< iAP2 connection disconnected */
wiced_bt_spp_rx_data_callback_t p_rx_data_callback; /**< Data packet received */

} wiced_bt_spp_reg_t;

/**
* Function wiced_bt_spp_startup
*
* Initialize SPP library and starts the RFCOMM service.
*
* @param[in] p_reg : Registration control block that includes RFCOMM SCN and callbacks
* @return wiced_result_t : Result of operation
*/
wiced_result_t wiced_bt_spp_startup(wiced_bt_spp_reg_t *p_reg);

0 Likes