Open serial port when the program start running.