added uart api in main activity