UART packet size #1023
-
Hello, I am using UART to talk to my GPS but the uart message by gps is quite long. So, F-prime uart drivers cut them in smaller chunks like this: I took a look at the Linux Driver Implementation and changed the cfg.c_cc[VMIN] = 0; cfg.c_cc[VTIME] = 10; parameters to make the packets longer. But it doesn't how big the VMIN value is, I can not received the whole message in one packet. What are your thoughts on this? p.s. I am already working on a message builder program that will take chunks and build a main message. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's how we've done it in the past. Never assume you are getting the full packet because of driver buffering, and write your logic to assemble the full packet across receive calls. |
Beta Was this translation helpful? Give feedback.
That's how we've done it in the past. Never assume you are getting the full packet because of driver buffering, and write your logic to assemble the full packet across receive calls.