I'm trying to send a string of 140 characters length using UART.....but only 98 characters length is being recieved in the output.
what could be the issue? How many bytes of string can i send through the UART?
Thanks,
Vimal
I'm trying to send a string of 140 characters length using UART.....but only 98 characters length is being recieved in the output.
what could be the issue? How many bytes of string can i send through the UART?
Thanks,
Vimal
If the buffer can keep up, there shouldn't really be an issue. What baudrate are you using, and what is your buffer size?
BR,
Edvin
My RX and TX buffer size is 256 and my baudrate is 9600.
i can send more characters when i'm not using app_uart_flush(),but when i use app_uart_flush() it is not sending more than 94 characters.
why it is happenning ?what could be reason?how do i send more characters even when i use app_uart_flush()?
Would it be possible to send the project that replicates this error, and I can take a look?
Best regards,
Edvin
Would it be possible to send the project that replicates this error, and I can take a look?
Best regards,
Edvin
Yes i can send it to you Privately
How can i send to you Privately?And the file would be big if i extract.
Thanks
See the response that I sent you. If that works, I will post it here, so that other people with the same issue can see the solution.
Best regards,
Edvin
The problem was that the function app_uart_flush() was called before it was finished sending the TX buffer. app_uart_flush() is used to clear the buffer (to make space for something more important). Clearing the buffer does not mean sending it, but "deleting" it.
BR,
Edvin