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获得路由ID和密码

Other Parts Discussed in Thread: CC3200

我需要自己开发一个手机APP,然后告诉CC3200我的路由器名字和密码

可以把SmartConfig嵌入至自己开发的手机APP中吗?

或者把CC3200先设置成AP模式,手机连接CC3200,告诉CC3200路由器名字和密码。然后再将CC3200设置成WLAN STATION模式,连接WIFI。这样可以吗?

  • 如果使用Smartconfig建议使用TI最新的CC3220进行开发,新的CC3220对于Smartconfig的兼容性做的更好,

    当然TI也提供了provisioning_ap 的方式进行配置CC3200,

    int main(void)
    {
    long lRetVal = -1;
    //
    // Initialize Board configurations
    //

    BoardInit();
    //
    // Configure the pinmux settings for the peripherals exercised
    //
    PinMuxConfig();

    #ifndef NOTERM
    InitTerm();
    #endif

    //
    // Display banner
    //
    DisplayBanner(APPLICATION_NAME);

    // configure RED LED
    GPIO_IF_LedConfigure(LED1);

    GPIO_IF_LedOff(MCU_RED_LED_GPIO);

    InitializeAppVariables();

    //
    // Following function configure the device to default state by cleaning
    // the persistent settings stored in NVMEM (viz. connection profiles &
    // policies, power policy etc)
    //
    // Applications may choose to skip this step if the developer is sure
    // that the device is in its default state at start of applicaton
    //
    // Note that all profiles and persistent settings that were done on the
    // device will be lost
    //
    lRetVal = ConfigureSimpleLinkToDefaultState();
    if(lRetVal < 0)
    {
    if (DEVICE_NOT_IN_STATION_MODE == lRetVal)
    UART_PRINT("Failed to configure the device in its "
    "default state \n\r");

    LOOP_FOREVER();
    }

    UART_PRINT("Device is configured in default state \n\r");

    CLR_STATUS_BIT_ALL(g_ulStatus);

    //Start simplelink
    lRetVal = sl_Start(0,0,0);
    if (lRetVal < 0 || ROLE_STA != lRetVal)
    {
    UART_PRINT("Failed to start the device \n\r");
    LOOP_FOREVER();
    }

    UART_PRINT("Device started as STATION \n\r");

    // Connect to our AP using SmartConfig method
    lRetVal = startProvisioning();
    if(lRetVal < 0)
    {
    ERR_PRINT(lRetVal);
    }
    else
    {
    UART_PRINT("Provisioning Succedded \n\r");
    }

    LOOP_FOREVER();
    }

  • 感觉并没有回答到我要问的地方。

    我现在要自己做一个手机APP,与CC3200。问题是如何将路由名字和密码告诉CC3200

    TI有Smartconfig手机APP,使用这个APP可以告诉CC3200路由名字和密码。但这是TI的APP,并不是我自己开发的。是否有smartconfig sdk之类提供给我开发呢?

    CC3200本身可以设置为ap和station模式。如果设置为ap模式,我可以用手机连接CC3200,将路由名字和密码告诉CC3200吗?

    provisioning_ap例程中如你黄字点亮的部分。这个也是通过samrtconfig配置的吧

  • 你好,请问一下。

    CC3200 AP的方式配置WIFI, out_of_box web server的方式 和 provisioning_ap, 那种比较好?

    Starting Provisioning 持续了30s 这是什么情况, 这样会导致用户体验不好吧。

  • 这个时间主要是考虑用户如果使用Smartconfig配置不成功时,进行其他的配置

    建议使用传统的AP模式配置,更加的稳定。

  • Smart config是TI 特有的,传统都用的AP方式,步骤麻烦点