uart flow control issue
Posted: Fri May 18, 2018 1:08 pm
hi everyone,
length=uart_read_bytes(UART_NUM_0,buff,2000, 100/ portTICK_RATE_MS);
the above API has a peculiar behaviour where in if i specify 2000 bytes as the limit in the API and if i send 4000 bytes of data but unfortunately it is printing only last 2000 bytes of data (my application is to print all the received data). My requirement is to fetch 2000 bytes in batches to print complete data been sent(in case of 4000 bytes of data it should be 2 batches of 2000 bytes).is there any solution or API to achieve this requirement.
thanks
length=uart_read_bytes(UART_NUM_0,buff,2000, 100/ portTICK_RATE_MS);
the above API has a peculiar behaviour where in if i specify 2000 bytes as the limit in the API and if i send 4000 bytes of data but unfortunately it is printing only last 2000 bytes of data (my application is to print all the received data). My requirement is to fetch 2000 bytes in batches to print complete data been sent(in case of 4000 bytes of data it should be 2 batches of 2000 bytes).is there any solution or API to achieve this requirement.
thanks