Because your open statement uses "/dev/ttyUSB0", I assume that you are using a *nix operating system with a USB simulated serial port. It is not clear from the information you provided if the basics...