Skip to main content
elharrar
Associate III
March 13, 2017
Question

switch from async mode ( WIND) to normal AT CMD in UART stream

  • March 13, 2017
  • 1 reply
  • 1820 views
Posted on March 13, 2017 at 11:43

Hi guys,

I'm using SPWF001 and wanted to write my parser since the host MCU is not STM32 (so I cant use the example). 

Simple question: If the module is in the middle of +WIND:xx:yyy, and I send an AT Command, is the current string is cut or the module will finish the string and will respond to AT Command.

In other words, is this possible:

<cr><lf>+WIND:xx:yyy<cr><lf>OK<cr><lf>yyyyyyy<cr><lf>

or it will always be:

<cr><lf>+WIND:xx:yyyyyyyyyy<cr><lf>

<cr><lf>OK<cr><lf>

THANKS YOU

#spwf01 #spwf01sa1
    This topic has been closed for replies.

    1 reply

    Gerardo GALLUCCI
    ST Employee
    March 13, 2017
    Posted on March 13, 2017 at 19:29

    Hi Mikael,

    both hypotesis are wrong  

    WINDs are queued/delayed from 'a' of AT-command to 'CrLf' of resulting OK/ERROR. So, your parser will never receive an indication during command execution.

    jerry

    elharrar
    elharrarAuthor
    Associate III
    March 14, 2017
    Posted on March 14, 2017 at 06:07

    Ok thank you very much

    Sent from my iPhone