Change serialport to char