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 API wlan_connect function / HCI_CMND_WLAN_CONNECT (opcode 0x0001) SSID field limited to 30 characters?

While experimenting with CC3000 wlan_connect (and underlying HCI_CMND_WLAN_CONNECT command), I did not manage to associate CC3000 with an access point if the SSID field was longer than 30 bytes.

The SSID field can typically be 1 to 32 characters long, also the CC3000 API documentation says up to 32 bytes should be accepted.

After issuing wlan_connect with 31 or 32 char long SSID's, I experienced CC3000 to go into a non-normal state, where it even after power cycling could not connect to any APs anymore (incl. also short SSIDs). First after rewriting the NVMEM/EEPROM with PatchProgrammers DR and FW, I was able to regain normal operation.

Has anyone experienced or could possibly verify this behavior?

Thanks,
Risto

  • I just tried "abcdefghijklmnopqrstuvwxyz12345" and "abcdefghijklmnopqrstuvwxyz123456" and they both scan and connect to successfully.

  • Hi Ivor,
    thanks for a swift reply. Are you saying that wlan_ioctl_statusget gives you back WLAN_STATUS_CONNECTED?

    Risto

  • Risto Koiva said:

    Hi Ivor,
    thanks for a swift reply. Are you saying that wlan_ioctl_statusget gives you back WLAN_STATUS_CONNECTED?

    Risto

    Well, I don't use this method. Instead I listen for the HCI_EVNT_WLAN_UNSOL_CONNECT and HCI_EVNT_WLAN_UNSOL_DHCP events and once I get them both I connect to my web server and send some data. My device is designed to look for open APs, connect to them and send data to my web server. So all I did for the test was to rename my AP to the 31 and 32 byte names and make sure the data was sent to the server successfully.

  • Hi Ivor,
    thanks again for your reply.

    Thanks to your input I did a rewrite of my connect code section and now I have it also nicely working with SSID lengths 31 and 32. I also tested it using WPA2 security, CC3000 connects also works without problems with SSIDs up to 32 bytes.

    Cheers,
    Risto