Hi,
I am using STM32L4 microcontroller and the BOOSTXL-CC3135 WIFI module interfaced through SPI,
The BOOSTXL-CC3135 WIFI module is connected with cables with an STM32L4 Nucleo board, and this, only in a prototype demonstration purpose.
I have successfully ported the CC3135 driver that I found in the simplelink_sdk_wifi_plugin_2_40_00_22, and I used the DPL source files that I found under the simplelink_cc32xx_sdk_3_30_01_02\kernel\freertos\dpl SDK to interface the CC3135 module with FreeRTOS,
I am also using MQTT network layer that I found under simplelink_cc32xx_sdk_3_30_01_02, and I ported the code example that I found under simplelink_sdk_wifi_plugin_2_40_00_22\examples\rtos\MSP_EXP432E401Y\demos\mqtt_client.
I tested with the "test.mosquitto.org" broker, and as a result, I have only 1Mbps as a throughput test result,
Is there any way to increase my MQTT publish throughput ? Note that I am using my maximum SPI Prescaler (15 Mbps)
When reading the CC3135 Programmer's Guide, I found that I should change Socket Properties, as PHY Data Rate and TW Power just after the socket creation,
so in the MQTTNet_commOpen function, and just after socket creation, I added theses functions :
int16_t Status;
uint32_t rate = 1;
Status = sl_SetSockOpt(socketFd, SLNETSOCK_LVL_PHY, SLNETSOCK_OPPHY_RATE, &rate, sizeof(rate));
if (Status)
{
/* Error */
__BSW_PRINTF(" Error ! \n");
}
uint32_t TxPower = 1; /* valid range is 1-15 */
Status = sl_SetSockOpt(socketFd, SLNETSOCK_LVL_PHY, SLNETSOCK_OPPHY_TX_POWER, &TxPower, sizeof(TxPower));
if (Status)
{
/* Error */
__BSW_PRINTF(" Error ! \n");
}
unfortunately, these functions always returns (-1) as a Status result.
What did I miss to make these functions return wrong results ?
Are theses functions let me have a better throughput ?
Should I modify MQTT function ? or is there any function callBack that let me modify socket option without modifying MQTT library ?
Regards,
Ghada