ESP8266 Developer Zone The Official ESP8266 Forum 2015-05-31T06:25:34+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=523 2015-05-31T06:25:34+08:00 2015-05-31T06:25:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=523&p=1966#p1966 <![CDATA[Re: How to use at_setupCmdUartDef]]> This works for me

Code:

uart_div_modify(0, UART_CLK_FREQ / 115200);

// or in your case
uart_div_modify(0, UART_CLK_FREQ / 19200);


Barry

Statistics: Posted by BarryP — Sun May 31, 2015 6:25 am


]]>
2015-05-31T05:00:45+08:00 2015-05-31T05:00:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=523&p=1965#p1965 <![CDATA[Re: How to use at_setupCmdUartDef]]>
jerry wrote:
...
at_setupCmdUartDef(0,"=19200,8,1,0,0");
...


i am not sure, but have a try,
perhabs you can try this in c

Code:


at_setupCmdUartDef(0,"\"=19200,8,1,0,0\"");




btw, which doku you have read about api at_setupCmdUARTDef then parameter stands in this how it must be call.

or perhabs this ..

Code:


at_setupCmdUartDef("0,=19200,8,1,0,0");

Statistics: Posted by rudi — Sun May 31, 2015 5:00 am


]]>
2015-05-30T10:23:15+08:00 2015-05-30T10:23:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=523&p=1959#p1959 <![CDATA[How to use at_setupCmdUartDef]]> I can execute AT+UART_DEF=19200,8,1,0,3 in at mode.
However, I failed to set baud rate in user_init() by following line
at_setupCmdUartDef(0,"=19200,8,1,0,0");
It just response ERROR
Does any one know how to setup default baud rate in user_init()?
Note: I'm using esp_iot_sdk_v1.1.0_15_05_22
thanks

Statistics: Posted by Guest — Sat May 30, 2015 10:23 am


]]>