Skip to main content
hector
Associate II
June 25, 2015
Question

Socket response time

  • June 25, 2015
  • 3 replies
  • 846 views
Posted on June 25, 2015 at 15:29

Hi,

I'm trying to set up a communication between two SPWF01SA.

A is set as the server, B as the client. 

I wrote a text to send from A to B when the WIND 61 + WIND 60 are detected. If a try to do it just after the WIND 60, B misses some bytes (at the beginning of the frame).

The number of bytes lost changes randomly.

I put a delay of 3 milliseconds after the WIND60 and it worked just fine...

Why can't I send my frame just after the WIND60?

Thank you

    This topic has been closed for replies.

    3 replies

    Gerardo GALLUCCI
    ST Employee
    June 26, 2015
    Posted on June 26, 2015 at 08:18

    Hi Hector,

    thanks for signaling it.

    That's required time to start/stop right tasks for command/data mode management.

    Thanks again

    jerry

    hector
    hectorAuthor
    Associate II
    June 29, 2015
    Posted on June 29, 2015 at 12:46

    Ok, got it.

    Can the server B close the socket? Since AT+S.SOCKC can be used by the client B only...

    Thanks again.

    Gerardo GALLUCCI
    ST Employee
    June 29, 2015
    Posted on June 29, 2015 at 14:32

    at+s.sockd=0 can be used to close the socket server