Sorry that AT lib is not open source, and maybe it will not change to open source in the future. Sorry for the inconvenience.
UART Communication problems at 921600
-
- Posts: 118
- Joined: Tue Jun 26, 2018 3:09 am
Re: UART Communication problems at 921600
Hi, LukeSkyWireLukeSkyWire wrote: ↑Wed Jun 20, 2018 11:05 amWhat I have noticed however is if I send 1400 bytes the uart_read_bytes returns a value in the range of 1390.
If I send 600 bytes I get a len of approx 596.
Have you enabled hardware flow control? At 1M baud, the CPU can read out the data in fifo in time. But At 2M baud-rate, the CPU cannot read out the data in fifo in time, resulting in data loss. When enable the flow control, the baud-rate can reach 5M.
thanks !!
wookooho
Re: UART Communication problems at 921600
That's all right with me if we could get it working without errors in the uart communication.
I'm in the process of setting up HW control.
When compiling IDF and AT with 8,0,1,3, it doesn't seem to change anything at all. It chatters like it's not set after a reset.
When we send the UART_CUR command with HW control, the behavior changes radically.
Are we supposed to change the HW control on the host side after we send the UART_CUR changes to HW control, not from start?
IoT hacking all night long.
- gunar.kroeger
- Posts: 143
- Joined: Fri Jul 27, 2018 6:48 pm
Re: UART Communication problems at 921600
Is this the official maximum baudrate achievable without hw flow control? Could you link the documentation specifying this limit? I only remember seeing the 5M limit and no requirement for hw flow control connections mention, but I could be wrong.ESP_houwenxiang wrote: ↑Thu Nov 14, 2019 7:40 amHi, LukeSkyWireLukeSkyWire wrote: ↑Wed Jun 20, 2018 11:05 amWhat I have noticed however is if I send 1400 bytes the uart_read_bytes returns a value in the range of 1390.
If I send 600 bytes I get a len of approx 596.
Have you enabled hardware flow control? At 1M baud, the CPU can read out the data in fifo in time. But At 2M baud-rate, the CPU cannot read out the data in fifo in time, resulting in data loss. When enable the flow control, the baud-rate can reach 5M.
thanks !!
I'm also trying to get the maximum throughput with uart using the events example, but getting fifo overflow events
"Running was invented in 1612 by Thomas Running when he tried to walk twice at the same time."
Who is online
Users browsing this forum: Google [Bot] and 62 guests