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 Connection Query - Network Gap After DHCP

Expert 2260 points

Hello,

I was wondering if anyone would be able to check something for me. In all my wireshark traces, after the CC3000 acquires an IP address via DHCP, it takes approximately 2 seconds before there is any activity from it (the next call being a gethostbyname()).

While I investigate my code to see if something could explain such a large delay, I was wondering if someone had a test setup or Wireshark trace handy that would allow them to check for similar behaviour? Basically, how long is it between the DHCP process completing and the first packet leaving the CC3000 (that is initiated by the CC3000)

I know the connection process from the CC3000 takes some time, but I was expecting that to end with a DHCP request, not begin with one.

Cheers

  • Hi Alan,

    My board lights up a LED as soon as I receive the HCI_EVNT_WLAN_UNSOL_DHCP event. After that it connects to my web server in the States (from Bulgaria, where I live), sends some data, receives a response and lights another LED. Visually I can tell that the time between those two LEDs lighting up is about half a second. However I was not using gethostbyname(), I was connecting to the web server's IP address directly.

    Then I modified my code to resolve my web server's IP address by calling gethostbyname() first. Then this whole process took about 1 second. So I am definitely not seeing a 2 second gap at least between the time the HCI_EVNT_WLAN_UNSOL_DHCP event is received and a call to gethostbyname() or connect().

  • Hi Ivor,

    Thanks for double checking this :) I'll have to look more deeply into profiling my code.

    Cheers.