2018-01-15 02:08 AM
Hi to all,
I'm working on NUCLEO F411RE board with WiFi platform NUCLEO WIFI SPWFSA01; I'm using the X_NUCLEO_IDW01M1v2 mbed library to use this WiFi module. Library works perfectly but I'd like to read the WiFi 'WIND' asynchronous messages, not by polling but with an external event like interrupt or something like this; my goal is to waiting these WIND messages and if an event happens, reading them. The library is not projected to do this, because wind messages are asynchronous, but they have very important informations that I can't lost; I read every single word of this library but I can't find a solution for this problem. Have anyone solved yet this problem ? Please, could anyone suggest me a possible solution ?
Regards
Davide Urbano
#spwfsa01 #wifi2018-02-01 07:09 AM
You can patch HAL driver giving you the IDLE interrupt over UART.
*****
__HAL_UART_ENABLE_IT(huart, UART_IT_IDLE);
******
into msp, and
******
if (__HAL_UART_GET_FLAG(&huart1, UART_FLAG_IDLE) == SET) {
__HAL_UART_CLEAR_IDLEFLAG(&huart1); Parse(); }*******
into interrupt handler.
When something comes from the module, IDLE interrupt can wake up your parser...