This is perhaps more of a general programming question, but as I’m implementing this with TinyCLR I figured there might be some “best practices” I should be aware of.
Basically, I have an application where I need to read data from multiple UART ports simultaneously. Latency is also important to me; I’d like to read the data and process it as fast as is feasible (I.E. avoid long timeouts.)
Essentially, I’m just looking for any thoughts or suggestions. Should I use a separate thread for receiving and processing each port? Should I read one byte each loop from each port and build their messages concurrently? Any tricks in the TinyCLR UART implementation I should know about?