implementing uart interface for rpc command