Hi, I am using a Beaglebone Black and already using the 4.5 Hardware UARTs using C/Python3. Now, I need to extend the number of UART ports and thought of using the 3 UARTs per PRUs to get more than 4 UARTs.
I fail to find any resource that can clarify this possibility. I mean, is it even possible ? If yes, how should I go about it ? Most PRU examples belabor on the FTDI/UART usage to replace printf.
Thanks but I don’t think it helps my case. I have a 1D lidars that I use to get data via UARTs. Using USB based serial interface will only make my solution more complicated and a little less robust.
At 38400 baud I would have thought USB2 would be plenty fast enough. As far as software goes, they would just appear as /dev/tty devices like the internal UARTS. No difference in code.
Writing soft UARTS on the PRU is going to me more complicated, and unless you do all the processing on the PRU, you are then going to have to interface that to something running under Linux. Overall it is probably going to be more complicated.
The simplest solution is usually the best, unless you have some real time constraints that you can’t get over USB