Request for the new command - change baudrate

AlOdin
Posts: 7
Joined: Tue Oct 28, 2014 1:59 pm

Request for the new command - change baudrate

Postby AlOdin » Tue Oct 28, 2014 2:13 pm

Change baudrate command would be useful imho

It is desirable to support non-standard baudrates
250k
500k
1000k
1500k
2000k
3000k
Regards, Alexander

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

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

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 :shock: :shock: :shock:

AlOdin
Posts: 7
Joined: Tue Oct 28, 2014 1:59 pm

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
Attachments
AT_addBAUD.zip
(1.64 KiB) Downloaded 436 times
Regards, Alexander

igrr
Posts: 3
Joined: Fri Oct 24, 2014 7:38 pm

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.

AlOdin
Posts: 7
Joined: Tue Oct 28, 2014 1:59 pm

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
Regards, Alexander

Who is online

Users browsing this forum: No registered users and 3 guests