Hi All,
I am having the following issue with the CC3000. I am able to successfully connect to a router with all the different securities available. I send the configuration to the MSP430 through Bluetooth and then I delete all the profiles, I add the new profile I sent, and with a flag decide which type of security to use for the add_profile.
Everything works with that router, but the WEP and the mixed WPA/WPA2 settings. The WEP seems more important to me. In both cases the CC3000 tells me that it is successfully connected, but the communication does not work (I am able to open a socket, but communication does not seem to work in either direction).
Here the code I use to add a profile. Anyone is aware of any issues with this in the past?? I am trying to update the WiFi module, but I am not sure I can do that on all the devices on the field.
wlan_ioctl_del_profile(255);
switch (security){
case WEP:
error = wlan_add_profile(WLAN_SEC_WEP, // security type
SSID,
SSID_len,
NULL, // BSSID
1, // Priority
PWD_len, // PairwiseCipher
0, // GroupCipher
0, // KEY management
PWD, // KEY
PWD_len); // KEY length
//to be tested after priority:
// PWD_len, // KEY length
// 0, // KEY index
// 0,
// PWD, // KEY
// 0);
break;
case UNSECURED:
error = wlan_add_profile(WLAN_SEC_UNSEC, // security type
SSID,
SSID_len,
NULL, // BSSID
1, // Priority
0, // PairwiseCipher
0, // GroupCipher
0, // KEY management
0, // KEY
0); // KEY length
break;
default:
//case WPA:
error = wlan_add_profile(WLAN_SEC_WPA2, // security type
SSID,
SSID_len,
NULL, // BSSID
1, // Priority
0x18, // PairwiseCipher
0x1e, // GroupCipher
2, // KEY management
PWD, // KEY
PWD_len); // KEY length
break;
}
if(wifiConnect())
{
error = 0;
}else
{
wlan_ioctl_del_profile(255);
led_startBlink(LEDS, 2000);
ble_setState(BCAST_STATE_WIFI_ERROR);
error = -2;
}
Thanks for the help