cancel
Showing results for 
Search instead for 
Did you mean: 

Data Mode to Command Mode

Nandy K
Associate II
Posted on January 22, 2016 at 10:02

Hi!

I have connected my Wi-Fi module  with a client and now I am getting the commands

+WIND:61: Incoming Socket Client :172.31.142.2

+WIND:60: Now in Data Mode

now I want to get back to  command mode.

I have tried hitting escape button , Also I tried sending AT+S. without <CR><LF>

it is not working. How can i get back to command mode ?

Also they suggest to send escape sequence(how can i send escape sequence ?) 
13 REPLIES 13
Posted on January 22, 2016 at 10:09

I think you need to send the whole escape sequence without CR/LF and without delay between every char. Try to copy/paste the whole sequence (5 bytes).

Let me know if it works for you.

Nandy K
Associate II
Posted on January 22, 2016 at 10:24

Hi Gerardo !

I got stuck into another problem now

I tried to put my module into sleep using AT+CFUN=3 ; 

Now it is in deep sleep, I tried resetting power but still it is in sleep

How to wake him up ?

(sorry technically  not sound )

Posted on January 22, 2016 at 10:33

You need to use GPIO6 to enter/exit sleep mode (otherwise, WIND:69/WIND:70 cannot be controlled).

Once out of sleep, run CFUN=0 to set active mode again.

Nandy K
Associate II
Posted on January 22, 2016 at 10:37

Do I need to apply 5V at GPIO(6) ? to wake it up ?

Nandy K
Associate II
Posted on January 22, 2016 at 10:52

I got back my module from sleep 

I sent AT+S. in a stretch but still it is not working

It is just taking it as a data

Posted on January 22, 2016 at 11:05

•

Concerning Buffer usage, it is sent out when

•

Timeout expires (none byte is received over UART for “

ip_sockd_timeout

�

ms

)

•

Buffer is full (Note that buffer is 1Kb in size)

•

Concerning timings:

•

Every byte is placed in the Buffer while no Timeout is found. When Timeout occurs, Buffer is sent to Client

•

Every Escape Sequence

must

be followed by a Timeout. If Escape is followed by further bytes, the whole “

Escape+bytes

� sequence is sent to Client

If escape is not detected, probably it's not correct (''escape_seq'' configuration variable), or it's not followed by a timeout (''ip_sockd_timeout'' configuration variable), or there is a timeout between chars into sequence, or is placed at the limit of a buffer (1Kb in size). In this case, put a timeout also BEFORE the sequence.

Nandy K
Associate II
Posted on January 22, 2016 at 11:19

I tried the following commands still it is same, what ever I am sending is received on the client

AT+S.250

250AT+S.

also tried

1AT+S.

AT+S.1

Posted on January 22, 2016 at 11:23

AT+S.250 cannot work

250AT+S. works only if there is a timeout after '.' (and there are no timeout between chars)

1AT+S. works only if there is a timeout after '.' (and there are no timeout between chars)

AT+S.1 cannot work

Try ''AT+S.''

What's the value of escape_seq variable?

Nandy K
Associate II
Posted on January 22, 2016 at 11:41

I used AT+S. still not working

I don't how to find the value of esc_sequence variable ?

In the manual it is written as

variable : esc_sequence

samplevalue : at+s.

Type : TEXT[7]

Also this time I am receiving Al+S. instead of AT+S. on the client side