Help with serial
rightsock at gmail.com
Mon Aug 16 22:46:56 UTC 2004
first thing to do is verify that the hardware is present and working. as root:
# stty </dev/ttyd0
and you might get somethign like this:
root at hostname:/ # stty </dev/ttyd0
bash: /dev/ttyd0: Input/output error
root at hostname:/ # stty </dev/ttyS0
speed 1200 baud; line = 0;
min = 1; time = 0;
-brkint -icrnl -imaxbel
-isig -icanon -echo -echoe -echok -echoke
And if possible, use a terminal program like minicom to verify that
the port will transmit and receive data. At a very minimum, get a
serial loop-back connector and see if characters echo in/out through
the port just fine.
it does not appear that linux uses the ttyd* serial device names. try
ttyS0 instead, possibly ttyD0. I can't (quickly) find a page that
describes the various serial drivers, but ttyS0 is the "normal" way to
initiate outgoing serial connections.
On Mon, 16 Aug 2004 17:46:36 -0400, Robinson, Josh D
<josh.d.robinson at questdiagnostics.com> wrote:
> I am setting up a program that uses posix serial communication. I have ported this project from MAC OS X and everything seems to be fine except incoming data. It seems the "/dev/ttyS0" does not behave like it should ( I can't read any data from it). The problem is that any calls to "/dev/ttyd0" don't work. Is there something I have to do to get "/dev/ttyd0" to work??
> By the way I am using just the standard POSIX open and read/write commands. Any thoughts?
> Thanks Josh
> The contents of this message, together with any attachments, are intended only for the use of the person(s) to which they are addressed and may contain confidential and/or privileged information. Further, any medical information herein is confidential and protected by law. It is unlawful for unauthorized persons to use, review, copy, disclose, or disseminate confidential medical information. If you are not the intended recipient, immediately advise the sender and delete this message and any attachments. Any distribution, or copying of this message, or any attachment, is prohibited.
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
More information about the users