You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wifi_Wait uses osEventFlagsWait to wait for input. The flags are set in AT_Notify based on the received data.
The problem I have is that if there is a timeout in osEventFlagsWait and then the data arrives later, the event flags get set by AT_Notify. And then the next call to Wifi_Wait returns immediately because the flags are already set, but the data is not valid. Then all the send/receive gets out of sync and the only fix it to restart the driver.
The solution is to explicitly clear the event flags in CmdSend using osEventFlagsClear before the command the transmitted.
The text was updated successfully, but these errors were encountered:
Wifi_Wait
usesosEventFlagsWait
to wait for input. The flags are set inAT_Notify
based on the received data.The problem I have is that if there is a timeout in
osEventFlagsWait
and then the data arrives later, the event flags get set byAT_Notify
. And then the next call toWifi_Wait
returns immediately because the flags are already set, but the data is not valid. Then all the send/receive gets out of sync and the only fix it to restart the driver.The solution is to explicitly clear the event flags in
CmdSend
usingosEventFlagsClear
before the command the transmitted.The text was updated successfully, but these errors were encountered: