Trouble with serial 3

Hi!
I’m using com port 3 to access my sensor. I believe that the serial3 is corrupted while I am running my program (before corrupted, I successfully manage to run this program and everthing is OK). Is there any way to troubleshoot my serial 3 which is located at “/dev/ser3” ? How can I know that it is a hardware or software driver problem? And if it is a software problem, how can i restore back? Thanks!!!

Regards,

bryan