add functions about serial port(not test yet)