modify uart.on api to read raw data from uart