cancel
Showing results for 
Search instead for 
Did you mean: 

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

elharrar
Associate II
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
7 REPLIES 7
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

Posted on March 14, 2017 at 06:07

Ok thank you very much

Sent from my iPhone

Posted on March 14, 2017 at 06:57

Hi Jery,

Maybe you can help me.

I'm checking if it is not better to port the ST Cube wifi library on my board instead of rewriting new parser.

Can you tell me what are the following timing:

1) Wifi_TIM_Handler

2) Systick_Isr

Thanks

Mikael

Sent from my iPhone

Posted on March 14, 2017 at 13:28

Timings are 10ms for the TIM_Handler and 1ms for the tick_Isr.

Posted on March 14, 2017 at 13:57

Thank you very much...

And the last question (I promise you )

Is the UART_RxComplete_Callback is called in interrupt context or not ?

Thanks

Mikael

Sent from my iPhone

Posted on March 15, 2017 at 10:29

yes, it is

Posted on March 15, 2017 at 10:58

Thanks

Sent from my iPhone