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.

cc3200 smart config后, 断电再连入AP

Other Parts Discussed in Thread: CC3200, AES-128

大家好,cc3200  smart config 连接到wifi后, 第二次断电后怎么再次连入同一个AP了? 

看了一下 doc, 好像是AES-128 加密了? 

The Configuration process
is secured with AES-128 encryption, and the SSID and KEY length are supported up to 32 bytes

请教一下,该怎么实现。

  • smart config 配置后会记住这次配置,你下次上电就会用这个设置啊。

    代码中是否调用了ConfigureSimpleLinkToDefaultState()?

  • 是不应该调用 这个函数对吧? 因为会删除 sl_WlanProfileDel(0xff),  但我不知道 smart config后,信息 保存到那个Profile了?  这样我可以启动的时候, 看一下这个Profile 是不是有, 没有则 smart config, 有则直接 连接。

  • 1、将sl_WlanProfileDel()注释掉,不要将保存的profile删除掉。

    2、smartconfig会自动的得到SSID和密码,并保存这个profile。smart config配置完成SSID和密码当CC3200掉电后,都能以自动模式连接之前通过smart config保存的SSID和密码。即通过自动模式连接上AP

    //set AUTO policy automatically reconnect to one of its stored profiles 自动模式下CC3200会从SPI_Flash中读取存储的profile配置AP信息并连接AP
    3、lRetVal = sl_WlanPolicySet(SL_POLICY_CONNECTION,SL_CONNECTION_POLICY(1,0,0,0,1),&policyVal, 1 /*PolicyValLen*/);---设置为Auto+smartconfig的形式


  • 请教一下, 中断函数里面 ,用udp 发送数据

    http://www.deyisupport.com/question_answer/wireless_connectivity/wifi/f/105/t/117088.aspx

  • 请参考例程idle_profile里面的

    //*****************************************************************************
    //
    //! \brief callback function for timer interrupt handler
    //!
    //! \param vParam is a general void pointer (not used here)
    //!
    //! \return None
    //
    //*****************************************************************************
    void TimerCallback(void *vParam)
    {
    unsigned char ucQueueMsg = 1;
    osi_MsgQWrite(&g_tWkupSignalQueue, &ucQueueMsg, OSI_NO_WAIT);
    return;
    }

    你看看这个是不是你所需要的?