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.

cc 3000connection issue

hi

we are managed connect to our server by the cc3000 and arduino pro mini mcu.
for healthy operations, the TCP socket must be sent to the server every 2 seconds.
the problem is: after about 20-30 minutes of continues and successful transactions, the 
process stuck on TCP socket creation,
sometimes it recovers after 20-60 seconds, and sometimes it fails on the first try (socket 
timeout), and next time (next loop cycle) it connects again, or, another case - recovers 
after 20-60 seconds, (seems like transfer is going  on good ) but no connection on the server side.
a simple reset of the arduino (along with the cc3000 module) fixes the problem for another 20-30 minutes.
is there a more pleasant solution to this kind of problem ?
thanX
  • Hi,

    Can you please tell me the Host driver version and the Service Pack version that you are using? Please make sure that they match as per the release notes link: http://processors.wiki.ti.com/index.php/CC3000_Release_Notes#Finding_Out_Current_Service_Pack_Version

    For the first case, please check if the connection with the AP was complete before opening the socket. You can check this by monitoring the Unsolicited event HCI_EVNT_WLAN_UNSOL_CONNECT.

    Also, please check if the IP address was acquired by the device. This can be checked by monitoring the event HCI_EVNT_WLAN_UNSOL_DHCP.

    When the transfer is in progress, can you please add logs for the unsolicited events that are received at the host driver? Can you please share these logs?

    You may also move to host driver from SDK 1.14, with SP 1.32. This will give us a better picture of ARP events. Please make sure you follow the below guide along with it: http://processors.wiki.ti.com/index.php/CC3000_Host_Programming_Guide#Unsolicited_ARP_events

    Regards,
    Raghavendra

  • hi

    thanks for response.
    our system needs to connect the server only once - and it does it perfectly.
    the problem is in a loop of open TCP socket-send data-rceive-close.
    after about 20-30 minutes the cc3000 has some difficulty to open a TCP socket - 
     
    it takes 20-60 seconds to open it ?
     
  • Hi,

    It should not ideally take long to open a socket. Can you please check the points that I have mentioned in the above post and let me know?

    Regards,
    Raghavendra