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.

help on connect to CC3000



hi,

i have followed instructrion on wiki page of CC3000 using CCS for launch basic wifi application. I have make the build all of the project without error and on terminal i have:

Example App:driver version 1.13.7.15

my question is for connect to the AP, key AES encrytation in code is "smartconfigAES16"  i have configured the TP-LINK in wifi encrytation in WPA2-PSK encrytation AES.

But when i enter "01" on terminal the led 6 always blinking i have never response "DONE"on terminal. I cannot connect CC3000

 

  • i have a AP name DEMO without encrytation to try connect by becons send by my laptop, like creat a new connection wifi and connect even if network not broadcast the SSID i have add a network TTT4DEMO0 , but not reaction about card befor i have enter on terminal 01 and led 6 blinking 

  • Hi Marc,

    Can you please make sure if the below conditions are satisfied(with respect to the Basic Wifi Application) while using the SmartConfig with encryption?

    1) When performing the encrypted smartConfig, you should make sure that the flag 'CC3000_UNENCRYPTED_SMART_CONFIG' is not defined.

    2) And a call to 'wlan_smart_config_start' is made by passing an argument '1'.

    3) Also, please go through the limitations section of the SmartConfig wiki page. (http://processors.wiki.ti.com/index.php/CC3000_Smart_Config#Limitations)

    Thanks & Regards,
    Raghavendra

  • i have juste launch the code on CCS and modify nothing.

     I think entering on my laptop new TTTDTP-LINK_4C823ABCD1234 will work ok but led 6 always blinking

    there is

    void StartSmartConfig(void)
    {
    	ulSmartConfigFinished = 0;
    	ulCC3000Connected = 0;
    	ulCC3000DHCP = 0;
    	OkToDoShutDown=0;
    	
    	// Reset all the previous configuration
    	wlan_ioctl_set_connection_policy(DISABLE, DISABLE, DISABLE);	
    	wlan_ioctl_del_profile(255);
    	
    	//Wait until CC3000 is disconnected
    	while (ulCC3000Connected == 1)
    	{
    		__delay_cycles(1000);
    	}
    	
    	// Trigger the Smart Config process
    	// Start blinking LED6 during Smart Configuration process
    	turnLedOn(6);	
    	wlan_smart_config_set_prefix((char*)aucCC3000_prefix);
    	turnLedOff(6);	     
    	
    	// Start the SmartConfig start process
    	wlan_smart_config_start(1);
    	
    	turnLedOn(6);                                                                               
    	
    	// Wait for Smartconfig process complete
    	while (ulSmartConfigFinished == 0)
    	{
    		
    		__delay_cycles(6000000);
    		
    		turnLedOff(6);
    		
    		__delay_cycles(6000000);
    		
    		turnLedOn(6);  
    		
    	}
    	
    	turnLedOn(6);
      
    #ifndef CC3000_UNENCRYPTED_SMART_CONFIG
    	// create new entry for AES encryption key
    	nvmem_create_entry(NVMEM_AES128_KEY_FILEID,16);
    	
    	// write AES key to NVMEM
    	aes_write_key((unsigned char *)(&smartconfigkey[0]));
    	
    	// Decrypt configuration information and add profile
    	wlan_smart_config_process();
    #endif    
    	
    	// Configure to connect automatically to the AP retrieved in the 
    	// Smart config process
    	wlan_ioctl_set_connection_policy(DISABLE, DISABLE, ENABLE);
    	
    	// reset the CC3000
    	wlan_stop();
    	
    	__delay_cycles(6000000);
    	
    	DispatcherUartSendPacket((unsigned char*)pucUARTCommandSmartConfigDoneString, sizeof(pucUARTCommandSmartConfigDoneString));
    	
    	wlan_start(0);
    	
    	// Mask out all non-required events
    	wlan_set_event_mask(HCI_EVNT_WLAN_KEEPALIVE|HCI_EVNT_WLAN_UNSOL_INIT|HCI_EVNT_WLAN_ASYNC_PING_REPORT);
    }