ESP8266 Developer Zone The Official ESP8266 Forum 2014-12-30T05:13:22+08:00 https://bbs.espressif.com:443/feed.php?f=15&t=110 2014-12-30T05:13:22+08:00 2014-12-30T05:13:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=110&p=395#p395 <![CDATA[Re: Hello Robot: esp8266 softap controller]]>
costaud wrote:
ESP8266 is a suitable choice for wifi controller in softap mode.
It has multiple interface so that we can transfer wifi data to spi, uart, i2c ,i2s,infrared remote ,even sdio(more complicated).

This is a example for this kind of application to turn wifi command into uart serial.

The realization is very simple, that esp8266 works in softap mode , smart phone connect to the softap and send udp command to a certain port.
Then send the corresponding uart command to the driver mcu.

Move ! Make your own project !

A little offtopic: What hexapod is that? Do you send commands directly to the robot's MCU?

Statistics: Posted by dexterash — Tue Dec 30, 2014 5:13 am


]]>
2014-12-28T04:19:52+08:00 2014-12-28T04:19:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=110&p=377#p377 <![CDATA[Re: Hello Robot: esp8266 softap controller]]> nice robot project - txs for share and udp init example, same likewise i had search viewtopic.php?f=16&t=74
as a udp server..

allways surprise us with good projects ;-)
would be cheer for a small video szene - do you have a youtube channel ?
;-)

best wishes
rudi ;-)

Statistics: Posted by rudi — Sun Dec 28, 2014 4:19 am


]]>
2014-12-28T03:57:40+08:00 2014-12-28T03:57:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=110&p=376#p376 <![CDATA[Hello Robot: esp8266 softap controller]]>
It has multiple interface so that we can transfer wifi data to spi, uart, i2c ,i2s,infrared remote ,even sdio(more complicated).

This is a example for this kind of application to turn wifi command into uart serial.

The realization is very simple, that esp8266 works in softap mode , smart phone connect to the softap and send udp command to a certain port.
Then send the corresponding uart command to the driver mcu.

Move ! Make your own project !

UART CONFIG:

Code:

 WRITE_PERI_REG(UART_CONF0(uart_no),    UART_PARITY_EN
                                   | UART_TXD_INV      //the mcu receive a inversed uart signal
                                   | UART_RXD_INV      //the mcu send a inversed uart signal
                                   | EVEN_BITS
                                           |( ONE_STOP_BIT << UART_STOP_BIT_NUM_S)
                                           | (EIGHT_BITS << UART_BIT_NUM_S));


    //clear rx and tx fifo,not ready
    SET_PERI_REG_MASK(UART_CONF0(uart_no), UART_RXFIFO_RST | UART_TXFIFO_RST);
    CLEAR_PERI_REG_MASK(UART_CONF0(uart_no), UART_RXFIFO_RST | UART_TXFIFO_RST);

    //set rx fifo trigger
    WRITE_PERI_REG(UART_CONF1(uart_no), (50 & UART_RXFIFO_FULL_THRHD) << UART_RXFIFO_FULL_THRHD_S
                               |   (0x10 & UART_RX_TOUT_THRHD) << UART_RX_TOUT_THRHD_S
                               |   UART_RX_TOUT_EN);

    //clear all interrupt
    WRITE_PERI_REG(UART_INT_CLR(uart_no), 0xffff);
    //enable rx_interrupt
    //CLEAR_PERI_REG_MASK(UART_INT_ENA(uart_no), 0x1ff);
    SET_PERI_REG_MASK(UART_INT_ENA(uart_no),UART_RXFIFO_TOUT_INT_ENA);//UART_RXFIFO_FULL_INT_ENA);


UDP INIT:

Code:

   
    LOCAL struct espconn ptrespconn;
    ptrespconn.type = ESPCONN_UDP;
    ptrespconn.proto.udp = (esp_udp *)os_zalloc(sizeof(esp_udp));
    ptrespconn.proto.udp->local_port = 1025;
    espconn_regist_recvcb(&ptrespconn, user_devicefind_recv);
    espconn_create(&ptrespconn);


8.png
6.png

2.png

3.png
4.png

7.png


001.gif
002.gif

003.gif
004.gif

005.gif
006.gif

007.gif
008.gif

Statistics: Posted by costaud — Sun Dec 28, 2014 3:57 am


]]>