cancel
Showing results for 
Search instead for 
Did you mean: 

Error : Data Mode not available ?

nandyeezforu
Associate II
Posted on October 27, 2015 at 16:15

Hi,

I am using SPWF01SC.11

I used the command AT+S.SOCKD=8825 on the hyper terminal and received OK

so the module is in data mode.

Now I want the module to go back to  command mode, so I typed AT+S. also tried with escape but i got an ERROR: Data Mode not available

How I can get back to data mode ?

Second Method:

SocketServer is: 172.32.144.1

+WIND:61:Incoming Socket Client:172.32.144.2

(now the client is connected with the server and working fine )

+WIND:60:Now in Data Mode

(I disconnected the client and it went back to Command mode)

+WIND:59:Back to Command Mode (If I want it to go back to Data Mode ?)

+WIND:62:Socket Client Gone:172.32.144.2

AT+S.

ERROR: Data mode not available

(Even after disconnect I am keep on getting the below message why it so ?)

+WIND:29:DHCP reply for 172.32.144.2/T9:D0:FR:59:U5:RR

+WIND:29:DHCP reply for 172.32.144.2/T9:D0:FR:59:U5:RR

+WIND:29:DHCP reply for 172.32.144.2/T9:D0:FR:59:U5:RR

2 REPLIES 2
Posted on October 27, 2015 at 16:55

Hi John,

>>> I used the command AT+S.SOCKD=8825 on the hyper terminal and received OK 

so the module is in data mode.

This is wrong. Module is into DataMode in WIND:60:Now in Data Mode. This happens (the first time) after incoming socket client (WIND:61).

>>> How I can get back to data mode ?

You can leave DataMode only when DataMode is available.

If you provide an AT-command, and module gives you a reply, this is called ''Command Mode''.

Once in DataMode, pass the escape sequence to module, and you'll get the ''WIND:59:Back to Command Mode''

>>> If I want it to go back to Data Mode ?)

When (TCP) socket client disconnects, socket server come back to Command Mode, and Data Mode is no more existent. You cannot switch to Data Mode, since there is no client to send bytes.

>>> Even after disconnect I am keep on getting the below message why it so ?

Because you're in miniAP mode, and socket server/client are not related to DHCP/DNS or other 802.11 messages.

I suggest you to take a look at hands-on documents
nandyeezforu
Associate II
Posted on October 27, 2015 at 17:14

Hi Gerardo,

Thanks a lot

I am clear with this concept now