If i use WHILE (1), waiting for the serial port data will cause blocking, how to solve this problem? Attached code: while(1) do str = uart.getchar( 0 ) if(str == '\a') then break else uart.write( 0, str) end end