Skip to main content
Nandy K
Associate III
January 22, 2016
Question

Data Mode to Command Mode

  • January 22, 2016
  • 13 replies
  • 2095 views
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 ?) 
    This topic has been closed for replies.

    13 replies

    Gerardo GALLUCCI
    ST Employee
    January 22, 2016
    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
    Nandy KAuthor
    Associate III
    January 22, 2016
    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 )

    Gerardo GALLUCCI
    ST Employee
    January 22, 2016
    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
    Nandy KAuthor
    Associate III
    January 22, 2016
    Posted on January 22, 2016 at 10:37

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

    Nandy K
    Nandy KAuthor
    Associate III
    January 22, 2016
    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

    Gerardo GALLUCCI
    ST Employee
    January 22, 2016
    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
    Nandy KAuthor
    Associate III
    January 22, 2016
    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

    Gerardo GALLUCCI
    ST Employee
    January 22, 2016
    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
    Nandy KAuthor
    Associate III
    January 22, 2016
    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

    Gerardo GALLUCCI
    ST Employee
    January 22, 2016
    Posted on January 22, 2016 at 11:48

    http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00100306.pdf

    AT&V

    If escape_seq is ''at+s.'', you must use ''at+s.''

    ''AT+S.'' is a generic data, not an escape sequence.