Request for the new command - change baudrate
Re: Request for the new command - change baudrate
Postby costaud » Thu Oct 30, 2014 2:10 am
Maybe you can try to add your own CMD in the AT SDK,
and change the baudrate via
maybe there should be some sync steps .
and reset uart tx rx fifo :
By the way , there would be a sdk patch for a potential uart bug these days.
I have tested the uart , it can support a high speed up to 115200*40 bps

and change the baudrate via
Code: Select all
uart_div_modify(uart_no, UART_CLK_FREQ / (Your_baut_rate));
maybe there should be some sync steps .
and reset uart tx rx fifo :
Code: Select all
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);
By the way , there would be a sdk patch for a potential uart bug these days.
I have tested the uart , it can support a high speed up to 115200*40 bps



Re: Request for the new command - change baudrate
Postby AlOdin » Fri Oct 31, 2014 3:23 pm
have added the +BAUD command
please include this mod to official release
please include this mod to official release
- Attachments
-
- AT_addBAUD.zip
- (1.64 KiB) Downloaded 982 times
Regards, Alexander
Re: Request for the new command - change baudrate
Postby igrr » Fri Oct 31, 2014 4:32 pm
The standard command for setting baud rate is +IPR. There's really no need inventing custom names for standard features of AT protocol.
Also you may want to save the baud rate into the user settings region of the flash, otherwise it's a bit pointless.
Also you may want to save the baud rate into the user settings region of the flash, otherwise it's a bit pointless.
Re: Request for the new command - change baudrate
Postby AlOdin » Fri Oct 31, 2014 10:36 pm
actually name of command is not important for me
i have shared this code for the Espressif developers as an example only
i want to help them to make their AT-firmware more usable for the real projects
i have shared this code for the Espressif developers as an example only
i want to help them to make their AT-firmware more usable for the real projects
Regards, Alexander
Who is online
Users browsing this forum: No registered users and 188 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.