how to check if serial interface is dte ot DCE?