* Re: serial port cannot be read in linux
[not found] <730b6c6b0706021439w41923cddvbf9fe953255190c0@mail.gmail.com>
@ 2007-06-02 21:40 ` Hello Bello
2007-06-04 6:46 ` kees
0 siblings, 1 reply; 3+ messages in thread
From: Hello Bello @ 2007-06-02 21:40 UTC (permalink / raw)
To: linux-serial
Hello,
I am trying to use a serial port in linux. My architecture is:
-compaq evo n600c
-debian GNU Linux 3.1
-vanilla kernel: Linux furge 2.6.21 #2 SMP Sat Jun 2 21:25:42 CEST
2007 i686 GNU/Linux
This is my dmesg output:
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS2 at I/O 0x3e8 (irq = 3) is a 16550A
00:02: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
I am trying to test the serial port by jumpering the receive and
transmit pins of the serial port.
Using this hardware, windows XP serial port tester program echos back
the characters written to the port, so the hardware is ok.
However, in Linux, the port stays dumb. I can write to it, but there
is nothing to be read from it.
e.g.
cat /dev/ttyS0 > /tmp/serial.txt &; echo "a" > /dev/ttyS0; cat /tmp/serial.txt
or
cp /dev/ttyS0 /dev/tty1; echo "a" > /dev/ttyS0
I have read through the "Cannot write but not read" topic in this
mailing list, but without any success.
Also I have tried several serial port testing programs, all in vain.
Kernel recompilations made no luck.
I would really appreciate your help,
Thanks,
Gabor
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: serial port cannot be read in linux
2007-06-02 21:40 ` serial port cannot be read in linux Hello Bello
@ 2007-06-04 6:46 ` kees
[not found] ` <730b6c6b0706051644j16cefd81y882b52602bad98f6@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: kees @ 2007-06-04 6:46 UTC (permalink / raw)
To: Hello Bello; +Cc: linux-serial
Hi,
What does stty -a </dev/ttyS0 return to you?
regards
Kees
On Sat, 2 Jun 2007, Hello Bello wrote:
> Hello,
>
> I am trying to use a serial port in linux. My architecture is:
> -compaq evo n600c
> -debian GNU Linux 3.1
> -vanilla kernel: Linux furge 2.6.21 #2 SMP Sat Jun 2 21:25:42 CEST
> 2007 i686 GNU/Linux
>
> This is my dmesg output:
> serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> serial8250: ttyS2 at I/O 0x3e8 (irq = 3) is a 16550A
> 00:02: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
>
> I am trying to test the serial port by jumpering the receive and
> transmit pins of the serial port.
>
> Using this hardware, windows XP serial port tester program echos back
> the characters written to the port, so the hardware is ok.
>
> However, in Linux, the port stays dumb. I can write to it, but there
> is nothing to be read from it.
> e.g.
> cat /dev/ttyS0 > /tmp/serial.txt &; echo "a" > /dev/ttyS0; cat
> /tmp/serial.txt
> or
> cp /dev/ttyS0 /dev/tty1; echo "a" > /dev/ttyS0
>
> I have read through the "Cannot write but not read" topic in this
> mailing list, but without any success.
> Also I have tried several serial port testing programs, all in vain.
> Kernel recompilations made no luck.
>
>
> I would really appreciate your help,
> Thanks,
> Gabor
> -
> To unsubscribe from this list: send the line "unsubscribe linux-serial" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: serial port cannot be read in linux
[not found] ` <730b6c6b0706051644j16cefd81y882b52602bad98f6@mail.gmail.com>
@ 2007-06-06 17:38 ` Hello Bello
0 siblings, 0 replies; 3+ messages in thread
From: Hello Bello @ 2007-06-06 17:38 UTC (permalink / raw)
To: kees, linux-serial, dhlii
Hello Folks,
Thank you very much for your help. Based on your input, I could figure
out that the troblemaker was the gpm driver. It was configured to be
launched at boot time, and it has reserved the serial port for itself.
Without gpm, it works as I have always expected.
Let me once more thank you your feedback and help.
Regards,
Gabor
2007/6/6, Hello Bello <domician@gmail.com>:
> Hello,
>
> stty -a </dev/ttyS0 says:
> speed 9600 baud; rows 0; columns 0; line = 0;
> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
> eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z;
> rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
> -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
> ixon -ixoff -iuclc -ixany -imaxbel
> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
> -echoprt echoctl echoke
>
>
> whereas stty -a </dev/ttyS2 says:
> speed 9600 baud; rows 0; columns 0; line = 0;
> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
> eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z;
> rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
> -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
> ixon -ixoff -iuclc -ixany -imaxbel
> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
> -echoprt echoctl echoke
>
> I guess that one of these ports are the infrared port.
>
> Best regards,
> Gabor
>
>
> 2007/6/4, kees <kees@schoen.mine.nu>:
> > Hi,
> >
> > What does stty -a </dev/ttyS0 return to you?
> >
> > regards
> >
> > Kees
> >
> >
> > On Sat, 2 Jun 2007, Hello Bello wrote:
> >
> > > Hello,
> > >
> > > I am trying to use a serial port in linux. My architecture is:
> > > -compaq evo n600c
> > > -debian GNU Linux 3.1
> > > -vanilla kernel: Linux furge 2.6.21 #2 SMP Sat Jun 2 21:25:42 CEST
> > > 2007 i686 GNU/Linux
> > >
> > > This is my dmesg output:
> > > serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> > > serial8250: ttyS2 at I/O 0x3e8 (irq = 3) is a 16550A
> > > 00:02: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> > >
> > > I am trying to test the serial port by jumpering the receive and
> > > transmit pins of the serial port.
> > >
> > > Using this hardware, windows XP serial port tester program echos back
> > > the characters written to the port, so the hardware is ok.
> > >
> > > However, in Linux, the port stays dumb. I can write to it, but there
> > > is nothing to be read from it.
> > > e.g.
> > > cat /dev/ttyS0 > /tmp/serial.txt &; echo "a" > /dev/ttyS0; cat
> > > /tmp/serial.txt
> > > or
> > > cp /dev/ttyS0 /dev/tty1; echo "a" > /dev/ttyS0
> > >
> > > I have read through the "Cannot write but not read" topic in this
> > > mailing list, but without any success.
> > > Also I have tried several serial port testing programs, all in vain.
> > > Kernel recompilations made no luck.
> > >
> > >
> > > I would really appreciate your help,
> > > Thanks,
> > > Gabor
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-serial" in
> > > the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > >
> >
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-06-06 17:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <730b6c6b0706021439w41923cddvbf9fe953255190c0@mail.gmail.com>
2007-06-02 21:40 ` serial port cannot be read in linux Hello Bello
2007-06-04 6:46 ` kees
[not found] ` <730b6c6b0706051644j16cefd81y882b52602bad98f6@mail.gmail.com>
2007-06-06 17:38 ` Hello Bello
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox