ESP8266 Developer Zone The Official ESP8266 Forum 2016-12-05T10:41:29+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2936 2016-12-05T10:41:29+08:00 2016-12-05T10:41:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2936&p=10776#p10776 <![CDATA[Re: ESP8266 Smart config mode.]]>
suresh wrote:
Changed the following timer value from 2000 to 20000 and it works now! Thank you Alen

#define ESP_TOUCH_TIME_ENTER (20000) /*Time limit for ESP-TOUCH to receive config packets*/


welcome.

Statistics: Posted by Guest — Mon Dec 05, 2016 10:41 am


]]>
2016-11-09T20:43:11+08:00 2016-11-09T20:43:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2936&p=10482#p10482 <![CDATA[Re: ESP8266 Smart config mode.]]>
#define ESP_TOUCH_TIME_ENTER (20000) /*Time limit for ESP-TOUCH to receive config packets*/

Statistics: Posted by suresh — Wed Nov 09, 2016 8:43 pm


]]>
2016-11-09T17:21:12+08:00 2016-11-09T17:21:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2936&p=10477#p10477 <![CDATA[Re: ESP8266 Smart config mode.]]>
Increased the timeout as per your advice. But no effect. ESP-TOUCH TIMEOUT appears immediately after the boot!

Following is my user_init routine:
Thanks.

void user_init(void)
{

/*
* set uart baut ratio
*/
uart_div_modify(0, UART_CLK_FREQ / UART_BAUD_RATIO);
uart_div_modify(1, UART_CLK_FREQ / UART_BAUD_RATIO);

MESH_DEMO_PRINT("user_init");
if (!router_init()) {
return;
}


if (!esp_mesh_demo_init())
return;

user_devicefind_init();

/*
* while system runs smartconfig (STA mode), mesh (STA + SoftAp mode) must not been enabled,
* So wait for esptouch to run over and then execute espconn_mesh_enable
*/
os_timer_t *wait_timer = (os_timer_t *)os_zalloc(sizeof(os_timer_t));
if (NULL == wait_timer) return;
os_timer_disarm(wait_timer);
os_timer_setfn(wait_timer, (os_timer_func_t *)wait_esptouch_over, wait_timer);
os_timer_arm(wait_timer, 30000, true);
}

Statistics: Posted by suresh — Wed Nov 09, 2016 5:21 pm


]]>
2016-11-02T22:08:24+08:00 2016-11-02T22:08:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2936&p=10383#p10383 <![CDATA[Re: ESP8266 Smart config mode.]]>
suresh wrote:
If anyone knows why ESP-TIMEOUT is happening without even waiting for a second, please help me.


Please setup time for esp-touch.

/*
* while system runs smartconfig (STA mode), mesh (STA + SoftAp mode) must not been enabled,
* So wait for esptouch to run over and then execute espconn_mesh_enable
*/
os_timer_t *wait_timer = (os_timer_t *)os_zalloc(sizeof(os_timer_t));
if (NULL == wait_timer) return;
os_timer_disarm(wait_timer);
os_timer_setfn(wait_timer, (os_timer_func_t *)wait_esptouch_over, wait_timer);
os_timer_arm(wait_timer, 30000, true);

Statistics: Posted by Guest — Wed Nov 02, 2016 10:08 pm


]]>
2016-10-31T17:45:48+08:00 2016-10-31T17:45:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2936&p=10365#p10365 <![CDATA[Re: ESP8266 Smart config mode.]]> Statistics: Posted by suresh — Mon Oct 31, 2016 5:45 pm


]]>
2016-10-28T14:31:32+08:00 2016-10-28T14:31:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2936&p=10324#p10324 <![CDATA[Re: ESP8266 Smart config mode.]]>
scandone
err,scan status 1
scandone
err,scan status 4
ESP-TOUCH TIMEOUT

Statistics: Posted by suresh — Fri Oct 28, 2016 2:31 pm


]]>
2016-10-27T17:02:56+08:00 2016-10-27T17:02:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2936&p=10297#p10297 <![CDATA[ESP8266 Smart config mode.]]> ESP8266 devices should form a mesh network. The root ESP8266 device should hook to a WiFi router. A server (an Android app) connected to the same WiFi router must be able to send commands to control each ESP8266 device.

After going through the help docs and demos, I could successfully run the mesh demo by updating user_config.h with my router's SSID and password.

Now I need the mesh_demo to work in smart config mode so that I can use ESP_Touch Android App to supply SSID and password to the ESP device. What configuration change do I need to make in mesh_demo source code to enable smart config?
Please guide me.
Thanks
Suresh

Statistics: Posted by suresh — Thu Oct 27, 2016 5:02 pm


]]>