I want to write to a serial port . By using hercules, I have opened the port "COM6" and when I run the program, I can see the text "ok" in hercules window