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.

CC3120: web server in AP mode getting stuck

Expert 6720 points
Part Number: CC3120

Following question regarding CC3120:

  • It is concerning the web-server in AP mode
  • When the module is connected as station everything works
  • When they start the module in AP mode they can connect it, they get an IP, can ping, can open and link (bind) sockets and if they go via SL commandos (like echo example), a TCP connection also works
  • The web server also successfully process in AP a link (bind) to Wifi and also a listen, but then gets stuck in SELECT and cannot be communicated with anymore
  • TCP SYNs are immediately being answered with RST
  • They also don`t find no example where WiFi resp. the web-server are being used above the higher sitting bind, listen, select functions

 Thank you,

Andreas

  • Hi,

    We need more details. 

    Did they disabled the internal HTTP server?

    Are they using the standard HTTP port 80 / 443?

    Did they use ACCEPT before calling select? I'm not sure the select works with TCP SYN (never tested it).

    Are they able to run similar sequence in a station role i.e. calling bind, listen and then select before accepting the connection?

    Br,

    Kobi

  •  Problem is solved, thank you.

    The web-server always conected to the Ethernet interface, even if there was no connection.

    Why that only happened in AP mode and not in STA mode  don`t know.

    Regards

    Anreas