How to use uart with J17 on TX2

hello vatsalmistry4796,

J17 port should be normally for serial data communication.
you may check $ dmesg | grep THS for all registered ports, the default baudrate setting is 115200/8n1,
please also check similar discussion thread as see-also, such as Topic 81352.
thanks