cancel
Showing results for 
Search instead for 
Did you mean: 

SPWF04S stops to receiving command after ''AT+S.WIFI=0'' in SPI mode

Dat Tran
Senior II
Posted on December 14, 2017 at 15:10

Hi,

We are trying to communicate with SPWF04S over SPI interface. We can send commands to set or get wifi configurations.

Problem just happens when we try to send 'AT+S.WIFI=0'. In SPI mode, this command will be converted to

'0x02, 0x00, 0x04, 0x32, 0x01, 0x01, 0x30'.

SPWF04S detected this command and return 2 packages:

The first is:

'0x02, 0x32, 0x00, 0x00, 0x00'

Second is:

'0x02, 0x12, 0x31, 0x01, 0x00'

The second package shows there is 1 byte payload can be read but the SPI_IRQ pin is no longer pull to low after the second package, so we can't read this byte. If we try to read, response looks random data.

Worse thing is, we tried send another commands after that, SPI_IRQ is always high and look like SPWF04S couldn't detect these commands and stops response. Reset the module is needed in this case.

'AT+S.WIFI=0' works fine in UART mode.

Our SPI configurations should be OK since all other commands look OK.

Thank for your help!

2 REPLIES 2
Posted on December 15, 2017 at 10:16

Are you using both updated packages? (module FW1.1 and WIFI1 package 3.1.0)

WiFi off should give you:

OK, WIND:49 (with payload), and WIND:38

You get: OK, WIND:49 (without payload)

Can you please turn off that WIND (via wind_off_medium variable) and try again? Just to check where is the problem...

Posted on December 15, 2017 at 15:38

Hi,

We have a solution for now.

Tried at 4MHz:

1.0.0 is OK.

1.1.0 is failed.

Tried at 8MHz:

1.0.0 is OK.

1.1.0 is OK.

We don't change anything in our application. just switch between these 2 firmware and try.