This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3000 recv -57

Hi, everyone!
I'm using CC3000 communication experiment.
I tried cc3000 as a server, the computer as the client, I found that the client to send data to the server regularly, about 55 seconds interval, cc3000 does not work, return - 57, the socket is closed automatically?

Does anyone know why?

thanks!

  • Hi,

    Please confirm if you're using the latest release. Please also share the code snippet for review.

    Regards,
    Gigi Joseph.
  • thanks Joseph Gigi,
    I has solved this problem,a socket will be closed by CC3000 after 60 seconds of inactivity

    processors.wiki.ti.com/.../CC3000_HCI_DATA_messages

    HCI_DATA_SEND (0x81)
    HCI_DATA_SEND message is used to transmit a TCP packet to a socket. Before issuing a HCI_DATA_SEND message to CC3000, a socket should first be created using HCI_CMND_SOCKET (0x1001).
    Please note that a socket will be closed by CC3000 after 60 seconds of inactivity,
    thus a time between creating a socket and issuing HCI_DATA_SEND should not exceed this period! Use the Socket Handle returned by HCI_EVNT_SOCKET (0x1001) in the appropriate HCI_DATA_SEND argument field.