added open and close rs232 command