Custom Baud rate assistance
Posted: Tue May 15, 2018 3:26 pm
Good day all.
I am working with a esp8266 module. On start up is spits out data at a fixed baud rate of 74880. I want to be able to receive at the fixed rate than change over to 2400 bps. looking at the help file my options don't allow me to select outside of the options available. I thought to set the main speed to 74880 then change to 2400, question is how do I convert back to the custom speed of 74880 and or how do I add a custom speed to the ChangeHWBaud (Newbaud) function?
ChangeHWBaud (Newbaud)
Allows the baud rate for a hardware UART channel to be updated on the the fly.
The New baud parameter specifies the rate for the new baud.
0 = 1200 bps
1 = 2400 bps
2 = 4800 bps
3 = 9600 bps
4 = 19200 bps
5 = 38400 bps
6 = 57600 bps
7 = 115200 bps
I am working with a esp8266 module. On start up is spits out data at a fixed baud rate of 74880. I want to be able to receive at the fixed rate than change over to 2400 bps. looking at the help file my options don't allow me to select outside of the options available. I thought to set the main speed to 74880 then change to 2400, question is how do I convert back to the custom speed of 74880 and or how do I add a custom speed to the ChangeHWBaud (Newbaud) function?
ChangeHWBaud (Newbaud)
Allows the baud rate for a hardware UART channel to be updated on the the fly.
The New baud parameter specifies the rate for the new baud.
0 = 1200 bps
1 = 2400 bps
2 = 4800 bps
3 = 9600 bps
4 = 19200 bps
5 = 38400 bps
6 = 57600 bps
7 = 115200 bps