Problem with Reading UART

Which module are you using ?
I remember in WP77 R8, the UART will go to sleep mode after some time.
Maybe you can have a try on R9 FW.
Or you can try using a timer to periodically wake up the UART;

#define TIMER_INTERVAL_SEC 1
#define TIMER_INTERVAL_uSEC 100000
int fd1;
static void tmrHandler(le_timer_Ref_t timerRef) {
//LE_INFO(“INSIDE TIMER”);
tcflow(fd1,TCION );

}
COMPONENT_INIT
{

	fd1=OpenPort("/dev/ttyHS0");



	le_clk_Time_t clk = { .sec = TIMER_INTERVAL_SEC, .usec = TIMER_INTERVAL_uSEC };
	    le_timer_Ref_t adxlPollingTimer = le_timer_Create("ADXL_TIMER");
	    le_timer_SetRepeat(adxlPollingTimer, 1000);
	    le_timer_SetInterval(adxlPollingTimer, clk);
	    le_timer_SetHandler(adxlPollingTimer, tmrHandler);
	    le_timer_Start(adxlPollingTimer);