You should ythink about allowing the user to specify the port to use, especially on the Tab5, which has lots of IO ports.
Also; your (or your AI coder) seems to be confused.

pin 13 = U0TXD = G37
pin14 = U0RXD = G38
Not G3/G1
The P4 can basically mux hardware Serial onto any pin combo. And software serial can handle any pins that dont mux.
Pins G49 and G50 are on ExtPort1 on the side of the unit, (so are G0 and G1, but these should be avoided unless you understand how G0 is used at boot time).
There is a RS485 port on pins G20/G21/G34 (TX/RX/Dir) that would also be sensible to support.
And, of course, G53 and G54 on the grove connector (port-A) can be used, by default this is the User I2C bus (I2C1). If you don't want to use any external I2C peripherals then it is a good choice.




