Thanks for the info, I'll look into it.
A word of caution about using the UART on PI, at least on some PI 3 B boards with bluetooth by default the UART pins on the 40-pin IO header are being run by the software uart, and the baudrate will go haywire if the CPU goes into reduced speed mode. Not...