Problem with serial port output
Shawn Silverman <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
I've just encountered a case where serialOut.write(cmd.getBytes()) hangs. serialOut is an OutputStream obtained from SerialPort.getOutputStream() (serial0, 57600, 8N1), and cmd is a String. In this instance, I'm calling getOutputStream() after it has been called before. Should this cause a problem? Should I cache the OutputStream object once getOutputStream() has been called once? Thanks, -Shawn _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini